new Map),m=n.useMemo(()=>({...i.initializeConfig({locale:u,defaultTranslationValues:r,formats:s,getMessageFallback:h,messages:l,now:c,onError:f,timeZone:p}),messageFormatCache:E}),[r,s,h,u,E,l,c,f,p]);return a.default.createElement(o.IntlContext.Provider,{value:m},t)}},63144:function(e,t,r){var n=r(2265),i=r(37082);function o(){let e=n.useContext(i.IntlContext);if(!e)throw Error(void 0);return e}t.useIntlContext=o,t.useLocale=function(){return o().locale}},69773:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(63144);r(2265),r(37082),t.useLocale=n.useLocale},60987:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(71815),i=r(92764);r(7030),r(2265),t.IntlError=n.IntlError,t.IntlErrorCode=n.IntlErrorCode,t.createFormatter=n.createFormatter,t.initializeConfig=i.initializeConfig,t.createTranslator=function(e){let{getMessageFallback:t=i.defaultGetMessageFallback,messages:r,namespace:o,onError:a=i.defaultOnError,...s}=e;return function(e,t){let{getMessageFallback:r,messages:i,namespace:o,onError:a,...s}=e;return i=i["!"],o=n.resolveNamespace(o,"!"),n.createBaseTranslator({...s,onError:a,getMessageFallback:r,messages:i,namespace:o})}({...s,onError:a,getMessageFallback:t,messages:{"!":r},namespace:o?"!.".concat(o):"!"},0)}},71815:function(e,t,r){var n,i=r(7030),o=r(2265),a=r(92764),s=i&&i.__esModule?i:{default:i};function h(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let u=((n={}).MISSING_MESSAGE="MISSING_MESSAGE",n.MISSING_FORMAT="MISSING_FORMAT",n.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",n.INSUFFICIENT_PATH="INSUFFICIENT_PATH",n.INVALID_MESSAGE="INVALID_MESSAGE",n.INVALID_KEY="INVALID_KEY",n.FORMATTING_ERROR="FORMATTING_ERROR",n);class l extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),h(this,"code",void 0),h(this,"originalMessage",void 0),this.code=e,t&&(this.originalMessage=t)}}function c(e,t){return e?Object.keys(e).reduce((r,n)=>(r[n]={timeZone:t,...e[n]},r),{}):e}function f(e,t,r,n){let i=a.joinPath(n,r);if(!t)throw Error(i);let o=t;return r.split(".").forEach(t=>{let r=o[t];if(null==t||null==r)throw Error(i+" (".concat(e,")"));o=r}),o}let p=365/12*86400,E={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:365/12*86400,months:365/12*86400,quarter:365/12*259200,quarters:365/12*259200,year:31536e3,years:31536e3};t.IntlError=l,t.IntlErrorCode=u,t.createBaseTranslator=function(e){let t=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.defaultOnError;try{if(!t)throw Error(void 0);let n=r?f(e,t,r):t;if(!n)throw Error(r);return n}catch(t){let e=new l(u.MISSING_MESSAGE,t.message);return n(e),e}}(e.locale,e.messages,e.namespace,e.onError);return function(e){let{defaultTranslationValues:t,formats:r,getMessageFallback:n=a.defaultGetMessageFallback,locale:i,messageFormatCache:h,messagesOrError:p,namespace:E,onError:m,timeZone:g}=e;function d(e,t,r){let i=new l(t,r);return m(i),n({error:i,key:e,namespace:E})}function b(e,m,b){let v,y;if(p instanceof l)return n({error:p,key:e,namespace:E});try{v=f(i,p,e,E)}catch(t){return d(e,u.MISSING_MESSAGE,t.message)}let T=a.joinPath(i,E,e,String(v));if(null!=h&&h.has(T))y=h.get(T);else{if("object"==typeof v){let t;return d(e,Array.isArray(v)?u.INVALID_MESSAGE:u.INSUFFICIENT_PATH,t)}let t=function(e,t){if(t)return;let r=e.replace(/'([{}])/gi,"$1");return/<|{/.test(r)?void 0:r}(v,m);if(t)return t;try{y=new s.default(v,i,function(e,t){let r=t?{...e,dateTime:c(e.dateTime,t)}:e,n=s.default.formats.date,i=t?c(n,t):n,o=s.default.formats.time,a=t?c(o,t):o;return{...r,date:{...i,...null==r?void 0:r.dateTime},time:{...a,...null==r?void 0:r.dateTime}}}({...r,...b},g),{formatters:{getNumberFormat:(e,t)=>new Intl.NumberFormat(e,t),getDateTimeFormat:(e,t)=>new Intl.DateTimeFormat(e,{timeZone:g,...t}),getPluralRules:(e,t)=>new Intl.PluralRules(e,t)}})}catch(t){return d(e,u.INVALID_MESSAGE,t.message)}null==h||h.set(T,y)}try{let e=y.format(function(e){if(0===Object.keys(e).length)return;let t={};return Object.keys(e).forEach(r=>{let n,i=0,a=e[r];n="function"==typeof a?e=>{let t=a(e);return o.isValidElement(t)?o.cloneElement(t,{key:r+i++}):t}:a,t[r]=n}),t}({...t,...m}));if(null==e)throw Error(void 0);return o.isValidElement(e)||Array.isArray(e)||"string"==typeof e?e:String(e)}catch(t){return d(e,u.FORMATTING_ERROR,t.message)}}function v(e,t,r){let n=b(e,t,r);return"string"!=typeof n?d(e,u.INVALID_MESSAGE,void 0):n}return v.rich=b,v.markup=(e,t,r)=>{let i=b(e,t,r);if("string"!=typeof i){let t=new l(u.FORMATTING_ERROR,void 0);return m(t),n({error:t,key:e,namespace:E})}return i},v.raw=e=>{if(p instanceof l)return n({error:p,key:e,namespace:E});try{return f(i,p,e,E)}catch(t){return d(e,u.MISSING_MESSAGE,t.message)}},v}({...e,messagesOrError:t})},t.createFormatter=function(e){let{formats:t,locale:r,now:n,onError:i=a.defaultOnError,timeZone:o}=e;function s(e){var t;return null!==(t=e)&&void 0!==t&&t.timeZone||(o?e={...e,timeZone:o}:i(new l(u.ENVIRONMENT_FALLBACK,void 0))),e}function h(e,t,r,n){let o;try{o=function(e,t){let r;if("string"==typeof t){if(!(r=null==e?void 0:e[t])){let e=new l(u.MISSING_FORMAT,void 0);throw i(e),e}}else r=t;return r}(t,e)}catch(e){return n()}try{return r(o)}catch(e){return i(new l(u.FORMATTING_ERROR,e.message)),n()}}function c(e,n){return h(n,null==t?void 0:t.dateTime,t=>(t=s(t),new Intl.DateTimeFormat(r,t).format(e)),()=>String(e))}function f(){return n||(i(new l(u.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:c,number:function(e,n){return h(n,null==t?void 0:t.number,t=>new Intl.NumberFormat(r,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var n;let i,o;let a={};t instanceof Date||"number"==typeof t?i=new Date(t):t&&(i=null!=t.now?new Date(t.now):f(),o=t.unit,a.style=t.style,a.numberingSystem=t.numberingSystem),i||(i=f());let s=(new Date(e).getTime()-i.getTime())/1e3;o||(o=function(e){let t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":t<604800?"day":t{let t=new Intl.ListFormat(r,e).formatToParts(i).map(e=>"literal"===e.type?e.value:o.get(e.value)||e.value);return o.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,n,i){return h(i,null==t?void 0:t.dateTime,t=>(t=s(t),new Intl.DateTimeFormat(r,t).formatRange(e,n)),()=>[c(e),c(n)].join(" – "))}}},t.resolveNamespace=function(e,t){return e===t?void 0:e.slice((t+".").length)}},83526:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(71815),i=r(60987),o=r(92764),a=r(54480),s=r(83430),h=r(63144);r(7030),r(2265),r(37082),t.IntlError=n.IntlError,t.IntlErrorCode=n.IntlErrorCode,t.createFormatter=n.createFormatter,t.createTranslator=i.createTranslator,t.initializeConfig=o.initializeConfig,t.IntlProvider=a.IntlProvider,t.useFormatter=s.useFormatter,t.useMessages=s.useMessages,t.useNow=s.useNow,t.useTimeZone=s.useTimeZone,t.useTranslations=s.useTranslations,t.useLocale=h.useLocale},92764:function(e,t){function r(){for(var e=arguments.length,t=Array(e),r=0;ra.createFormatter({formats:e,locale:t,now:r,onError:n,timeZone:s}),[e,r,t,n,s])},t.useMessages=function(){let e=i.useIntlContext();if(!e.messages)throw Error(void 0);return e.messages},t.useNow=function(e){let t=null==e?void 0:e.updateInterval,{now:r}=i.useIntlContext(),[n,a]=o.useState(r||new Date);return o.useEffect(()=>{if(!t)return;let e=setInterval(()=>{a(new Date)},t);return()=>{clearInterval(e)}},[r,t]),null==t&&r?r:n},t.useTimeZone=function(){return i.useIntlContext().timeZone},t.useTranslations=function(e){return function(e,t,r){let{defaultTranslationValues:n,formats:u,getMessageFallback:l,locale:c,messageFormatCache:f,onError:p,timeZone:E}=i.useIntlContext();return e=e["!"],t=a.resolveNamespace(t,"!"),E||s||!h||(s=!0,p(new a.IntlError(a.IntlErrorCode.ENVIRONMENT_FALLBACK,void 0))),o.useMemo(()=>a.createBaseTranslator({messageFormatCache:f,getMessageFallback:l,messages:e,defaultTranslationValues:n,namespace:t,onError:p,formats:u,locale:c,timeZone:E}),[f,l,e,t,p,n,u,c,E])}({"!":i.useIntlContext().messages},e?"!.".concat(e):"!",0)}},11735:function(e,t,r){r.d(t,{ZT:function(){return i},_T:function(){return a},ev:function(){return s},pi:function(){return o}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;i=Math.abs(e)},Z=!0;try{var Y=ee("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Z=(null===(c=Y.exec("a"))||void 0===c?void 0:c[0])==="a"}catch(e){Z=!1}var z=D?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},W=k?String.fromCodePoint:function(){for(var e,t=[],r=0;ro;){if((e=t[o++])>1114111)throw RangeError(e+" is not a valid code point");n+=e<65536?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,e%1024+56320)}return n},Q=V?Object.fromEntries:function(e){for(var t={},r=0;r=n)){var i=e.charCodeAt(t);return i<55296||i>56319||t+1===n||(r=e.charCodeAt(t+1))<56320||r>57343?i:(i-55296<<10)+(r-56320)+65536}},J=x?function(e){return e.trimStart()}:function(e){return e.replace(w,"")},$=X?function(e){return e.trimEnd()}:function(e){return e.replace(F,"")};function ee(e,t){return new RegExp(e,t)}if(Z){var et=ee("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");f=function(e,t){var r;return et.lastIndex=t,null!==(r=et.exec(e)[1])&&void 0!==r?r:""}}else f=function(e,t){for(var r=[];;){var n,i=q(e,t);if(void 0===i||ei(i)||(n=i)>=33&&n<=35||36===n||n>=37&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||n>=162&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||n>=8208&&n<=8213||n>=8214&&n<=8215||8216===n||8217===n||8218===n||n>=8219&&n<=8220||8221===n||8222===n||8223===n||n>=8224&&n<=8231||n>=8240&&n<=8248||8249===n||8250===n||n>=8251&&n<=8254||n>=8257&&n<=8259||8260===n||8261===n||8262===n||n>=8263&&n<=8273||8274===n||8275===n||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||8608===n||n>=8609&&n<=8610||8611===n||n>=8612&&n<=8613||8614===n||n>=8615&&n<=8621||8622===n||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||8658===n||8659===n||8660===n||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||8968===n||8969===n||8970===n||8971===n||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||9001===n||9002===n||n>=9003&&n<=9083||9084===n||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||9655===n||n>=9656&&n<=9664||9665===n||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||9839===n||n>=9840&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||n>=10132&&n<=10175||n>=10176&&n<=10180||10181===n||10182===n||n>=10183&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||n>=10649&&n<=10711||10712===n||10713===n||10714===n||10715===n||n>=10716&&n<=10747||10748===n||10749===n||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||11158===n||n>=11159&&n<=11263||n>=11776&&n<=11777||11778===n||11779===n||11780===n||11781===n||n>=11782&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||n>=11790&&n<=11798||11799===n||n>=11800&&n<=11801||11802===n||11803===n||11804===n||11805===n||n>=11806&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||n>=11818&&n<=11822||11823===n||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||11840===n||11841===n||11842===n||n>=11843&&n<=11855||n>=11856&&n<=11857||11858===n||n>=11859&&n<=11903||n>=12289&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||n>=12306&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||n>=12318&&n<=12319||12320===n||12336===n||64830===n||64831===n||n>=65093&&n<=65094)break;r.push(i),t+=i>=65536?2:1}return W.apply(void 0,r)};var er=function(){function e(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i=this.char();if(123===i){var o=this.parseArgument(e,r);if(o.err)return o;n.push(o.val)}else if(125===i&&e>0)break;else if(35===i&&("plural"===t||"selectordinal"===t)){var a=this.clonePosition();this.bump(),n.push({type:u.pound,location:U(a,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&en(this.peek()||0)){var o=this.parseTag(e,t);if(o.err)return o;n.push(o.val)}else{var o=this.parseLiteral(e,t);if(o.err)return o;n.push(o.val)}}else{if(!r)return this.error(h.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()));break}}return{val:n,err:null}},e.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:u.literal,value:"<".concat(n,"/>"),location:U(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(h.INVALID_TAG,U(r,this.clonePosition()));var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var o=i.val,a=this.clonePosition();if(!this.bumpIf(""))return this.error(h.UNCLOSED_TAG,U(r,this.clonePosition()));if(this.isEOF()||!en(this.char()))return this.error(h.INVALID_TAG,U(a,this.clonePosition()));var s=this.clonePosition();return n!==this.parseTagName()?this.error(h.UNMATCHED_CLOSING_TAG,U(s,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:u.tag,value:n,children:o,location:U(r,this.clonePosition())},err:null}:this.error(h.INVALID_TAG,U(a,this.clonePosition()))},e.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i){n+=i;continue}var o=this.tryParseUnquoted(e,t);if(o){n+=o;continue}var a=this.tryParseLeftAngleBracket();if(a){n+=a;continue}break}var s=U(r,this.clonePosition());return{val:{type:u.literal,value:n,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(en(e=this.peek()||0)||47===e)?null:(this.bump(),"<")},e.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39===this.peek())t.push(39),this.bump();else{this.bump();break}}else t.push(r);this.bump()}return W.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),W(r))},e.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(h.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(h.EMPTY_ARGUMENT,U(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(h.MALFORMED_ARGUMENT,U(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(h.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:u.argument,value:n,location:U(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(h.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));return this.parseArgumentOptions(e,t,n,r);default:return this.error(h.MALFORMED_ARGUMENT,U(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=f(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:U(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case"":return this.error(h.EXPECT_ARGUMENT_TYPE,U(o,s));case"number":case"date":case"time":this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),p=this.parseSimpleArgStyleIfPossible();if(p.err)return p;var E=$(p.val);if(0===E.length)return this.error(h.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));c={style:E,styleLocation:U(f,this.clonePosition())}}var g=this.tryParseArgumentClose(n);if(g.err)return g;var d=U(n,this.clonePosition());if(c&&z(null==c?void 0:c.style,"::",0)){var b,v=J(c.style.slice(2));if("number"===a){var p=this.parseNumberSkeletonFromString(v,c.styleLocation);if(p.err)return p;return{val:{type:u.number,value:r,location:d,style:p.val},err:null}}if(0===v.length)return this.error(h.EXPECT_DATE_TIME_SKELETON,d);var y=v;this.locale&&(y=function(e,t){for(var r="",n=0;n>1),h=function(e){var t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var n=e.language;return"root"!==n&&(t=e.maximize().region),(G[t||""]||G[n||""]||G["".concat(n,"-001")]||G["001"])[0]}(t);for(("H"==h||"k"==h)&&(s=0);s-- >0;)r+="a";for(;a-- >0;)r=h+r}else"J"===i?r+="H":r+=i}return r}(v,this.locale));var E={type:l.dateTime,pattern:y,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?(b={},y.replace(B,function(e){var t=e.length;switch(e[0]){case"G":b.era=4===t?"long":5===t?"narrow":"short";break;case"y":b.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":b.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":b.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":b.weekday=4===t?"long":5===t?"narrow":"short";break;case"e":if(t<4)throw RangeError("`e..eee` (weekday) patterns are not supported");b.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");b.weekday=["short","long","narrow","short"][t-4];break;case"a":b.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":b.hourCycle="h12",b.hour=["numeric","2-digit"][t-1];break;case"H":b.hourCycle="h23",b.hour=["numeric","2-digit"][t-1];break;case"K":b.hourCycle="h11",b.hour=["numeric","2-digit"][t-1];break;case"k":b.hourCycle="h24",b.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":b.minute=["numeric","2-digit"][t-1];break;case"s":b.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":b.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),b):{}};return{val:{type:"date"===a?u.date:u.time,value:r,location:d,style:E},err:null}}return{val:{type:"number"===a?u.number:"date"===a?u.date:u.time,value:r,location:d,style:null!==(i=null==c?void 0:c.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var T=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(h.EXPECT_SELECT_ARGUMENT_OPTIONS,U(T,(0,m.pi)({},T)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),H=0;if("select"!==a&&"offset"===_.value){if(!this.bumpIf(":"))return this.error(h.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));this.bumpSpace();var p=this.tryParseDecimalInteger(h.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,h.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(p.err)return p;this.bumpSpace(),_=this.parseIdentifierIfPossible(),H=p.val}var A=this.tryParsePluralOrSelectOptions(e,a,t,_);if(A.err)return A;var g=this.tryParseArgumentClose(n);if(g.err)return g;var I=U(n,this.clonePosition());if("select"===a)return{val:{type:u.select,value:r,options:Q(A.val),location:I},err:null};return{val:{type:u.plural,value:r,options:Q(A.val),offset:H,pluralType:"plural"===a?"cardinal":"ordinal",location:I},err:null};default:return this.error(h.INVALID_ARGUMENT_TYPE,U(o,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(h.EXPECT_ARGUMENT_CLOSING_BRACE,U(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(h.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");for(var t=e.split(S).filter(function(e){return e.length>0}),r=[],n=0;n1)throw RangeError("integer-width stems only accept a single optional option");n.options[0].replace(P,function(e,r,n,i,o,a){if(r)t.minimumIntegerDigits=n.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(a)throw Error("We currently do not support exact integer digits");return""});continue}if(M.test(n.stem)){t.minimumIntegerDigits=n.stem.length;continue}if(N.test(n.stem)){if(n.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");n.stem.replace(N,function(e,r,n,i,o,a){return"*"===n?t.minimumFractionDigits=r.length:i&&"#"===i[0]?t.maximumFractionDigits=i.length:o&&a?(t.minimumFractionDigits=o.length,t.maximumFractionDigits=o.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});var i=n.options[0];"w"===i?t=(0,m.pi)((0,m.pi)({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=(0,m.pi)((0,m.pi)({},t),O(i)));continue}if(L.test(n.stem)){t=(0,m.pi)((0,m.pi)({},t),O(n.stem));continue}var o=C(n.stem);o&&(t=(0,m.pi)((0,m.pi)({},t),o));var a=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!M.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(n.stem);a&&(t=(0,m.pi)((0,m.pi)({},t),a))}return t}(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i,o=!1,a=[],s=new Set,u=n.value,l=n.location;;){if(0===u.length){var c=this.clonePosition();if("select"!==t&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(h.EXPECT_PLURAL_ARGUMENT_SELECTOR,h.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;l=U(c,this.clonePosition()),u=this.message.slice(c.offset,this.offset())}else break}if(s.has(u))return this.error("select"===t?h.DUPLICATE_SELECT_ARGUMENT_SELECTOR:h.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===u&&(o=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?h.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:h.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(e+1,t,r);if(E.err)return E;var m=this.tryParseArgumentClose(p);if(m.err)return m;a.push([u,{value:E.val,location:U(p,this.clonePosition())}]),s.add(u),this.bumpSpace(),u=(i=this.parseIdentifierIfPossible()).value,l=i.location}return 0===a.length?this.error("select"===t?h.EXPECT_SELECT_ARGUMENT_SELECTOR:h.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(h.MISSING_OTHER_CLAUSE,U(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)i=!0,o=10*o+(a-48),this.bump();else break}var s=U(n,this.clonePosition());return i?K(o*=r)?{val:o,err:null}:this.error(t,s):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=q(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if(z(this.message,e,this.offset())){for(var t=0;t=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ei(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return null!=r?r:null},e}();function en(e){return e>=97&&e<=122||e>=65&&e<=90}function ei(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function eo(e,t){void 0===t&&(t={});var r=new er(e,t=(0,m.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},t)).parse();if(r.err){var n=SyntaxError(h[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return(null==t?void 0:t.captureLocation)||function e(t){t.forEach(function(t){if(delete t.location,y(t)||T(t))for(var r in t.options)delete t.options[r].location,e(t.options[r].value);else d(t)&&H(t.style)?delete t.style.location:(b(t)||v(t))&&A(t.style)?delete t.style.location:_(t)&&e(t.children)})}(r.val),r.val}function ea(e,t){var r=t&&t.cache?t.cache:ec,n=t&&t.serializer?t.serializer:eu;return(t&&t.strategy?t.strategy:function(e,t){var r,n,i=1===e.length?es:eh;return r=t.cache.create(),n=t.serializer,i.bind(this,e,r,n)})(e,{cache:r,serializer:n})}function es(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),o=t.get(i);return void 0===o&&(o=e.call(this,n),t.set(i,o)),o}function eh(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return void 0===o&&(o=e.apply(this,n),t.set(i,o)),o}var eu=function(){return JSON.stringify(arguments)};function el(){this.cache=Object.create(null)}el.prototype.get=function(e){return this.cache[e]},el.prototype.set=function(e,t){this.cache[e]=t};var ec={create:function(){return new el}},ef={variadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,eh.bind(this,e,r,n)},monadic:function(e,t){var r,n;return r=t.cache.create(),n=t.serializer,es.bind(this,e,r,n)}};(a=p||(p={})).MISSING_VALUE="MISSING_VALUE",a.INVALID_VALUE="INVALID_VALUE",a.MISSING_INTL_API="MISSING_INTL_API";var ep=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.code=r,i.originalMessage=n,i}return(0,m.ZT)(t,e),t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),eE=function(e){function t(t,r,n,i){return e.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(n).join('", "'),'"'),p.INVALID_VALUE,i)||this}return(0,m.ZT)(t,e),t}(ep),em=function(e){function t(t,r,n){return e.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),p.INVALID_VALUE,n)||this}return(0,m.ZT)(t,e),t}(ep),eg=function(e){function t(t,r){return e.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),p.MISSING_VALUE,r)||this}return(0,m.ZT)(t,e),t}(ep);function ed(e){return"function"==typeof e}function eb(e,t,r,n,i,o,a){if(1===e.length&&g(e[0]))return[{type:E.literal,value:e[0].value}];for(var s=[],h=0;h0?t[0]:"string"==typeof e?e:e[0])}},e.__parse=eo,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),eT=ey},925:function(e,t){function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tnew Map),m=n.useMemo(()=>({...i.initializeConfig({locale:u,defaultTranslationValues:r,formats:s,getMessageFallback:h,messages:l,now:c,onError:f,timeZone:p}),messageFormatCache:E}),[r,s,h,u,E,l,c,f,p]);return a.default.createElement(o.IntlContext.Provider,{value:m},t)}},3144:function(e,t,r){var n=r(2265),i=r(7082);function o(){let e=n.useContext(i.IntlContext);if(!e)throw Error(void 0);return e}t.useIntlContext=o,t.useLocale=function(){return o().locale}},9773:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(3144);r(2265),r(7082),t.useLocale=n.useLocale},987:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1815),i=r(2764);r(7030),r(2265),t.IntlError=n.IntlError,t.IntlErrorCode=n.IntlErrorCode,t.createFormatter=n.createFormatter,t.initializeConfig=i.initializeConfig,t.createTranslator=function(e){let{getMessageFallback:t=i.defaultGetMessageFallback,messages:r,namespace:o,onError:a=i.defaultOnError,...s}=e;return function(e,t){let{getMessageFallback:r,messages:i,namespace:o,onError:a,...s}=e;return i=i["!"],o=n.resolveNamespace(o,"!"),n.createBaseTranslator({...s,onError:a,getMessageFallback:r,messages:i,namespace:o})}({...s,onError:a,getMessageFallback:t,messages:{"!":r},namespace:o?"!.".concat(o):"!"},0)}},1815:function(e,t,r){var n,i=r(7030),o=r(2265),a=r(2764),s=i&&i.__esModule?i:{default:i};function h(e,t,r){var n;return(t="symbol"==typeof(n=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let u=((n={}).MISSING_MESSAGE="MISSING_MESSAGE",n.MISSING_FORMAT="MISSING_FORMAT",n.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",n.INSUFFICIENT_PATH="INSUFFICIENT_PATH",n.INVALID_MESSAGE="INVALID_MESSAGE",n.INVALID_KEY="INVALID_KEY",n.FORMATTING_ERROR="FORMATTING_ERROR",n);class l extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),h(this,"code",void 0),h(this,"originalMessage",void 0),this.code=e,t&&(this.originalMessage=t)}}function c(e,t){return e?Object.keys(e).reduce((r,n)=>(r[n]={timeZone:t,...e[n]},r),{}):e}function f(e,t,r,n){let i=a.joinPath(n,r);if(!t)throw Error(i);let o=t;return r.split(".").forEach(t=>{let r=o[t];if(null==t||null==r)throw Error(i+" (".concat(e,")"));o=r}),o}let p=365/12*86400,E={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:365/12*86400,months:365/12*86400,quarter:365/12*259200,quarters:365/12*259200,year:31536e3,years:31536e3};t.IntlError=l,t.IntlErrorCode=u,t.createBaseTranslator=function(e){let t=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:a.defaultOnError;try{if(!t)throw Error(void 0);let n=r?f(e,t,r):t;if(!n)throw Error(r);return n}catch(t){let e=new l(u.MISSING_MESSAGE,t.message);return n(e),e}}(e.locale,e.messages,e.namespace,e.onError);return function(e){let{defaultTranslationValues:t,formats:r,getMessageFallback:n=a.defaultGetMessageFallback,locale:i,messageFormatCache:h,messagesOrError:p,namespace:E,onError:m,timeZone:g}=e;function d(e,t,r){let i=new l(t,r);return m(i),n({error:i,key:e,namespace:E})}function b(e,m,b){let v,y;if(p instanceof l)return n({error:p,key:e,namespace:E});try{v=f(i,p,e,E)}catch(t){return d(e,u.MISSING_MESSAGE,t.message)}let T=a.joinPath(i,E,e,String(v));if(null!=h&&h.has(T))y=h.get(T);else{if("object"==typeof v){let t;return d(e,Array.isArray(v)?u.INVALID_MESSAGE:u.INSUFFICIENT_PATH,t)}let t=function(e,t){if(t)return;let r=e.replace(/'([{}])/gi,"$1");return/<|{/.test(r)?void 0:r}(v,m);if(t)return t;try{y=new s.default(v,i,function(e,t){let r=t?{...e,dateTime:c(e.dateTime,t)}:e,n=s.default.formats.date,i=t?c(n,t):n,o=s.default.formats.time,a=t?c(o,t):o;return{...r,date:{...i,...null==r?void 0:r.dateTime},time:{...a,...null==r?void 0:r.dateTime}}}({...r,...b},g),{formatters:{getNumberFormat:(e,t)=>new Intl.NumberFormat(e,t),getDateTimeFormat:(e,t)=>new Intl.DateTimeFormat(e,{timeZone:g,...t}),getPluralRules:(e,t)=>new Intl.PluralRules(e,t)}})}catch(t){return d(e,u.INVALID_MESSAGE,t.message)}null==h||h.set(T,y)}try{let e=y.format(function(e){if(0===Object.keys(e).length)return;let t={};return Object.keys(e).forEach(r=>{let n,i=0,a=e[r];n="function"==typeof a?e=>{let t=a(e);return o.isValidElement(t)?o.cloneElement(t,{key:r+i++}):t}:a,t[r]=n}),t}({...t,...m}));if(null==e)throw Error(void 0);return o.isValidElement(e)||Array.isArray(e)||"string"==typeof e?e:String(e)}catch(t){return d(e,u.FORMATTING_ERROR,t.message)}}function v(e,t,r){let n=b(e,t,r);return"string"!=typeof n?d(e,u.INVALID_MESSAGE,void 0):n}return v.rich=b,v.markup=(e,t,r)=>{let i=b(e,t,r);if("string"!=typeof i){let t=new l(u.FORMATTING_ERROR,void 0);return m(t),n({error:t,key:e,namespace:E})}return i},v.raw=e=>{if(p instanceof l)return n({error:p,key:e,namespace:E});try{return f(i,p,e,E)}catch(t){return d(e,u.MISSING_MESSAGE,t.message)}},v}({...e,messagesOrError:t})},t.createFormatter=function(e){let{formats:t,locale:r,now:n,onError:i=a.defaultOnError,timeZone:o}=e;function s(e){var t;return null!==(t=e)&&void 0!==t&&t.timeZone||(o?e={...e,timeZone:o}:i(new l(u.ENVIRONMENT_FALLBACK,void 0))),e}function h(e,t,r,n){let o;try{o=function(e,t){let r;if("string"==typeof t){if(!(r=null==e?void 0:e[t])){let e=new l(u.MISSING_FORMAT,void 0);throw i(e),e}}else r=t;return r}(t,e)}catch(e){return n()}try{return r(o)}catch(e){return i(new l(u.FORMATTING_ERROR,e.message)),n()}}function c(e,n){return h(n,null==t?void 0:t.dateTime,t=>(t=s(t),new Intl.DateTimeFormat(r,t).format(e)),()=>String(e))}function f(){return n||(i(new l(u.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:c,number:function(e,n){return h(n,null==t?void 0:t.number,t=>new Intl.NumberFormat(r,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var n;let i,o;let a={};t instanceof Date||"number"==typeof t?i=new Date(t):t&&(i=null!=t.now?new Date(t.now):f(),o=t.unit,a.style=t.style,a.numberingSystem=t.numberingSystem),i||(i=f());let s=(new Date(e).getTime()-i.getTime())/1e3;o||(o=function(e){let t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":t<604800?"day":t{let t=new Intl.ListFormat(r,e).formatToParts(i).map(e=>"literal"===e.type?e.value:o.get(e.value)||e.value);return o.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,n,i){return h(i,null==t?void 0:t.dateTime,t=>(t=s(t),new Intl.DateTimeFormat(r,t).formatRange(e,n)),()=>[c(e),c(n)].join(" – "))}}},t.resolveNamespace=function(e,t){return e===t?void 0:e.slice((t+".").length)}},3526:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=r(1815),i=r(987),o=r(2764),a=r(4480),s=r(3430),h=r(3144);r(7030),r(2265),r(7082),t.IntlError=n.IntlError,t.IntlErrorCode=n.IntlErrorCode,t.createFormatter=n.createFormatter,t.createTranslator=i.createTranslator,t.initializeConfig=o.initializeConfig,t.IntlProvider=a.IntlProvider,t.useFormatter=s.useFormatter,t.useMessages=s.useMessages,t.useNow=s.useNow,t.useTimeZone=s.useTimeZone,t.useTranslations=s.useTranslations,t.useLocale=h.useLocale},2764:function(e,t){function r(){for(var e=arguments.length,t=Array(e),r=0;ra.createFormatter({formats:e,locale:t,now:r,onError:n,timeZone:s}),[e,r,t,n,s])},t.useMessages=function(){let e=i.useIntlContext();if(!e.messages)throw Error(void 0);return e.messages},t.useNow=function(e){let t=null==e?void 0:e.updateInterval,{now:r}=i.useIntlContext(),[n,a]=o.useState(r||new Date);return o.useEffect(()=>{if(!t)return;let e=setInterval(()=>{a(new Date)},t);return()=>{clearInterval(e)}},[r,t]),null==t&&r?r:n},t.useTimeZone=function(){return i.useIntlContext().timeZone},t.useTranslations=function(e){return function(e,t,r){let{defaultTranslationValues:n,formats:u,getMessageFallback:l,locale:c,messageFormatCache:f,onError:p,timeZone:E}=i.useIntlContext();return e=e["!"],t=a.resolveNamespace(t,"!"),E||s||!h||(s=!0,p(new a.IntlError(a.IntlErrorCode.ENVIRONMENT_FALLBACK,void 0))),o.useMemo(()=>a.createBaseTranslator({messageFormatCache:f,getMessageFallback:l,messages:e,defaultTranslationValues:n,namespace:t,onError:p,formats:u,locale:c,timeZone:E}),[f,l,e,t,p,n,u,c,E])}({"!":i.useIntlContext().messages},e?"!.".concat(e):"!",0)}},1735:function(e,t,r){r.d(t,{ZT:function(){return i},_T:function(){return a},ev:function(){return s},pi:function(){return o}});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r){if(r||2==arguments.length)for(var n,i=0,o=t.length;iPromise.all([t.e(823),t.e(9041),t.e(7138),t.e(7306)]).then(t.bind(t,27306)),{loadableGenerated:{webpack:()=>[27306]},ssr:!1}),d=(0,a.default)(()=>Promise.all([t.e(1219),t.e(3169),t.e(7138),t.e(6314)]).then(t.bind(t,6314)),{loadableGenerated:{webpack:()=>[6314]},ssr:!1});function l(){let[e,n]=(0,s.useState)(!1),t=()=>{window.innerWidth>1e3?n(!1):n(!0)};return(0,s.useEffect)(()=>(t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}),[]),(0,r.jsx)(r.Fragment,{children:e?(0,r.jsx)(d,{}):(0,r.jsx)(i,{})})}}}]);
\ No newline at end of file
diff --git a/_next/static/chunks/8323.c0fc2e654bdabf9b.js b/_next/static/chunks/8323.c0fc2e654bdabf9b.js
deleted file mode 100644
index 8d54a21..0000000
--- a/_next/static/chunks/8323.c0fc2e654bdabf9b.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8323],{8323:function(e,n,t){t.r(n),t.d(n,{default:function(){return l}});var r=t(7437),s=t(2265),a=t(7818);let i=(0,a.default)(()=>Promise.all([t.e(823),t.e(9041),t.e(7138),t.e(7306)]).then(t.bind(t,7306)),{loadableGenerated:{webpack:()=>[7306]},ssr:!1}),d=(0,a.default)(()=>Promise.all([t.e(1219),t.e(3169),t.e(7138),t.e(6314)]).then(t.bind(t,6314)),{loadableGenerated:{webpack:()=>[6314]},ssr:!1});function l(){let[e,n]=(0,s.useState)(!1),t=()=>{window.innerWidth>1e3?n(!1):n(!0)};return(0,s.useEffect)(()=>(t(),window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}),[]),(0,r.jsx)(r.Fragment,{children:e?(0,r.jsx)(d,{}):(0,r.jsx)(i,{})})}}}]);
\ No newline at end of file
diff --git a/_next/static/chunks/8985.0f7436fb72adc3be.js b/_next/static/chunks/8985.0f7436fb72adc3be.js
new file mode 100644
index 0000000..31d4f27
--- /dev/null
+++ b/_next/static/chunks/8985.0f7436fb72adc3be.js
@@ -0,0 +1 @@
+"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8985],{50968:function(e,t,a){a.d(t,{Z:function(){return c}});var n=a(57437),s=a(2265),r=a(16463),o=a(31590),i=a(89733),d=a(42421),l=a(66648);function c(){var e;let t=(0,r.useRouter)(),a=(0,r.usePathname)(),c=(0,r.useParams)(),u=[{code:"en",label:"English",flag:"/flags/gb.svg"},{code:"ua",label:"Українська",flag:"/flags/ua.svg"},{code:"ru",label:"Русский",flag:"/flags/ru.svg"}],[m,f]=(0,s.useState)(c.locale||u[0].code),h=e=>{if(e!==m){f(e);let n="/".concat(e).concat(a.substring(3));t.push(n)}},x=null===(e=u.find(e=>e.code===m))||void 0===e?void 0:e.flag;return(0,n.jsxs)(o.h_,{children:[(0,n.jsx)(o.$F,{asChild:!0,className:"!m-0",children:(0,n.jsxs)(i.z,{variant:"outline",className:"flex items-center gap-2",children:[(0,n.jsx)(l.default,{src:x||"/flags/gb.svg",alt:"".concat(m," flag"),width:20,height:20,className:"rounded-sm object-cover",unoptimized:!0}),(0,n.jsx)("span",{children:"string"==typeof m?m.toUpperCase():m[0].toUpperCase()}),(0,n.jsx)(d.Z,{className:"h-4 w-4"})]})}),(0,n.jsx)(o.AW,{align:"end",className:"w-40",children:(0,n.jsx)(o.Qk,{children:u.map(e=>(0,n.jsxs)(o.Xi,{onClick:()=>h(e.code),className:"flex items-center gap-2",children:[(0,n.jsx)(l.default,{src:e.flag,alt:"".concat(e.code," flag"),width:20,height:20,className:"rounded-sm object-cover",unoptimized:!0}),e.label]},e.code))})})]})}},28985:function(e,t,a){a.r(t),a.d(t,{default:function(){return A}});var n=a(57437),s=a(50968),r=a(18087),o=a(16463),i=a(66648),d=a(87138),l=a(89733),c=a(51615),u=a(49354),m=a(2265),f=a(7668),h=a(13027),x=a(42421);let p=m.forwardRef((e,t)=>{let{className:a,children:s,...r}=e;return(0,n.jsxs)(f.fC,{ref:t,className:(0,u.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center",a),...r,children:[s,(0,n.jsx)(y,{})]})});p.displayName=f.fC.displayName;let g=m.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(f.aV,{ref:t,className:(0,u.cn)("group flex flex-1 list-none items-center justify-center space-x-1",a),...s})});g.displayName=f.aV.displayName;let v=f.ck,w=(0,h.j)("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),j=m.forwardRef((e,t)=>{let{className:a,children:s,...r}=e;return(0,n.jsxs)(f.xz,{ref:t,className:(0,u.cn)(w(),"group",a),...r,children:[s," ",(0,n.jsx)(x.Z,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})});j.displayName=f.xz.displayName;let N=m.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(f.VY,{ref:t,className:(0,u.cn)("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",a),...s})});N.displayName=f.VY.displayName;let b=f.rU,y=m.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)("div",{className:(0,u.cn)("absolute left-0 top-full flex justify-center"),children:(0,n.jsx)(f.l_,{className:(0,u.cn)("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",a),ref:t,...s})})});y.displayName=f.l_.displayName,m.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(f.z$,{ref:t,className:(0,u.cn)("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",a),...s,children:(0,n.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})}).displayName=f.z$.displayName;var k=a(86763),T=a(11553),_=a(71100);let z={chainId:"0x6e7a",chainName:"Aplo Network",rpcUrls:["https://pub1.aplocoin.com"],nativeCurrency:{name:"GAPLO",symbol:"GAPLO",decimals:18}};function A(){let e=(0,r.useTranslations)("Menu"),t=(0,o.usePathname)().substring(1,3),{toast:a}=(0,k.pm)(),m=async()=>{try{if(!window.ethereum)return;await window.ethereum.request({method:"wallet_addEthereumChain",params:[z]}),a({title:e("success"),description:e("networkAdded")})}catch(t){a({variant:"destructive",title:e("error"),description:t.message})}},f=async()=>{try{return await window.ethereum.request({method:"eth_chainId"})}catch(e){return null}},h=async()=>{try{if(!window.ethereum)return!1;if(await f()===z.chainId)return!0;return await window.ethereum.request({method:"wallet_switchEthereumChain",params:[{chainId:z.chainId}]}),a({title:e("success"),description:e("networkSwitched")}),!0}catch(t){if(4902===t.code)try{return await m(),await window.ethereum.request({method:"wallet_switchEthereumChain",params:[{chainId:z.chainId}]}),!0}catch(t){return a({variant:"destructive",title:e("error"),description:t.message}),!1}return a({variant:"destructive",title:e("error"),description:t.message}),!1}},x=async(t,n)=>{try{if(!window.ethereum)return;if(!await h()){a({variant:"destructive",title:e("error"),description:e("switchNetworkFirst")});return}if(await f()!==z.chainId){a({variant:"destructive",title:e("error"),description:e("wrongNetwork")});return}await window.ethereum.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,symbol:n,decimals:18}}}),a({title:e("success"),description:e("tokenAdded")})}catch(t){a({variant:"destructive",title:e("error"),description:t.message})}};return(0,n.jsx)("div",{style:{paddingLeft:"clamp(4vw, 9vw, 10.55vw)",paddingRight:"clamp(4vw, 9vw, 10.55vw)",maxWidth:"100vw"},children:(0,n.jsxs)("div",{className:"flex flex-row justify-between min-[6.83vh] mt-[8.49vh] mb-[1.56vh] shadow-sm bg-secondary px-[2.01vw] py-[4px]",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center",children:[(0,n.jsx)(d.default,{href:"/".concat(t),children:(0,n.jsx)(i.default,{src:"/menu/logo.png",width:64,height:64,alt:"AploCoin logo",className:"mr-4 cursor-pointer"})}),(0,n.jsx)("div",{className:"flex flex-row items-center",children:(0,n.jsx)(p,{children:(0,n.jsxs)(g,{children:[(0,n.jsxs)(v,{children:[(0,n.jsx)(j,{children:e("crypto")}),(0,n.jsx)(N,{children:(0,n.jsxs)("ul",{className:"grid gap-3 p-4 md:w-[400px] lg:w-[500px] lg:grid-cols-[.75fr_1fr]",children:[(0,n.jsx)("li",{className:"row-span-3",children:(0,n.jsx)(b,{asChild:!0,children:(0,n.jsxs)("a",{className:"flex h-full w-full select-none flex-col justify-end rounded-md p-6 no-underline outline-none focus:shadow-md bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",href:"/".concat(t,"/mining-aplo"),children:[(0,n.jsx)(T.Z,{className:"h-6 w-6"}),(0,n.jsx)("div",{className:"mb-2 mt-4 text-lg font-medium",children:e("mining")}),(0,n.jsx)("p",{className:"text-sm leading-tight text-muted-foreground",children:e("start-mining")})]})})}),(0,n.jsx)("li",{className:"col-span-1",children:(0,n.jsx)(b,{asChild:!0,children:(0,n.jsx)(l.z,{variant:"outline",onClick:m,className:(0,u.cn)("h-auto w-full block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-left"),children:(0,n.jsx)("div",{className:"text-sm font-medium leading-none",children:e("addNetwork")})})})}),(0,n.jsx)("li",{className:"col-span-1",children:(0,n.jsx)(b,{asChild:!0,children:(0,n.jsxs)(l.z,{variant:"outline",onClick:()=>{x("0x0000000000000000000000000000000000001235","APLO")},className:(0,u.cn)("h-auto w-full block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-left"),children:[(0,n.jsx)("div",{className:"text-sm font-medium leading-none",children:e("addAploToken")}),(0,n.jsx)("p",{className:"text-sm font-normal leading-tight text-muted-foreground",children:"TEST"})]})})}),(0,n.jsx)("li",{className:"col-span-1",children:(0,n.jsx)(b,{asChild:!0,children:(0,n.jsxs)(l.z,{variant:"outline",onClick:()=>{x("0x0000000000000000000000000000000000001234","GAPLO")},className:(0,u.cn)("h-auto w-full block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-left"),children:[(0,n.jsx)("div",{className:"text-sm font-medium leading-none",children:e("addGaploToken")}),(0,n.jsx)("p",{className:"text-sm font-normal leading-tight text-muted-foreground",children:"TEST"})]})})})]})})]}),(0,n.jsxs)(v,{children:[(0,n.jsx)(j,{children:e("aboutAplo")}),(0,n.jsx)(N,{children:(0,n.jsxs)("ul",{className:"grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px]",style:{gridAutoFlow:"dense"},children:[(0,n.jsx)("li",{className:"row-span-3",children:(0,n.jsx)(b,{asChild:!0,children:(0,n.jsxs)("a",{className:"flex h-full w-full select-none flex-col justify-end rounded-md p-6 no-underline outline-none focus:shadow-md bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",href:"/".concat(t,"/what-is-aplo"),children:[(0,n.jsx)(_.Z,{className:"h-6 w-6"}),(0,n.jsx)("div",{className:"mb-2 mt-4 text-lg font-medium",children:e("whatIsAplo")}),(0,n.jsx)("p",{className:"text-sm leading-tight text-muted-foreground",children:"TEST"})]})})}),(0,n.jsx)(b,{asChild:!0,children:(0,n.jsx)(d.default,{href:"/".concat(t,"/faq"),passHref:!0,children:(0,n.jsxs)(l.z,{variant:"outline",className:(0,u.cn)("h-auto w-full block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-left"),children:[(0,n.jsx)("div",{className:"text-sm font-medium leading-none",children:e("faq")}),(0,n.jsx)("p",{className:"text-sm font-normal leading-tight text-muted-foreground",children:"TEST"})]})})}),(0,n.jsx)(b,{asChild:!0,children:(0,n.jsx)(d.default,{href:"/".concat(t,"/about-aplo"),passHref:!0,children:(0,n.jsxs)(l.z,{variant:"outline",className:(0,u.cn)("h-auto w-full block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-left"),children:[(0,n.jsx)("div",{className:"text-sm font-medium leading-none",children:e("about")}),(0,n.jsx)("p",{className:"text-sm font-normal leading-tight text-muted-foreground",children:"TEST"})]})})}),(0,n.jsx)(b,{asChild:!0,children:(0,n.jsx)(d.default,{href:"/".concat(t,"/user-guides"),passHref:!0,children:(0,n.jsxs)(l.z,{variant:"outline",className:(0,u.cn)("h-auto w-full block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-left"),children:[(0,n.jsx)("div",{className:"text-sm font-medium leading-none",children:e("userGuides")}),(0,n.jsx)("p",{className:"text-sm font-normal leading-tight text-muted-foreground",children:"TEST"})]})})})]})})]}),(0,n.jsx)(v,{children:(0,n.jsx)(d.default,{href:"/".concat(t,"/roadmap"),legacyBehavior:!0,passHref:!0,children:(0,n.jsx)(b,{className:w(),children:e("roadmap")})})})]})})})]}),(0,n.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,n.jsx)(l.z,{className:"mr-[1.385vw]",children:(0,n.jsx)(d.default,{href:"/".concat(t,"/donate-aplo-project"),children:e("donate")})}),(0,n.jsx)(s.Z,{}),(0,n.jsx)(c.O,{})]})]})})}},51615:function(e,t,a){a.d(t,{O:function(){return l}});var n=a(57437),s=a(38296),r=a(92699),o=a(79512),i=a(89733),d=a(31590);function l(){let{setTheme:e}=(0,o.F)();return(0,n.jsxs)(d.h_,{children:[(0,n.jsx)(d.$F,{asChild:!0,children:(0,n.jsxs)(i.z,{variant:"outline",size:"icon",children:[(0,n.jsx)(s.Z,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,n.jsx)(r.Z,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,n.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,n.jsxs)(d.AW,{align:"end",children:[(0,n.jsx)(d.Xi,{onClick:()=>e("light"),children:"Light"}),(0,n.jsx)(d.Xi,{onClick:()=>e("dark"),children:"Dark"}),(0,n.jsx)(d.Xi,{onClick:()=>e("system"),children:"System"})]})]})}},89733:function(e,t,a){a.d(t,{z:function(){return l}});var n=a(57437),s=a(2265),r=a(71538),o=a(13027),i=a(49354);let d=(0,o.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=s.forwardRef((e,t)=>{let{className:a,variant:s,size:o,asChild:l=!1,...c}=e,u=l?r.g7:"button";return(0,n.jsx)(u,{className:(0,i.cn)(d({variant:s,size:o,className:a})),ref:t,...c})});l.displayName="Button"},31590:function(e,t,a){a.d(t,{$F:function(){return u},AW:function(){return f},Qk:function(){return m},Xi:function(){return h},h_:function(){return c}});var n=a(57437),s=a(2265),r=a(79463),o=a(87592),i=a(22468),d=a(28165),l=a(49354);let c=r.fC,u=r.xz,m=r.ZA;r.Uv,r.Tr,r.Ee,s.forwardRef((e,t)=>{let{className:a,inset:s,children:i,...d}=e;return(0,n.jsxs)(r.fF,{ref:t,className:(0,l.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s&&"pl-8",a),...d,children:[i,(0,n.jsx)(o.Z,{className:"ml-auto"})]})}).displayName=r.fF.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.tu,{ref:t,className:(0,l.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s})}).displayName=r.tu.displayName;let f=s.forwardRef((e,t)=>{let{className:a,sideOffset:s=4,...o}=e;return(0,n.jsx)(r.Uv,{children:(0,n.jsx)(r.VY,{ref:t,sideOffset:s,className:(0,l.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})})});f.displayName=r.VY.displayName;let h=s.forwardRef((e,t)=>{let{className:a,inset:s,...o}=e;return(0,n.jsx)(r.ck,{ref:t,className:(0,l.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",s&&"pl-8",a),...o})});h.displayName=r.ck.displayName,s.forwardRef((e,t)=>{let{className:a,children:s,checked:o,...d}=e;return(0,n.jsxs)(r.oC,{ref:t,className:(0,l.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:o,...d,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(r.wU,{children:(0,n.jsx)(i.Z,{className:"h-4 w-4"})})}),s]})}).displayName=r.oC.displayName,s.forwardRef((e,t)=>{let{className:a,children:s,...o}=e;return(0,n.jsxs)(r.Rk,{ref:t,className:(0,l.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...o,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(r.wU,{children:(0,n.jsx)(d.Z,{className:"h-2 w-2 fill-current"})})}),s]})}).displayName=r.Rk.displayName,s.forwardRef((e,t)=>{let{className:a,inset:s,...o}=e;return(0,n.jsx)(r.__,{ref:t,className:(0,l.cn)("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",a),...o})}).displayName=r.__.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.Z0,{ref:t,className:(0,l.cn)("-mx-1 my-1 h-px bg-muted",a),...s})}).displayName=r.Z0.displayName},86763:function(e,t,a){a.d(t,{pm:function(){return m}});var n=a(2265);let s=0,r=new Map,o=e=>{if(r.has(e))return;let t=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?o(a):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],l={toasts:[]};function c(e){l=i(l,e),d.forEach(e=>{e(l)})}function u(e){let{...t}=e,a=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||n()}}}),{id:a,dismiss:n,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=n.useState(l);return n.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},49354:function(e,t,a){a.d(t,{cn:function(){return r}}),a(2265);var n=a(44839),s=a(78077);function r(){for(var e=arguments.length,t=Array(e),a=0;a{if(e!==m){f(e);let n="/".concat(e).concat(a.substring(3));t.push(n)}},x=null===(e=u.find(e=>e.code===m))||void 0===e?void 0:e.flag;return(0,n.jsxs)(o.h_,{children:[(0,n.jsx)(o.$F,{asChild:!0,className:"!m-0",children:(0,n.jsxs)(i.z,{variant:"outline",className:"flex items-center gap-2",children:[(0,n.jsx)(l.default,{src:x||"/flags/gb.svg",alt:"".concat(m," flag"),width:20,height:20,className:"rounded-sm object-cover",unoptimized:!0}),(0,n.jsx)("span",{children:"string"==typeof m?m.toUpperCase():m[0].toUpperCase()}),(0,n.jsx)(d.Z,{className:"h-4 w-4"})]})}),(0,n.jsx)(o.AW,{align:"end",className:"w-40",children:(0,n.jsx)(o.Qk,{children:u.map(e=>(0,n.jsxs)(o.Xi,{onClick:()=>h(e.code),className:"flex items-center gap-2",children:[(0,n.jsx)(l.default,{src:e.flag,alt:"".concat(e.code," flag"),width:20,height:20,className:"rounded-sm object-cover",unoptimized:!0}),e.label]},e.code))})})]})}},8985:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return S}});var n=a(7437),s=a(8587),r=a.n(s),o=a(968),i=a(8087),d=a(6463),l=a(6648),c=a(7138),u=a(9733),m=a(1615),f=a(9354),h=a(2265),x=a(7668),p=a(3027),g=a(2421);let v=h.forwardRef((e,t)=>{let{className:a,children:s,...r}=e;return(0,n.jsxs)(x.fC,{ref:t,className:(0,f.cn)("relative z-10 flex max-w-max flex-1 items-center justify-center",a),...r,children:[s,(0,n.jsx)(T,{})]})});v.displayName=x.fC.displayName;let w=h.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(x.aV,{ref:t,className:(0,f.cn)("group flex flex-1 list-none items-center justify-center space-x-1",a),...s})});w.displayName=x.aV.displayName;let j=x.ck,N=(0,p.j)("group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),b=h.forwardRef((e,t)=>{let{className:a,children:s,...r}=e;return(0,n.jsxs)(x.xz,{ref:t,className:(0,f.cn)(N(),"group",a),...r,children:[s," ",(0,n.jsx)(g.Z,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"})]})});b.displayName=x.xz.displayName;let y=h.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(x.VY,{ref:t,className:(0,f.cn)("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",a),...s})});y.displayName=x.VY.displayName;let k=x.rU,T=h.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)("div",{className:(0,f.cn)("absolute left-0 top-full flex justify-center"),children:(0,n.jsx)(x.l_,{className:(0,f.cn)("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",a),ref:t,...s})})});T.displayName=x.l_.displayName,h.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(x.z$,{ref:t,className:(0,f.cn)("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",a),...s,children:(0,n.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})}).displayName=x.z$.displayName;var _=a(6763),z=a(1553),A=a(1100);let C={chainId:"0x6e7a",chainName:"Aplo Network",rpcUrls:["https://pub1.aplocoin.com"],nativeCurrency:{name:"GAPLO",symbol:"GAPLO",decimals:18}};function S(){let e=(0,i.useTranslations)("Menu"),t=(0,d.usePathname)().substring(1,3),{toast:a}=(0,_.pm)(),s=async()=>{try{if(!window.ethereum)return;await window.ethereum.request({method:"wallet_addEthereumChain",params:[C]}),a({title:e("success"),description:e("networkAdded")})}catch(t){a({variant:"destructive",title:e("error"),description:t.message})}},h=async()=>{try{return await window.ethereum.request({method:"eth_chainId"})}catch(e){return null}},x=async()=>{try{if(!window.ethereum)return!1;if(await h()===C.chainId)return!0;return await window.ethereum.request({method:"wallet_switchEthereumChain",params:[{chainId:C.chainId}]}),a({title:e("success"),description:e("networkSwitched")}),!0}catch(t){if(4902===t.code)try{return await s(),await window.ethereum.request({method:"wallet_switchEthereumChain",params:[{chainId:C.chainId}]}),!0}catch(t){return a({variant:"destructive",title:e("error"),description:t.message}),!1}return a({variant:"destructive",title:e("error"),description:t.message}),!1}},p=async(t,n)=>{try{if(!window.ethereum)return;if(!await x()){a({variant:"destructive",title:e("error"),description:e("switchNetworkFirst")});return}if(await h()!==C.chainId){a({variant:"destructive",title:e("error"),description:e("wrongNetwork")});return}await window.ethereum.request({method:"wallet_watchAsset",params:{type:"ERC20",options:{address:t,symbol:n,decimals:18}}}),a({title:e("success"),description:e("tokenAdded")})}catch(t){a({variant:"destructive",title:e("error"),description:t.message})}};return(0,n.jsx)("div",{style:{paddingLeft:"clamp(4vw, 9vw, 10.55vw)",paddingRight:"clamp(4vw, 9vw, 10.55vw)",maxWidth:"100vw"},children:(0,n.jsxs)("div",{className:"flex flex-row justify-between min-[6.83vh] mt-[8.49vh] mb-[1.56vh] shadow-sm bg-secondary px-[2.01vw] py-[4px]",children:[(0,n.jsxs)("div",{className:"flex flex-row items-center",children:[(0,n.jsx)(c.default,{href:"/".concat(t),children:(0,n.jsx)(l.default,{src:"/menu/logo.png",width:64,height:64,alt:"AploCoin logo",className:"mr-4 cursor-pointer"})}),(0,n.jsx)("div",{className:"flex flex-row items-center ".concat(r()["".concat(t,"-lang")]),children:(0,n.jsx)(v,{children:(0,n.jsxs)(w,{children:[(0,n.jsxs)(j,{children:[(0,n.jsx)(b,{children:e("crypto")}),(0,n.jsx)(y,{children:(0,n.jsxs)("ul",{className:"grid gap-3 p-4 md:w-[400px] lg:w-[500px] lg:grid-cols-[.75fr_1fr]",children:[(0,n.jsx)("li",{className:"row-span-3",children:(0,n.jsx)(k,{asChild:!0,children:(0,n.jsxs)("a",{className:"flex h-full w-full select-none flex-col justify-end rounded-md p-6 no-underline outline-none focus:shadow-md bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",href:"/".concat(t,"/mining-aplo"),children:[(0,n.jsx)(z.Z,{className:"h-6 w-6"}),(0,n.jsx)("div",{className:"mb-2 mt-4 text-lg font-medium",children:e("mining")}),(0,n.jsx)("p",{className:"text-sm leading-tight text-muted-foreground",children:e("start-mining")})]})})}),(0,n.jsx)("li",{className:"col-span-1",children:(0,n.jsx)(k,{asChild:!0,children:(0,n.jsx)(u.z,{variant:"outline",onClick:s,className:(0,f.cn)("h-auto w-full block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-left"),children:(0,n.jsx)("div",{className:"text-sm font-medium leading-none",children:e("addNetwork")})})})}),(0,n.jsx)("li",{className:"col-span-1",children:(0,n.jsx)(k,{asChild:!0,children:(0,n.jsxs)(u.z,{variant:"outline",onClick:()=>{p("0x0000000000000000000000000000000000001235","APLO")},className:(0,f.cn)("h-auto w-full block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-left"),children:[(0,n.jsx)("div",{className:"text-sm font-medium leading-none",children:e("addAploToken")}),(0,n.jsx)("p",{className:"text-sm font-normal leading-tight text-muted-foreground",children:"TEST"})]})})}),(0,n.jsx)("li",{className:"col-span-1",children:(0,n.jsx)(k,{asChild:!0,children:(0,n.jsxs)(u.z,{variant:"outline",onClick:()=>{p("0x0000000000000000000000000000000000001234","GAPLO")},className:(0,f.cn)("h-auto w-full block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-left"),children:[(0,n.jsx)("div",{className:"text-sm font-medium leading-none",children:e("addGaploToken")}),(0,n.jsx)("p",{className:"text-sm font-normal leading-tight text-muted-foreground",children:"TEST"})]})})})]})})]}),(0,n.jsxs)(j,{children:[(0,n.jsx)(b,{children:e("aboutAplo")}),(0,n.jsx)(y,{children:(0,n.jsxs)("ul",{className:"grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px]",style:{gridAutoFlow:"dense"},children:[(0,n.jsx)("li",{className:"row-span-3",children:(0,n.jsx)(k,{asChild:!0,children:(0,n.jsxs)("a",{className:"flex h-full w-full select-none flex-col justify-end rounded-md p-6 no-underline outline-none focus:shadow-md bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground",href:"/".concat(t,"/what-is-aplo"),children:[(0,n.jsx)(A.Z,{className:"h-6 w-6"}),(0,n.jsx)("div",{className:"mb-2 mt-4 text-lg font-medium",children:e("whatIsAplo")}),(0,n.jsx)("p",{className:"text-sm leading-tight text-muted-foreground",children:"TEST"})]})})}),(0,n.jsx)(k,{asChild:!0,children:(0,n.jsx)(c.default,{href:"/".concat(t,"/faq"),passHref:!0,children:(0,n.jsxs)(u.z,{variant:"outline",className:(0,f.cn)("h-auto w-full block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-left"),children:[(0,n.jsx)("div",{className:"text-sm font-medium leading-none",children:e("faq")}),(0,n.jsx)("p",{className:"text-sm font-normal leading-tight text-muted-foreground",children:"TEST"})]})})}),(0,n.jsx)(k,{asChild:!0,children:(0,n.jsx)(c.default,{href:"/".concat(t,"/about-aplo"),passHref:!0,children:(0,n.jsxs)(u.z,{variant:"outline",className:(0,f.cn)("h-auto w-full block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-left"),children:[(0,n.jsx)("div",{className:"text-sm font-medium leading-none",children:e("about")}),(0,n.jsx)("p",{className:"text-sm font-normal leading-tight text-muted-foreground",children:"TEST"})]})})}),(0,n.jsx)(k,{asChild:!0,children:(0,n.jsx)(c.default,{href:"/".concat(t,"/user-guides"),passHref:!0,children:(0,n.jsxs)(u.z,{variant:"outline",className:(0,f.cn)("h-auto w-full block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-left"),children:[(0,n.jsx)("div",{className:"text-sm font-medium leading-none",children:e("userGuides")}),(0,n.jsx)("p",{className:"text-sm font-normal leading-tight text-muted-foreground",children:"TEST"})]})})})]})})]}),(0,n.jsx)(j,{children:(0,n.jsx)(c.default,{href:"/".concat(t,"/roadmap"),legacyBehavior:!0,passHref:!0,children:(0,n.jsx)(k,{className:N(),children:e("roadmap")})})})]})})})]}),(0,n.jsxs)("div",{className:"flex flex-row items-center gap-4",children:[(0,n.jsx)(u.z,{className:"mr-[1.385vw]",children:(0,n.jsx)(c.default,{href:"/".concat(t,"/donate-aplo-project"),children:e("donate")})}),(0,n.jsx)(o.Z,{}),(0,n.jsx)(m.O,{})]})]})})}},1615:function(e,t,a){"use strict";a.d(t,{O:function(){return l}});var n=a(7437),s=a(8296),r=a(2699),o=a(9512),i=a(9733),d=a(1590);function l(){let{setTheme:e}=(0,o.F)();return(0,n.jsxs)(d.h_,{children:[(0,n.jsx)(d.$F,{asChild:!0,children:(0,n.jsxs)(i.z,{variant:"outline",size:"icon",children:[(0,n.jsx)(s.Z,{className:"h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),(0,n.jsx)(r.Z,{className:"absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),(0,n.jsx)("span",{className:"sr-only",children:"Toggle theme"})]})}),(0,n.jsxs)(d.AW,{align:"end",children:[(0,n.jsx)(d.Xi,{onClick:()=>e("light"),children:"Light"}),(0,n.jsx)(d.Xi,{onClick:()=>e("dark"),children:"Dark"}),(0,n.jsx)(d.Xi,{onClick:()=>e("system"),children:"System"})]})]})}},9733:function(e,t,a){"use strict";a.d(t,{z:function(){return l}});var n=a(7437),s=a(2265),r=a(1538),o=a(3027),i=a(9354);let d=(0,o.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),l=s.forwardRef((e,t)=>{let{className:a,variant:s,size:o,asChild:l=!1,...c}=e,u=l?r.g7:"button";return(0,n.jsx)(u,{className:(0,i.cn)(d({variant:s,size:o,className:a})),ref:t,...c})});l.displayName="Button"},1590:function(e,t,a){"use strict";a.d(t,{$F:function(){return u},AW:function(){return f},Qk:function(){return m},Xi:function(){return h},h_:function(){return c}});var n=a(7437),s=a(2265),r=a(1438),o=a(7592),i=a(2468),d=a(8165),l=a(9354);let c=r.fC,u=r.xz,m=r.ZA;r.Uv,r.Tr,r.Ee,s.forwardRef((e,t)=>{let{className:a,inset:s,children:i,...d}=e;return(0,n.jsxs)(r.fF,{ref:t,className:(0,l.cn)("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",s&&"pl-8",a),...d,children:[i,(0,n.jsx)(o.Z,{className:"ml-auto"})]})}).displayName=r.fF.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.tu,{ref:t,className:(0,l.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s})}).displayName=r.tu.displayName;let f=s.forwardRef((e,t)=>{let{className:a,sideOffset:s=4,...o}=e;return(0,n.jsx)(r.Uv,{children:(0,n.jsx)(r.VY,{ref:t,sideOffset:s,className:(0,l.cn)("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})})});f.displayName=r.VY.displayName;let h=s.forwardRef((e,t)=>{let{className:a,inset:s,...o}=e;return(0,n.jsx)(r.ck,{ref:t,className:(0,l.cn)("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",s&&"pl-8",a),...o})});h.displayName=r.ck.displayName,s.forwardRef((e,t)=>{let{className:a,children:s,checked:o,...d}=e;return(0,n.jsxs)(r.oC,{ref:t,className:(0,l.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),checked:o,...d,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(r.wU,{children:(0,n.jsx)(i.Z,{className:"h-4 w-4"})})}),s]})}).displayName=r.oC.displayName,s.forwardRef((e,t)=>{let{className:a,children:s,...o}=e;return(0,n.jsxs)(r.Rk,{ref:t,className:(0,l.cn)("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...o,children:[(0,n.jsx)("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,n.jsx)(r.wU,{children:(0,n.jsx)(d.Z,{className:"h-2 w-2 fill-current"})})}),s]})}).displayName=r.Rk.displayName,s.forwardRef((e,t)=>{let{className:a,inset:s,...o}=e;return(0,n.jsx)(r.__,{ref:t,className:(0,l.cn)("px-2 py-1.5 text-sm font-semibold",s&&"pl-8",a),...o})}).displayName=r.__.displayName,s.forwardRef((e,t)=>{let{className:a,...s}=e;return(0,n.jsx)(r.Z0,{ref:t,className:(0,l.cn)("-mx-1 my-1 h-px bg-muted",a),...s})}).displayName=r.Z0.displayName},6763:function(e,t,a){"use strict";a.d(t,{pm:function(){return m}});var n=a(2265);let s=0,r=new Map,o=e=>{if(r.has(e))return;let t=setTimeout(()=>{r.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);r.set(e,t)},i=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:a}=t;return a?o(a):e.toasts.forEach(e=>{o(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===a||void 0===a?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],l={toasts:[]};function c(e){l=i(l,e),d.forEach(e=>{e(l)})}function u(e){let{...t}=e,a=(s=(s+1)%Number.MAX_SAFE_INTEGER).toString(),n=()=>c({type:"DISMISS_TOAST",toastId:a});return c({type:"ADD_TOAST",toast:{...t,id:a,open:!0,onOpenChange:e=>{e||n()}}}),{id:a,dismiss:n,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function m(){let[e,t]=n.useState(l);return n.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},9354:function(e,t,a){"use strict";a.d(t,{cn:function(){return r}}),a(2265);var n=a(4839),s=a(8077);function r(){for(var e=arguments.length,t=Array(e),a=0;a(u=(a=Math.ceil(h/7))>u?a+1:u+1)&&(o=u,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((u=l.length)-(o=c.length)<0&&(o=u,n=c,c=l,l=n),r=0;o;)r=(l[--o]=l[o]+c[o]+r)/1e7|0,l[o]%=1e7;for(r&&(l.unshift(r),++i),u=l.length;0==l[--u];)l.pop();return e.d=l,e.e=i,s?S(e,h):e}function m(t,e,r){if(t!==~~t||tr)throw Error(l+t)}function v(t){var e,r,n,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;et.e^this.s<0?1:-1;for(e=0,r=(n=this.d.length)<(i=t.d.length)?n:i;et.d[e]^this.s<0?1:-1;return n===i?0:n>i^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},y.dividedBy=y.div=function(t){return b(this,new this.constructor(t))},y.dividedToIntegerBy=y.idiv=function(t){var e=this.constructor;return S(b(this,new e(t),0,1),e.precision)},y.equals=y.eq=function(t){return!this.cmp(t)},y.exponent=function(){return x(this)},y.greaterThan=y.gt=function(t){return this.cmp(t)>0},y.greaterThanOrEqualTo=y.gte=function(t){return this.cmp(t)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(t){return 0>this.cmp(t)},y.lessThanOrEqualTo=y.lte=function(t){return 1>this.cmp(t)},y.logarithm=y.log=function(t){var e,r=this.constructor,n=r.precision,i=n+5;if(void 0===t)t=new r(10);else if((t=new r(t)).s<1||t.eq(o))throw Error(u+"NaN");if(this.s<1)throw Error(u+(this.s?"NaN":"-Infinity"));return this.eq(o)?new r(0):(s=!1,e=b(E(this,i),E(t,i),i),s=!0,S(e,n))},y.minus=y.sub=function(t){return t=new this.constructor(t),this.s==t.s?k(this,t):g(this,(t.s=-t.s,t))},y.modulo=y.mod=function(t){var e,r=this.constructor,n=r.precision;if(!(t=new r(t)).s)throw Error(u+"NaN");return this.s?(s=!1,e=b(this,t,0,1).times(t),s=!0,this.minus(e)):S(new r(this),n)},y.naturalExponential=y.exp=function(){return w(this)},y.naturalLogarithm=y.ln=function(){return E(this)},y.negated=y.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},y.plus=y.add=function(t){return t=new this.constructor(t),this.s==t.s?g(this,t):k(this,(t.s=-t.s,t))},y.precision=y.sd=function(t){var e,r,n;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(l+t);if(e=x(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;n/=10)r++}return t&&e>r?e:r},y.squareRoot=y.sqrt=function(){var t,e,r,n,i,o,a,l=this.constructor;if(this.s<1){if(!this.s)return new l(0);throw Error(u+"NaN")}for(t=x(this),s=!1,0==(i=Math.sqrt(+this))||i==1/0?(((e=v(this.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),n=new l(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):n=new l(i.toString()),i=a=(r=l.precision)+3;;)if(n=(o=n).plus(b(this,o,a+2)).times(.5),v(o.d).slice(0,a)===(e=v(n.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(S(o,r+1,0),o.times(o).eq(this)){n=o;break}}else if("9999"!=e)break;a+=4}return s=!0,S(n,r)},y.times=y.mul=function(t){var e,r,n,i,o,a,u,l,c,f=this.constructor,h=this.d,p=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,r=this.e+t.e,(l=h.length)<(c=p.length)&&(o=h,h=p,p=o,a=l,l=c,c=a),o=[],n=a=l+c;n--;)o.push(0);for(n=c;--n>=0;){for(e=0,i=l+n;i>n;)u=o[i]+p[n]*h[i-n-1]+e,o[i--]=u%1e7|0,e=u/1e7|0;o[i]=(o[i]+e)%1e7|0}for(;!o[--a];)o.pop();return e?++r:o.shift(),t.d=o,t.e=r,s?S(t,f.precision):t},y.toDecimalPlaces=y.todp=function(t,e){var r=this,n=r.constructor;return(r=new n(r),void 0===t)?r:(m(t,0,1e9),void 0===e?e=n.rounding:m(e,0,8),S(r,t+x(r)+1,e))},y.toExponential=function(t,e){var r,n=this,i=n.constructor;return void 0===t?r=j(n,!0):(m(t,0,1e9),void 0===e?e=i.rounding:m(e,0,8),r=j(n=S(new i(n),t+1,e),!0,t+1)),r},y.toFixed=function(t,e){var r,n,i=this.constructor;return void 0===t?j(this):(m(t,0,1e9),void 0===e?e=i.rounding:m(e,0,8),r=j((n=S(new i(this),t+x(this)+1,e)).abs(),!1,t+x(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},y.toInteger=y.toint=function(){var t=this.constructor;return S(new t(this),x(this)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(t){var e,r,n,i,a,l,c=this,h=c.constructor,p=+(t=new h(t));if(!t.s)return new h(o);if(!(c=new h(c)).s){if(t.s<1)throw Error(u+"Infinity");return c}if(c.eq(o))return c;if(n=h.precision,t.eq(o))return S(c,n);if(l=(e=t.e)>=(r=t.d.length-1),a=c.s,l){if((r=p<0?-p:p)<=9007199254740991){for(i=new h(o),e=Math.ceil(n/7+4),s=!1;r%2&&T((i=i.times(c)).d,e),0!==(r=f(r/2));)T((c=c.times(c)).d,e);return s=!0,t.s<0?new h(o).div(i):S(i,n)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&t.d[Math.max(e,r)]?-1:1,c.s=1,s=!1,i=t.times(E(c,n+12)),s=!0,(i=w(i)).s=a,i},y.toPrecision=function(t,e){var r,n,i=this,o=i.constructor;return void 0===t?(r=x(i),n=j(i,r<=o.toExpNeg||r>=o.toExpPos)):(m(t,1,1e9),void 0===e?e=o.rounding:m(e,0,8),r=x(i=S(new o(i),t,e)),n=j(i,t<=r||r<=o.toExpNeg,t)),n},y.toSignificantDigits=y.tosd=function(t,e){var r=this.constructor;return void 0===t?(t=r.precision,e=r.rounding):(m(t,1,1e9),void 0===e?e=r.rounding:m(e,0,8)),S(new r(this),t,e)},y.toString=y.valueOf=y.val=y.toJSON=function(){var t=x(this),e=this.constructor;return j(this,t<=e.toExpNeg||t>=e.toExpPos)};var b=function(){function t(t,e){var r,n=0,i=t.length;for(t=t.slice();i--;)r=t[i]*e+n,t[i]=r%1e7|0,n=r/1e7|0;return n&&t.unshift(n),t}function e(t,e,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function r(t,e,r){for(var n=0;r--;)t[r]-=n,n=t[r]1;)t.shift()}return function(n,i,o,a){var s,l,c,f,h,p,d,y,g,m,v,b,w,A,O,E,P,k,j=n.constructor,T=n.s==i.s?1:-1,N=n.d,C=i.d;if(!n.s)return new j(n);if(!i.s)throw Error(u+"Division by zero");for(c=0,l=n.e-i.e,P=C.length,O=N.length,y=(d=new j(T)).d=[];C[c]==(N[c]||0);)++c;if(C[c]>(N[c]||0)&&--l,(b=null==o?o=j.precision:a?o+(x(n)-x(i))+1:o)<0)return new j(0);if(b=b/7+2|0,c=0,1==P)for(f=0,C=C[0],b++;(c1&&(C=t(C,f),N=t(N,f),P=C.length,O=N.length),A=P,m=(g=N.slice(0,P)).length;m=1e7/2&&++E;do f=0,(s=e(C,g,P,m))<0?(v=g[0],P!=m&&(v=1e7*v+(g[1]||0)),(f=v/E|0)>1?(f>=1e7&&(f=1e7-1),p=(h=t(C,f)).length,m=g.length,1==(s=e(h,g,p,m))&&(f--,r(h,P
16)throw Error(c+x(t));if(!t.s)return new p(o);for(null==e?(s=!1,u=d):u=e,a=new p(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(u+=Math.log(h(2,f))/Math.LN10*2+5|0,r=n=i=new p(o),p.precision=u;;){if(n=S(n.times(t),u),r=r.times(++l),v((a=i.plus(b(n,r,u))).d).slice(0,u)===v(i.d).slice(0,u)){for(;f--;)i=S(i.times(i),u);return p.precision=d,null==e?(s=!0,S(i,d)):i}i=a}}function x(t){for(var e=7*t.e,r=t.d[0];r>=10;r/=10)e++;return e}function A(t,e,r){if(e>t.LN10.sd())throw s=!0,r&&(t.precision=r),Error(u+"LN10 precision limit exceeded");return S(new t(t.LN10),e)}function O(t){for(var e="";t--;)e+="0";return e}function E(t,e){var r,n,i,a,l,c,f,h,p,d=1,y=t,g=y.d,m=y.constructor,w=m.precision;if(y.s<1)throw Error(u+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new m(0);if(null==e?(s=!1,h=w):h=e,y.eq(10))return null==e&&(s=!0),A(m,h);if(h+=10,m.precision=h,n=(r=v(g)).charAt(0),!(15e14>Math.abs(a=x(y))))return f=A(m,h+2,w).times(a+""),y=E(new m(n+"."+r.slice(1)),h-10).plus(f),m.precision=w,null==e?(s=!0,S(y,w)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=v((y=y.times(t)).d)).charAt(0),d++;for(a=x(y),n>1?(y=new m("0."+r),a++):y=new m(n+"."+r.slice(1)),c=l=y=b(y.minus(o),y.plus(o),h),p=S(y.times(y),h),i=3;;){if(l=S(l.times(p),h),v((f=c.plus(b(l,new m(i),h))).d).slice(0,h)===v(c.d).slice(0,h))return c=c.times(2),0!==a&&(c=c.plus(A(m,h+2,w).times(a+""))),c=b(c,new m(d),h),m.precision=w,null==e?(s=!0,S(c,w)):c;c=f,i+=2}}function P(t,e){var r,n,i;for((r=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(r<0&&(r=n),r+=+e.slice(n+1),e=e.substring(0,n)):r<0&&(r=e.length),n=0;48===e.charCodeAt(n);)++n;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(n,i)){if(i-=n,r=r-n-1,t.e=f(r/7),t.d=[],n=(r+1)%7,r<0&&(n+=7),nd||t.e<-d))throw Error(c+r)}else t.s=0,t.e=0,t.d=[0];return t}function S(t,e,r){var n,i,o,a,u,l,p,y,g=t.d;for(a=1,o=g[0];o>=10;o/=10)a++;if((n=e-a)<0)n+=7,i=e,p=g[y=0];else{if((y=Math.ceil((n+1)/7))>=(o=g.length))return t;for(a=1,p=o=g[y];o>=10;o/=10)a++;n%=7,i=n-7+a}if(void 0!==r&&(u=p/(o=h(10,a-i-1))%10|0,l=e<0||void 0!==g[y+1]||p%o,l=r<4?(u||l)&&(0==r||r==(t.s<0?3:2)):u>5||5==u&&(4==r||l||6==r&&(n>0?i>0?p/h(10,a-i):0:g[y-1])%10&1||r==(t.s<0?8:7))),e<1||!g[0])return l?(o=x(t),g.length=1,e=e-o-1,g[0]=h(10,(7-e%7)%7),t.e=f(-e/7)||0):(g.length=1,g[0]=t.e=t.s=0),t;if(0==n?(g.length=y,o=1,y--):(g.length=y+1,o=h(10,7-n),g[y]=i>0?(p/h(10,a-i)%h(10,i)|0)*o:0),l)for(;;){if(0==y){1e7==(g[0]+=o)&&(g[0]=1,++t.e);break}if(g[y]+=o,1e7!=g[y])break;g[y--]=0,o=1}for(n=g.length;0===g[--n];)g.pop();if(s&&(t.e>d||t.e<-d))throw Error(c+x(t));return t}function k(t,e){var r,n,i,o,a,u,l,c,f,h,p=t.constructor,d=p.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new p(t),s?S(e,d):e;if(l=t.d,h=e.d,n=e.e,c=t.e,l=l.slice(),a=c-n){for((f=a<0)?(r=l,a=-a,u=h.length):(r=h,n=c,u=l.length),a>(i=Math.max(Math.ceil(d/7),u)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for((f=(i=l.length)<(u=h.length))&&(u=i),i=0;i0;--i)l[u++]=0;for(i=h.length;i>a;){if(l[--i]0?o=o.charAt(0)+"."+o.slice(1)+O(n):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+O(-i-1)+o,r&&(n=r-a)>0&&(o+=O(n))):i>=a?(o+=O(i+1-a),r&&(n=r-i-1)>0&&(o=o+"."+O(n))):((n=i+1)0&&(i+1===a&&(o+="."),o+=O(n))),t.s<0?"-"+o:o}function T(t,e){if(t.length>e)return t.length=e,!0}function N(t){if(!t||"object"!=typeof t)throw Error(u+"Object expected");var e,r,n,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=i[e+1]&&n<=i[e+2])this[r]=n;else throw Error(l+r+": "+n)}if(void 0!==(n=t[r="LN10"])){if(n==Math.LN10)this[r]=new this(n);else throw Error(l+r+": "+n)}return this}(a=function t(e){var r,n,i;function o(t){if(!(this instanceof o))return new o(t);if(this.constructor=o,t instanceof o){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return P(this,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,p.test(t))P(this,t);else throw Error(l+t)}if(o.prototype=y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=N,void 0===e&&(e={}),e)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","LN10"];r-1}},10079:function(t){t.exports=function(t,e,r){for(var n=-1,i=null==t?0:t.length;++n0&&o(c)?r>1?t(c,r-1,o,a,s):n(s,c):a||(s[s.length]=c)}return s}},60404:function(t,e,r){var n=r(72994)();t.exports=n},97385:function(t,e,r){var n=r(60404),i=r(63815);t.exports=function(t,e){return t&&n(t,e,i)}},29013:function(t,e,r){var n=r(57442),i=r(83863);t.exports=function(t,e){e=n(e,t);for(var r=0,o=e.length;null!=t&&re}},80444:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},48911:function(t,e,r){var n=r(21933),i=r(74680),o=r(13708);t.exports=function(t,e,r){return e==e?o(t,e,r):n(t,i,r)}},35194:function(t,e,r){var n=r(12731),i=r(50561);t.exports=function(t){return i(t)&&"[object Arguments]"==n(t)}},43277:function(t,e,r){var n=r(36529),i=r(50561);t.exports=function t(e,r,o,a,s){return e===r||(null!=e&&null!=r&&(i(e)||i(r))?n(e,r,o,a,t,s):e!=e&&r!=r)}},36529:function(t,e,r){var n=r(45989),i=r(48648),o=r(88264),a=r(44024),s=r(14995),u=r(60443),l=r(46551),c=r(78470),f="[object Arguments]",h="[object Array]",p="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,y,g,m){var v=u(t),b=u(e),w=v?h:s(t),x=b?h:s(e);w=w==f?p:w,x=x==f?p:x;var A=w==p,O=x==p,E=w==x;if(E&&l(t)){if(!l(e))return!1;v=!0,A=!1}if(E&&!A)return m||(m=new n),v||c(t)?i(t,e,r,y,g,m):o(t,e,w,r,y,g,m);if(!(1&r)){var P=A&&d.call(t,"__wrapped__"),S=O&&d.call(e,"__wrapped__");if(P||S){var k=P?t.value():t,j=S?e.value():e;return m||(m=new n),g(k,j,r,y,m)}}return!!E&&(m||(m=new n),a(t,e,r,y,g,m))}},29912:function(t,e,r){var n=r(45989),i=r(43277);t.exports=function(t,e,r,o){var a=r.length,s=a,u=!o;if(null==t)return!s;for(t=Object(t);a--;){var l=r[a];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++ai?0:i+e),(r=r>i?i:r)<0&&(r+=i),i=e>r?0:r-e>>>0,e>>>=0;for(var o=Array(i);++n=200){var y=e?null:s(t);if(y)return u(y);h=!1,c=a,d=new n}else d=e?[]:p;t:for(;++l=i?t:n(t,e,r)}},43425:function(t,e,r){var n=r(41108);t.exports=function(t,e){if(t!==e){var r=void 0!==t,i=null===t,o=t==t,a=n(t),s=void 0!==e,u=null===e,l=e==e,c=n(e);if(!u&&!c&&!a&&t>e||a&&s&&l&&!u&&!c||i&&s&&l||!r&&l||!o)return 1;if(!i&&!a&&!c&&t=u)return l;return l*("desc"==r[i]?-1:1)}}return t.index-e.index}},45704:function(t,e,r){var n=r(2381)["__core-js_shared__"];t.exports=n},23045:function(t,e,r){var n=r(17806);t.exports=function(t,e){return function(r,i){if(null==r)return r;if(!n(r))return t(r,i);for(var o=r.length,a=e?o:-1,s=Object(r);(e?a--:++a-1?s[u?e[l]:l]:void 0}}},39105:function(t,e,r){var n=r(44901),i=r(60679),o=r(42126);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&i(e,r,a)&&(r=a=void 0),e=o(e),void 0===r?(r=e,e=0):r=o(r),a=void 0===a?ec))return!1;var h=u.get(t),p=u.get(e);if(h&&p)return h==e&&p==t;var d=-1,y=!0,g=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++d-1&&t%1==0&&t-1}},97126:function(t,e,r){var n=r(22162);t.exports=function(t,e){var r=this.__data__,i=n(r,t);return i<0?(++this.size,r.push([t,e])):r[i][1]=e,this}},59752:function(t,e,r){var n=r(70266),i=r(57115),o=r(77970);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||i),string:new n}}},20170:function(t,e,r){var n=r(58035);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},41069:function(t,e,r){var n=r(58035);t.exports=function(t){return n(this,t).get(t)}},28690:function(t,e,r){var n=r(58035);t.exports=function(t){return n(this,t).has(t)}},27323:function(t,e,r){var n=r(58035);t.exports=function(t,e){var r=n(this,t),i=r.size;return r.set(t,e),this.size+=r.size==i?0:1,this}},14774:function(t){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach(function(t,n){r[++e]=[n,t]}),r}},91378:function(t){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},95325:function(t,e,r){var n=r(89830);t.exports=function(t){var e=n(t,function(t){return 500===r.size&&r.clear(),t}),r=e.cache;return e}},91850:function(t,e,r){var n=r(19044)(Object,"create");t.exports=n},93022:function(t,e,r){var n=r(23794)(Object.keys,Object);t.exports=n},28079:function(t,e,r){t=r.nmd(t);var n=r(93330),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&n.process,s=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s},68391:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},23794:function(t){t.exports=function(t,e){return function(r){return t(e(r))}}},95694:function(t,e,r){var n=r(98266),i=Math.max;t.exports=function(t,e,r){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),u=Array(s);++a0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},24683:function(t,e,r){var n=r(57115);t.exports=function(){this.__data__=new n,this.size=0}},34813:function(t){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},35115:function(t){t.exports=function(t){return this.__data__.get(t)}},28199:function(t){t.exports=function(t){return this.__data__.has(t)}},58644:function(t,e,r){var n=r(57115),i=r(77970),o=r(8705);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(t,e),this.size=r.size,this}},13708:function(t){t.exports=function(t,e,r){for(var n=r-1,i=t.length;++n=e||r<0||g&&n>=c}function w(){var t,r,n,o=i();if(b(o))return x(o);h=setTimeout(w,(t=o-p,r=o-d,n=e-t,g?s(n,c-r):n))}function x(t){return(h=void 0,m&&u)?v(t):(u=l=void 0,f)}function A(){var t,r=i(),n=b(r);if(u=arguments,l=this,p=r,n){if(void 0===h)return d=t=p,h=setTimeout(w,e),y?v(t):f;if(g)return clearTimeout(h),h=setTimeout(w,e),v(p)}return void 0===h&&(h=setTimeout(w,e)),f}return e=o(e)||0,n(r)&&(y=!!r.leading,c=(g="maxWait"in r)?a(o(r.maxWait)||0,e):c,m="trailing"in r?!!r.trailing:m),A.cancel=function(){void 0!==h&&clearTimeout(h),d=0,u=p=l=h=void 0},A.flush=function(){return void 0===h?f:x(i())},A}},27087:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},55118:function(t,e,r){var n=r(90516),i=r(20334),o=r(37942),a=r(60443),s=r(60679);t.exports=function(t,e,r){var u=a(t)?n:i;return r&&s(t,e,r)&&(e=void 0),u(t,o(e,3))}},80203:function(t,e,r){var n=r(43310)(r(11030));t.exports=n},11030:function(t,e,r){var n=r(21933),i=r(37942),o=r(38979),a=Math.max;t.exports=function(t,e,r){var s=null==t?0:t.length;if(!s)return -1;var u=null==r?0:o(r);return u<0&&(u=a(s+u,0)),n(t,i(e,3),u)}},73720:function(t,e,r){var n=r(55648),i=r(7851);t.exports=function(t,e){return n(i(t,e),1)}},97019:function(t,e,r){var n=r(29013);t.exports=function(t,e,r){var i=null==t?void 0:n(t,e);return void 0===i?r:i}},59628:function(t,e,r){var n=r(80444),i=r(48101);t.exports=function(t,e){return null!=t&&i(t,e,n)}},15502:function(t){t.exports=function(t){return t}},6727:function(t,e,r){var n=r(35194),i=r(50561),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return i(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},60443:function(t){var e=Array.isArray;t.exports=e},17806:function(t,e,r){var n=r(14380),i=r(44664);t.exports=function(t){return null!=t&&i(t.length)&&!n(t)}},64337:function(t,e,r){var n=r(12731),i=r(50561);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==n(t)}},46551:function(t,e,r){t=r.nmd(t);var n=r(2381),i=r(35423),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,s=a&&a.exports===o?n.Buffer:void 0,u=s?s.isBuffer:void 0;t.exports=u||i},12916:function(t,e,r){var n=r(43277);t.exports=function(t,e){return n(t,e)}},14380:function(t,e,r){var n=r(12731),i=r(63117);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},44664:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},50299:function(t,e,r){var n=r(60555);t.exports=function(t){return n(t)&&t!=+t}},49972:function(t){t.exports=function(t){return null==t}},60555:function(t,e,r){var n=r(12731),i=r(50561);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==n(t)}},63117:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},50561:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},32999:function(t,e,r){var n=r(12731),i=r(98118),o=r(50561),a=Object.prototype,s=Function.prototype.toString,u=a.hasOwnProperty,l=s.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=n(t))return!1;var e=i(t);if(null===e)return!0;var r=u.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==l}},71519:function(t,e,r){var n=r(12731),i=r(60443),o=r(50561);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==n(t)}},41108:function(t,e,r){var n=r(12731),i=r(50561);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==n(t)}},78470:function(t,e,r){var n=r(13272),i=r(66127),o=r(28079),a=o&&o.isTypedArray,s=a?i(a):n;t.exports=s},63815:function(t,e,r){var n=r(16347),i=r(84238),o=r(17806);t.exports=function(t){return o(t)?n(t):i(t)}},96579:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},7851:function(t,e,r){var n=r(68165),i=r(37942),o=r(28519),a=r(60443);t.exports=function(t,e){return(a(t)?n:o)(t,i(e,3))}},47759:function(t,e,r){var n=r(85330),i=r(97385),o=r(37942);t.exports=function(t,e){var r={};return e=o(e,3),i(t,function(t,i,o){n(r,i,e(t,i,o))}),r}},47766:function(t,e,r){var n=r(77613),i=r(23985),o=r(15502);t.exports=function(t){return t&&t.length?n(t,o,i):void 0}},89830:function(t,e,r){var n=r(8705);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var r=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=t.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},89770:function(t,e,r){var n=r(77613),i=r(49182),o=r(15502);t.exports=function(t){return t&&t.length?n(t,o,i):void 0}},47710:function(t){t.exports=function(){}},49423:function(t,e,r){var n=r(2381);t.exports=function(){return n.Date.now()}},82794:function(t,e,r){var n=r(31358),i=r(65903),o=r(59757),a=r(83863);t.exports=function(t){return o(t)?n(a(t)):i(t)}},37105:function(t,e,r){var n=r(39105)();t.exports=n},13632:function(t,e,r){var n=r(17232),i=r(37942),o=r(73802),a=r(60443),s=r(60679);t.exports=function(t,e,r){var u=a(t)?n:o;return r&&s(t,e,r)&&(e=void 0),u(t,i(e,3))}},60229:function(t,e,r){var n=r(55648),i=r(66738),o=r(48674),a=r(60679),s=o(function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,n(e,1),[])});t.exports=s},61810:function(t){t.exports=function(){return[]}},35423:function(t){t.exports=function(){return!1}},48527:function(t,e,r){var n=r(22170),i=r(63117);t.exports=function(t,e,r){var o=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return i(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),n(t,e,{leading:o,maxWait:e,trailing:a})}},42126:function(t,e,r){var n=r(49666),i=1/0;t.exports=function(t){return t?(t=n(t))===i||t===-i?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},38979:function(t,e,r){var n=r(42126);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},49666:function(t,e,r){var n=r(19334),i=r(63117),o=r(41108),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=n(t);var r=u.test(t);return r||l.test(t)?c(t.slice(2),r?2:8):s.test(t)?a:+t}},61250:function(t,e,r){var n=r(13963);t.exports=function(t){return null==t?"":n(t)}},90374:function(t,e,r){var n=r(37942),i=r(32874);t.exports=function(t,e){return t&&t.length?i(t,n(e,2)):[]}},62637:function(t,e,r){var n=r(58191)("toUpperCase");t.exports=n},99949:function(t,e,r){"use strict";var n=r(88877);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,r,i,o,a){if(a!==n){var s=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 s.name="Invariant Violation",s}}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}},41448:function(t,e,r){t.exports=r(99949)()},88877:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},79005:function(t,e,r){"use strict";r.d(e,{ZP:function(){return tX}});var n=r(2265),i=r(41448),o=r.n(i),a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.prototype.hasOwnProperty;function l(t,e){return function(r,n,i){return t(r,n,i)&&e(r,n,i)}}function c(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 s=t(e,r,n);return i.delete(e),i.delete(r),s}}function f(t){return a(t).concat(s(t))}var h=Object.hasOwn||function(t,e){return u.call(t,e)};function p(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var d="_owner",y=Object.getOwnPropertyDescriptor,g=Object.keys;function m(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 v(t,e){return p(t.getTime(),e.getTime())}function b(t,e,r){if(t.size!==e.size)return!1;for(var n,i,o={},a=t.entries(),s=0;(n=a.next())&&!n.done;){for(var u=e.entries(),l=!1,c=0;(i=u.next())&&!i.done;){var f=n.value,h=f[0],p=f[1],d=i.value,y=d[0],g=d[1];!l&&!o[c]&&(l=r.equals(h,y,s,c,t,e,r)&&r.equals(p,g,h,y,t,e,r))&&(o[c]=!0),c++}if(!l)return!1;s++}return!0}function w(t,e,r){var n,i=g(t),o=i.length;if(g(e).length!==o)return!1;for(;o-- >0;)if((n=i[o])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!h(e,n)||!r.equals(t[n],e[n],n,n,t,e,r))return!1;return!0}function x(t,e,r){var n,i,o,a=f(t),s=a.length;if(f(e).length!==s)return!1;for(;s-- >0;)if((n=a[s])===d&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!h(e,n)||!r.equals(t[n],e[n],n,n,t,e,r)||(i=y(t,n),o=y(e,n),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function A(t,e){return p(t.valueOf(),e.valueOf())}function O(t,e){return t.source===e.source&&t.flags===e.flags}function E(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 s=e.values(),u=!1,l=0;(i=s.next())&&!i.done;)!u&&!o[l]&&(u=r.equals(n.value,i.value,n.value,i.value,t,e,r))&&(o[l]=!0),l++;if(!u)return!1}return!0}function P(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 S=Array.isArray,k="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,j=Object.assign,T=Object.prototype.toString.call.bind(Object.prototype.toString),N=C();function C(t){void 0===t&&(t={});var e,r,n,i,o,a,s,u,f,h=t.circular,p=t.createInternalComparator,d=t.createState,y=t.strict,g=(r=(e=function(t){var e=t.circular,r=t.createCustomConfig,n=t.strict,i={areArraysEqual:n?x:m,areDatesEqual:v,areMapsEqual:n?l(b,x):b,areObjectsEqual:n?x:w,arePrimitiveWrappersEqual:A,areRegExpsEqual:O,areSetsEqual:n?l(E,x):E,areTypedArraysEqual:n?x:P};if(r&&(i=j({},i,r(i))),e){var o=c(i.areArraysEqual),a=c(i.areMapsEqual),s=c(i.areObjectsEqual),u=c(i.areSetsEqual);i=j({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:s,areSetsEqual:u})}return i}(t)).areArraysEqual,n=e.areDatesEqual,i=e.areMapsEqual,o=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,s=e.areRegExpsEqual,u=e.areSetsEqual,f=e.areTypedArraysEqual,function(t,e,l){if(t===e)return!0;if(null==t||null==e||"object"!=typeof t||"object"!=typeof e)return t!=t&&e!=e;var c=t.constructor;if(c!==e.constructor)return!1;if(c===Object)return o(t,e,l);if(S(t))return r(t,e,l);if(null!=k&&k(t))return f(t,e,l);if(c===Date)return n(t,e,l);if(c===RegExp)return s(t,e,l);if(c===Map)return i(t,e,l);if(c===Set)return u(t,e,l);var h=T(t);return"[object Date]"===h?n(t,e,l):"[object RegExp]"===h?s(t,e,l):"[object Map]"===h?i(t,e,l):"[object Set]"===h?u(t,e,l):"[object Object]"===h?"function"!=typeof t.then&&"function"!=typeof e.then&&o(t,e,l):"[object Arguments]"===h?o(t,e,l):("[object Boolean]"===h||"[object Number]"===h||"[object String]"===h)&&a(t,e,l)}),N=p?p(g):function(t,e,r,n,i,o,a){return g(t,e,a)};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 s=n(),u=s.cache;return r(t,a,{cache:void 0===u?e?new WeakMap:void 0:u,equals:i,meta:s.meta,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:void 0!==h&&h,comparator:g,createState:d,equals:N,strict:void 0!==y&&y})}function I(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame(function n(i){if(r<0&&(r=i),i-r>e)t(i),r=-1;else{var o;o=n,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(o)}})}function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",n);var h=q(o,s),p=q(a,u),d=(t=o,e=s,function(r){var n;return K([].concat(function(t){if(Array.isArray(t))return V(t)}(n=Q(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||H(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),r)}),y=function(t){for(var e=t>1?1:t,r=e,n=0;n<8;++n){var i,o=h(r)-e,a=d(r);if(1e-4>Math.abs(o-e)||a<1e-4)break;r=(i=r-o/a)>1?1:i<0?0:i}return p(r)};return y.isStepper=!1,y},J=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,s=function(t,e,n){var o=n+(-(t-e)*r-n*i)*a/1e3,s=n*a/1e3+t;return 1e-4>Math.abs(s-e)&&1e-4>Math.abs(o)?[e,0]:[s,o]};return s.isStepper=!0,s.dt=a,s},W=function(){for(var t=arguments.length,e=Array(t),r=0;rt.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r0?r[i-1]:n,h=l||Object.keys(u);if("function"==typeof s||"spring"===s)return[].concat(tc(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:s}),o]);var p=G(h,o,s),d=tp(tp(tp({},f.style),u),{},{transition:p});return[].concat(tc(t),[d,o,c]).filter(F)},[a,Math.max(void 0===s?0:s,n)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){if(!this.manager){var e,r,n;this.manager=(e=function(){return null},r=!1,n=function t(n){if(!r){if(Array.isArray(n)){if(!n.length)return;var i=function(t){if(Array.isArray(t))return t}(n)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return B(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return B(t,void 0)}}(n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i.slice(1);if("number"==typeof o){I(t.bind(null,a),o);return}t(o),I(t.bind(null,a));return}"object"===M(n)&&e(n),"function"==typeof n&&n()}},{stop:function(){r=!0},start:function(t){r=!1,n(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}})}var i=t.begin,o=t.duration,a=t.attributeName,s=t.to,u=t.easing,l=t.onAnimationStart,c=t.onAnimationEnd,f=t.steps,h=t.children,p=this.manager;if(this.unSubscribe=p.subscribe(this.handleStyleChange),"function"==typeof u||"function"==typeof h||"spring"===u){this.runJSAnimation(t);return}if(f.length>1){this.runStepAnimation(t);return}var d=a?td({},a,s):s,y=G(Object.keys(d),o,u);p.start([l,i,tp(tp({},d),{},{transition:y}),o,c])}},{key:"render",value:function(){var t=this.props,e=t.children,r=(t.begin,t.duration),i=(t.attributeName,t.easing,t.isActive),o=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(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=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,tl)),a=n.Children.count(e),s=this.state.style;if("function"==typeof e)return e(s);if(!i||0===a||r<=0)return e;var u=function(t){var e=t.props,r=e.style,i=e.className;return(0,n.cloneElement)(t,tp(tp({},o),{},{style:tp(tp({},void 0===r?{}:r),s),className:i}))};return 1===a?u(n.Children.only(e)):n.createElement("div",null,n.Children.map(e,function(t){return u(t)}))}}],function(t,e){for(var r=0;r=0)continue;r[n]=t[n]}return r}function tA(){return(tA=Object.assign?Object.assign.bind():function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,r=t.duration;return e&&e.length?e.reduce(function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)},0):Number.isFinite(r)?r:0},tW=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw 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&&tV(t,e)}(o,t);var e,r,i=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||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,r=tK(o);return t=e?Reflect.construct(r,arguments,tK(this).constructor):r.apply(this,arguments),function(t,e){if(e&&("object"===tU(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return tQ(t)}(this,t)});function o(){var t;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,o),tq(tQ(t=i.call(this)),"handleEnter",function(e,r){var n=t.props,i=n.appearOptions,o=n.enterOptions;t.handleStyleActive(r?i:o)}),tq(tQ(t),"handleExit",function(){var e=t.props.leaveOptions;t.handleStyleActive(e)}),t.state={isActive:!1},t}return r=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(tH(tH({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,r=t.enterOptions,n=t.leaveOptions;return tJ(e)+tJ(r)+tJ(n)}},{key:"render",value:function(){var t=this,e=this.props,r=e.children,i=(e.appearOptions,e.enterOptions,e.leaveOptions,function(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=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(e,tF));return n.createElement(t_,tG({},i,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return n.createElement(tw,t.state,n.Children.only(r))})}}],function(t,e){for(var r=0;r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function j(){return(j=Object.assign?Object.assign.bind():function(t){for(var e=1;e0||!y()(s,n)||!y()(u,i))?this.renderAreaWithAnimation(t,e):this.renderAreaStatically(n,i,t,e)}},{key:"render",value:function(){var t,e=this.props,r=e.hide,o=e.dot,a=e.points,s=e.className,u=e.top,l=e.left,c=e.xAxis,h=e.yAxis,p=e.width,d=e.height,y=e.isAnimationActive,g=e.id;if(r||!a||!a.length)return null;var m=this.state.isAnimationFinished,w=1===a.length,x=(0,i.Z)("recharts-area",s),A=c&&c.allowDataOverflow,E=h&&h.allowDataOverflow,P=A||E,S=f()(g)?this.id:g,k=null!==(t=(0,O.L6)(o,!1))&&void 0!==t?t:{r:3,strokeWidth:2},j=k.r,T=k.strokeWidth,N=((0,O.jf)(o)?o:{}).clipDot,C=void 0===N||N,I=2*(void 0===j?3:j)+(void 0===T?2:T);return n.createElement(v.m,{className:x},A||E?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(S)},n.createElement("rect",{x:A?l:l-p/2,y:E?u:u-d/2,width:A?p:2*p,height:E?d:2*d})),!C&&n.createElement("clipPath",{id:"clipPath-dots-".concat(S)},n.createElement("rect",{x:l-I/2,y:u-I/2,width:p+I,height:d+I}))):null,w?null:this.renderArea(P,S),(o||w)&&this.renderDots(P,C,S),(!y||m)&&b.e.renderCallByParent(this.props,a))}}],r=[{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}}],e&&C(a.prototype,e),r&&C(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(n.PureComponent);D(_,"displayName","Area"),D(_,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!w.x.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),D(_,"getBaseValue",function(t,e,r,n){var i=t.layout,o=t.baseValue,a=e.props.baseValue,s=null!=a?a:o;if((0,x.hj)(s)&&"number"==typeof s)return s;var u="horizontal"===i?n:r,l=u.scale.domain();if("number"===u.type){var c=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===s?f:"dataMax"===s?c:c<0?c:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===s?l[0]:"dataMax"===s?l[1]:l[0]}),D(_,"getComposedData",function(t){var e,r=t.props,n=t.item,i=t.xAxis,o=t.yAxis,a=t.xAxisTicks,s=t.yAxisTicks,u=t.bandSize,l=t.dataKey,c=t.stackedData,f=t.dataStartIndex,h=t.displayedData,p=t.offset,d=r.layout,y=c&&c.length,g=_.getBaseValue(r,n,i,o),m="horizontal"===d,v=!1,b=h.map(function(t,e){y?r=c[f+e]:Array.isArray(r=(0,A.F$)(t,l))?v=!0:r=[g,r];var r,n=null==r[1]||y&&null==(0,A.F$)(t,l);return m?{x:(0,A.Hv)({axis:i,ticks:a,bandSize:u,entry:t,index:e}),y:n?null:o.scale(r[1]),value:r,payload:t}:{x:n?null:i.scale(r[1]),y:(0,A.Hv)({axis:o,ticks:s,bandSize:u,entry:t,index:e}),value:r,payload:t}});return e=y||v?b.map(function(t){var e=Array.isArray(t.value)?t.value[0]:null;return m?{x:t.x,y:null!=e&&null!=t.y?o.scale(e):null}:{x:null!=e?i.scale(e):null,y:t.y}}):m?o.scale(g):i.scale(g),N({points:b,baseLine:e,layout:d,isRange:v},p)}),D(_,"renderDotItem",function(t,e){var r;if(n.isValidElement(t))r=n.cloneElement(t,e);else if(s()(t))r=t(e);else{var o=(0,i.Z)("recharts-area-dot","boolean"!=typeof t?t.className:""),a=e.key,u=k(e,P);r=n.createElement(m.o,j({},u,{key:a,className:o}))}return r})},28997:function(t,e,r){"use strict";r.d(e,{$:function(){return U}});var n=r(2265),i=r(44839),o=r(79005),a=r(12916),s=r.n(a),u=r(49972),l=r.n(u),c=r(64256),f=r(52334),h=function(t){return null};h.displayName="Cell";var p=r(78703),d=r(6779),y=r(92705),g=r(47513),m=r(17400),v=r(91488),b=r(59811),w=r(32641),x=["x","y"];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})(t)}function O(){return(O=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,x),o=parseInt("".concat(r),10),a=parseInt("".concat(n),10),s=parseInt("".concat(e.height||i.height),10),u=parseInt("".concat(e.width||i.width),10);return P(P(P(P(P({},e),i),o?{x:o}:{}),a?{y:a}:{}),{},{height:s,width:u,name:e.name,radius:e.radius})}function k(t){return n.createElement(w.bn,O({shapeType:"rectangle",propTransformer:S,activeClassName:"recharts-active-bar"},t))}var j=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||(0,b.Z)(!1),e)}},T=["value","background"];function N(t){return(N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(){return(C=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(e,T);if(!s)return null;var l=M(M(M(M(M({},u),{},{fill:"#eee"},s),a),(0,v.bw)(t.props,e,r)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:i,index:r,className:"recharts-bar-background-rectangle"});return n.createElement(k,C({key:"background-bar-".concat(r),option:t.props.background,isActive:r===o},l))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.data,o=r.xAxis,a=r.yAxis,s=r.layout,u=r.children,l=(0,y.NN)(u,f.W);if(!l)return null;var h="vertical"===s?i[0].height/2:i[0].width/2,p=function(t,e){var r=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:r,errorVal:(0,m.F$)(t,e)}};return n.createElement(c.m,{clipPath:t?"url(#clipPath-".concat(e,")"):null},l.map(function(t){return n.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:i,xAxis:o,yAxis:a,layout:s,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,r=t.data,o=t.className,a=t.xAxis,s=t.yAxis,u=t.left,f=t.top,h=t.width,d=t.height,y=t.isAnimationActive,g=t.background,m=t.id;if(e||!r||!r.length)return null;var v=this.state.isAnimationFinished,b=(0,i.Z)("recharts-bar",o),w=a&&a.allowDataOverflow,x=s&&s.allowDataOverflow,A=w||x,O=l()(m)?this.id:m;return n.createElement(c.m,{className:b},w||x?n.createElement("defs",null,n.createElement("clipPath",{id:"clipPath-".concat(O)},n.createElement("rect",{x:w?u:u-h/2,y:x?f:f-d/2,width:w?h:2*h,height:x?d:2*d}))):null,n.createElement(c.m,{className:"recharts-bar-rectangles",clipPath:A?"url(#clipPath-".concat(O,")"):null},g?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(A,O),(!y||v)&&p.e.renderCallByParent(this.props,r))}}],r=[{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}}],e&&B(a.prototype,e),r&&B(a,r),Object.defineProperty(a,"prototype",{writable:!1}),a}(n.PureComponent);L(U,"displayName","Bar"),L(U,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!g.x.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),L(U,"getComposedData",function(t){var e=t.props,r=t.item,n=t.barPosition,i=t.bandSize,o=t.xAxis,a=t.yAxis,s=t.xAxisTicks,u=t.yAxisTicks,l=t.stackedData,c=t.dataStartIndex,f=t.displayedData,p=t.offset,g=(0,m.Bu)(n,r);if(!g)return null;var v=e.layout,b=r.type.defaultProps,w=void 0!==b?M(M({},b),r.props):r.props,x=w.dataKey,A=w.children,O=w.minPointSize,E="horizontal"===v?a:o,P=l?E.scale.domain():null,S=(0,m.Yj)({numericAxis:E}),k=(0,y.NN)(A,h),T=f.map(function(t,e){l?f=(0,m.Vv)(l[c+e],P):Array.isArray(f=(0,m.F$)(t,x))||(f=[S,f]);var n=j(O,U.defaultProps.minPointSize)(f[1],e);if("horizontal"===v){var f,h,p,y,b,w,A,E=[a.scale(f[0]),a.scale(f[1])],T=E[0],N=E[1];h=(0,m.Fy)({axis:o,ticks:s,bandSize:i,offset:g.offset,entry:t,index:e}),p=null!==(A=null!=N?N:T)&&void 0!==A?A:void 0,y=g.size;var C=T-N;if(b=Number.isNaN(C)?0:C,w={x:h,y:a.y,width:y,height:a.height},Math.abs(n)>0&&Math.abs(b)0&&Math.abs(y)=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function P(t,e){for(var r=0;r0?this.props:d)),i<=0||a<=0||!y||!y.length)?null:n.createElement(c.m,{className:(0,u.Z)("recharts-cartesian-axis",l),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),h._.renderCallByParent(this.props))}}],r=[{key:"renderTickItem",value:function(t,e,r){return n.isValidElement(t)?n.cloneElement(t,e):o()(t)?t(e):n.createElement(f.x,x({},e,{className:"recharts-cartesian-axis-tick-value"}),r)}}],e&&P(i.prototype,e),r&&P(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i}(n.Component);T(C,"displayName","CartesianAxis"),T(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"})},54142:function(t,e,r){"use strict";r.d(e,{q:function(){return T}});var n=r(2265),i=r(14380),o=r.n(i),a=r(83565),s=r(6779),u=r(92705),l=r(17400),c=r(68059),f=r(65818),h=r(26839),p=["x1","y1","x2","y2","key"],d=["offset"];function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function m(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var w=function(t){var e=t.fill;if(!e||"none"===e)return null;var r=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,u=t.ry;return n.createElement("rect",{x:i,y:o,ry:u,width:a,height:s,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function x(t,e){var r;if(n.isValidElement(t))r=n.cloneElement(t,e);else if(o()(t))r=t(e);else{var i=e.x1,a=e.y1,s=e.x2,l=e.y2,c=e.key,f=b(e,p),h=(0,u.L6)(f,!1),y=(h.offset,b(h,d));r=n.createElement("line",v({},y,{x1:i,y1:a,x2:s,y2:l,fill:"none",key:c}))}return r}function A(t){var e=t.x,r=t.width,i=t.horizontal,o=void 0===i||i,a=t.horizontalPoints;if(!o||!a||!a.length)return null;var s=a.map(function(n,i){return x(o,m(m({},t),{},{x1:e,y1:n,x2:e+r,y2:n,key:"line-".concat(i),index:i}))});return n.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function O(t){var e=t.y,r=t.height,i=t.vertical,o=void 0===i||i,a=t.verticalPoints;if(!o||!a||!a.length)return null;var s=a.map(function(n,i){return x(o,m(m({},t),{},{x1:n,y1:e,x2:n,y2:e+r,key:"line-".concat(i),index:i}))});return n.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function E(t){var e=t.horizontalFill,r=t.fillOpacity,i=t.x,o=t.y,a=t.width,s=t.height,u=t.horizontalPoints,l=t.horizontal;if(!(void 0===l||l)||!e||!e.length)return null;var c=u.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==c[0]&&c.unshift(0);var f=c.map(function(t,u){var l=c[u+1]?c[u+1]-t:o+s-t;if(l<=0)return null;var f=u%e.length;return n.createElement("rect",{key:"react-".concat(u),y:t,x:i,height:l,width:a,stroke:"none",fill:e[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function P(t){var e=t.vertical,r=t.verticalFill,i=t.fillOpacity,o=t.x,a=t.y,s=t.width,u=t.height,l=t.verticalPoints;if(!(void 0===e||e)||!r||!r.length)return null;var c=l.map(function(t){return Math.round(t+o-o)}).sort(function(t,e){return t-e});o!==c[0]&&c.unshift(0);var f=c.map(function(t,e){var l=c[e+1]?c[e+1]-t:o+s-t;if(l<=0)return null;var f=e%r.length;return n.createElement("rect",{key:"react-".concat(e),x:t,y:a,width:l,height:u,stroke:"none",fill:r[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var S=function(t,e){var r=t.xAxis,n=t.width,i=t.height,o=t.offset;return(0,l.Rf)((0,c.f)(m(m(m({},f.O.defaultProps),r),{},{ticks:(0,l.uY)(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),o.left,o.left+o.width,e)},k=function(t,e){var r=t.yAxis,n=t.width,i=t.height,o=t.offset;return(0,l.Rf)((0,c.f)(m(m(m({},f.O.defaultProps),r),{},{ticks:(0,l.uY)(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),o.top,o.top+o.height,e)},j={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function T(t){var e,r,i,u,l,c,f=(0,h.zn)(),p=(0,h.Mw)(),d=(0,h.qD)(),g=m(m({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:j.stroke,fill:null!==(r=t.fill)&&void 0!==r?r:j.fill,horizontal:null!==(i=t.horizontal)&&void 0!==i?i:j.horizontal,horizontalFill:null!==(u=t.horizontalFill)&&void 0!==u?u:j.horizontalFill,vertical:null!==(l=t.vertical)&&void 0!==l?l:j.vertical,verticalFill:null!==(c=t.verticalFill)&&void 0!==c?c:j.verticalFill,x:(0,s.hj)(t.x)?t.x:d.left,y:(0,s.hj)(t.y)?t.y:d.top,width:(0,s.hj)(t.width)?t.width:d.width,height:(0,s.hj)(t.height)?t.height:d.height}),b=g.x,x=g.y,T=g.width,N=g.height,C=g.syncWithTicks,I=g.horizontalValues,M=g.verticalValues,B=(0,h.CW)(),D=(0,h.Nf)();if(!(0,s.hj)(T)||T<=0||!(0,s.hj)(N)||N<=0||!(0,s.hj)(b)||b!==+b||!(0,s.hj)(x)||x!==+x)return null;var R=g.verticalCoordinatesGenerator||S,_=g.horizontalCoordinatesGenerator||k,L=g.horizontalPoints,F=g.verticalPoints;if((!L||!L.length)&&o()(_)){var U=I&&I.length,G=_({yAxis:D?m(m({},D),{},{ticks:U?I:D.ticks}):void 0,width:f,height:p,offset:d},!!U||C);(0,a.Z)(Array.isArray(G),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(y(G),"]")),Array.isArray(G)&&(L=G)}if((!F||!F.length)&&o()(R)){var z=M&&M.length,H=R({xAxis:B?m(m({},B),{},{ticks:z?M:B.ticks}):void 0,width:f,height:p,offset:d},!!z||C);(0,a.Z)(Array.isArray(H),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(y(H),"]")),Array.isArray(H)&&(F=H)}return n.createElement("g",{className:"recharts-cartesian-grid"},n.createElement(w,{fill:g.fill,fillOpacity:g.fillOpacity,x:g.x,y:g.y,width:g.width,height:g.height,ry:g.ry}),n.createElement(A,v({},g,{offset:d,horizontalPoints:L,xAxis:B,yAxis:D})),n.createElement(O,v({},g,{offset:d,verticalPoints:F,xAxis:B,yAxis:D})),n.createElement(E,v({},g,{horizontalPoints:L})),n.createElement(P,v({},g,{verticalPoints:F})))}T.displayName="CartesianGrid"},52334:function(t,e,r){"use strict";r.d(e,{W:function(){return g}});var n=r(2265),i=r(59811),o=r(64256),a=r(92705),s=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,s),m=(0,a.L6)(g,!1);"x"===this.props.direction&&"number"!==d.type&&(0,i.Z)(!1);var v=h.map(function(t){var i,a,s=p(t,f),h=s.x,g=s.y,v=s.value,b=s.errorVal;if(!b)return null;var w=[];if(Array.isArray(b)){var x=function(t){if(Array.isArray(t))return t}(b)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,l=!1;try{for(o=(r=r.call(t)).next;!(u=(n=o.call(r)).done)&&(s.push(n.value),2!==s.length);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(b,2)||function(t,e){if(t){if("string"==typeof t)return c(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(t,2)}}(b,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();i=x[0],a=x[1]}else i=a=b;if("vertical"===r){var A=d.scale,O=g+e,E=O+u,P=O-u,S=A(v-i),k=A(v+a);w.push({x1:k,y1:E,x2:k,y2:P}),w.push({x1:S,y1:O,x2:k,y2:O}),w.push({x1:S,y1:E,x2:S,y2:P})}else if("horizontal"===r){var j=y.scale,T=h+e,N=T-u,C=T+u,I=j(v-i),M=j(v+a);w.push({x1:N,y1:M,x2:C,y2:M}),w.push({x1:T,y1:I,x2:T,y2:M}),w.push({x1:N,y1:I,x2:C,y2:I})}return n.createElement(o.m,l({className:"recharts-errorBar",key:"bar-".concat(w.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},m),w.map(function(t){return n.createElement("line",l({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return n.createElement(o.m,{className:"recharts-errorBars"},v)}}],function(t,e){for(var r=0;rt*i)return!1;var o=r();return t*(e-t*o/2-n)>=0&&t*(e+t*o/2-i)<=0}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(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 p(t){for(var e=1;e=2?(0,o.uY)(m[1].coordinate-m[0].coordinate):1,T=(n="width"===P,f=v.x,h=v.y,d=v.width,y=v.height,1===j?{start:n?f:h,end:n?f+d:h+y}:{start:n?f+d:h+y,end:n?f:h});return"equidistantPreserveStart"===x?function(t,e,r,n,i){for(var o,a=(n||[]).slice(),s=e.start,u=e.end,f=0,h=1,p=s;h<=a.length;)if(o=function(){var e,o=null==n?void 0:n[f];if(void 0===o)return{v:l(n,h)};var a=f,d=function(){return void 0===e&&(e=r(o,a)),e},y=o.coordinate,g=0===f||c(t,y,d,p,u);g||(f=0,p=s,h+=1),g&&(p=y+t*(d()/2+i),f+=h)}())return o.v;return[]}(j,T,k,m,b):("preserveStart"===x||"preserveStartEnd"===x?function(t,e,r,n,i,o){var a=(n||[]).slice(),s=a.length,u=e.start,l=e.end;if(o){var f=n[s-1],h=r(f,s-1),d=t*(f.coordinate+t*h/2-l);a[s-1]=f=p(p({},f),{},{tickCoord:d>0?f.coordinate-d*t:f.coordinate}),c(t,f.tickCoord,function(){return h},u,l)&&(l=f.tickCoord-t*(h/2+i),a[s-1]=p(p({},f),{},{isShow:!0}))}for(var y=o?s-1:s,g=function(e){var n,o=a[e],s=function(){return void 0===n&&(n=r(o,e)),n};if(0===e){var f=t*(o.coordinate-t*s()/2-u);a[e]=o=p(p({},o),{},{tickCoord:f<0?o.coordinate-f*t:o.coordinate})}else a[e]=o=p(p({},o),{},{tickCoord:o.coordinate});c(t,o.tickCoord,s,u,l)&&(u=o.tickCoord+t*(s()/2+i),a[e]=p(p({},o),{},{isShow:!0}))},m=0;m0?l.coordinate-h*t:l.coordinate})}else o[e]=l=p(p({},l),{},{tickCoord:l.coordinate});c(t,l.tickCoord,f,s,u)&&(u=l.tickCoord-t*(f()/2+i),o[e]=p(p({},l),{},{isShow:!0}))},f=a-1;f>=0;f--)l(f);return o}(j,T,k,m,b)).filter(function(t){return t.isShow})}},27561:function(t,e,r){"use strict";r.d(e,{T:function(){return u}});var n=r(84478),i=r(86991),o=r(2842),a=r(9542),s=r(3956),u=(0,n.z)({chartName:"AreaChart",GraphicalChild:i.u,axisComponents:[{axisType:"xAxis",AxisComp:o.K},{axisType:"yAxis",AxisComp:a.B}],formatAxisMap:s.t9})},25974:function(t,e,r){"use strict";r.d(e,{v:function(){return u}});var n=r(84478),i=r(28997),o=r(2842),a=r(9542),s=r(3956),u=(0,n.z)({chartName:"BarChart",GraphicalChild:i.$,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:o.K},{axisType:"yAxis",AxisComp:a.B}],formatAxisMap:s.t9})},84478:function(t,e,r){"use strict";r.d(e,{z:function(){return eB}});var n,i,o=r(2265),a=r(49972),s=r.n(a),u=r(14380),l=r.n(u),c=r(37105),f=r.n(c),h=r(97019),p=r.n(h),d=r(60229),y=r.n(d),g=r(48527),m=r.n(g),v=r(44839),b=r(59811),w=r(26599),x=r(64256),A=r(85475),O=r(20153),E=r(47887),P=r(90554),S=r(92705),k=r(47298),j=r(11078),T=r(17400),N=r(6779);function C(t){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function I(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function M(t){for(var e=1;e0&&e.handleDrag(t.changedTouches[0])}),Q(e,"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,r=t.endIndex,n=t.onDragEnd,i=t.startIndex;null==n||n({endIndex:r,startIndex:i})}),e.detachDragEndListener()}),Q(e,"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),Q(e,"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),Q(e,"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),Q(e,"handleSlideDragStart",function(t){var r=Z(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(e,"startX"),endX:e.handleTravellerDragStart.bind(e,"endX")},e.state={},e}return!function(t,e){if("function"!=typeof e&&null!==e)throw 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)}(n,t),e=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,r=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,s=o.data.length-1,u=n.getIndexInRange(i,Math.min(e,r)),l=n.getIndexInRange(i,Math.max(e,r));return{startIndex:u-u%a,endIndex:l===s?s:l-l%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,r=e.data,n=e.tickFormatter,i=e.dataKey,o=(0,T.F$)(r[t],i,t);return l()(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,s=o.width,u=o.travellerWidth,l=o.startIndex,c=o.endIndex,f=o.onChange,h=t.pageX-r;h>0?h=Math.min(h,a+s-u-i,a+s-u-n):h<0&&(h=Math.max(h,a-n,a-i));var p=this.getIndex({startX:n+h,endX:i+h});(p.startIndex!==l||p.endIndex!==c)&&f&&f(p),this.setState({startX:n+h,endX:i+h,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var r=Z(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],s=this.props,u=s.x,l=s.width,c=s.travellerWidth,f=s.onChange,h=s.gap,p=s.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-r;y>0?y=Math.min(y,u+l-c-a):y<0&&(y=Math.max(y,u-a)),d[n]=a+y;var g=this.getIndex(d),m=g.startIndex,v=g.endIndex,b=function(){var t=p.length-1;return"startX"===n&&(i>o?m%h==0:v%h==0)||io?v%h==0:m%h==0)||i>o&&v===t};this.setState(Q(Q({},n,a+y),"brushMoveStartX",t.pageX),function(){f&&b()&&f(g)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var r=this,n=this.state,i=n.scaleValues,o=n.startX,a=n.endX,s=this.state[e],u=i.indexOf(s);if(-1!==u){var l=u+t;if(-1!==l&&!(l>=i.length)){var c=i[l];"startX"===e&&c>=a||"endX"===e&&c<=o||this.setState(Q({},e,c),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,a=t.fill,s=t.stroke;return o.createElement("rect",{stroke:s,fill:a,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,a=t.data,s=t.children,u=t.padding,l=o.Children.only(s);return l?o.cloneElement(l,{x:e,y:r,width:n,height:i,margin:u,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,e){var r,i,a=this,s=this.props,u=s.y,l=s.travellerWidth,c=s.height,f=s.traveller,h=s.ariaLabel,p=s.data,d=s.startIndex,y=s.endIndex,g=Math.max(t,this.props.x),m=U(U({},(0,S.L6)(this.props,!1)),{},{x:g,y:u,width:l,height:c}),v=h||"Min value: ".concat(null===(r=p[d])||void 0===r?void 0:r.name,", Max value: ").concat(null===(i=p[y])||void 0===i?void 0:i.name);return o.createElement(x.m,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},n.renderTraveller(f,m))}},{key:"renderSlide",value:function(t,e){var r=this.props,n=r.y,i=r.height,a=r.stroke,s=r.travellerWidth;return o.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:Math.min(t,e)+s,y:n,width:Math.max(Math.abs(e-t)-s,0),height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,r=t.endIndex,n=t.y,i=t.height,a=t.travellerWidth,s=t.stroke,u=this.state,l=u.startX,c=u.endX,f={pointerEvents:"none",fill:s};return o.createElement(x.m,{className:"recharts-brush-texts"},o.createElement(j.x,L({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,c)-5,y:n+i/2},f),this.getTextOfTick(e)),o.createElement(j.x,L({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,c)+a+5,y:n+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,e=t.data,r=t.className,n=t.children,i=t.x,a=t.y,s=t.width,u=t.height,l=t.alwaysShowText,c=this.state,f=c.startX,h=c.endX,p=c.isTextActive,d=c.isSlideMoving,y=c.isTravellerMoving,g=c.isTravellerFocused;if(!e||!e.length||!(0,N.hj)(i)||!(0,N.hj)(a)||!(0,N.hj)(s)||!(0,N.hj)(u)||s<=0||u<=0)return null;var m=(0,v.Z)("recharts-brush",r),b=1===o.Children.count(n),w=R("userSelect","none");return o.createElement(x.m,{className:m,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),b&&this.renderPanorama(),this.renderSlide(f,h),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(h,"endX"),(p||d||y||g||l)&&this.renderText())}}],r=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,r=t.y,n=t.width,i=t.height,a=t.stroke,s=Math.floor(r+i/2)-1;return o.createElement(o.Fragment,null,o.createElement("rect",{x:e,y:r,width:n,height:i,fill:a,stroke:"none"}),o.createElement("line",{x1:e+1,y1:s,x2:e+n-1,y2:s,fill:"none",stroke:"#fff"}),o.createElement("line",{x1:e+1,y1:s+2,x2:e+n-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return o.isValidElement(t)?o.cloneElement(t,e):l()(t)?t(e):n.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var r=t.data,n=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,s=t.startIndex,u=t.endIndex;if(r!==e.prevData||a!==e.prevUpdateId)return U({prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n},r&&r.length?q({data:r,width:n,x:i,travellerWidth:o,startIndex:s,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(n!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+n-o]);var l=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:r,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:n,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var r=t.length,n=0,i=r-1;i-n>1;){var o=Math.floor((n+i)/2);t[o]>e?i=o:n=o}return e>=t[i]?i:n}}],e&&G(n.prototype,e),r&&G(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}(o.PureComponent);Q(J,"displayName","Brush"),Q(J,"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 W=r(87097),Y=r(12171),X=r(96581),$=function(t,e){var r=t.alwaysShow,n=t.ifOverflow;return r&&(n="extendDomain"),n===e},tt=r(3956),te=r(83565);function tr(){return(tr=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);rt.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,t2));return(0,N.hj)(r)&&(0,N.hj)(i)&&(0,N.hj)(f)&&(0,N.hj)(p)&&(0,N.hj)(s)&&(0,N.hj)(l)?o.createElement("path",t3({},(0,S.L6)(y,!0),{className:(0,v.Z)("recharts-cross",d),d:"M".concat(r,",").concat(s,"v").concat(p,"M").concat(l,",").concat(i,"h").concat(f)})):null};function t8(t){var e=t.cx,r=t.cy,n=t.radius,i=t.startAngle,o=t.endAngle;return{points:[(0,tH.op)(e,r,n,i),(0,tH.op)(e,r,n,o)],cx:e,cy:r,radius:n,startAngle:i,endAngle:o}}var t5=r(79130);function t7(t){return(t7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function t9(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 et(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function eu(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(eu=function(){return!!t})()}function el(t){return(el=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function ec(t,e){return(ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function ef(t){return function(t){if(Array.isArray(t))return ep(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||eh(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eh(t,e){if(t){if("string"==typeof t)return ep(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ep(t,e)}}function ep(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0?o:t&&t.length&&(0,N.hj)(n)&&(0,N.hj)(i)?t.slice(n,i+1):[]};function eE(t){return"number"===t?[0,"auto"]:void 0}var eP=function(t,e,r,n){var i=t.graphicalItems,o=t.tooltipAxis,a=eO(e,t);return r<0||!i||!i.length||r>=a.length?null:i.reduce(function(i,s){var u,l,c=null!==(u=s.props.data)&&void 0!==u?u:e;if(c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1)),o.dataKey&&!o.allowDuplicatedCategory){var f=void 0===c?a:c;l=(0,N.Ap)(f,o.dataKey,n)}else l=c&&c[r]||a[r];return l?[].concat(ef(i),[(0,T.Qo)(s,l)]):i},[])},eS=function(t,e,r,n){var i=n||{x:t.chartX,y:t.chartY},o="horizontal"===r?i.x:"vertical"===r?i.y:"centric"===r?i.angle:i.radius,a=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,l=(0,T.VO)(o,a,u,s);if(l>=0&&u){var c=u[l]&&u[l].value,f=eP(t,e,l,c),h=eA(r,a,l,i);return{activeTooltipIndex:l,activeLabel:c,activePayload:f,activeCoordinate:h}}return null},ek=function(t,e){var r=e.axes,n=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,u=e.dataStartIndex,l=e.dataEndIndex,c=t.layout,h=t.children,p=t.stackOffset,d=(0,T.NA)(c,i);return r.reduce(function(e,r){var y=void 0!==r.type.defaultProps?ey(ey({},r.type.defaultProps),r.props):r.props,g=y.type,m=y.dataKey,v=y.allowDataOverflow,b=y.allowDuplicatedCategory,w=y.scale,x=y.ticks,A=y.includeHidden,O=y[o];if(e[O])return e;var E=eO(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:u,dataEndIndex:l}),P=E.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&&(0,N.hj)(n)&&(0,N.hj)(i))return!0}return!1})(y.domain,v,g)&&(j=(0,T.LG)(y.domain,null,v),d&&("number"===g||"auto"!==w)&&(I=(0,T.gF)(E,m,"category")));var S=eE(g);if(!j||0===j.length){var k,j,C,I,M,B=null!==(M=y.domain)&&void 0!==M?M:S;if(m){if(j=(0,T.gF)(E,m,g),"category"===g&&d){var D=(0,N.bv)(j);b&&D?(C=j,j=f()(0,P)):b||(j=(0,T.ko)(B,j,r).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(ef(t),[e])},[]))}else if("category"===g)j=b?j.filter(function(t){return""!==t&&!s()(t)}):(0,T.ko)(B,j,r).reduce(function(t,e){return t.indexOf(e)>=0||""===e||s()(e)?t:[].concat(ef(t),[e])},[]);else if("number"===g){var R=(0,T.ZI)(E,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&&(A||!i)}),m,i,c);R&&(j=R)}d&&("number"===g||"auto"!==w)&&(I=(0,T.gF)(E,m,"category"))}else j=d?f()(0,P):a&&a[O]&&a[O].hasStack&&"number"===g?"expand"===p?[0,1]:(0,T.EB)(a[O].stackGroups,u,l):(0,T.s6)(E,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&&(A||!r)}),g,c,!0);"number"===g?(j=tz(h,j,O,i,x),B&&(j=(0,T.LG)(B,j,v))):"category"===g&&B&&j.every(function(t){return B.indexOf(t)>=0})&&(j=B)}return ey(ey({},e),{},eg({},O,ey(ey({},y),{},{axisType:i,domain:j,categoricalDomain:I,duplicateDomain:C,originalDomain:null!==(k=y.domain)&&void 0!==k?k:S,isCategorical:d,layout:c})))},{})},ej=function(t,e){var r=e.graphicalItems,n=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,s=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,c=t.children,h=eO(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),d=h.length,y=(0,T.NA)(l,i),g=-1;return r.reduce(function(t,e){var m,v=(void 0!==e.type.defaultProps?ey(ey({},e.type.defaultProps),e.props):e.props)[o],b=eE("number");return t[v]?t:(g++,m=y?f()(0,d):a&&a[v]&&a[v].hasStack?tz(c,m=(0,T.EB)(a[v].stackGroups,s,u),v,i):tz(c,m=(0,T.LG)(b,(0,T.s6)(h,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===v&&!i}),"number",l),n.defaultProps.allowDataOverflow),v,i),ey(ey({},t),{},eg({},v,ey(ey({axisType:i},n.defaultProps),{},{hide:!0,orientation:p()(ev,"".concat(i,".").concat(g%2),null),domain:m,originalDomain:b,isCategorical:y,layout:l}))))},{})},eT=function(t,e){var r=e.axisType,n=void 0===r?"xAxis":r,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,s=e.dataStartIndex,u=e.dataEndIndex,l=t.children,c="".concat(n,"Id"),f=(0,S.NN)(l,i),h={};return f&&f.length?h=ek(t,{axes:f,graphicalItems:o,axisType:n,axisIdKey:c,stackGroups:a,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(h=ej(t,{Axis:i,graphicalItems:o,axisType:n,axisIdKey:c,stackGroups:a,dataStartIndex:s,dataEndIndex:u})),h},eN=function(t){var e=(0,N.Kt)(t),r=(0,T.uY)(e,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:y()(r,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:(0,T.zT)(e,r)}},eC=function(t){var e=t.children,r=t.defaultShowTooltip,n=(0,S.sP)(e,J),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:!!r}},eI=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"}},eM=function(t,e){var r=t.props,n=t.graphicalItems,i=t.xAxisMap,o=void 0===i?{}:i,a=t.yAxisMap,s=void 0===a?{}:a,u=r.width,l=r.height,c=r.children,f=r.margin||{},h=(0,S.sP)(c,J),d=(0,S.sP)(c,O.D),y=Object.keys(s).reduce(function(t,e){var r=s[e],n=r.orientation;return r.mirror||r.hide?t:ey(ey({},t),{},eg({},n,t[n]+r.width))},{left:f.left||0,right:f.right||0}),g=Object.keys(o).reduce(function(t,e){var r=o[e],n=r.orientation;return r.mirror||r.hide?t:ey(ey({},t),{},eg({},n,p()(t,"".concat(n))+r.height))},{top:f.top||0,bottom:f.bottom||0}),m=ey(ey({},g),y),v=m.bottom;h&&(m.bottom+=h.props.height||J.defaultProps.height),d&&e&&(m=(0,T.By)(m,n,r,e));var b=u-m.left-m.right,w=l-m.top-m.bottom;return ey(ey({brushBottom:v},m),{},{width:Math.max(b,0),height:Math.max(w,0)})},eB=function(t){var e=t.chartName,r=t.GraphicalChild,n=t.defaultTooltipEventType,i=void 0===n?"axis":n,a=t.validateTooltipEventTypes,u=void 0===a?["axis"]:a,c=t.axisComponents,f=t.legendContent,h=t.formatAxisMap,d=t.defaultProps,y=function(t,e){var r=e.graphicalItems,n=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,u=e.dataEndIndex,l=t.barSize,f=t.layout,h=t.barGap,p=t.barCategoryGap,d=t.maxBarSize,y=eI(f),g=y.numericAxisName,m=y.cateAxisName,v=!!r&&!!r.length&&r.some(function(t){var e=(0,S.Gf)(t&&t.type);return e&&e.indexOf("Bar")>=0}),w=[];return r.forEach(function(r,y){var x=eO(t.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:u}),A=void 0!==r.type.defaultProps?ey(ey({},r.type.defaultProps),r.props):r.props,O=A.dataKey,E=A.maxBarSize,P=A["".concat(g,"Id")],k=A["".concat(m,"Id")],j=c.reduce(function(t,r){var n=e["".concat(r.axisType,"Map")],i=A["".concat(r.axisType,"Id")];n&&n[i]||"zAxis"===r.axisType||(0,b.Z)(!1);var o=n[i];return ey(ey({},t),{},eg(eg({},r.axisType,o),"".concat(r.axisType,"Ticks"),(0,T.uY)(o)))},{}),N=j[m],C=j["".concat(m,"Ticks")],I=n&&n[P]&&n[P].hasStack&&(0,T.O3)(r,n[P].stackGroups),M=(0,S.Gf)(r.type).indexOf("Bar")>=0,B=(0,T.zT)(N,C),D=[],R=v&&(0,T.pt)({barSize:l,stackGroups:n,totalSize:"xAxis"===m?j[m].width:"yAxis"===m?j[m].height:void 0});if(M){var _,L,F=s()(E)?d:E,U=null!==(_=null!==(L=(0,T.zT)(N,C,!0))&&void 0!==L?L:F)&&void 0!==_?_:0;D=(0,T.qz)({barGap:h,barCategoryGap:p,bandSize:U!==B?U:B,sizeList:R[k],maxBarSize:F}),U!==B&&(D=D.map(function(t){return ey(ey({},t),{},{position:ey(ey({},t.position),{},{offset:t.position.offset-U/2})})}))}var G=r&&r.type&&r.type.getComposedData;G&&w.push({props:ey(ey({},G(ey(ey({},j),{},{displayedData:x,props:t,dataKey:O,item:r,bandSize:B,barPosition:D,offset:i,stackedData:I,layout:f,dataStartIndex:a,dataEndIndex:u}))),{},eg(eg(eg({key:r.key||"item-".concat(y)},g,j[g]),m,j[m]),"animationId",o)),childIndex:(0,S.$R)(r,t.children),item:r})}),w},g=function(t,n){var i=t.props,o=t.dataStartIndex,a=t.dataEndIndex,s=t.updateId;if(!(0,S.TT)({props:i}))return null;var u=i.children,l=i.layout,f=i.stackOffset,p=i.data,d=i.reverseStackOrder,g=eI(l),m=g.numericAxisName,v=g.cateAxisName,b=(0,S.NN)(u,r),w=(0,T.wh)(p,b,"".concat(m,"Id"),"".concat(v,"Id"),f,d),x=c.reduce(function(t,e){var r="".concat(e.axisType,"Map");return ey(ey({},t),{},eg({},r,eT(i,ey(ey({},e),{},{graphicalItems:b,stackGroups:e.axisType===m&&w,dataStartIndex:o,dataEndIndex:a}))))},{}),A=eM(ey(ey({},x),{},{props:i,graphicalItems:b}),null==n?void 0:n.legendBBox);Object.keys(x).forEach(function(t){x[t]=h(i,x[t],A,t.replace("Map",""),e)});var O=eN(x["".concat(v,"Map")]),E=y(i,ey(ey({},x),{},{dataStartIndex:o,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:A}));return ey(ey({formattedGraphicalItems:E,graphicalItems:b,offset:A,stackGroups:w},O),x)},O=function(t){var r;function n(t){var r,i,a,u,c;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,n),u=n,c=[t],u=el(u),eg(a=function(t,e){if(e&&("object"===ei(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,eu()?Reflect.construct(u,c||[],el(this).constructor):u.apply(this,c)),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),eg(a,"accessibilityManager",new tX),eg(a,"handleLegendBBoxUpdate",function(t){if(t){var e=a.state,r=e.dataStartIndex,n=e.dataEndIndex,i=e.updateId;a.setState(ey({legendBBox:t},g({props:a.props,dataStartIndex:r,dataEndIndex:n,updateId:i},ey(ey({},a.state),{},{legendBBox:t}))))}}),eg(a,"handleReceiveSyncEvent",function(t,e,r){a.props.syncId===t&&(r!==a.eventEmitterSymbol||"function"==typeof a.props.syncMethod)&&a.applySyncEvent(e)}),eg(a,"handleBrushChange",function(t){var e=t.startIndex,r=t.endIndex;if(e!==a.state.dataStartIndex||r!==a.state.dataEndIndex){var n=a.state.updateId;a.setState(function(){return ey({dataStartIndex:e,dataEndIndex:r},g({props:a.props,dataStartIndex:e,dataEndIndex:r,updateId:n},a.state))}),a.triggerSyncEvent({dataStartIndex:e,dataEndIndex:r})}}),eg(a,"handleMouseEnter",function(t){var e=a.getMouseInfo(t);if(e){var r=ey(ey({},e),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseEnter;l()(n)&&n(r,t)}}),eg(a,"triggeredAfterMouseMove",function(t){var e=a.getMouseInfo(t),r=e?ey(ey({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseMove;l()(n)&&n(r,t)}),eg(a,"handleItemMouseEnter",function(t){a.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),eg(a,"handleItemMouseLeave",function(){a.setState(function(){return{isTooltipActive:!1}})}),eg(a,"handleMouseMove",function(t){t.persist(),a.throttleTriggeredAfterMouseMove(t)}),eg(a,"handleMouseLeave",function(t){a.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};a.setState(e),a.triggerSyncEvent(e);var r=a.props.onMouseLeave;l()(r)&&r(e,t)}),eg(a,"handleOuterEvent",function(t){var e,r=(0,S.Bh)(t),n=p()(a.props,"".concat(r));r&&l()(n)&&n(null!==(e=/.*touch.*/i.test(r)?a.getMouseInfo(t.changedTouches[0]):a.getMouseInfo(t))&&void 0!==e?e:{},t)}),eg(a,"handleClick",function(t){var e=a.getMouseInfo(t);if(e){var r=ey(ey({},e),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onClick;l()(n)&&n(r,t)}}),eg(a,"handleMouseDown",function(t){var e=a.props.onMouseDown;l()(e)&&e(a.getMouseInfo(t),t)}),eg(a,"handleMouseUp",function(t){var e=a.props.onMouseUp;l()(e)&&e(a.getMouseInfo(t),t)}),eg(a,"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),eg(a,"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.handleMouseDown(t.changedTouches[0])}),eg(a,"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&a.handleMouseUp(t.changedTouches[0])}),eg(a,"triggerSyncEvent",function(t){void 0!==a.props.syncId&&tK.emit(tq,a.props.syncId,t,a.eventEmitterSymbol)}),eg(a,"applySyncEvent",function(t){var e=a.props,r=e.layout,n=e.syncMethod,i=a.state.updateId,o=t.dataStartIndex,s=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)a.setState(ey({dataStartIndex:o,dataEndIndex:s},g({props:a.props,dataStartIndex:o,dataEndIndex:s,updateId:i},a.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,c=t.activeTooltipIndex,f=a.state,h=f.offset,p=f.tooltipTicks;if(!h)return;if("function"==typeof n)c=n(p,t);else if("value"===n){c=-1;for(var d=0;d=0){if(c.dataKey&&!c.allowDuplicatedCategory){var j="function"==typeof c.dataKey?function(t){return"function"==typeof c.dataKey?c.dataKey(t.payload):null}:"payload.".concat(c.dataKey.toString());I=(0,N.Ap)(g,j,h),M=m&&v&&(0,N.Ap)(v,j,h)}else I=null==g?void 0:g[f],M=m&&v&&v[f];if(E||O){var C=void 0!==t.props.activeIndex?t.props.activeIndex:f;return[(0,o.cloneElement)(t,ey(ey(ey({},n.props),P),{},{activeIndex:C})),null,null]}if(!s()(I))return[k].concat(ef(a.renderActivePoints({item:n,activePoint:I,basePoint:M,childIndex:f,isRange:m})))}else{var I,M,B,D=(null!==(B=a.getItemByXY(a.state.activeCoordinate))&&void 0!==B?B:{graphicalItem:k}).graphicalItem,R=D.item,_=void 0===R?t:R,L=D.childIndex,F=ey(ey(ey({},n.props),P),{},{activeIndex:L});return[(0,o.cloneElement)(_,F),null,null]}}return m?[k,null,null]:[k,null]}),eg(a,"renderCustomized",function(t,e,r){return(0,o.cloneElement)(t,ey(ey({key:"recharts-customized-".concat(r)},a.props),a.state))}),eg(a,"renderMap",{CartesianGrid:{handler:ex,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:ex},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:ex},YAxis:{handler:ex},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(r=t.id)&&void 0!==r?r:(0,N.EL)("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=m()(a.triggeredAfterMouseMove,null!==(i=t.throttleDelay)&&void 0!==i?i:1e3/60),a.state={},a}return!function(t,e){if("function"!=typeof e&&null!==e)throw 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&&ec(t,e)}(n,t),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=(0,S.sP)(e,A.u);if(o){var a=o.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length-1)){var s=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=eP(this.state,r,a,s),l=this.state.tooltipTicks[a].coordinate,c=(this.state.offset.top+n)/2,f="horizontal"===i?{x:l,y:c}:{y:l,x:c},h=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});h&&(f=ey(ey({},f),h.props.points[a].tooltipPosition),u=h.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:s,activePayload:u,activeCoordinate:f};this.setState(p),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(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){var r,n;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){(0,S.rL)([(0,S.sP)(t.children,A.u)],[(0,S.sP)(this.props.children,A.u)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=(0,S.sP)(this.props.children,A.u);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return u.indexOf(e)>=0?e:i}return i}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,r=e.getBoundingClientRect(),n=(0,W.os)(r),i={chartX:Math.round(t.pageX-n.left),chartY:Math.round(t.pageY-n.top)},o=r.width/e.offsetWidth||1,a=this.inRange(i.chartX,i.chartY,o);if(!a)return null;var s=this.state,u=s.xAxisMap,l=s.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&l){var c=(0,N.Kt)(u).scale,f=(0,N.Kt)(l).scale,h=c&&c.invert?c.invert(i.chartX):null,p=f&&f.invert?f.invert(i.chartY):null;return ey(ey({},i),{},{xValue:h,yValue:p})}var d=eS(this.state,this.props.data,this.props.layout,a);return d?ey(ey({},i),d):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 s=this.state,u=s.angleAxisMap,l=s.radiusAxisMap;if(u&&l){var c=(0,N.Kt)(u);return(0,tH.z3)({x:i,y:o},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),r=(0,S.sP)(t,A.u),n={};return r&&"axis"===e&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),ey(ey({},(0,tZ.Ym)(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){tK.on(tq,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){tK.removeListener(tq,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,r){for(var n=this.state.formattedGraphicalItems,i=0,o=n.length;it.length)&&(e=t.length);for(var r=0,n=Array(e);r=0?1:-1;"insideStart"===s?(i=v+E*l,a=x):"insideEnd"===s?(i=b-E*l,a=!x):"end"===s&&(i=b+E*l,a=x),a=O<=0?a:!a;var P=(0,d.op)(h,y,A,i),S=(0,d.op)(h,y,A,i+(a?1:-1)*359),k="M".concat(P.x,",").concat(P.y,"\n A").concat(A,",").concat(A,",0,1,").concat(a?0:1,",\n ").concat(S.x,",").concat(S.y),j=o()(t.id)?(0,p.EL)("recharts-radial-line-"):t.id;return n.createElement("text",w({},r,{dominantBaseline:"central",className:(0,c.Z)("recharts-radial-bar-label",f)}),n.createElement("defs",null,n.createElement("path",{id:j,d:k})),n.createElement("textPath",{xlinkHref:"#".concat(j)},e))},O=function(t){var e=t.viewBox,r=t.offset,n=t.position,i=e.cx,o=e.cy,a=e.innerRadius,s=e.outerRadius,u=(e.startAngle+e.endAngle)/2;if("outside"===n){var l=(0,d.op)(i,o,s+r,u),c=l.x;return{x:c,y:l.y,textAnchor:c>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var f=(0,d.op)(i,o,(a+s)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},E=function(t){var e=t.viewBox,r=t.parentViewBox,n=t.offset,i=t.position,o=e.x,a=e.y,s=e.width,u=e.height,c=u>=0?1:-1,f=c*n,h=c>0?"end":"start",d=c>0?"start":"end",y=s>=0?1:-1,g=y*n,m=y>0?"end":"start",v=y>0?"start":"end";if("top"===i)return b(b({},{x:o+s/2,y:a-c*n,textAnchor:"middle",verticalAnchor:h}),r?{height:Math.max(a-r.y,0),width:s}:{});if("bottom"===i)return b(b({},{x:o+s/2,y:a+u+f,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(r.y+r.height-(a+u),0),width:s}:{});if("left"===i){var w={x:o-g,y:a+u/2,textAnchor:m,verticalAnchor:"middle"};return b(b({},w),r?{width:Math.max(w.x-r.x,0),height:u}:{})}if("right"===i){var x={x:o+s+g,y:a+u/2,textAnchor:v,verticalAnchor:"middle"};return b(b({},x),r?{width:Math.max(r.x+r.width-x.x,0),height:u}:{})}var A=r?{width:s,height:u}:{};return"insideLeft"===i?b({x:o+g,y:a+u/2,textAnchor:v,verticalAnchor:"middle"},A):"insideRight"===i?b({x:o+s-g,y:a+u/2,textAnchor:m,verticalAnchor:"middle"},A):"insideTop"===i?b({x:o+s/2,y:a+f,textAnchor:"middle",verticalAnchor:d},A):"insideBottom"===i?b({x:o+s/2,y:a+u-f,textAnchor:"middle",verticalAnchor:h},A):"insideTopLeft"===i?b({x:o+g,y:a+f,textAnchor:v,verticalAnchor:d},A):"insideTopRight"===i?b({x:o+s-g,y:a+f,textAnchor:m,verticalAnchor:d},A):"insideBottomLeft"===i?b({x:o+g,y:a+u-f,textAnchor:v,verticalAnchor:h},A):"insideBottomRight"===i?b({x:o+s-g,y:a+u-f,textAnchor:m,verticalAnchor:h},A):l()(i)&&((0,p.hj)(i.x)||(0,p.hU)(i.x))&&((0,p.hj)(i.y)||(0,p.hU)(i.y))?b({x:o+(0,p.h1)(i.x,s),y:a+(0,p.h1)(i.y,u),textAnchor:"end",verticalAnchor:"end"},A):b({x:o+s/2,y:a+u/2,textAnchor:"middle",verticalAnchor:"middle"},A)};function P(t){var e,r=t.offset,i=b({offset:void 0===r?5:r},function(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=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,g)),a=i.viewBox,u=i.position,l=i.value,d=i.children,y=i.content,m=i.className,v=i.textBreakAll;if(!a||o()(l)&&o()(d)&&!(0,n.isValidElement)(y)&&!s()(y))return null;if((0,n.isValidElement)(y))return(0,n.cloneElement)(y,i);if(s()(y)){if(e=(0,n.createElement)(y,i),(0,n.isValidElement)(e))return e}else e=x(i);var P="cx"in a&&(0,p.hj)(a.cx),S=(0,h.L6)(i,!0);if(P&&("insideStart"===u||"insideEnd"===u||"end"===u))return A(i,e,S);var k=P?O(i):E(i);return n.createElement(f.x,w({className:(0,c.Z)("recharts-label",void 0===m?"":m)},S,k,{breakAll:v}),e)}P.displayName="Label";var S=function(t){var e=t.cx,r=t.cy,n=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,s=t.radius,u=t.innerRadius,l=t.outerRadius,c=t.x,f=t.y,h=t.top,d=t.left,y=t.width,g=t.height,m=t.clockWise,v=t.labelViewBox;if(v)return v;if((0,p.hj)(y)&&(0,p.hj)(g)){if((0,p.hj)(c)&&(0,p.hj)(f))return{x:c,y:f,width:y,height:g};if((0,p.hj)(h)&&(0,p.hj)(d))return{x:h,y:d,width:y,height:g}}return(0,p.hj)(c)&&(0,p.hj)(f)?{x:c,y:f,width:0,height:0}:(0,p.hj)(e)&&(0,p.hj)(r)?{cx:e,cy:r,startAngle:i||n||0,endAngle:o||n||0,innerRadius:u||0,outerRadius:l||s||a||0,clockWise:m}:t.viewBox?t.viewBox:{}};P.parseViewBox=S,P.renderCallByParent=function(t,e){var r,i,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&o&&!t.label)return null;var a=t.children,u=S(t),c=(0,h.NN)(a,P).map(function(t,r){return(0,n.cloneElement)(t,{viewBox:e||u,key:"label-".concat(r)})});return o?[(r=t.label,i=e||u,r?!0===r?n.createElement(P,{key:"label-implicit",viewBox:i}):(0,p.P2)(r)?n.createElement(P,{key:"label-implicit",viewBox:i,value:r}):(0,n.isValidElement)(r)?r.type===P?(0,n.cloneElement)(r,{key:"label-implicit",viewBox:i}):n.createElement(P,{key:"label-implicit",content:r,viewBox:i}):s()(r)?n.createElement(P,{key:"label-implicit",content:r,viewBox:i}):l()(r)?n.createElement(P,w({viewBox:i},r,{key:"label-implicit"})):null:null)].concat(function(t){if(Array.isArray(t))return m(t)}(c)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(c)||function(t,e){if(t){if("string"==typeof t)return m(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(t,void 0)}}(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):c}},78703:function(t,e,r){"use strict";r.d(e,{e:function(){return P}});var n=r(2265),i=r(49972),o=r.n(i),a=r(63117),s=r.n(a),u=r(14380),l=r.n(u),c=r(96579),f=r.n(c),h=r(96581),p=r(64256),d=r(92705),y=r(17400);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var m=["valueAccessor"],v=["data","dataKey","clockWise","id","textBreakAll"];function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}var E=function(t){return Array.isArray(t.value)?f()(t.value):t.value};function P(t){var e=t.valueAccessor,r=void 0===e?E:e,i=O(t,m),a=i.data,s=i.dataKey,u=i.clockWise,l=i.id,c=i.textBreakAll,f=O(i,v);return a&&a.length?n.createElement(p.m,{className:"recharts-label-list"},a.map(function(t,e){var i=o()(s)?r(t,e):(0,y.F$)(t&&t.payload,s),a=o()(l)?{}:{id:"".concat(l,"-").concat(e)};return n.createElement(h._,w({},(0,d.L6)(t,!0),f,a,{parentViewBox:t.parentViewBox,value:i,textBreakAll:c,viewBox:h._.parseViewBox(o()(u)?t:A(A({},t),{},{clockWise:u})),key:"label-".concat(e),index:e}))})):null}P.displayName="LabelList",P.renderCallByParent=function(t,e){var r,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&i&&!t.label)return null;var o=t.children,a=(0,d.NN)(o,P).map(function(t,r){return(0,n.cloneElement)(t,{data:e,key:"labelList-".concat(r)})});return i?[(r=t.label)?!0===r?n.createElement(P,{key:"labelList-implicit",data:e}):n.isValidElement(r)||l()(r)?n.createElement(P,{key:"labelList-implicit",data:e,content:r}):s()(r)?n.createElement(P,w({data:e},r,{key:"labelList-implicit"})):null:null].concat(function(t){if(Array.isArray(t))return b(t)}(a)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(a)||function(t,e){if(t){if("string"==typeof t)return b(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(t,void 0)}}(a)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):a}},20153:function(t,e,r){"use strict";r.d(e,{D:function(){return M}});var n=r(2265),i=r(14380),o=r.n(i),a=r(44839),s=r(83565),u=r(26599),l=r(45022),c=r(91488);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(){return(h=Object.assign?Object.assign.bind():function(t){for(var e=1;e');var w=e.inactive?p:e.color;return n.createElement("li",h({className:v,style:y,key:"legend-item-".concat(r)},(0,c.bw)(t.props,e,r)),n.createElement(u.T,{width:i,height:i,viewBox:d,style:g},t.renderIcon(e)),n.createElement("span",{className:"recharts-legend-item-text",style:{color:w}},l?l(b,e,r):b))})}},{key:"render",value:function(){var t=this.props,e=t.payload,r=t.layout,i=t.align;return e&&e.length?n.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===r?i:"left"}},this.renderItems()):null}}],function(t,e){for(var r=0;r1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?P({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,r,n=this.props,i=n.layout,o=n.align,a=n.verticalAlign,s=n.margin,u=n.chartWidth,l=n.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:s&&s.right||0}:{left:s&&s.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(r="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:s&&s.bottom||0}:{top:s&&s.top||0}),P(P({},e),r)}},{key:"render",value:function(){var t=this,e=this.props,r=e.content,i=e.width,o=e.height,a=e.wrapperStyle,s=e.payloadUniqBy,u=e.payload,l=P(P({position:"absolute",width:i||"auto",height:o||"auto"},this.getDefaultPosition(a)),a);return n.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(e){t.wrapperNode=e}},function(t,e){if(n.isValidElement(t))return n.cloneElement(t,e);if("function"==typeof t)return n.createElement(t,e);e.ref;var r=function(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=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(e,O);return n.createElement(b,r)}(r,P(P({},this.props),{},{payload:(0,x.z)(u,s,I)})))}}],r=[{key:"getWithHeight",value:function(t,e){var r=P(P({},this.defaultProps),t.props).layout;return"vertical"===r&&(0,w.hj)(t.props.height)?{height:t.props.height}:"horizontal"===r?{width:t.props.width||e}:null}}],e&&S(i.prototype,e),r&&S(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i}(n.PureComponent);N(M,"displayName","Legend"),N(M,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"})},11078:function(t,e,r){"use strict";r.d(e,{x:function(){return _}});var n=r(2265),i=r(49972),o=r.n(i),a=r(44839),s=r(6779),u=r(47513),l=r(92705),c=r(87097);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(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,s=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function T(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,s=[],u=!0,l=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return N(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return N(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var o=e.word,a=e.width,s=t[t.length-1];return s&&(null==n||i||s.width+a+ra||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(n),e]},y=0,g=u.length-1,m=0;y<=g&&m<=u.length-1;){var v=Math.floor((y+g)/2),b=T(d(v-1),2),w=b[0],x=b[1],A=T(d(v),1)[0];if(w||A||(y=v+1),w&&A&&(g=v-1),!w&&A){o=x;break}m++}return o||p},B=function(t){return[{words:o()(t)?[]:t.toString().split(C)}]},D=function(t){var e=t.width,r=t.scaleToFit,n=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||r)&&!u.x.isSsr){var s=I({breakAll:o,children:n,style:i});return s?M({breakAll:o,children:n,maxLines:a,style:i},s.wordsWithComputedWidth,s.spaceWidth,e,r):B(n)}return B(n)},R="#808080",_=function(t){var e,r=t.x,i=void 0===r?0:r,o=t.y,u=void 0===o?0:o,c=t.lineHeight,f=void 0===c?"1em":c,h=t.capHeight,p=void 0===h?"0.71em":h,d=t.scaleToFit,y=void 0!==d&&d,g=t.textAnchor,m=t.verticalAnchor,v=t.fill,b=void 0===v?R:v,w=j(t,P),x=(0,n.useMemo)(function(){return D({breakAll:w.breakAll,children:w.children,maxLines:w.maxLines,scaleToFit:y,style:w.style,width:w.width})},[w.breakAll,w.children,w.maxLines,y,w.style,w.width]),A=w.dx,O=w.dy,T=w.angle,N=w.className,C=w.breakAll,I=j(w,S);if(!(0,s.P2)(i)||!(0,s.P2)(u))return null;var M=i+((0,s.hj)(A)?A:0),B=u+((0,s.hj)(O)?O:0);switch(void 0===m?"end":m){case"start":e=E("calc(".concat(p,")"));break;case"middle":e=E("calc(".concat((x.length-1)/2," * -").concat(f," + (").concat(p," / 2))"));break;default:e=E("calc(".concat(x.length-1," * -").concat(f,")"))}var _=[];if(y){var L=x[0].width,F=w.width;_.push("scale(".concat(((0,s.hj)(F)?F/L:1)/L,")"))}return T&&_.push("rotate(".concat(T,", ").concat(M,", ").concat(B,")")),_.length&&(I.transform=_.join(" ")),n.createElement("text",k({},(0,l.L6)(I,!0),{x:M,y:B,className:(0,a.Z)("recharts-text",N),textAnchor:void 0===g?"start":g,fill:b.includes("url")?R:b}),x.map(function(t,r){var i=t.words.join(C?"":" ");return n.createElement("tspan",{x:M,dy:0===r?e:f,key:"".concat(i,"-").concat(r)},i)}))}},85475:function(t,e,r){"use strict";r.d(e,{u:function(){return z}});var n=r(2265),i=r(60229),o=r.n(i),a=r(49972),s=r.n(a),u=r(44839),l=r(6779);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(){return(f=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);ru[n]+c?Math.max(f,u[n]):Math.max(h,u[n])}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})(t)}function O(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function E(t){for(var e=1;e1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,e,r,i,o,a,s,c,f,h,p,d,y,g,m,A,O,P,S,k=this,j=this.props,T=j.active,N=j.allowEscapeViewBox,C=j.animationDuration,I=j.animationEasing,M=j.children,B=j.coordinate,D=j.hasPayload,R=j.isAnimationActive,_=j.offset,L=j.position,F=j.reverseDirection,U=j.useTranslate3d,G=j.viewBox,z=j.wrapperStyle,H=(d=(t={allowEscapeViewBox:N,coordinate:B,offsetTopLeft:_,position:L,reverseDirection:F,tooltipBox:this.state.lastBoundingBox,useTranslate3d:U,viewBox:G}).allowEscapeViewBox,y=t.coordinate,g=t.offsetTopLeft,m=t.position,A=t.reverseDirection,O=t.tooltipBox,P=t.useTranslate3d,S=t.viewBox,O.height>0&&O.width>0&&y?(r=(e={translateX:h=x({allowEscapeViewBox:d,coordinate:y,key:"x",offsetTopLeft:g,position:m,reverseDirection:A,tooltipDimension:O.width,viewBox:S,viewBoxDimension:S.width}),translateY:p=x({allowEscapeViewBox:d,coordinate:y,key:"y",offsetTopLeft:g,position:m,reverseDirection:A,tooltipDimension:O.height,viewBox:S,viewBoxDimension:S.height}),useTranslate3d:P}).translateX,i=e.translateY,f={transform:e.useTranslate3d?"translate3d(".concat(r,"px, ").concat(i,"px, 0)"):"translate(".concat(r,"px, ").concat(i,"px)")}):f=w,{cssProperties:f,cssClasses:(a=(o={translateX:h,translateY:p,coordinate:y}).coordinate,s=o.translateX,c=o.translateY,(0,u.Z)(b,v(v(v(v({},"".concat(b,"-right"),(0,l.hj)(s)&&a&&(0,l.hj)(a.x)&&s>=a.x),"".concat(b,"-left"),(0,l.hj)(s)&&a&&(0,l.hj)(a.x)&&s=a.y),"".concat(b,"-top"),(0,l.hj)(c)&&a&&(0,l.hj)(a.y)&&c0;return n.createElement(N,{allowEscapeViewBox:o,animationDuration:a,animationEasing:s,isAnimationActive:f,active:i,coordinate:l,hasPayload:A,offset:h,position:y,reverseDirection:m,useTranslate3d:v,viewBox:b,wrapperStyle:w},(t=D(D({},this.props),{},{payload:x}),n.isValidElement(u)?n.cloneElement(u,t):"function"==typeof u?n.createElement(u,t):n.createElement(g,t)))}}],function(t,e){for(var r=0;r=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,a),c=(0,i.Z)("recharts-layer",u);return n.createElement("g",s({className:c},(0,o.L6)(l,!0),{ref:e}),r)})},26599:function(t,e,r){"use strict";r.d(e,{T:function(){return u}});var n=r(2265),i=r(44839),o=r(92705),a=["children","width","height","viewBox","className","style","title","desc"];function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,a),y=l||{width:r,height:u,x:0,y:0},g=(0,i.Z)("recharts-surface",c);return n.createElement("svg",s({},(0,o.L6)(d,!0,"svg"),{className:g,width:r,height:u,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height)}),n.createElement("title",null,h),n.createElement("desc",null,p),e)}},26839:function(t,e,r){"use strict";r.d(e,{br:function(){return b},CW:function(){return A},Mw:function(){return j},zn:function(){return k},sp:function(){return w},qD:function(){return S},d2:function(){return P},bH:function(){return x},Ud:function(){return E},Nf:function(){return O}});var n=r(2265),i=r(59811),o=r(80203),a=r.n(o),s=r(55118),u=r.n(s),l=r(89830),c=r.n(l)()(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("")}),f=r(6779),h=(0,n.createContext)(void 0),p=(0,n.createContext)(void 0),d=(0,n.createContext)(void 0),y=(0,n.createContext)({}),g=(0,n.createContext)(void 0),m=(0,n.createContext)(0),v=(0,n.createContext)(0),b=function(t){var e=t.state,r=e.xAxisMap,i=e.yAxisMap,o=e.offset,a=t.clipPathId,s=t.children,u=t.width,l=t.height,f=c(o);return n.createElement(h.Provider,{value:r},n.createElement(p.Provider,{value:i},n.createElement(y.Provider,{value:o},n.createElement(d.Provider,{value:f},n.createElement(g.Provider,{value:a},n.createElement(m.Provider,{value:l},n.createElement(v.Provider,{value:u},s)))))))},w=function(){return(0,n.useContext)(g)},x=function(t){var e=(0,n.useContext)(h);null!=e||(0,i.Z)(!1);var r=e[t];return null!=r||(0,i.Z)(!1),r},A=function(){var t=(0,n.useContext)(h);return(0,f.Kt)(t)},O=function(){var t=(0,n.useContext)(p);return a()(t,function(t){return u()(t.domain,Number.isFinite)})||(0,f.Kt)(t)},E=function(t){var e=(0,n.useContext)(p);null!=e||(0,i.Z)(!1);var r=e[t];return null!=r||(0,i.Z)(!1),r},P=function(){return(0,n.useContext)(d)},S=function(){return(0,n.useContext)(y)},k=function(){return(0,n.useContext)(v)},j=function(){return(0,n.useContext)(m)}},7362:function(t,e,r){"use strict";r.d(e,{H:function(){return q}});var n=r(2265);function i(){}function o(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function a(t){this._context=t}function s(t){this._context=t}function u(t){this._context=t}a.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:o(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},s.prototype={areaStart:i,areaEnd:i,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},u.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:o(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};class l{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function c(t){this._context=t}function f(t){this._context=t}function h(t){return new f(t)}function p(t,e,r){var n=t._x1-t._x0,i=e-t._x1,o=(t._y1-t._y0)/(n||i<0&&-0),a=(r-t._y1)/(i||n<0&&-0);return((o<0?-1:1)+(a<0?-1:1))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs((o*i+a*n)/(n+i)))||0}function d(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function y(t,e,r){var n=t._x0,i=t._y0,o=t._x1,a=t._y1,s=(o-n)/3;t._context.bezierCurveTo(n+s,i+s*e,o-s,a-s*r,o,a)}function g(t){this._context=t}function m(t){this._context=new v(t)}function v(t){this._context=t}function b(t){this._context=t}function w(t){var e,r,n=t.length-1,i=Array(n),o=Array(n),a=Array(n);for(i[0]=0,o[0]=2,a[0]=t[0]+2*t[1],e=1;e=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(e=0,o[n-1]=(t[n]+i[n-1])/2;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}};var A=r(16028),O=r(66622),E=r(63760);function P(t){return t[0]}function S(t){return t[1]}function k(t,e){var r=(0,O.Z)(!0),n=null,i=h,o=null,a=(0,E.d)(s);function s(s){var u,l,c,f=(s=(0,A.Z)(s)).length,h=!1;for(null==n&&(o=i(c=a())),u=0;u<=f;++u)!(u=f;--h)s.point(m[h],v[h]);s.lineEnd(),s.areaEnd()}}g&&(m[c]=+t(p,c,l),v[c]=+e(p,c,l),s.point(n?+n(p,c,l):m[c],r?+r(p,c,l):v[c]))}if(d)return s=null,d+""||null}function c(){return k().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?P:(0,O.Z)(+t),e="function"==typeof e?e:void 0===e?(0,O.Z)(0):(0,O.Z)(+e),r="function"==typeof r?r:void 0===r?S:(0,O.Z)(+r),l.x=function(e){return arguments.length?(t="function"==typeof e?e:(0,O.Z)(+e),n=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:(0,O.Z)(+e),l):t},l.x1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:(0,O.Z)(+t),l):n},l.y=function(t){return arguments.length?(e="function"==typeof t?t:(0,O.Z)(+t),r=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:(0,O.Z)(+t),l):e},l.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:(0,O.Z)(+t),l):r},l.lineX0=l.lineY0=function(){return c().x(t).y(e)},l.lineY1=function(){return c().x(t).y(r)},l.lineX1=function(){return c().x(n).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:(0,O.Z)(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(s=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=s=null:s=a(o=t),l):o},l}var T=r(62637),N=r.n(T),C=r(14380),I=r.n(C),M=r(44839),B=r(91488),D=r(92705),R=r(6779);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(){return(L=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r=0?1:-1,u=r>=0?1:-1,l=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&i instanceof Array){for(var c=[0,0,0,0],f=0;f<4;f++)c[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+s*c[0]),c[0]>0&&(o+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(l,",").concat(t+u*c[0],",").concat(e)),o+="L ".concat(t+r-u*c[1],",").concat(e),c[1]>0&&(o+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(l,",\n ").concat(t+r,",").concat(e+s*c[1])),o+="L ".concat(t+r,",").concat(e+n-s*c[2]),c[2]>0&&(o+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(l,",\n ").concat(t+r-u*c[2],",").concat(e+n)),o+="L ".concat(t+u*c[3],",").concat(e+n),c[3]>0&&(o+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+n-s*c[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var h=Math.min(a,i);o="M ".concat(t,",").concat(e+s*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+u*h,",").concat(e,"\n L ").concat(t+r-u*h,",").concat(e,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+r,",").concat(e+s*h,"\n L ").concat(t+r,",").concat(e+n-s*h,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t+r-u*h,",").concat(e+n,"\n L ").concat(t+u*h,",").concat(e+n,"\n A ").concat(h,",").concat(h,",0,0,").concat(l,",").concat(t,",").concat(e+n-s*h," Z")}else o="M ".concat(t,",").concat(e," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return o},p=function(t,e){if(!t||!e)return!1;var r=t.x,n=t.y,i=e.x,o=e.y,a=e.width,s=e.height;return!!(Math.abs(a)>0&&Math.abs(s)>0)&&r>=Math.min(i,i+a)&&r<=Math.max(i,i+a)&&n>=Math.min(o,o+s)&&n<=Math.max(o,o+s)},d={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},y=function(t){var e,r=f(f({},d),t),s=(0,n.useRef)(),c=function(t){if(Array.isArray(t))return t}(e=(0,n.useState)(-1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],u=!0,l=!1;try{for(o=(r=r.call(t)).next;!(u=(n=o.call(r)).done)&&(s.push(n.value),2!==s.length);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}(e,2)||function(t,e){if(t){if("string"==typeof t)return l(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),p=c[0],y=c[1];(0,n.useEffect)(function(){if(s.current&&s.current.getTotalLength)try{var t=s.current.getTotalLength();t&&y(t)}catch(t){}},[]);var g=r.x,m=r.y,v=r.width,b=r.height,w=r.radius,x=r.className,A=r.animationEasing,O=r.animationDuration,E=r.animationBegin,P=r.isAnimationActive,S=r.isUpdateAnimationActive;if(g!==+g||m!==+m||v!==+v||b!==+b||0===v||0===b)return null;var k=(0,i.Z)("recharts-rectangle",x);return S?n.createElement(o.ZP,{canBegin:p>0,from:{width:v,height:b,x:g,y:m},to:{width:v,height:b,x:g,y:m},duration:O,animationEasing:A,isActive:S},function(t){var e=t.width,i=t.height,l=t.x,c=t.y;return n.createElement(o.ZP,{canBegin:p>0,from:"0px ".concat(-1===p?1:p,"px"),to:"".concat(p,"px 0px"),attributeName:"strokeDasharray",begin:E,duration:O,isActive:P,easing:A},n.createElement("path",u({},(0,a.L6)(r,!0),{className:k,d:h(l,c,e,i,w),ref:s})))}):n.createElement("path",u({},(0,a.L6)(r,!0),{className:k,d:h(g,m,v,b,w)}))}},79130:function(t,e,r){"use strict";r.d(e,{L:function(){return g}});var n=r(2265),i=r(44839),o=r(92705),a=r(48500),s=r(6779);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;e180),",").concat(+(u>c),",\n ").concat(h.x,",").concat(h.y,"\n ");if(i>0){var d=(0,a.op)(r,n,i,u),y=(0,a.op)(r,n,i,c);p+="L ".concat(y.x,",").concat(y.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(l)>180),",").concat(+(u<=c),",\n ").concat(d.x,",").concat(d.y," Z")}else p+="L ".concat(r,",").concat(n," Z");return p},d=function(t){var e=t.cx,r=t.cy,n=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,u=t.cornerIsExternal,l=t.startAngle,c=t.endAngle,f=(0,s.uY)(c-l),d=h({cx:e,cy:r,radius:i,angle:l,sign:f,cornerRadius:o,cornerIsExternal:u}),y=d.circleTangency,g=d.lineTangency,m=d.theta,v=h({cx:e,cy:r,radius:i,angle:c,sign:-f,cornerRadius:o,cornerIsExternal:u}),b=v.circleTangency,w=v.lineTangency,x=v.theta,A=u?Math.abs(l-c):Math.abs(l-c)-m-x;if(A<0)return a?"M ".concat(g.x,",").concat(g.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(-(2*o),",0\n "):p({cx:e,cy:r,innerRadius:n,outerRadius:i,startAngle:l,endAngle:c});var O="M ".concat(g.x,",").concat(g.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,").concat(+(A>180),",").concat(+(f<0),",").concat(b.x,",").concat(b.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(w.x,",").concat(w.y,"\n ");if(n>0){var E=h({cx:e,cy:r,radius:n,angle:l,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),P=E.circleTangency,S=E.lineTangency,k=E.theta,j=h({cx:e,cy:r,radius:n,angle:c,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),T=j.circleTangency,N=j.lineTangency,C=j.theta,I=u?Math.abs(l-c):Math.abs(l-c)-k-C;if(I<0&&0===o)return"".concat(O,"L").concat(e,",").concat(r,"Z");O+="L".concat(N.x,",").concat(N.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(T.x,",").concat(T.y,"\n A").concat(n,",").concat(n,",0,").concat(+(I>180),",").concat(+(f>0),",").concat(P.x,",").concat(P.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(S.x,",").concat(S.y,"Z")}else O+="L".concat(e,",").concat(r,"Z");return O},y={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},g=function(t){var e,r=f(f({},y),t),a=r.cx,u=r.cy,c=r.innerRadius,h=r.outerRadius,g=r.cornerRadius,m=r.forceCornerRadius,v=r.cornerIsExternal,b=r.startAngle,w=r.endAngle,x=r.className;if(h0&&360>Math.abs(b-w)?d({cx:a,cy:u,innerRadius:c,outerRadius:h,cornerRadius:Math.min(E,O/2),forceCornerRadius:m,cornerIsExternal:v,startAngle:b,endAngle:w}):p({cx:a,cy:u,innerRadius:c,outerRadius:h,startAngle:b,endAngle:w}),n.createElement("path",l({},(0,o.L6)(r,!0),{className:A,d:e,role:"img"}))}},45022:function(t,e,r){"use strict";r.d(e,{v:function(){return M}});var n=r(2265),i=r(62637),o=r.n(i);let a=Math.cos,s=Math.sin,u=Math.sqrt,l=Math.PI,c=2*l;var f={draw(t,e){let r=u(e/l);t.moveTo(r,0),t.arc(0,0,r,0,c)}};let h=u(1/3),p=2*h,d=s(l/10)/s(7*l/10),y=s(c/10)*d,g=-a(c/10)*d,m=u(3),v=u(3)/2,b=1/u(12),w=(b/2+1)*3;var x=r(66622),A=r(63760);u(3),u(3);var O=r(44839),E=r(92705);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var S=["type","size","sizeType"];function k(){return(k=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,S)),{},{type:i,size:s,sizeType:l}),h=c.className,p=c.cx,d=c.cy,y=(0,E.L6)(c,!0);return p===+p&&d===+d&&s===+s?n.createElement("path",k({},y,{className:(0,O.Z)("recharts-symbols",h),transform:"translate(".concat(p,", ").concat(d,")"),d:(e=N["symbol".concat(o()(i))]||f,(function(t,e){let r=null,n=(0,A.d)(i);function i(){let i;if(r||(r=i=n()),t.apply(this,arguments).draw(r,+e.apply(this,arguments)),i)return r=null,i+""||null}return t="function"==typeof t?t:(0,x.Z)(t||f),e="function"==typeof e?e:(0,x.Z)(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:(0,x.Z)(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:(0,x.Z)(+t),i):e},i.context=function(t){return arguments.length?(r=null==t?null:t,i):r},i})().type(e).size(I(s,l,i))())})):null};M.registerSymbol=function(t,e){N["symbol".concat(o()(t))]=e}},32641:function(t,e,r){"use strict";r.d(e,{bn:function(){return I},a3:function(){return F},lT:function(){return M},V$:function(){return B},w7:function(){return D}});var n=r(2265),i=r(14380),o=r.n(i),a=r(32999),s=r.n(a),u=r(64337),l=r.n(u),c=r(12916),f=r.n(c),h=r(90554),p=r(44839),d=r(79005),y=r(92705);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(){return(m=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=Array(e);r0,from:{upperWidth:0,lowerWidth:0,height:h,x:u,y:l},to:{upperWidth:c,lowerWidth:f,height:h,x:u,y:l},duration:O,animationEasing:b,isActive:P},function(t){var e=t.upperWidth,o=t.lowerWidth,s=t.height,u=t.x,l=t.y;return n.createElement(d.ZP,{canBegin:a>0,from:"0px ".concat(-1===a?1:a,"px"),to:"".concat(a,"px 0px"),attributeName:"strokeDasharray",begin:E,duration:O,easing:b},n.createElement("path",m({},(0,y.L6)(r,!0),{className:S,d:x(u,l,e,o,s),ref:i})))}):n.createElement("g",null,n.createElement("path",m({},(0,y.L6)(r,!0),{className:S,d:x(u,l,c,f,h)})))},E=r(79130),P=r(64256),S=r(45022),k=["option","shapeType","propTransformer","activeClassName","isActive"];function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function N(t){for(var e=1;e=0)continue;r[n]=t[n]}return r}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,k);if((0,n.isValidElement)(r))e=(0,n.cloneElement)(r,N(N({},f),(0,n.isValidElement)(r)?r.props:r));else if(o()(r))e=r(f);else if(s()(r)&&!l()(r)){var h=(void 0===a?function(t,e){return N(N({},e),t)}:a)(r,f);e=n.createElement(C,{shapeType:i,elementProps:h})}else e=n.createElement(C,{shapeType:i,elementProps:f});return c?n.createElement(P.m,{className:void 0===u?"recharts-active-shape":u},e):e}function M(t,e){return null!=e&&"trapezoids"in t.props}function B(t,e){return null!=e&&"sectors"in t.props}function D(t,e){return null!=e&&"points"in t.props}function R(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 _(t,e){var r=t.endAngle===e.endAngle,n=t.startAngle===e.startAngle;return r&&n}function L(t,e){var r=t.x===e.x,n=t.y===e.y,i=t.z===e.z;return r&&n&&i}function F(t){var e,r,n,i=t.activeTooltipItem,o=t.graphicalItem,a=t.itemData,s=(M(o,i)?e="trapezoids":B(o,i)?e="sectors":D(o,i)&&(e="points"),e),u=M(o,i)?null===(r=i.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:B(o,i)?null===(n=i.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:D(o,i)?i.payload:{},l=a.filter(function(t,e){var r=f()(u,t),n=o.props[s].filter(function(t){var e;return(M(o,i)?e=R:B(o,i)?e=_:D(o,i)&&(e=L),e)(t,i)}),a=o.props[s].indexOf(n[n.length-1]);return r&&e===a});return a.indexOf(l[l.length-1])}},3956:function(t,e,r){"use strict";r.d(e,{Ky:function(){return x},O1:function(){return v},_b:function(){return b},t9:function(){return m},xE:function(){return A}});var n=r(47759),i=r.n(n),o=r(55118),a=r.n(o),s=r(17400),u=r(92705),l=r(6779),c=r(28997);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var r=0;r0&&(j=Math.min((t||0)-(T[e-1]||0),j))}),Number.isFinite(j)){var N=j/k,C="vertical"===b.layout?r.height:r.width;if("gap"===b.padding&&(u=N*C/2),"no-gap"===b.padding){var I=(0,l.h1)(t.barCategoryGap,N*C),M=N*C/2;u=M-I-(M-I)/C*I}}}c="xAxis"===n?[r.left+(O.left||0)+(u||0),r.left+r.width-(O.right||0)-(u||0)]:"yAxis"===n?"horizontal"===f?[r.top+r.height-(O.bottom||0),r.top+(O.top||0)]:[r.top+(O.top||0)+(u||0),r.top+r.height-(O.bottom||0)-(u||0)]:b.range,P&&(c=[c[1],c[0]]);var B=(0,s.Hq)(b,i,m),D=B.scale,R=B.realScaleType;D.domain(x).range(c),(0,s.zF)(D);var _=(0,s.g$)(D,d(d({},b),{},{realScaleType:R}));"xAxis"===n?(v="top"===w&&!E||"bottom"===w&&E,h=r.left,p=g[S]-v*b.height):"yAxis"===n&&(v="left"===w&&!E||"right"===w&&E,h=g[S]-v*b.width,p=r.top);var L=d(d(d({},b),_),{},{realScaleType:R,x:h,y:p,scale:D,width:"xAxis"===n?r.width:b.width,height:"yAxis"===n?r.height:b.height});return L.bandSize=(0,s.zT)(L,_),b.hide||"xAxis"!==n?b.hide||(g[S]+=(v?-1:1)*L.width):g[S]+=(v?-1:1)*L.height,d(d({},o),{},y({},a,L))},{})},v=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)}},b=function(t){return v({x:t.x1,y:t.y1},{x:t.x2,y:t.y2})},w=function(){var t,e;function r(t){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r),this.scale=t}return t=[{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}}],e=[{key:"create",value:function(t){return new r(t)}}],t&&h(r.prototype,t),e&&h(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}();y(w,"EPS",1e-4);var x=function(t){var e=Object.keys(t).reduce(function(e,r){return d(d({},e),{},y({},r,w.create(t[r])))},{});return d(d({},e),{},{apply:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return i()(t,function(t,r){return e[r].apply(t,{bandAware:n,position:o})})},isInRange:function(t){return a()(t,function(t,r){return e[r].isInRange(t)})}})},A=function(t){var e=t.width,r=t.height,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(n%180+180)%180*Math.PI/180,o=Math.atan(r/e);return Math.abs(i>o&&itw(e,t()).base(e.base()),tO.o.apply(e,arguments),e}},scaleOrdinal:function(){return tZ.Z},scalePoint:function(){return f.x},scalePow:function(){return t$},scaleQuantile:function(){return function t(){var e,r=[],n=[],i=[];function o(){var t=0,e=Math.max(1,n.length);for(i=Array(e-1);++t=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,o=Math.floor(i),a=+r(t[o],o,t);return a+(+r(t[o+1],o+1,t)-a)*(i-o)}}(r,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:n[P(i,t)]}return a.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:r[0],e=i?[o[i-1],n]:[o[e-1],o[e]]},s.unknown=function(t){return arguments.length&&(e=t),s},s.thresholds=function(){return o.slice()},s.copy=function(){return t().domain([r,n]).range(a).unknown(e)},tO.o.apply(tD(s),arguments)}},scaleRadial:function(){return function t(){var e,r=tA(),n=[0,1],i=!1;function o(t){var n,o=Math.sign(n=r(t))*Math.sqrt(Math.abs(n));return isNaN(o)?e:i?Math.round(o):o}return o.invert=function(t){return r.invert(t1(t))},o.domain=function(t){return arguments.length?(r.domain(t),o):r.domain()},o.range=function(t){return arguments.length?(r.range((n=Array.from(t,td)).map(t1)),o):n.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(r.clamp(t),o):r.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(r.domain(),n).round(i).clamp(r.clamp()).unknown(e)},tO.o.apply(o,arguments),tD(o)}},scaleSequential:function(){return function t(){var e=tD(rZ()(tg));return e.copy=function(){return rJ(e,t())},tO.O.apply(e,arguments)}},scaleSequentialLog:function(){return function t(){var e=tV(rZ()).domain([1,10]);return e.copy=function(){return rJ(e,t()).base(e.base())},tO.O.apply(e,arguments)}},scaleSequentialPow:function(){return rW},scaleSequentialQuantile:function(){return function t(){var e=[],r=tg;function n(t){if(null!=t&&!isNaN(t=+t))return r((P(e,t,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();for(let r of(e=[],t))null==r||isNaN(r=+r)||e.push(r);return e.sort(b),n},n.interpolator=function(t){return arguments.length?(r=t,n):r},n.range=function(){return e.map((t,n)=>r(n/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(r,n)=>(function(t,e,r){if(!(!(n=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let r=-1;for(let n of t)null!=(n=e(n,++r,t))&&(n=+n)>=n&&(yield n)}}(t,void 0))).length)||isNaN(e=+e))){if(e<=0||n<2)return t3(t);if(e>=1)return t2(t);var n,i=(n-1)*e,o=Math.floor(i),a=t2((function t(e,r,n=0,i=1/0,o){if(r=Math.floor(r),n=Math.floor(Math.max(0,n)),i=Math.floor(Math.min(e.length-1,i)),!(n<=r&&r<=i))return e;for(o=void 0===o?t4:function(t=b){if(t===b)return t4;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,r)=>{let n=t(e,r);return n||0===n?n:(0===t(r,r))-(0===t(e,e))}}(o);i>n;){if(i-n>600){let a=i-n+1,s=r-n+1,u=Math.log(a),l=.5*Math.exp(2*u/3),c=.5*Math.sqrt(u*l*(a-l)/a)*(s-a/2<0?-1:1),f=Math.max(n,Math.floor(r-s*l/a+c)),h=Math.min(i,Math.floor(r+(a-s)*l/a+c));t(e,r,f,h,o)}let a=e[r],s=n,u=i;for(t6(e,n,r),o(e[i],a)>0&&t6(e,n,i);so(e[s],a);)++s;for(;o(e[u],a)>0;)--u}0===o(e[n],a)?t6(e,n,u):t6(e,++u,i),u<=r&&(n=u+1),r<=u&&(i=u-1)}return e})(t,o).subarray(0,o+1));return a+(t3(t.subarray(o+1))-a)*(i-o)}})(e,n/t))},n.copy=function(){return t(r).domain(e)},tO.O.apply(n,arguments)}},scaleSequentialSqrt:function(){return rY},scaleSequentialSymlog:function(){return function t(){var e=tq(rZ());return e.copy=function(){return rJ(e,t()).constant(e.constant())},tO.O.apply(e,arguments)}},scaleSqrt:function(){return t0},scaleSymlog:function(){return function t(){var e=tq(tx());return e.copy=function(){return tw(e,t()).constant(e.constant())},tO.o.apply(e,arguments)}},scaleThreshold:function(){return function t(){var e,r=[.5],n=[0,1],i=1;function o(t){return null!=t&&t<=t?n[P(r,t,0,i)]:e}return o.domain=function(t){return arguments.length?(i=Math.min((r=Array.from(t)).length,n.length-1),o):r.slice()},o.range=function(t){return arguments.length?(n=Array.from(t),i=Math.min(r.length,n.length-1),o):n.slice()},o.invertExtent=function(t){var e=n.indexOf(t);return[r[e-1],r[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(r).range(n).unknown(e)},tO.o.apply(o,arguments)}},scaleTime:function(){return rK},scaleUtc:function(){return rq},tickFormat:function(){return tB}});var f=r(47298);let h=Math.sqrt(50),p=Math.sqrt(10),d=Math.sqrt(2);function y(t,e,r){let n,i,o;let a=(e-t)/Math.max(0,r),s=Math.floor(Math.log10(a)),u=a/Math.pow(10,s),l=u>=h?10:u>=p?5:u>=d?2:1;return(s<0?(n=Math.round(t*(o=Math.pow(10,-s)/l)),i=Math.round(e*o),n/oe&&--i,o=-o):(n=Math.round(t/(o=Math.pow(10,s)*l)),i=Math.round(e/o),n*oe&&--i),i0))return[];if(t===e)return[t];let n=e=i))return[];let s=o-i+1,u=Array(s);if(n){if(a<0)for(let t=0;te?1:t>=e?0:NaN}function w(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function x(t){let e,r,n;function i(t,n,i=0,o=t.length){if(i>>1;0>r(t[e],n)?i=e+1:o=e}while(ib(t(e),r),n=(e,r)=>t(e)-r):(e=t===b||t===w?t:A,r=t,n=t),{left:i,center:function(t,e,r=0,o=t.length){let a=i(t,e,r,o-1);return a>r&&n(t[a-1],e)>-n(t[a],e)?a-1:a},right:function(t,n,i=0,o=t.length){if(i>>1;0>=r(t[e],n)?i=e+1:o=e}while(i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===r?V(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===r?V(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=M.exec(t))?new K(e[1],e[2],e[3],1):(e=B.exec(t))?new K(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=D.exec(t))?V(e[1],e[2],e[3],e[4]):(e=R.exec(t))?V(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=_.exec(t))?X(e[1],e[2]/100,e[3]/100,1):(e=L.exec(t))?X(e[1],e[2]/100,e[3]/100,e[4]):F.hasOwnProperty(t)?H(F[t]):"transparent"===t?new K(NaN,NaN,NaN,0):null}function H(t){return new K(t>>16&255,t>>8&255,255&t,1)}function V(t,e,r,n){return n<=0&&(t=e=r=NaN),new K(t,e,r,n)}function Q(t,e,r,n){var i;return 1==arguments.length?((i=t)instanceof j||(i=z(i)),i)?new K((i=i.rgb()).r,i.g,i.b,i.opacity):new K:new K(t,e,r,null==n?1:n)}function K(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function q(){return`#${Y(this.r)}${Y(this.g)}${Y(this.b)}`}function Z(){let t=J(this.opacity);return`${1===t?"rgb(":"rgba("}${W(this.r)}, ${W(this.g)}, ${W(this.b)}${1===t?")":`, ${t})`}`}function J(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function W(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Y(t){return((t=W(t))<16?"0":"")+t.toString(16)}function X(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new tt(t,e,r,n)}function $(t){if(t instanceof tt)return new tt(t.h,t.s,t.l,t.opacity);if(t instanceof j||(t=z(t)),!t)return new tt;if(t instanceof tt)return t;var e=(t=t.rgb()).r/255,r=t.g/255,n=t.b/255,i=Math.min(e,r,n),o=Math.max(e,r,n),a=NaN,s=o-i,u=(o+i)/2;return s?(a=e===o?(r-n)/s+(r0&&u<1?0:a,new tt(a,s,u,t.opacity)}function tt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function te(t){return(t=(t||0)%360)<0?t+360:t}function tr(t){return Math.max(0,Math.min(1,t||0))}function tn(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}function ti(t,e,r,n,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*r+(1+3*t+3*o-3*a)*n+a*i)/6}S(j,z,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:U,formatHex:U,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return $(this).formatHsl()},formatRgb:G,toString:G}),S(K,Q,k(j,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new K(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new K(W(this.r),W(this.g),W(this.b),J(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:q,formatHex:q,formatHex8:function(){return`#${Y(this.r)}${Y(this.g)}${Y(this.b)}${Y((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:Z,toString:Z})),S(tt,function(t,e,r,n){return 1==arguments.length?$(t):new tt(t,e,r,null==n?1:n)},k(j,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new tt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new tt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,i=2*r-n;return new K(tn(t>=240?t-240:t+120,i,n),tn(t,i,n),tn(t<120?t+240:t-120,i,n),this.opacity)},clamp(){return new tt(te(this.h),tr(this.s),tr(this.l),J(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=J(this.opacity);return`${1===t?"hsl(":"hsla("}${te(this.h)}, ${100*tr(this.s)}%, ${100*tr(this.l)}%${1===t?")":`, ${t})`}`}}));var to=t=>()=>t;function ta(t,e){var r=e-t;return r?function(e){return t+e*r}:to(isNaN(t)?e:t)}var ts=function t(e){var r,n=1==(r=+(r=e))?ta:function(t,e){var n,i,o;return e-t?(n=t,i=e,n=Math.pow(n,o=r),i=Math.pow(i,o)-n,o=1/o,function(t){return Math.pow(n+t*i,o)}):to(isNaN(t)?e:t)};function i(t,e){var r=n((t=Q(t)).r,(e=Q(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=ta(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function tu(t){return function(e){var r,n,i=e.length,o=Array(i),a=Array(i),s=Array(i);for(r=0;r=1?(r=1,e-1):Math.floor(r*e),i=t[n],o=t[n+1],a=n>0?t[n-1]:2*i-o,s=ns&&(a=e.slice(s,a),l[u]?l[u]+=a:l[++u]=a),(i=i[0])===(o=o[0])?l[u]?l[u]+=o:l[++u]=o:(l[++u]=null,c.push({i:u,x:tl(i,o)})),s=tf.lastIndex;return se&&(r=t,t=e,e=r),l=function(r){return Math.max(t,Math.min(e,r))}),n=u>2?tb:tv,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?r:(i||(i=n(a.map(t),s,u)))(t(l(e)))}return f.invert=function(r){return l(e((o||(o=n(s,a.map(t),tl)))(r)))},f.domain=function(t){return arguments.length?(a=Array.from(t,td),c()):a.slice()},f.range=function(t){return arguments.length?(s=Array.from(t),c()):s.slice()},f.rangeRound=function(t){return s=Array.from(t),u=tp,c()},f.clamp=function(t){return arguments.length?(l=!!t||tg,c()):l!==tg},f.interpolate=function(t){return arguments.length?(u=t,c()):u},f.unknown=function(t){return arguments.length?(r=t,f):r},function(r,n){return t=r,e=n,c()}}function tA(){return tx()(tg,tg)}var tO=r(48330),tE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function tP(t){var e;if(!(e=tE.exec(t)))throw Error("invalid format: "+t);return new tS({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function tS(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function tk(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,n=t.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+t.slice(r+1)]}function tj(t){return(t=tk(Math.abs(t)))?t[1]:NaN}function tT(t,e){var r=tk(t,e);if(!r)return t+"";var n=r[0],i=r[1];return i<0?"0."+Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+Array(i-n.length+2).join("0")}tP.prototype=tS.prototype,tS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var tN={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>tT(100*t,e),r:tT,s:function(t,e){var r=tk(t,e);if(!r)return t+"";var i=r[0],o=r[1],a=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=i.length;return a===s?i:a>s?i+Array(a-s+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+Array(1-a).join("0")+tk(t,Math.max(0,e+a-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function tC(t){return t}var tI=Array.prototype.map,tM=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function tB(t,e,r,n){var i,s,u=v(t,e,r);switch((n=tP(null==n?",f":n)).type){case"s":var l=Math.max(Math.abs(t),Math.abs(e));return null!=n.precision||isNaN(s=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(tj(l)/3)))-tj(Math.abs(u))))||(n.precision=s),a(n,l);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(s=Math.max(0,tj(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(i=Math.abs(i=u)))-tj(i))+1)||(n.precision=s-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(s=Math.max(0,-tj(Math.abs(u))))||(n.precision=s-("%"===n.type)*2)}return o(n)}function tD(t){var e=t.domain;return t.ticks=function(t){var r=e();return g(r[0],r[r.length-1],null==t?10:t)},t.tickFormat=function(t,r){var n=e();return tB(n[0],n[n.length-1],null==t?10:t,r)},t.nice=function(r){null==r&&(r=10);var n,i,o=e(),a=0,s=o.length-1,u=o[a],l=o[s],c=10;for(l0;){if((i=m(u,l,r))===n)return o[a]=u,o[s]=l,e(o);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else if(i<0)u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i;else break;n=i}return t},t}function tR(){var t=tA();return t.copy=function(){return tw(t,tR())},tO.o.apply(t,arguments),tD(t)}function t_(t,e){t=t.slice();var r,n=0,i=t.length-1,o=t[n],a=t[i];return a-t(-e,r)}function tV(t){let e,r;let n=t(tL,tF),i=n.domain,a=10;function s(){var o,s;return e=(o=a)===Math.E?Math.log:10===o&&Math.log10||2===o&&Math.log2||(o=Math.log(o),t=>Math.log(t)/o),r=10===(s=a)?tz:s===Math.E?Math.exp:t=>Math.pow(s,t),i()[0]<0?(e=tH(e),r=tH(r),t(tU,tG)):t(tL,tF),n}return n.base=function(t){return arguments.length?(a=+t,s()):a},n.domain=function(t){return arguments.length?(i(t),s()):i()},n.ticks=t=>{let n,o;let s=i(),u=s[0],l=s[s.length-1],c=l0){for(;f<=h;++f)for(n=1;nl)break;d.push(o)}}else for(;f<=h;++f)for(n=a-1;n>=1;--n)if(!((o=f>0?n/r(-f):n*r(f))l)break;d.push(o)}2*d.length{if(null==t&&(t=10),null==i&&(i=10===a?"s":","),"function"!=typeof i&&(a%1||null!=(i=tP(i)).precision||(i.trim=!0),i=o(i)),t===1/0)return i;let s=Math.max(1,a*t/n.ticks().length);return t=>{let n=t/r(Math.round(e(t)));return n*ai(t_(i(),{floor:t=>r(Math.floor(e(t))),ceil:t=>r(Math.ceil(e(t)))})),n}function tQ(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function tK(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function tq(t){var e=1,r=t(tQ(1),tK(e));return r.constant=function(r){return arguments.length?t(tQ(e=+r),tK(e)):e},tD(r)}o=(i=function(t){var e,r,i,o=void 0===t.grouping||void 0===t.thousands?tC:(e=tI.call(t.grouping,Number),r=t.thousands+"",function(t,n){for(var i=t.length,o=[],a=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>n&&(s=Math.max(1,n-u)),o.push(t.substring(i-=s,i+s)),!((u+=s+1)>n));)s=e[a=(a+1)%e.length];return o.reverse().join(r)}),a=void 0===t.currency?"":t.currency[0]+"",s=void 0===t.currency?"":t.currency[1]+"",u=void 0===t.decimal?".":t.decimal+"",l=void 0===t.numerals?tC:(i=tI.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return i[+t]})}),c=void 0===t.percent?"%":t.percent+"",f=void 0===t.minus?"−":t.minus+"",h=void 0===t.nan?"NaN":t.nan+"";function p(t){var e=(t=tP(t)).fill,r=t.align,i=t.sign,p=t.symbol,d=t.zero,y=t.width,g=t.comma,m=t.precision,v=t.trim,b=t.type;"n"===b?(g=!0,b="g"):tN[b]||(void 0===m&&(m=12),v=!0,b="g"),(d||"0"===e&&"="===r)&&(d=!0,e="0",r="=");var w="$"===p?a:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",x="$"===p?s:/[%p]/.test(b)?c:"",A=tN[b],O=/[defgprs%]/.test(b);function E(t){var a,s,c,p=w,E=x;if("c"===b)E=A(t)+E,t="";else{var P=(t=+t)<0||1/t<0;if(t=isNaN(t)?h:A(Math.abs(t),m),v&&(t=function(t){e:for(var e,r=t.length,n=1,i=-1;n0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),P&&0==+t&&"+"!==i&&(P=!1),p=(P?"("===i?i:f:"-"===i||"("===i?"":i)+p,E=("s"===b?tM[8+n/3]:"")+E+(P&&"("===i?")":""),O){for(a=-1,s=t.length;++a(c=t.charCodeAt(a))||c>57){E=(46===c?u+t.slice(a+1):t.slice(a))+E,t=t.slice(0,a);break}}}g&&!d&&(t=o(t,1/0));var S=p.length+t.length+E.length,k=S>1)+p+t+E+k.slice(S);break;default:t=k+p+t+E}return l(t)}return m=void 0===m?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),E.toString=function(){return t+""},E}return{format:p,formatPrefix:function(t,e){var r=p(((t=tP(t)).type="f",t)),n=3*Math.max(-8,Math.min(8,Math.floor(tj(e)/3))),i=Math.pow(10,-n),o=tM[8+n/3];return function(t){return r(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,a=i.formatPrefix;var tZ=r(95814);function tJ(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function tW(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function tY(t){return t<0?-t*t:t*t}function tX(t){var e=t(tg,tg),r=1;return e.exponent=function(e){return arguments.length?1==(r=+e)?t(tg,tg):.5===r?t(tW,tY):t(tJ(r),tJ(1/r)):r},tD(e)}function t$(){var t=tX(tx());return t.copy=function(){return tw(t,t$()).exponent(t.exponent())},tO.o.apply(t,arguments),t}function t0(){return t$.apply(null,arguments).exponent(.5)}function t1(t){return Math.sign(t)*t*t}function t2(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r=i)&&(r=i)}return r}function t3(t,e){let r;if(void 0===e)for(let e of t)null!=e&&(r>e||void 0===r&&e>=e)&&(r=e);else{let n=-1;for(let i of t)null!=(i=e(i,++n,t))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function t4(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(te?1:0)}function t6(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}let t8=new Date,t5=new Date;function t7(t,e,r,n){function i(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=r=>(t(r=new Date(r-1)),e(r,1),t(r),r),i.round=t=>{let e=i(t),r=i.ceil(t);return t-e(e(t=new Date(+t),null==r?1:Math.floor(r)),t),i.range=(r,n,o)=>{let a;let s=[];if(r=i.ceil(r),o=null==o?1:Math.floor(o),!(r0))return s;do s.push(a=new Date(+r)),e(r,o),t(r);while(at7(e=>{if(e>=e)for(;t(e),!r(e);)e.setTime(e-1)},(t,n)=>{if(t>=t){if(n<0)for(;++n<=0;)for(;e(t,-1),!r(t););else for(;--n>=0;)for(;e(t,1),!r(t););}}),r&&(i.count=(e,n)=>(t8.setTime(+e),t5.setTime(+n),t(t8),t(t5),Math.floor(r(t8,t5))),i.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?i.filter(n?e=>n(e)%t==0:e=>i.count(0,e)%t==0):i:null),i}let t9=t7(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);t9.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?t7(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):t9:null,t9.range;let et=t7(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());et.range;let ee=t7(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());ee.range;let er=t7(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());er.range;let en=t7(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());en.range;let ei=t7(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());ei.range;let eo=t7(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);eo.range;let ea=t7(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);ea.range;let es=t7(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function eu(t){return t7(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}es.range;let el=eu(0),ec=eu(1),ef=eu(2),eh=eu(3),ep=eu(4),ed=eu(5),ey=eu(6);function eg(t){return t7(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}el.range,ec.range,ef.range,eh.range,ep.range,ed.range,ey.range;let em=eg(0),ev=eg(1),eb=eg(2),ew=eg(3),ex=eg(4),eA=eg(5),eO=eg(6);em.range,ev.range,eb.range,ew.range,ex.range,eA.range,eO.range;let eE=t7(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());eE.range;let eP=t7(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());eP.range;let eS=t7(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());eS.every=t=>isFinite(t=Math.floor(t))&&t>0?t7(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)}):null,eS.range;let ek=t7(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function ej(t,e,r,n,i,o){let a=[[et,1,1e3],[et,5,5e3],[et,15,15e3],[et,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,864e5],[n,2,1728e5],[r,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function s(e,r,n){let i=Math.abs(r-e)/n,o=x(([,,t])=>t).right(a,i);if(o===a.length)return t.every(v(e/31536e6,r/31536e6,n));if(0===o)return t9.every(Math.max(v(e,r,n),1));let[s,u]=a[i/a[o-1][2]isFinite(t=Math.floor(t))&&t>0?t7(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)}):null,ek.range;let[eT,eN]=ej(ek,eP,em,es,ei,er),[eC,eI]=ej(eS,eE,el,eo,en,ee);function eM(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function eB(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function eD(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}var eR={"-":"",_:" ",0:"0"},e_=/^\s*\d+/,eL=/^%/,eF=/[\\^$*+?|[\]().{}]/g;function eU(t,e,r){var n=t<0?"-":"",i=(n?-t:t)+"",o=i.length;return n+(o[t.toLowerCase(),e]))}function eV(t,e,r){var n=e_.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function eQ(t,e,r){var n=e_.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function eK(t,e,r){var n=e_.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function eq(t,e,r){var n=e_.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function eZ(t,e,r){var n=e_.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function eJ(t,e,r){var n=e_.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function eW(t,e,r){var n=e_.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function eY(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function eX(t,e,r){var n=e_.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function e$(t,e,r){var n=e_.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function e0(t,e,r){var n=e_.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function e1(t,e,r){var n=e_.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function e2(t,e,r){var n=e_.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function e3(t,e,r){var n=e_.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function e4(t,e,r){var n=e_.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function e6(t,e,r){var n=e_.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function e8(t,e,r){var n=e_.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function e5(t,e,r){var n=eL.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function e7(t,e,r){var n=e_.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function e9(t,e,r){var n=e_.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function rt(t,e){return eU(t.getDate(),e,2)}function re(t,e){return eU(t.getHours(),e,2)}function rr(t,e){return eU(t.getHours()%12||12,e,2)}function rn(t,e){return eU(1+eo.count(eS(t),t),e,3)}function ri(t,e){return eU(t.getMilliseconds(),e,3)}function ro(t,e){return ri(t,e)+"000"}function ra(t,e){return eU(t.getMonth()+1,e,2)}function rs(t,e){return eU(t.getMinutes(),e,2)}function ru(t,e){return eU(t.getSeconds(),e,2)}function rl(t){var e=t.getDay();return 0===e?7:e}function rc(t,e){return eU(el.count(eS(t)-1,t),e,2)}function rf(t){var e=t.getDay();return e>=4||0===e?ep(t):ep.ceil(t)}function rh(t,e){return t=rf(t),eU(ep.count(eS(t),t)+(4===eS(t).getDay()),e,2)}function rp(t){return t.getDay()}function rd(t,e){return eU(ec.count(eS(t)-1,t),e,2)}function ry(t,e){return eU(t.getFullYear()%100,e,2)}function rg(t,e){return eU((t=rf(t)).getFullYear()%100,e,2)}function rm(t,e){return eU(t.getFullYear()%1e4,e,4)}function rv(t,e){var r=t.getDay();return eU((t=r>=4||0===r?ep(t):ep.ceil(t)).getFullYear()%1e4,e,4)}function rb(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+eU(e/60|0,"0",2)+eU(e%60,"0",2)}function rw(t,e){return eU(t.getUTCDate(),e,2)}function rx(t,e){return eU(t.getUTCHours(),e,2)}function rA(t,e){return eU(t.getUTCHours()%12||12,e,2)}function rO(t,e){return eU(1+ea.count(ek(t),t),e,3)}function rE(t,e){return eU(t.getUTCMilliseconds(),e,3)}function rP(t,e){return rE(t,e)+"000"}function rS(t,e){return eU(t.getUTCMonth()+1,e,2)}function rk(t,e){return eU(t.getUTCMinutes(),e,2)}function rj(t,e){return eU(t.getUTCSeconds(),e,2)}function rT(t){var e=t.getUTCDay();return 0===e?7:e}function rN(t,e){return eU(em.count(ek(t)-1,t),e,2)}function rC(t){var e=t.getUTCDay();return e>=4||0===e?ex(t):ex.ceil(t)}function rI(t,e){return t=rC(t),eU(ex.count(ek(t),t)+(4===ek(t).getUTCDay()),e,2)}function rM(t){return t.getUTCDay()}function rB(t,e){return eU(ev.count(ek(t)-1,t),e,2)}function rD(t,e){return eU(t.getUTCFullYear()%100,e,2)}function rR(t,e){return eU((t=rC(t)).getUTCFullYear()%100,e,2)}function r_(t,e){return eU(t.getUTCFullYear()%1e4,e,4)}function rL(t,e){var r=t.getUTCDay();return eU((t=r>=4||0===r?ex(t):ex.ceil(t)).getUTCFullYear()%1e4,e,4)}function rF(){return"+0000"}function rU(){return"%"}function rG(t){return+t}function rz(t){return Math.floor(+t/1e3)}function rH(t){return new Date(t)}function rV(t){return t instanceof Date?+t:+new Date(+t)}function rQ(t,e,r,n,i,o,a,s,u,l){var c=tA(),f=c.invert,h=c.domain,p=l(".%L"),d=l(":%S"),y=l("%I:%M"),g=l("%I %p"),m=l("%a %d"),v=l("%b %d"),b=l("%B"),w=l("%Y");function x(t){return(u(t)1)for(var r,n,i,o=1,a=t[e[0]],s=a.length;o=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:rG,s:rz,S:ru,u:rl,U:rc,V:rh,w:rp,W:rd,x:null,X:null,y:ry,Y:rm,Z:rb,"%":rU},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return s[t.getUTCMonth()]},c:null,d:rw,e:rw,f:rP,g:rR,G:rL,H:rx,I:rA,j:rO,L:rE,m:rS,M:rk,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:rG,s:rz,S:rj,u:rT,U:rN,V:rI,w:rM,W:rB,x:null,X:null,y:rD,Y:r_,Z:rF,"%":rU},x={a:function(t,e,r){var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){var n=f.exec(e.slice(r));return n?(t.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){var n=m.exec(e.slice(r));return n?(t.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){var n=y.exec(e.slice(r));return n?(t.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,r,n){return E(t,e,r,n)},d:e0,e:e0,f:e8,g:eW,G:eJ,H:e2,I:e2,j:e1,L:e6,m:e$,M:e3,p:function(t,e,r){var n=l.exec(e.slice(r));return n?(t.p=c.get(n[0].toLowerCase()),r+n[0].length):-1},q:eX,Q:e7,s:e9,S:e4,u:eQ,U:eK,V:eq,w:eV,W:eZ,x:function(t,e,n){return E(t,r,e,n)},X:function(t,e,r){return E(t,n,e,r)},y:eW,Y:eJ,Z:eY,"%":e5};function A(t,e){return function(r){var n,i,o,a=[],s=-1,u=0,l=t.length;for(r instanceof Date||(r=new Date(+r));++s53)return null;"w"in o||(o.w=1),"Z"in o?(n=(i=(n=eB(eD(o.y,0,1))).getUTCDay())>4||0===i?ev.ceil(n):ev(n),n=ea.offset(n,(o.V-1)*7),o.y=n.getUTCFullYear(),o.m=n.getUTCMonth(),o.d=n.getUTCDate()+(o.w+6)%7):(n=(i=(n=eM(eD(o.y,0,1))).getDay())>4||0===i?ec.ceil(n):ec(n),n=eo.offset(n,(o.V-1)*7),o.y=n.getFullYear(),o.m=n.getMonth(),o.d=n.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?eB(eD(o.y,0,1)).getUTCDay():eM(eD(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,eB(o)):eM(o)}}function E(t,e,r,n){for(var i,o,a=0,s=e.length,u=r.length;a=u)return -1;if(37===(i=e.charCodeAt(a++))){if(!(o=x[(i=e.charAt(a++))in eR?e.charAt(a++):i])||(n=o(t,r,n))<0)return -1}else if(i!=r.charCodeAt(n++))return -1}return n}return b.x=A(r,b),b.X=A(n,b),b.c=A(e,b),w.x=A(r,w),w.X=A(n,w),w.c=A(e,w),{format:function(t){var e=A(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=O(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=A(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=O(t+="",!0);return e.toString=function(){return t},e}}}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]})).format,s.parse,l=s.utcFormat,s.utcParse;var r2=r(16028),r3=r(66622);function r4(t){for(var e=t.length,r=Array(e);--e>=0;)r[e]=e;return r}function r6(t,e){return t[e]}function r8(t){let e=[];return e.key=t,e}var r5=r(47766),r7=r.n(r5),r9=r(89770),nt=r.n(r9),ne=r(49972),nr=r.n(ne),nn=r(14380),ni=r.n(nn),no=r(71519),na=r.n(no),ns=r(97019),nu=r.n(ns),nl=r(73720),nc=r.n(nl),nf=r(50299),nh=r.n(nf),np=r(62637),nd=r.n(np),ny=r(12916),ng=r.n(ny),nm=r(60229),nv=r.n(nm),nb=r(11431),nw=r.n(nb);function nx(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r=e?r.apply(void 0,i):t(e-a,nP(function(){for(var t=arguments.length,e=Array(t),n=0;nt.length)&&(e=t.length);for(var r=0,n=Array(e);rn&&(i=n,o=r),[i,o]}function nL(t,e,r){if(t.lte(0))return new(nw())(0);var n=nI.getDigitCount(t.toNumber()),i=new(nw())(10).pow(n),o=t.div(i),a=1!==n?.05:.1,s=new(nw())(Math.ceil(o.div(a).toNumber())).add(r).mul(a).mul(i);return e?s:new(nw())(Math.ceil(s))}function nF(t,e,r){var n=1,i=new(nw())(t);if(!i.isint()&&r){var o=Math.abs(t);o<1?(n=new(nw())(10).pow(nI.getDigitCount(t)-1),i=new(nw())(Math.floor(i.div(n).toNumber())).mul(n)):o>1&&(i=new(nw())(Math.floor(t)))}else 0===t?i=new(nw())(Math.floor((e-1)/2)):r||(i=new(nw())(Math.floor(t)));var a=Math.floor((e-1)/2);return nT(nj(function(t){return i.add(new(nw())(t-a).mul(n)).toNumber()}),nk)(0,e)}var nU=nC(function(t){var e=nB(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),s=nB(n_([r,n]),2),u=s[0],l=s[1];if(u===-1/0||l===1/0){var c=l===1/0?[u].concat(nM(nk(0,i-1).map(function(){return 1/0}))):[].concat(nM(nk(0,i-1).map(function(){return-1/0})),[l]);return r>n?nN(c):c}if(u===l)return nF(u,i,o);var f=function t(e,r,n,i){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((r-e)/(n-1)))return{step:new(nw())(0),tickMin:new(nw())(0),tickMax:new(nw())(0)};var s=nL(new(nw())(r).sub(e).div(n-1),i,a),u=Math.ceil((o=e<=0&&r>=0?new(nw())(0):(o=new(nw())(e).add(r).div(2)).sub(new(nw())(o).mod(s))).sub(e).div(s).toNumber()),l=Math.ceil(new(nw())(r).sub(o).div(s).toNumber()),c=u+l+1;return c>n?t(e,r,n,i,a+1):(c0?l+(n-c):l,u=r>0?u:u+(n-c)),{step:s,tickMin:o.sub(new(nw())(u).mul(s)),tickMax:o.add(new(nw())(l).mul(s))})}(u,l,a,o),h=f.step,p=f.tickMin,d=f.tickMax,y=nI.rangeStep(p,d.add(new(nw())(.1).mul(h)),h);return r>n?nN(y):y});nC(function(t){var e=nB(t,2),r=e[0],n=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),s=nB(n_([r,n]),2),u=s[0],l=s[1];if(u===-1/0||l===1/0)return[r,n];if(u===l)return nF(u,i,o);var c=nL(new(nw())(l).sub(u).div(a-1),o,0),f=nT(nj(function(t){return new(nw())(u).add(new(nw())(t).mul(c)).toNumber()}),nk)(0,a).filter(function(t){return t>=u&&t<=l});return r>n?nN(f):f});var nG=nC(function(t,e){var r=nB(t,2),n=r[0],i=r[1],o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=nB(n_([n,i]),2),s=a[0],u=a[1];if(s===-1/0||u===1/0)return[n,i];if(s===u)return[s];var l=nL(new(nw())(u).sub(s).div(Math.max(e,2)-1),o,0),c=[].concat(nM(nI.rangeStep(new(nw())(s),new(nw())(u).sub(new(nw())(.99).mul(l)),l)),[u]);return n>i?nN(c):c}),nz=r(52334),nH=r(6779),nV=r(92705),nQ=r(12171);function nK(t){return(nK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nq(t){return function(t){if(Array.isArray(t))return nZ(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){if("string"==typeof t)return nZ(t,void 0);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nZ(t,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nZ(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r1&&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&&1e-6>=Math.abs(Math.abs(i.range[1]-i.range[0])-360))for(var s=i.range,u=0;u0?n[u-1].coordinate:n[a-1].coordinate,c=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,h=void 0;if((0,nH.uY)(c-l)!==(0,nH.uY)(f-c)){var p=[];if((0,nH.uY)(f-c)===(0,nH.uY)(s[1]-s[0])){h=f;var d=c+s[1]-s[0];p[0]=Math.min(d,(d+l)/2),p[1]=Math.max(d,(d+l)/2)}else{h=l;var y=f+s[1]-s[0];p[0]=Math.min(c,(y+c)/2),p[1]=Math.max(c,(y+c)/2)}var g=[Math.min(c,(h+c)/2),Math.max(c,(h+c)/2)];if(t>g[0]&&t<=g[1]||t>=p[0]&&t<=p[1]){o=n[u].index;break}}else{var m=Math.min(l,f),v=Math.max(l,f);if(t>(m+c)/2&&t<=(v+c)/2){o=n[u].index;break}}}else for(var b=0;b0&&b(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},n1=function(t){var e,r,n=t.type.displayName,i=null!==(e=t.type)&&void 0!==e&&e.defaultProps?nW(nW({},t.type.defaultProps),t.props):t.props,o=i.stroke,a=i.fill;switch(n){case"Line":r=o;break;case"Area":case"Radar":r=o&&"none"!==o?o:a;break;default:r=a}return r},n2=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),s=0,u=a.length;s=0});if(g&&g.length){var m=g[0].type.defaultProps,v=void 0!==m?nW(nW({},m),g[0].props):g[0].props,b=v.barSize,w=v[y];o[w]||(o[w]=[]);var x=nr()(b)?e:b;o[w].push({item:g[0],stackList:g.slice(1),barSize:nr()(x)?void 0:(0,nH.h1)(x,r,0)})}}return o},n3=function(t){var e,r=t.barGap,n=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=void 0===o?[]:o,s=t.maxBarSize,u=a.length;if(u<1)return null;var l=(0,nH.h1)(r,i,0,!0),c=[];if(a[0].barSize===+a[0].barSize){var f=!1,h=i/u,p=a.reduce(function(t,e){return t+e.barSize||0},0);(p+=(u-1)*l)>=i&&(p-=(u-1)*l,l=0),p>=i&&h>0&&(f=!0,h*=.9,p=u*h);var d={offset:((i-p)/2>>0)-l,size:0};e=a.reduce(function(t,e){var r={item:e.item,position:{offset:d.offset+d.size+l,size:f?h:e.barSize}},n=[].concat(nq(t),[r]);return d=n[n.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:d})}),n},c)}else{var y=(0,nH.h1)(n,i,0,!0);i-2*y-(u-1)*l<=0&&(l=0);var g=(i-2*y-(u-1)*l)/u;g>1&&(g>>=0);var m=s===+s?Math.min(g,s):g;e=a.reduce(function(t,e,r){var n=[].concat(nq(t),[{item:e.item,position:{offset:y+(g+l)*r+(g-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){n.push({item:t,position:n[n.length-1].position})}),n},c)}return e},n4=function(t,e,r,n){var i=r.children,o=r.width,a=r.margin,s=o-(a.left||0)-(a.right||0),u=(0,nQ.z)({children:i,legendWidth:s});if(u){var l=n||{},c=l.width,f=l.height,h=u.align,p=u.verticalAlign,d=u.layout;if(("vertical"===d||"horizontal"===d&&"middle"===p)&&"center"!==h&&(0,nH.hj)(t[h]))return nW(nW({},t),{},nY({},h,t[h]+(c||0)));if(("horizontal"===d||"vertical"===d&&"center"===h)&&"middle"!==p&&(0,nH.hj)(t[p]))return nW(nW({},t),{},nY({},p,t[p]+(f||0)))}return t},n6=function(t,e,r,n,i){var o=e.props.children,a=(0,nV.NN)(o,nz.W).filter(function(t){var e;return e=t.props.direction,!!nr()(i)||("horizontal"===n?"yAxis"===i:"vertical"===n||"x"===e?"xAxis"===i:"y"!==e||"yAxis"===i)});if(a&&a.length){var s=a.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var n=nX(e,r);if(nr()(n))return t;var i=Array.isArray(n)?[nt()(n),r7()(n)]:[n,n],o=s.reduce(function(t,r){var n=nX(e,r,0),o=i[0]-Math.abs(Array.isArray(n)?n[0]:n),a=i[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(o,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]},[1/0,-1/0])}return null},n8=function(t,e,r,n,i){var o=e.map(function(e){return n6(t,e,r,i,n)}).filter(function(t){return!nr()(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},n5=function(t,e,r,n,i){var o=e.map(function(e){var o=e.props.dataKey;return"number"===r&&o&&n6(t,e,o,n)||n$(t,o,r,i)});if("number"===r)return o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return o.reduce(function(t,e){for(var r=0,n=e.length;r=2?2*(0,nH.uY)(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:n(i?i.indexOf(t):t)+u,value:t,offset:u}}).filter(function(t){return!nh()(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:n(t)+u,value:t,index:e,offset:u}}):n.ticks&&!r?n.ticks(t.tickCount).map(function(t){return{coordinate:n(t)+u,value:t,offset:u}}):n.domain().map(function(t,e){return{coordinate:n(t)+u,value:i?i[t]:t,index:e,offset:u}})},ie=new WeakMap,ir=function(t,e){if("function"!=typeof e)return t;ie.has(t)||ie.set(t,new WeakMap);var r=ie.get(t);if(r.has(e))return r.get(e);var n=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return r.set(e,n),n},ii=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:f.Z(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:tR(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!r)?{scale:f.x(),realScaleType:"point"}:"category"===i?{scale:f.Z(),realScaleType:"band"}:{scale:tR(),realScaleType:"linear"};if(na()(n)){var s="scale".concat(nd()(n));return{scale:(c[s]||f.x)(),realScaleType:c[s]?s:"point"}}return ni()(n)?{scale:n}:{scale:f.x(),realScaleType:"point"}},io=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])-1e-4,o=Math.max(n[0],n[1])+1e-4,a=t(e[0]),s=t(e[r-1]);(ao||so)&&t.domain([e[0],e[r-1]])}},ia=function(t,e){if(!t)return null;for(var r=0,n=t.length;rn)&&(i[1]=n),i[0]>n&&(i[0]=n),i[1]=0?(t[a][r][0]=i,t[a][r][1]=i+s,i=t[a][r][1]):(t[a][r][0]=o,t[a][r][1]=o+s,o=t[a][r][1])}},expand:function(t,e){if((n=t.length)>0){for(var r,n,i,o=0,a=t[0].length;o0){for(var r,n=0,i=t[e[0]],o=i.length;n0&&(n=(r=t[e[0]]).length)>0){for(var r,n,i,o=0,a=1;a=0?(t[o][r][0]=i,t[o][r][1]=i+a,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}}},il=function(t,e,r){var n=e.map(function(t){return t.props.dataKey}),i=iu[r];return(function(){var t=(0,r3.Z)([]),e=r4,r=r1,n=r6;function i(i){var o,a,s=Array.from(t.apply(this,arguments),r8),u=s.length,l=-1;for(let t of i)for(o=0,++l;o