Files
server/opt/psa/admin/htdocs/modules/watchdog/dist/index.js
2026-01-07 20:52:11 +01:00

3 lines
431 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*! For license information please see index.js.LICENSE.txt */
define(["plesk-ui-library"],e=>(()=>{var t={51(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(6241),i=r(3744),a=r(7369),o=r(3685),l=r(9251);function c(e,t,r,n=new Map,u=void 0){const f=u?.(e,t,r,n);if(void 0!==f)return f;if(o.isPrimitive(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){const t=new Array(e.length);n.set(e,t);for(let i=0;i<e.length;i++)t[i]=c(e[i],i,r,n,u);return Object.hasOwn(e,"index")&&(t.index=e.index),Object.hasOwn(e,"input")&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){const t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){const t=new Map;n.set(e,t);for(const[i,a]of e)t.set(i,c(a,i,r,n,u));return t}if(e instanceof Set){const t=new Set;n.set(e,t);for(const i of e)t.add(c(i,void 0,r,n,u));return t}if("undefined"!=typeof Buffer&&Buffer.isBuffer(e))return e.subarray();if(l.isTypedArray(e)){const t=new(Object.getPrototypeOf(e).constructor)(e.length);n.set(e,t);for(let i=0;i<e.length;i++)t[i]=c(e[i],i,r,n,u);return t}if(e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){const t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return n.set(e,t),s(t,e,r,n,u),t}if("undefined"!=typeof File&&e instanceof File){const t=new File([e],e.name,{type:e.type});return n.set(e,t),s(t,e,r,n,u),t}if("undefined"!=typeof Blob&&e instanceof Blob){const t=new Blob([e],{type:e.type});return n.set(e,t),s(t,e,r,n,u),t}if(e instanceof Error){const t=new e.constructor;return n.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,s(t,e,r,n,u),t}if(e instanceof Boolean){const t=new Boolean(e.valueOf());return n.set(e,t),s(t,e,r,n,u),t}if(e instanceof Number){const t=new Number(e.valueOf());return n.set(e,t),s(t,e,r,n,u),t}if(e instanceof String){const t=new String(e.valueOf());return n.set(e,t),s(t,e,r,n,u),t}if("object"==typeof e&&function(e){switch(i.getTag(e)){case a.argumentsTag:case a.arrayTag:case a.arrayBufferTag:case a.dataViewTag:case a.booleanTag:case a.dateTag:case a.float32ArrayTag:case a.float64ArrayTag:case a.int8ArrayTag:case a.int16ArrayTag:case a.int32ArrayTag:case a.mapTag:case a.numberTag:case a.objectTag:case a.regexpTag:case a.setTag:case a.stringTag:case a.symbolTag:case a.uint8ArrayTag:case a.uint8ClampedArrayTag:case a.uint16ArrayTag:case a.uint32ArrayTag:return!0;default:return!1}}(e)){const t=Object.create(Object.getPrototypeOf(e));return n.set(e,t),s(t,e,r,n,u),t}return e}function s(e,t,r=e,i,a){const o=[...Object.keys(t),...n.getSymbols(t)];for(let n=0;n<o.length;n++){const l=o[n],s=Object.getOwnPropertyDescriptor(e,l);(null==s||s.writable)&&(e[l]=c(t[l],l,r,i,a))}}t.cloneDeepWith=function(e,t){return c(e,void 0,e,new Map,t)},t.cloneDeepWithImpl=c,t.copyProperties=s},90(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(6047),i=r(4737),a=r(5566);t.orderBy=function(e,t,r,o){if(null==e)return[];r=o?void 0:r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=null==t?[null]:[t]),0===t.length&&(t=[null]),Array.isArray(r)||(r=null==r?[]:[r]),r=r.map(e=>String(e));const l=(e,t)=>{let r=e;for(let e=0;e<t.length&&null!=r;++e)r=r[t[e]];return r},c=t.map(e=>(Array.isArray(e)&&1===e.length&&(e=e[0]),null==e||"function"==typeof e||Array.isArray(e)||i.isKey(e)?e:{key:e,path:a.toPath(e)}));return e.map(e=>({original:e,criteria:c.map(t=>((e,t)=>null==t||null==e?t:"object"==typeof e&&"key"in e?Object.hasOwn(t,e.key)?t[e.key]:l(t,e.path):"function"==typeof e?e(t):Array.isArray(e)?l(t,e):"object"==typeof t?t[e]:t)(t,e))})).slice().sort((e,t)=>{for(let i=0;i<c.length;i++){const a=n.compareValues(e.criteria[i],t.criteria[i],r[i]);if(0!==a)return a}return 0}).map(e=>e.original)}},161(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(6458);t.isArrayLike=function(e){return null!=e&&"function"!=typeof e&&n.isLength(e.length)}},253(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>a});var n=r(2280),i={};for(const e in n)"default"!==e&&(i[e]=()=>n[e]);r.d(t,i);const a=n},314(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isUnsafeProperty=function(e){return"__proto__"===e}},320(e,t){"use strict";var r="function"==typeof Symbol&&Symbol.for;r&&Symbol.for("react.element"),r&&Symbol.for("react.portal"),r&&Symbol.for("react.fragment"),r&&Symbol.for("react.strict_mode"),r&&Symbol.for("react.profiler"),r&&Symbol.for("react.provider"),r&&Symbol.for("react.context"),r&&Symbol.for("react.async_mode"),r&&Symbol.for("react.concurrent_mode"),r&&Symbol.for("react.forward_ref"),r&&Symbol.for("react.suspense"),r&&Symbol.for("react.suspense_list"),r&&Symbol.for("react.memo"),r&&Symbol.for("react.lazy"),r&&Symbol.for("react.block"),r&&Symbol.for("react.fundamental"),r&&Symbol.for("react.responder"),r&&Symbol.for("react.scope")},446(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toKey=function(e){return"string"==typeof e||"symbol"==typeof e?e:Object.is(e?.valueOf?.(),-0)?"-0":String(e)}},524(e,t,r){"use strict";r(320)},798(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.flatten=function(e,t=1){const r=[],n=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){const o=e[a];Array.isArray(o)&&t<n?i(o,t+1):r.push(o)}};return i(e,0),r}},855(e,t,r){"use strict";e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},926(e,t,r){e.exports=r(5448).throttle},935(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r}).join("")},t.i=function(e,r,n,i,a){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var l=0;l<this.length;l++){var c=this[l][0];null!=c&&(o[c]=!0)}for(var s=0;s<e.length;s++){var u=[].concat(e[s]);n&&o[u[0]]||(void 0!==a&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),r&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=r):u[2]=r),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),t.push(u))}},t}},965(e,t,r){e.exports=r(2021).range},1077(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.identity=function(e){return e}},1291(e,t,r){e.exports=r(4904).isPlainObject},1321(e,t,r){"use strict";r.d(t,{A:()=>l});var n=r(2001),i=r.n(n),a=r(935),o=r.n(a)()(i());o.push([e.id,"/* Copyright 1999-2024. WebPros International GmbH. All rights reserved. */\n\n.watchdog-monit-status-readonly {\n margin: 8px;\n}\n\n.watchdog-service-properties-timeout {\n margin-bottom: 15px;\n}\n\n.watchdog-usage-chart {\n width: 100%;\n height: 300px;\n}\n","",{version:3,sources:["webpack://./index.css"],names:[],mappings:"AAAA,0EAA0E;;AAE1E;IACI,WAAW;AACf;;AAEA;IACI,mBAAmB;AACvB;;AAEA;IACI,WAAW;IACX,aAAa;AACjB",sourcesContent:["/* Copyright 1999-2024. WebPros International GmbH. All rights reserved. */\n\n.watchdog-monit-status-readonly {\n margin: 8px;\n}\n\n.watchdog-service-properties-timeout {\n margin-bottom: 15px;\n}\n\n.watchdog-usage-chart {\n width: 100%;\n height: 300px;\n}\n"],sourceRoot:""}]);const l=o},1435(e,t,r){"use strict";var n=r(253),i=r(8139),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=i.useSyncExternalStore,l=n.useRef,c=n.useEffect,s=n.useMemo,u=n.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,n,i){var f=l(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=s(function(){function e(e){if(!c){if(c=!0,o=e,e=n(e),void 0!==i&&d.hasValue){var t=d.value;if(i(t,e))return l=t}return l=e}if(t=l,a(o,e))return t;var r=n(e);return void 0!==i&&i(t,r)?(o=e,t):(o=e,l=r)}var o,l,c=!1,s=void 0===r?null:r;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,r,n,i]);var p=o(e,f[0],f[1]);return c(function(){d.hasValue=!0,d.value=p},[p]),u(p),p}},1732(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toArray=function(e){return Array.isArray(e)?e:Array.from(e)}},1740(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var n="";r.supports&&(n+="@supports (".concat(r.supports,") {")),r.media&&(n+="@media ".concat(r.media," {"));var i=void 0!==r.layer;i&&(n+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),n+=r.css,i&&(n+="}"),r.media&&(n+="}"),r.supports&&(n+="}");var a=r.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1843(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isObjectLike=function(e){return"object"==typeof e&&null!==e}},2001(e){"use strict";e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),a="/*# ".concat(i," */");return[t].concat([a]).join("\n")}return[t].join("\n")}},2021(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(6053),i=r(2270);t.range=function(e,t,r){r&&"number"!=typeof r&&n.isIterateeCall(e,t,r)&&(t=r=void 0),e=i.toFinite(e),void 0===t?(t=e,e=0):t=i.toFinite(t),r=void 0===r?e<t?1:-1:i.toFinite(r);const a=Math.max(Math.ceil((t-e)/(r||1)),0),o=new Array(a);for(let t=0;t<a;t++)o[t]=e,e+=r;return o}},2095(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isDeepKey=function(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}},2259(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(4206),i=r(1732),a=r(161);t.last=function(e){if(a.isArrayLike(e))return n.last(i.toArray(e))}},2270(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(2864);t.toFinite=function(e){return e?(e=n.toNumber(e))===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e==e?e:0:0===e?e:0}},2280(t){"use strict";t.exports=e},2422(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(3810),i=r(7723);t.matches=function(e){return e=i.cloneDeep(e),t=>n.isMatch(t,e)}},2591(e){"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var a={},o=[],l=0;l<e.length;l++){var c=e[l],s=n.base?c[0]+n.base:c[0],u=a[s]||0,f="".concat(s," ").concat(u);a[s]=u+1;var d=r(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var h=i(p,n);n.byIndex=l,t.splice(l,0,{identifier:f,updater:h,references:1})}o.push(f)}return o}function i(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,i){var a=n(e=e||[],i=i||{});return function(e){e=e||[];for(var o=0;o<a.length;o++){var l=r(a[o]);t[l].references--}for(var c=n(e,i),s=0;s<a.length;s++){var u=r(a[s]);0===t[u].references&&(t[u].updater(),t.splice(u,1))}a=c}}},2626(e,t,r){e.exports=r(2259).last},2726(e,t,r){e.exports=r(4647).uniqBy},2864(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(5187);t.toNumber=function(e){return n.isSymbol(e)?NaN:Number(e)}},3051(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3296(e,t,r){"use strict";var n=r(253),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,o=n.useEffect,l=n.useLayoutEffect,c=n.useDebugValue;function s(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var u="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,u=n[1];return l(function(){i.value=r,i.getSnapshot=t,s(i)&&u({inst:i})},[e,r,t]),o(function(){return s(i)&&u({inst:i}),e(function(){s(i)&&u({inst:i})})},[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:u},3380(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.toString=function e(t){if(null==t)return"";if("string"==typeof t)return t;if(Array.isArray(t))return t.map(e).join(",");const r=String(t);return"0"===r&&Object.is(Number(t),-0)?"-0":r}},3566(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(161),i=r(1843);t.isArrayLikeObject=function(e){return i.isObjectLike(e)&&n.isArrayLike(e)}},3638(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(51),i=r(7369);t.cloneDeepWith=function(e,t){return n.cloneDeepWith(e,(r,a,o,l)=>{const c=t?.(r,a,o,l);if(void 0!==c)return c;if("object"==typeof e)switch(Object.prototype.toString.call(e)){case i.numberTag:case i.stringTag:case i.booleanTag:{const t=new e.constructor(e?.valueOf());return n.copyProperties(t,e),t}case i.argumentsTag:{const t={};return n.copyProperties(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}})}},3656(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},3685(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isPrimitive=function(e){return null==e||"object"!=typeof e&&"function"!=typeof e}},3744(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}},3810(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(7294);t.isMatch=function(e,t){return n.isMatchWith(e,t,()=>{})}},4047(e,t,r){"use strict";var n=r(253);"function"==typeof Object.is&&Object.is,n.useSyncExternalStore,n.useRef,n.useEffect,n.useMemo,n.useDebugValue},4206(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.last=function(e){return e[e.length-1]}},4271(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(7200);t.debounce=function(e,t=0,r={}){"object"!=typeof r&&(r={});const{leading:i=!1,trailing:a=!0,maxWait:o}=r,l=Array(2);let c;i&&(l[0]="leading"),a&&(l[1]="trailing");let s=null;const u=n.debounce(function(...t){c=e.apply(this,t),s=null},t,{edges:l}),f=function(...t){return null!=o&&(null===s&&(s=Date.now()),Date.now()-s>=o)?(c=e.apply(this,t),s=Date.now(),u.cancel(),u.schedule(),c):(u.apply(this,t),c)};return f.cancel=u.cancel,f.flush=()=>(u.flush(),c),f}},4476(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(3810),i=r(446),a=r(5882),o=r(8881),l=r(8989);t.matchesProperty=function(e,t){switch(typeof e){case"object":Object.is(e?.valueOf(),-0)&&(e="-0");break;case"number":e=i.toKey(e)}return t=a.cloneDeep(t),function(r){const i=o.get(r,e);return void 0===i?l.has(r,e):void 0===t?void 0===i:n.isMatch(i,t)}}},4647(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(7058),i=r(1077),a=r(3566),o=r(5469);t.uniqBy=function(e,t=i.identity){return a.isArrayLikeObject(e)?n.uniqBy(Array.from(e),o.iteratee(t)):[]}},4737(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(5187),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.isKey=function(e,t){return!Array.isArray(e)&&(!("number"!=typeof e&&"boolean"!=typeof e&&null!=e&&!n.isSymbol(e))||"string"==typeof e&&(a.test(e)||!i.test(e))||null!=t&&Object.hasOwn(t,e))}},4904(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isPlainObject=function(e){if("object"!=typeof e)return!1;if(null==e)return!1;if(null===Object.getPrototypeOf(e))return!0;if("[object Object]"!==Object.prototype.toString.call(e)){const t=e[Symbol.toStringTag];return null!=t&&(!!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable&&e.toString()===`[object ${t}]`)}let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}},5187(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isSymbol=function(e){return"symbol"==typeof e||e instanceof Symbol}},5448(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(4271);t.throttle=function(e,t=0,r={}){const{leading:i=!0,trailing:a=!0}=r;return n.debounce(e,t,{leading:i,maxWait:t,trailing:a})}},5469(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(1077),i=r(5844),a=r(2422),o=r(4476);t.iteratee=function(e){if(null==e)return n.identity;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&2===e.length?o.matchesProperty(e[0],e[1]):a.matches(e);case"string":case"symbol":case"number":return i.property(e)}}},5566(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(3380),i=r(446);t.toPath=function(e){if(Array.isArray(e))return e.map(i.toKey);if("symbol"==typeof e)return[e];const t=[],r=(e=n.toString(e)).length;if(0===r)return t;let a=0,o="",l="",c=!1;for(46===e.charCodeAt(0)&&(t.push(""),a++);a<r;){const n=e[a];l?"\\"===n&&a+1<r?(a++,o+=e[a]):n===l?l="":o+=n:c?'"'===n||"'"===n?l=n:"]"===n?(c=!1,t.push(o),o=""):o+=n:"["===n?(c=!0,o&&(t.push(o),o="")):"."===n?o&&(t.push(o),o=""):o+=n,a++}return o&&t.push(o),t}},5604(e,t,r){e.exports=r(8881).get},5631(e,t,r){e.exports=r(5846).sortBy},5722(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.eq=function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}},5844(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(8881);t.property=function(e){return function(t){return n.get(t,e)}}},5846(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(90),i=r(798),a=r(6053);t.sortBy=function(e,...t){const r=t.length;return r>1&&a.isIterateeCall(e,t[0],t[1])?t=[]:r>2&&a.isIterateeCall(t[0],t[1],t[2])&&(t=[t[0]]),n.orderBy(e,i.flatten(t),["asc"])}},5882(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(3638);t.cloneDeep=function(e){return n.cloneDeepWith(e)}},5891(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(3744);t.isArguments=function(e){return null!==e&&"object"==typeof e&&"[object Arguments]"===n.getTag(e)}},5919(e,t,r){"use strict";r(4047)},6047(e,t){"use strict";function r(e){return"symbol"==typeof e?1:null===e?2:void 0===e?3:e!=e?4:0}Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.compareValues=(e,t,n)=>{if(e!==t){const i=r(e),a=r(t);if(i===a&&0===i){if(e<t)return"desc"===n?1:-1;if(e>t)return"desc"===n?-1:1}return"desc"===n?a-i:i-a}return 0}},6053(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(8838),i=r(161),a=r(7964),o=r(5722);t.isIterateeCall=function(e,t,r){return!!a.isObject(r)&&!!("number"==typeof t&&i.isArrayLike(r)&&n.isIndex(t)&&t<r.length||"string"==typeof t&&t in r)&&o.eq(r[t],e)}},6241(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.getSymbols=function(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}},6458(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isLength=function(e){return Number.isSafeInteger(e)&&e>=0}},6848(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},6999(e,t,r){"use strict";var n=r(6848);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return r.PropTypes=r,r}},7058(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.uniqBy=function(e,t){const r=new Map;for(let n=0;n<e.length;n++){const i=e[n],a=t(i);r.has(a)||r.set(a,i)}return Array.from(r.values())}},7121(e,t,r){"use strict";e.exports=r(1435)},7200(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.debounce=function(e,t,{signal:r,edges:n}={}){let i,a=null;const o=null!=n&&n.includes("leading"),l=null==n||n.includes("trailing"),c=()=>{null!==a&&(e.apply(i,a),i=void 0,a=null)};let s=null;const u=()=>{null!=s&&clearTimeout(s),s=setTimeout(()=>{s=null,l&&c(),f()},t)},f=()=>{null!==s&&(clearTimeout(s),s=null),i=void 0,a=null},d=function(...e){if(r?.aborted)return;i=this,a=e;const t=null==s;u(),o&&t&&c()};return d.schedule=u,d.cancel=f,d.flush=()=>{c()},r?.addEventListener("abort",f,{once:!0}),d}},7294(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(7964),i=r(3685),a=r(5722);function o(e,t,r,s){if(t===e)return!0;switch(typeof t){case"object":return function(e,t,r,n){if(null==t)return!0;if(Array.isArray(t))return l(e,t,r,n);if(t instanceof Map)return function(e,t,r,n){if(0===t.size)return!0;if(!(e instanceof Map))return!1;for(const[i,a]of t.entries())if(!1===r(e.get(i),a,i,e,t,n))return!1;return!0}(e,t,r,n);if(t instanceof Set)return c(e,t,r,n);const a=Object.keys(t);if(null==e||i.isPrimitive(e))return 0===a.length;if(0===a.length)return!0;if(n?.has(t))return n.get(t)===e;n?.set(t,e);try{for(let o=0;o<a.length;o++){const l=a[o];if(!i.isPrimitive(e)&&!(l in e))return!1;if(void 0===t[l]&&void 0!==e[l])return!1;if(null===t[l]&&null!==e[l])return!1;if(!r(e[l],t[l],l,e,t,n))return!1}return!0}finally{n?.delete(t)}}(e,t,r,s);case"function":return Object.keys(t).length>0?o(e,{...t},r,s):a.eq(e,t);default:return n.isObject(e)?"string"!=typeof t||""===t:a.eq(e,t)}}function l(e,t,r,n){if(0===t.length)return!0;if(!Array.isArray(e))return!1;const i=new Set;for(let a=0;a<t.length;a++){const o=t[a];let l=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let s=!1;if(r(e[c],o,a,e,t,n)&&(s=!0),s){i.add(c),l=!0;break}}if(!l)return!1}return!0}function c(e,t,r,n){return 0===t.size||e instanceof Set&&l([...e],[...t],r,n)}t.isMatchWith=function e(t,r,n){return"function"!=typeof n?e(t,r,()=>{}):o(t,r,function e(t,r,i,a,l,c){const s=n(t,r,i,a,l,c);return void 0!==s?Boolean(s):o(t,r,e,c)},new Map)},t.isSetMatch=c},7369(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.argumentsTag="[object Arguments]",t.arrayBufferTag="[object ArrayBuffer]",t.arrayTag="[object Array]",t.bigInt64ArrayTag="[object BigInt64Array]",t.bigUint64ArrayTag="[object BigUint64Array]",t.booleanTag="[object Boolean]",t.dataViewTag="[object DataView]",t.dateTag="[object Date]",t.errorTag="[object Error]",t.float32ArrayTag="[object Float32Array]",t.float64ArrayTag="[object Float64Array]",t.functionTag="[object Function]",t.int16ArrayTag="[object Int16Array]",t.int32ArrayTag="[object Int32Array]",t.int8ArrayTag="[object Int8Array]",t.mapTag="[object Map]",t.numberTag="[object Number]",t.objectTag="[object Object]",t.regexpTag="[object RegExp]",t.setTag="[object Set]",t.stringTag="[object String]",t.symbolTag="[object Symbol]",t.uint16ArrayTag="[object Uint16Array]",t.uint32ArrayTag="[object Uint32Array]",t.uint8ArrayTag="[object Uint8Array]",t.uint8ClampedArrayTag="[object Uint8ClampedArray]"},7723(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(51);t.cloneDeep=function(e){return n.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}},7760(e,t,r){var n;!function(){"use strict";var i,a=1e9,o={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,c="[DecimalError] ",s=c+"Invalid argument: ",u=c+"Exponent out of range: ",f=Math.floor,d=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=1e7,m=f(1286742750677284.5),y={};function v(e,t){var r,n,i,a,o,c,s,u,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),l?A(t,d):t;if(s=e.d,u=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i){for(a<0?(n=s,a=-a,c=u.length):(n=u,i=o,c=s.length),a>(c=(o=Math.ceil(d/7))>c?o+1:c+1)&&(a=c,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for((c=s.length)-(a=u.length)<0&&(a=c,n=u,u=s,s=n),r=0;a;)r=(s[--a]=s[a]+u[a]+r)/h|0,s[a]%=h;for(r&&(s.unshift(r),++i),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=i,l?A(t,d):t}function g(e,t,r){if(e!==~~e||e<t||e>r)throw Error(s+e)}function b(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(a+=S(r)),a+=n;(r=7-(n=(o=e[t])+"").length)&&(a+=S(r))}else if(0===o)return"0";for(;o%10==0;)o/=10;return a+o}y.absoluteValue=y.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},y.comparedTo=y.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(t=0,r=(n=a.d.length)<(i=e.d.length)?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1},y.decimalPlaces=y.dp=function(){var e=this,t=e.d.length-1,r=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},y.dividedBy=y.div=function(e){return w(this,new this.constructor(e))},y.dividedToIntegerBy=y.idiv=function(e){var t=this.constructor;return A(w(this,new t(e),0,1),t.precision)},y.equals=y.eq=function(e){return!this.cmp(e)},y.exponent=function(){return O(this)},y.greaterThan=y.gt=function(e){return this.cmp(e)>0},y.greaterThanOrEqualTo=y.gte=function(e){return this.cmp(e)>=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(e){return this.cmp(e)<0},y.lessThanOrEqualTo=y.lte=function(e){return this.cmp(e)<1},y.logarithm=y.log=function(e){var t,r=this,n=r.constructor,a=n.precision,o=a+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(i))throw Error(c+"NaN");if(r.s<1)throw Error(c+(r.s?"NaN":"-Infinity"));return r.eq(i)?new n(0):(l=!1,t=w(P(r,o),P(e,o),o),l=!0,A(t,a))},y.minus=y.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?k(t,e):v(t,(e.s=-e.s,e))},y.modulo=y.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(!(e=new n(e)).s)throw Error(c+"NaN");return r.s?(l=!1,t=w(r,e,0,1).times(e),l=!0,r.minus(t)):A(new n(r),i)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return P(this)},y.negated=y.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},y.plus=y.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?v(t,e):k(t,(e.s=-e.s,e))},y.precision=y.sd=function(e){var t,r,n,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(s+e);if(t=O(i)+1,r=7*(n=i.d.length-1)+1,n=i.d[n]){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r},y.squareRoot=y.sqrt=function(){var e,t,r,n,i,a,o,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(c+"NaN")}for(e=O(s),l=!1,0==(i=Math.sqrt(+s))||i==1/0?(((t=b(s.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),n=new u(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new u(i.toString()),i=o=(r=u.precision)+3;;)if(n=(a=n).plus(w(s,a,o+2)).times(.5),b(a.d).slice(0,o)===(t=b(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&"4999"==t){if(A(a,r+1,0),a.times(a).eq(s)){n=a;break}}else if("9999"!=t)break;o+=4}return l=!0,A(n,r)},y.times=y.mul=function(e){var t,r,n,i,a,o,c,s,u,f=this,d=f.constructor,p=f.d,m=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,r=f.e+e.e,(s=p.length)<(u=m.length)&&(a=p,p=m,m=a,o=s,s=u,u=o),a=[],n=o=s+u;n--;)a.push(0);for(n=u;--n>=0;){for(t=0,i=s+n;i>n;)c=a[i]+m[n]*p[i-n-1]+t,a[i--]=c%h|0,t=c/h|0;a[i]=(a[i]+t)%h|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,l?A(e,d.precision):e},y.toDecimalPlaces=y.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(g(e,0,a),void 0===t?t=n.rounding:g(t,0,8),A(r,e+O(r)+1,t))},y.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=T(n,!0):(g(e,0,a),void 0===t?t=i.rounding:g(t,0,8),r=T(n=A(new i(n),e+1,t),!0,e+1)),r},y.toFixed=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?T(i):(g(e,0,a),void 0===t?t=o.rounding:g(t,0,8),r=T((n=A(new o(i),e+O(i)+1,t)).abs(),!1,e+O(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)},y.toInteger=y.toint=function(){var e=this,t=e.constructor;return A(new t(e),O(e)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(e){var t,r,n,a,o,s,u=this,d=u.constructor,p=+(e=new d(e));if(!e.s)return new d(i);if(!(u=new d(u)).s){if(e.s<1)throw Error(c+"Infinity");return u}if(u.eq(i))return u;if(n=d.precision,e.eq(i))return A(u,n);if(s=(t=e.e)>=(r=e.d.length-1),o=u.s,s){if((r=p<0?-p:p)<=9007199254740991){for(a=new d(i),t=Math.ceil(n/7+4),l=!1;r%2&&C((a=a.times(u)).d,t),0!==(r=f(r/2));)C((u=u.times(u)).d,t);return l=!0,e.s<0?new d(i).div(a):A(a,n)}}else if(o<0)throw Error(c+"NaN");return o=o<0&&1&e.d[Math.max(t,r)]?-1:1,u.s=1,l=!1,a=e.times(P(u,n+12)),l=!0,(a=x(a)).s=o,a},y.toPrecision=function(e,t){var r,n,i=this,o=i.constructor;return void 0===e?n=T(i,(r=O(i))<=o.toExpNeg||r>=o.toExpPos):(g(e,1,a),void 0===t?t=o.rounding:g(t,0,8),n=T(i=A(new o(i),e,t),e<=(r=O(i))||r<=o.toExpNeg,e)),n},y.toSignificantDigits=y.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(g(e,1,a),void 0===t?t=r.rounding:g(t,0,8)),A(new r(this),e,t)},y.toString=y.valueOf=y.val=y.toJSON=function(){var e=this,t=O(e),r=e.constructor;return T(e,t<=r.toExpNeg||t>=r.toExpPos)};var w=function(){function e(e,t){var r,n=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+n,e[i]=r%h|0,n=r/h|0;return n&&e.unshift(n),e}function t(e,t,r,n){var i,a;if(r!=n)a=r>n?1:-1;else for(i=a=0;i<r;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*h+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,a,o){var l,s,u,f,d,p,m,y,v,g,b,w,x,E,S,P,j,k,T=n.constructor,C=n.s==i.s?1:-1,M=n.d,_=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(c+"Division by zero");for(s=n.e-i.e,j=_.length,S=M.length,y=(m=new T(C)).d=[],u=0;_[u]==(M[u]||0);)++u;if(_[u]>(M[u]||0)&&--s,(w=null==a?a=T.precision:o?a+(O(n)-O(i))+1:a)<0)return new T(0);if(w=w/7+2|0,u=0,1==j)for(f=0,_=_[0],w++;(u<S||f)&&w--;u++)x=f*h+(M[u]||0),y[u]=x/_|0,f=x%_|0;else{for((f=h/(_[0]+1)|0)>1&&(_=e(_,f),M=e(M,f),j=_.length,S=M.length),E=j,g=(v=M.slice(0,j)).length;g<j;)v[g++]=0;(k=_.slice()).unshift(0),P=_[0],_[1]>=h/2&&++P;do{f=0,(l=t(_,v,j,g))<0?(b=v[0],j!=g&&(b=b*h+(v[1]||0)),(f=b/P|0)>1?(f>=h&&(f=h-1),1==(l=t(d=e(_,f),v,p=d.length,g=v.length))&&(f--,r(d,j<p?k:_,p))):(0==f&&(l=f=1),d=_.slice()),(p=d.length)<g&&d.unshift(0),r(v,d,g),-1==l&&(l=t(_,v,j,g=v.length))<1&&(f++,r(v,j<g?k:_,g)),g=v.length):0===l&&(f++,v=[0]),y[u++]=f,l&&v[0]?v[g++]=M[E]||0:(v=[M[E]],g=1)}while((E++<S||void 0!==v[0])&&w--)}return y[0]||y.shift(),m.e=s,A(m,o?a+O(m)+1:a)}}();function x(e,t){var r,n,a,o,c,s=0,f=0,p=e.constructor,h=p.precision;if(O(e)>16)throw Error(u+O(e));if(!e.s)return new p(i);for(null==t?(l=!1,c=h):c=t,o=new p(.03125);e.abs().gte(.1);)e=e.times(o),f+=5;for(c+=Math.log(d(2,f))/Math.LN10*2+5|0,r=n=a=new p(i),p.precision=c;;){if(n=A(n.times(e),c),r=r.times(++s),b((o=a.plus(w(n,r,c))).d).slice(0,c)===b(a.d).slice(0,c)){for(;f--;)a=A(a.times(a),c);return p.precision=h,null==t?(l=!0,A(a,h)):a}a=o}}function O(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function E(e,t,r){if(t>e.LN10.sd())throw l=!0,r&&(e.precision=r),Error(c+"LN10 precision limit exceeded");return A(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function P(e,t){var r,n,a,o,s,u,f,d,p,h=1,m=e,y=m.d,v=m.constructor,g=v.precision;if(m.s<1)throw Error(c+(m.s?"NaN":"-Infinity"));if(m.eq(i))return new v(0);if(null==t?(l=!1,d=g):d=t,m.eq(10))return null==t&&(l=!0),E(v,d);if(d+=10,v.precision=d,n=(r=b(y)).charAt(0),o=O(m),!(Math.abs(o)<15e14))return f=E(v,d+2,g).times(o+""),m=P(new v(n+"."+r.slice(1)),d-10).plus(f),v.precision=g,null==t?(l=!0,A(m,g)):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=b((m=m.times(e)).d)).charAt(0),h++;for(o=O(m),n>1?(m=new v("0."+r),o++):m=new v(n+"."+r.slice(1)),u=s=m=w(m.minus(i),m.plus(i),d),p=A(m.times(m),d),a=3;;){if(s=A(s.times(p),d),b((f=u.plus(w(s,new v(a),d))).d).slice(0,d)===b(u.d).slice(0,d))return u=u.times(2),0!==o&&(u=u.plus(E(v,d+2,g).times(o+""))),u=w(u,new v(h),d),v.precision=g,null==t?(l=!0,A(u,g)):u;u=f,a+=2}}function j(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(n,i)){if(i-=n,r=r-n-1,e.e=f(r/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),l&&(e.e>m||e.e<-m))throw Error(u+r)}else e.s=0,e.e=0,e.d=[0];return e}function A(e,t,r){var n,i,a,o,c,s,p,y,v=e.d;for(o=1,a=v[0];a>=10;a/=10)o++;if((n=t-o)<0)n+=7,i=t,p=v[y=0];else{if((y=Math.ceil((n+1)/7))>=(a=v.length))return e;for(p=a=v[y],o=1;a>=10;a/=10)o++;i=(n%=7)-7+o}if(void 0!==r&&(c=p/(a=d(10,o-i-1))%10|0,s=t<0||void 0!==v[y+1]||p%a,s=r<4?(c||s)&&(0==r||r==(e.s<0?3:2)):c>5||5==c&&(4==r||s||6==r&&(n>0?i>0?p/d(10,o-i):0:v[y-1])%10&1||r==(e.s<0?8:7))),t<1||!v[0])return s?(a=O(e),v.length=1,t=t-a-1,v[0]=d(10,(7-t%7)%7),e.e=f(-t/7)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==n?(v.length=y,a=1,y--):(v.length=y+1,a=d(10,7-n),v[y]=i>0?(p/d(10,o-i)%d(10,i)|0)*a:0),s)for(;;){if(0==y){(v[0]+=a)==h&&(v[0]=1,++e.e);break}if(v[y]+=a,v[y]!=h)break;v[y--]=0,a=1}for(n=v.length;0===v[--n];)v.pop();if(l&&(e.e>m||e.e<-m))throw Error(u+O(e));return e}function k(e,t){var r,n,i,a,o,c,s,u,f,d,p=e.constructor,m=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),l?A(t,m):t;if(s=e.d,d=t.d,n=t.e,u=e.e,s=s.slice(),o=u-n){for((f=o<0)?(r=s,o=-o,c=d.length):(r=d,n=u,c=s.length),o>(i=Math.max(Math.ceil(m/7),c)+2)&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for((f=(i=s.length)<(c=d.length))&&(c=i),i=0;i<c;i++)if(s[i]!=d[i]){f=s[i]<d[i];break}o=0}for(f&&(r=s,s=d,d=r,t.s=-t.s),c=s.length,i=d.length-c;i>0;--i)s[c++]=0;for(i=d.length;i>o;){if(s[--i]<d[i]){for(a=i;a&&0===s[--a];)s[a]=h-1;--s[a],s[i]+=h}s[i]-=d[i]}for(;0===s[--c];)s.pop();for(;0===s[0];s.shift())--n;return s[0]?(t.d=s,t.e=n,l?A(t,m):t):new p(0)}function T(e,t,r){var n,i=O(e),a=b(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+S(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+S(-i-1)+a,r&&(n=r-o)>0&&(a+=S(n))):i>=o?(a+=S(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+S(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=S(n))),e.s<0?"-"+a:a}function C(e,t){if(e.length>t)return e.length=t,!0}function M(e){if(!e||"object"!=typeof e)throw Error(c+"Object expected");var t,r,n,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(n=e[r=i[t]])){if(!(f(n)===n&&n>=i[t+1]&&n<=i[t+2]))throw Error(s+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(s+r+": "+n);this[r]=new this(n)}return this}(o=function e(t){var r,n,i;function a(e){var t=this;if(!(t instanceof a))return new a(e);if(t.constructor=a,e instanceof a)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(s+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):j(t,e.toString())}if("string"!=typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(s+e);j(t,e)}if(a.prototype=y,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=e,a.config=a.set=M,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return a.config(t),a}(o)).default=o.Decimal=o,i=new o(1),void 0===(n=function(){return o}.call(t,r,t,e))||(e.exports=n)}()},7964(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isObject=function(e){return null!==e&&("object"==typeof e||"function"==typeof e)}},8128(e){"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},8139(e,t,r){"use strict";e.exports=r(3296)},8838(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const r=/^(?:0|[1-9]\d*)$/;t.isIndex=function(e,t=Number.MAX_SAFE_INTEGER){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<t;case"symbol":return!1;case"string":return r.test(e)}}},8881(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(314),i=r(2095),a=r(446),o=r(5566);t.get=function e(t,r,l){if(null==t)return l;switch(typeof r){case"string":{if(n.isUnsafeProperty(r))return l;const a=t[r];return void 0===a?i.isDeepKey(r)?e(t,o.toPath(r),l):l:a}case"number":case"symbol":{"number"==typeof r&&(r=a.toKey(r));const e=t[r];return void 0===e?l:e}default:{if(Array.isArray(r))return function(e,t,r){if(0===t.length)return r;let i=e;for(let e=0;e<t.length;e++){if(null==i)return r;if(n.isUnsafeProperty(t[e]))return r;i=i[t[e]]}return void 0===i?r:i}(t,r,l);if(r=Object.is(r?.valueOf(),-0)?"-0":String(r),n.isUnsafeProperty(r))return l;const e=t[r];return void 0===e?l:e}}}},8985(e){"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(e,t,n,a,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var l=new i(n,a||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],l]:e._events[c].push(l):(e._events[c]=l,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,n,i=[];if(0===this._eventsCount)return i;for(n in e=this._events)t.call(e,n)&&i.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=new Array(a);i<a;i++)o[i]=n[i].fn;return o},l.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,i,a,o){var l=r?r+e:e;if(!this._events[l])return!1;var c,s,u=this._events[l],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,i),!0;case 5:return u.fn.call(u.context,t,n,i,a),!0;case 6:return u.fn.call(u.context,t,n,i,a,o),!0}for(s=1,c=new Array(f-1);s<f;s++)c[s-1]=arguments[s];u.fn.apply(u.context,c)}else{var d,p=u.length;for(s=0;s<p;s++)switch(u[s].once&&this.removeListener(e,u[s].fn,void 0,!0),f){case 1:u[s].fn.call(u[s].context);break;case 2:u[s].fn.call(u[s].context,t);break;case 3:u[s].fn.call(u[s].context,t,n);break;case 4:u[s].fn.call(u[s].context,t,n,i);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];u[s].fn.apply(u[s].context,c)}}return!0},l.prototype.on=function(e,t,r){return a(this,e,t,r,!1)},l.prototype.once=function(e,t,r){return a(this,e,t,r,!0)},l.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return o(this,a),this;var l=this._events[a];if(l.fn)l.fn!==t||i&&!l.once||n&&l.context!==n||o(this,a);else{for(var c=0,s=[],u=l.length;c<u;c++)(l[c].fn!==t||i&&!l[c].once||n&&l[c].context!==n)&&s.push(l[c]);s.length?this._events[a]=1===s.length?s[0]:s:o(this,a)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&o(this,t)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l},8989(e,t,r){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const n=r(2095),i=r(8838),a=r(5891),o=r(5566);t.has=function(e,t){let r;if(r=Array.isArray(t)?t:"string"==typeof t&&n.isDeepKey(t)&&null==e?.[t]?o.toPath(t):[t],0===r.length)return!1;let l=e;for(let e=0;e<r.length;e++){const t=r[e];if(!(null!=l&&Object.hasOwn(l,t)||(Array.isArray(l)||a.isArguments(l))&&i.isIndex(t)&&t<l.length))return!1;l=l[t]}return!0}},9067(e,t,r){e.exports=r(6999)()},9251(e,t){"use strict";Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),t.isTypedArray=function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var a=r[e]={id:e,exports:{}};return t[e].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0;var i={};return(()=>{"use strict";n.r(i),n.d(i,{default:()=>_C});var e={};n.r(e),n.d(e,{hasBrowserEnv:()=>hr,hasStandardBrowserEnv:()=>yr,hasStandardBrowserWebWorkerEnv:()=>vr,navigator:()=>mr,origin:()=>gr});var t={};n.r(t),n.d(t,{scaleBand:()=>Vs,scaleDiverging:()=>Nh,scaleDivergingLog:()=>Lh,scaleDivergingPow:()=>zh,scaleDivergingSqrt:()=>Bh,scaleDivergingSymlog:()=>Fh,scaleIdentity:()=>Df,scaleImplicit:()=>Hs,scaleLinear:()=>_f,scaleLog:()=>$f,scaleOrdinal:()=>Ks,scalePoint:()=>Gs,scalePow:()=>Zf,scaleQuantile:()=>ld,scaleQuantize:()=>cd,scaleRadial:()=>ed,scaleSequential:()=>Th,scaleSequentialLog:()=>Ch,scaleSequentialPow:()=>_h,scaleSequentialQuantile:()=>Rh,scaleSequentialSqrt:()=>Dh,scaleSequentialSymlog:()=>Mh,scaleSqrt:()=>Jf,scaleSymlog:()=>Kf,scaleThreshold:()=>sd,scaleTime:()=>Ph,scaleUtc:()=>jh,tickFormat:()=>Cf});var r=n(253),a=n(9067),o=n.n(a),l=n(2280);const c=(0,r.createContext)({baseUrl:!1,monitoringStatus:!1,setMonitoringStatus:()=>{},pollInterval:null,setPollInterval:()=>{}}),s=()=>(0,r.useContext)(c),u=(0,r.createContext)({addSuccess:e=>{},addError:e=>{},clear:()=>{}}),f=({children:e})=>{const t=(0,r.useRef)(),n=(0,r.useMemo)(()=>({addSuccess:e=>t.current.add({intent:"success",autoClosable:!0,message:e}),addError:e=>t.current.add({intent:"danger",message:e}),clear:()=>t.current.clear()}),[t]);return r.default.createElement(u.Provider,{value:n},e,r.default.createElement(l.Toaster,{ref:t}))};f.propTypes={children:o().element.isRequired};const d=()=>(0,r.useContext)(u);var p="popstate";function h(e={}){return function(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:a=!1}=n,o=i.history,l="POP",c=null,s=u();function u(){return(o.state||{idx:null}).idx}function f(){l="POP";let e=u(),t=null==e?null:e-s;s=e,c&&c({action:l,location:h.location,delta:t})}function d(e){return function(e,t=!1){let r="http://localhost";"undefined"!=typeof window&&(r="null"!==window.location.origin?window.location.origin:window.location.href),m(r,"No window.location.(origin|href) available to create URL");let n="string"==typeof e?e:b(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}(e)}null==s&&(s=0,o.replaceState({...o.state,idx:s},""));let h={get action(){return l},get location(){return e(i,o)},listen(e){if(c)throw new Error("A history only accepts one active listener");return i.addEventListener(p,f),c=e,()=>{i.removeEventListener(p,f),c=null}},createHref:e=>t(i,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l="PUSH";let n=g(h.location,e,t);r&&r(n,e),s=u()+1;let f=v(n,s),d=h.createHref(n);try{o.pushState(f,"",d)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(d)}a&&c&&c({action:l,location:h.location,delta:1})},replace:function(e,t){l="REPLACE";let n=g(h.location,e,t);r&&r(n,e),s=u();let i=v(n,s),f=h.createHref(n);o.replaceState(i,"",f),a&&c&&c({action:l,location:h.location,delta:0})},go:e=>o.go(e)};return h}(function(e,t){let{pathname:r,search:n,hash:i}=e.location;return g("",{pathname:r,search:n,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:b(t)},null,e)}function m(e,t){if(!1===e||null==e)throw new Error(t)}function y(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function v(e,t){return{usr:e.state,key:e.key,idx:t}}function g(e,t,r=null,n){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?w(t):t,state:r,key:t&&t.key||n||Math.random().toString(36).substring(2,10)}}function b({pathname:e="/",search:t="",hash:r=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),r&&"#"!==r&&(e+="#"===r.charAt(0)?r:"#"+r),e}function w(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function x(e,t,r="/"){return function(e,t,r,n){let i=I(("string"==typeof t?w(t):t).pathname||"/",r);if(null==i)return null;let a=O(e);!function(e){e.sort((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){return e.length===t.length&&e.slice(0,-1).every((e,r)=>e===t[r])?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)))}(a);let o=null;for(let e=0;null==o&&e<a.length;++e){let t=R(i);o=_(a[e],t,n)}return o}(e,t,r,!1)}function O(e,t=[],r=[],n="",i=!1){let a=(e,a,o=i,l)=>{let c={relativePath:void 0===l?e.path||"":l,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};if(c.relativePath.startsWith("/")){if(!c.relativePath.startsWith(n)&&o)return;m(c.relativePath.startsWith(n),`Absolute route path "${c.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(n.length)}let s=U([n,c.relativePath]),u=r.concat(c);e.children&&e.children.length>0&&(m(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),O(e.children,t,u,s,o)),(null!=e.path||e.index)&&t.push({path:s,score:M(s,e.index),routesMeta:u})};return e.forEach((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let r of E(e.path))a(e,t,!0,r);else a(e,t)}),t}function E(e){let t=e.split("/");if(0===t.length)return[];let[r,...n]=t,i=r.endsWith("?"),a=r.replace(/\?$/,"");if(0===n.length)return i?[a,""]:[a];let o=E(n.join("/")),l=[];return l.push(...o.map(e=>""===e?a:[a,e].join("/"))),i&&l.push(...o),l.map(t=>e.startsWith("/")&&""===t?"/":t)}new WeakMap;var S=/^:[\w-]+$/,P=3,j=2,A=1,k=10,T=-2,C=e=>"*"===e;function M(e,t){let r=e.split("/"),n=r.length;return r.some(C)&&(n+=T),t&&(n+=j),r.filter(e=>!C(e)).reduce((e,t)=>e+(S.test(t)?P:""===t?A:k),n)}function _(e,t,r=!1){let{routesMeta:n}=e,i={},a="/",o=[];for(let e=0;e<n.length;++e){let l=n[e],c=e===n.length-1,s="/"===a?t:t.slice(a.length)||"/",u=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},s),f=l.route;if(!u&&c&&r&&!n[n.length-1].route.index&&(u=D({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},s)),!u)return null;Object.assign(i,u.params),o.push({params:i,pathname:U([a,u.pathname]),pathnameBase:$(U([a,u.pathnameBase])),route:f}),"/"!==u.pathnameBase&&(a=U([a,u.pathnameBase]))}return o}function D(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=function(e,t=!1,r=!0){y("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(n.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),l=i.slice(1),c=n.reduce((e,{paramName:t,isOptional:r},n)=>{if("*"===t){let e=l[n]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const i=l[n];return e[t]=r&&!i?void 0:(i||"").replace(/%2F/g,"/"),e},{});return{params:c,pathname:a,pathnameBase:o,pattern:e}}function R(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return y(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function I(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}var N=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function L(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function F(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function z(e){let t=function(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}(e);return t.map((e,r)=>r===t.length-1?e.pathname:e.pathnameBase)}function B(e,t,r,n=!1){let i;"string"==typeof e?i=w(e):(i={...e},m(!i.pathname||!i.pathname.includes("?"),F("?","pathname","search",i)),m(!i.pathname||!i.pathname.includes("#"),F("#","pathname","hash",i)),m(!i.search||!i.search.includes("#"),F("#","search","hash",i)));let a,o=""===e||""===i.pathname,l=o?"/":i.pathname;if(null==l)a=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let c=function(e,t="/"){let r,{pathname:n,search:i="",hash:a=""}="string"==typeof e?w(e):e;if(n)if(o=n,N.test(o))r=n;else{if(n.includes("//")){let e=n;n=n.replace(/\/\/+/g,"/"),y(!1,`Pathnames cannot have embedded double slashes - normalizing ${e} -> ${n}`)}r=n.startsWith("/")?L(n.substring(1),"/"):L(n,t)}else r=t;var o;return{pathname:r,search:q(i),hash:W(a)}}(i,a),s=l&&"/"!==l&&l.endsWith("/"),u=(o||"."===l)&&r.endsWith("/");return c.pathname.endsWith("/")||!s&&!u||(c.pathname+="/"),c}var U=e=>e.join("/").replace(/\/\/+/g,"/"),$=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",W=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",H=class{constructor(e,t,r,n=!1){this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function K(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}function V(e){return e.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Y="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function G(e,t){let r=e;if("string"!=typeof r||!N.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let n=r,i=!1;if(Y)try{let e=new URL(window.location.href),n=r.startsWith("//")?new URL(e.protocol+r):new URL(r),a=I(n.pathname,t);n.origin===e.origin&&null!=a?r=a+n.search+n.hash:i=!0}catch(e){y(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:n,isExternal:i,to:r}}Symbol("Uninstrumented"),Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var X=["POST","PUT","PATCH","DELETE"],Z=(new Set(X),["GET",...X]);new Set(Z),Symbol("ResetLoaderData");var J=r.createContext(null);J.displayName="DataRouter";var Q=r.createContext(null);Q.displayName="DataRouterState";var ee=r.createContext(!1);var te=r.createContext({isTransitioning:!1});te.displayName="ViewTransition",r.createContext(new Map).displayName="Fetchers",r.createContext(null).displayName="Await";var re=r.createContext(null);re.displayName="Navigation";var ne=r.createContext(null);ne.displayName="Location";var ie=r.createContext({outlet:null,matches:[],isDataRoute:!1});ie.displayName="Route";var ae=r.createContext(null);ae.displayName="RouteError";var oe="REACT_ROUTER_ERROR";function le(){return null!=r.useContext(ne)}function ce(){return m(le(),"useLocation() may be used only in the context of a <Router> component."),r.useContext(ne).location}var se="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function ue(e){r.useContext(re).static||r.useLayoutEffect(e)}function fe(){let{isDataRoute:e}=r.useContext(ie);return e?function(){let{router:e}=function(e){let t=r.useContext(J);return m(t,xe(e)),t}("useNavigate"),t=Oe("useNavigate"),n=r.useRef(!1);ue(()=>{n.current=!0});let i=r.useCallback(async(r,i={})=>{y(n.current,se),n.current&&("number"==typeof r?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t]);return i}():function(){m(le(),"useNavigate() may be used only in the context of a <Router> component.");let e=r.useContext(J),{basename:t,navigator:n}=r.useContext(re),{matches:i}=r.useContext(ie),{pathname:a}=ce(),o=JSON.stringify(z(i)),l=r.useRef(!1);ue(()=>{l.current=!0});let c=r.useCallback((r,i={})=>{if(y(l.current,se),!l.current)return;if("number"==typeof r)return void n.go(r);let c=B(r,JSON.parse(o),a,"path"===i.relative);null==e&&"/"!==t&&(c.pathname="/"===c.pathname?t:U([t,c.pathname])),(i.replace?n.replace:n.push)(c,i.state,i)},[t,n,o,a,e]);return c}()}var de=r.createContext(null);function pe(e,{relative:t}={}){let{matches:n}=r.useContext(ie),{pathname:i}=ce(),a=JSON.stringify(z(n));return r.useMemo(()=>B(e,JSON.parse(a),i,"path"===t),[e,a,i,t])}function he(e,t,n,i,a){m(le(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=r.useContext(re),{matches:l}=r.useContext(ie),c=l[l.length-1],s=c?c.params:{},u=c?c.pathname:"/",f=c?c.pathnameBase:"/",d=c&&c.route;{let e=d&&d.path||"";Se(u,!d||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let p,h=ce();if(t){let e="string"==typeof t?w(t):t;m("/"===f||e.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${e.pathname}" was given in the \`location\` prop.`),p=e}else p=h;let v=p.pathname||"/",g=v;if("/"!==f){let e=f.replace(/^\//,"").split("/");g="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let b=x(e,{pathname:g});y(d||null!=b,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),y(null==b||void 0!==b[b.length-1].route.element||void 0!==b[b.length-1].route.Component||void 0!==b[b.length-1].route.lazy,`Matched leaf route at location "${p.pathname}${p.search}${p.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=function(e,t=[],n=null,i=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let a=e,o=n?.errors;if(null!=o){let e=a.findIndex(e=>e.route.id&&void 0!==o?.[e.route.id]);m(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,c=-1;if(n)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||i){l=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}let s=n&&i?(e,t)=>{i(e,{location:n.location,params:n.matches?.[0]?.params??{},unstable_pattern:V(n.matches),errorInfo:t})}:void 0;return a.reduceRight((e,i,u)=>{let f,d=!1,p=null,h=null;n&&(f=o&&i.route.id?o[i.route.id]:void 0,p=i.route.errorElement||ye,l&&(c<0&&0===u?(Se("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,h=null):c===u&&(d=!0,h=i.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,u+1)),y=()=>{let t;return t=f?p:d?h:i.route.Component?r.createElement(i.route.Component,null):i.route.element?i.route.element:e,r.createElement(we,{match:i,routeContext:{outlet:e,matches:m,isDataRoute:null!=n},children:t})};return n&&(i.route.ErrorBoundary||i.route.errorElement||0===u)?r.createElement(ve,{location:n.location,revalidation:n.revalidation,component:p,error:f,children:y(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:s}):y()},null)}(b&&b.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:U([f,o.encodeLocation?o.encodeLocation(e.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?f:U([f,o.encodeLocation?o.encodeLocation(e.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:e.pathnameBase])})),l,n,i,a);return t&&O?r.createElement(ne.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...p},navigationType:"POP"}},O):O}function me(){let e=function(){let e=r.useContext(ae),t=function(e){let t=r.useContext(Q);return m(t,xe(e)),t}("useRouteError"),n=Oe("useRouteError");return void 0!==e?e:t.errors?.[n]}(),t=K(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:i},o={padding:"2px 4px",backgroundColor:i},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=r.createElement(r.Fragment,null,r.createElement("p",null,"💿 Hey developer 👋"),r.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",r.createElement("code",{style:o},"ErrorBoundary")," or"," ",r.createElement("code",{style:o},"errorElement")," prop on your route.")),r.createElement(r.Fragment,null,r.createElement("h2",null,"Unexpected Application Error!"),r.createElement("h3",{style:{fontStyle:"italic"}},t),n?r.createElement("pre",{style:a},n):null,l)}var ye=r.createElement(me,null),ve=class extends r.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&"object"==typeof e&&e&&"digest"in e&&"string"==typeof e.digest){const t=function(e){if(e.startsWith(`${oe}:ROUTE_ERROR_RESPONSE:{`))try{let t=JSON.parse(e.slice(40));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText)return new H(t.status,t.statusText,t.data)}catch{}}(e.digest);t&&(e=t)}let t=void 0!==e?r.createElement(ie.Provider,{value:this.props.routeContext},r.createElement(ae.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?r.createElement(be,{error:e},t):t}};ve.contextType=ee;var ge=new WeakMap;function be({children:e,error:t}){let{basename:n}=r.useContext(re);if("object"==typeof t&&t&&"digest"in t&&"string"==typeof t.digest){let e=function(e){if(e.startsWith(`${oe}:REDIRECT:{`))try{let t=JSON.parse(e.slice(28));if("object"==typeof t&&t&&"number"==typeof t.status&&"string"==typeof t.statusText&&"string"==typeof t.location&&"boolean"==typeof t.reloadDocument&&"boolean"==typeof t.replace)return t}catch{}}(t.digest);if(e){let i=ge.get(t);if(i)throw i;let a=G(e.location,n);if(Y&&!ge.get(t)){if(!a.isExternal&&!e.reloadDocument){const r=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw ge.set(t,r),r}window.location.href=a.absoluteURL||a.to}return r.createElement("meta",{httpEquiv:"refresh",content:`0;url=${a.absoluteURL||a.to}`})}}return e}function we({routeContext:e,match:t,children:n}){let i=r.useContext(J);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),r.createElement(ie.Provider,{value:e},n)}function xe(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Oe(e){let t=function(e){let t=r.useContext(ie);return m(t,xe(e)),t}(e),n=t.matches[t.matches.length-1];return m(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Ee={};function Se(e,t,r){t||Ee[e]||(Ee[e]=!0,y(!1,r))}function Pe({to:e,replace:t,state:n,relative:i}){m(le(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=r.useContext(re);y(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=r.useContext(ie),{pathname:l}=ce(),c=fe(),s=B(e,z(o),l,"path"===i),u=JSON.stringify(s);return r.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:i})},[c,u,i,t,n]),null}function je(e){return function(e){let t=r.useContext(ie).outlet;return r.useMemo(()=>t&&r.createElement(de.Provider,{value:e},t),[t,e])}(e.context)}function Ae(e){m(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function ke({basename:e="/",children:t=null,location:n,navigationType:i="POP",navigator:a,static:o=!1,unstable_useTransitions:l}){m(!le(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),s=r.useMemo(()=>({basename:c,navigator:a,static:o,unstable_useTransitions:l,future:{}}),[c,a,o,l]);"string"==typeof n&&(n=w(n));let{pathname:u="/",search:f="",hash:d="",state:p=null,key:h="default"}=n,v=r.useMemo(()=>{let e=I(u,c);return null==e?null:{location:{pathname:e,search:f,hash:d,state:p,key:h},navigationType:i}},[c,u,f,d,p,h,i]);return y(null!=v,`<Router basename="${c}"> is not able to match the URL "${u}${f}${d}" because it does not start with the basename, so the <Router> won't render anything.`),null==v?null:r.createElement(re.Provider,{value:s},r.createElement(ne.Provider,{children:t,value:v}))}function Te({children:e,location:t}){return he(Ce(e),t)}function Ce(e,t=[]){let n=[];return r.Children.forEach(e,(e,i)=>{if(!r.isValidElement(e))return;let a=[...t,i];if(e.type===r.Fragment)return void n.push.apply(n,Ce(e.props.children,a));m(e.type===Ae,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),m(!e.props.index||!e.props.children,"An index route cannot have child routes.");let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Ce(e.props.children,a)),n.push(o)}),n}r.useOptimistic,r.memo(function({routes:e,future:t,state:r,onError:n}){return he(e,void 0,r,n,t)}),r.Component;var Me="get",_e="application/x-www-form-urlencoded";function De(e){return"undefined"!=typeof HTMLElement&&e instanceof HTMLElement}var Re=null,Ie=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ne(e){return null==e||Ie.has(e)?e:(y(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_e}"`),null)}function Le(e,t){if(!1===e||null==e)throw new Error(t)}function Fe(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function ze(e,t,r,n,i,a){let o=(e,t)=>!r[t]||e.route.id!==r[t].route.id,l=(e,t)=>r[t].pathname!==e.pathname||r[t].route.path?.endsWith("*")&&r[t].params["*"]!==e.params["*"];return"assets"===a?t.filter((e,t)=>o(e,t)||l(e,t)):"data"===a?t.filter((t,a)=>{let c=n.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||l(t,a))return!0;if(t.route.shouldRevalidate){let n=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof n)return n}return!0}):[]}function Be(e,t,{includeHydrateFallback:r}={}){return n=e.map(e=>{let n=t.routes[e.route.id];if(!n)return[];let i=[n.module];return n.clientActionModule&&(i=i.concat(n.clientActionModule)),n.clientLoaderModule&&(i=i.concat(n.clientLoaderModule)),r&&n.hydrateFallbackModule&&(i=i.concat(n.hydrateFallbackModule)),n.imports&&(i=i.concat(n.imports)),i}).flat(1),[...new Set(n)];var n}function Ue(){let e=r.useContext(J);return Le(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function $e(){let e=r.useContext(Q);return Le(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0"),"undefined"!=typeof window?window:"undefined"!=typeof globalThis&&globalThis,Symbol("SingleFetchRedirect");var qe=r.createContext(void 0);function We(){let e=r.useContext(qe);return Le(e,"You must render this element inside a <HydratedRouter> element"),e}function He(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Ke({page:e,...t}){let{router:n}=Ue(),i=r.useMemo(()=>x(n.routes,e,n.basename),[n.routes,e,n.basename]);return i?r.createElement(Ye,{page:e,matches:i,...t}):null}function Ve(e){let{manifest:t,routeModules:n}=We(),[i,a]=r.useState([]);return r.useEffect(()=>{let r=!1;return async function(e,t,r){return function(e,t){let r=new Set,n=new Set(t);return e.reduce((e,i)=>{if(t&&!function(e){return null!=e&&"string"==typeof e.page}(i)&&"script"===i.as&&i.href&&n.has(i.href))return e;let a=JSON.stringify(function(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}(i));return r.has(a)||(r.add(a),e.push({key:a,link:i})),e},[])}((await Promise.all(e.map(async e=>{let n=t.routes[e.route.id];if(n){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}(n,r);return e.links?e.links():[]}return[]}))).flat(1).filter(Fe).filter(e=>"stylesheet"===e.rel||"preload"===e.rel).map(e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"}))}(e,t,n).then(e=>{r||a(e)}),()=>{r=!0}},[e,t,n]),i}function Ye({page:e,matches:t,...n}){let i=ce(),{manifest:a,routeModules:o}=We(),{basename:l}=Ue(),{loaderData:c,matches:s}=$e(),u=r.useMemo(()=>ze(e,t,s,a,i,"data"),[e,t,s,a,i]),f=r.useMemo(()=>ze(e,t,s,a,i,"assets"),[e,t,s,a,i]),d=r.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let r=new Set,n=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?n=!0:r.add(e.route.id))}),0===r.size)return[];let s=function(e,t,r){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname=`_root.${r}`:t&&"/"===I(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}(e,l,"data");return n&&r.size>0&&s.searchParams.set("_routes",t.filter(e=>r.has(e.route.id)).map(e=>e.route.id).join(",")),[s.pathname+s.search]},[l,c,i,a,u,t,e,o]),p=r.useMemo(()=>Be(f,a),[f,a]),h=Ve(f);return r.createElement(r.Fragment,null,d.map(e=>r.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n})),p.map(e=>r.createElement("link",{key:e,rel:"modulepreload",href:e,...n})),h.map(({key:e,link:t})=>r.createElement("link",{key:e,nonce:n.nonce,...t})))}qe.displayName="FrameworkContext";function Ge(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}r.Component;var Xe="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Xe&&(window.__reactRouterVersion="7.11.0")}catch(e){}function Ze({basename:e,children:t,unstable_useTransitions:n,window:i}){let a=r.useRef();null==a.current&&(a.current=h({window:i,v5Compat:!0}));let o=a.current,[l,c]=r.useState({action:o.action,location:o.location}),s=r.useCallback(e=>{!1===n?c(e):r.startTransition(()=>c(e))},[n]);return r.useLayoutEffect(()=>o.listen(s),[o,s]),r.createElement(ke,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:o,unstable_useTransitions:n})}var Je=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Qe=r.forwardRef(function({onClick:e,discover:t="render",prefetch:n="none",relative:i,reloadDocument:a,replace:o,state:l,target:c,to:s,preventScrollReset:u,viewTransition:f,unstable_defaultShouldRevalidate:d,...p},h){let{basename:y,unstable_useTransitions:v}=r.useContext(re),g="string"==typeof s&&Je.test(s),w=G(s,y),x=function(e,{relative:t}={}){m(le(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:i}=r.useContext(re),{hash:a,pathname:o,search:l}=pe(e,{relative:t}),c=o;return"/"!==n&&(c="/"===o?n:U([n,o])),i.createHref({pathname:c,search:l,hash:a})}(s=w.to,{relative:i}),[O,E,S]=function(e,t){let n=r.useContext(qe),[i,a]=r.useState(!1),[o,l]=r.useState(!1),{onFocus:c,onBlur:s,onMouseEnter:u,onMouseLeave:f,onTouchStart:d}=t,p=r.useRef(null);r.useEffect(()=>{if("render"===e&&l(!0),"viewport"===e){let e=new IntersectionObserver(e=>{e.forEach(e=>{l(e.isIntersecting)})},{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}},[e]),r.useEffect(()=>{if(i){let e=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(e)}}},[i]);let h=()=>{a(!0)},m=()=>{a(!1),l(!1)};return n?"intent"!==e?[o,p,{}]:[o,p,{onFocus:He(c,h),onBlur:He(s,m),onMouseEnter:He(u,h),onMouseLeave:He(f,m),onTouchStart:He(d,h)}]:[!1,p,{}]}(n,p),P=function(e,{target:t,replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c,unstable_useTransitions:s}={}){let u=fe(),f=ce(),d=pe(e,{relative:o});return r.useCallback(p=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(p,t)){p.preventDefault();let t=void 0!==n?n:b(f)===b(d),h=()=>u(e,{replace:t,state:i,preventScrollReset:a,relative:o,viewTransition:l,unstable_defaultShouldRevalidate:c});s?r.startTransition(()=>h()):h()}},[f,u,d,n,i,t,e,a,o,l,c,s])}(s,{replace:o,state:l,target:c,preventScrollReset:u,relative:i,viewTransition:f,unstable_defaultShouldRevalidate:d,unstable_useTransitions:v}),j=r.createElement("a",{...p,...S,href:w.absoluteURL||x,onClick:w.isExternal||a?e:function(t){e&&e(t),t.defaultPrevented||P(t)},ref:Ge(h,E),target:c,"data-discover":g||"render"!==t?void 0:"true"});return O&&!g?r.createElement(r.Fragment,null,j,r.createElement(Ke,{page:x})):j});Qe.displayName="Link";var et=r.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:i=!1,style:a,to:o,viewTransition:l,children:c,...s},u){let f=pe(o,{relative:s.relative}),d=ce(),p=r.useContext(Q),{navigator:h,basename:y}=r.useContext(re),v=null!=p&&function(e,{relative:t}={}){let n=r.useContext(te);m(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=rt("useViewTransitionState"),a=pe(e,{relative:t});if(!n.isTransitioning)return!1;let o=I(n.currentLocation.pathname,i)||n.currentLocation.pathname,l=I(n.nextLocation.pathname,i)||n.nextLocation.pathname;return null!=D(a.pathname,l)||null!=D(a.pathname,o)}(f)&&!0===l,g=h.encodeLocation?h.encodeLocation(f).pathname:f.pathname,b=d.pathname,w=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(b=b.toLowerCase(),w=w?w.toLowerCase():null,g=g.toLowerCase()),w&&y&&(w=I(w,y)||w);const x="/"!==g&&g.endsWith("/")?g.length-1:g.length;let O,E=b===g||!i&&b.startsWith(g)&&"/"===b.charAt(x),S=null!=w&&(w===g||!i&&w.startsWith(g)&&"/"===w.charAt(g.length)),P={isActive:E,isPending:S,isTransitioning:v},j=E?e:void 0;O="function"==typeof n?n(P):[n,E?"active":null,S?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let A="function"==typeof a?a(P):a;return r.createElement(Qe,{...s,"aria-current":j,className:O,ref:u,style:A,to:o,viewTransition:l},"function"==typeof c?c(P):c)});et.displayName="NavLink";var tt=r.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:i,replace:a,state:o,method:l=Me,action:c,onSubmit:s,relative:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:p,...h},y)=>{let{unstable_useTransitions:v}=r.useContext(re),g=function(){let{router:e}=rt("useSubmit"),{basename:t}=r.useContext(re),n=Oe("useRouteId"),i=e.fetch,a=e.navigate;return r.useCallback(async(e,r={})=>{let{action:o,method:l,encType:c,formData:s,body:u}=function(e,t){let r,n,i,a,o;if(function(e){return De(e)&&"form"===e.tagName.toLowerCase()}(e)){let o=e.getAttribute("action");n=o?I(o,t):null,r=e.getAttribute("method")||Me,i=Ne(e.getAttribute("enctype"))||_e,a=new FormData(e)}else if(function(e){return De(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return De(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let o=e.form;if(null==o)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||o.getAttribute("action");if(n=l?I(l,t):null,r=e.getAttribute("formmethod")||o.getAttribute("method")||Me,i=Ne(e.getAttribute("formenctype"))||Ne(o.getAttribute("enctype"))||_e,a=new FormData(o,e),!function(){if(null===Re)try{new FormData(document.createElement("form"),0),Re=!1}catch(e){Re=!0}return Re}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?`${t}.`:"";a.append(`${e}x`,"0"),a.append(`${e}y`,"0")}else t&&a.append(t,n)}}else{if(De(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Me,n=null,i=_e,o=e}return a&&"text/plain"===i&&(o=a,a=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:a,body:o}}(e,t);if(!1===r.navigate){let e=r.fetcherKey||it();await i(e,n,r.action||o,{unstable_defaultShouldRevalidate:r.unstable_defaultShouldRevalidate,preventScrollReset:r.preventScrollReset,formData:s,body:u,formMethod:r.method||l,formEncType:r.encType||c,flushSync:r.flushSync})}else await a(r.action||o,{unstable_defaultShouldRevalidate:r.unstable_defaultShouldRevalidate,preventScrollReset:r.preventScrollReset,formData:s,body:u,formMethod:r.method||l,formEncType:r.encType||c,replace:r.replace,state:r.state,fromRouteId:n,flushSync:r.flushSync,viewTransition:r.viewTransition})},[i,a,t,n])}(),w=function(e,{relative:t}={}){let{basename:n}=r.useContext(re),i=r.useContext(ie);m(i,"useFormAction must be used inside a RouteContext");let[a]=i.matches.slice(-1),o={...pe(e||".",{relative:t})},l=ce();if(null==e){o.search=l.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();o.search=r?`?${r}`:""}}return e&&"."!==e||!a.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(o.pathname="/"===o.pathname?n:U([n,o.pathname])),b(o)}(c,{relative:u}),x="get"===l.toLowerCase()?"get":"post",O="string"==typeof c&&Je.test(c);return r.createElement("form",{ref:y,method:x,action:w,onSubmit:i?s:e=>{if(s&&s(e),e.defaultPrevented)return;e.preventDefault();let i=e.nativeEvent.submitter,c=i?.getAttribute("formmethod")||l,h=()=>g(i||e.currentTarget,{fetcherKey:t,method:c,navigate:n,replace:a,state:o,relative:u,preventScrollReset:f,viewTransition:d,unstable_defaultShouldRevalidate:p});v&&!1!==n?r.startTransition(()=>h()):h()},...h,"data-discover":O||"render"!==e?void 0:"true"})});function rt(e){let t=r.useContext(J);return m(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}tt.displayName="Form";var nt=0,it=()=>`__${String(++nt)}__`;function at(e,t){return function(){return e.apply(t,arguments)}}const{toString:ot}=Object.prototype,{getPrototypeOf:lt}=Object,{iterator:ct,toStringTag:st}=Symbol,ut=(ft=Object.create(null),e=>{const t=ot.call(e);return ft[t]||(ft[t]=t.slice(8,-1).toLowerCase())});var ft;const dt=e=>(e=e.toLowerCase(),t=>ut(t)===e),pt=e=>t=>typeof t===e,{isArray:ht}=Array,mt=pt("undefined");function yt(e){return null!==e&&!mt(e)&&null!==e.constructor&&!mt(e.constructor)&&bt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const vt=dt("ArrayBuffer"),gt=pt("string"),bt=pt("function"),wt=pt("number"),xt=e=>null!==e&&"object"==typeof e,Ot=e=>{if("object"!==ut(e))return!1;const t=lt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||st in e||ct in e)},Et=dt("Date"),St=dt("File"),Pt=dt("Blob"),jt=dt("FileList"),At=dt("URLSearchParams"),[kt,Tt,Ct,Mt]=["ReadableStream","Request","Response","Headers"].map(dt);function _t(e,t,{allOwnKeys:r=!1}={}){if(null==e)return;let n,i;if("object"!=typeof e&&(e=[e]),ht(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{if(yt(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let o;for(n=0;n<a;n++)o=i[n],t.call(null,e[o],o,e)}}function Dt(e,t){if(yt(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n,i=r.length;for(;i-- >0;)if(n=r[i],t===n.toLowerCase())return n;return null}const Rt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,It=e=>!mt(e)&&e!==Rt,Nt=(Lt="undefined"!=typeof Uint8Array&&lt(Uint8Array),e=>Lt&&e instanceof Lt);var Lt;const Ft=dt("HTMLFormElement"),zt=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Bt=dt("RegExp"),Ut=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};_t(r,(r,i)=>{let a;!1!==(a=t(r,i,e))&&(n[i]=a||r)}),Object.defineProperties(e,n)},$t=dt("AsyncFunction"),qt=(Wt="function"==typeof setImmediate,Ht=bt(Rt.postMessage),Wt?setImmediate:Ht?(Kt=`axios@${Math.random()}`,Vt=[],Rt.addEventListener("message",({source:e,data:t})=>{e===Rt&&t===Kt&&Vt.length&&Vt.shift()()},!1),e=>{Vt.push(e),Rt.postMessage(Kt,"*")}):e=>setTimeout(e));var Wt,Ht,Kt,Vt;const Yt="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Rt):"undefined"!=typeof process&&process.nextTick||qt,Gt={isArray:ht,isArrayBuffer:vt,isBuffer:yt,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||bt(e.append)&&("formdata"===(t=ut(e))||"object"===t&&bt(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&vt(e.buffer),t},isString:gt,isNumber:wt,isBoolean:e=>!0===e||!1===e,isObject:xt,isPlainObject:Ot,isEmptyObject:e=>{if(!xt(e)||yt(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:kt,isRequest:Tt,isResponse:Ct,isHeaders:Mt,isUndefined:mt,isDate:Et,isFile:St,isBlob:Pt,isRegExp:Bt,isFunction:bt,isStream:e=>xt(e)&&bt(e.pipe),isURLSearchParams:At,isTypedArray:Nt,isFileList:jt,forEach:_t,merge:function e(){const{caseless:t,skipUndefined:r}=It(this)&&this||{},n={},i=(i,a)=>{const o=t&&Dt(n,a)||a;Ot(n[o])&&Ot(i)?n[o]=e(n[o],i):Ot(i)?n[o]=e({},i):ht(i)?n[o]=i.slice():r&&mt(i)||(n[o]=i)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&_t(arguments[e],i);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(_t(t,(t,n)=>{r&&bt(t)?e[n]=at(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,a,o;const l={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],n&&!n(o,e,t)||l[o]||(t[o]=e[o],l[o]=!0);e=!1!==r&&lt(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:ut,kindOfTest:dt,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return-1!==n&&n===r},toArray:e=>{if(!e)return null;if(ht(e))return e;let t=e.length;if(!wt(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{const r=(e&&e[ct]).call(e);let n;for(;(n=r.next())&&!n.done;){const r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let r;const n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:Ft,hasOwnProperty:zt,hasOwnProp:zt,reduceDescriptors:Ut,freezeMethods:e=>{Ut(e,(t,r)=>{if(bt(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;const n=e[r];bt(n)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")}))})},toObjectSet:(e,t)=>{const r={},n=e=>{e.forEach(e=>{r[e]=!0})};return ht(e)?n(e):n(String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Dt,global:Rt,isContextDefined:It,isSpecCompliantForm:function(e){return!!(e&&bt(e.append)&&"FormData"===e[st]&&e[ct])},toJSONObject:e=>{const t=new Array(10),r=(e,n)=>{if(xt(e)){if(t.indexOf(e)>=0)return;if(yt(e))return e;if(!("toJSON"in e)){t[n]=e;const i=ht(e)?[]:{};return _t(e,(e,t)=>{const a=r(e,n+1);!mt(a)&&(i[t]=a)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:$t,isThenable:e=>e&&(xt(e)||bt(e))&&bt(e.then)&&bt(e.catch),setImmediate:qt,asap:Yt,isIterable:e=>null!=e&&bt(e[ct])};function Xt(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}Gt.inherits(Xt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Gt.toJSONObject(this.config),code:this.code,status:this.status}}});const Zt=Xt.prototype,Jt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Jt[e]={value:e}}),Object.defineProperties(Xt,Jt),Object.defineProperty(Zt,"isAxiosError",{value:!0}),Xt.from=(e,t,r,n,i,a)=>{const o=Object.create(Zt);Gt.toFlatObject(e,o,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const l=e&&e.message?e.message:"Error",c=null==t&&e?e.code:t;return Xt.call(o,l,c,r,n,i),e&&null==o.cause&&Object.defineProperty(o,"cause",{value:e,configurable:!0}),o.name=e&&e.name||"Error",a&&Object.assign(o,a),o};const Qt=Xt;function er(e){return Gt.isPlainObject(e)||Gt.isArray(e)}function tr(e){return Gt.endsWith(e,"[]")?e.slice(0,-2):e}function rr(e,t,r){return e?e.concat(t).map(function(e,t){return e=tr(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}const nr=Gt.toFlatObject(Gt,{},null,function(e){return/^is[A-Z]/.test(e)}),ir=function(e,t,r){if(!Gt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const n=(r=Gt.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!Gt.isUndefined(t[e])})).metaTokens,i=r.visitor||s,a=r.dots,o=r.indexes,l=(r.Blob||"undefined"!=typeof Blob&&Blob)&&Gt.isSpecCompliantForm(t);if(!Gt.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(Gt.isDate(e))return e.toISOString();if(Gt.isBoolean(e))return e.toString();if(!l&&Gt.isBlob(e))throw new Qt("Blob is not supported. Use a Buffer instead.");return Gt.isArrayBuffer(e)||Gt.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function s(e,r,i){let l=e;if(e&&!i&&"object"==typeof e)if(Gt.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else if(Gt.isArray(e)&&function(e){return Gt.isArray(e)&&!e.some(er)}(e)||(Gt.isFileList(e)||Gt.endsWith(r,"[]"))&&(l=Gt.toArray(e)))return r=tr(r),l.forEach(function(e,n){!Gt.isUndefined(e)&&null!==e&&t.append(!0===o?rr([r],n,a):null===o?r:r+"[]",c(e))}),!1;return!!er(e)||(t.append(rr(i,r,a),c(e)),!1)}const u=[],f=Object.assign(nr,{defaultVisitor:s,convertValue:c,isVisitable:er});if(!Gt.isObject(e))throw new TypeError("data must be an object");return function e(r,n){if(!Gt.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),Gt.forEach(r,function(r,a){!0===(!(Gt.isUndefined(r)||null===r)&&i.call(t,r,Gt.isString(a)?a.trim():a,n,f))&&e(r,n?n.concat(a):[a])}),u.pop()}}(e),t};function ar(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function or(e,t){this._pairs=[],e&&ir(e,this,t)}const lr=or.prototype;lr.append=function(e,t){this._pairs.push([e,t])},lr.toString=function(e){const t=e?function(t){return e.call(this,t,ar)}:ar;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};const cr=or;function sr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ur(e,t,r){if(!t)return e;const n=r&&r.encode||sr;Gt.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let a;if(a=i?i(t,r):Gt.isURLSearchParams(t)?t.toString():new cr(t,r).toString(n),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}const fr=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Gt.forEach(this.handlers,function(t){null!==t&&e(t)})}},dr={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pr={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:cr,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},hr="undefined"!=typeof window&&"undefined"!=typeof document,mr="object"==typeof navigator&&navigator||void 0,yr=hr&&(!mr||["ReactNative","NativeScript","NS"].indexOf(mr.product)<0),vr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,gr=hr&&window.location.href||"http://localhost",br={...e,...pr},wr=function(e){function t(e,r,n,i){let a=e[i++];if("__proto__"===a)return!0;const o=Number.isFinite(+a),l=i>=e.length;return a=!a&&Gt.isArray(n)?n.length:a,l?(Gt.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r,!o):(n[a]&&Gt.isObject(n[a])||(n[a]=[]),t(e,r,n[a],i)&&Gt.isArray(n[a])&&(n[a]=function(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n<i;n++)a=r[n],t[a]=e[a];return t}(n[a])),!o)}if(Gt.isFormData(e)&&Gt.isFunction(e.entries)){const r={};return Gt.forEachEntry(e,(e,n)=>{t(function(e){return Gt.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),n,r,0)}),r}return null},xr={transitional:dr,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const r=t.getContentType()||"",n=r.indexOf("application/json")>-1,i=Gt.isObject(e);if(i&&Gt.isHTMLForm(e)&&(e=new FormData(e)),Gt.isFormData(e))return n?JSON.stringify(wr(e)):e;if(Gt.isArrayBuffer(e)||Gt.isBuffer(e)||Gt.isStream(e)||Gt.isFile(e)||Gt.isBlob(e)||Gt.isReadableStream(e))return e;if(Gt.isArrayBufferView(e))return e.buffer;if(Gt.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ir(e,new br.classes.URLSearchParams,{visitor:function(e,t,r,n){return br.isNode&&Gt.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=Gt.isFileList(e))||r.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ir(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),function(e){if(Gt.isString(e))try{return(0,JSON.parse)(e),Gt.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||xr.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(Gt.isResponse(e)||Gt.isReadableStream(e))return e;if(e&&Gt.isString(e)&&(r&&!this.responseType||n)){const r=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e,this.parseReviver)}catch(e){if(r){if("SyntaxError"===e.name)throw Qt.from(e,Qt.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:br.classes.FormData,Blob:br.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Gt.forEach(["delete","get","head","post","put","patch"],e=>{xr.headers[e]={}});const Or=xr,Er=Gt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Sr=Symbol("internals");function Pr(e){return e&&String(e).trim().toLowerCase()}function jr(e){return!1===e||null==e?e:Gt.isArray(e)?e.map(jr):String(e)}function Ar(e,t,r,n,i){return Gt.isFunction(n)?n.call(this,t,r):(i&&(t=r),Gt.isString(t)?Gt.isString(n)?-1!==t.indexOf(n):Gt.isRegExp(n)?n.test(t):void 0:void 0)}class kr{constructor(e){e&&this.set(e)}set(e,t,r){const n=this;function i(e,t,r){const i=Pr(t);if(!i)throw new Error("header name must be a non-empty string");const a=Gt.findKey(n,i);(!a||void 0===n[a]||!0===r||void 0===r&&!1!==n[a])&&(n[a||t]=jr(e))}const a=(e,t)=>Gt.forEach(e,(e,r)=>i(e,r,t));if(Gt.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(Gt.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let r,n,i;return e&&e.split("\n").forEach(function(e){i=e.indexOf(":"),r=e.substring(0,i).trim().toLowerCase(),n=e.substring(i+1).trim(),!r||t[r]&&Er[r]||("set-cookie"===r?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t})(e),t);else if(Gt.isObject(e)&&Gt.isIterable(e)){let r,n,i={};for(const t of e){if(!Gt.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[n=t[0]]=(r=i[n])?Gt.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}a(i,t)}else null!=e&&i(t,e,r);return this}get(e,t){if(e=Pr(e)){const r=Gt.findKey(this,e);if(r){const e=this[r];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}(e);if(Gt.isFunction(t))return t.call(this,e,r);if(Gt.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Pr(e)){const r=Gt.findKey(this,e);return!(!r||void 0===this[r]||t&&!Ar(0,this[r],r,t))}return!1}delete(e,t){const r=this;let n=!1;function i(e){if(e=Pr(e)){const i=Gt.findKey(r,e);!i||t&&!Ar(0,r[i],i,t)||(delete r[i],n=!0)}}return Gt.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let r=t.length,n=!1;for(;r--;){const i=t[r];e&&!Ar(0,this[i],i,e,!0)||(delete this[i],n=!0)}return n}normalize(e){const t=this,r={};return Gt.forEach(this,(n,i)=>{const a=Gt.findKey(r,i);if(a)return t[a]=jr(n),void delete t[i];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r)}(i):String(i).trim();o!==i&&delete t[i],t[o]=jr(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Gt.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&Gt.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){const t=(this[Sr]=this[Sr]={accessors:{}}).accessors,r=this.prototype;function n(e){const n=Pr(e);t[n]||(function(e,t){const r=Gt.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(r,e),t[n]=!0)}return Gt.isArray(e)?e.forEach(n):n(e),this}}kr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Gt.reduceDescriptors(kr.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),Gt.freezeMethods(kr);const Tr=kr;function Cr(e,t){const r=this||Or,n=t||r,i=Tr.from(n.headers);let a=n.data;return Gt.forEach(e,function(e){a=e.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Mr(e){return!(!e||!e.__CANCEL__)}function _r(e,t,r){Qt.call(this,null==e?"canceled":e,Qt.ERR_CANCELED,t,r),this.name="CanceledError"}Gt.inherits(_r,Qt,{__CANCEL__:!0});const Dr=_r;function Rr(e,t,r){const n=r.config.validateStatus;r.status&&n&&!n(r.status)?t(new Qt("Request failed with status code "+r.status,[Qt.ERR_BAD_REQUEST,Qt.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}const Ir=(e,t,r=3)=>{let n=0;const i=function(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i,a=0,o=0;return t=void 0!==t?t:1e3,function(l){const c=Date.now(),s=n[o];i||(i=c),r[a]=l,n[a]=c;let u=o,f=0;for(;u!==a;)f+=r[u++],u%=e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),c-i<t)return;const d=s&&c-s;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let r,n,i=0,a=1e3/t;const o=(t,a=Date.now())=>{i=a,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{const t=Date.now(),l=t-i;l>=a?o(e,t):(r=e,n||(n=setTimeout(()=>{n=null,o(r)},a-l)))},()=>r&&o(r)]}(r=>{const a=r.loaded,o=r.lengthComputable?r.total:void 0,l=a-n,c=i(l);n=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&a<=o?(o-a)/c:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})},r)},Nr=(e,t)=>{const r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},Lr=e=>(...t)=>Gt.asap(()=>e(...t)),Fr=br.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,br.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(br.origin),br.navigator&&/(msie|trident)/i.test(br.navigator.userAgent)):()=>!0,zr=br.hasStandardBrowserEnv?{write(e,t,r,n,i,a,o){if("undefined"==typeof document)return;const l=[`${e}=${encodeURIComponent(t)}`];Gt.isNumber(r)&&l.push(`expires=${new Date(r).toUTCString()}`),Gt.isString(n)&&l.push(`path=${n}`),Gt.isString(i)&&l.push(`domain=${i}`),!0===a&&l.push("secure"),Gt.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function Br(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||0==r)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ur=e=>e instanceof Tr?{...e}:e;function $r(e,t){t=t||{};const r={};function n(e,t,r,n){return Gt.isPlainObject(e)&&Gt.isPlainObject(t)?Gt.merge.call({caseless:n},e,t):Gt.isPlainObject(t)?Gt.merge({},t):Gt.isArray(t)?t.slice():t}function i(e,t,r,i){return Gt.isUndefined(t)?Gt.isUndefined(e)?void 0:n(void 0,e,0,i):n(e,t,0,i)}function a(e,t){if(!Gt.isUndefined(t))return n(void 0,t)}function o(e,t){return Gt.isUndefined(t)?Gt.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function l(r,i,a){return a in t?n(r,i):a in e?n(void 0,r):void 0}const c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l,headers:(e,t,r)=>i(Ur(e),Ur(t),0,!0)};return Gt.forEach(Object.keys({...e,...t}),function(n){const a=c[n]||i,o=a(e[n],t[n],n);Gt.isUndefined(o)&&a!==l||(r[n]=o)}),r}const qr=e=>{const t=$r({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:l}=t;if(t.headers=o=Tr.from(o),t.url=ur(Br(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Gt.isFormData(r))if(br.hasStandardBrowserEnv||br.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(Gt.isFunction(r.getHeaders)){const e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&o.set(e,r)})}if(br.hasStandardBrowserEnv&&(n&&Gt.isFunction(n)&&(n=n(t)),n||!1!==n&&Fr(t.url))){const e=i&&a&&zr.read(a);e&&o.set(i,e)}return t},Wr="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){const n=qr(e);let i=n.data;const a=Tr.from(n.headers).normalize();let o,l,c,s,u,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=n;function h(){s&&s(),u&&u(),n.cancelToken&&n.cancelToken.unsubscribe(o),n.signal&&n.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function y(){if(!m)return;const n=Tr.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Rr(function(e){t(e),h()},function(e){r(e),h()},{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:n,config:e,request:m}),m=null}m.open(n.method.toUpperCase(),n.url,!0),m.timeout=n.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(r(new Qt("Request aborted",Qt.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const n=t&&t.message?t.message:"Network Error",i=new Qt(n,Qt.ERR_NETWORK,e,m);i.event=t||null,r(i),m=null},m.ontimeout=function(){let t=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const i=n.transitional||dr;n.timeoutErrorMessage&&(t=n.timeoutErrorMessage),r(new Qt(t,i.clarifyTimeoutError?Qt.ETIMEDOUT:Qt.ECONNABORTED,e,m)),m=null},void 0===i&&a.setContentType(null),"setRequestHeader"in m&&Gt.forEach(a.toJSON(),function(e,t){m.setRequestHeader(t,e)}),Gt.isUndefined(n.withCredentials)||(m.withCredentials=!!n.withCredentials),f&&"json"!==f&&(m.responseType=n.responseType),p&&([c,u]=Ir(p,!0),m.addEventListener("progress",c)),d&&m.upload&&([l,s]=Ir(d),m.upload.addEventListener("progress",l),m.upload.addEventListener("loadend",s)),(n.cancelToken||n.signal)&&(o=t=>{m&&(r(!t||t.type?new Dr(null,e,m):t),m.abort(),m=null)},n.cancelToken&&n.cancelToken.subscribe(o),n.signal&&(n.signal.aborted?o():n.signal.addEventListener("abort",o)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(n.url);v&&-1===br.protocols.indexOf(v)?r(new Qt("Unsupported protocol "+v+":",Qt.ERR_BAD_REQUEST,e)):m.send(i||null)})},Hr=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController;const i=function(e){if(!r){r=!0,o();const t=e instanceof Error?e:this.reason;n.abort(t instanceof Qt?t:new Dr(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,i(new Qt(`timeout ${t} of ms exceeded`,Qt.ETIMEDOUT))},t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>Gt.asap(o),l}},Kr=function*(e,t){let r=e.byteLength;if(!t||r<t)return void(yield e);let n,i=0;for(;i<r;)n=i+t,yield e.slice(i,n),i=n},Vr=(e,t,r,n)=>{const i=async function*(e,t){for await(const r of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}}(e))yield*Kr(r,t)}(e,t);let a,o=0,l=e=>{a||(a=!0,n&&n(e))};return new ReadableStream({async pull(e){try{const{done:t,value:n}=await i.next();if(t)return l(),void e.close();let a=n.byteLength;if(r){let e=o+=a;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw l(e),e}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},{isFunction:Yr}=Gt,Gr=(({Request:e,Response:t})=>({Request:e,Response:t}))(Gt.global),{ReadableStream:Xr,TextEncoder:Zr}=Gt.global,Jr=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Qr=e=>{e=Gt.merge.call({skipUndefined:!0},Gr,e);const{fetch:t,Request:r,Response:n}=e,i=t?Yr(t):"function"==typeof fetch,a=Yr(r),o=Yr(n);if(!i)return!1;const l=i&&Yr(Xr),c=i&&("function"==typeof Zr?(s=new Zr,e=>s.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer()));var s;const u=a&&l&&Jr(()=>{let e=!1;const t=new r(br.origin,{body:new Xr,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),f=o&&l&&Jr(()=>Gt.isReadableStream(new n("").body)),d={stream:f&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!d[e]&&(d[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new Qt(`Response type '${e}' is not supported`,Qt.ERR_NOT_SUPPORT,r)})});return async e=>{let{url:i,method:o,data:l,signal:s,cancelToken:p,timeout:h,onDownloadProgress:m,onUploadProgress:y,responseType:v,headers:g,withCredentials:b="same-origin",fetchOptions:w}=qr(e),x=t||fetch;v=v?(v+"").toLowerCase():"text";let O=Hr([s,p&&p.toAbortSignal()],h),E=null;const S=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let P;try{if(y&&u&&"get"!==o&&"head"!==o&&0!==(P=await(async(e,t)=>{const n=Gt.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Gt.isBlob(e))return e.size;if(Gt.isSpecCompliantForm(e)){const t=new r(br.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Gt.isArrayBufferView(e)||Gt.isArrayBuffer(e)?e.byteLength:(Gt.isURLSearchParams(e)&&(e+=""),Gt.isString(e)?(await c(e)).byteLength:void 0)})(t):n})(g,l))){let e,t=new r(i,{method:"POST",body:l,duplex:"half"});if(Gt.isFormData(l)&&(e=t.headers.get("content-type"))&&g.setContentType(e),t.body){const[e,r]=Nr(P,Ir(Lr(y)));l=Vr(t.body,65536,e,r)}}Gt.isString(b)||(b=b?"include":"omit");const t=a&&"credentials"in r.prototype,s={...w,signal:O,method:o.toUpperCase(),headers:g.normalize().toJSON(),body:l,duplex:"half",credentials:t?b:void 0};E=a&&new r(i,s);let p=await(a?x(E,w):x(i,s));const h=f&&("stream"===v||"response"===v);if(f&&(m||h&&S)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=p[t]});const t=Gt.toFiniteNumber(p.headers.get("content-length")),[r,i]=m&&Nr(t,Ir(Lr(m),!0))||[];p=new n(Vr(p.body,65536,r,()=>{i&&i(),S&&S()}),e)}v=v||"text";let j=await d[Gt.findKey(d,v)||"text"](p,e);return!h&&S&&S(),await new Promise((t,r)=>{Rr(t,r,{data:j,headers:Tr.from(p.headers),status:p.status,statusText:p.statusText,config:e,request:E})})}catch(t){if(S&&S(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new Qt("Network Error",Qt.ERR_NETWORK,e,E),{cause:t.cause||t});throw Qt.from(t,t&&t.code,e,E)}}},en=new Map,tn=e=>{let t=e&&e.env||{};const{fetch:r,Request:n,Response:i}=t,a=[n,i,r];let o,l,c=a.length,s=en;for(;c--;)o=a[c],l=s.get(o),void 0===l&&s.set(o,l=c?new Map:Qr(t)),s=l;return l},rn=(tn(),{http:null,xhr:Wr,fetch:{get:tn}});Gt.forEach(rn,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const nn=e=>`- ${e}`,an=e=>Gt.isFunction(e)||null===e||!1===e,on=function(e,t){e=Gt.isArray(e)?e:[e];const{length:r}=e;let n,i;const a={};for(let o=0;o<r;o++){let r;if(n=e[o],i=n,!an(n)&&(i=rn[(r=String(n)).toLowerCase()],void 0===i))throw new Qt(`Unknown adapter '${r}'`);if(i&&(Gt.isFunction(i)||(i=i.get(t))))break;a[r||"#"+o]=i}if(!i){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));let t=r?e.length>1?"since :\n"+e.map(nn).join("\n"):" "+nn(e[0]):"as no adapter specified";throw new Qt("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i};function ln(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Dr(null,e)}function cn(e){return ln(e),e.headers=Tr.from(e.headers),e.data=Cr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),on(e.adapter||Or.adapter,e)(e).then(function(t){return ln(e),t.data=Cr.call(e,e.transformResponse,t),t.headers=Tr.from(t.headers),t},function(t){return Mr(t)||(ln(e),t&&t.response&&(t.response.data=Cr.call(e,e.transformResponse,t.response),t.response.headers=Tr.from(t.response.headers))),Promise.reject(t)})}const sn="1.13.2",un={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{un[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const fn={};un.transitional=function(e,t,r){function n(e,t){return"[Axios v"+sn+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,a)=>{if(!1===e)throw new Qt(n(i," has been removed"+(t?" in "+t:"")),Qt.ERR_DEPRECATED);return t&&!fn[i]&&(fn[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}},un.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};const dn={assertOptions:function(e,t,r){if("object"!=typeof e)throw new Qt("options must be an object",Qt.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const t=e[a],r=void 0===t||o(t,a,e);if(!0!==r)throw new Qt("option "+a+" must be "+r,Qt.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new Qt("Unknown option "+a,Qt.ERR_BAD_OPTION)}},validators:un},pn=dn.validators;class hn{constructor(e){this.defaults=e||{},this.interceptors={request:new fr,response:new fr}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=$r(this.defaults,t);const{transitional:r,paramsSerializer:n,headers:i}=t;void 0!==r&&dn.assertOptions(r,{silentJSONParsing:pn.transitional(pn.boolean),forcedJSONParsing:pn.transitional(pn.boolean),clarifyTimeoutError:pn.transitional(pn.boolean)},!1),null!=n&&(Gt.isFunction(n)?t.paramsSerializer={serialize:n}:dn.assertOptions(n,{encode:pn.function,serialize:pn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),dn.assertOptions(t,{baseUrl:pn.spelling("baseURL"),withXsrfToken:pn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&Gt.merge(i.common,i[t.method]);i&&Gt.forEach(["delete","get","head","post","put","patch","common"],e=>{delete i[e]}),t.headers=Tr.concat(a,i);const o=[];let l=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(l=l&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});const c=[];let s;this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)});let u,f=0;if(!l){const e=[cn.bind(this),void 0];for(e.unshift(...o),e.push(...c),u=e.length,s=Promise.resolve(t);f<u;)s=s.then(e[f++],e[f++]);return s}u=o.length;let d=t;for(;f<u;){const e=o[f++],t=o[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{s=cn.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,u=c.length;f<u;)s=s.then(c[f++],c[f++]);return s}getUri(e){return ur(Br((e=$r(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Gt.forEach(["delete","get","head","options"],function(e){hn.prototype[e]=function(t,r){return this.request($r(r||{},{method:e,url:t,data:(r||{}).data}))}}),Gt.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request($r(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}hn.prototype[e]=t(),hn.prototype[e+"Form"]=t(!0)});const mn=hn;class yn{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;const n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new Dr(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;const t=new yn(function(t){e=t});return{token:t,cancel:e}}}const vn=yn,gn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(gn).forEach(([e,t])=>{gn[t]=e});const bn=gn,wn=function e(t){const r=new mn(t),n=at(mn.prototype.request,r);return Gt.extend(n,mn.prototype,r,{allOwnKeys:!0}),Gt.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e($r(t,r))},n}(Or);wn.Axios=mn,wn.CanceledError=Dr,wn.CancelToken=vn,wn.isCancel=Mr,wn.VERSION=sn,wn.toFormData=ir,wn.AxiosError=Qt,wn.Cancel=wn.CanceledError,wn.all=function(e){return Promise.all(e)},wn.spread=function(e){return function(t){return e.apply(null,t)}},wn.isAxiosError=function(e){return Gt.isObject(e)&&!0===e.isAxiosError},wn.mergeConfig=$r,wn.AxiosHeaders=Tr,wn.formToJSON=e=>wr(Gt.isHTMLForm(e)?new FormData(e):e),wn.getAdapter=on,wn.HttpStatusCode=bn,wn.default=wn;const xn=wn,On=e=>{if(e instanceof FormData)return e;const t=(e,n)=>{Object.keys(e).forEach(i=>{const a=n?`${n}[${i}]`:i,o=e[i];switch(!0){case o instanceof File:r.append(a,o);break;case o&&"object"==typeof o:t(o,a);break;case null===o:r.append(a,"");break;default:r.append(a,o)}})},r=new FormData;return t(e),r};var En=n(253);function Sn(){return Sn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Sn.apply(null,arguments)}const Pn=e=>En.createElement(l.Translate,Sn({namespace:"Settings"},e)),jn=({isOpen:e,onClose:t})=>{const[n,i]=(0,r.useState)(!1),[a,o]=(0,r.useState)(!1),[c,u]=(0,r.useState)({}),[f,p]=(0,r.useState)({}),h=(0,l.useTranslate)("Settings"),{baseUrl:m,setPollInterval:y}=s(),{addSuccess:v,addError:g}=d(),b=(0,r.useCallback)(async()=>{i(!0),u({});try{const{data:e}=await xn.get(`${m}/index/settings`);u(e)}catch(e){if(!xn.isAxiosError(e))throw e;g(e.message)}finally{i(!1)}},[m,g]);return(0,r.useEffect)(()=>{e&&(o(!1),p({}),b())},[e,b]),En.createElement(l.Drawer,{"data-type":"settings",title:En.createElement(Pn,{content:"title"}),isOpen:e,onClose:t,form:{applyButton:!1,values:c,errors:f,onSubmit:async e=>{o(!0),p({});try{const{data:{status:r,statusMessages:n=[],formMessages:i={},pollInterval:a}}=await xn.post(`${m}/index/update-settings`,On(e));p(i),n.forEach(g),"success"===r&&(v(En.createElement(Pn,{content:"success"})),t(),y(a))}catch(e){g(e.message)}finally{o(!1)}},state:n||a?"submit":void 0,submitButton:{children:En.createElement(Pn,{content:"buttonSave"}),"data-action":"submit"},cancelButton:{children:En.createElement(Pn,{content:"buttonCancel"})}}},n?En.createElement(l.ContentLoader,null):En.createElement(En.Fragment,null,En.createElement(l.Section,{title:En.createElement(Pn,{content:"sectionInterface"})},En.createElement(l.FormFieldCheckbox,{label:En.createElement(Pn,{content:"refreshPages"}),name:"refresh_pages",checkedValue:"on",uncheckedValue:"off"})),En.createElement(l.Section,{title:En.createElement(Pn,{content:"sectionMonitoring"})},En.createElement(l.FormFieldCheckbox,{label:En.createElement(Pn,{content:"automonit"}),name:"automonit",checkedValue:"on",uncheckedValue:"off"}),En.createElement(l.FormFieldText,{label:En.createElement(Pn,{content:"pollInterval"}),name:"poll_interval",required:!0,inputProps:{size:5,maxlength:4}}),En.createElement(l.FormFieldCheckbox,{label:En.createElement(Pn,{content:"storageSysstat"}),name:"storage_sysstat",checkedValue:"on",uncheckedValue:"off"}),En.createElement(l.FormFieldText,{label:En.createElement(Pn,{content:"sysstatStorageTime"}),name:"sysstat_storage_time",required:!0,inputProps:{size:4,maxlength:3}})),En.createElement(l.Section,{title:En.createElement(Pn,{content:"sectionReports"})},En.createElement(l.FormFieldSelect,{label:En.createElement(Pn,{content:"reportRate"}),name:"report_rate",size:"sm"},En.createElement(l.SelectOption,{value:"none"},h("disabled")),En.createElement(l.SelectOption,{value:"daily"},h("daily")),En.createElement(l.SelectOption,{value:"weekly"},h("weekly")),En.createElement(l.SelectOption,{value:"monthly"},h("monthly")))),En.createElement(l.Section,{title:En.createElement(Pn,{content:"sectionEmail"})},En.createElement(l.FormFieldText,{label:En.createElement(Pn,{content:"mailTo"}),name:"email_to",required:!0,size:"lg",inputProps:{maxlength:255}}),En.createElement(l.FormFieldText,{label:En.createElement(Pn,{content:"mailFrom"}),name:"email_from",required:!0,size:"lg",inputProps:{maxlength:255}}),En.createElement(l.FormFieldText,{label:En.createElement(Pn,{content:"mailServers"}),name:"mail_servers",required:!0,size:"lg",multi:!0,inputProps:{maxlength:255}}))))};jn.propTypes={isOpen:o().bool.isRequired,onClose:o().func.isRequired};const An=jn;var kn=n(253);function Tn(){return Tn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tn.apply(null,arguments)}const Cn=e=>kn.createElement(l.Translate,Tn({namespace:"Settings"},e)),Mn=()=>{const[e,t]=(0,r.useState)(!1);return kn.createElement(kn.Fragment,null,kn.createElement(l.Button,{icon:"sliders",onClick:()=>t(!0),"data-action":"open-settings"},kn.createElement(Cn,{content:"buttonOpen"})),kn.createElement(An,{isOpen:e,onClose:()=>t(!1)}))};var _n=n(253);function Dn(){return Dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dn.apply(null,arguments)}const Rn=()=>{const{pathname:e}=ce(),t=(0,r.useMemo)(()=>[{key:"services",title:_n.createElement(l.Translate,{content:"tabServices"}),to:"/service/list"},{key:"disks",title:_n.createElement(l.Translate,{content:"tabDisks"}),to:"/disk/list"},{key:"statistics",title:_n.createElement(l.Translate,{content:"tabStatistics"}),to:"/statistics/index"}].filter(Boolean),[]),n=(0,r.useMemo)(()=>t.findIndex(({to:t})=>D(t,e))+1,[t,e]);return _n.createElement(_n.Fragment,null,_n.createElement(l.Tabs,{active:n,addon:_n.createElement(Mn,null)},t.map(({key:e,...t})=>_n.createElement(l.Tab,Dn({key:e,component:Qe},t)))),_n.createElement(je,null))};var In=n(253);function Nn(){return Nn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nn.apply(null,arguments)}const Ln=e=>In.createElement(l.Translate,Nn({namespace:"Services.List.ServiceStatus"},e)),Fn=e=>"running"===e?"success":"inactive",zn=e=>{switch(e){case"init":case"undefined":return"question-mark-circle-filled";case"notrunning":return"stop-circle";default:return}},Bn=({status:e})=>In.createElement(l.Status,{intent:Fn(e),icon:zn(e)},In.createElement(Ln,{content:e}));Bn.propTypes={status:o().string.isRequired};const Un=Bn;var $n=n(253);function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qn.apply(null,arguments)}const Wn="monitored",Hn="notmonitored",Kn="timeout",Vn=e=>$n.createElement(l.Translate,qn({namespace:"MonitStatus"},e)),Yn=e=>{switch(e){case Wn:case"init":return"success";case Kn:return"warning";default:return"inactive"}},Gn=({monitStatus:e,...t})=>$n.createElement(l.Status,qn({intent:Yn(e),compact:!0},t),$n.createElement(Vn,{content:e}));Gn.propTypes={monitStatus:o().string.isRequired};const Xn=({monitStatus:e,editable:t=!0,handleToggle:r,id:n,loading:i=!1,...a})=>{if(!t)return $n.createElement(l.Text,{bold:!0,className:"watchdog-monit-status-readonly"},$n.createElement(Gn,qn({monitStatus:e},a)));const o=[Hn,Kn].includes(e);return $n.createElement(l.Dropdown,{menu:$n.createElement(l.Menu,null,$n.createElement(l.MenuItem,{icon:$n.createElement(l.Icon,{name:"dot-big",intent:o?"success":"inactive"}),"data-action":`toggle-monit-${n}`,onClick:()=>r(n,o)},$n.createElement(Vn,{content:"action."+(o?"enable":"disable")})))},$n.createElement(l.Button,{ghost:!0,caret:!0,status:i?"loading":void 0},$n.createElement(Gn,{monitStatus:e,progress:i})))};Xn.propTypes={monitStatus:o().string.isRequired,editable:o().bool,handleToggle:o().func.isRequired,id:o().string.isRequired,loading:o().bool};const Zn=Xn;var Jn=n(253);function Qn(){return Qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qn.apply(null,arguments)}const ei=e=>Jn.createElement(l.Translate,Qn({namespace:"Services.List"},e)),ti=({services:e,loading:t=!1,onReload:n,onEdit:i})=>{const[a,o]=(0,r.useState)(""),[c,u]=(0,r.useState)([]),{baseUrl:f}=s(),{addError:p,addSuccess:h}=d(),m=(0,l.useTranslate)("Services.List"),y=(0,r.useMemo)(()=>a?e.filter(e=>["name","label"].some(t=>e[t]&&String(e[t]).toLowerCase().includes(a.toLowerCase()))):e,[e,a]),v=async(e,t)=>{u(t=>[...t,e]);try{const{data:{status:r,statusMessages:i=[]}}=await xn.post(`${f}/service/${t?"enable":"disable"}-monitoring`,{id:e});i.forEach(p),"success"===r&&(h(Jn.createElement(ei,{content:t?"successMonitEnable":"successMonitDisable"})),n())}catch(e){p(e.message)}finally{u(t=>t.filter(t=>t!==e))}};return Jn.createElement(l.List,{columns:[{key:"label",type:"title",title:Jn.createElement(ei,{content:"columnService"}),sortable:!0,render:({id:e,label:t,editable:r})=>r?Jn.createElement(l.Link,{"data-action":`service-${e}`,onClick:()=>i(e)},t):t},{key:"status",sortable:!0,title:Jn.createElement(ei,{content:"columnStatus"}),render:Un},{key:"monitStatus",type:"controls",title:Jn.createElement(ei,{content:"columnMonitStatus"}),render:({id:e,...t})=>Jn.createElement(Zn,Qn({},t,{id:e,handleToggle:v,loading:c.includes(e)})),sortable:!0}],data:y,rowKey:"id",toolbar:Jn.createElement(l.Toolbar,null,Jn.createElement(l.ToolbarGroup,{title:m("reload")},Jn.createElement(l.Button,{icon:"refresh",onClick:n,"data-action":"reload",state:t?"loading":void 0},Jn.createElement(ei,{content:"buttonReload"}))),Jn.createElement(l.ToolbarExpander,null),Jn.createElement(l.ToolbarGroup,{title:m("search")},Jn.createElement(l.SearchBar,{id:"search-service",inputProps:{placeholder:m("searchPlaceholder"),value:a},onTyping:o}))),filtered:!!a,emptyView:t?Jn.createElement(l.ContentLoader,null):void 0,loading:t})};ti.propTypes={services:o().array.isRequired,loading:o().bool,onReload:o().func.isRequired,onEdit:o().func.isRequired};const ri=ti;var ni=n(253);function ii(){return ii=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ii.apply(null,arguments)}const ai=e=>ni.createElement(l.Translate,ii({namespace:"Services.ServiceProperties"},e)),oi=({id:e,label:t,onClose:n,onSuccess:i})=>{const[a,o]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),[f,p]=(0,r.useState)({}),[h,m]=(0,r.useState)({}),{baseUrl:y}=s(),{addSuccess:v,addError:g}=d(),b=(0,r.useCallback)(async()=>{o(!0),p({});try{const{data:t}=await xn.get(`${y}/service/properties`,{params:{id:e}});p(t)}catch(e){if(!xn.isAxiosError(e))throw e;g(e.message)}finally{o(!1)}},[y,e,g]);(0,r.useEffect)(()=>{e&&(u(!1),m({}),b())},[e,b]);const w=(e,t)=>p(r=>(0,l.setIn)(r,e,t));return ni.createElement(l.Drawer,{"data-type":"service-properites",title:t,isOpen:!!e,onClose:n,form:{applyButton:!1,values:f,errors:h,state:a||c?"submit":void 0,onFieldChange:w,onSubmit:async t=>{u(!0),m({});try{const{data:{status:r,statusMessages:a=[],formMessages:o={}}}=await xn.post(`${y}/service/update-properties`,On({id:e,values:t}));m(o),a.forEach(g),"success"===r&&(v(ni.createElement(ai,{content:"success"})),n(),i())}catch(e){g(e.message)}finally{u(!1)}},submitButton:{children:ni.createElement(ai,{content:"buttonSave"}),"data-action":"submit"},cancelButton:{children:ni.createElement(ai,{content:"buttonCancel"})}}},a?ni.createElement(l.ContentLoader,null):ni.createElement(l.Section,{title:ni.createElement(ai,{content:"sectionMonitoring"})},ni.createElement(l.FormFieldCheckbox,{label:ni.createElement(ai,{content:"monitStatus"}),name:"mon_status",checkedValue:Wn,uncheckedValue:Hn}),ni.createElement(l.FormFieldCheckbox,{label:ni.createElement(ai,{content:"saveStats"}),name:"save_stats",checkedValue:"on",uncheckedValue:"off"}),ni.createElement(l.FormFieldCheckbox,{label:ni.createElement(ai,{content:"timeout"}),name:"timeout",checkedValue:"on",uncheckedValue:"off"}),"on"===(0,l.getIn)(f,"timeout")&&ni.createElement(l.FormField,{label:null,name:"timeout_num"},({isDisabled:e})=>ni.createElement(ai,{component:"div",className:"watchdog-service-properties-timeout",content:"timeoutNum",params:{times:ni.createElement(l.Input,{name:"timeout_restart_num",size:"sm",maxLength:3,disabled:e(),value:(0,l.getIn)(f,"timeout_restart_num"),onChange:e=>w("timeout_restart_num",e.target.value)}),cycles:ni.createElement(l.Input,{name:"timeout_cycles_num",size:"sm",maxLength:3,disabled:e(),value:(0,l.getIn)(f,"timeout_cycles_num"),onChange:e=>w("timeout_cycles_num",e.target.value)})}})),ni.createElement(l.FormField,{label:ni.createElement(ai,{content:"connectionTimeout"}),name:"connection_timeout",required:!0},({getId:e,getName:t,getValue:r,setValue:n,isDisabled:i})=>ni.createElement(ni.Fragment,null,ni.createElement(l.Input,{id:e(),name:t(),value:r(),disabled:i(),onChange:({target:e})=>n(e.value),size:5,maxLength:4})," ",ni.createElement(ai,{content:"seconds"}))),ni.createElement(l.FormFieldText,{label:ni.createElement(ai,{content:"startCmd"}),name:"start_cmd",size:"xl",inputProps:{maxLength:255},required:!0}),ni.createElement(l.FormFieldText,{label:ni.createElement(ai,{content:"stopCmd"}),name:"stop_cmd",size:"xl",inputProps:{maxLength:255},required:!0}),ni.createElement(l.FormField,{label:ni.createElement(ai,{content:"startTime"}),name:"start_time",required:!0},({getId:e,getName:t,getValue:r,setValue:n,isDisabled:i})=>ni.createElement(ni.Fragment,null,ni.createElement(l.Input,{id:e(),name:t(),value:r(),disabled:i(),onChange:({target:e})=>n(e.value),size:5,maxLength:4})," ",ni.createElement(ai,{content:"seconds"})))))};oi.propTypes={id:o().number,label:o().string,onClose:o().func.isRequired,onSuccess:o().func.isRequired};const li=oi;var ci=n(253);const si=({handleReload:e})=>{const[t,n]=(0,r.useState)(!1),{baseUrl:i,monitoringStatus:a,setMonitoringStatus:o,pollInterval:c}=s(),{addError:u,addSuccess:f}=d(),p=(0,r.useRef)(new AbortController),h=(0,r.useRef)(!1),m=(0,r.useCallback)(async()=>{if(!h.current){h.current=!0;try{await e(!0)}finally{h.current=!1}}},[e]),y=()=>p.current.abort();return(0,r.useEffect)(()=>{if(a&&c){const e=setInterval(m,1e3*c);return()=>{clearInterval(e),y()}}return()=>y()},[a,c,m]),ci.createElement(l.Section,null,ci.createElement(l.Switch,{checked:a,loading:t,onChange:async()=>{n(!0);const t=!a;try{const{data:{status:r,statusMessages:n=[],monitoringStatus:a}}=await xn.post(`${i}/index/toggle-monitoring`);n.forEach(u),"success"===r&&(o(a),f(ci.createElement(l.Translate,{content:t?"successMonitoringEnable":"successMonitoringDisable"})),e())}catch(e){u(e.message)}finally{n(!1)}}},ci.createElement(l.Translate,{content:"monitoringStatus"})))};si.propTypes={handleReload:o().func.isRequired};const ui=si;var fi=n(253);const di=()=>{const[e,t]=(0,r.useState)(!0),[n,i]=(0,r.useState)([]),[a,o]=(0,r.useState)(void 0),{baseUrl:l}=s(),{addError:c}=d(),u=(0,r.useCallback)(async(e=!1)=>{!0!==e&&t(!0);try{const{data:e}=await xn.get(`${l}/service/list-data`);Array.isArray(e)&&i(e)}catch(e){if(!xn.isAxiosError(e))throw e;c(e.message)}finally{!0!==e&&t(!1)}},[l,c]);return(0,r.useEffect)(()=>{u()},[u]),fi.createElement(fi.Fragment,null,fi.createElement(ui,{handleReload:u}),fi.createElement(ri,{services:n,loading:e,onReload:u,onEdit:o}),fi.createElement(li,{id:a,label:n.find(({id:e})=>e===a)?.label,onClose:()=>o(void 0),onSuccess:u}))};var pi=n(253);function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hi.apply(null,arguments)}const mi=e=>pi.createElement(l.Translate,hi({namespace:"Disks.List.DiskStatus"},e)),yi=e=>{switch(e){case"normal":return"success";case"excess":return"danger";default:return"inactive"}},vi=e=>{switch(e){case"init":case"undefined":return"question-mark-circle-filled";default:return}},gi=({status:e})=>pi.createElement(l.Status,{intent:yi(e),icon:vi(e)},pi.createElement(mi,{content:e}));gi.propTypes={status:o().string.isRequired};const bi=gi;var wi=n(253);function xi(){return xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xi.apply(null,arguments)}const Oi=e=>wi.createElement(l.Translate,xi({namespace:"Disks.List"},e)),Ei=({disks:e,loading:t=!1,onReload:n,onEdit:i})=>{const[a,o]=(0,r.useState)(""),[c,u]=(0,r.useState)([]),{baseUrl:f}=s(),{addError:p,addSuccess:h}=d(),m=(0,l.useTranslate)("Disks.List"),y=(0,r.useMemo)(()=>a?e.filter(e=>["device","mountPoint"].some(t=>e[t]&&String(e[t]).toLowerCase().includes(a.toLowerCase()))):e,[e,a]),v=async(e,t)=>{u(t=>[...t,e]);try{const{data:{status:r,statusMessages:i=[]}}=await xn.post(`${f}/disk/${t?"enable":"disable"}-monitoring`,{device:e});i.forEach(p),"success"===r&&(h(wi.createElement(Oi,{content:t?"successMonitEnable":"successMonitDisable"})),n())}catch(e){p(e.message)}finally{u(t=>t.filter(t=>t!==e))}};return wi.createElement(l.List,{columns:[{key:"device",title:wi.createElement(Oi,{content:"columnDevice"}),type:"title",sortable:!0,render:({device:e,monitStatus:t,id:r})=>t===Hn?e:wi.createElement(l.Link,{"data-action":`service-${r}`,onClick:()=>i(r)},e)},{key:"mountPoint",title:wi.createElement(Oi,{content:"columnMountPoint"}),sortable:!0,render:({mountPoint:e})=>e??"-"},{key:"status",sortable:!0,title:wi.createElement(Oi,{content:"columnStatus"}),render:bi},{key:"monitStatus",title:wi.createElement(Oi,{content:"columnMonitStatus"}),type:"controls",render:({device:e,...t})=>wi.createElement(Zn,xi({},t,{id:e,handleToggle:v,loading:c.includes(e)})),sortable:!0},{key:"spaceRate",title:wi.createElement(Oi,{content:"columnSpaceRate"}),sortable:!0,width:"1%",align:"right",render:({spaceRate:e,spaceRateUnit:t})=>void 0===e?null:wi.createElement(Oi,{content:`spaceRate.${t}`,params:{spaceRate:e},fallback:`${e}`})},{key:"inodsRate",title:wi.createElement(Oi,{content:"columnInodsRate"}),sortable:!0,width:"1%",align:"right",render:({inodsRate:e,inodsRateUnit:t})=>void 0===e?null:wi.createElement(Oi,{content:`inodsRate.${t}`,params:{inodsRate:e},fallback:`${e}`})}],data:y,rowKey:"id",toolbar:wi.createElement(l.Toolbar,null,wi.createElement(l.ToolbarGroup,{title:m("reload")},wi.createElement(l.Button,{icon:"refresh",onClick:n,"data-action":"reload",state:t?"loading":void 0},wi.createElement(Oi,{content:"buttonReload"}))),wi.createElement(l.ToolbarExpander,null),wi.createElement(l.ToolbarGroup,{title:m("search")},wi.createElement(l.SearchBar,{inputProps:{placeholder:m("searchPlaceholder"),value:a},onTyping:o}))),sortColumn:"mountPoint",filtered:!!a,emptyView:t?wi.createElement(l.ContentLoader,null):void 0,loading:t})};Ei.propTypes={disks:o().array.isRequired,loading:o().bool,onReload:o().func.isRequired,onEdit:o().func.isRequired};const Si=Ei;var Pi=n(253);function ji(){return ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ji.apply(null,arguments)}const Ai=e=>Pi.createElement(l.Translate,ji({namespace:"Disks.DiskProperties"},e)),ki=["percent","gigabyte","megabyte","kilobyte"],Ti=["percent","file"],Ci=({id:e,device:t,onClose:n,onSuccess:i})=>{const[a,o]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),[f,p]=(0,r.useState)({}),[h,m]=(0,r.useState)({}),{baseUrl:y}=s(),{addSuccess:v,addError:g}=d(),b=(0,l.useTranslate)("Disks.DiskProperties"),w=(0,r.useCallback)(async()=>{u(!0),p({});try{const{data:t}=await xn.get(`${y}/disk/properties`,{params:{id:e}});p(t)}catch(e){if(!xn.isAxiosError(e))throw e;g(e.message)}finally{u(!1)}},[y,e,g]);(0,r.useEffect)(()=>{e&&(o(!1),m({}),w())},[e,w]);const x=(e,t)=>p(r=>(0,l.setIn)(r,e,t));return Pi.createElement(l.Drawer,{"data-type":"disk-properites",title:t,isOpen:!!e,onClose:n,form:{applyButton:!1,values:f,errors:h,state:c||a?"submit":void 0,onFieldChange:x,onSubmit:async t=>{o(!0),m({});try{const{data:{status:r,statusMessages:a=[],formMessages:o={}}}=await xn.post(`${y}/disk/update-properties`,On({id:e,values:t}));m(o),a.forEach(g),"success"===r&&(v(Pi.createElement(Ai,{content:"success"})),n(),i())}catch(e){g(e.message)}finally{o(!1)}},submitButton:{children:Pi.createElement(Ai,{content:"buttonSave"}),"data-action":"submit"},cancelButton:{children:Pi.createElement(Ai,{content:"buttonCancel"})}}},c?Pi.createElement(l.ContentLoader,null):Pi.createElement(l.Section,{title:Pi.createElement(Ai,{content:"sectionMonitoring"})},Pi.createElement(l.FormField,{label:Pi.createElement(Ai,{content:"spaceRate"}),name:"space_rate",required:!0},({getId:e,getName:t,isDisabled:r})=>Pi.createElement(Pi.Fragment,null,Pi.createElement(l.Input,{id:e(),name:t(),value:(0,l.getIn)(f,"space_rate"),onChange:e=>x("space_rate",e.target.value),maxLength:11,size:12,disabled:r()}),Pi.createElement(l.Select,{value:(0,l.getIn)(f,"space_rate_unit"),onChange:e=>x("space_rate_unit",e),size:"xs",disabled:r()},ki.map(e=>Pi.createElement(l.SelectOption,{value:e,key:e},b(`spaceRateUnit.${e}`)))))),Pi.createElement(l.FormField,{label:Pi.createElement(Ai,{content:"inodsRate"}),name:"inods_rate",required:!0},({isDisabled:e})=>Pi.createElement(Pi.Fragment,null,Pi.createElement(l.Input,{value:(0,l.getIn)(f,"inods_rate"),onChange:e=>x("inods_rate",e.target.value),maxLength:11,size:12,disabled:e()}),Pi.createElement(l.Select,{value:(0,l.getIn)(f,"inods_rate_unit"),onChange:e=>x("inods_rate_unit",e),size:"xs",disabled:e()},Ti.map(e=>Pi.createElement(l.SelectOption,{value:e,key:e},b(`inodsRateUnit.${e}`)))))),Pi.createElement(l.FormFieldText,{label:Pi.createElement(Ai,{content:"command"}),name:"command",size:"xl",inputProps:{maxLength:255}})))};Ci.propTypes={id:o().number,device:o().string,onClose:o().func.isRequired,onSuccess:o().func.isRequired};const Mi=Ci;var _i=n(253);const Di=()=>{const[e,t]=(0,r.useState)(!0),[n,i]=(0,r.useState)([]),[a,o]=(0,r.useState)(void 0),{baseUrl:l}=s(),{addError:c}=d(),u=(0,r.useCallback)(async(e=!1)=>{!0!==e&&t(!0);try{const{data:e}=await xn.get(`${l}/disk/list-data`);Array.isArray(e)&&i(e)}catch(e){if(!xn.isAxiosError(e))throw e;c(e.message)}finally{!0!==e&&t(!1)}},[l,c]);return(0,r.useEffect)(()=>{u()},[u]),_i.createElement(_i.Fragment,null,_i.createElement(ui,{handleReload:u}),_i.createElement(Si,{disks:n,loading:e,onReload:u,onEdit:o}),_i.createElement(Mi,{id:a,device:n.find(({id:e})=>e===a)?.device,onClose:()=>o(void 0),onSuccess:u}))},Ri="day",Ii="week",Ni="month",Li="year",Fi=(e,t,r)=>{const n=t-e,i=(e=>{switch(e){case Ri:return 6;case Ii:return 7;case Ni:return 30;case Li:return 12}})(r),a=Math.ceil(n/i);return[...Array(i+1).keys()].map(t=>e+t*a)},zi=(e,t)=>new Date(1e3*e).toLocaleString(document.documentElement.lang??"en",(e=>{switch(e){case Ri:return{hour:"numeric",minute:"numeric",month:"short",day:"numeric"};case Ii:case Ni:return{month:"short",day:"numeric",year:"numeric"};case Li:return{month:"short",year:"numeric"};default:return{hour:"numeric",minute:"numeric",month:"short",day:"numeric",year:"numeric"}}})(t)),Bi=["KB","MB","GB","TB","PB","EB","ZB","YB"],Ui=(e,t=2)=>{if(!e)return"0 B";const r=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/1024**r).toFixed(t))} ${Bi[r]}`},$i=e=>{let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);let r=t>>16&255,n=t>>8&255,i=255&t;const a=(e,t)=>(e=(e+t)%256)<128?Math.max(30,e-30):e;r=a(r,100),n=a(n,100),i=a(i,150);const o=e=>e.toString(16).padStart(2,"0");return`#${o(r)}${o(n)}${o(i)}`};var qi=n(253);function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wi.apply(null,arguments)}const Hi=e=>qi.createElement(l.Translate,Wi({namespace:"Statistics.Settings"},e)),Ki=({isOpen:e,onClose:t,onSuccess:n})=>{const[i,a]=(0,r.useState)(!1),[o,c]=(0,r.useState)({}),[u,f]=(0,r.useState)([]),[p,h]=(0,r.useState)(!1),m=(0,l.useTranslate)("Statistics.Settings"),{baseUrl:y}=s(),{addSuccess:v,addError:g}=d(),b=(0,r.useCallback)(async()=>{a(!0),c({});try{const{data:{services:e,...t}}=await xn.get(`${y}/statistics/settings`);f(e),c({...t,services:e.reduce((e,{name:t,show:r})=>({...e,[t]:r}),{})})}catch(e){if(!xn.isAxiosError(e))throw e;g(e.message)}finally{a(!1)}},[y,g]);(0,r.useEffect)(()=>{e&&(h(!1),b())},[e,b]);const w=(e,t)=>c(r=>(0,l.setIn)(r,e,t));return qi.createElement(l.Drawer,{"data-type":"statistics-settings",title:qi.createElement(Hi,{content:"title"}),isOpen:e,onClose:t,form:{applyButton:!1,values:o,onSubmit:async e=>{h(!0);try{const{data:{status:r,statusMessages:i=[]}}=await xn.post(`${y}/statistics/update-settings`,On(e));i.forEach(g),"success"===r&&(v(qi.createElement(Hi,{content:"success"})),t(),n())}catch(e){g(e.message)}finally{h(!1)}},onFieldChange:w,state:i||p?"submit":void 0,submitButton:{children:qi.createElement(Hi,{content:"buttonSave"}),"data-action":"submit"},cancelButton:{children:qi.createElement(Hi,{content:"buttonCancel"})}}},i?qi.createElement(l.ContentLoader,null):qi.createElement(qi.Fragment,null,qi.createElement(l.FormFieldSelect,{name:"period",label:qi.createElement(Hi,{content:"period"}),size:"sm"},[Ri,Ii,Ni,Li].map(e=>qi.createElement(l.SelectOption,{value:e,key:e},m(`${e}Period`)))),qi.createElement(l.FormField,{name:"services",label:qi.createElement(Hi,{content:"services"})},qi.createElement(l.Grid,{gap:"md",sm:2},qi.createElement(l.GridCol,null,qi.createElement(l.Checkbox,{name:"showTotal",id:"showTotal",checked:(0,l.getIn)(o,"showTotal"),onChange:e=>w("showTotal",e)},qi.createElement(Hi,{content:"showTotal"}))),u.map(({name:e,label:t})=>qi.createElement(l.GridCol,{key:e},qi.createElement(l.Checkbox,{name:`service-${e}`,id:`service-${e}`,checked:(0,l.getIn)(o,`services[${e}]`),onChange:t=>w(`services[${e}]`,t)},t)))))))};Ki.propTypes={isOpen:o().bool.isRequired,onClose:o().func.isRequired,onSuccess:o().func.isRequired};const Vi=Ki;var Yi=n(253);function Gi(){return Gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gi.apply(null,arguments)}const Xi=e=>Yi.createElement(l.Translate,Gi({namespace:"Statistics"},e)),Zi=({onReload:e})=>{const[t,n]=(0,r.useState)(!1);return Yi.createElement(l.Toolbar,null,Yi.createElement(l.ToolbarGroup,{title:""},Yi.createElement(l.Button,{icon:"sliders",onClick:()=>n(!0),"data-action":"open-statistics-settings"},Yi.createElement(Xi,{content:"buttonSettings"})),Yi.createElement(Vi,{isOpen:t,onClose:()=>n(!1),onSuccess:e})),Yi.createElement(l.ToolbarGroup,{title:""},Yi.createElement(l.Button,{icon:"refresh",onClick:e},Yi.createElement(Xi,{content:"buttonRefresh"}))))};Zi.propTypes={onReload:o().func.isRequired};const Ji=Zi;function Qi(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=Qi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function ea(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=Qi(e))&&(n&&(n+=" "),n+=t);return n}var ta=n(926),ra=n.n(ta),na=n(5604),ia=n.n(na);function aa(e){var t=10**(arguments.length>1&&void 0!==arguments[1]?arguments[1]:4),r=Math.round(e*t)/t;return Object.is(r,-0)?0:r}function oa(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e.reduce((e,t,n)=>{var i=r[n-1];return"string"==typeof i?e+i+t:void 0!==i?e+aa(i)+t:e+t},"")}var la=e=>0===e?0:e>0?1:-1,ca=e=>"number"==typeof e&&e!=+e,sa=e=>"string"==typeof e&&e.indexOf("%")===e.length-1,ua=e=>("number"==typeof e||e instanceof Number)&&!ca(e),fa=e=>ua(e)||"string"==typeof e,da=0,pa=e=>{var t=++da;return"".concat(e||"").concat(t)},ha=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!ua(e)&&"string"!=typeof e)return n;if(sa(e)){if(null==t)return n;var a=e.indexOf("%");r=t*parseFloat(e.slice(0,a))/100}else r=+e;return ca(r)&&(r=n),i&&null!=t&&r>t&&(r=t),r},ma=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[String(e[n])])return!0;r[String(e[n])]=!0}return!1};function ya(e,t,r){return ua(e)&&ua(t)?aa(e+r*(t-e)):t}function va(e,t,r){if(e&&e.length)return e.find(e=>e&&("function"==typeof t?t(e):ia()(e,t))===r)}var ga=e=>null==e,ba=e=>ga(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function wa(e){return null!=e}function xa(){}var Oa=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i<r;i++)n[i-2]=arguments[i];if("undefined"!=typeof console&&console.warn&&(void 0===t&&console.warn("LogUtils requires an error message argument"),!e))if(void 0===t)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;console.warn(t.replace(/%s/g,()=>n[a++]))}},Ea=(e,t,r)=>{var{width:n="100%",height:i="100%",aspect:a,maxHeight:o}=r,l=sa(n)?e:Number(n),c=sa(i)?t:Number(i);return a&&a>0&&(l?c=l/a:c&&(l=c*a),o&&null!=c&&c>o&&(c=o)),{calculatedWidth:l,calculatedHeight:c}},Sa={width:0,height:0,overflow:"visible"},Pa={width:0,overflowX:"visible"},ja={height:0,overflowY:"visible"},Aa={},ka=e=>{var{width:t,height:r}=e,n=sa(t),i=sa(r);return n&&i?Sa:n?Pa:i?ja:Aa};function Ta(e){return Number.isFinite(e)}function Ca(e){return"number"==typeof e&&e>0&&Number.isFinite(e)}function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ma.apply(null,arguments)}function _a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Da(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_a(Object(r),!0).forEach(function(t){Ra(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ra(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ia=(0,r.createContext)({width:-1,height:-1});function Na(e){var{children:t,width:n,height:i}=e,a=(0,r.useMemo)(()=>({width:n,height:i}),[n,i]);return function(e){return Ca(e.width)&&Ca(e.height)}(a)?r.createElement(Ia.Provider,{value:a},t):null}var La=()=>(0,r.useContext)(Ia),Fa=(0,r.forwardRef)((e,t)=>{var{aspect:n,initialDimension:i={width:-1,height:-1},width:a,height:o,minWidth:l=0,minHeight:c,maxHeight:s,children:u,debounce:f=0,id:d,className:p,onResize:h,style:m={}}=e,y=(0,r.useRef)(null),v=(0,r.useRef)();v.current=h,(0,r.useImperativeHandle)(t,()=>y.current);var[g,b]=(0,r.useState)({containerWidth:i.width,containerHeight:i.height}),w=(0,r.useCallback)((e,t)=>{b(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]);(0,r.useEffect)(()=>{if(null==y.current||"undefined"==typeof ResizeObserver)return xa;var e=e=>{var t,{width:r,height:n}=e[0].contentRect;w(r,n),null===(t=v.current)||void 0===t||t.call(v,r,n)};f>0&&(e=ra()(e,f,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:r,height:n}=y.current.getBoundingClientRect();return w(r,n),t.observe(y.current),()=>{t.disconnect()}},[w,f]);var{containerWidth:x,containerHeight:O}=g;Oa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:E,calculatedHeight:S}=Ea(x,O,{width:a,height:o,aspect:n,maxHeight:s});return Oa(null!=E&&E>0||null!=S&&S>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",E,S,a,o,l,c,n),r.createElement("div",{id:d?"".concat(d):void 0,className:ea("recharts-responsive-container",p),style:Da(Da({},m),{},{width:a,height:o,minWidth:l,minHeight:c,maxHeight:s}),ref:y},r.createElement("div",{style:ka({width:a,height:o})},r.createElement(Na,{width:E,height:S},u)))}),za=(0,r.forwardRef)((e,t)=>{var n=La();if(Ca(n.width)&&Ca(n.height))return e.children;var{width:i,height:a}=function(e){var{width:t,height:r,aspect:n}=e,i=t,a=r;return void 0===i&&void 0===a?(i="100%",a="100%"):void 0===i?i=n&&n>0?void 0:"100%":void 0===a&&(a=n&&n>0?void 0:"100%"),{width:i,height:a}}({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:l}=Ea(void 0,void 0,{width:i,height:a,aspect:e.aspect,maxHeight:e.maxHeight});return ua(o)&&ua(l)?r.createElement(Na,{width:o,height:l},e.children):r.createElement(Fa,Ma({},e,{width:i,height:a,ref:t}))}),Ba=Symbol.for("immer-nothing"),Ua=Symbol.for("immer-draftable"),$a=Symbol.for("immer-state");function qa(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Wa=Object.getPrototypeOf;function Ha(e){return!!e&&!!e[$a]}function Ka(e){return!!e&&(Ga(e)||Array.isArray(e)||!!e[Ua]||!!e.constructor?.[Ua]||eo(e)||to(e))}var Va=Object.prototype.constructor.toString(),Ya=new WeakMap;function Ga(e){if(!e||"object"!=typeof e)return!1;const t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if("function"!=typeof r)return!1;let n=Ya.get(r);return void 0===n&&(n=Function.toString.call(r),Ya.set(r,n)),n===Va}function Xa(e,t,r=!0){0===Za(e)?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Za(e){const t=e[$a];return t?t.type_:Array.isArray(e)?1:eo(e)?2:to(e)?3:0}function Ja(e,t){return 2===Za(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Qa(e,t,r){const n=Za(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function eo(e){return e instanceof Map}function to(e){return e instanceof Set}function ro(e){return e.copy_||e.base_}function no(e,t){if(eo(e))return new Map(e);if(to(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=Ga(e);if(!0===t||"class_only"===t&&!r){const t=Object.getOwnPropertyDescriptors(e);delete t[$a];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){const i=r[n],a=t[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Wa(e),t)}{const t=Wa(e);if(null!==t&&r)return{...e};const n=Object.create(t);return Object.assign(n,e)}}function io(e,t=!1){return oo(e)||Ha(e)||!Ka(e)||(Za(e)>1&&Object.defineProperties(e,{set:ao,add:ao,clear:ao,delete:ao}),Object.freeze(e),t&&Object.values(e).forEach(e=>io(e,!0))),e}var ao={value:function(){qa(2)}};function oo(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var lo,co={};function so(e){const t=co[e];return t||qa(0),t}function uo(){return lo}function fo(e,t){t&&(so("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function po(e){ho(e),e.drafts_.forEach(yo),e.drafts_=null}function ho(e){e===lo&&(lo=e.parent_)}function mo(e){return lo={drafts_:[],parent_:lo,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function yo(e){const t=e[$a];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function vo(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[$a].modified_&&(po(t),qa(4)),Ka(e)&&(e=go(t,e),t.parent_||wo(t,e)),t.patches_&&so("Patches").generateReplacementPatches_(r[$a].base_,e,t.patches_,t.inversePatches_)):e=go(t,r,[]),po(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ba?e:void 0}function go(e,t,r){if(oo(t))return t;const n=e.immer_.shouldUseStrictIteration(),i=t[$a];if(!i)return Xa(t,(n,a)=>bo(e,i,t,n,a,r),n),t;if(i.scope_!==e)return t;if(!i.modified_)return wo(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;const t=i.copy_;let a=t,o=!1;3===i.type_&&(a=new Set(t),t.clear(),o=!0),Xa(a,(n,a)=>bo(e,i,t,n,a,r,o),n),wo(e,t,!1),r&&e.patches_&&so("Patches").generatePatches_(i,r,e.patches_,e.inversePatches_)}return i.copy_}function bo(e,t,r,n,i,a,o){if(null==i)return;if("object"!=typeof i&&!o)return;const l=oo(i);if(!l||o){if(Ha(i)){const o=go(e,i,a&&t&&3!==t.type_&&!Ja(t.assigned_,n)?a.concat(n):void 0);if(Qa(r,n,o),!Ha(o))return;e.canAutoFreeze_=!1}else o&&r.add(i);if(Ka(i)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;if(t&&t.base_&&t.base_[n]===i&&l)return;go(e,i),t&&t.scope_.parent_||"symbol"==typeof n||!(eo(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))||wo(e,i)}}}function wo(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&io(t,r)}var xo={get(e,t){if(t===$a)return e;const r=ro(e);if(!Ja(r,t))return function(e,t,r){const n=So(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);const n=r[t];return e.finalized_||!Ka(n)?n:n===Eo(e.base_,t)?(jo(e),e.copy_[t]=Ao(n,e)):n},has:(e,t)=>t in ro(e),ownKeys:e=>Reflect.ownKeys(ro(e)),set(e,t,r){const n=So(ro(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=Eo(ro(e),t),o=n?.[$a];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(((i=r)===(a=n)?0!==i||1/i==1/a:i!=i&&a!=a)&&(void 0!==r||Ja(e.base_,t)))return!0;jo(e),Po(e)}var i,a;return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==Eo(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,jo(e),Po(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=ro(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){qa(11)},getPrototypeOf:e=>Wa(e.base_),setPrototypeOf(){qa(12)}},Oo={};function Eo(e,t){const r=e[$a];return(r?ro(r):e)[t]}function So(e,t){if(!(t in e))return;let r=Wa(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Wa(r)}}function Po(e){e.modified_||(e.modified_=!0,e.parent_&&Po(e.parent_))}function jo(e){e.copy_||(e.copy_=no(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Ao(e,t){const r=eo(e)?so("MapSet").proxyMap_(e,t):to(e)?so("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:uo(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=xo;r&&(i=[n],a=Oo);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return n.draft_=l,n.revoke_=o,l}(e,t);return(t?t.scope_:uo()).drafts_.push(r),r}function ko(e){return Ha(e)||qa(10),To(e)}function To(e){if(!Ka(e)||oo(e))return e;const t=e[$a];let r,n=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=no(e,t.scope_.immer_.useStrictShallowCopy_),n=t.scope_.immer_.shouldUseStrictIteration()}else r=no(e,!0);return Xa(r,(e,t)=>{Qa(r,e,To(t))},n),t&&(t.finalized_=!1),r}Xa(xo,(e,t)=>{Oo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Oo.deleteProperty=function(e,t){return Oo.set.call(this,e,t,void 0)},Oo.set=function(e,t,r){return xo.set.call(this,e[0],t,r,e[0])};var Co=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){const r=t;t=e;const n=this;return function(e=r,...i){return n.produce(e,e=>t.call(this,e,...i))}}let n;if("function"!=typeof t&&qa(6),void 0!==r&&"function"!=typeof r&&qa(7),Ka(e)){const i=mo(this),a=Ao(e,void 0);let o=!0;try{n=t(a),o=!1}finally{o?po(i):ho(i)}return fo(i,r),vo(n,i)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===Ba&&(n=void 0),this.autoFreeze_&&io(n,!0),r){const t=[],i=[];so("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}qa(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,t=>e(t,...r));let r,n;return[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ka(e)||qa(8),Ha(e)&&(e=ko(e));const t=mo(this),r=Ao(e,void 0);return r[$a].isManual_=!0,ho(t),r}finishDraft(e,t){const r=e&&e[$a];r&&r.isManual_||qa(9);const{scope_:n}=r;return fo(n,t),vo(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=so("Patches").applyPatches_;return Ha(e)?n(e,t):this.produce(e,e=>n(e,t))}},Mo=Co.produce;function _o(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Do=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Ro=()=>Math.random().toString(36).substring(7).split("").join("."),Io={INIT:`@@redux/INIT${Ro()}`,REPLACE:`@@redux/REPLACE${Ro()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Ro()}`};function No(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}function Lo(e,t,r){if("function"!=typeof e)throw new Error(_o(2));if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(_o(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(_o(1));return r(Lo)(e,t)}let n=e,i=t,a=new Map,o=a,l=0,c=!1;function s(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw new Error(_o(3));return i}function f(e){if("function"!=typeof e)throw new Error(_o(4));if(c)throw new Error(_o(5));let t=!0;s();const r=l++;return o.set(r,e),function(){if(t){if(c)throw new Error(_o(6));t=!1,s(),o.delete(r),a=null}}}function d(e){if(!No(e))throw new Error(_o(7));if(void 0===e.type)throw new Error(_o(8));if("string"!=typeof e.type)throw new Error(_o(17));if(c)throw new Error(_o(9));try{c=!0,i=n(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}return d({type:Io.INIT}),{dispatch:d,subscribe:f,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(_o(10));n=e,d({type:Io.REPLACE})},[Do]:function(){const e=f;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(_o(11));function r(){const e=t;e.next&&e.next(u())}return r(),{unsubscribe:e(r)}},[Do](){return this}}}}}function Fo(e){const t=Object.keys(e),r={};for(let n=0;n<t.length;n++){const i=t[n];"function"==typeof e[i]&&(r[i]=e[i])}const n=Object.keys(r);let i;try{!function(e){Object.keys(e).forEach(t=>{const r=e[t];if(void 0===r(void 0,{type:Io.INIT}))throw new Error(_o(12));if(void 0===r(void 0,{type:Io.PROBE_UNKNOWN_ACTION()}))throw new Error(_o(13))})}(r)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1;const o={};for(let i=0;i<n.length;i++){const l=n[i],c=r[l],s=e[l],u=c(s,t);if(void 0===u)throw t&&t.type,new Error(_o(14));o[l]=u,a=a||u!==s}return a=a||n.length!==Object.keys(e).length,a?o:e}}function zo(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce((e,t)=>(...r)=>e(t(...r)))}function Bo(e){return No(e)&&"type"in e&&"string"==typeof e.type}function Uo(e){return({dispatch:t,getState:r})=>n=>i=>"function"==typeof i?i(t,r,e):n(i)}var $o=Uo(),qo=Uo,Wo="undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(0!==arguments.length)return"object"==typeof arguments[0]?zo:zo.apply(null,arguments)};function Ho(e,t){function r(...r){if(t){let n=t(...r);if(!n)throw new Error(Ll(0));return{type:e,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:e,payload:r[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=t=>Bo(t)&&t.type===e,r}"undefined"!=typeof window&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Ko=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return 1===t.length&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Vo(e){return Ka(e)?Mo(e,()=>{}):e}function Yo(e,t,r){return e.has(t)?e.get(t):e.set(t,r(t)).get(t)}var Go="RTK_autoBatch",Xo=()=>e=>({payload:e,meta:{[Go]:!0}}),Zo=e=>t=>{setTimeout(t,e)},Jo=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const l=new Set,c="tick"===e.type?queueMicrotask:"raf"===e.type?"undefined"!=typeof window&&window.requestAnimationFrame?window.requestAnimationFrame:Zo(10):"callback"===e.type?e.queueNotification:Zo(e.timeout),s=()=>{o=!1,a&&(a=!1,l.forEach(e=>e()))};return Object.assign({},n,{subscribe(e){const t=n.subscribe(()=>i&&e());return l.add(e),()=>{t(),l.delete(e)}},dispatch(e){try{return i=!e?.meta?.[Go],a=!i,a&&(o||(o=!0,c(s))),n.dispatch(e)}finally{i=!0}}})};function Qo(e){const t={},r=[];let n;const i={addCase(e,r){const n="string"==typeof e?e:e.type;if(!n)throw new Error(Ll(28));if(n in t)throw new Error(Ll(29));return t[n]=r,i},addAsyncThunk:(e,n)=>(n.pending&&(t[e.pending.type]=n.pending),n.rejected&&(t[e.rejected.type]=n.rejected),n.fulfilled&&(t[e.fulfilled.type]=n.fulfilled),n.settled&&r.push({matcher:e.settled,reducer:n.settled}),i),addMatcher:(e,t)=>(r.push({matcher:e,reducer:t}),i),addDefaultCase:e=>(n=e,i)};return e(i),[t,r,n]}var el=(e=21)=>{let t="",r=e;for(;r--;)t+="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW"[64*Math.random()|0];return t},tl=Symbol.for("rtk-slice-createasyncthunk");function rl(e,t){return`${e}/${t}`}function nl({creators:e}={}){const t=e?.asyncThunk?.[tl];return function(e){const{name:r,reducerPath:n=r}=e;if(!r)throw new Error(Ll(11));const i=("function"==typeof e.reducers?e.reducers(function(){function e(e,t){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer:e=>Object.assign({[e.name]:(...t)=>e(...t)}[e.name],{_reducerDefinitionType:"reducer"}),preparedReducer:(e,t)=>({_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:t}),asyncThunk:e}}()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},l={addCase(e,t){const r="string"==typeof e?e:e.type;if(!r)throw new Error(Ll(12));if(r in o.sliceCaseReducersByType)throw new Error(Ll(13));return o.sliceCaseReducersByType[r]=t,l},addMatcher:(e,t)=>(o.sliceMatchers.push({matcher:e,reducer:t}),l),exposeAction:(e,t)=>(o.actionCreators[e]=t,l),exposeCaseReducer:(e,t)=>(o.sliceCaseReducersByName[e]=t,l)};function c(){const[t={},r=[],n]="function"==typeof e.extraReducers?Qo(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return function(e){let t,[a,l,c]=Qo(e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of r)e.addMatcher(t.matcher,t.reducer);n&&e.addDefaultCase(n)});if("function"==typeof e)t=()=>Vo(e());else{const r=Vo(e);t=()=>r}function s(e=t(),r){let n=[a[r.type],...l.filter(({matcher:e})=>e(r)).map(({reducer:e})=>e)];return 0===n.filter(e=>!!e).length&&(n=[c]),n.reduce((e,t)=>{if(t){if(Ha(e)){const n=t(e,r);return void 0===n?e:n}if(Ka(e))return Mo(e,e=>t(e,r));{const n=t(e,r);if(void 0===n){if(null===e)return e;throw Error("A case reducer on a non-draftable value must not return undefined")}return n}}return e},e)}return s.getInitialState=t,s}(e.initialState)}a.forEach(n=>{const a=i[n],o={reducerName:n,type:rl(r,n),createNotation:"function"==typeof e.reducers};!function(e){return"asyncThunk"===e._reducerDefinitionType}(a)?function({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!function(e){return"reducerWithPrepare"===e._reducerDefinitionType}(n))throw new Error(Ll(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Ho(e,o):Ho(e))}(o,a,l):function({type:e,reducerName:t},r,n,i){if(!i)throw new Error(Ll(18));const{payloadCreator:a,fulfilled:o,pending:l,rejected:c,settled:s,options:u}=r,f=i(e,a,u);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),l&&n.addCase(f.pending,l),c&&n.addCase(f.rejected,c),s&&n.addMatcher(f.settled,s),n.exposeCaseReducer(t,{fulfilled:o||ol,pending:l||ol,rejected:c||ol,settled:s||ol})}(o,a,l,t)});const s=e=>e,u=new Map,f=new WeakMap;let d;function p(e,t){return d||(d=c()),d(e,t)}function h(){return d||(d=c()),d.getInitialState()}function m(t,r=!1){function n(e){let i=e[t];return void 0===i&&r&&(i=Yo(f,n,h)),i}function i(t=s){const n=Yo(u,r,()=>new WeakMap);return Yo(n,t,()=>{const n={};for(const[i,a]of Object.entries(e.selectors??{}))n[i]=il(a,t,()=>Yo(f,t,h),r);return n})}return{reducerPath:t,getSelectors:i,get selectors(){return i(n)},selectSlice:n}}const y={name:r,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:h,...m(n),injectInto(e,{reducerPath:t,...r}={}){const i=t??n;return e.inject({reducerPath:i,reducer:p},r),{...y,...m(i,!0)}}};return y}}function il(e,t,r,n){function i(i,...a){let o=t(i);return void 0===o&&n&&(o=r()),e(o,...a)}return i.unwrapped=e,i}var al=nl();function ol(){}var ll="listener",cl="completed",sl="cancelled",ul=`task-${sl}`,fl=`task-${cl}`,dl=`${ll}-${sl}`,pl=`${ll}-${cl}`,hl=class{constructor(e){this.code=e,this.message=`task ${sl} (reason: ${e})`}name="TaskAbortError";message},ml=(e,t)=>{if("function"!=typeof e)throw new TypeError(Ll(32))},yl=()=>{},vl=(e,t=yl)=>(e.catch(t),e),gl=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),bl=e=>{if(e.aborted)throw new hl(e.reason)};function wl(e,t){let r=yl;return new Promise((n,i)=>{const a=()=>i(new hl(e.reason));e.aborted?a():(r=gl(e,a),t.finally(()=>r()).then(n,i))}).finally(()=>{r=yl})}var xl=e=>t=>vl(wl(e,t).then(t=>(bl(e),t))),Ol=e=>{const t=xl(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:El}=Object,Sl={},Pl="listenerMiddleware",jl=(e,t)=>(r,n)=>{ml(r);const i=new AbortController;var a;a=i,gl(e,()=>a.abort(e.reason));const o=(async()=>{try{return await Promise.resolve(),{status:"ok",value:await(async()=>{bl(e),bl(i.signal);const t=await r({pause:xl(i.signal),delay:Ol(i.signal),signal:i.signal});return bl(i.signal),t})()}}catch(e){return{status:e instanceof hl?"cancelled":"rejected",error:e}}finally{i.abort(fl)}})();return n?.autoJoin&&t.push(o.catch(yl)),{result:xl(e)(o),cancel(){i.abort(ul)}}},Al=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Ho(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(Ll(21));return ml(a),{predicate:i,type:t,effect:a}},kl=El(e=>{const{type:t,predicate:r,effect:n}=Al(e);return{id:el(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(Ll(22))}}},{withTypes:()=>kl}),Tl=(e,t)=>{const{type:r,effect:n,predicate:i}=Al(t);return Array.from(e.values()).find(e=>("string"==typeof r?e.type===r:e.predicate===i)&&e.effect===n)},Cl=e=>{e.pending.forEach(e=>{e.abort(dl)})},Ml=(e,t,r)=>{try{e(t,r)}catch(e){setTimeout(()=>{throw e},0)}},_l=El(Ho(`${Pl}/add`),{withTypes:()=>_l}),Dl=Ho(`${Pl}/removeAll`),Rl=El(Ho(`${Pl}/remove`),{withTypes:()=>Rl}),Il=(...e)=>{console.error(`${Pl}/error`,...e)},Nl=(e={})=>{const t=new Map,r=new Map,{extra:n,onError:i=Il}=e;ml(i);const a=e=>{return(r=Tl(t,e)??kl(e)).unsubscribe=()=>t.delete(r.id),t.set(r.id,r),e=>{r.unsubscribe(),e?.cancelActive&&Cl(r)};var r};El(a,{withTypes:()=>a});const o=e=>{const r=Tl(t,e);return r&&(r.unsubscribe(),e.cancelActive&&Cl(r)),!!r};El(o,{withTypes:()=>o});const l=async(e,o,l,c)=>{const s=new AbortController,u=((e,t)=>(r,n)=>vl((async(r,n)=>{bl(t);let i=()=>{};const a=[new Promise((t,n)=>{let a=e({predicate:r,effect:(e,r)=>{r.unsubscribe(),t([e,r.getState(),r.getOriginalState()])}});i=()=>{a(),n()}})];null!=n&&a.push(new Promise(e=>setTimeout(e,n,null)));try{const e=await wl(t,Promise.race(a));return bl(t),e}finally{i()}})(r,n)))(a,s.signal),f=[];try{e.pending.add(s),(e=>{const t=r.get(e)??0;r.set(e,t+1)})(e),await Promise.resolve(e.effect(o,El({},l,{getOriginalState:c,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:Ol(s.signal),pause:xl(s.signal),extra:n,signal:s.signal,fork:jl(s.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,r)=>{e!==s&&(e.abort(dl),r.delete(e))})},cancel:()=>{s.abort(dl),e.pending.delete(s)},throwIfCancelled:()=>{bl(s.signal)}})))}catch(e){e instanceof hl||Ml(i,e,{raisedBy:"effect"})}finally{await Promise.all(f),s.abort(pl),(e=>{const t=r.get(e)??1;1===t?r.delete(e):r.set(e,t-1)})(e),e.pending.delete(s)}},c=((e,t)=>()=>{for(const e of t.keys())Cl(e);e.clear()})(t,r);return{middleware:e=>r=>n=>{if(!Bo(n))return r(n);if(_l.match(n))return a(n.payload);if(Dl.match(n))return void c();if(Rl.match(n))return o(n.payload);let s=e.getState();const u=()=>{if(s===Sl)throw new Error(Ll(23));return s};let f;try{if(f=r(n),t.size>0){const r=e.getState(),a=Array.from(t.values());for(const t of a){let a=!1;try{a=t.predicate(n,r,s)}catch(e){a=!1,Ml(i,e,{raisedBy:"predicate"})}a&&l(t,n,e,u)}}}finally{s=Sl}return f},startListening:a,stopListening:o,clearListeners:c}};function Ll(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function Fl(e,t){if(t){var r=Number.parseInt(t,10);if(!ca(r))return null==e?void 0:e[r]}}Symbol.for("rtk-state-proxy-original");var zl=al({name:"options",initialState:{chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},reducers:{createEventEmitter:e=>{null==e.eventEmitter&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Bl=zl.reducer,{createEventEmitter:Ul}=zl.actions;n(5919);var $l={notify(){},get:()=>[]};var ql=(()=>!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement))(),Wl=(()=>"undefined"!=typeof navigator&&"ReactNative"===navigator.product)(),Hl=(()=>ql||Wl?r.useLayoutEffect:r.useEffect)();function Kl(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Vl(e,t){if(Kl(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!Kl(e[r[n]],t[r[n]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var Yl=Symbol.for("react-redux-context"),Gl="undefined"!=typeof globalThis?globalThis:{};function Xl(){if(!r.createContext)return{};const e=Gl[Yl]??=new Map;let t=e.get(r.createContext);return t||(t=r.createContext(null),e.set(r.createContext,t)),t}var Zl=Xl(),Jl=function(e){const{children:t,context:n,serverState:i,store:a}=e,o=r.useMemo(()=>{const e=function(e,t){let r,n=$l,i=0,a=!1;function o(){s.onStateChange&&s.onStateChange()}function l(){i++,r||(r=t?t.addNestedSub(o):e.subscribe(o),n=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){var t;t=()=>{let t=e;for(;t;)t.callback(),t=t.next},t()},get(){const t=[];let r=e;for(;r;)t.push(r),r=r.next;return t},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){n&&null!==e&&(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function c(){i--,r&&0===i&&(r(),r=void 0,n.clear(),n=$l)}const s={addNestedSub:function(e){l();const t=n.subscribe(e);let r=!1;return()=>{r||(r=!0,t(),c())}},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return a},trySubscribe:function(){a||(a=!0,l())},tryUnsubscribe:function(){a&&(a=!1,c())},getListeners:()=>n};return s}(a);return{store:a,subscription:e,getServerState:i?()=>i:void 0}},[a,i]),l=r.useMemo(()=>a.getState(),[a]);Hl(()=>{const{subscription:e}=o;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==a.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[o,l]);const c=n||Zl;return r.createElement(c.Provider,{value:o},t)},Ql={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},ec=al({name:"tooltip",initialState:{itemInteraction:{click:Ql,hover:Ql},axisInteraction:{click:Ql,hover:Ql},keyboardInteraction:Ql,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:Xo()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ko(e).tooltipItemPayloads.indexOf(r);i>-1&&(e.tooltipItemPayloads[i]=n)},prepare:Xo()},removeTooltipEntrySettings:{reducer(e,t){var r=ko(e).tooltipItemPayloads.indexOf(t.payload);r>-1&&e.tooltipItemPayloads.splice(r,1)},prepare:Xo()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:tc,replaceTooltipEntrySettings:rc,removeTooltipEntrySettings:nc,setTooltipSettingsState:ic,setActiveMouseOverItemIndex:ac,mouseLeaveItem:oc,mouseLeaveChart:lc,setActiveClickItemIndex:cc,setMouseOverAxisIndex:sc,setMouseClickAxisIndex:uc,setSyncInteraction:fc,setKeyboardInteraction:dc}=ec.actions,pc=ec.reducer,hc=al({name:"chartData",initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=t.payload,null==t.payload)return e.dataStartIndex=0,void(e.dataEndIndex=0);t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:r,endIndex:n}=t.payload;null!=r&&(e.dataStartIndex=r),null!=n&&(e.dataEndIndex=n)}}}),{setChartData:mc,setDataStartEndIndexes:yc,setComputedData:vc}=hc.actions,gc=hc.reducer,bc=al({name:"chartLayout",initialState:{layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var r,n,i,a;e.margin.top=null!==(r=t.payload.top)&&void 0!==r?r:0,e.margin.right=null!==(n=t.payload.right)&&void 0!==n?n:0,e.margin.bottom=null!==(i=t.payload.bottom)&&void 0!==i?i:0,e.margin.left=null!==(a=t.payload.left)&&void 0!==a?a:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:wc,setLayout:xc,setChartSize:Oc,setScale:Ec}=bc.actions,Sc=bc.reducer;var Pc=e=>Array.isArray(e)?e:[e];Symbol(),Object.getPrototypeOf({});var jc="undefined"!=typeof WeakRef?WeakRef:class{constructor(e){this.value=e}deref(){return this.value}};function Ac(){return{s:0,v:void 0,o:null,p:null}}function kc(e,t={}){let r={s:0,v:void 0,o:null,p:null};const{resultEqualityCheck:n}=t;let i,a=0;function o(){let t=r;const{length:o}=arguments;for(let e=0,r=o;e<r;e++){const r=arguments[e];if("function"==typeof r||"object"==typeof r&&null!==r){let e=t.o;null===e&&(t.o=e=new WeakMap);const n=e.get(r);void 0===n?(t=Ac(),e.set(r,t)):t=n}else{let e=t.p;null===e&&(t.p=e=new Map);const n=e.get(r);void 0===n?(t=Ac(),e.set(r,t)):t=n}}const l=t;let c;if(1===t.s)c=t.v;else if(c=e.apply(null,arguments),a++,n){const e=i?.deref?.()??i;null!=e&&n(e,c)&&(c=e,0!==a&&a--),i="object"==typeof c&&null!==c||"function"==typeof c?new jc(c):c}return l.s=1,l.v=c,c}return o.clearCache=()=>{r={s:0,v:void 0,o:null,p:null},o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Tc(e,...t){const r="function"==typeof e?{memoize:e,memoizeOptions:t}:e,n=(...e)=>{let t,n=0,i=0,a={},o=e.pop();"object"==typeof o&&(a=o,o=e.pop()),function(e,t="expected a function, instead received "+typeof e){if("function"!=typeof e)throw new TypeError(t)}(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);const l={...r,...a},{memoize:c,memoizeOptions:s=[],argsMemoize:u=kc,argsMemoizeOptions:f=[],devModeChecks:d={}}=l,p=Pc(s),h=Pc(f),m=function(e){const t=Array.isArray(e[0])?e[0]:e;return function(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(e=>"function"==typeof e)){const r=e.map(e=>"function"==typeof e?`function ${e.name||"unnamed"}()`:typeof e).join(", ");throw new TypeError(`${t}[${r}]`)}}(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}(e),y=c(function(){return n++,o.apply(null,arguments)},...p),v=u(function(){i++;const e=function(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}(m,arguments);return t=y.apply(null,e),t},...h);return Object.assign(v,{resultFunc:o,memoizedResultFunc:y,dependencies:m,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>t,recomputations:()=>n,resetRecomputations:()=>{n=0},memoize:c,argsMemoize:u})};return Object.assign(n,{withTypes:()=>n}),n}var Cc=Tc(kc),Mc=Object.assign((e,t=Cc)=>{!function(e,t="expected an object, instead received "+typeof e){if("object"!=typeof e)throw new TypeError(t)}(e,"createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof e);const r=Object.keys(e),n=t(r.map(t=>e[t]),(...e)=>e.reduce((e,t,n)=>(e[r[n]]=t,e),{}));return n},{withTypes:()=>Mc}),_c=n(7121),Dc=(0,r.createContext)(null),Rc=e=>e,Ic=()=>{var e=(0,r.useContext)(Dc);return e?e.store.dispatch:Rc},Nc=()=>{},Lc=()=>Nc,Fc=(e,t)=>e===t;function zc(e){var t=(0,r.useContext)(Dc);return(0,_c.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:Lc,t?t.store.getState:Nc,t?t.store.getState:Nc,t?e:Nc,Fc)}var Bc=n(5631),Uc=n.n(Bc),$c=e=>e.legend.settings,qc=Cc([e=>e.legend.payload,$c],(e,t)=>{var{itemSorter:r}=t,n=e.flat(1);return r?Uc()(n,r):n});function Wc(e,t){if((i=e.length)>1)for(var r,n,i,a=1,o=e[t[0]],l=o.length;a<i;++a)for(n=o,o=e[t[a]],r=0;r<l;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Hc(e){return"object"==typeof e&&"length"in e?e:Array.from(e)}function Kc(e){return function(){return e}}function Vc(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Yc(e,t){return e[t]}function Gc(e){const t=[];return t.key=e,t}function Xc(e,t,r){return Array.isArray(e)&&e&&t+r!==0?e.slice(t,r+1):e}function Zc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Jc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zc(Object(r),!0).forEach(function(t){Qc(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zc(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Qc(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function es(e,t,r){return ga(e)||ga(t)?r:fa(t)?ia()(e,t,r):"function"==typeof t?t(e):r}Array.prototype.slice;var ts=(e,t)=>"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t,rs=(e,t,r,n)=>{if(n)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===r&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(r),o},ns=(e,t,r)=>{if(!e)return null;var{duplicateDomain:n,type:i,range:a,scale:o,realScaleType:l,isCategorical:c,categoricalDomain:s,tickCount:u,ticks:f,niceTicks:d,axisType:p}=e;if(!o)return null;var h="scaleBand"===l&&o.bandwidth?o.bandwidth()/2:2,m=(t||r)&&"category"===i&&o.bandwidth?o.bandwidth()/h:0;return m="angleAxis"===p&&a&&a.length>=2?2*la(a[0]-a[1])*m:m,t&&(f||d)?(f||d||[]).map((e,t)=>{var r=n?n.indexOf(e):e;return{coordinate:o(r)+m,value:e,offset:m,index:t}}).filter(e=>!ca(e.coordinate)):c&&s?s.map((e,t)=>({coordinate:o(e)+m,value:e,index:t,offset:m})):o.ticks&&!r&&null!=u?o.ticks(u).map((e,t)=>({coordinate:o(e)+m,value:e,offset:m,index:t})):o.domain().map((e,t)=>({coordinate:o(e)+m,value:n?n[e]:e,index:t,offset:m}))},is=1e-4,as={sign:e=>{var t,r=e.length;if(!(r<=0)){var n=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==n||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0,l=0;l<r;++l){var c=e[l],s=null==c?void 0:c[i];if(null!=s){var u=s[1],f=s[0],d=ca(u)?f:u;d>=0?(s[0]=a,s[1]=a+d,a=u):(s[0]=o,s[1]=o+d,o=u)}}}},expand:function(e,t){if((n=e.length)>0){for(var r,n,i,a=0,o=e[0].length;a<o;++a){for(i=r=0;r<n;++r)i+=e[r][a][1]||0;if(i)for(r=0;r<n;++r)e[r][a][1]/=i}Wc(e,t)}},none:Wc,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,i=e[t[0]],a=i.length;n<a;++n){for(var o=0,l=0;o<r;++o)l+=e[o][n][1]||0;i[n][1]+=i[n][0]=-l/2}Wc(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,i,a=0,o=1;o<n;++o){for(var l=0,c=0,s=0;l<i;++l){for(var u=e[t[l]],f=u[o][1]||0,d=(f-(u[o-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];d+=(h[o][1]||0)-(h[o-1][1]||0)}c+=f,s+=d*f}r[o-1][1]+=r[o-1][0]=a,c&&(a-=s/c)}r[o-1][1]+=r[o-1][0]=a,Wc(e,t)}},positive:e=>{var t,r=e.length;if(!(r<=0)){var n=null===(t=e[0])||void 0===t?void 0:t.length;if(!(null==n||n<=0))for(var i=0;i<n;++i)for(var a=0,o=0;o<r;++o){var l=e[o],c=null==l?void 0:l[i];if(null!=c){var s=ca(c[1])?c[0]:c[1];s>=0?(c[0]=a,c[1]=a+s,a=c[1]):(c[0]=0,c[1]=0)}}}}},os=(e,t,r)=>{var n,i=null!==(n=as[r])&&void 0!==n?n:Wc,a=function(){var e=Kc([]),t=Vc,r=Wc,n=Yc;function i(i){var a,o,l=Array.from(e.apply(this,arguments),Gc),c=l.length,s=-1;for(const e of i)for(a=0,++s;a<c;++a)(l[a][s]=[0,+n(e,l[a].key,s,i)]).data=e;for(a=0,o=Hc(t(l));a<c;++a)l[o[a]].index=a;return r(l,o),l}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:Kc(Array.from(t)),i):e},i.value=function(e){return arguments.length?(n="function"==typeof e?e:Kc(+e),i):n},i.order=function(e){return arguments.length?(t=null==e?Vc:"function"==typeof e?e:Kc(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(r=null==e?Wc:e,i):r},i}().keys(t).value((e,t)=>Number(es(e,t,0))).order(Vc).offset(i),o=a(e);return o.forEach((r,n)=>{r.forEach((r,i)=>{var a=es(e[i],t[n],0);Array.isArray(a)&&2===a.length&&ua(a[0])&&ua(a[1])&&(r[0]=a[0],r[1]=a[1])})}),o};function ls(e){var{axis:t,ticks:r,bandSize:n,entry:i,index:a,dataKey:o}=e;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!ga(i[t.dataKey])){var l=va(r,"value",i[t.dataKey]);if(l)return l.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var c=es(i,ga(o)?t.dataKey:o);return ga(c)?null:t.scale(c)}var cs=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ss=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,us=(e,t,r)=>{if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var i=Uc()(t,e=>e.coordinate),a=1/0,o=1,l=i.length;o<l;o++){var c=i[o],s=i[o-1];a=Math.min(((null==c?void 0:c.coordinate)||0)-((null==s?void 0:s.coordinate)||0),a)}return a===1/0?0:a}return r?void 0:0};function fs(e){var{tooltipEntrySettings:t,dataKey:r,payload:n,value:i,name:a}=e;return Jc(Jc({},t),{},{dataKey:r,payload:n,value:i,name:a})}function ds(e,t){return e?String(e):"string"==typeof t?t:void 0}var ps=e=>e.layout.width,hs=e=>e.layout.height,ms=e=>e.layout.scale,ys=e=>e.layout.margin,vs=Cc(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),gs=Cc(e=>e.cartesianAxis.yAxis,e=>Object.values(e));function bs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function ws(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?bs(Object(r),!0).forEach(function(t){xs(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bs(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xs(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Os=Cc([ps,hs,ys,e=>e.brush.height,function(e){return gs(e).reduce((e,t)=>"left"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return gs(e).reduce((e,t)=>"right"!==t.orientation||t.mirror||t.hide?e:e+("number"==typeof t.width?t.width:60),0)},function(e){return vs(e).reduce((e,t)=>"top"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},function(e){return vs(e).reduce((e,t)=>"bottom"!==t.orientation||t.mirror||t.hide?e:e+t.height,0)},$c,e=>e.legend.size],(e,t,r,n,i,a,o,l,c,s)=>{var u={left:(r.left||0)+i,right:(r.right||0)+a},f=ws(ws({},{top:(r.top||0)+o,bottom:(r.bottom||0)+l}),u),d=f.bottom;f.bottom+=n,f=((e,t,r)=>{if(t&&r){var{width:n,height:i}=r,{align:a,verticalAlign:o,layout:l}=t;if(("vertical"===l||"horizontal"===l&&"middle"===o)&&"center"!==a&&ua(e[a]))return Jc(Jc({},e),{},{[a]:e[a]+(n||0)});if(("horizontal"===l||"vertical"===l&&"center"===a)&&"middle"!==o&&ua(e[o]))return Jc(Jc({},e),{},{[o]:e[o]+(i||0)})}return e})(f,c,s);var p=e-f.left-f.right,h=t-f.top-f.bottom;return ws(ws({brushBottom:d},f),{},{width:Math.max(p,0),height:Math.max(h,0)})}),Es=Cc(Os,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Ss=Cc(ps,hs,(e,t)=>({x:0,y:0,width:e,height:t})),Ps=(0,r.createContext)(null),js=()=>null!=(0,r.useContext)(Ps),As=e=>e.brush,ks=Cc([As,Os,ys],(e,t,r)=>({height:e.height,x:ua(e.x)?e.x:t.left,y:ua(e.y)?e.y:t.top+t.height+t.brushBottom-((null==r?void 0:r.bottom)||0),width:ua(e.width)?e.width:t.width}));function Ts(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Cs=()=>{var e,t=js(),r=zc(Es),n=zc(ks),i=null===(e=zc(As))||void 0===e?void 0:e.padding;return t&&n&&i?{width:n.width-i.left-i.right,height:n.height-i.top-i.bottom,x:i.left,y:i.top}:r},Ms={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},_s=()=>{var e;return null!==(e=zc(Os))&&void 0!==e?e:Ms},Ds=()=>zc(ps),Rs=()=>zc(hs),Is=e=>e.layout.layoutType,Ns=()=>zc(Is),Ls=e=>{var t=Ic(),n=js(),{width:i,height:a}=e,o=La(),l=i,c=a;return o&&(l=o.width>0?o.width:i,c=o.height>0?o.height:a),(0,r.useEffect)(()=>{!n&&Ca(l)&&Ca(c)&&t(Oc({width:l,height:c}))},[t,n,l,c]),null},Fs=n(965),zs=n.n(Fs);function Bs(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Us(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this}class $s extends Map{constructor(e,t=Ws){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,r]of e)this.set(t,r)}get(e){return super.get(qs(this,e))}has(e){return super.has(qs(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}(this,e))}}function qs({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Ws(e){return null!==e&&"object"==typeof e?e.valueOf():e}Set;const Hs=Symbol("implicit");function Ks(){var e=new $s,t=[],r=[],n=Hs;function i(i){let a=e.get(i);if(void 0===a){if(n!==Hs)return n;e.set(i,a=t.push(i)-1)}return r[a%r.length]}return i.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new $s;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return i},i.range=function(e){return arguments.length?(r=Array.from(e),i):r.slice()},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return Ks(t,r).unknown(n)},Bs.apply(i,arguments),i}function Vs(){var e,t,r=Ks().unknown(void 0),n=r.domain,i=r.range,a=0,o=1,l=!1,c=0,s=0,u=.5;function f(){var r=n().length,f=o<a,d=f?o:a,p=f?a:o;e=(p-d)/Math.max(1,r-c+2*s),l&&(e=Math.floor(e)),d+=(p-d-e*(r-c))*u,t=e*(1-c),l&&(d=Math.round(d),t=Math.round(t));var h=function(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),a=new Array(i);++n<i;)a[n]=e+n*r;return a}(r).map(function(t){return d+e*t});return i(f?h.reverse():h)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),f()):n()},r.range=function(e){return arguments.length?([a,o]=e,a=+a,o=+o,f()):[a,o]},r.rangeRound=function(e){return[a,o]=e,a=+a,o=+o,l=!0,f()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(l=!!e,f()):l},r.padding=function(e){return arguments.length?(c=Math.min(1,s=+e),f()):c},r.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},r.paddingOuter=function(e){return arguments.length?(s=+e,f()):s},r.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},r.copy=function(){return Vs(n(),[a,o]).round(l).paddingInner(c).paddingOuter(s).align(u)},Bs.apply(f(),arguments)}function Ys(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Ys(t())},e}function Gs(){return Ys(Vs.apply(null,arguments).paddingInner(1))}const Xs=Math.sqrt(50),Zs=Math.sqrt(10),Js=Math.sqrt(2);function Qs(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=Xs?10:a>=Zs?5:a>=Js?2:1;let l,c,s;return i<0?(s=Math.pow(10,-i)/o,l=Math.round(e*s),c=Math.round(t*s),l/s<e&&++l,c/s>t&&--c,s=-s):(s=Math.pow(10,i)*o,l=Math.round(e/s),c=Math.round(t/s),l*s<e&&++l,c*s>t&&--c),c<l&&.5<=r&&r<2?Qs(e,t,2*r):[l,c,s]}function eu(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[i,a,o]=n?Qs(t,e,r):Qs(e,t,r);if(!(a>=i))return[];const l=a-i+1,c=new Array(l);if(n)if(o<0)for(let e=0;e<l;++e)c[e]=(a-e)/-o;else for(let e=0;e<l;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<l;++e)c[e]=(i+e)/-o;else for(let e=0;e<l;++e)c[e]=(i+e)*o;return c}function tu(e,t,r){return Qs(e=+e,t=+t,r=+r)[2]}function ru(e,t,r){r=+r;const n=(t=+t)<(e=+e),i=n?tu(t,e,r):tu(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function nu(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function iu(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function au(e){let t,r,n;function i(e,n,i=0,a=e.length){if(i<a){if(0!==t(n,n))return a;do{const t=i+a>>>1;r(e[t],n)<0?i=t+1:a=t}while(i<a)}return i}return 2!==e.length?(t=nu,r=(t,r)=>nu(e(t),r),n=(t,r)=>e(t)-r):(t=e===nu||e===iu?e:ou,r=e,n=e),{left:i,center:function(e,t,r=0,a=e.length){const o=i(e,t,r,a-1);return o>r&&n(e[o-1],t)>-n(e[o],t)?o-1:o},right:function(e,n,i=0,a=e.length){if(i<a){if(0!==t(n,n))return a;do{const t=i+a>>>1;r(e[t],n)<=0?i=t+1:a=t}while(i<a)}return i}}}function ou(){return 0}function lu(e){return null===e?NaN:+e}const cu=au(nu),su=cu.right,uu=(cu.left,au(lu).center,su);function fu(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function du(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function pu(){}var hu=.7,mu=1/hu,yu="\\s*([+-]?\\d+)\\s*",vu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gu="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bu=/^#([0-9a-f]{3,8})$/,wu=new RegExp(`^rgb\\(${yu},${yu},${yu}\\)$`),xu=new RegExp(`^rgb\\(${gu},${gu},${gu}\\)$`),Ou=new RegExp(`^rgba\\(${yu},${yu},${yu},${vu}\\)$`),Eu=new RegExp(`^rgba\\(${gu},${gu},${gu},${vu}\\)$`),Su=new RegExp(`^hsl\\(${vu},${gu},${gu}\\)$`),Pu=new RegExp(`^hsla\\(${vu},${gu},${gu},${vu}\\)$`),ju={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Au(){return this.rgb().formatHex()}function ku(){return this.rgb().formatRgb()}function Tu(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=bu.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?Cu(t):3===r?new Du(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?Mu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?Mu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=wu.exec(e))?new Du(t[1],t[2],t[3],1):(t=xu.exec(e))?new Du(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ou.exec(e))?Mu(t[1],t[2],t[3],t[4]):(t=Eu.exec(e))?Mu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Su.exec(e))?zu(t[1],t[2]/100,t[3]/100,1):(t=Pu.exec(e))?zu(t[1],t[2]/100,t[3]/100,t[4]):ju.hasOwnProperty(e)?Cu(ju[e]):"transparent"===e?new Du(NaN,NaN,NaN,0):null}function Cu(e){return new Du(e>>16&255,e>>8&255,255&e,1)}function Mu(e,t,r,n){return n<=0&&(e=t=r=NaN),new Du(e,t,r,n)}function _u(e,t,r,n){return 1===arguments.length?((i=e)instanceof pu||(i=Tu(i)),i?new Du((i=i.rgb()).r,i.g,i.b,i.opacity):new Du):new Du(e,t,r,null==n?1:n);var i}function Du(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function Ru(){return`#${Fu(this.r)}${Fu(this.g)}${Fu(this.b)}`}function Iu(){const e=Nu(this.opacity);return`${1===e?"rgb(":"rgba("}${Lu(this.r)}, ${Lu(this.g)}, ${Lu(this.b)}${1===e?")":`, ${e})`}`}function Nu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Lu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Fu(e){return((e=Lu(e))<16?"0":"")+e.toString(16)}function zu(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Uu(e,t,r,n)}function Bu(e){if(e instanceof Uu)return new Uu(e.h,e.s,e.l,e.opacity);if(e instanceof pu||(e=Tu(e)),!e)return new Uu;if(e instanceof Uu)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,l=a-i,c=(a+i)/2;return l?(o=t===a?(r-n)/l+6*(r<n):r===a?(n-t)/l+2:(t-r)/l+4,l/=c<.5?a+i:2-a-i,o*=60):l=c>0&&c<1?0:o,new Uu(o,l,c,e.opacity)}function Uu(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function $u(e){return(e=(e||0)%360)<0?e+360:e}function qu(e){return Math.max(0,Math.min(1,e||0))}function Wu(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function Hu(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}fu(pu,Tu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Au,formatHex:Au,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Bu(this).formatHsl()},formatRgb:ku,toString:ku}),fu(Du,_u,du(pu,{brighter(e){return e=null==e?mu:Math.pow(mu,e),new Du(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?hu:Math.pow(hu,e),new Du(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Du(Lu(this.r),Lu(this.g),Lu(this.b),Nu(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:Ru,formatHex:Ru,formatHex8:function(){return`#${Fu(this.r)}${Fu(this.g)}${Fu(this.b)}${Fu(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Iu,toString:Iu})),fu(Uu,function(e,t,r,n){return 1===arguments.length?Bu(e):new Uu(e,t,r,null==n?1:n)},du(pu,{brighter(e){return e=null==e?mu:Math.pow(mu,e),new Uu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?hu:Math.pow(hu,e),new Uu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Du(Wu(e>=240?e-240:e+120,i,n),Wu(e,i,n),Wu(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Uu($u(this.h),qu(this.s),qu(this.l),Nu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Nu(this.opacity);return`${1===e?"hsl(":"hsla("}${$u(this.h)}, ${100*qu(this.s)}%, ${100*qu(this.l)}%${1===e?")":`, ${e})`}`}}));const Ku=e=>()=>e;function Vu(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Ku(isNaN(e)?t:e)}const Yu=function e(t){var r=function(e){return 1===(e=+e)?Vu:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):Ku(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=_u(e)).r,(t=_u(t)).r),i=r(e.g,t.g),a=r(e.b,t.b),o=Vu(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return n.gamma=e,n}(1);function Gu(e){return function(t){var r,n,i=t.length,a=new Array(i),o=new Array(i),l=new Array(i);for(r=0;r<i;++r)n=_u(t[r]),a[r]=n.r||0,o[r]=n.g||0,l[r]=n.b||0;return a=e(a),o=e(o),l=e(l),n.opacity=1,function(e){return n.r=a(e),n.g=o(e),n.b=l(e),n+""}}}function Xu(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,a=new Array(i),o=new Array(n);for(r=0;r<i;++r)a[r]=af(e[r],t[r]);for(;r<n;++r)o[r]=t[r];return function(e){for(r=0;r<i;++r)o[r]=a[r](e);return o}}function Zu(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Ju(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Qu(e,t){var r,n={},i={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?n[r]=af(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}Gu(function(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,l=n<t-1?e[n+2]:2*a-i;return Hu((r-n/t)*t,o,i,a,l)}}),Gu(function(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],l=e[(n+2)%t];return Hu((r-n/t)*t,i,a,o,l)}});var ef=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,tf=new RegExp(ef.source,"g");function rf(e,t){var r,n,i,a=ef.lastIndex=tf.lastIndex=0,o=-1,l=[],c=[];for(e+="",t+="";(r=ef.exec(e))&&(n=tf.exec(t));)(i=n.index)>a&&(i=t.slice(a,i),l[o]?l[o]+=i:l[++o]=i),(r=r[0])===(n=n[0])?l[o]?l[o]+=n:l[++o]=n:(l[++o]=null,c.push({i:o,x:Ju(r,n)})),a=tf.lastIndex;return a<t.length&&(i=t.slice(a),l[o]?l[o]+=i:l[++o]=i),l.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var r,n=0;n<t;++n)l[(r=c[n]).i]=r.x(e);return l.join("")})}function nf(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(r=0;r<n;++r)i[r]=e[r]*(1-a)+t[r]*a;return i}}function af(e,t){var r,n,i=typeof t;return null==t||"boolean"===i?Ku(t):("number"===i?Ju:"string"===i?(r=Tu(t))?(t=r,Yu):rf:t instanceof Tu?Yu:t instanceof Date?Zu:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(t)?Xu:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Qu:Ju:nf))(e,t)}function of(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function lf(e){return+e}var cf=[0,1];function sf(e){return e}function uf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function ff(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=uf(i,n),a=r(o,a)):(n=uf(n,i),a=r(a,o)),function(e){return a(n(e))}}function df(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=uf(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(t){var r=uu(e,t,1,n)-1;return a[r](i[r](t))}}function pf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function hf(){var e,t,r,n,i,a,o=cf,l=cf,c=af,s=sf;function u(){var e=Math.min(o.length,l.length);return s!==sf&&(s=function(e,t){var r;return e>t&&(r=e,e=t,t=r),function(r){return Math.max(e,Math.min(t,r))}}(o[0],o[e-1])),n=e>2?df:ff,i=a=null,f}function f(t){return null==t||isNaN(t=+t)?r:(i||(i=n(o.map(e),l,c)))(e(s(t)))}return f.invert=function(r){return s(t((a||(a=n(l,o.map(e),Ju)))(r)))},f.domain=function(e){return arguments.length?(o=Array.from(e,lf),u()):o.slice()},f.range=function(e){return arguments.length?(l=Array.from(e),u()):l.slice()},f.rangeRound=function(e){return l=Array.from(e),c=of,u()},f.clamp=function(e){return arguments.length?(s=!!e||sf,u()):s!==sf},f.interpolate=function(e){return arguments.length?(c=e,u()):c},f.unknown=function(e){return arguments.length?(r=e,f):r},function(r,n){return e=r,t=n,u()}}function mf(){return hf()(sf,sf)}var yf,vf=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gf(e){if(!(t=vf.exec(e)))throw new Error("invalid format: "+e);var t;return new bf({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function bf(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function wf(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function xf(e){return(e=wf(Math.abs(e)))?e[1]:NaN}function Of(e,t){var r=wf(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}gf.prototype=bf.prototype,bf.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const Ef={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Of(100*e,t),r:Of,s:function(e,t){var r=wf(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(yf=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+wf(e,Math.max(0,t+a-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Sf(e){return e}var Pf,jf,Af,kf=Array.prototype.map,Tf=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Cf(e,t,r,n){var i,a=ru(e,t,r);switch((n=gf(null==n?",f":n)).type){case"s":var o=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(xf(t)/3)))-xf(Math.abs(e)))}(a,o))||(n.precision=i),Af(n,o);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,xf(t)-xf(e))+1}(a,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=function(e){return Math.max(0,-xf(Math.abs(e)))}(a))||(n.precision=i-2*("%"===n.type))}return jf(n)}function Mf(e){var t=e.domain;return e.ticks=function(e){var r=t();return eu(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return Cf(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,i,a=t(),o=0,l=a.length-1,c=a[o],s=a[l],u=10;for(s<c&&(i=c,c=s,s=i,i=o,o=l,l=i);u-- >0;){if((i=tu(c,s,r))===n)return a[o]=c,a[l]=s,t(a);if(i>0)c=Math.floor(c/i)*i,s=Math.ceil(s/i)*i;else{if(!(i<0))break;c=Math.ceil(c*i)/i,s=Math.floor(s*i)/i}n=i}return e},e}function _f(){var e=mf();return e.copy=function(){return pf(e,_f())},Bs.apply(e,arguments),Mf(e)}function Df(e){var t;function r(e){return null==e||isNaN(e=+e)?t:e}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,lf),r):e.slice()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.copy=function(){return Df(e).unknown(t)},e=arguments.length?Array.from(e,lf):[0,1],Mf(r)}function Rf(e,t){var r,n=0,i=(e=e.slice()).length-1,a=e[n],o=e[i];return o<a&&(r=n,n=i,i=r,r=a,a=o,o=r),e[n]=t.floor(a),e[i]=t.ceil(o),e}function If(e){return Math.log(e)}function Nf(e){return Math.exp(e)}function Lf(e){return-Math.log(-e)}function Ff(e){return-Math.exp(-e)}function zf(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Bf(e){return(t,r)=>-e(-t,r)}function Uf(e){const t=e(If,Nf),r=t.domain;let n,i,a=10;function o(){return n=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(a),i=function(e){return 10===e?zf:e===Math.E?Math.exp:t=>Math.pow(e,t)}(a),r()[0]<0?(n=Bf(n),i=Bf(i),e(Lf,Ff)):e(If,Nf),t}return t.base=function(e){return arguments.length?(a=+e,o()):a},t.domain=function(e){return arguments.length?(r(e),o()):r()},t.ticks=e=>{const t=r();let o=t[0],l=t[t.length-1];const c=l<o;c&&([o,l]=[l,o]);let s,u,f=n(o),d=n(l);const p=null==e?10:+e;let h=[];if(!(a%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),o>0){for(;f<=d;++f)for(s=1;s<a;++s)if(u=f<0?s/i(-f):s*i(f),!(u<o)){if(u>l)break;h.push(u)}}else for(;f<=d;++f)for(s=a-1;s>=1;--s)if(u=f>0?s/i(-f):s*i(f),!(u<o)){if(u>l)break;h.push(u)}2*h.length<p&&(h=eu(o,l,p))}else h=eu(f,d,Math.min(d-f,p)).map(i);return c?h.reverse():h},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===a?"s":","),"function"!=typeof r&&(a%1||null!=(r=gf(r)).precision||(r.trim=!0),r=jf(r)),e===1/0)return r;const o=Math.max(1,a*e/t.ticks().length);return e=>{let t=e/i(Math.round(n(e)));return t*a<a-.5&&(t*=a),t<=o?r(e):""}},t.nice=()=>r(Rf(r(),{floor:e=>i(Math.floor(n(e))),ceil:e=>i(Math.ceil(n(e)))})),t}function $f(){const e=Uf(hf()).domain([1,10]);return e.copy=()=>pf(e,$f()).base(e.base()),Bs.apply(e,arguments),e}function qf(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Wf(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Hf(e){var t=1,r=e(qf(t),Wf(t));return r.constant=function(r){return arguments.length?e(qf(t=+r),Wf(t)):t},Mf(r)}function Kf(){var e=Hf(hf());return e.copy=function(){return pf(e,Kf()).constant(e.constant())},Bs.apply(e,arguments)}function Vf(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Yf(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Gf(e){return e<0?-e*e:e*e}function Xf(e){var t=e(sf,sf),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(sf,sf):.5===r?e(Yf,Gf):e(Vf(r),Vf(1/r)):r},Mf(t)}function Zf(){var e=Xf(hf());return e.copy=function(){return pf(e,Zf()).exponent(e.exponent())},Bs.apply(e,arguments),e}function Jf(){return Zf.apply(null,arguments).exponent(.5)}function Qf(e){return Math.sign(e)*e*e}function ed(){var e,t=mf(),r=[0,1],n=!1;function i(r){var i=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(r));return isNaN(i)?e:n?Math.round(i):i}return i.invert=function(e){return t.invert(Qf(e))},i.domain=function(e){return arguments.length?(t.domain(e),i):t.domain()},i.range=function(e){return arguments.length?(t.range((r=Array.from(e,lf)).map(Qf)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(e){return arguments.length?(t.clamp(e),i):t.clamp()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return ed(t.domain(),r).round(n).clamp(t.clamp()).unknown(e)},Bs.apply(i,arguments),Mf(i)}function td(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function rd(e,t){let r;if(void 0===t)for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function nd(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function id(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=void 0===i?nd:function(e=nu){if(e===nu)return nd;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}(i);n>r;){if(n-r>600){const a=n-r+1,o=t-r+1,l=Math.log(a),c=.5*Math.exp(2*l/3),s=.5*Math.sqrt(l*c*(a-c)/a)*(o-a/2<0?-1:1);id(e,t,Math.max(r,Math.floor(t-o*c/a+s)),Math.min(n,Math.floor(t+(a-o)*c/a+s)),i)}const a=e[t];let o=r,l=n;for(ad(e,r,t),i(e[n],a)>0&&ad(e,r,n);o<l;){for(ad(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}0===i(e[r],a)?ad(e,r,l):(++l,ad(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function ad(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function od(e,t,r=lu){if((n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e);return o+(+r(e[a+1],a+1,e)-o)*(i-a)}}function ld(){var e,t=[],r=[],n=[];function i(){var e=0,i=Math.max(1,r.length);for(n=new Array(i-1);++e<i;)n[e-1]=od(t,e/i);return a}function a(t){return null==t||isNaN(t=+t)?e:r[uu(n,t)]}return a.invertExtent=function(e){var i=r.indexOf(e);return i<0?[NaN,NaN]:[i>0?n[i-1]:t[0],i<n.length?n[i]:t[t.length-1]]},a.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(nu),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(t){return arguments.length?(e=t,a):e},a.quantiles=function(){return n.slice()},a.copy=function(){return ld().domain(t).range(r).unknown(e)},Bs.apply(a,arguments)}function cd(){var e,t=0,r=1,n=1,i=[.5],a=[0,1];function o(t){return null!=t&&t<=t?a[uu(i,t,0,n)]:e}function l(){var e=-1;for(i=new Array(n);++e<n;)i[e]=((e+1)*r-(e-n)*t)/(n+1);return o}return o.domain=function(e){return arguments.length?([t,r]=e,t=+t,r=+r,l()):[t,r]},o.range=function(e){return arguments.length?(n=(a=Array.from(e)).length-1,l()):a.slice()},o.invertExtent=function(e){var o=a.indexOf(e);return o<0?[NaN,NaN]:o<1?[t,i[0]]:o>=n?[i[n-1],r]:[i[o-1],i[o]]},o.unknown=function(t){return arguments.length?(e=t,o):o},o.thresholds=function(){return i.slice()},o.copy=function(){return cd().domain([t,r]).range(a).unknown(e)},Bs.apply(Mf(o),arguments)}function sd(){var e,t=[.5],r=[0,1],n=1;function i(i){return null!=i&&i<=i?r[uu(t,i,0,n)]:e}return i.domain=function(e){return arguments.length?(t=Array.from(e),n=Math.min(t.length,r.length-1),i):t.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),n=Math.min(t.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var n=r.indexOf(e);return[t[n-1],t[n]]},i.unknown=function(t){return arguments.length?(e=t,i):e},i.copy=function(){return sd().domain(t).range(r).unknown(e)},Bs.apply(i,arguments)}Pf=function(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?Sf:(t=kf.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var i=e.length,a=[],o=0,l=t[0],c=0;i>0&&l>0&&(c+l+1>n&&(l=Math.max(1,n-c)),a.push(e.substring(i-=l,i+l)),!((c+=l+1)>n));)l=t[o=(o+1)%t.length];return a.reverse().join(r)}),i=void 0===e.currency?"":e.currency[0]+"",a=void 0===e.currency?"":e.currency[1]+"",o=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?Sf:function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(kf.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",s=void 0===e.minus?"":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=gf(e)).fill,r=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,m=e.comma,y=e.precision,v=e.trim,g=e.type;"n"===g?(m=!0,g="g"):Ef[g]||(void 0===y&&(y=12),v=!0,g="g"),(p||"0"===t&&"="===r)&&(p=!0,t="0",r="=");var b="$"===d?i:"#"===d&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",w="$"===d?a:/[%p]/.test(g)?c:"",x=Ef[g],O=/[defgprs%]/.test(g);function E(e){var i,a,c,d=b,E=w;if("c"===g)E=x(e)+E,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:x(Math.abs(e),y),v&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(!+e[n])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0===+e&&"+"!==f&&(S=!1),d=(S?"("===f?f:s:"-"===f||"("===f?"":f)+d,E=("s"===g?Tf[8+yf/3]:"")+E+(S&&"("===f?")":""),O)for(i=-1,a=e.length;++i<a;)if(48>(c=e.charCodeAt(i))||c>57){E=(46===c?o+e.slice(i+1):e.slice(i))+E,e=e.slice(0,i);break}}m&&!p&&(e=n(e,1/0));var P=d.length+e.length+E.length,j=P<h?new Array(h-P+1).join(t):"";switch(m&&p&&(e=n(j+e,j.length?h-E.length:1/0),j=""),r){case"<":e=d+e+E+j;break;case"=":e=d+j+e+E;break;case"^":e=j.slice(0,P=j.length>>1)+d+e+E+j.slice(P);break;default:e=j+d+e+E}return l(e)}return y=void 0===y?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),E.toString=function(){return e+""},E}return{format:f,formatPrefix:function(e,t){var r=f(((e=gf(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(xf(t)/3))),i=Math.pow(10,-n),a=Tf[8+n/3];return function(e){return r(i*e)+a}}}}({thousands:",",grouping:[3],currency:["$",""]}),jf=Pf.format,Af=Pf.formatPrefix;const ud=1e3,fd=6e4,dd=36e5,pd=864e5,hd=6048e5,md=31536e6,yd=new Date,vd=new Date;function gd(e,t,r,n){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),i.round=e=>{const t=i(e),r=i.ceil(e);return e-t<r-e?t:r},i.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),i.range=(r,n,a)=>{const o=[];if(r=i.ceil(r),a=null==a?1:Math.floor(a),!(r<n&&a>0))return o;let l;do{o.push(l=new Date(+r)),t(r,a),e(r)}while(l<r&&r<n);return o},i.filter=r=>gd(t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)},(e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););}),r&&(i.count=(t,n)=>(yd.setTime(+t),vd.setTime(+n),e(yd),e(vd),Math.floor(r(yd,vd))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(n?t=>n(t)%e===0:t=>i.count(0,t)%e===0):i:null)),i}const bd=gd(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bd.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?gd(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):bd:null),bd.range;const wd=gd(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ud)},(e,t)=>(t-e)/ud,e=>e.getUTCSeconds()),xd=(wd.range,gd(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ud)},(e,t)=>{e.setTime(+e+t*fd)},(e,t)=>(t-e)/fd,e=>e.getMinutes())),Od=(xd.range,gd(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*fd)},(e,t)=>(t-e)/fd,e=>e.getUTCMinutes())),Ed=(Od.range,gd(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ud-e.getMinutes()*fd)},(e,t)=>{e.setTime(+e+t*dd)},(e,t)=>(t-e)/dd,e=>e.getHours())),Sd=(Ed.range,gd(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*dd)},(e,t)=>(t-e)/dd,e=>e.getUTCHours())),Pd=(Sd.range,gd(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fd)/pd,e=>e.getDate()-1)),jd=(Pd.range,gd(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/pd,e=>e.getUTCDate()-1)),Ad=(jd.range,gd(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/pd,e=>Math.floor(e/pd)));function kd(e){return gd(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+7*t)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fd)/hd)}Ad.range;const Td=kd(0),Cd=kd(1),Md=kd(2),_d=kd(3),Dd=kd(4),Rd=kd(5),Id=kd(6);function Nd(e){return gd(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)},(e,t)=>(t-e)/hd)}Td.range,Cd.range,Md.range,_d.range,Dd.range,Rd.range,Id.range;const Ld=Nd(0),Fd=Nd(1),zd=Nd(2),Bd=Nd(3),Ud=Nd(4),$d=Nd(5),qd=Nd(6),Wd=(Ld.range,Fd.range,zd.range,Bd.range,Ud.range,$d.range,qd.range,gd(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear()),e=>e.getMonth())),Hd=(Wd.range,gd(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear()),e=>e.getUTCMonth())),Kd=(Hd.range,gd(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()));Kd.every=e=>isFinite(e=Math.floor(e))&&e>0?gd(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)}):null,Kd.range;const Vd=gd(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());function Yd(e,t,r,n,i,a){const o=[[wd,1,ud],[wd,5,5e3],[wd,15,15e3],[wd,30,3e4],[a,1,fd],[a,5,3e5],[a,15,9e5],[a,30,18e5],[i,1,dd],[i,3,108e5],[i,6,216e5],[i,12,432e5],[n,1,pd],[n,2,1728e5],[r,1,hd],[t,1,2592e6],[t,3,7776e6],[e,1,md]];function l(t,r,n){const i=Math.abs(r-t)/n,a=au(([,,e])=>e).right(o,i);if(a===o.length)return e.every(ru(t/md,r/md,n));if(0===a)return bd.every(Math.max(ru(t,r,n),1));const[l,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return l.every(c)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const i=r&&"function"==typeof r.range?r:l(e,t,r),a=i?i.range(e,+t+1):[];return n?a.reverse():a},l]}Vd.every=e=>isFinite(e=Math.floor(e))&&e>0?gd(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)}):null,Vd.range;const[Gd,Xd]=Yd(Vd,Hd,Ld,Ad,Sd,Od),[Zd,Jd]=Yd(Kd,Wd,Td,Pd,Ed,xd);function Qd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ep(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function tp(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var rp,np,ip,ap={"-":"",_:" ",0:"0"},op=/^\s*\d+/,lp=/^%/,cp=/[\\^$*+?|[\]().{}]/g;function sp(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function up(e){return e.replace(cp,"\\$&")}function fp(e){return new RegExp("^(?:"+e.map(up).join("|")+")","i")}function dp(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function pp(e,t,r){var n=op.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function hp(e,t,r){var n=op.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function mp(e,t,r){var n=op.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function yp(e,t,r){var n=op.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function vp(e,t,r){var n=op.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function gp(e,t,r){var n=op.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function bp(e,t,r){var n=op.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function wp(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function xp(e,t,r){var n=op.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function Op(e,t,r){var n=op.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Ep(e,t,r){var n=op.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Sp(e,t,r){var n=op.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Pp(e,t,r){var n=op.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function jp(e,t,r){var n=op.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Ap(e,t,r){var n=op.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function kp(e,t,r){var n=op.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Tp(e,t,r){var n=op.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Cp(e,t,r){var n=lp.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function Mp(e,t,r){var n=op.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function _p(e,t,r){var n=op.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Dp(e,t){return sp(e.getDate(),t,2)}function Rp(e,t){return sp(e.getHours(),t,2)}function Ip(e,t){return sp(e.getHours()%12||12,t,2)}function Np(e,t){return sp(1+Pd.count(Kd(e),e),t,3)}function Lp(e,t){return sp(e.getMilliseconds(),t,3)}function Fp(e,t){return Lp(e,t)+"000"}function zp(e,t){return sp(e.getMonth()+1,t,2)}function Bp(e,t){return sp(e.getMinutes(),t,2)}function Up(e,t){return sp(e.getSeconds(),t,2)}function $p(e){var t=e.getDay();return 0===t?7:t}function qp(e,t){return sp(Td.count(Kd(e)-1,e),t,2)}function Wp(e){var t=e.getDay();return t>=4||0===t?Dd(e):Dd.ceil(e)}function Hp(e,t){return e=Wp(e),sp(Dd.count(Kd(e),e)+(4===Kd(e).getDay()),t,2)}function Kp(e){return e.getDay()}function Vp(e,t){return sp(Cd.count(Kd(e)-1,e),t,2)}function Yp(e,t){return sp(e.getFullYear()%100,t,2)}function Gp(e,t){return sp((e=Wp(e)).getFullYear()%100,t,2)}function Xp(e,t){return sp(e.getFullYear()%1e4,t,4)}function Zp(e,t){var r=e.getDay();return sp((e=r>=4||0===r?Dd(e):Dd.ceil(e)).getFullYear()%1e4,t,4)}function Jp(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+sp(t/60|0,"0",2)+sp(t%60,"0",2)}function Qp(e,t){return sp(e.getUTCDate(),t,2)}function eh(e,t){return sp(e.getUTCHours(),t,2)}function th(e,t){return sp(e.getUTCHours()%12||12,t,2)}function rh(e,t){return sp(1+jd.count(Vd(e),e),t,3)}function nh(e,t){return sp(e.getUTCMilliseconds(),t,3)}function ih(e,t){return nh(e,t)+"000"}function ah(e,t){return sp(e.getUTCMonth()+1,t,2)}function oh(e,t){return sp(e.getUTCMinutes(),t,2)}function lh(e,t){return sp(e.getUTCSeconds(),t,2)}function ch(e){var t=e.getUTCDay();return 0===t?7:t}function sh(e,t){return sp(Ld.count(Vd(e)-1,e),t,2)}function uh(e){var t=e.getUTCDay();return t>=4||0===t?Ud(e):Ud.ceil(e)}function fh(e,t){return e=uh(e),sp(Ud.count(Vd(e),e)+(4===Vd(e).getUTCDay()),t,2)}function dh(e){return e.getUTCDay()}function ph(e,t){return sp(Fd.count(Vd(e)-1,e),t,2)}function hh(e,t){return sp(e.getUTCFullYear()%100,t,2)}function mh(e,t){return sp((e=uh(e)).getUTCFullYear()%100,t,2)}function yh(e,t){return sp(e.getUTCFullYear()%1e4,t,4)}function vh(e,t){var r=e.getUTCDay();return sp((e=r>=4||0===r?Ud(e):Ud.ceil(e)).getUTCFullYear()%1e4,t,4)}function gh(){return"+0000"}function bh(){return"%"}function wh(e){return+e}function xh(e){return Math.floor(+e/1e3)}function Oh(e){return new Date(e)}function Eh(e){return e instanceof Date?+e:+new Date(+e)}function Sh(e,t,r,n,i,a,o,l,c,s){var u=mf(),f=u.invert,d=u.domain,p=s(".%L"),h=s(":%S"),m=s("%I:%M"),y=s("%I %p"),v=s("%a %d"),g=s("%b %d"),b=s("%B"),w=s("%Y");function x(e){return(c(e)<e?p:l(e)<e?h:o(e)<e?m:a(e)<e?y:n(e)<e?i(e)<e?v:g:r(e)<e?b:w)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?d(Array.from(e,Eh)):d().map(Oh)},u.ticks=function(t){var r=d();return e(r[0],r[r.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?x:s(t)},u.nice=function(e){var r=d();return e&&"function"==typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?d(Rf(r,e)):u},u.copy=function(){return pf(u,Sh(e,t,r,n,i,a,o,l,c,s))},u}function Ph(){return Bs.apply(Sh(Zd,Jd,Kd,Wd,Td,Pd,Ed,xd,wd,np).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function jh(){return Bs.apply(Sh(Gd,Xd,Vd,Hd,Ld,jd,Sd,Od,wd,ip).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ah(){var e,t,r,n,i,a=0,o=1,l=sf,c=!1;function s(t){return null==t||isNaN(t=+t)?i:l(0===r?.5:(t=(n(t)-e)*r,c?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var r,n;return arguments.length?([r,n]=t,l=e(r,n),s):[l(0),l(1)]}}return s.domain=function(i){return arguments.length?([a,o]=i,e=n(a=+a),t=n(o=+o),r=e===t?0:1/(t-e),s):[a,o]},s.clamp=function(e){return arguments.length?(c=!!e,s):c},s.interpolator=function(e){return arguments.length?(l=e,s):l},s.range=u(af),s.rangeRound=u(of),s.unknown=function(e){return arguments.length?(i=e,s):i},function(i){return n=i,e=i(a),t=i(o),r=e===t?0:1/(t-e),s}}function kh(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Th(){var e=Mf(Ah()(sf));return e.copy=function(){return kh(e,Th())},Us.apply(e,arguments)}function Ch(){var e=Uf(Ah()).domain([1,10]);return e.copy=function(){return kh(e,Ch()).base(e.base())},Us.apply(e,arguments)}function Mh(){var e=Hf(Ah());return e.copy=function(){return kh(e,Mh()).constant(e.constant())},Us.apply(e,arguments)}function _h(){var e=Xf(Ah());return e.copy=function(){return kh(e,_h()).exponent(e.exponent())},Us.apply(e,arguments)}function Dh(){return _h.apply(null,arguments).exponent(.5)}function Rh(){var e=[],t=sf;function r(r){if(null!=r&&!isNaN(r=+r))return t((uu(e,r,1)-1)/(e.length-1))}return r.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(nu),r},r.interpolator=function(e){return arguments.length?(t=e,r):t},r.range=function(){return e.map((r,n)=>t(n/(e.length-1)))},r.quantiles=function(t){return Array.from({length:t+1},(r,n)=>function(e,t,r){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}(e,r)),(n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return rd(e);if(t>=1)return td(e);var n,i=(n-1)*t,a=Math.floor(i),o=td(id(e,a).subarray(0,a+1));return o+(rd(e.subarray(a+1))-o)*(i-a)}}(e,n/t))},r.copy=function(){return Rh(t).domain(e)},Us.apply(r,arguments)}function Ih(){var e,t,r,n,i,a,o,l=0,c=.5,s=1,u=1,f=sf,d=!1;function p(e){return isNaN(e=+e)?o:(e=.5+((e=+a(e))-t)*(u*e<u*t?n:i),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var r,n,i;return arguments.length?([r,n,i]=t,f=function(e,t){void 0===t&&(t=e,e=af);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return a[t](e-t)}}(e,[r,n,i]),p):[f(0),f(.5),f(1)]}}return p.domain=function(o){return arguments.length?([l,c,s]=o,e=a(l=+l),t=a(c=+c),r=a(s=+s),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),u=t<e?-1:1,p):[l,c,s]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(af),p.rangeRound=h(of),p.unknown=function(e){return arguments.length?(o=e,p):o},function(o){return a=o,e=o(l),t=o(c),r=o(s),n=e===t?0:.5/(t-e),i=t===r?0:.5/(r-t),u=t<e?-1:1,p}}function Nh(){var e=Mf(Ih()(sf));return e.copy=function(){return kh(e,Nh())},Us.apply(e,arguments)}function Lh(){var e=Uf(Ih()).domain([.1,1,10]);return e.copy=function(){return kh(e,Lh()).base(e.base())},Us.apply(e,arguments)}function Fh(){var e=Hf(Ih());return e.copy=function(){return kh(e,Fh()).constant(e.constant())},Us.apply(e,arguments)}function zh(){var e=Xf(Ih());return e.copy=function(){return kh(e,zh()).exponent(e.exponent())},Us.apply(e,arguments)}function Bh(){return zh.apply(null,arguments).exponent(.5)}rp=function(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,c=e.shortMonths,s=fp(i),u=dp(i),f=fp(a),d=dp(a),p=fp(o),h=dp(o),m=fp(l),y=dp(l),v=fp(c),g=dp(c),b={a:function(e){return o[e.getDay()]},A:function(e){return a[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:Dp,e:Dp,f:Fp,g:Gp,G:Zp,H:Rp,I:Ip,j:Np,L:Lp,m:zp,M:Bp,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:wh,s:xh,S:Up,u:$p,U:qp,V:Hp,w:Kp,W:Vp,x:null,X:null,y:Yp,Y:Xp,Z:Jp,"%":bh},w={a:function(e){return o[e.getUTCDay()]},A:function(e){return a[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Qp,e:Qp,f:ih,g:mh,G:vh,H:eh,I:th,j:rh,L:nh,m:ah,M:oh,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:wh,s:xh,S:lh,u:ch,U:sh,V:fh,w:dh,W:ph,x:null,X:null,y:hh,Y:yh,Z:gh,"%":bh},x={a:function(e,t,r){var n=p.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=v.exec(t.slice(r));return n?(e.m=g.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return S(e,t,r,n)},d:Ep,e:Ep,f:Tp,g:bp,G:gp,H:Pp,I:Pp,j:Sp,L:kp,m:Op,M:jp,p:function(e,t,r){var n=s.exec(t.slice(r));return n?(e.p=u.get(n[0].toLowerCase()),r+n[0].length):-1},q:xp,Q:Mp,s:_p,S:Ap,u:hp,U:mp,V:yp,w:pp,W:vp,x:function(e,t,n){return S(e,r,t,n)},X:function(e,t,r){return S(e,n,t,r)},y:bp,Y:gp,Z:wp,"%":Cp};function O(e,t){return function(r){var n,i,a,o=[],l=-1,c=0,s=e.length;for(r instanceof Date||(r=new Date(+r));++l<s;)37===e.charCodeAt(l)&&(o.push(e.slice(c,l)),null!=(i=ap[n=e.charAt(++l)])?n=e.charAt(++l):i="e"===n?" ":"0",(a=t[n])&&(n=a(r,i)),o.push(n),c=l+1);return o.push(e.slice(c,l)),o.join("")}}function E(e,t){return function(r){var n,i,a=tp(1900,void 0,1);if(S(a,e,r+="",0)!=r.length)return null;if("Q"in a)return new Date(a.Q);if("s"in a)return new Date(1e3*a.s+("L"in a?a.L:0));if(t&&!("Z"in a)&&(a.Z=0),"p"in a&&(a.H=a.H%12+12*a.p),void 0===a.m&&(a.m="q"in a?a.q:0),"V"in a){if(a.V<1||a.V>53)return null;"w"in a||(a.w=1),"Z"in a?(i=(n=ep(tp(a.y,0,1))).getUTCDay(),n=i>4||0===i?Fd.ceil(n):Fd(n),n=jd.offset(n,7*(a.V-1)),a.y=n.getUTCFullYear(),a.m=n.getUTCMonth(),a.d=n.getUTCDate()+(a.w+6)%7):(i=(n=Qd(tp(a.y,0,1))).getDay(),n=i>4||0===i?Cd.ceil(n):Cd(n),n=Pd.offset(n,7*(a.V-1)),a.y=n.getFullYear(),a.m=n.getMonth(),a.d=n.getDate()+(a.w+6)%7)}else("W"in a||"U"in a)&&("w"in a||(a.w="u"in a?a.u%7:"W"in a?1:0),i="Z"in a?ep(tp(a.y,0,1)).getUTCDay():Qd(tp(a.y,0,1)).getDay(),a.m=0,a.d="W"in a?(a.w+6)%7+7*a.W-(i+5)%7:a.w+7*a.U-(i+6)%7);return"Z"in a?(a.H+=a.Z/100|0,a.M+=a.Z%100,ep(a)):Qd(a)}}function S(e,t,r,n){for(var i,a,o=0,l=t.length,c=r.length;o<l;){if(n>=c)return-1;if(37===(i=t.charCodeAt(o++))){if(i=t.charAt(o++),!(a=x[i in ap?t.charAt(o++):i])||(n=a(e,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return b.x=O(r,b),b.X=O(n,b),b.c=O(t,b),w.x=O(r,w),w.X=O(n,w),w.c=O(t,w),{format:function(e){var t=O(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=E(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=O(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=E(e+="",!0);return t.toString=function(){return e},t}}}({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"]}),np=rp.format,rp.parse,ip=rp.utcFormat,rp.utcParse;var Uh=e=>e.chartData,$h=Cc([Uh],e=>{var t=null!=e.chartData?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),qh=(e,t,r,n)=>n?$h(e):Uh(e);function Wh(e){if(Array.isArray(e)&&2===e.length){var[t,r]=e;if(Ta(t)&&Ta(r))return!0}return!1}function Hh(e,t,r){return r?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Kh(e,t){if(t&&"function"!=typeof e&&Array.isArray(e)&&2===e.length){var r,n,[i,a]=e;if(Ta(i))r=i;else if("function"==typeof i)return;if(Ta(a))n=a;else if("function"==typeof a)return;var o=[r,n];if(Wh(o))return o}}var Vh,Yh=n(7760),Gh=n.n(Yh),Xh=e=>e,Zh={"@@functional/placeholder":!0},Jh=e=>e===Zh,Qh=e=>function t(){return 0===arguments.length||1===arguments.length&&Jh(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},em=(e,t)=>1===e?t:Qh(function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];var a=n.filter(e=>e!==Zh).length;return a>=e?t(...n):em(e-a,Qh(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var a=n.map(e=>Jh(e)?r.shift():e);return t(...a,...r)}))}),tm=(e,t)=>{for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},rm=em((Vh=(e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(e=>t[e]).map(e)).length,Vh);function nm(e){return 0===e?1:Math.floor(new(Gh())(e).abs().log(10).toNumber())+1}function im(e,t,r){for(var n=new(Gh())(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var am=e=>{var[t,r]=e,[n,i]=[t,r];return t>r&&([n,i]=[r,t]),[n,i]},om=(e,t,r)=>{if(e.lte(0))return new(Gh())(0);var n=nm(e.toNumber()),i=new(Gh())(10).pow(n),a=e.div(i),o=1!==n?.05:.1,l=new(Gh())(Math.ceil(a.div(o).toNumber())).add(r).mul(o).mul(i);return t?new(Gh())(l.toNumber()):new(Gh())(Math.ceil(l.toNumber()))},lm=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new(Gh())(0),tickMin:new(Gh())(0),tickMax:new(Gh())(0)};var a,o=om(new(Gh())(t).sub(e).div(r-1),n,i);a=e<=0&&t>=0?new(Gh())(0):(a=new(Gh())(e).add(t).div(2)).sub(new(Gh())(a).mod(o));var l=Math.ceil(a.sub(e).div(o).toNumber()),c=Math.ceil(new(Gh())(t).sub(a).div(o).toNumber()),s=l+c+1;return s>r?lm(e,t,r,n,i+1):(s<r&&(c=t>0?c+(r-s):c,l=t>0?l:l+(r-s)),{step:o,tickMin:a.sub(new(Gh())(l).mul(o)),tickMax:a.add(new(Gh())(c).mul(o))})},cm=e=>e.rootProps.stackOffset,sm=e=>e.rootProps.reverseStackOrder,um=e=>e.options.chartName,fm=e=>e.rootProps.syncId,dm=e=>e.rootProps.syncMethod,pm=e=>e.options.eventEmitter;function hm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function mm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hm(Object(r),!0).forEach(function(t){ym(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hm(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ym(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vm=Math.PI/180,gm=e=>180*e/Math.PI,bm=(e,t,r,n)=>({x:e+Math.cos(-vm*n)*r,y:t+Math.sin(-vm*n)*r}),wm=(e,t)=>{var{startAngle:r,endAngle:n}=t,i=Math.floor(r/360),a=Math.floor(n/360);return e+360*Math.min(i,a)},xm=(e,t)=>{var{chartX:r,chartY:n}=e,{radius:i,angle:a}=((e,t)=>{var{x:r,y:n}=e,{cx:i,cy:a}=t,o=((e,t)=>{var{x:r,y:n}=e,{x:i,y:a}=t;return Math.sqrt((r-i)**2+(n-a)**2)})({x:r,y:n},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var l=(r-i)/o,c=Math.acos(l);return n>a&&(c=2*Math.PI-c),{radius:o,angle:gm(c),angleInRadian:c}})({x:r,y:n},t),{innerRadius:o,outerRadius:l}=t;if(i<o||i>l)return null;if(0===i)return null;var c,{startAngle:s,endAngle:u}=(e=>{var{startAngle:t,endAngle:r}=e,n=Math.floor(t/360),i=Math.floor(r/360),a=Math.min(n,i);return{startAngle:t-360*a,endAngle:r-360*a}})(t),f=a;if(s<=u){for(;f>u;)f-=360;for(;f<s;)f+=360;c=f>=s&&f<=u}else{for(;f>s;)f-=360;for(;f<u;)f+=360;c=f>=u&&f<=s}return c?mm(mm({},t),{},{radius:i,angle:wm(f,t)}):null},Om={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Em="auto",Sm=!0,Pm=(Om.axis,!1),jm=!0,Am="auto",km=!0,Tm=(Om.axis,(e,t)=>{if(e&&t)return null!=e&&e.reversed?[t[1],t[0]]:t}),Cm={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:0,includeHidden:!1,name:void 0,reversed:!1,scale:Em,tick:Sm,tickCount:void 0,ticks:void 0,type:"category",unit:void 0},Mm={allowDataOverflow:Pm,allowDecimals:!1,allowDuplicatedCategory:jm,dataKey:void 0,domain:void 0,id:0,includeHidden:!1,name:void 0,reversed:!1,scale:Am,tick:km,tickCount:5,ticks:void 0,type:"number",unit:void 0},_m={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,dataKey:void 0,domain:void 0,id:0,includeHidden:!1,name:void 0,reversed:!1,scale:Em,tick:Sm,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Dm={allowDataOverflow:Pm,allowDecimals:!1,allowDuplicatedCategory:jm,dataKey:void 0,domain:void 0,id:0,includeHidden:!1,name:void 0,reversed:!1,scale:Am,tick:km,tickCount:5,ticks:void 0,type:"category",unit:void 0},Rm=(e,t)=>null!=e.polarAxis.angleAxis[t]?e.polarAxis.angleAxis[t]:"radial"===e.layout.layoutType?_m:Cm,Im=(e,t)=>null!=e.polarAxis.radiusAxis[t]?e.polarAxis.radiusAxis[t]:"radial"===e.layout.layoutType?Dm:Mm,Nm=e=>e.polarOptions,Lm=Cc([ps,hs,Os],function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(r.left||0)-(r.right||0)),Math.abs(t-(r.top||0)-(r.bottom||0)))/2}),Fm=Cc([Nm,Lm],(e,t)=>{if(null!=e)return ha(e.innerRadius,t,0)}),zm=Cc([Nm,Lm],(e,t)=>{if(null!=e)return ha(e.outerRadius,t,.8*t)}),Bm=Cc([Nm],e=>{if(null==e)return[0,0];var{startAngle:t,endAngle:r}=e;return[t,r]}),Um=(Cc([Rm,Bm],Tm),Cc([Lm,Fm,zm],(e,t,r)=>{if(null!=e&&null!=t&&null!=r)return[t,r]})),$m=(Cc([Im,Um],Tm),Cc([Is,Nm,Fm,zm,ps,hs],(e,t,r,n,i,a)=>{if(("centric"===e||"radial"===e)&&null!=t&&null!=r&&null!=n){var{cx:o,cy:l,startAngle:c,endAngle:s}=t;return{cx:ha(o,i,i/2),cy:ha(l,a,a/2),innerRadius:r,outerRadius:n,startAngle:c,endAngle:s,clockWise:!1}}})),qm=(e,t)=>t,Wm=(e,t,r)=>r;function Hm(e){return null==e?void 0:e.id}function Km(e,t,r){var{chartData:n=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=r,o=new Map;return e.forEach(e=>{var t,r=null!==(t=e.data)&&void 0!==t?t:n;if(null!=r&&0!==r.length){var l=Hm(e);r.forEach((t,r)=>{var n,c=null==a||i?r:String(es(t,a,null)),s=es(t,e.dataKey,0);n=o.has(c)?o.get(c):{},Object.assign(n,{[l]:s}),o.set(c,n)})}}),Array.from(o.values())}function Vm(e){return"stackId"in e&&null!=e.stackId&&null!=e.dataKey}var Ym=(e,t)=>e===t||null!=e&&null!=t&&e[0]===t[0]&&e[1]===t[1];function Gm(e,t){return!(!Array.isArray(e)||!Array.isArray(t)||0!==e.length||0!==t.length)||e===t}var Xm=e=>{var t=Is(e);return"horizontal"===t?"xAxis":"vertical"===t?"yAxis":"centric"===t?"angleAxis":"radiusAxis"},Zm=e=>e.tooltip.settings.axisId;function Jm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jm(Object(r),!0).forEach(function(t){ey(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jm(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ey(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ty=[0,"auto"],ry={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},ny=(e,t)=>e.cartesianAxis.xAxis[t],iy=(e,t)=>{var r=ny(e,t);return null==r?ry:r},ay={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:ty,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:60},oy=(e,t)=>e.cartesianAxis.yAxis[t],ly=(e,t)=>{var r=oy(e,t);return null==r?ay:r},cy={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},sy=(e,t)=>{var r=e.cartesianAxis.zAxis[t];return null==r?cy:r},uy=(e,t,r)=>{switch(t){case"xAxis":return iy(e,r);case"yAxis":return ly(e,r);case"zAxis":return sy(e,r);case"angleAxis":return Rm(e,r);case"radiusAxis":return Im(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},fy=(e,t,r)=>{switch(t){case"xAxis":return iy(e,r);case"yAxis":return ly(e,r);case"angleAxis":return Rm(e,r);case"radiusAxis":return Im(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},dy=e=>e.graphicalItems.cartesianItems.some(e=>"bar"===e.type)||e.graphicalItems.polarItems.some(e=>"radialBar"===e.type);function py(e,t){return r=>{switch(e){case"xAxis":return"xAxisId"in r&&r.xAxisId===t;case"yAxis":return"yAxisId"in r&&r.yAxisId===t;case"zAxis":return"zAxisId"in r&&r.zAxisId===t;case"angleAxis":return"angleAxisId"in r&&r.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in r&&r.radiusAxisId===t;default:return!1}}}var hy=e=>e.graphicalItems.cartesianItems,my=Cc([qm,Wm],py),yy=(e,t,r)=>e.filter(r).filter(e=>!0===(null==t?void 0:t.includeHidden)||!e.hide),vy=Cc([hy,uy,my],yy,{memoizeOptions:{resultEqualityCheck:Gm}}),gy=Cc([vy],e=>e.filter(e=>"area"===e.type||"bar"===e.type).filter(Vm)),by=e=>e.filter(e=>!("stackId"in e)||void 0===e.stackId),wy=Cc([vy],by),xy=e=>e.map(e=>e.data).filter(Boolean).flat(1),Oy=Cc([vy],xy,{memoizeOptions:{resultEqualityCheck:Gm}}),Ey=(e,t)=>{var{chartData:r=[],dataStartIndex:n,dataEndIndex:i}=t;return e.length>0?e:r.slice(n,i+1)},Sy=Cc([Oy,qh],Ey),Py=(e,t,r)=>null!=(null==t?void 0:t.dataKey)?e.map(e=>({value:es(e,t.dataKey)})):r.length>0?r.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:es(e,t)}))):e.map(e=>({value:e})),jy=Cc([Sy,uy,vy],Py);function Ay(e,t){switch(e){case"xAxis":return"x"===t.direction;case"yAxis":return"y"===t.direction;default:return!1}}function ky(e){if(fa(e)||e instanceof Date){var t=Number(e);if(Ta(t))return t}}function Ty(e){if(Array.isArray(e)){var t=[ky(e[0]),ky(e[1])];return Wh(t)?t:void 0}var r=ky(e);if(null!=r)return[r,r]}function Cy(e){return e.map(ky).filter(wa)}var My=e=>{var t=Xm(e),r=Zm(e);return fy(e,t,r)},_y=Cc([My],e=>null==e?void 0:e.dataKey),Dy=Cc([gy,qh,My],Km),Ry=(e,t,r,n)=>{var i=t.reduce((e,t)=>{if(null==t.stackId)return e;var r=e[t.stackId];return null==r&&(r=[]),r.push(t),e[t.stackId]=r,e},{});return Object.fromEntries(Object.entries(i).map(t=>{var[i,a]=t,o=n?[...a].reverse():a,l=o.map(Hm);return[i,{stackedData:os(e,l,r),graphicalItems:o}]}))},Iy=Cc([Dy,gy,cm,sm],Ry),Ny=(e,t,r,n)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(null==n&&"zAxis"!==r){var o=((e,t,r)=>{var n;if(null!=e)return n=Object.keys(e).reduce((n,i)=>{var a=e[i];if(!a)return n;var{stackedData:o}=a,l=o.reduce((e,n)=>{var i,a=(i=Xc(n,t,r).flat(2).filter(ua),[Math.min(...i),Math.max(...i)]);return Ta(a[0])&&Ta(a[1])?[Math.min(e[0],a[0]),Math.max(e[1],a[1])]:e},[1/0,-1/0]);return[Math.min(l[0],n[0]),Math.max(l[1],n[1])]},[1/0,-1/0]),[n[0]===1/0?0:n[0],n[1]===-1/0?0:n[1]]})(e,i,a);if(null==o||0!==o[0]||0!==o[1])return o}},Ly=Cc([uy],e=>e.allowDataOverflow),Fy=e=>{var t;if(null==e||!("domain"in e))return ty;if(null!=e.domain)return e.domain;if("ticks"in e&&null!=e.ticks){if("number"===e.type){var r=Cy(e.ticks);return[Math.min(...r),Math.max(...r)]}if("category"===e.type)return e.ticks.map(String)}return null!==(t=null==e?void 0:e.domain)&&void 0!==t?t:ty},zy=Cc([uy],Fy),By=Cc([zy,Ly],Kh),Uy=Cc([Iy,Uh,qm,By],Ny,{memoizeOptions:{resultEqualityCheck:Ym}}),$y=e=>e.errorBars,qy=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(Boolean);if(0!==n.length){var i=n.flat();return[Math.min(...i),Math.max(...i)]}},Wy=(e,t,r,n,i)=>{var a,o;if(r.length>0&&e.forEach(e=>{r.forEach(r=>{var l,c,s=null===(l=n[r.id])||void 0===l?void 0:l.filter(e=>Ay(i,e)),u=es(e,null!==(c=t.dataKey)&&void 0!==c?c:r.dataKey),f=function(e,t,r){return!r||"number"!=typeof t||ca(t)?[]:r.length?Cy(r.flatMap(r=>{var n,i,a=es(e,r.dataKey);if(Array.isArray(a)?[n,i]=a:n=i=a,Ta(n)&&Ta(i))return[t-n,t+i]})):[]}(e,u,s);if(f.length>=2){var d=Math.min(...f),p=Math.max(...f);(null==a||d<a)&&(a=d),(null==o||p>o)&&(o=p)}var h=Ty(u);null!=h&&(a=null==a?h[0]:Math.min(a,h[0]),o=null==o?h[1]:Math.max(o,h[1]))})}),null!=(null==t?void 0:t.dataKey)&&e.forEach(e=>{var r=Ty(es(e,t.dataKey));null!=r&&(a=null==a?r[0]:Math.min(a,r[0]),o=null==o?r[1]:Math.max(o,r[1]))}),Ta(a)&&Ta(o))return[a,o]},Hy=Cc([Sy,uy,wy,$y,qm],Wy,{memoizeOptions:{resultEqualityCheck:Ym}});function Ky(e){var{value:t}=e;if(fa(t)||t instanceof Date)return t}var Vy=e=>e.referenceElements.dots,Yy=(e,t,r)=>e.filter(e=>"extendDomain"===e.ifOverflow).filter(e=>"xAxis"===t?e.xAxisId===r:e.yAxisId===r),Gy=Cc([Vy,qm,Wm],Yy),Xy=e=>e.referenceElements.areas,Zy=Cc([Xy,qm,Wm],Yy),Jy=e=>e.referenceElements.lines,Qy=Cc([Jy,qm,Wm],Yy),ev=(e,t)=>{if(null!=e){var r=Cy(e.map(e=>"xAxis"===t?e.x:e.y));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},tv=Cc(Gy,qm,ev),rv=(e,t)=>{if(null!=e){var r=Cy(e.flatMap(e=>["xAxis"===t?e.x1:e.y1,"xAxis"===t?e.x2:e.y2]));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},nv=Cc([Zy,qm],rv),iv=(e,t)=>{if(null!=e){var r=e.flatMap(e=>"xAxis"===t?function(e){var t;if(null!=e.x)return Cy([e.x]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.x);return null==r||0===r.length?[]:Cy(r)}(e):function(e){var t;if(null!=e.y)return Cy([e.y]);var r=null===(t=e.segment)||void 0===t?void 0:t.map(e=>e.y);return null==r||0===r.length?[]:Cy(r)}(e));if(0!==r.length)return[Math.min(...r),Math.max(...r)]}},av=Cc([Qy,qm],iv),ov=Cc(tv,av,nv,(e,t,r)=>qy(e,r,t)),lv=(e,t,r,n,i,a,o,l)=>null!=r?r:function(e,t,r){if(r||null!=t){if("function"==typeof e&&null!=t)try{var n=e(t,r);if(Wh(n))return Hh(n,t,r)}catch(e){}if(Array.isArray(e)&&2===e.length){var i,a,[o,l]=e;if("auto"===o)null!=t&&(i=Math.min(...t));else if(ua(o))i=o;else if("function"==typeof o)try{null!=t&&(i=o(null==t?void 0:t[0]))}catch(e){}else if("string"==typeof o&&cs.test(o)){var c=cs.exec(o);if(null==c||null==c[1]||null==t)i=void 0;else{var s=+c[1];i=t[0]-s}}else i=null==t?void 0:t[0];if("auto"===l)null!=t&&(a=Math.max(...t));else if(ua(l))a=l;else if("function"==typeof l)try{null!=t&&(a=l(null==t?void 0:t[1]))}catch(e){}else if("string"==typeof l&&ss.test(l)){var u=ss.exec(l);if(null==u||null==u[1]||null==t)a=void 0;else{var f=+u[1];a=t[1]+f}}else a=null==t?void 0:t[1];var d=[i,a];if(Wh(d))return null==t?d:Hh(d,t,r)}}}(t,"vertical"===o&&"xAxis"===l||"horizontal"===o&&"yAxis"===l?qy(n,a,i):qy(a,i),e.allowDataOverflow),cv=Cc([uy,zy,By,Uy,Hy,ov,Is,qm],lv,{memoizeOptions:{resultEqualityCheck:Ym}}),sv=[0,1],uv=(e,t,r,n,i,a,o)=>{if(null!=e&&null!=r&&0!==r.length||void 0!==o){var l,{dataKey:c,type:s}=e,u=ts(t,a);return u&&null==c?zs()(0,null!==(l=null==r?void 0:r.length)&&void 0!==l?l:0):"category"===s?((e,t,r)=>{var n=e.map(Ky).filter(e=>null!=e);return r&&(null==t.dataKey||t.allowDuplicatedCategory&&ma(n))?zs()(0,e.length):t.allowDuplicatedCategory?n:Array.from(new Set(n))})(n,e,u):"expand"===i?sv:o}},fv=Cc([uy,Is,Sy,jy,cm,qm,cv],uv),dv=(e,r,n,i,a)=>{if(null!=e){var{scale:o,type:l}=e;if("auto"===o)return"radial"===r&&"radiusAxis"===a?"band":"radial"===r&&"angleAxis"===a?"linear":"category"===l&&i&&(i.indexOf("LineChart")>=0||i.indexOf("AreaChart")>=0||i.indexOf("ComposedChart")>=0&&!n)?"point":"category"===l?"band":"linear";if("string"==typeof o){var c="scale".concat(ba(o));return c in t?c:"point"}}},pv=Cc([uy,Is,dy,um,qm],dv);function hv(e,r,n,i){if(null!=n&&null!=i){if("function"==typeof e.scale)return e.scale.copy().domain(n).range(i);var a=function(e){if(null!=e){if(e in t)return t[e]();var r="scale".concat(ba(e));return r in t?t[r]():void 0}}(r);if(null!=a){var o=a.domain(n).range(i);return(e=>{var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),i=Math.min(n[0],n[1])-is,a=Math.max(n[0],n[1])+is,o=e(t[0]),l=e(t[r-1]);(o<i||o>a||l<i||l>a)&&e.domain([t[0],t[r-1]])}})(o),o}}}var mv=(e,t,r)=>{var n=Fy(t);if("auto"===r||"linear"===r)return null!=t&&t.tickCount&&Array.isArray(n)&&("auto"===n[0]||"auto"===n[1])&&Wh(e)?function(e){var[t,r]=e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(n,2),[o,l]=am([t,r]);if(o===-1/0||l===1/0){var c=l===1/0?[o,...tm(0,n-1).map(()=>1/0)]:[...tm(0,n-1).map(()=>-1/0),l];return t>r?c.reverse():c}if(o===l)return((e,t,r)=>{var n=new(Gh())(1),i=new(Gh())(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new(Gh())(10).pow(nm(e)-1),i=new(Gh())(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new(Gh())(Math.floor(e)))}else 0===e?i=new(Gh())(Math.floor((t-1)/2)):r||(i=new(Gh())(Math.floor(e)));var o=Math.floor((t-1)/2);return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.length)return Xh;var n=t.reverse(),i=n[0],a=n.slice(1);return function(){return a.reduce((e,t)=>t(e),i(...arguments))}}(rm(e=>i.add(new(Gh())(e-o).mul(n)).toNumber()),tm)(0,t)})(o,n,i);var{step:s,tickMin:u,tickMax:f}=lm(o,l,a,i,0),d=im(u,f.add(new(Gh())(.1).mul(s)),s);return t>r?d.reverse():d}(e,t.tickCount,t.allowDecimals):null!=t&&t.tickCount&&"number"===t.type&&Wh(e)?function(e,t){var[r,n]=e,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],[a,o]=am([r,n]);if(a===-1/0||o===1/0)return[r,n];if(a===o)return[a];var l=Math.max(t,2),c=om(new(Gh())(o).sub(a).div(l-1),i,0),s=[...im(new(Gh())(a),new(Gh())(o),c),o];return!1===i&&(s=s.map(e=>Math.round(e))),r>n?s.reverse():s}(e,t.tickCount,t.allowDecimals):void 0},yv=Cc([fv,fy,pv],mv),vv=(e,t,r,n)=>{if("angleAxis"!==n&&"number"===(null==e?void 0:e.type)&&Wh(t)&&Array.isArray(r)&&r.length>0){var i=t[0],a=r[0],o=t[1],l=r[r.length-1];return[Math.min(i,a),Math.max(o,l)]}return t},gv=Cc([uy,fv,yv,qm],vv),bv=Cc(jy,uy,(e,t)=>{if(t&&"number"===t.type){var r=1/0,n=Array.from(Cy(e.map(e=>e.value))).sort((e,t)=>e-t),i=n[0],a=n[n.length-1];if(null==i||null==a)return 1/0;var o=a-i;if(0===o)return 1/0;for(var l=0;l<n.length-1;l++){var c=n[l],s=n[l+1];if(null!=c&&null!=s){var u=s-c;r=Math.min(r,u)}}return r/o}}),wv=Cc(bv,Is,e=>e.rootProps.barCategoryGap,Os,(e,t,r,n,i)=>i,(e,t,r,n,i)=>{if(!Ta(e))return 0;var a="vertical"===t?n.height:n.width;if("gap"===i)return e*a/2;if("no-gap"===i){var o=ha(r,e*a),l=e*a/2;return l-o-(l-o)/a*o}return 0}),xv=Cc(iy,(e,t,r)=>{var n=iy(e,t);return null==n||"string"!=typeof n.padding?0:wv(e,"xAxis",t,r,n.padding)},(e,t)=>{var r,n;if(null==e)return{left:0,right:0};var{padding:i}=e;return"string"==typeof i?{left:t,right:t}:{left:(null!==(r=i.left)&&void 0!==r?r:0)+t,right:(null!==(n=i.right)&&void 0!==n?n:0)+t}}),Ov=Cc(ly,(e,t,r)=>{var n=ly(e,t);return null==n||"string"!=typeof n.padding?0:wv(e,"yAxis",t,r,n.padding)},(e,t)=>{var r,n;if(null==e)return{top:0,bottom:0};var{padding:i}=e;return"string"==typeof i?{top:t,bottom:t}:{top:(null!==(r=i.top)&&void 0!==r?r:0)+t,bottom:(null!==(n=i.bottom)&&void 0!==n?n:0)+t}}),Ev=Cc([Os,xv,ks,As,(e,t,r)=>r],(e,t,r,n,i)=>{var{padding:a}=n;return i?[a.left,r.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),Sv=Cc([Os,Is,Ov,ks,As,(e,t,r)=>r],(e,t,r,n,i,a)=>{var{padding:o}=i;return a?[n.height-o.bottom,o.top]:"horizontal"===t?[e.top+e.height-r.bottom,e.top+r.top]:[e.top+r.top,e.top+e.height-r.bottom]}),Pv=(e,t,r,n)=>{var i;switch(t){case"xAxis":return Ev(e,r,n);case"yAxis":return Sv(e,r,n);case"zAxis":return null===(i=sy(e,r))||void 0===i?void 0:i.range;case"angleAxis":return Bm(e);case"radiusAxis":return Um(e,r);default:return}},jv=Cc([uy,Pv],Tm),Av=Cc([uy,pv,gv,jv],hv);function kv(e,t){return e.id<t.id?-1:e.id>t.id?1:0}Cc([vy,$y,qm],(e,t,r)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>Ay(r,e)));var Tv=(e,t)=>t,Cv=(e,t,r)=>r,Mv=Cc(vs,Tv,Cv,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(kv)),_v=Cc(gs,Tv,Cv,(e,t,r)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===r).sort(kv)),Dv=(e,t)=>({width:e.width,height:t.height}),Rv=Cc(Os,iy,Dv),Iv=Cc(hs,Os,Mv,Tv,Cv,(e,t,r,n,i)=>{var a,o={};return r.forEach(r=>{var l=Dv(t,r);null==a&&(a=((e,t,r)=>{switch(t){case"top":return e.top;case"bottom":return r-e.bottom;default:return 0}})(t,n,e));var c="top"===n&&!i||"bottom"===n&&i;o[r.id]=a-Number(c)*l.height,a+=(c?-1:1)*l.height}),o}),Nv=Cc(ps,Os,_v,Tv,Cv,(e,t,r,n,i)=>{var a,o={};return r.forEach(r=>{var l=((e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height}))(t,r);null==a&&(a=((e,t,r)=>{switch(t){case"left":return e.left;case"right":return r-e.right;default:return 0}})(t,n,e));var c="left"===n&&!i||"right"===n&&i;o[r.id]=a-Number(c)*l.width,a+=(c?-1:1)*l.width}),o}),Lv=Cc([Os,iy,(e,t)=>{var r=iy(e,t);if(null!=r)return Iv(e,r.orientation,r.mirror)},(e,t)=>t],(e,t,r,n)=>{if(null!=t){var i=null==r?void 0:r[n];return null==i?{x:e.left,y:0}:{x:e.left,y:i}}}),Fv=Cc([Os,ly,(e,t)=>{var r=ly(e,t);if(null!=r)return Nv(e,r.orientation,r.mirror)},(e,t)=>t],(e,t,r,n)=>{if(null!=t){var i=null==r?void 0:r[n];return null==i?{x:0,y:e.top}:{x:i,y:e.top}}}),zv=Cc(Os,ly,(e,t)=>({width:"number"==typeof t.width?t.width:60,height:e.height})),Bv=(e,t,r,n)=>{if(null!=r){var{allowDuplicatedCategory:i,type:a,dataKey:o}=r,l=ts(e,n),c=t.map(e=>e.value);return o&&l&&"category"===a&&i&&ma(c)?c:void 0}},Uv=Cc([Is,jy,uy,qm],Bv),$v=(e,t,r,n)=>{if(null!=r&&null!=r.dataKey){var{type:i,scale:a}=r;return!ts(e,n)||"number"!==i&&"auto"===a?void 0:t.map(e=>e.value)}},qv=Cc([Is,jy,fy,qm],$v),Wv=Cc([Is,(e,t,r)=>{switch(t){case"xAxis":return iy(e,r);case"yAxis":return ly(e,r);default:throw new Error("Unexpected axis type: ".concat(t))}},pv,Av,Uv,qv,Pv,yv,qm],(e,t,r,n,i,a,o,l,c)=>{if(null!=t){var s=ts(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:a,duplicateDomain:i,isCategorical:s,niceTicks:l,range:o,realScaleType:r,scale:n}}}),Hv=Cc([Is,fy,pv,Av,yv,Pv,Uv,qv,qm],(e,t,r,n,i,a,o,l,c)=>{if(null!=t&&null!=n){var s=ts(e,c),{type:u,ticks:f,tickCount:d}=t,p="scaleBand"===r&&"function"==typeof n.bandwidth?n.bandwidth()/2:2,h="category"===u&&n.bandwidth?n.bandwidth()/p:0;h="angleAxis"===c&&null!=a&&a.length>=2?2*la(a[0]-a[1])*h:h;var m=f||i;return m?m.map((e,t)=>{var r=o?o.indexOf(e):e;return{index:t,coordinate:n(r)+h,value:e,offset:h}}).filter(e=>Ta(e.coordinate)):s&&l?l.map((e,t)=>({coordinate:n(e)+h,value:e,index:t,offset:h})).filter(e=>Ta(e.coordinate)):n.ticks?n.ticks(d).map(e=>({coordinate:n(e)+h,value:e,offset:h})):n.domain().map((e,t)=>({coordinate:n(e)+h,value:o?o[e]:e,index:t,offset:h}))}}),Kv=Cc([Is,fy,Av,Pv,Uv,qv,qm],(e,t,r,n,i,a,o)=>{if(null!=t&&null!=r&&null!=n&&n[0]!==n[1]){var l=ts(e,o),{tickCount:c}=t,s=0;return s="angleAxis"===o&&(null==n?void 0:n.length)>=2?2*la(n[0]-n[1])*s:s,l&&a?a.map((e,t)=>({coordinate:r(e)+s,value:e,index:t,offset:s})):r.ticks?r.ticks(c).map(e=>({coordinate:r(e)+s,value:e,offset:s})):r.domain().map((e,t)=>({coordinate:r(e)+s,value:i?i[e]:e,index:t,offset:s}))}}),Vv=Cc(uy,Av,(e,t)=>{if(null!=e&&null!=t)return Qm(Qm({},e),{},{scale:t})}),Yv=Cc([uy,pv,fv,jv],hv),Gv=(Cc((e,t,r)=>sy(e,r),Yv,(e,t)=>{if(null!=e&&null!=t)return Qm(Qm({},e),{},{scale:t})}),Cc([Is,vs,gs],(e,t,r)=>{switch(e){case"horizontal":return t.some(e=>e.reversed)?"right-to-left":"left-to-right";case"vertical":return r.some(e=>e.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}})),Xv=e=>e.options.defaultTooltipEventType,Zv=e=>e.options.validateTooltipEventTypes;function Jv(e,t,r){if(null==e)return t;var n=e?"axis":"item";return null==r?t:r.includes(n)?n:t}function Qv(e,t){return Jv(t,Xv(e),Zv(e))}var eg=(e,t)=>{var r,n=Number(t);if(!ca(n)&&null!=t)return n>=0?null==e||null===(r=e[n])||void 0===r?void 0:r.value:void 0};function tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function rg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?tg(Object(r),!0).forEach(function(t){ng(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tg(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function ng(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ig=(e,t,r,n)=>{if(null==t)return Ql;var i=function(e,t,r){return"axis"===t?"click"===r?e.axisInteraction.click:e.axisInteraction.hover:"click"===r?e.itemInteraction.click:e.itemInteraction.hover}(e,t,r);if(null==i)return Ql;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&null!=e.syncInteraction.index)return e.syncInteraction;var a=!0===e.settings.active;if(null!=i.index){if(a)return rg(rg({},i),{},{active:!0})}else if(null!=n)return{active:!0,coordinate:void 0,dataKey:void 0,index:n,graphicalItemId:void 0};return rg(rg({},Ql),{},{coordinate:i.coordinate})};var ag=(e,t,r,n)=>{var i=null==e?void 0:e.index;if(null==i)return null;var a=Number(i);if(!Ta(a))return i;var o=1/0;t.length>0&&(o=t.length-1);var l=Math.max(0,Math.min(a,o)),c=t[l];return null==c||function(e,t,r){if(null==r||null==t)return!0;var n=es(e,t);return null==n||!Wh(r)||function(e,t){var r=function(e){if("number"==typeof e)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var r=Number(e);return Number.isFinite(r)?r:void 0}(e),n=t[0],i=t[1];if(void 0===r)return!1;var a=Math.min(n,i),o=Math.max(n,i);return r>=a&&r<=o}(n,r)}(c,r,n)?String(l):null},og=(e,t,r,n,i,a,o,l)=>{if(null!=a&&null!=l){var c=o[0],s=null==c?void 0:l(c.positions,a);if(null!=s)return s;var u=null==i?void 0:i[Number(a)];if(u)return"horizontal"===r?{x:u.coordinate,y:(n.top+t)/2}:{x:(n.left+e)/2,y:u.coordinate}}},lg=(e,t,r,n)=>{if("axis"===t)return e.tooltipItemPayloads;if(0===e.tooltipItemPayloads.length)return[];var i;if(null==(i="hover"===r?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId)&&null!=n){var a=e.tooltipItemPayloads[0];return null!=a?[a]:[]}return e.tooltipItemPayloads.filter(e=>{var t;return(null===(t=e.settings)||void 0===t?void 0:t.graphicalItemId)===i})},cg=e=>e.options.tooltipPayloadSearcher,sg=e=>e.tooltip;function ug(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function fg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ug(Object(r),!0).forEach(function(t){dg(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ug(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function dg(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pg=(e,t,r,n,i,a,o)=>{if(null!=t&&null!=a){var{chartData:l,computedData:c,dataStartIndex:s,dataEndIndex:u}=r;return e.reduce((e,r)=>{var f,d,p,{dataDefinedOnItem:h,settings:m}=r,y=function(e,t){return null!=e?e:t}(h,l),v=Array.isArray(y)?Xc(y,s,u):y,g=null!==(f=null==m?void 0:m.dataKey)&&void 0!==f?f:n,b=null==m?void 0:m.nameKey;return d=n&&Array.isArray(v)&&!Array.isArray(v[0])&&"axis"===o?va(v,n,i):a(v,t,c,b),Array.isArray(d)?d.forEach(t=>{var r=fg(fg({},m),{},{name:t.name,unit:t.unit,color:void 0,fill:void 0});e.push(fs({tooltipEntrySettings:r,dataKey:t.dataKey,payload:t.payload,value:es(t.payload,t.dataKey),name:t.name}))}):e.push(fs({tooltipEntrySettings:m,dataKey:g,payload:d,value:es(d,g),name:null!==(p=es(d,b))&&void 0!==p?p:null==m?void 0:m.name})),e},[])}},hg=Cc([My,Is,dy,um,Xm],dv),mg=Cc([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),yg=Cc([Xm,Zm],py),vg=Cc([mg,My,yg],yy,{memoizeOptions:{resultEqualityCheck:Gm}}),gg=Cc([vg],e=>e.filter(Vm)),bg=Cc([vg],xy,{memoizeOptions:{resultEqualityCheck:Gm}}),wg=Cc([bg,Uh],Ey),xg=Cc([gg,Uh,My],Km),Og=Cc([wg,My,vg],Py),Eg=Cc([My],Fy),Sg=Cc([My],e=>e.allowDataOverflow),Pg=Cc([Eg,Sg],Kh),jg=Cc([vg],e=>e.filter(Vm)),Ag=Cc([xg,jg,cm,sm],Ry),kg=Cc([Ag,Uh,Xm,Pg],Ny),Tg=Cc([vg],by),Cg=Cc([wg,My,Tg,$y,Xm],Wy,{memoizeOptions:{resultEqualityCheck:Ym}}),Mg=Cc([Vy,Xm,Zm],Yy),_g=Cc([Mg,Xm],ev),Dg=Cc([Xy,Xm,Zm],Yy),Rg=Cc([Dg,Xm],rv),Ig=Cc([Jy,Xm,Zm],Yy),Ng=Cc([Ig,Xm],iv),Lg=Cc([_g,Ng,Rg],qy),Fg=Cc([My,Eg,Pg,kg,Cg,Lg,Is,Xm],lv),zg=Cc([My,Is,wg,Og,cm,Xm,Fg],uv),Bg=Cc([zg,My,hg],mv),Ug=Cc([My,zg,Bg,Xm],vv),$g=e=>{var t=Xm(e),r=Zm(e);return Pv(e,t,r,!1)},qg=Cc([My,$g],Tm),Wg=Cc([My,hg,Ug,qg],hv),Hg=Cc([Is,Og,My,Xm],Bv),Kg=Cc([Is,Og,My,Xm],$v),Vg=Cc([Is,My,hg,Wg,$g,Hg,Kg,Xm],(e,t,r,n,i,a,o,l)=>{if(t){var{type:c}=t,s=ts(e,l);if(n){var u="scaleBand"===r&&n.bandwidth?n.bandwidth()/2:2,f="category"===c&&n.bandwidth?n.bandwidth()/u:0;return f="angleAxis"===l&&null!=i&&(null==i?void 0:i.length)>=2?2*la(i[0]-i[1])*f:f,s&&o?o.map((e,t)=>({coordinate:n(e)+f,value:e,index:t,offset:f})):n.domain().map((e,t)=>({coordinate:n(e)+f,value:a?a[e]:e,index:t,offset:f}))}}}),Yg=Cc([Xv,Zv,e=>e.tooltip.settings],(e,t,r)=>Jv(r.shared,e,t)),Gg=e=>e.tooltip.settings.trigger,Xg=e=>e.tooltip.settings.defaultIndex,Zg=Cc([sg,Yg,Gg,Xg],ig),Jg=Cc([Zg,wg,_y,zg],ag),Qg=Cc([Vg,Jg],eg),eb=Cc([Zg],e=>{if(e)return e.dataKey}),tb=(Cc([Zg],e=>{if(e)return e.graphicalItemId}),Cc([sg,Yg,Gg,Xg],lg)),rb=Cc([ps,hs,Is,Os,Vg,Xg,tb,cg],og),nb=Cc([Zg,rb],(e,t)=>null!=e&&e.coordinate?e.coordinate:t),ib=Cc([Zg],e=>{var t;return null!==(t=null==e?void 0:e.active)&&void 0!==t&&t}),ab=Cc([tb,Jg,Uh,_y,Qg,cg,Yg],pg),ob=Cc([ab],e=>{if(null!=e){var t=e.map(e=>e.payload).filter(e=>null!=e);return Array.from(new Set(t))}});function lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function cb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lb(Object(r),!0).forEach(function(t){sb(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function sb(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ub=(e,t,r,n,i)=>{var a,o=null!==(a=null==t?void 0:t.length)&&void 0!==a?a:0;if(o<=1||null==e)return 0;if("angleAxis"===n&&null!=i&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var l=0;l<o;l++){var c,s,u,f,d,p=l>0?null===(c=r[l-1])||void 0===c?void 0:c.coordinate:null===(s=r[o-1])||void 0===s?void 0:s.coordinate,h=null===(u=r[l])||void 0===u?void 0:u.coordinate,m=l>=o-1?null===(f=r[0])||void 0===f?void 0:f.coordinate:null===(d=r[l+1])||void 0===d?void 0:d.coordinate,y=void 0;if(null!=p&&null!=h&&null!=m)if(la(h-p)!==la(m-h)){var v=[];if(la(m-h)===la(i[1]-i[0])){y=m;var g=h+i[1]-i[0];v[0]=Math.min(g,(g+p)/2),v[1]=Math.max(g,(g+p)/2)}else{y=p;var b=m+i[1]-i[0];v[0]=Math.min(h,(b+h)/2),v[1]=Math.max(h,(b+h)/2)}var w,x=[Math.min(h,(y+h)/2),Math.max(h,(y+h)/2)];if(e>x[0]&&e<=x[1]||e>=v[0]&&e<=v[1])return null===(w=r[l])||void 0===w?void 0:w.index}else{var O,E=Math.min(p,m),S=Math.max(p,m);if(e>(E+h)/2&&e<=(S+h)/2)return null===(O=r[l])||void 0===O?void 0:O.index}}else if(t)for(var P=0;P<o;P++){var j=t[P];if(null!=j){var A=t[P+1],k=t[P-1];if(0===P&&null!=A&&e<=(j.coordinate+A.coordinate)/2)return j.index;if(P===o-1&&null!=k&&e>(j.coordinate+k.coordinate)/2)return j.index;if(P>0&&P<o-1&&null!=k&&null!=A&&e>(j.coordinate+k.coordinate)/2&&e<=(j.coordinate+A.coordinate)/2)return j.index}}return-1},fb=(e,t)=>t,db=(e,t,r)=>r,pb=(e,t,r,n)=>n,hb=Cc(Vg,e=>Uc()(e,e=>e.coordinate)),mb=Cc([sg,fb,db,pb],ig),yb=Cc([mb,wg,_y,zg],ag),vb=Cc([sg,fb,db,pb],lg),gb=Cc([ps,hs,Is,Os,Vg,pb,vb,cg],og),bb=Cc([mb,gb],(e,t)=>{var r;return null!==(r=e.coordinate)&&void 0!==r?r:t}),wb=Cc([Vg,yb],eg),xb=Cc([vb,yb,Uh,_y,wb,cg,fb],pg),Ob=Cc([mb,yb],(e,t)=>({isActive:e.active&&null!=t,activeIndex:t})),Eb=Cc([(e,t)=>t,Is,$m,Xm,qg,Vg,hb,Os],(e,t,r,n,i,a,o,l)=>{if(e&&t&&n&&i&&a)return"horizontal"===t||"vertical"===t?((e,t,r,n,i,a,o)=>{if(e&&r&&n&&i&&function(e,t){var{chartX:r,chartY:n}=e;return r>=t.left&&r<=t.left+t.width&&n>=t.top&&n<=t.top+t.height}(e,o)){var l=((e,t)=>"horizontal"===t?e.chartX:"vertical"===t?e.chartY:void 0)(e,t),c=ub(l,a,i,r,n),s=((e,t,r,n)=>{var i=t.find(e=>e&&e.index===r);if(i){if("horizontal"===e)return{x:i.coordinate,y:n.chartY};if("vertical"===e)return{x:n.chartX,y:i.coordinate}}return{x:0,y:0}})(t,i,c,e);return{activeIndex:String(c),activeCoordinate:s}}})(e,t,n,i,a,o,l):((e,t,r,n,i,a,o)=>{if(e&&n&&i&&a&&r){var l=xm(e,r);if(l){var c=((e,t)=>"centric"===t?e.angle:e.radius)(l,t),s=ub(c,o,a,n,i),u=((e,t,r,n)=>{var i=t.find(e=>e&&e.index===r);if(i){if("centric"===e){var a=i.coordinate,{radius:o}=n;return cb(cb(cb({},n),bm(n.cx,n.cy,o,a)),{},{angle:a,radius:o})}var l=i.coordinate,{angle:c}=n;return cb(cb(cb({},n),bm(n.cx,n.cy,l,c)),{},{angle:c,radius:l})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}})(t,a,s,l);return{activeIndex:String(s),activeCoordinate:u}}}})(e,t,r,n,i,a,o)}),Sb=e=>{var t=e.currentTarget.getBoundingClientRect(),r=t.width/e.currentTarget.offsetWidth,n=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/r),chartY:Math.round((e.clientY-t.top)/n)}},Pb=Ho("mouseClick"),jb=Nl();jb.startListening({actionCreator:Pb,effect:(e,t)=>{var r=e.payload,n=Eb(t.getState(),Sb(r));null!=(null==n?void 0:n.activeIndex)&&t.dispatch(uc({activeIndex:n.activeIndex,activeDataKey:void 0,activeCoordinate:n.activeCoordinate}))}});var Ab=Ho("mouseMove"),kb=Nl(),Tb=null;function Cb(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":"children"===e&&"object"==typeof t&&null!==t?"<<CHILDREN>>":t}function Mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mb(Object(r),!0).forEach(function(t){Db(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mb(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Db(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}kb.startListening({actionCreator:Ab,effect:(e,t)=>{var r=e.payload;null!==Tb&&cancelAnimationFrame(Tb);var n=Sb(r);Tb=requestAnimationFrame(()=>{var e=t.getState();if("axis"===Qv(e,e.tooltip.settings.shared)){var r=Eb(e,n);null!=(null==r?void 0:r.activeIndex)?t.dispatch(sc({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate})):t.dispatch(lc())}Tb=null})}});var Rb=al({name:"cartesianAxis",initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:Xo()},replaceXAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.xAxis[r.id]&&(r.id!==n.id&&delete e.xAxis[r.id],e.xAxis[n.id]=n)},prepare:Xo()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Xo()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:Xo()},replaceYAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.yAxis[r.id]&&(r.id!==n.id&&delete e.yAxis[r.id],e.yAxis[n.id]=n)},prepare:Xo()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Xo()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:Xo()},replaceZAxis:{reducer(e,t){var{prev:r,next:n}=t.payload;void 0!==e.zAxis[r.id]&&(r.id!==n.id&&delete e.zAxis[r.id],e.zAxis[n.id]=n)},prepare:Xo()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Xo()},updateYAxisWidth(e,t){var{id:r,width:n}=t.payload,i=e.yAxis[r];if(i){var a=i.widthHistory||[];if(3===a.length&&a[0]===a[2]&&n===a[1]&&n!==i.width&&Math.abs(n-a[0])<=1)return;var o=[...a,n].slice(-3);e.yAxis[r]=_b(_b({},e.yAxis[r]),{},{width:n,widthHistory:o})}}}}),{addXAxis:Ib,replaceXAxis:Nb,removeXAxis:Lb,addYAxis:Fb,replaceYAxis:zb,removeYAxis:Bb,addZAxis:Ub,replaceZAxis:$b,removeZAxis:qb,updateYAxisWidth:Wb}=Rb.actions,Hb=Rb.reducer,Kb=al({name:"graphicalItems",initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:Xo()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ko(e).cartesianItems.indexOf(r);i>-1&&(e.cartesianItems[i]=n)},prepare:Xo()},removeCartesianGraphicalItem:{reducer(e,t){var r=ko(e).cartesianItems.indexOf(t.payload);r>-1&&e.cartesianItems.splice(r,1)},prepare:Xo()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:Xo()},removePolarGraphicalItem:{reducer(e,t){var r=ko(e).polarItems.indexOf(t.payload);r>-1&&e.polarItems.splice(r,1)},prepare:Xo()}}}),{addCartesianGraphicalItem:Vb,replaceCartesianGraphicalItem:Yb,removeCartesianGraphicalItem:Gb,addPolarGraphicalItem:Xb,removePolarGraphicalItem:Zb}=Kb.actions,Jb=Kb.reducer,Qb=al({name:"referenceElements",initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var r=ko(e).dots.findIndex(e=>e===t.payload);-1!==r&&e.dots.splice(r,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var r=ko(e).areas.findIndex(e=>e===t.payload);-1!==r&&e.areas.splice(r,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var r=ko(e).lines.findIndex(e=>e===t.payload);-1!==r&&e.lines.splice(r,1)}}}),{addDot:ew,removeDot:tw,addArea:rw,removeArea:nw,addLine:iw,removeLine:aw}=Qb.actions,ow=Qb.reducer,lw={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},cw=al({name:"brush",initialState:lw,reducers:{setBrushSettings:(e,t)=>null==t.payload?lw:t.payload}}),{setBrushSettings:sw}=cw.actions,uw=cw.reducer,fw=al({name:"legend",initialState:{settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:Xo()},replaceLegendPayload:{reducer(e,t){var{prev:r,next:n}=t.payload,i=ko(e).payload.indexOf(r);i>-1&&(e.payload[i]=n)},prepare:Xo()},removeLegendPayload:{reducer(e,t){var r=ko(e).payload.indexOf(t.payload);r>-1&&e.payload.splice(r,1)},prepare:Xo()}}}),{setLegendSize:dw,setLegendSettings:pw,addLegendPayload:hw,replaceLegendPayload:mw,removeLegendPayload:yw}=fw.actions,vw=fw.reducer,gw={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},bw=al({name:"rootProps",initialState:gw,reducers:{updateOptions:(e,t)=>{var r;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=null!==(r=t.payload.barGap)&&void 0!==r?r:gw.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),ww=bw.reducer,{updateOptions:xw}=bw.actions,Ow=al({name:"polarAxis",initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:Ew,removeRadiusAxis:Sw,addAngleAxis:Pw,removeAngleAxis:jw}=Ow.actions,Aw=Ow.reducer,kw=al({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:Tw}=kw.actions,Cw=kw.reducer,Mw=Ho("keyDown"),_w=Ho("focus"),Dw=Nl();Dw.startListening({actionCreator:Mw,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip,i=e.payload;if("ArrowRight"===i||"ArrowLeft"===i||"Enter"===i){var a=ag(n,wg(r),_y(r),zg(r)),o=null==a?-1:Number(a);if(Number.isFinite(o)&&!(o<0)){var l=Vg(r);if("Enter"!==i){var c=o+("ArrowRight"===i?1:-1)*("left-to-right"===Gv(r)?1:-1);if(!(null==l||c>=l.length||c<0)){var s=gb(r,"axis","hover",String(c));t.dispatch(dc({active:!0,activeIndex:c.toString(),activeCoordinate:s}))}}else{var u=gb(r,"axis","hover",String(n.index));t.dispatch(dc({active:!n.active,activeIndex:n.index,activeCoordinate:u}))}}}}}}),Dw.startListening({actionCreator:_w,effect:(e,t)=>{var r=t.getState();if(!1!==r.rootProps.accessibilityLayer){var{keyboardInteraction:n}=r.tooltip;if(!n.active&&null==n.index){var i=gb(r,"axis","hover",String("0"));t.dispatch(dc({active:!0,activeIndex:"0",activeCoordinate:i}))}}}});var Rw=Ho("externalEvent"),Iw=Nl(),Nw=new Map;Iw.startListening({actionCreator:Rw,effect:(e,t)=>{var{handler:r,reactEvent:n}=e.payload;if(null!=r){n.persist();var i=n.type,a=Nw.get(i);void 0!==a&&cancelAnimationFrame(a);var o=requestAnimationFrame(()=>{try{var e=t.getState(),a={activeCoordinate:nb(e),activeDataKey:eb(e),activeIndex:Jg(e),activeLabel:Qg(e),activeTooltipIndex:Jg(e),isTooltipActive:ib(e)};r(a,n)}finally{Nw.delete(i)}});Nw.set(i,o)}}});var Lw=Cc([sg],e=>e.tooltipItemPayloads),Fw=Cc([Lw,cg,(e,t)=>t,(e,t,r)=>r],(e,t,r,n)=>{var i=e.find(e=>e.settings.graphicalItemId===n);if(null!=i){var{positions:a}=i;if(null!=a)return t(a,r)}}),zw=Ho("touchMove"),Bw=Nl();Bw.startListening({actionCreator:zw,effect:(e,t)=>{var r=e.payload;if(null!=r.touches&&0!==r.touches.length){var n=t.getState(),i=Qv(n,n.tooltip.settings.shared);if("axis"===i){var a=r.touches[0];if(null==a)return;var o=Eb(n,Sb({clientX:a.clientX,clientY:a.clientY,currentTarget:r.currentTarget}));null!=(null==o?void 0:o.activeIndex)&&t.dispatch(sc({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if("item"===i){var l,c=r.touches[0];if(null==document.elementFromPoint||null==c)return;var s=document.elementFromPoint(c.clientX,c.clientY);if(!s||!s.getAttribute)return;var u=s.getAttribute("data-recharts-item-index"),f=null!==(l=s.getAttribute("data-recharts-item-id"))&&void 0!==l?l:void 0,d=vg(n).find(e=>e.id===f);if(null==u||null==d||null==f)return;var{dataKey:p}=d,h=Fw(n,u,f);t.dispatch(ac({activeDataKey:p,activeIndex:u,activeCoordinate:h,activeGraphicalItemId:f}))}}}});var Uw=al({name:"errorBars",initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]||(e[r]=[]),e[r].push(n)},replaceErrorBar:(e,t)=>{var{itemId:r,prev:n,next:i}=t.payload;e[r]&&(e[r]=e[r].map(e=>e.dataKey===n.dataKey&&e.direction===n.direction?i:e))},removeErrorBar:(e,t)=>{var{itemId:r,errorBar:n}=t.payload;e[r]&&(e[r]=e[r].filter(e=>e.dataKey!==n.dataKey||e.direction!==n.direction))}}}),{addErrorBar:$w,replaceErrorBar:qw,removeErrorBar:Ww}=Uw.actions,Hw=Uw.reducer,Kw=!("undefined"!=typeof window&&window.document&&Boolean(window.document.createElement)&&window.setTimeout);function Vw(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Yw(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Vw(Object(r),!0).forEach(function(t){Gw(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vw(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Gw(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Xw={zIndexMap:Object.values(Om).reduce((e,t)=>Yw(Yw({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},Zw=new Set(Object.values(Om)),Jw=al({name:"zIndex",initialState:Xw,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]?e.zIndexMap[r].consumers+=1:e.zIndexMap[r]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Xo()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(e.zIndexMap[r].consumers-=1,e.zIndexMap[r].consumers<=0&&!function(e){return Zw.has(e)}(r)&&delete e.zIndexMap[r])},prepare:Xo()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r,element:n,isPanorama:i}=t.payload;e.zIndexMap[r]?i?e.zIndexMap[r].panoramaElement=n:e.zIndexMap[r].element=n:e.zIndexMap[r]={consumers:0,element:i?void 0:n,panoramaElement:i?n:void 0}},prepare:Xo()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:r}=t.payload;e.zIndexMap[r]&&(t.payload.isPanorama?e.zIndexMap[r].panoramaElement=void 0:e.zIndexMap[r].element=void 0)},prepare:Xo()}}}),{registerZIndexPortal:Qw,unregisterZIndexPortal:ex,registerZIndexPortalElement:tx,unregisterZIndexPortalElement:rx}=Jw.actions,nx=Fo({brush:uw,cartesianAxis:Hb,chartData:gc,errorBars:Hw,graphicalItems:Jb,layout:Sc,legend:vw,options:Bl,polarAxis:Aw,polarOptions:Cw,referenceElements:ow,rootProps:ww,tooltip:pc,zIndex:Jw.reducer});function ix(e){var{preloadedState:t,children:n,reduxStoreName:i}=e,a=js(),o=(0,r.useRef)(null);if(a)return n;null==o.current&&(o.current=function(e){return function(e){const t=function(e){const{thunk:t=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:i=!0}=e??{};let a=new Ko;return t&&("boolean"==typeof t?a.push($o):a.push(qo(t.extraArgument))),a},{reducer:r,middleware:n,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o,enhancers:l}=e||{};let c,s;if("function"==typeof r)c=r;else{if(!No(r))throw new Error(Ll(1));c=Fo(r)}s="function"==typeof n?n(t):t();let u=zo;i&&(u=Wo({trace:!1,..."object"==typeof i&&i}));const f=function(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(_o(15))};const o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)},l=e.map(e=>e(o));return a=zo(...l)(i.dispatch),{...i,dispatch:a}}}(...s),d=(e=>function(t){const{autoBatch:r=!0}=t??{};let n=new Ko(e);return r&&n.push(Jo("object"==typeof r?r:void 0)),n})(f);return Lo(c,o,u(..."function"==typeof l?l(d):d()))}({reducer:nx,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes("es6")}).concat([jb.middleware,kb.middleware,Dw.middleware,Iw.middleware,Bw.middleware]),enhancers:e=>{var t=e;return"function"==typeof e&&(t=e()),t.concat(Jo({type:"raf"}))},devTools:{serialize:{replacer:Cb},name:"recharts-".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Chart")}})}(t,i));var l=Dc;return r.createElement(Jl,{context:l,store:o.current},n)}var ax=e=>{var{chartData:t}=e,n=Ic(),i=js();return(0,r.useEffect)(()=>i?()=>{}:(n(mc(t)),()=>{n(mc(void 0))}),[t,n,i]),null},ox=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function lx(e,t){return null==e&&null==t||("number"==typeof e&&"number"==typeof t?e===t||e!=e&&t!=t:e===t)}function cx(e,t){var r=new Set([...Object.keys(e),...Object.keys(t)]);for(var n of r)if(ox.has(n)){if(null==e[n]&&null==t[n])continue;if(!Vl(e[n],t[n]))return!1}else if(!lx(e[n],t[n]))return!1;return!0}function sx(e){var{layout:t,margin:n}=e,i=Ic(),a=js();return(0,r.useEffect)(()=>{a||(i(xc(t)),i(wc(n)))},[i,a,t,n]),null}var ux=(0,r.memo)(sx,cx);function fx(e){var t=Ic();return(0,r.useEffect)(()=>{t(xw(e))},[t,e]),null}var dx=()=>{var e;return null===(e=zc(e=>e.rootProps.accessibilityLayer))||void 0===e||e},px=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function hx(e){return"string"==typeof e&&px.includes(e)}var mx=new Set(["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"]);function yx(e){return"string"==typeof e&&mx.has(e)}function vx(e){return"string"==typeof e&&e.startsWith("data-")}function gx(e){if("object"!=typeof e||null===e)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(yx(r)||vx(r))&&(t[r]=e[r]);return t}function bx(e){return null==e?null:(0,r.isValidElement)(e)&&"object"==typeof e.props&&null!==e.props?gx(e.props):"object"!=typeof e||Array.isArray(e)?null:gx(e)}function wx(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(yx(r)||vx(r)||hx(r))&&(t[r]=e[r]);return t}var xx=["children","width","height","viewBox","className","style","title","desc"];function Ox(){return Ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ox.apply(null,arguments)}var Ex=(0,r.forwardRef)((e,t)=>{var{children:n,width:i,height:a,viewBox:o,className:l,style:c,title:s,desc:u}=e,f=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,xx),d=o||{width:i,height:a,x:0,y:0},p=ea("recharts-surface",l);return r.createElement("svg",Ox({},wx(f),{className:p,width:i,height:a,style:c,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),r.createElement("title",null,s),r.createElement("desc",null,u),n)}),Sx=Cc(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,r)=>r,(e,t,r)=>{if(null!=t){var n=e[t];if(null!=n)return r?n.panoramaElement:n.element}}),Px=Cc(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(Om));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:function(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return!1}}});function jx(e){var{zIndex:t,isPanorama:n}=e,i=(0,r.useRef)(null),a=Ic();return(0,r.useLayoutEffect)(()=>(i.current&&a(tx({zIndex:t,element:i.current,isPanorama:n})),()=>{a(rx({zIndex:t,isPanorama:n}))}),[a,t,n]),r.createElement("g",{tabIndex:-1,ref:i})}function Ax(e){var{children:t,isPanorama:n}=e,i=zc(Px);if(!i||0===i.length)return t;var a=i.filter(e=>e<0),o=i.filter(e=>e>0);return r.createElement(r.Fragment,null,a.map(e=>r.createElement(jx,{key:e,zIndex:e,isPanorama:n})),t,o.map(e=>r.createElement(jx,{key:e,zIndex:e,isPanorama:n})))}var kx=["children"];function Tx(){return Tx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tx.apply(null,arguments)}var Cx={width:"100%",height:"100%",display:"block"},Mx=(0,r.forwardRef)((e,t)=>{var n=Ds(),i=Rs(),a=dx();if(!Ca(n)||!Ca(i))return null;var o,l,{children:c,otherAttributes:s,title:u,desc:f}=e;return null!=s&&(o="number"==typeof s.tabIndex?s.tabIndex:a?0:void 0,l="string"==typeof s.role?s.role:a?"application":void 0),r.createElement(Ex,Tx({},s,{title:u,desc:f,role:l,tabIndex:o,width:n,height:i,style:Cx,ref:t}),c)}),_x=e=>{var{children:t}=e,n=zc(ks);if(!n)return null;var{width:i,height:a,y:o,x:l}=n;return r.createElement(Ex,{width:i,height:a,x:l,y:o},t)},Dx=(0,r.forwardRef)((e,t)=>{var{children:n}=e,i=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,kx);return js()?r.createElement(_x,null,r.createElement(Ax,{isPanorama:!0},n)):r.createElement(Mx,Tx({ref:t},i),r.createElement(Ax,{isPanorama:!1},n))}),Rx=new(n(8985)),Ix="recharts.syncEvent.tooltip",Nx="recharts.syncEvent.brush";function Lx(e){return e.tooltip.syncInteraction}var Fx=["x","y"];function zx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Bx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zx(Object(r),!0).forEach(function(t){Ux(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ux(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $x(){var e=Ic();(0,r.useEffect)(()=>{e(Ul())},[e]),function(){var e=zc(fm),t=zc(pm),n=Ic(),i=zc(dm),a=zc(Vg),o=Ns(),l=Cs(),c=zc(e=>e.rootProps.className);(0,r.useEffect)(()=>{if(null==e)return xa;var r=(r,c,s)=>{var u;if(t!==s&&e===r)if("index"!==i){if(null!=a){var f;if("function"==typeof i){var d={activeTooltipIndex:null==c.payload.index?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:null==c.payload.index?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate},p=i(a,d);f=a[p]}else"value"===i&&(f=a.find(e=>String(e.value)===c.payload.label));var{coordinate:h}=c.payload;if(null!=f&&!1!==c.payload.active&&null!=h&&null!=l){var{x:m,y}=h,v=Math.min(m,l.x+l.width),g=Math.min(y,l.y+l.height),b={x:"horizontal"===o?f.coordinate:v,y:"horizontal"===o?g:f.coordinate},w=fc({active:c.payload.active,coordinate:b,dataKey:c.payload.dataKey,index:String(f.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId});n(w)}else n(fc({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}))}}else if(l&&null!=c&&null!==(u=c.payload)&&void 0!==u&&u.coordinate&&c.payload.sourceViewBox){var x=c.payload.coordinate,{x:O,y:E}=x,S=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(x,Fx),{x:P,y:j,width:A,height:k}=c.payload.sourceViewBox,T=Bx(Bx({},S),{},{x:l.x+(A?(O-P)/A:0)*l.width,y:l.y+(k?(E-j)/k:0)*l.height});n(Bx(Bx({},c),{},{payload:Bx(Bx({},c.payload),{},{coordinate:T})}))}else n(c)};return Rx.on(Ix,r),()=>{Rx.off(Ix,r)}},[c,n,t,e,i,a,o,l])}(),function(){var e=zc(fm),t=zc(pm),n=Ic();(0,r.useEffect)(()=>{if(null==e)return xa;var r=(r,i,a)=>{t!==a&&e===r&&n(yc(i))};return Rx.on(Nx,r),()=>{Rx.off(Nx,r)}},[n,t,e])}()}var qx=(0,r.createContext)(null),Wx=(0,r.createContext)(null);function Hx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Kx(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hx(Object(r),!0).forEach(function(t){Vx(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hx(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Vx(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yx(){return Yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Yx.apply(null,arguments)}var Gx=()=>($x(),null);function Xx(e){if("number"==typeof e)return e;if("string"==typeof e){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var Zx=(0,r.forwardRef)((e,t)=>{var n,i,a=(0,r.useRef)(null),[o,l]=(0,r.useState)({containerWidth:Xx(null===(n=e.style)||void 0===n?void 0:n.width),containerHeight:Xx(null===(i=e.style)||void 0===i?void 0:i.height)}),c=(0,r.useCallback)((e,t)=>{l(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]),s=(0,r.useCallback)(e=>{if("function"==typeof t&&t(e),null!=e&&"undefined"!=typeof ResizeObserver){var{width:r,height:n}=e.getBoundingClientRect();c(r,n);var i=new ResizeObserver(e=>{var{width:t,height:r}=e[0].contentRect;c(t,r)});i.observe(e),a.current=i}},[t,c]);return(0,r.useEffect)(()=>()=>{var e=a.current;null!=e&&e.disconnect()},[c]),r.createElement(r.Fragment,null,r.createElement(Ls,{width:o.containerWidth,height:o.containerHeight}),r.createElement("div",Yx({ref:s},e)))}),Jx=(0,r.forwardRef)((e,t)=>{var{width:n,height:i}=e,[a,o]=(0,r.useState)({containerWidth:Xx(n),containerHeight:Xx(i)}),l=(0,r.useCallback)((e,t)=>{o(r=>{var n=Math.round(e),i=Math.round(t);return r.containerWidth===n&&r.containerHeight===i?r:{containerWidth:n,containerHeight:i}})},[]),c=(0,r.useCallback)(e=>{if("function"==typeof t&&t(e),null!=e){var{width:r,height:n}=e.getBoundingClientRect();l(r,n)}},[t,l]);return r.createElement(r.Fragment,null,r.createElement(Ls,{width:a.containerWidth,height:a.containerHeight}),r.createElement("div",Yx({ref:c},e)))}),Qx=(0,r.forwardRef)((e,t)=>{var{width:n,height:i}=e;return r.createElement(r.Fragment,null,r.createElement(Ls,{width:n,height:i}),r.createElement("div",Yx({ref:t},e)))}),eO=(0,r.forwardRef)((e,t)=>{var{width:n,height:i}=e;return sa(n)||sa(i)?r.createElement(Jx,Yx({},e,{ref:t})):r.createElement(Qx,Yx({},e,{ref:t}))}),tO=(0,r.forwardRef)((e,t)=>{var{children:n,className:i,height:a,onClick:o,onContextMenu:l,onDoubleClick:c,onMouseDown:s,onMouseEnter:u,onMouseLeave:f,onMouseMove:d,onMouseUp:p,onTouchEnd:h,onTouchMove:m,onTouchStart:y,style:v,width:g,responsive:b,dispatchTouchEvents:w=!0}=e,x=(0,r.useRef)(null),O=Ic(),[E,S]=(0,r.useState)(null),[P,j]=(0,r.useState)(null),A=function(){var e=Ic(),[t,n]=(0,r.useState)(null),i=zc(ms);return(0,r.useEffect)(()=>{if(null!=t){var r=t.getBoundingClientRect().width/t.offsetWidth;Ta(r)&&r!==i&&e(Ec(r))}},[t,e,i]),n}(),k=La(),T=(null==k?void 0:k.width)>0?k.width:g,C=(null==k?void 0:k.height)>0?k.height:a,M=(0,r.useCallback)(e=>{A(e),"function"==typeof t&&t(e),S(e),j(e),null!=e&&(x.current=e)},[A,t,S,j]),_=(0,r.useCallback)(e=>{O(Pb(e)),O(Rw({handler:o,reactEvent:e}))},[O,o]),D=(0,r.useCallback)(e=>{O(Ab(e)),O(Rw({handler:u,reactEvent:e}))},[O,u]),R=(0,r.useCallback)(e=>{O(lc()),O(Rw({handler:f,reactEvent:e}))},[O,f]),I=(0,r.useCallback)(e=>{O(Ab(e)),O(Rw({handler:d,reactEvent:e}))},[O,d]),N=(0,r.useCallback)(()=>{O(_w())},[O]),L=(0,r.useCallback)(e=>{O(Mw(e.key))},[O]),F=(0,r.useCallback)(e=>{O(Rw({handler:l,reactEvent:e}))},[O,l]),z=(0,r.useCallback)(e=>{O(Rw({handler:c,reactEvent:e}))},[O,c]),B=(0,r.useCallback)(e=>{O(Rw({handler:s,reactEvent:e}))},[O,s]),U=(0,r.useCallback)(e=>{O(Rw({handler:p,reactEvent:e}))},[O,p]),$=(0,r.useCallback)(e=>{O(Rw({handler:y,reactEvent:e}))},[O,y]),q=(0,r.useCallback)(e=>{w&&O(zw(e)),O(Rw({handler:m,reactEvent:e}))},[O,w,m]),W=(0,r.useCallback)(e=>{O(Rw({handler:h,reactEvent:e}))},[O,h]),H=function(e){return!0===e?Zx:eO}(b);return r.createElement(qx.Provider,{value:E},r.createElement(Wx.Provider,{value:P},r.createElement(H,{width:null!=T?T:null==v?void 0:v.width,height:null!=C?C:null==v?void 0:v.height,className:ea("recharts-wrapper",i),style:Kx({position:"relative",cursor:"default",width:T,height:C},v),onClick:_,onContextMenu:F,onDoubleClick:z,onFocus:N,onKeyDown:L,onMouseDown:B,onMouseEnter:D,onMouseLeave:R,onMouseMove:I,onMouseUp:U,onTouchEnd:W,onTouchMove:q,onTouchStart:$,ref:M},r.createElement(Gx,null),n)))}),rO=Cc([Os],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),nO=Cc([rO,ps,hs],(e,t,r)=>{if(e&&null!=t&&null!=r)return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,r-e.top-e.bottom)}}),iO=()=>zc(nO),aO=(0,r.createContext)(void 0),oO=e=>{var{children:t}=e,[n]=(0,r.useState)("".concat(pa("recharts"),"-clip")),i=iO();if(null==i)return null;var{x:a,y:o,width:l,height:c}=i;return r.createElement(aO.Provider,{value:n},r.createElement("defs",null,r.createElement("clipPath",{id:n},r.createElement("rect",{x:a,y:o,height:c,width:l}))),t)},lO=["width","height","responsive","children","className","style","compact","title","desc"],cO=(0,r.forwardRef)((e,t)=>{var{width:n,height:i,responsive:a,children:o,className:l,style:c,compact:s,title:u,desc:f}=e,d=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,lO),p=gx(d);return s?r.createElement(r.Fragment,null,r.createElement(Ls,{width:n,height:i}),r.createElement(Dx,{otherAttributes:p,title:u,desc:f},o)):r.createElement(tO,{className:l,style:c,width:n,height:i,responsive:null!=a&&a,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},r.createElement(Dx,{otherAttributes:p,title:u,desc:f,ref:t},r.createElement(oO,null,o)))});function sO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function uO(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fO(e,t){var r=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sO(Object(r),!0).forEach(function(t){uO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e),n=t;return Object.keys(t).reduce((e,t)=>(void 0===e[t]&&void 0!==n[t]&&(e[t]=n[t]),e),r)}function dO(){return dO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dO.apply(null,arguments)}var pO={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},hO=(0,r.forwardRef)(function(e,t){var n,i=fO(e.categoricalChartProps,pO),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:c,categoricalChartProps:s}=e,u={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:l,tooltipPayloadSearcher:c,eventEmitter:void 0};return r.createElement(ix,{preloadedState:{options:u},reduxStoreName:null!==(n=s.id)&&void 0!==n?n:a},r.createElement(ax,{chartData:s.data}),r.createElement(ux,{layout:i.layout,margin:i.margin}),r.createElement(fx,{baseValue:i.baseValue,accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className,reverseStackOrder:i.reverseStackOrder}),r.createElement(cO,dO({},i,{ref:t})))}),mO=["axis"],yO=(0,r.forwardRef)((e,t)=>r.createElement(hO,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:mO,tooltipPayloadSearcher:Fl,categoricalChartProps:e,ref:t}));function vO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function gO(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var bO=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vO(Object(r),!0).forEach(function(t){gO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{cacheSize:2e3,enableCache:!0}),wO=new class{constructor(e){(function(e,t,r){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r})(this,"cache",new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return void 0!==t&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;null!=r&&this.cache.delete(r)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}(bO.cacheSize),xO={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},OO="recharts_measurement_span",EO=(e,t)=>{try{var r=document.getElementById(OO);r||((r=document.createElement("span")).setAttribute("id",OO),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),Object.assign(r.style,xO,t),r.textContent="".concat(e);var n=r.getBoundingClientRect();return{width:n.width,height:n.height}}catch(e){return{width:0,height:0}}},SO=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Kw)return{width:0,height:0};if(!bO.enableCache)return EO(e,t);var r=function(e,t){var r=t.fontSize||"",n=t.fontFamily||"",i=t.fontWeight||"",a=t.fontStyle||"",o=t.letterSpacing||"",l=t.textTransform||"";return"".concat(e,"|").concat(r,"|").concat(n,"|").concat(i,"|").concat(a,"|").concat(o,"|").concat(l)}(e,t),n=wO.get(r);if(n)return n;var i=EO(e,t);return wO.set(r,i),i};class PO{static create(e){return new PO(e)}constructor(e){this.scale=e}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(e){var{bandAware:t,position:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var n=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+n;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(t){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}isInRange(e){var t=this.range(),r=t[0],n=t[t.length-1];return r<=n?e>=r&&e<=n:e>=n&&e<=r}}function jO(e,t){if(t<1)return[];if(1===t)return e;for(var r=[],n=0;n<e.length;n+=t){var i=e[n];void 0!==i&&r.push(i)}return r}function AO(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function kO(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function TO(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kO(Object(r),!0).forEach(function(t){CO(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kO(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function CO(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MO(e,t,r){var n,{tick:i,ticks:a,viewBox:o,minTickGap:l,orientation:c,interval:s,tickFormatter:u,unit:f,angle:d}=e;if(!a||!a.length||!i)return[];if(ua(s)||Kw)return null!==(n=function(e,t){return jO(e,t+1)}(a,ua(s)?s:0))&&void 0!==n?n:[];var p=[],h="top"===c||"bottom"===c?"width":"height",m=f&&"width"===h?SO(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=(e,n)=>{var i="function"==typeof u?u(e.value,n):e.value;return"width"===h?function(e,t,r){return function(e){var{width:t,height:r}=e,n=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),i=n*Math.PI/180,a=Math.atan(r/t),o=i>a&&i<Math.PI-a?r/Math.sin(i):t/Math.cos(i);return Math.abs(o)}({width:e.width+t.width,height:e.height+t.height},r)}(SO(i,{fontSize:t,letterSpacing:r}),m,d):SO(i,{fontSize:t,letterSpacing:r})[h]},v=a.length>=2?la(a[1].coordinate-a[0].coordinate):1,g=function(e,t,r){var n="width"===r,{x:i,y:a,width:o,height:l}=e;return 1===t?{start:n?i:a,end:n?i+o:a+l}:{start:n?i+o:a+l,end:n?i:a}}(o,v,h);return"equidistantPreserveStart"===s?function(e,t,r,n,i){for(var a,o=(n||[]).slice(),{start:l,end:c}=t,s=0,u=1,f=l,d=function(){var t=null==n?void 0:n[s];if(void 0===t)return{v:jO(n,u)};var a,o=s,d=()=>(void 0===a&&(a=r(t,o)),a),p=t.coordinate,h=0===s||AO(e,p,d,f,c);h||(s=0,f=l,u+=1),h&&(f=p+e*(d()/2+i),s+=u)};u<=o.length;)if(a=d())return a.v;return[]}(v,g,y,a,l):"equidistantPreserveEnd"===s?function(e,t,r,n,i){var a=(n||[]).slice().length;if(0===a)return[];for(var{start:o,end:l}=t,c=1;c<=a;c++){for(var s=(a-1)%c,u=o,f=!0,d=function(){var t,a=n[p],o=p,c=()=>(void 0===t&&(t=r(a,o)),t),d=a.coordinate,h=p===s||AO(e,d,c,u,l);if(!h)return f=!1,1;h&&(u=d+e*(c()/2+i))},p=s;p<a&&!d();p+=c);if(f){for(var h=[],m=s;m<a;m+=c)h.push(n[m]);return h}}return[]}(v,g,y,a,l):(p="preserveStart"===s||"preserveStartEnd"===s?function(e,t,r,n,i,a){var o=(n||[]).slice(),l=o.length,{start:c,end:s}=t;if(a){var u=n[l-1],f=r(u,l-1),d=e*(u.coordinate+e*f/2-s);o[l-1]=u=TO(TO({},u),{},{tickCoord:d>0?u.coordinate-d*e:u.coordinate}),null!=u.tickCoord&&AO(e,u.tickCoord,()=>f,c,s)&&(s=u.tickCoord-e*(f/2+i),o[l-1]=TO(TO({},u),{},{isShow:!0}))}for(var p=a?l-1:l,h=function(t){var n,a=o[t],l=()=>(void 0===n&&(n=r(a,t)),n);if(0===t){var u=e*(a.coordinate-e*l()/2-c);o[t]=a=TO(TO({},a),{},{tickCoord:u<0?a.coordinate-u*e:a.coordinate})}else o[t]=a=TO(TO({},a),{},{tickCoord:a.coordinate});null!=a.tickCoord&&AO(e,a.tickCoord,l,c,s)&&(c=a.tickCoord+e*(l()/2+i),o[t]=TO(TO({},a),{},{isShow:!0}))},m=0;m<p;m++)h(m);return o}(v,g,y,a,l,"preserveStartEnd"===s):function(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,{start:l}=t,{end:c}=t,s=function(t){var n,s=a[t],u=()=>(void 0===n&&(n=r(s,t)),n);if(t===o-1){var f=e*(s.coordinate+e*u()/2-c);a[t]=s=TO(TO({},s),{},{tickCoord:f>0?s.coordinate-f*e:s.coordinate})}else a[t]=s=TO(TO({},s),{},{tickCoord:s.coordinate});null!=s.tickCoord&&AO(e,s.tickCoord,u,l,c)&&(c=s.tickCoord-e*(u()/2+i),a[t]=TO(TO({},s),{},{isShow:!0}))},u=o-1;u>=0;u--)s(u);return a}(v,g,y,a,l),p.filter(e=>e.isShow))}!function(e,t,r){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}(PO,"EPS",1e-4);var _O=["children","className"];function DO(){return DO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},DO.apply(null,arguments)}var RO=r.forwardRef((e,t)=>{var{children:n,className:i}=e,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,_O),o=ea("recharts-layer",i);return r.createElement("g",DO({className:o},wx(a),{ref:t}),n)}),IO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,NO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,LO=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,FO=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,zO={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},BO=["cm","mm","pt","pc","in","Q","px"],UO="NaN";class $O{static parse(e){var t,[,r,n]=null!==(t=FO.exec(e))&&void 0!==t?t:[];return null==r?$O.NaN:new $O(parseFloat(r),null!=n?n:"")}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,ca(e)&&(this.unit=""),""===t||LO.test(t)||(this.num=NaN,this.unit=""),function(e){return BO.includes(e)}(t)&&(this.num=function(e,t){return e*zO[t]}(e,t),this.unit="px")}add(e){return this.unit!==e.unit?new $O(NaN,""):new $O(this.num+e.num,this.unit)}subtract(e){return this.unit!==e.unit?new $O(NaN,""):new $O(this.num-e.num,this.unit)}multiply(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new $O(NaN,""):new $O(this.num*e.num,this.unit||e.unit)}divide(e){return""!==this.unit&&""!==e.unit&&this.unit!==e.unit?new $O(NaN,""):new $O(this.num/e.num,this.unit||e.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return ca(this.num)}}function qO(e){if(null==e||e.includes(UO))return UO;for(var t=e;t.includes("*")||t.includes("/");){var r,[,n,i,a]=null!==(r=IO.exec(t))&&void 0!==r?r:[],o=$O.parse(null!=n?n:""),l=$O.parse(null!=a?a:""),c="*"===i?o.multiply(l):o.divide(l);if(c.isNaN())return UO;t=t.replace(IO,c.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var s,[,u,f,d]=null!==(s=NO.exec(t))&&void 0!==s?s:[],p=$O.parse(null!=u?u:""),h=$O.parse(null!=d?d:""),m="+"===f?p.add(h):p.subtract(h);if(m.isNaN())return UO;t=t.replace(NO,m.toString())}return t}!function(e,t,r){(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}($O,"NaN",new $O(NaN,""));var WO=/\(([^()]*)\)/;function HO(e){var t=function(e){try{return function(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t,r=e;null!=(t=WO.exec(r));){var[,n]=t;r=r.replace(WO,qO(n))}return r}(t),qO(t)}(e)}catch(e){return UO}}(e.slice(5,-1));return t===UO?"":t}var KO=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],VO=["dx","dy","angle","className","breakAll"];function YO(){return YO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},YO.apply(null,arguments)}function GO(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var XO=/[ \f\n\r\t\v\u2028\u2029]+/,ZO=e=>{var{children:t,breakAll:r,style:n}=e;try{var i=[];return ga(t)||(i=r?t.toString().split(""):t.toString().split(XO)),{wordsWithComputedWidth:i.map(e=>({word:e,width:SO(e,n).width})),spaceWidth:r?0:SO(" ",n).width}}catch(e){return null}};function JO(e){return"start"===e||"middle"===e||"end"===e||"inherit"===e}var QO=(e,t,r,n)=>e.reduce((e,i)=>{var{word:a,width:o}=i,l=e[e.length-1];if(l&&null!=o&&(null==t||n||l.width+o+r<Number(t)))l.words.push(a),l.width+=o+r;else{var c={words:[a],width:o};e.push(c)}return e},[]),eE=e=>e.reduce((e,t)=>e.width>t.width?e:t),tE=(e,t,r,n,i,a,o,l)=>{var c=e.slice(0,t),s=ZO({breakAll:r,style:n,children:c+"…"});if(!s)return[!1,[]];var u=QO(s.wordsWithComputedWidth,a,o,l);return[u.length>i||eE(u).width>Number(a),u]},rE=e=>[{words:ga(e)?[]:e.toString().split(XO),width:void 0}],nE="#808080",iE={angle:0,breakAll:!1,capHeight:"0.71em",fill:nE,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},aE=(0,r.forwardRef)((e,t)=>{var n=fO(e,iE),{x:i,y:a,lineHeight:o,capHeight:l,fill:c,scaleToFit:s,textAnchor:u,verticalAnchor:f}=n,d=GO(n,KO),p=(0,r.useMemo)(()=>(e=>{var{width:t,scaleToFit:r,children:n,style:i,breakAll:a,maxLines:o}=e;if((t||r)&&!Kw){var l=ZO({breakAll:a,children:n,style:i});if(!l)return rE(n);var{wordsWithComputedWidth:c,spaceWidth:s}=l;return((e,t,r,n,i)=>{var{maxLines:a,children:o,style:l,breakAll:c}=e,s=ua(a),u=String(o),f=QO(t,n,r,i);if(!s||i)return f;if(!(f.length>a||eE(f).width>Number(n)))return f;for(var d,p=0,h=u.length-1,m=0;p<=h&&m<=u.length-1;){var y=Math.floor((p+h)/2),v=y-1,[g,b]=tE(u,v,c,l,a,n,r,i),[w]=tE(u,y,c,l,a,n,r,i);if(g||w||(p=y+1),g&&w&&(h=y-1),!g&&w){d=b;break}m++}return d||f})({breakAll:a,children:n,maxLines:o,style:i},c,s,t,Boolean(r))}return rE(n)})({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:s,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,s,d.style,d.width]),{dx:h,dy:m,angle:y,className:v,breakAll:g}=d,b=GO(d,VO);if(!fa(i)||!fa(a)||0===p.length)return null;var w,x=Number(i)+(ua(h)?h:0),O=Number(a)+(ua(m)?m:0);if(!Ta(x)||!Ta(O))return null;switch(f){case"start":w=HO("calc(".concat(l,")"));break;case"middle":w=HO("calc(".concat((p.length-1)/2," * -").concat(o," + (").concat(l," / 2))"));break;default:w=HO("calc(".concat(p.length-1," * -").concat(o,")"))}var E=[];if(s){var S=p[0].width,{width:P}=d;E.push("scale(".concat(ua(P)&&ua(S)?P/S:1,")"))}return y&&E.push("rotate(".concat(y,", ").concat(x,", ").concat(O,")")),E.length&&(b.transform=E.join(" ")),r.createElement("text",YO({},wx(b),{ref:t,x,y:O,className:ea("recharts-text",v),textAnchor:u,fill:c.includes("url")?nE:c}),p.map((e,t)=>{var n=e.words.join(g?"":" ");return r.createElement("tspan",{x,dy:0===t?w:o,key:"".concat(n,"-").concat(t)},n)}))});function oE(e){var{zIndex:t,children:n}=e,i=void 0!==Ns()&&void 0!==t&&0!==t,a=js(),o=Ic();(0,r.useLayoutEffect)(()=>i?(o(Qw({zIndex:t})),()=>{o(ex({zIndex:t}))}):xa,[o,t,i]);var l=zc(e=>Sx(e,t,a));return i?l?(0,r.createPortal)(n,l):null:n}aE.displayName="Text";var lE=["labelRef"],cE=["content"];function sE(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function uE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function fE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uE(Object(r),!0).forEach(function(t){dE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function dE(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pE(){return pE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pE.apply(null,arguments)}var hE=(0,r.createContext)(null),mE=e=>{var{x:t,y:n,upperWidth:i,lowerWidth:a,width:o,height:l,children:c}=e,s=(0,r.useMemo)(()=>({x:t,y:n,upperWidth:i,lowerWidth:a,width:o,height:l}),[t,n,i,a,o,l]);return r.createElement(hE.Provider,{value:s},c)},yE=()=>{var e=(0,r.useContext)(hE),t=Cs();return e||Ts(t)},vE=(0,r.createContext)(null),gE=e=>null!=e&&"function"==typeof e,bE=e=>"cx"in e&&ua(e.cx),wE={angle:0,offset:5,zIndex:Om.label,position:"middle",textBreakAll:!1};function xE(e){var t,n,i,a,o,l=fO(e,wE),{viewBox:c,position:s,value:u,children:f,content:d,className:p="",textBreakAll:h,labelRef:m}=l,y=(a=(0,r.useContext)(vE),o=zc($m),a||o),v=yE();if(!(t=null==c?"center"===s?v:null!=y?y:v:bE(c)?c:Ts(c))||ga(u)&&ga(f)&&!(0,r.isValidElement)(d)&&"function"!=typeof d)return null;var g=fE(fE({},l),{},{viewBox:t});if((0,r.isValidElement)(d)){var{labelRef:b}=g,w=sE(g,lE);return(0,r.cloneElement)(d,w)}if("function"==typeof d){var{content:x}=g,O=sE(g,cE);if(n=(0,r.createElement)(d,O),(0,r.isValidElement)(n))return n}else n=(e=>{var{value:t,formatter:r}=e,n=ga(e.children)?t:e.children;return"function"==typeof r?r(n):n})(l);var E=wx(l);if(bE(t)){if("insideStart"===s||"insideEnd"===s||"end"===s)return((e,t,n,i,a)=>{var o,l,{offset:c,className:s}=e,{cx:u,cy:f,innerRadius:d,outerRadius:p,startAngle:h,endAngle:m,clockWise:y}=a,v=(d+p)/2,g=((e,t)=>la(t-e)*Math.min(Math.abs(t-e),360))(h,m),b=g>=0?1:-1;switch(t){case"insideStart":o=h+b*c,l=y;break;case"insideEnd":o=m-b*c,l=!y;break;case"end":o=m+b*c,l=y;break;default:throw new Error("Unsupported position ".concat(t))}l=g<=0?l:!l;var w=bm(u,f,v,o),x=bm(u,f,v,o+359*(l?1:-1)),O="M".concat(w.x,",").concat(w.y,"\n A").concat(v,",").concat(v,",0,1,").concat(l?0:1,",\n ").concat(x.x,",").concat(x.y),E=ga(e.id)?pa("recharts-radial-line-"):e.id;return r.createElement("text",pE({},i,{dominantBaseline:"central",className:ea("recharts-radial-bar-label",s)}),r.createElement("defs",null,r.createElement("path",{id:E,d:O})),r.createElement("textPath",{xlinkHref:"#".concat(E)},n))})(l,s,n,E,t);i=((e,t,r)=>{var{cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:l,endAngle:c}=e,s=(l+c)/2;if("outside"===r){var{x:u,y:f}=bm(n,i,o+t,s);return{x:u,y:f,textAnchor:u>=n?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:n,y:i,textAnchor:"middle",verticalAnchor:"end"};var d=(a+o)/2,{x:p,y:h}=bm(n,i,d,s);return{x:p,y:h,textAnchor:"middle",verticalAnchor:"middle"}})(t,l.offset,l.position)}else i=((e,t)=>{var r,{parentViewBox:n,offset:i,position:a}=e;null==n||bE(n)||(r=n);var{x:o,y:l,upperWidth:c,lowerWidth:s,height:u}=t,f=o,d=o+(c-s)/2,p=(f+d)/2,h=(c+s)/2,m=f+c/2,y=u>=0?1:-1,v=y*i,g=y>0?"end":"start",b=y>0?"start":"end",w=c>=0?1:-1,x=w*i,O=w>0?"end":"start",E=w>0?"start":"end";if("top"===a)return fE(fE({},{x:f+c/2,y:l-v,textAnchor:"middle",verticalAnchor:g}),r?{height:Math.max(l-r.y,0),width:c}:{});if("bottom"===a)return fE(fE({},{x:d+s/2,y:l+u+v,textAnchor:"middle",verticalAnchor:b}),r?{height:Math.max(r.y+r.height-(l+u),0),width:s}:{});if("left"===a){var S={x:p-x,y:l+u/2,textAnchor:O,verticalAnchor:"middle"};return fE(fE({},S),r?{width:Math.max(S.x-r.x,0),height:u}:{})}if("right"===a){var P={x:p+h+x,y:l+u/2,textAnchor:E,verticalAnchor:"middle"};return fE(fE({},P),r?{width:Math.max(r.x+r.width-P.x,0),height:u}:{})}var j=r?{width:h,height:u}:{};return"insideLeft"===a?fE({x:p+x,y:l+u/2,textAnchor:E,verticalAnchor:"middle"},j):"insideRight"===a?fE({x:p+h-x,y:l+u/2,textAnchor:O,verticalAnchor:"middle"},j):"insideTop"===a?fE({x:f+c/2,y:l+v,textAnchor:"middle",verticalAnchor:b},j):"insideBottom"===a?fE({x:d+s/2,y:l+u-v,textAnchor:"middle",verticalAnchor:g},j):"insideTopLeft"===a?fE({x:f+x,y:l+v,textAnchor:E,verticalAnchor:b},j):"insideTopRight"===a?fE({x:f+c-x,y:l+v,textAnchor:O,verticalAnchor:b},j):"insideBottomLeft"===a?fE({x:d+x,y:l+u-v,textAnchor:E,verticalAnchor:g},j):"insideBottomRight"===a?fE({x:d+s-x,y:l+u-v,textAnchor:O,verticalAnchor:g},j):a&&"object"==typeof a&&(ua(a.x)||sa(a.x))&&(ua(a.y)||sa(a.y))?fE({x:o+ha(a.x,h),y:l+ha(a.y,u),textAnchor:"end",verticalAnchor:"end"},j):fE({x:m,y:l+u/2,textAnchor:"middle",verticalAnchor:"middle"},j)})(l,t);return r.createElement(oE,{zIndex:l.zIndex},r.createElement(aE,pE({ref:m,className:ea("recharts-label",p)},E,i,{textAnchor:JO(E.textAnchor)?E.textAnchor:i.textAnchor,breakAll:h}),n))}xE.displayName="Label";function OE(e){var{label:t,labelRef:n}=e;return((e,t,n)=>{if(!e)return null;var i={viewBox:t,labelRef:n};return!0===e?r.createElement(xE,pE({key:"label-implicit"},i)):fa(e)?r.createElement(xE,pE({key:"label-implicit",value:e},i)):(0,r.isValidElement)(e)?e.type===xE?(0,r.cloneElement)(e,fE({key:"label-implicit"},i)):r.createElement(xE,pE({key:"label-implicit",content:e},i)):gE(e)?r.createElement(xE,pE({key:"label-implicit",content:e},i)):e&&"object"==typeof e?r.createElement(xE,pE({},e,{key:"label-implicit"},i)):null})(t,yE(),n)||null}var EE=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,SE=(e,t)=>{if(!e||"function"==typeof e||"boolean"==typeof e)return null;var n=e;if((0,r.isValidElement)(e)&&(n=e.props),"object"!=typeof n&&"function"!=typeof n)return null;var i={};return Object.keys(n).forEach(e=>{hx(e)&&(i[e]=t||(t=>n[e](n,t)))}),i},PE=(e,t,r)=>{if(null===e||"object"!=typeof e&&"function"!=typeof e)return null;var n=null;return Object.keys(e).forEach(i=>{var a=e[i];hx(i)&&"function"==typeof a&&(n||(n={}),n[i]=((e,t,r)=>n=>(e(t,r,n),null))(a,t,r))}),n},jE=["axisLine","width","height","className","hide","ticks","axisType"];function AE(){return AE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},AE.apply(null,arguments)}function kE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function TE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kE(Object(r),!0).forEach(function(t){CE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function CE(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ME={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",zIndex:Om.axis};function _E(e){var{x:t,y:n,width:i,height:a,orientation:o,mirror:l,axisLine:c,otherSvgProps:s}=e;if(!c)return null;var u=TE(TE(TE({},s),gx(c)),{},{fill:"none"});if("top"===o||"bottom"===o){var f=+("top"===o&&!l||"bottom"===o&&l);u=TE(TE({},u),{},{x1:t,y1:n+f*a,x2:t+i,y2:n+f*a})}else{var d=+("left"===o&&!l||"right"===o&&l);u=TE(TE({},u),{},{x1:t+d*i,y1:n,x2:t+d*i,y2:n+a})}return r.createElement("line",AE({},u,{className:ea("recharts-cartesian-axis-line",ia()(c,"className"))}))}function DE(e){var t,{option:n,tickProps:i,value:a}=e,o=ea(i.className,"recharts-cartesian-axis-tick-value");if(r.isValidElement(n))t=r.cloneElement(n,TE(TE({},i),{},{className:o}));else if("function"==typeof n)t=n(TE(TE({},i),{},{className:o}));else{var l="recharts-cartesian-axis-tick-value";"boolean"!=typeof n&&(l=ea(l,null==n?void 0:n.className)),t=r.createElement(aE,AE({},i,{className:l}),a)}return t}var RE=(0,r.forwardRef)((e,t)=>{var{ticks:n=[],tick:i,tickLine:a,stroke:o,tickFormatter:l,unit:c,padding:s,tickTextProps:u,orientation:f,mirror:d,x:p,y:h,width:m,height:y,tickSize:v,tickMargin:g,fontSize:b,letterSpacing:w,getTicksConfig:x,events:O,axisType:E}=e,S=MO(TE(TE({},x),{},{ticks:n}),b,w),P=function(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}(f,d),j=function(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}(f,d),A=gx(x),k=bx(i),T={};"object"==typeof a&&(T=a);var C=TE(TE({},A),{},{fill:"none"},T),M=S.map(e=>TE({entry:e},function(e,t,r,n,i,a,o,l,c){var s,u,f,d,p,h,m=l?-1:1,y=e.tickSize||o,v=ua(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case"top":s=u=e.coordinate,h=(f=(d=r+ +!l*i)-m*y)-m*c,p=v;break;case"left":f=d=e.coordinate,p=(s=(u=t+ +!l*n)-m*y)-m*c,h=v;break;case"right":f=d=e.coordinate,p=(s=(u=t+ +l*n)+m*y)+m*c,h=v;break;default:s=u=e.coordinate,h=(f=(d=r+ +l*i)+m*y)+m*c,p=v}return{line:{x1:s,y1:f,x2:u,y2:d},tick:{x:p,y:h}}}(e,p,h,m,y,f,v,d,g))),_=M.map(e=>{var{entry:t,line:n}=e;return r.createElement(RO,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(t.value,"-").concat(t.coordinate,"-").concat(t.tickCoord)},a&&r.createElement("line",AE({},C,n,{className:ea("recharts-cartesian-axis-tick-line",ia()(a,"className"))})))}),D=M.map((e,t)=>{var{entry:n,tick:a}=e,f=TE(TE(TE(TE({textAnchor:P,verticalAnchor:j},A),{},{stroke:"none",fill:o},k),a),{},{index:t,payload:n,visibleTicksCount:S.length,tickFormatter:l,padding:s},u);return r.createElement(RO,AE({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(n.value,"-").concat(n.coordinate,"-").concat(n.tickCoord)},PE(O,n,t)),i&&r.createElement(DE,{option:i,tickProps:f,value:"".concat("function"==typeof l?l(n.value,t):n.value).concat(c||"")}))});return r.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(E,"-ticks")},D.length>0&&r.createElement(oE,{zIndex:Om.label},r.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(E,"-tick-labels"),ref:t},D)),_.length>0&&r.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(E,"-tick-lines")},_))}),IE=(0,r.forwardRef)((e,t)=>{var{axisLine:n,width:i,height:a,className:o,hide:l,ticks:c,axisType:s}=e,u=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,jE),[f,d]=(0,r.useState)(""),[p,h]=(0,r.useState)(""),m=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>{var t;return(e=>{var{ticks:t,label:r,labelGapWithTick:n=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>o&&(o=t.width)}});var l=r?r.getBoundingClientRect().width:0,c=o+(i+a)+l+(r?n:0);return Math.round(c)}return 0})({ticks:m.current,label:null===(t=e.labelRef)||void 0===t?void 0:t.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var y=(0,r.useCallback)(e=>{if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value");m.current=t;var r=t[0];if(r){var n=window.getComputedStyle(r),i=n.fontSize,a=n.letterSpacing;i===f&&a===p||(d(i),h(a))}}},[f,p]);return l||null!=i&&i<=0||null!=a&&a<=0?null:r.createElement(oE,{zIndex:e.zIndex},r.createElement(RO,{className:ea("recharts-cartesian-axis",o)},r.createElement(_E,{x:e.x,y:e.y,width:i,height:a,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:gx(e)}),r.createElement(RE,{ref:y,axisType:s,events:u,fontSize:f,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:c,unit:e.unit,width:e.width,x:e.x,y:e.y}),r.createElement(mE,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},r.createElement(OE,{label:e.label,labelRef:e.labelRef}),e.children)))}),NE=r.forwardRef((e,t)=>{var n=fO(e,ME);return r.createElement(IE,AE({},n,{ref:t}))});NE.displayName="CartesianAxis";var LE=["x1","y1","x2","y2","key"],FE=["offset"],zE=["xAxisId","yAxisId"],BE=["xAxisId","yAxisId"];function UE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function $E(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?UE(Object(r),!0).forEach(function(t){qE(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UE(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function qE(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WE(){return WE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},WE.apply(null,arguments)}function HE(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var KE=e=>{var{fill:t}=e;if(!t||"none"===t)return null;var{fillOpacity:n,x:i,y:a,width:o,height:l,ry:c}=e;return r.createElement("rect",{x:i,y:a,ry:c,width:o,height:l,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function VE(e){var t,{option:n,lineItemProps:i}=e;if(r.isValidElement(n))t=r.cloneElement(n,i);else if("function"==typeof n)t=n(i);else{var a,{x1:o,y1:l,x2:c,y2:s,key:u}=i,f=null!==(a=gx(HE(i,LE)))&&void 0!==a?a:{},{offset:d}=f,p=HE(f,FE);t=r.createElement("line",WE({},p,{x1:o,y1:l,x2:c,y2:s,fill:"none",key:u}))}return t}function YE(e){var{x:t,width:n,horizontal:i=!0,horizontalPoints:a}=e;if(!i||!a||!a.length)return null;var{xAxisId:o,yAxisId:l}=e,c=HE(e,zE),s=a.map((e,a)=>{var o=$E($E({},c),{},{x1:t,y1:e,x2:t+n,y2:e,key:"line-".concat(a),index:a});return r.createElement(VE,{key:"line-".concat(a),option:i,lineItemProps:o})});return r.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function GE(e){var{y:t,height:n,vertical:i=!0,verticalPoints:a}=e;if(!i||!a||!a.length)return null;var{xAxisId:o,yAxisId:l}=e,c=HE(e,BE),s=a.map((e,a)=>{var o=$E($E({},c),{},{x1:e,y1:t,x2:e,y2:t+n,key:"line-".concat(a),index:a});return r.createElement(VE,{option:i,lineItemProps:o,key:"line-".concat(a)})});return r.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function XE(e){var{horizontalFill:t,fillOpacity:n,x:i,y:a,width:o,height:l,horizontalPoints:c,horizontal:s=!0}=e;if(!s||!t||!t.length||null==c)return null;var u=c.map(e=>Math.round(e+a-a)).sort((e,t)=>e-t);a!==u[0]&&u.unshift(0);var f=u.map((e,c)=>{var s=u[c+1]?u[c+1]-e:a+l-e;if(s<=0)return null;var f=c%t.length;return r.createElement("rect",{key:"react-".concat(c),y:e,x:i,height:s,width:o,stroke:"none",fill:t[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function ZE(e){var{vertical:t=!0,verticalFill:n,fillOpacity:i,x:a,y:o,width:l,height:c,verticalPoints:s}=e;if(!t||!n||!n.length)return null;var u=s.map(e=>Math.round(e+a-a)).sort((e,t)=>e-t);a!==u[0]&&u.unshift(0);var f=u.map((e,t)=>{var s=u[t+1]?u[t+1]-e:a+l-e;if(s<=0)return null;var f=t%n.length;return r.createElement("rect",{key:"react-".concat(t),x:e,y:o,width:s,height:c,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return r.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var JE=(e,t)=>{var{xAxis:r,width:n,height:i,offset:a}=e;return rs(MO($E($E($E({},ME),r),{},{ticks:ns(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),a.left,a.left+a.width,t)},QE=(e,t)=>{var{yAxis:r,width:n,height:i,offset:a}=e;return rs(MO($E($E($E({},ME),r),{},{ticks:ns(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),a.top,a.top+a.height,t)},eS={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Om.grid};function tS(e){var t=Ds(),n=Rs(),i=_s(),a=$E($E({},fO(e,eS)),{},{x:ua(e.x)?e.x:i.left,y:ua(e.y)?e.y:i.top,width:ua(e.width)?e.width:i.width,height:ua(e.height)?e.height:i.height}),{xAxisId:o,yAxisId:l,x:c,y:s,width:u,height:f,syncWithTicks:d,horizontalValues:p,verticalValues:h}=a,m=js(),y=zc(e=>Wv(e,"xAxis",o,m)),v=zc(e=>Wv(e,"yAxis",l,m));if(!(Ca(u)&&Ca(f)&&ua(c)&&ua(s)))return null;var g=a.verticalCoordinatesGenerator||JE,b=a.horizontalCoordinatesGenerator||QE,{horizontalPoints:w,verticalPoints:x}=a;if(!(w&&w.length||"function"!=typeof b)){var O=p&&p.length,E=b({yAxis:v?$E($E({},v),{},{ticks:O?p:v.ticks}):void 0,width:null!=t?t:u,height:null!=n?n:f,offset:i},!!O||d);Oa(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof E,"]")),Array.isArray(E)&&(w=E)}if(!(x&&x.length||"function"!=typeof g)){var S=h&&h.length,P=g({xAxis:y?$E($E({},y),{},{ticks:S?h:y.ticks}):void 0,width:null!=t?t:u,height:null!=n?n:f,offset:i},!!S||d);Oa(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof P,"]")),Array.isArray(P)&&(x=P)}return r.createElement(oE,{zIndex:a.zIndex},r.createElement("g",{className:"recharts-cartesian-grid"},r.createElement(KE,{fill:a.fill,fillOpacity:a.fillOpacity,x:a.x,y:a.y,width:a.width,height:a.height,ry:a.ry}),r.createElement(XE,WE({},a,{horizontalPoints:w})),r.createElement(ZE,WE({},a,{verticalPoints:x})),r.createElement(YE,WE({},a,{offset:i,horizontalPoints:w,xAxis:y,yAxis:v})),r.createElement(GE,WE({},a,{offset:i,verticalPoints:x,xAxis:y,yAxis:v}))))}tS.displayName="CartesianGrid";var rS=["domain","range"],nS=["domain","range"];function iS(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function aS(e,t){return e===t||!(!Array.isArray(e)||2!==e.length||!Array.isArray(t)||2!==t.length)&&e[0]===t[0]&&e[1]===t[1]}function oS(e,t){if(e===t)return!0;var{domain:r,range:n}=e,i=iS(e,rS),{domain:a,range:o}=t,l=iS(t,nS);return!!aS(r,a)&&!!aS(n,o)&&cx(i,l)}var lS=["dangerouslySetInnerHTML","ticks","scale"],cS=["id","scale"];function sS(){return sS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sS.apply(null,arguments)}function uS(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function fS(e){var t=Ic(),n=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{null===n.current?t(Ib(e)):n.current!==e&&t(Nb({prev:n.current,next:e})),n.current=e},[e,t]),(0,r.useLayoutEffect)(()=>()=>{n.current&&(t(Lb(n.current)),n.current=null)},[t]),null}var dS=e=>{var{xAxisId:t,className:n}=e,i=zc(Ss),a=js(),o="xAxis",l=zc(e=>Hv(e,o,t,a)),c=zc(e=>Rv(e,t)),s=zc(e=>Lv(e,t)),u=zc(e=>ny(e,t));if(null==c||null==s||null==u)return null;var{dangerouslySetInnerHTML:f,ticks:d,scale:p}=e,h=uS(e,lS),{id:m,scale:y}=u,v=uS(u,cS);return r.createElement(NE,sS({},h,v,{x:s.x,y:s.y,width:c.width,height:c.height,className:ea("recharts-".concat(o," ").concat(o),n),viewBox:i,ticks:l,axisType:o}))},pS={allowDataOverflow:ry.allowDataOverflow,allowDecimals:ry.allowDecimals,allowDuplicatedCategory:ry.allowDuplicatedCategory,angle:ry.angle,axisLine:ME.axisLine,height:ry.height,hide:!1,includeHidden:ry.includeHidden,interval:ry.interval,minTickGap:ry.minTickGap,mirror:ry.mirror,orientation:ry.orientation,padding:ry.padding,reversed:ry.reversed,scale:ry.scale,tick:ry.tick,tickCount:ry.tickCount,tickLine:ME.tickLine,tickSize:ME.tickSize,type:ry.type,xAxisId:0},hS=e=>{var t=fO(e,pS);return r.createElement(r.Fragment,null,r.createElement(fS,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),r.createElement(dS,t))},mS=r.memo(hS,oS);mS.displayName="XAxis";var yS=["dangerouslySetInnerHTML","ticks","scale"],vS=["id","scale"];function gS(){return gS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gS.apply(null,arguments)}function bS(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function wS(e){var t=Ic(),n=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{null===n.current?t(Fb(e)):n.current!==e&&t(zb({prev:n.current,next:e})),n.current=e},[e,t]),(0,r.useLayoutEffect)(()=>()=>{n.current&&(t(Bb(n.current)),n.current=null)},[t]),null}var xS=e=>{var{yAxisId:t,className:n,width:i,label:a}=e,o=(0,r.useRef)(null),l=(0,r.useRef)(null),c=zc(Ss),s=js(),u=Ic(),f="yAxis",d=zc(e=>zv(e,t)),p=zc(e=>Fv(e,t)),h=zc(e=>Hv(e,f,t,s)),m=zc(e=>oy(e,t));if((0,r.useLayoutEffect)(()=>{if("auto"===i&&d&&!gE(a)&&!(0,r.isValidElement)(a)&&null!=m){var e=o.current;if(e){var n=e.getCalculatedWidth();Math.round(d.width)!==Math.round(n)&&u(Wb({id:t,width:n}))}}},[h,d,u,a,t,i,m]),null==d||null==p||null==m)return null;var{dangerouslySetInnerHTML:y,ticks:v,scale:g}=e,b=bS(e,yS),{id:w,scale:x}=m,O=bS(m,vS);return r.createElement(NE,gS({},b,O,{ref:o,labelRef:l,x:p.x,y:p.y,tickTextProps:"auto"===i?{width:void 0}:{width:i},width:d.width,height:d.height,className:ea("recharts-".concat(f," ").concat(f),n),viewBox:c,ticks:h,axisType:f}))},OS={allowDataOverflow:ay.allowDataOverflow,allowDecimals:ay.allowDecimals,allowDuplicatedCategory:ay.allowDuplicatedCategory,angle:ay.angle,axisLine:ME.axisLine,hide:!1,includeHidden:ay.includeHidden,interval:ay.interval,minTickGap:ay.minTickGap,mirror:ay.mirror,orientation:ay.orientation,padding:ay.padding,reversed:ay.reversed,scale:ay.scale,tick:ay.tick,tickCount:ay.tickCount,tickLine:ME.tickLine,tickSize:ME.tickSize,type:ay.type,width:ay.width,yAxisId:0},ES=e=>{var t=fO(e,OS);return r.createElement(r.Fragment,null,r.createElement(wS,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),r.createElement(xS,t))},SS=r.memo(ES,oS);function PS(){return PS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},PS.apply(null,arguments)}function jS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function AS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jS(Object(r),!0).forEach(function(t){kS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function kS(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function TS(e){return Array.isArray(e)&&fa(e[0])&&fa(e[1])?e.join(" ~ "):e}SS.displayName="YAxis";var CS=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:i={},labelStyle:a={},payload:o,formatter:l,itemSorter:c,wrapperClassName:s,labelClassName:u,label:f,labelFormatter:d,accessibilityLayer:p=!1}=e,h=AS({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),m=AS({margin:0},a),y=!ga(f),v=y?f:"",g=ea("recharts-default-tooltip",s),b=ea("recharts-tooltip-label",u);y&&d&&null!=o&&(v=d(f,o));var w=p?{role:"status","aria-live":"assertive"}:{};return r.createElement("div",PS({className:g,style:h},w),r.createElement("p",{className:b,style:m},r.isValidElement(v)?v:"".concat(v)),(()=>{if(o&&o.length){var e=(c?Uc()(o,c):o).map((e,n)=>{if("none"===e.type)return null;var a=e.formatter||l||TS,{value:c,name:s}=e,u=c,f=s;if(a){var d=a(c,s,e,n,o);if(Array.isArray(d))[u,f]=d;else{if(null==d)return null;u=d}}var p=AS({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},i);return r.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(n),style:p},fa(f)?r.createElement("span",{className:"recharts-tooltip-item-name"},f):null,fa(f)?r.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,r.createElement("span",{className:"recharts-tooltip-item-value"},u),r.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))});return r.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null})())},MS="recharts-tooltip-wrapper",_S={visibility:"hidden"};function DS(e){var{coordinate:t,translateX:r,translateY:n}=e;return ea(MS,{["".concat(MS,"-right")]:ua(r)&&t&&ua(t.x)&&r>=t.x,["".concat(MS,"-left")]:ua(r)&&t&&ua(t.x)&&r<t.x,["".concat(MS,"-bottom")]:ua(n)&&t&&ua(t.y)&&n>=t.y,["".concat(MS,"-top")]:ua(n)&&t&&ua(t.y)&&n<t.y})}function RS(e){var{allowEscapeViewBox:t,coordinate:r,key:n,offsetTopLeft:i,position:a,reverseDirection:o,tooltipDimension:l,viewBox:c,viewBoxDimension:s}=e;if(a&&ua(a[n]))return a[n];var u=r[n]-l-(i>0?i:0),f=r[n]+i;if(t[n])return o[n]?u:f;var d=c[n];return null==d?0:o[n]?u<d?Math.max(f,d):Math.max(u,d):null==s?0:f+l>d+s?Math.max(u,d):Math.max(f,d)}function IS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function NS(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?IS(Object(r),!0).forEach(function(t){LS(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IS(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function LS(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class FS extends r.PureComponent{constructor(){super(...arguments),LS(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),LS(this,"handleKeyDown",e=>{var t,r,n,i;"Escape"===e.key&&this.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(t=null===(r=this.props.coordinate)||void 0===r?void 0:r.x)&&void 0!==t?t:0,y:null!==(n=null===(i=this.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==n?n:0}})})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var e,t;this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}render(){var{active:e,allowEscapeViewBox:t,animationDuration:n,animationEasing:i,children:a,coordinate:o,hasPayload:l,isAnimationActive:c,offset:s,position:u,reverseDirection:f,useTranslate3d:d,viewBox:p,wrapperStyle:h,lastBoundingBox:m,innerRef:y,hasPortalFromProps:v}=this.props,{cssClasses:g,cssProperties:b}=function(e){var t,r,n,{allowEscapeViewBox:i,coordinate:a,offsetTopLeft:o,position:l,reverseDirection:c,tooltipBox:s,useTranslate3d:u,viewBox:f}=e;return t=s.height>0&&s.width>0&&a?function(e){var{translateX:t,translateY:r,useTranslate3d:n}=e;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}({translateX:r=RS({allowEscapeViewBox:i,coordinate:a,key:"x",offsetTopLeft:o,position:l,reverseDirection:c,tooltipDimension:s.width,viewBox:f,viewBoxDimension:f.width}),translateY:n=RS({allowEscapeViewBox:i,coordinate:a,key:"y",offsetTopLeft:o,position:l,reverseDirection:c,tooltipDimension:s.height,viewBox:f,viewBoxDimension:f.height}),useTranslate3d:u}):_S,{cssProperties:t,cssClasses:DS({translateX:r,translateY:n,coordinate:a})}}({allowEscapeViewBox:t,coordinate:o,offsetTopLeft:s,position:u,reverseDirection:f,tooltipBox:{height:m.height,width:m.width},useTranslate3d:d,viewBox:p}),w=v?{}:NS(NS({transition:c&&e?"transform ".concat(n,"ms ").concat(i):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&e&&l?"visible":"hidden",position:"absolute",top:0,left:0}),x=NS(NS({},w),{},{visibility:!this.state.dismissed&&e&&l?"visible":"hidden"},h);return r.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:g,style:x,ref:y},a)}}var zS=n(2726),BS=n.n(zS);function US(e,t,r){return!0===t?BS()(e,r):"function"==typeof t?BS()(e,t):e}function $S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],[t,n]=(0,r.useState)({height:0,left:0,top:0,width:0}),i=(0,r.useCallback)(e=>{if(null!=e){var r=e.getBoundingClientRect(),i={height:r.height,left:r.left,top:r.top,width:r.width};(Math.abs(i.height-t.height)>1||Math.abs(i.left-t.left)>1||Math.abs(i.top-t.top)>1||Math.abs(i.width-t.width)>1)&&n({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,i]}function qS(){}function WS(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function HS(e){this._context=e}function KS(e){this._context=e}function VS(e){this._context=e}HS.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:WS(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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);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:WS(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},KS.prototype={areaStart:qS,areaEnd:qS,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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:WS(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},VS.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(e,t){switch(e=+e,t=+t,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+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:WS(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class YS{constructor(e,t){this._context=e,this._x=t}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(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function GS(e){this._context=e}function XS(e){this._context=e}function ZS(e){return new XS(e)}function JS(e){return e<0?-1:1}function QS(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),l=(a*i+o*n)/(n+i);return(JS(a)+JS(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function eP(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function tP(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-n)/3;e._context.bezierCurveTo(n+l,i+l*t,a-l,o-l*r,a,o)}function rP(e){this._context=e}function nP(e){this._context=new iP(e)}function iP(e){this._context=e}function aP(e){this._context=e}function oP(e){var t,r,n=e.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function lP(e,t){this._context=e,this._t=t}GS.prototype={areaStart:qS,areaEnd:qS,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},XS.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},rP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:tP(this,this._t0,eP(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,tP(this,eP(this,r=QS(this,e,t)),r);break;default:tP(this,this._t0,r=QS(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(nP.prototype=Object.create(rP.prototype)).point=function(e,t){rP.prototype.point.call(this,t,e)},iP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}},aP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=oP(e),i=oP(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},lP.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};const cP=Math.PI,sP=2*cP,uP=1e-6,fP=sP-uP;function dP(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class pP{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?dP:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return dP;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,i,a){this._append`C${+e},${+t},${+r},${+n},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,r,n,i){if(e=+e,t=+t,r=+r,n=+n,(i=+i)<0)throw new Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,l=r-e,c=n-t,s=a-e,u=o-t,f=s*s+u*u;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>uP)if(Math.abs(u*l-c*s)>uP&&i){let d=r-a,p=n-o,h=l*l+c*c,m=d*d+p*p,y=Math.sqrt(h),v=Math.sqrt(f),g=i*Math.tan((cP-Math.acos((h+f-m)/(2*y*v)))/2),b=g/v,w=g/y;Math.abs(b-1)>uP&&this._append`L${e+b*s},${t+b*u}`,this._append`A${i},${i},0,0,${+(u*d>s*p)},${this._x1=e+w*l},${this._y1=t+w*c}`}else this._append`L${this._x1=e},${this._y1=t}`}arc(e,t,r,n,i,a){if(e=+e,t=+t,a=!!a,(r=+r)<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(n),l=r*Math.sin(n),c=e+o,s=t+l,u=1^a,f=a?n-i:i-n;null===this._x1?this._append`M${c},${s}`:(Math.abs(this._x1-c)>uP||Math.abs(this._y1-s)>uP)&&this._append`L${c},${s}`,r&&(f<0&&(f=f%sP+sP),f>fP?this._append`A${r},${r},0,1,${u},${e-o},${t-l}A${r},${r},0,1,${u},${this._x1=c},${this._y1=s}`:f>uP&&this._append`A${r},${r},0,${+(f>=cP)},${u},${this._x1=e+r*Math.cos(i)},${this._y1=t+r*Math.sin(i)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function hP(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new pP(t)}function mP(e){return e[0]}function yP(e){return e[1]}function vP(e,t){var r=Kc(!0),n=null,i=ZS,a=null,o=hP(l);function l(l){var c,s,u,f=(l=Hc(l)).length,d=!1;for(null==n&&(a=i(u=o())),c=0;c<=f;++c)!(c<f&&r(s=l[c],c,l))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(s,c,l),+t(s,c,l));if(u)return a=null,u+""||null}return e="function"==typeof e?e:void 0===e?mP:Kc(e),t="function"==typeof t?t:void 0===t?yP:Kc(t),l.x=function(t){return arguments.length?(e="function"==typeof t?t:Kc(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:Kc(+e),l):t},l.defined=function(e){return arguments.length?(r="function"==typeof e?e:Kc(!!e),l):r},l.curve=function(e){return arguments.length?(i=e,null!=n&&(a=i(n)),l):i},l.context=function(e){return arguments.length?(null==e?n=a=null:a=i(n=e),l):n},l}function gP(e,t,r){var n=null,i=Kc(!0),a=null,o=ZS,l=null,c=hP(s);function s(s){var u,f,d,p,h,m=(s=Hc(s)).length,y=!1,v=new Array(m),g=new Array(m);for(null==a&&(l=o(h=c())),u=0;u<=m;++u){if(!(u<m&&i(p=s[u],u,s))===y)if(y=!y)f=u,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),d=u-1;d>=f;--d)l.point(v[d],g[d]);l.lineEnd(),l.areaEnd()}y&&(v[u]=+e(p,u,s),g[u]=+t(p,u,s),l.point(n?+n(p,u,s):v[u],r?+r(p,u,s):g[u]))}if(h)return l=null,h+""||null}function u(){return vP().defined(i).curve(o).context(a)}return e="function"==typeof e?e:void 0===e?mP:Kc(+e),t="function"==typeof t?t:Kc(void 0===t?0:+t),r="function"==typeof r?r:void 0===r?yP:Kc(+r),s.x=function(t){return arguments.length?(e="function"==typeof t?t:Kc(+t),n=null,s):e},s.x0=function(t){return arguments.length?(e="function"==typeof t?t:Kc(+t),s):e},s.x1=function(e){return arguments.length?(n=null==e?null:"function"==typeof e?e:Kc(+e),s):n},s.y=function(e){return arguments.length?(t="function"==typeof e?e:Kc(+e),r=null,s):t},s.y0=function(e){return arguments.length?(t="function"==typeof e?e:Kc(+e),s):t},s.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:Kc(+e),s):r},s.lineX0=s.lineY0=function(){return u().x(e).y(t)},s.lineY1=function(){return u().x(e).y(r)},s.lineX1=function(){return u().x(n).y(t)},s.defined=function(e){return arguments.length?(i="function"==typeof e?e:Kc(!!e),s):i},s.curve=function(e){return arguments.length?(o=e,null!=a&&(l=o(a)),s):o},s.context=function(e){return arguments.length?(null==e?a=l=null:l=o(a=e),s):a},s}function bP(){return bP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bP.apply(null,arguments)}function wP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function xP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wP(Object(r),!0).forEach(function(t){OP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function OP(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var EP={curveBasisClosed:function(e){return new KS(e)},curveBasisOpen:function(e){return new VS(e)},curveBasis:function(e){return new HS(e)},curveBumpX:function(e){return new YS(e,!0)},curveBumpY:function(e){return new YS(e,!1)},curveLinearClosed:function(e){return new GS(e)},curveLinear:ZS,curveMonotoneX:function(e){return new rP(e)},curveMonotoneY:function(e){return new nP(e)},curveNatural:function(e){return new aP(e)},curveStep:function(e){return new lP(e,.5)},curveStepAfter:function(e){return new lP(e,1)},curveStepBefore:function(e){return new lP(e,0)}},SP=e=>Ta(e.x)&&Ta(e.y),PP=e=>null!=e.base&&SP(e.base)&&SP(e),jP=e=>e.x,AP=e=>e.y,kP=e=>{var{className:t,points:n,path:i,pathRef:a}=e,o=Ns();if(!(n&&n.length||i))return null;var l={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},c=n&&n.length?(e=>{var{type:t="linear",points:r=[],baseLine:n,layout:i,connectNulls:a=!1}=e,o=((e,t)=>{if("function"==typeof e)return e;var r="curve".concat(ba(e));return"curveMonotone"!==r&&"curveBump"!==r||!t?EP[r]||ZS:EP["".concat(r).concat("vertical"===t?"Y":"X")]})(t,i),l=a?r.filter(SP):r;if(Array.isArray(n)){var c=r.map((e,t)=>xP(xP({},e),{},{base:n[t]}));return("vertical"===i?gP().y(AP).x1(jP).x0(e=>e.base.x):gP().x(jP).y1(AP).y0(e=>e.base.y)).defined(PP).curve(o)(a?c.filter(PP):c)}return("vertical"===i&&ua(n)?gP().y(AP).x1(jP).x0(n):ua(n)?gP().x(jP).y1(AP).y0(n):vP().x(jP).y(AP)).defined(SP).curve(o)(l)})(l):i;return r.createElement("path",bP({},gx(e),SE(e),{className:ea("recharts-curve",t),d:null===c?void 0:c,ref:a}))},TP=["x","y","top","left","width","height","className"];function CP(){return CP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CP.apply(null,arguments)}function MP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _P(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var DP=(e,t,r,n,i,a)=>"M".concat(e,",").concat(i,"v").concat(n,"M").concat(a,",").concat(t,"h").concat(r),RP=e=>{var{x:t=0,y:n=0,top:i=0,left:a=0,width:o=0,height:l=0,className:c}=e,s=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,TP),u=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?MP(Object(r),!0).forEach(function(t){_P(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({x:t,y:n,top:i,left:a,width:o,height:l},s);return ua(t)&&ua(n)&&ua(o)&&ua(l)&&ua(i)&&ua(a)?r.createElement("path",CP({},wx(u),{className:ea("recharts-cross",c),d:DP(t,n,o,l,i,a)})):null};function IP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function NP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?IP(Object(r),!0).forEach(function(t){LP(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function LP(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var FP=(e,t,r)=>e.map(e=>{return"".concat((n=e,n.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())))," ").concat(t,"ms ").concat(r);var n}).join(","),zP=(e,t)=>Object.keys(t).reduce((r,n)=>NP(NP({},r),{},{[n]:e(n,t[n])}),{});function BP(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function UP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?BP(Object(r),!0).forEach(function(t){$P(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):BP(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function $P(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var qP=(e,t,r)=>e+(t-e)*r,WP=e=>{var{from:t,to:r}=e;return t!==r},HP=(e,t,r)=>{var n=zP((t,r)=>{if(WP(r)){var[n,i]=e(r.from,r.to,r.velocity);return UP(UP({},r),{},{from:n,velocity:i})}return r},t);return r<1?zP((e,t)=>WP(t)&&null!=n[e]?UP(UP({},t),{},{velocity:qP(t.velocity,n[e].velocity,r),from:qP(t.from,n[e].from,r)}):t,t):HP(e,n,r-1)};const KP=(e,t,r,n,i,a)=>{var o,l,c=(o=e,l=t,[Object.keys(o),Object.keys(l)].reduce((e,t)=>e.filter(e=>t.includes(e))));return null==r?()=>(i(UP(UP({},e),t)),()=>{}):!0===r.isStepper?function(e,t,r,n,i,a){var o,l=n.reduce((r,n)=>UP(UP({},r),{},{[n]:{from:e[n],velocity:0,to:t[n]}}),{}),c=null,s=n=>{o||(o=n);var u=(n-o)/r.dt;l=HP(r,l,u),i(UP(UP(UP({},e),t),zP((e,t)=>t.from,l))),o=n,Object.values(l).filter(WP).length&&(c=a.setTimeout(s))};return()=>(c=a.setTimeout(s),()=>{var e;null===(e=c)||void 0===e||e()})}(e,t,r,c,i,a):function(e,t,r,n,i,a,o){var l,c=null,s=i.reduce((r,n)=>{var i=e[n],a=t[n];return null==i||null==a?r:UP(UP({},r),{},{[n]:[i,a]})},{}),u=i=>{l||(l=i);var f=(i-l)/n,d=zP((e,t)=>qP(...t,r(f)),s);if(a(UP(UP(UP({},e),t),d)),f<1)c=o.setTimeout(u);else{var p=zP((e,t)=>qP(...t,r(1)),s);a(UP(UP(UP({},e),t),p))}};return()=>(c=o.setTimeout(u),()=>{var e;null===(e=c)||void 0===e||e()})}(e,t,r,n,c,i,a)};var VP=1e-4,YP=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],GP=(e,t)=>e.map((e,r)=>e*t**r).reduce((e,t)=>e+t),XP=(e,t)=>r=>{var n=YP(e,t);return GP(n,r)},ZP=function(){return((e,t,r,n)=>{var i,a,o=XP(e,r),l=XP(t,n),c=(i=e,a=r,e=>{var t=[...YP(i,a).map((e,t)=>e*t).slice(1),0];return GP(t,e)}),s=e=>e>1?1:e<0?0:e,u=e=>{for(var t=e>1?1:e,r=t,n=0;n<8;++n){var i=o(r)-t,a=c(r);if(Math.abs(i-t)<VP||a<VP)return l(r);r=s(r-i/a)}return l(r)};return u.isStepper=!1,u})(...function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length)switch(t[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:var n=(e=>{var t,r=e.split("(");if(2!==r.length||"cubic-bezier"!==r[0])return null;var n=null===(t=r[1])||void 0===t||null===(t=t.split(")")[0])||void 0===t?void 0:t.split(",");if(null==n||4!==n.length)return null;var i=n.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]})(t[0]);if(n)return n}return 4===t.length?t:[0,0,1,1]}(...arguments))};class JP{setTimeout(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=performance.now(),n=null,i=a=>{a-r>=t?e(a):"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(i))};return n=requestAnimationFrame(i),()=>{null!=n&&cancelAnimationFrame(n)}}}function QP(){return e=new JP,t=()=>null,r=!1,n=null,i=a=>{if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,[l,...c]=o;return"number"==typeof l?void(n=e.setTimeout(i.bind(null,c),l)):(i(l),void(n=e.setTimeout(i.bind(null,c))))}"string"==typeof a&&t(a),"object"==typeof a&&t(a),"function"==typeof a&&a()}},{stop:()=>{r=!0},start:e=>{r=!1,n&&(n(),n=null),i(e)},subscribe:e=>(t=e,()=>{t=()=>null}),getTimeoutController:()=>e};var e,t,r,n,i}var ej=(0,r.createContext)(QP),tj={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},rj={t:0},nj={t:1};function ij(e){var t,n,i,a=fO(e,tj),{isActive:o,canBegin:l,duration:c,easing:s,begin:u,onAnimationEnd:f,onAnimationStart:d,children:p}=a,h="auto"===o?!Kw:o,m=(t=a.animationId,n=a.animationManager,i=(0,r.useContext)(ej),(0,r.useMemo)(()=>null!=n?n:i(t),[t,n,i])),[y,v]=(0,r.useState)(h?rj:nj),g=(0,r.useRef)(null);return(0,r.useEffect)(()=>{h||v(nj)},[h]),(0,r.useEffect)(()=>{if(!h||!l)return xa;var e=KP(rj,nj,(e=>{if("string"==typeof e)switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ZP(e);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stiff:t=100,damping:r=8,dt:n=17}=e,i=(e,i,a)=>{var o=a+(-(e-i)*t-a*r)*n/1e3,l=a*n/1e3+e;return Math.abs(l-i)<VP&&Math.abs(o)<VP?[i,0]:[l,o]};return i.isStepper=!0,i.dt=n,i}();default:if("cubic-bezier"===e.split("(")[0])return ZP(e)}return"function"==typeof e?e:null})(s),c,v,m.getTimeoutController());return m.start([d,u,()=>{g.current=e()},c,f]),()=>{m.stop(),g.current&&g.current(),f()}},[h,l,c,s,u,d,f,m]),p(y.t)}function aj(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"animation-",n=(0,r.useRef)(pa(t)),i=(0,r.useRef)(e);return i.current!==e&&(n.current=pa(t),i.current=e),n.current}var oj,lj,cj,sj,uj,fj,dj,pj,hj,mj,yj=["radius"],vj=["radius"];function gj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function bj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gj(Object(r),!0).forEach(function(t){wj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function wj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xj(){return xj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xj.apply(null,arguments)}function Oj(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Ej(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Sj,Pj,jj,Aj,kj,Tj,Cj,Mj=(e,t,r,n,i)=>{var a,o=aa(r),l=aa(n),c=Math.min(Math.abs(o)/2,Math.abs(l)/2),s=l>=0?1:-1,u=o>=0?1:-1,f=l>=0&&o>=0||l<0&&o<0?1:0;if(c>0&&i instanceof Array){for(var d=[0,0,0,0],p=0;p<4;p++)d[p]=i[p]>c?c:i[p];a=oa(oj||(oj=Ej(["M",",",""])),e,t+s*d[0]),d[0]>0&&(a+=oa(lj||(lj=Ej(["A ",",",",0,0,",",",",",""])),d[0],d[0],f,e+u*d[0],t)),a+=oa(cj||(cj=Ej(["L ",",",""])),e+r-u*d[1],t),d[1]>0&&(a+=oa(sj||(sj=Ej(["A ",",",",0,0,",",\n ",",",""])),d[1],d[1],f,e+r,t+s*d[1])),a+=oa(uj||(uj=Ej(["L ",",",""])),e+r,t+n-s*d[2]),d[2]>0&&(a+=oa(fj||(fj=Ej(["A ",",",",0,0,",",\n ",",",""])),d[2],d[2],f,e+r-u*d[2],t+n)),a+=oa(dj||(dj=Ej(["L ",",",""])),e+u*d[3],t+n),d[3]>0&&(a+=oa(pj||(pj=Ej(["A ",",",",0,0,",",\n ",",",""])),d[3],d[3],f,e,t+n-s*d[3])),a+="Z"}else if(c>0&&i===+i&&i>0){var h=Math.min(c,i);a=oa(hj||(hj=Ej(["M ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",",","\n L ",",","\n A ",",",",0,0,",",",","," Z"])),e,t+s*h,h,h,f,e+u*h,t,e+r-u*h,t,h,h,f,e+r,t+s*h,e+r,t+n-s*h,h,h,f,e+r-u*h,t+n,e+u*h,t+n,h,h,f,e,t+n-s*h)}else a=oa(mj||(mj=Ej(["M ",","," h "," v "," h "," Z"])),e,t,r,n,-r);return a},_j={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Dj=e=>{var t=fO(e,_j),n=(0,r.useRef)(null),[i,a]=(0,r.useState)(-1);(0,r.useEffect)(()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch(e){}},[]);var{x:o,y:l,width:c,height:s,radius:u,className:f}=t,{animationEasing:d,animationDuration:p,animationBegin:h,isAnimationActive:m,isUpdateAnimationActive:y}=t,v=(0,r.useRef)(c),g=(0,r.useRef)(s),b=(0,r.useRef)(o),w=(0,r.useRef)(l),x=aj((0,r.useMemo)(()=>({x:o,y:l,width:c,height:s,radius:u}),[o,l,c,s,u]),"rectangle-");if(o!==+o||l!==+l||c!==+c||s!==+s||0===c||0===s)return null;var O=ea("recharts-rectangle",f);if(!y){var E=wx(t),{radius:S}=E,P=Oj(E,yj);return r.createElement("path",xj({},P,{x:aa(o),y:aa(l),width:aa(c),height:aa(s),radius:"number"==typeof u?u:void 0,className:O,d:Mj(o,l,c,s,u)}))}var j=v.current,A=g.current,k=b.current,T=w.current,C="0px ".concat(-1===i?1:i,"px"),M="".concat(i,"px 0px"),_=FP(["strokeDasharray"],p,"string"==typeof d?d:_j.animationEasing);return r.createElement(ij,{animationId:x,key:x,canBegin:i>0,duration:p,easing:d,isActive:y,begin:h},e=>{var i,a=ya(j,c,e),f=ya(A,s,e),d=ya(k,o,e),p=ya(T,l,e);n.current&&(v.current=a,g.current=f,b.current=d,w.current=p),i=m?e>0?{transition:_,strokeDasharray:M}:{strokeDasharray:C}:{strokeDasharray:M};var h=wx(t),{radius:y}=h,x=Oj(h,vj);return r.createElement("path",xj({},x,{radius:"number"==typeof u?u:void 0,className:O,d:Mj(d,p,a,f,u),ref:n,style:bj(bj({},i),t.style)}))})};function Rj(e){var{cx:t,cy:r,radius:n,startAngle:i,endAngle:a}=e;return{points:[bm(t,r,n,i),bm(t,r,n,a)],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function Ij(){return Ij=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ij.apply(null,arguments)}function Nj(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Lj=e=>{var{cx:t,cy:r,radius:n,angle:i,sign:a,isExternal:o,cornerRadius:l,cornerIsExternal:c}=e,s=l*(o?1:-1)+n,u=Math.asin(l/s)/vm,f=c?i:i+a*u,d=c?i-a*u:i;return{center:bm(t,r,s,f),circleTangency:bm(t,r,n,f),lineTangency:bm(t,r,s*Math.cos(u*vm),d),theta:u}},Fj=e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:a,endAngle:o}=e,l=((e,t)=>la(t-e)*Math.min(Math.abs(t-e),359.999))(a,o),c=a+l,s=bm(t,r,i,a),u=bm(t,r,i,c),f=oa(Sj||(Sj=Nj(["M ",",","\n A ",",",",0,\n ",",",",\n ",",","\n "])),s.x,s.y,i,i,+(Math.abs(l)>180),+(a>c),u.x,u.y);if(n>0){var d=bm(t,r,n,a),p=bm(t,r,n,c);f+=oa(Pj||(Pj=Nj(["L ",",","\n A ",",",",0,\n ",",",",\n ",","," Z"])),p.x,p.y,n,n,+(Math.abs(l)>180),+(a<=c),d.x,d.y)}else f+=oa(jj||(jj=Nj(["L ",","," Z"])),t,r);return f},zj={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Bj=e=>{var t=fO(e,zj),{cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:l,forceCornerRadius:c,cornerIsExternal:s,startAngle:u,endAngle:f,className:d}=t;if(o<a||u===f)return null;var p,h=ea("recharts-sector",d),m=o-a,y=ha(l,m,0,!0);return p=y>0&&Math.abs(u-f)<360?(e=>{var{cx:t,cy:r,innerRadius:n,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:l,startAngle:c,endAngle:s}=e,u=la(s-c),{circleTangency:f,lineTangency:d,theta:p}=Lj({cx:t,cy:r,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:l}),{circleTangency:h,lineTangency:m,theta:y}=Lj({cx:t,cy:r,radius:i,angle:s,sign:-u,cornerRadius:a,cornerIsExternal:l}),v=l?Math.abs(c-s):Math.abs(c-s)-p-y;if(v<0)return o?oa(Aj||(Aj=Nj(["M ",",","\n a",",",",0,0,1,",",0\n a",",",",0,0,1,",",0\n "])),d.x,d.y,a,a,2*a,a,a,2*-a):Fj({cx:t,cy:r,innerRadius:n,outerRadius:i,startAngle:c,endAngle:s});var g=oa(kj||(kj=Nj(["M ",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","\n "])),d.x,d.y,a,a,+(u<0),f.x,f.y,i,i,+(v>180),+(u<0),h.x,h.y,a,a,+(u<0),m.x,m.y);if(n>0){var{circleTangency:b,lineTangency:w,theta:x}=Lj({cx:t,cy:r,radius:n,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),{circleTangency:O,lineTangency:E,theta:S}=Lj({cx:t,cy:r,radius:n,angle:s,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:l}),P=l?Math.abs(c-s):Math.abs(c-s)-x-S;if(P<0&&0===a)return"".concat(g,"L").concat(t,",").concat(r,"Z");g+=oa(Tj||(Tj=Nj(["L",",","\n A",",",",0,0,",",",",","\n A",",",",0,",",",",",",","\n A",",",",0,0,",",",",","Z"])),E.x,E.y,a,a,+(u<0),O.x,O.y,n,n,+(P>180),+(u>0),b.x,b.y,a,a,+(u<0),w.x,w.y)}else g+=oa(Cj||(Cj=Nj(["L",",","Z"])),t,r);return g})({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(y,m/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:u,endAngle:f}):Fj({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:u,endAngle:f}),r.createElement("path",Ij({},wx(t),{className:h,d:p}))};function Uj(e,t,r){if("horizontal"===e)return[{x:t.x,y:r.top},{x:t.x,y:r.top+r.height}];if("vertical"===e)return[{x:r.left,y:t.y},{x:r.left+r.width,y:t.y}];if(EE(t)){if("centric"===e){var{cx:n,cy:i,innerRadius:a,outerRadius:o,angle:l}=t,c=bm(n,i,a,l),s=bm(n,i,o,l);return[{x:c.x,y:c.y},{x:s.x,y:s.y}]}return Rj(t)}}function $j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function qj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?$j(Object(r),!0).forEach(function(t){Wj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Wj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hj(){return Hj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Hj.apply(null,arguments)}function Kj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Vj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kj(Object(r),!0).forEach(function(t){Yj(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Yj(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gj(e){var{cursor:t,cursorComp:n,cursorProps:i}=e;return(0,r.isValidElement)(t)?(0,r.cloneElement)(t,i):(0,r.createElement)(n,i)}function Xj(e){var t,n,i,a,{coordinate:o,payload:l,index:c,offset:s,tooltipAxisBandSize:u,layout:f,cursor:d,tooltipEventType:p,chartName:h}=e,m=o,y=l,v=c;if(!d||!m||"ScatterChart"!==h&&"axis"!==p)return null;if("ScatterChart"===h)n=m,i=RP,a=Om.cursorLine;else if("BarChart"===h)n=function(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:t.y-i,width:"horizontal"===e?n:r.width-1,height:"horizontal"===e?r.height-1:n}}(f,m,s,u),i=Dj,a=Om.cursorRectangle;else if("radial"===f&&EE(m)){var{cx:g,cy:b,radius:w,startAngle:x,endAngle:O}=Rj(m);n={cx:g,cy:b,startAngle:x,endAngle:O,innerRadius:w,outerRadius:w},i=Bj,a=Om.cursorLine}else n={points:Uj(f,m,s)},i=kP,a=Om.cursorLine;var E="object"==typeof d&&"className"in d?d.className:void 0,S=Vj(Vj(Vj(Vj({stroke:"#ccc",pointerEvents:"none"},s),n),bx(d)),{},{payload:y,payloadIndex:v,className:ea("recharts-tooltip-cursor",E)});return r.createElement(oE,{zIndex:null!==(t=e.zIndex)&&void 0!==t?t:a},r.createElement(Gj,{cursor:d,cursorComp:i,cursorProps:S}))}function Zj(e){var t,n,i,a=(t=zc(My),n=zc(Vg),i=zc(Wg),us(t&&i?qj(qj({},t),{},{scale:i}):void 0,n)),o=_s(),l=Ns(),c=zc(um);return null==a||null==o||null==l||null==c?null:r.createElement(Xj,Hj({},e,{offset:o,layout:l,tooltipAxisBandSize:a,chartName:c}))}function Jj(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Qj(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Jj(Object(r),!0).forEach(function(t){eA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Jj(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function eA(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tA(e){return e.dataKey}var rA=[],nA={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function iA(e){var t,n,i=fO(e,nA),{active:a,allowEscapeViewBox:o,animationDuration:l,animationEasing:c,content:s,filterNull:u,isAnimationActive:f,offset:d,payloadUniqBy:p,position:h,reverseDirection:m,useTranslate3d:y,wrapperStyle:v,cursor:g,shared:b,trigger:w,defaultIndex:x,portal:O,axisId:E}=i,S=Ic(),P="number"==typeof x?String(x):x;(0,r.useEffect)(()=>{S(ic({shared:b,trigger:w,axisId:E,active:a,defaultIndex:P}))},[S,b,w,E,a,P]);var j=Cs(),A=dx(),k=function(e){return zc(t=>Qv(t,e))}(b),{activeIndex:T,isActive:C}=null!==(t=zc(e=>Ob(e,k,w,P)))&&void 0!==t?t:{},M=zc(e=>xb(e,k,w,P)),_=zc(e=>wb(e,k,w,P)),D=zc(e=>bb(e,k,w,P)),R=M,I=(0,r.useContext)(qx),N=null!==(n=null!=a?a:C)&&void 0!==n&&n,[L,F]=$S([R,N]),z="axis"===k?_:void 0;!function(e,t,n,i,a,o){var l=zc(r=>((e,t,r)=>{if(null!=t){var n=sg(e);return"axis"===t?"hover"===r?n.axisInteraction.hover.dataKey:n.axisInteraction.click.dataKey:"hover"===r?n.itemInteraction.hover.dataKey:n.itemInteraction.click.dataKey}})(r,e,t)),c=zc(pm),s=zc(fm),u=zc(dm),f=zc(Lx),d=null==f?void 0:f.active,p=Cs();(0,r.useEffect)(()=>{if(!d&&null!=s&&null!=c){var e=fc({active:o,coordinate:n,dataKey:l,index:a,label:"number"==typeof i?String(i):i,sourceViewBox:p,graphicalItemId:void 0});Rx.emit(Ix,s,e,c)}},[d,n,l,a,i,c,s,u,o,p])}(k,w,D,z,T,N);var B=null!=O?O:I;if(null==B||null==j||null==k)return null;var U=null!=R?R:rA;N||(U=rA),u&&U.length&&(U=US(U.filter(e=>null!=e.value&&(!0!==e.hide||i.includeHidden)),p,tA));var $=U.length>0,q=r.createElement(FS,{allowEscapeViewBox:o,animationDuration:l,animationEasing:c,isAnimationActive:f,active:N,coordinate:D,hasPayload:$,offset:d,position:h,reverseDirection:m,useTranslate3d:y,viewBox:j,wrapperStyle:v,lastBoundingBox:L,innerRef:F,hasPortalFromProps:Boolean(O)},function(e,t){return r.isValidElement(e)?r.cloneElement(e,t):"function"==typeof e?r.createElement(e,t):r.createElement(CS,t)}(s,Qj(Qj({},i),{},{payload:U,label:z,active:N,activeIndex:T,coordinate:D,accessibilityLayer:A})));return r.createElement(r.Fragment,null,(0,r.createPortal)(q,B),N&&r.createElement(Zj,{cursor:g,tooltipEventType:k,coordinate:D,payload:U,index:T}))}Math.abs,Math.atan2;const aA=Math.cos,oA=(Math.max,Math.min,Math.sin),lA=Math.sqrt,cA=Math.PI,sA=2*cA,uA={draw(e,t){const r=lA(t/cA);e.moveTo(r,0),e.arc(0,0,r,0,sA)}},fA={draw(e,t){const r=lA(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},dA=lA(1/3),pA=2*dA,hA={draw(e,t){const r=lA(t/pA),n=r*dA;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},mA={draw(e,t){const r=lA(t),n=-r/2;e.rect(n,n,r,r)}},yA=oA(cA/10)/oA(7*cA/10),vA=oA(sA/10)*yA,gA=-aA(sA/10)*yA,bA={draw(e,t){const r=lA(.8908130915292852*t),n=vA*r,i=gA*r;e.moveTo(0,-r),e.lineTo(n,i);for(let t=1;t<5;++t){const a=sA*t/5,o=aA(a),l=oA(a);e.lineTo(l*r,-o*r),e.lineTo(o*n-l*i,l*n+o*i)}e.closePath()}},wA=lA(3),xA={draw(e,t){const r=-lA(t/(3*wA));e.moveTo(0,2*r),e.lineTo(-wA*r,-r),e.lineTo(wA*r,-r),e.closePath()}},OA=-.5,EA=lA(3)/2,SA=1/lA(12),PA=3*(SA/2+1),jA={draw(e,t){const r=lA(t/PA),n=r/2,i=r*SA,a=n,o=r*SA+r,l=-a,c=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(l,c),e.lineTo(OA*n-EA*i,EA*n+OA*i),e.lineTo(OA*a-EA*o,EA*a+OA*o),e.lineTo(OA*l-EA*c,EA*l+OA*c),e.lineTo(OA*n+EA*i,OA*i-EA*n),e.lineTo(OA*a+EA*o,OA*o-EA*a),e.lineTo(OA*l+EA*c,OA*c-EA*l),e.closePath()}};lA(3),lA(3);var AA=["type","size","sizeType"];function kA(){return kA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},kA.apply(null,arguments)}function TA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function CA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?TA(Object(r),!0).forEach(function(t){MA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function MA(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _A={symbolCircle:uA,symbolCross:fA,symbolDiamond:hA,symbolSquare:mA,symbolStar:bA,symbolTriangle:xA,symbolWye:jA},DA=Math.PI/180,RA=e=>{var{type:t="circle",size:n=64,sizeType:i="area"}=e,a=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,AA),o=CA(CA({},a),{},{type:t,size:n,sizeType:i}),l="circle";"string"==typeof t&&(l=t);var{className:c,cx:s,cy:u}=o,f=wx(o);return ua(s)&&ua(u)&&ua(n)?r.createElement("path",kA({},f,{className:ea("recharts-symbols",c),transform:"translate(".concat(s,", ").concat(u,")"),d:(()=>{var e=(e=>{var t="symbol".concat(ba(e));return _A[t]||uA})(l),t=function(e,t){let r=null,n=hP(i);function i(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return e="function"==typeof e?e:Kc(e||uA),t="function"==typeof t?t:Kc(void 0===t?64:+t),i.type=function(t){return arguments.length?(e="function"==typeof t?t:Kc(t),i):e},i.size=function(e){return arguments.length?(t="function"==typeof e?e:Kc(+e),i):t},i.context=function(e){return arguments.length?(r=null==e?null:e,i):r},i}().type(e).size(((e,t,r)=>{if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*DA;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.tan(n)**2);case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}})(n,i,l)),r=t();if(null!==r)return r})()})):null};function IA(){return IA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},IA.apply(null,arguments)}function NA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function LA(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}RA.registerSymbol=(e,t)=>{_A["symbol".concat(ba(e))]=t};var FA=32,zA={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function BA(e){var t,{data:n,iconType:i,inactiveColor:a}=e,o=16,l=FA/6,c=FA/3,s=n.inactive?a:n.color,u=null!=i?i:n.type;if("none"===u)return null;if("plainline"===u)return r.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:null===(t=n.payload)||void 0===t?void 0:t.strokeDasharray,x1:0,y1:o,x2:FA,y2:o,className:"recharts-legend-icon"});if("line"===u)return r.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(o,"h").concat(c,"\n A").concat(l,",").concat(l,",0,1,1,").concat(2*c,",").concat(o,"\n H").concat(FA,"M").concat(2*c,",").concat(o,"\n A").concat(l,",").concat(l,",0,1,1,").concat(c,",").concat(o),className:"recharts-legend-icon"});if("rect"===u)return r.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(4,"h").concat(FA,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(r.isValidElement(n.legendIcon)){var f=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?NA(Object(r),!0).forEach(function(t){LA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):NA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},n);return delete f.legendIcon,r.cloneElement(n.legendIcon,f)}return r.createElement(RA,{fill:s,cx:o,cy:o,size:FA,sizeType:"diameter",type:u})}function UA(e){var{payload:t,iconSize:n,layout:i,formatter:a,inactiveColor:o,iconType:l}=e,c={x:0,y:0,width:FA,height:FA},s={display:"horizontal"===i?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((t,i)=>{var f=t.formatter||a,d=ea({"recharts-legend-item":!0,["legend-item-".concat(i)]:!0,inactive:t.inactive});if("none"===t.type)return null;var p=t.inactive?o:t.color,h=f?f(t.value,t,i):t.value;return r.createElement("li",IA({className:d,style:s,key:"legend-item-".concat(i)},PE(e,t,i)),r.createElement(Ex,{width:n,height:n,viewBox:c,style:u,"aria-label":"".concat(h," legend icon")},r.createElement(BA,{data:t,iconType:l,inactiveColor:o})),r.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},h))})}var $A=e=>{var t=fO(e,zA),{payload:n,layout:i,align:a}=t;if(!n||!n.length)return null;var o={padding:0,margin:0,textAlign:"horizontal"===i?a:"left"};return r.createElement("ul",{className:"recharts-default-legend",style:o},r.createElement(UA,IA({},t,{payload:n})))},qA=["contextPayload"];function WA(){return WA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},WA.apply(null,arguments)}function HA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function KA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?HA(Object(r),!0).forEach(function(t){VA(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HA(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function VA(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YA(e){return e.value}function GA(e){var{contextPayload:t}=e,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,qA),i=US(t,e.payloadUniqBy,YA),a=KA(KA({},n),{},{payload:i});return r.isValidElement(e.content)?r.cloneElement(e.content,a):"function"==typeof e.content?r.createElement(e.content,a):r.createElement($A,a)}function XA(e){var t=Ic();return(0,r.useEffect)(()=>{t(pw(e))},[t,e]),null}function ZA(e){var t=Ic();return(0,r.useEffect)(()=>(t(dw(e)),()=>{t(dw({width:0,height:0}))}),[t,e]),null}var JA={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function QA(e){var t=fO(e,JA),n=zc(qc),i=(0,r.useContext)(Wx),a=zc(e=>e.layout.margin),{width:o,height:l,wrapperStyle:c,portal:s}=t,[u,f]=$S([n]),d=Ds(),p=Rs();if(null==d||null==p)return null;var h=d-((null==a?void 0:a.left)||0)-((null==a?void 0:a.right)||0),m=function(e,t,r,n){return"vertical"===e&&ua(t)?{height:t}:"horizontal"===e?{width:r||n}:null}(t.layout,l,o,h),y=s?c:KA(KA({position:"absolute",width:(null==m?void 0:m.width)||o||"auto",height:(null==m?void 0:m.height)||l||"auto"},function(e,t,r,n,i,a){var o,l,{layout:c,align:s,verticalAlign:u}=t;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(o="center"===s&&"vertical"===c?{left:((n||0)-a.width)/2}:"right"===s?{right:r&&r.right||0}:{left:r&&r.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(l="middle"===u?{top:((i||0)-a.height)/2}:"bottom"===u?{bottom:r&&r.bottom||0}:{top:r&&r.top||0}),KA(KA({},o),l)}(c,t,a,d,p,u)),c),v=null!=s?s:i;if(null==v||null==n)return null;var g=r.createElement("div",{className:"recharts-legend-wrapper",style:y,ref:f},r.createElement(XA,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!s&&r.createElement(ZA,{width:u.width,height:u.height}),r.createElement(GA,WA({},t,m,{margin:a,chartWidth:d,chartHeight:p,contextPayload:n})));return(0,r.createPortal)(g,v)}QA.displayName="Legend";var ek=n(2626),tk=n.n(ek),rk=["valueAccessor"],nk=["dataKey","clockWise","id","textBreakAll","zIndex"];function ik(){return ik=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ik.apply(null,arguments)}function ak(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var ok=e=>Array.isArray(e.value)?tk()(e.value):e.value,lk=(0,r.createContext)(void 0),ck=lk.Provider,sk=(0,r.createContext)(void 0);function uk(e){var{valueAccessor:t=ok}=e,n=ak(e,rk),{dataKey:i,clockWise:a,id:o,textBreakAll:l,zIndex:c}=n,s=ak(n,nk),u=(0,r.useContext)(lk),f=(0,r.useContext)(sk),d=u||f;return d&&d.length?r.createElement(oE,{zIndex:null!=c?c:Om.label},r.createElement(RO,{className:"recharts-label-list"},d.map((e,a)=>{var c,u=ga(i)?t(e,a):es(e&&e.payload,i),f=ga(o)?{}:{id:"".concat(o,"-").concat(a)};return r.createElement(xE,ik({key:"label-".concat(a)},wx(e),s,f,{fill:null!==(c=n.fill)&&void 0!==c?c:e.fill,parentViewBox:e.parentViewBox,value:u,textBreakAll:l,viewBox:e.viewBox,index:a,zIndex:0}))}))):null}function fk(e){var{label:t}=e;return t?!0===t?r.createElement(uk,{key:"labelList-implicit"}):r.isValidElement(t)||gE(t)?r.createElement(uk,{key:"labelList-implicit",content:t}):"object"==typeof t?r.createElement(uk,ik({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function dk(){return dk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dk.apply(null,arguments)}sk.Provider,uk.displayName="LabelList";var pk=e=>{var{cx:t,cy:n,r:i,className:a}=e,o=ea("recharts-dot",a);return ua(t)&&ua(n)&&ua(i)?r.createElement("circle",dk({},gx(e),SE(e),{className:o,cx:t,cy:n,r:i})):null};n(524);var hk=e=>!e||"object"!=typeof e||!("clipDot"in e)||Boolean(e.clipDot),mk=["points"];function yk(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function vk(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yk(Object(r),!0).forEach(function(t){gk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yk(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function gk(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bk(){return bk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bk.apply(null,arguments)}function wk(e){var{option:t,dotProps:n,className:i}=e;if((0,r.isValidElement)(t))return(0,r.cloneElement)(t,n);if("function"==typeof t)return t(n);var a=ea(i,"boolean"!=typeof t?t.className:""),o=null!=n?n:{},{points:l}=o,c=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(o,mk);return r.createElement(pk,bk({},c,{className:a}))}function xk(e){var{points:t,dot:n,className:i,dotClassName:a,dataKey:o,baseProps:l,needClip:c,clipPathId:s,zIndex:u=Om.scatter}=e;if(!function(e,t){return null!=e&&(!!t||1===e.length)}(t,n))return null;var f,d=hk(n),p=null==(f=n)?null:(0,r.isValidElement)(f)?wx(f.props):"object"!=typeof f||Array.isArray(f)?null:wx(f),h=t.map((e,i)=>{var c,s,u=vk(vk(vk({r:3},l),p),{},{index:i,cx:null!==(c=e.x)&&void 0!==c?c:void 0,cy:null!==(s=e.y)&&void 0!==s?s:void 0,dataKey:o,value:e.value,payload:e.payload,points:t});return r.createElement(wk,{key:"dot-".concat(i),option:n,dotProps:u,className:a})}),m={};return c&&null!=s&&(m.clipPath="url(#clipPath-".concat(d?"":"dots-").concat(s,")")),r.createElement(oE,{zIndex:u},r.createElement(RO,bk({className:i},m),h))}function Ok(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function Ek(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ok(Object(r),!0).forEach(function(t){Sk(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ok(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Sk(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Pk=e=>{var{point:t,childIndex:n,mainColor:i,activeDot:a,dataKey:o,clipPath:l}=e;if(!1===a||null==t.x||null==t.y)return null;var c,s=Ek(Ek(Ek({},{index:n,dataKey:o,cx:t.x,cy:t.y,r:4,fill:null!=i?i:"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value}),bx(a)),SE(a));return c=(0,r.isValidElement)(a)?(0,r.cloneElement)(a,s):"function"==typeof a?a(s):r.createElement(pk,s),r.createElement(RO,{className:"recharts-active-dot",clipPath:l},c)};function jk(e){var{points:t,mainColor:n,activeDot:i,itemDataKey:a,clipPath:o,zIndex:l=Om.activeDot}=e,c=zc(Jg),s=zc(ob);if(null==t||null==s)return null;var u=t.find(e=>s.includes(e.payload));return ga(u)?null:r.createElement(oE,{zIndex:l},r.createElement(Pk,{point:u,childIndex:Number(c),mainColor:n,dataKey:a,activeDot:i,clipPath:o}))}function Ak(e){var{tooltipEntrySettings:t}=e,n=Ic(),i=js(),a=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{i||(null===a.current?n(tc(t)):a.current!==t&&n(rc({prev:a.current,next:t})),a.current=t)},[t,n,i]),(0,r.useLayoutEffect)(()=>()=>{a.current&&(n(nc(a.current)),a.current=null)},[n]),null}var kk=["children"],Tk={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},Ck=(0,r.createContext)(Tk);function Mk(e){var{children:t}=e,n=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,kk);return r.createElement(Ck.Provider,{value:n},t)}function _k(e,t){var r,n,i=zc(t=>iy(t,e)),a=zc(e=>ly(e,t)),o=null!==(r=null==i?void 0:i.allowDataOverflow)&&void 0!==r?r:ry.allowDataOverflow,l=null!==(n=null==a?void 0:a.allowDataOverflow)&&void 0!==n?n:ay.allowDataOverflow;return{needClip:o||l,needClipX:o,needClipY:l}}function Dk(e){var{xAxisId:t,yAxisId:n,clipPathId:i}=e,a=iO(),{needClipX:o,needClipY:l,needClip:c}=_k(t,n);if(!c||!a)return null;var{x:s,y:u,width:f,height:d}=a;return r.createElement("clipPath",{id:"clipPath-".concat(i)},r.createElement("rect",{x:o?s:s-f/2,y:l?u:u-d/2,width:o?f:2*f,height:l?d:2*d}))}var Rk=(e,t,r,n)=>Vv(e,"xAxis",t,n),Ik=(e,t,r,n)=>Kv(e,"xAxis",t,n),Nk=(e,t,r,n)=>Vv(e,"yAxis",r,n),Lk=(e,t,r,n)=>Kv(e,"yAxis",r,n),Fk=Cc([Is,Rk,Nk,Ik,Lk],(e,t,r,n,i)=>ts(e,"xAxis")?us(t,n,!1):us(r,i,!1));function zk(e){return"line"===e.type}var Bk,Uk=Cc([hy,(e,t,r,n,i)=>i],(e,t)=>e.filter(zk).find(e=>e.id===t)),$k=Cc([Is,Rk,Nk,Ik,Lk,Uk,Fk,qh],(e,t,r,n,i,a,o,l)=>{var{chartData:c,dataStartIndex:s,dataEndIndex:u}=l;if(null!=a&&null!=t&&null!=r&&null!=n&&null!=i&&0!==n.length&&0!==i.length&&null!=o&&("horizontal"===e||"vertical"===e)){var f,{dataKey:d,data:p}=a;if(null!=(f=null!=p&&p.length>0?p:null==c?void 0:c.slice(s,u+1)))return function(e){var{layout:t,xAxis:r,yAxis:n,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:l,displayedData:c}=e;return c.map((e,c)=>{var s=es(e,o);if("horizontal"===t)return{x:ls({axis:r,ticks:i,bandSize:l,entry:e,index:c}),y:ga(s)?null:n.scale(s),value:s,payload:e};var u=ga(s)?null:r.scale(s),f=ls({axis:n,ticks:a,bandSize:l,entry:e,index:c});return null==u||null==f?null:{x:u,y:f,value:s,payload:e}}).filter(Boolean)}({layout:e,xAxis:t,yAxis:r,xAxisTicks:n,yAxisTicks:i,dataKey:d,bandSize:o,displayedData:f})}});function qk(e){var{legendPayload:t}=e,n=Ic(),i=js(),a=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{i||(null===a.current?n(hw(t)):a.current!==t&&n(mw({prev:a.current,next:t})),a.current=t)},[n,i,t]),(0,r.useLayoutEffect)(()=>()=>{a.current&&(n(yw(a.current)),a.current=null)},[n]),null}var Wk,Hk,Kk,Vk,Yk,Gk=null!==(Bk=r["useId".toString()])&&void 0!==Bk?Bk:()=>{var[e]=r.useState(()=>pa("uid-"));return e},Xk=(0,r.createContext)(void 0),Zk=e=>{var t,n,i,{id:a,type:o,children:l}=e,c=(t="recharts-".concat(o),n=a,i=Gk(),n||(t?"".concat(t,"-").concat(i):i));return r.createElement(Xk.Provider,{value:c},l(c))},Jk=e=>{var t=Ic(),n=(0,r.useRef)(null);return(0,r.useLayoutEffect)(()=>{null===n.current?t(Vb(e)):n.current!==e&&t(Yb({prev:n.current,next:e})),n.current=e},[t,e]),(0,r.useLayoutEffect)(()=>()=>{n.current&&(t(Gb(n.current)),n.current=null)},[t]),null},Qk=(0,r.memo)(Jk),eT=n(1291),tT=n.n(eT);function rT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function nT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rT(Object(r),!0).forEach(function(t){iT(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rT(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function iT(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aT(){return aT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},aT.apply(null,arguments)}function oT(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var lT=(e,t,r,n,i)=>{var a,o=r-n;return a=oa(Wk||(Wk=oT(["M ",",",""])),e,t),a+=oa(Hk||(Hk=oT(["L ",",",""])),e+r,t),a+=oa(Kk||(Kk=oT(["L ",",",""])),e+r-o/2,t+i),(a+=oa(Vk||(Vk=oT(["L ",",",""])),e+r-o/2-n,t+i))+oa(Yk||(Yk=oT(["L ",","," Z"])),e,t)},cT={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sT=e=>{var t=fO(e,cT),{x:n,y:i,upperWidth:a,lowerWidth:o,height:l,className:c}=t,{animationEasing:s,animationDuration:u,animationBegin:f,isUpdateAnimationActive:d}=t,p=(0,r.useRef)(null),[h,m]=(0,r.useState)(-1),y=(0,r.useRef)(a),v=(0,r.useRef)(o),g=(0,r.useRef)(l),b=(0,r.useRef)(n),w=(0,r.useRef)(i),x=aj(e,"trapezoid-");if((0,r.useEffect)(()=>{if(p.current&&p.current.getTotalLength)try{var e=p.current.getTotalLength();e&&m(e)}catch(e){}},[]),n!==+n||i!==+i||a!==+a||o!==+o||l!==+l||0===a&&0===o||0===l)return null;var O=ea("recharts-trapezoid",c);if(!d)return r.createElement("g",null,r.createElement("path",aT({},wx(t),{className:O,d:lT(n,i,a,o,l)})));var E=y.current,S=v.current,P=g.current,j=b.current,A=w.current,k="0px ".concat(-1===h?1:h,"px"),T="".concat(h,"px 0px"),C=FP(["strokeDasharray"],u,s);return r.createElement(ij,{animationId:x,key:x,canBegin:h>0,duration:u,easing:s,isActive:d,begin:f},e=>{var c=ya(E,a,e),s=ya(S,o,e),u=ya(P,l,e),f=ya(j,n,e),d=ya(A,i,e);p.current&&(y.current=c,v.current=s,g.current=u,b.current=f,w.current=d);var h=e>0?{transition:C,strokeDasharray:T}:{strokeDasharray:k};return r.createElement("path",aT({},wx(t),{className:O,d:lT(f,d,c,s,u),ref:p,style:nT(nT({},h),t.style)}))})},uT=["option","shapeType","activeClassName"];function fT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function dT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fT(Object(r),!0).forEach(function(t){pT(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fT(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function pT(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hT(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return r.createElement(Dj,n);case"trapezoid":return r.createElement(sT,n);case"sector":return r.createElement(Bj,n);case"symbols":if(function(e){return"symbols"===e}(t))return r.createElement(RA,n);break;case"curve":return r.createElement(kP,n);default:return null}}function mT(e){var t,{option:n,shapeType:i,activeClassName:a="recharts-active-shape"}=e,o=function(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}(e,uT);if((0,r.isValidElement)(n))t=(0,r.cloneElement)(n,dT(dT({},o),function(e){return(0,r.isValidElement)(e)?e.props:e}(n)));else if("function"==typeof n)t=n(o,o.index);else if(tT()(n)&&"boolean"!=typeof n){var l=function(e,t){return dT(dT({},t),e)}(n,o);t=r.createElement(hT,{shapeType:i,elementProps:l})}else{var c=o;t=r.createElement(hT,{shapeType:i,elementProps:c})}return o.isActive?r.createElement(RO,{className:a},t):t}var yT=["id"],vT=["type","layout","connectNulls","needClip","shape"],gT=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];function bT(){return bT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bT.apply(null,arguments)}function wT(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function xT(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wT(Object(r),!0).forEach(function(t){OT(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wT(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function OT(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ET(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var ST=e=>{var{dataKey:t,name:r,stroke:n,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:n,value:ds(r,t),payload:e}]},PT=r.memo(e=>{var{dataKey:t,data:n,stroke:i,strokeWidth:a,fill:o,name:l,hide:c,unit:s,tooltipType:u,id:f}=e,d={dataDefinedOnItem:n,positions:void 0,settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:void 0,name:ds(l,t),hide:c,type:u,color:i,unit:s,graphicalItemId:f}};return r.createElement(Ak,{tooltipEntrySettings:d})}),jT=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function AT(e,t){for(var r=e.length%2!=0?[...e,0]:e,n=[],i=0;i<t;++i)n=[...n,...r];return n}function kT(e){var{clipPathId:t,points:n,props:i}=e,{dot:a,dataKey:o,needClip:l}=i,{id:c}=i,s=gx(ET(i,yT));return r.createElement(xk,{points:n,dot:a,className:"recharts-line-dots",dotClassName:"recharts-line-dot",dataKey:o,baseProps:s,needClip:l,clipPathId:t})}function TT(e){var{showLabels:t,children:n,points:i}=e,a=(0,r.useMemo)(()=>null==i?void 0:i.map(e=>{var t,r,n={x:null!==(t=e.x)&&void 0!==t?t:0,y:null!==(r=e.y)&&void 0!==r?r:0,width:0,lowerWidth:0,upperWidth:0,height:0};return xT(xT({},n),{},{value:e.value,payload:e.payload,viewBox:n,parentViewBox:void 0,fill:void 0})}),[i]);return r.createElement(ck,{value:t?a:void 0},n)}function CT(e){var{clipPathId:t,pathRef:n,points:i,strokeDasharray:a,props:o}=e,{type:l,layout:c,connectNulls:s,needClip:u,shape:f}=o,d=xT(xT({},wx(ET(o,vT))),{},{fill:"none",className:"recharts-line-curve",clipPath:u?"url(#clipPath-".concat(t,")"):void 0,points:i,type:l,layout:c,connectNulls:s,strokeDasharray:null!=a?a:o.strokeDasharray});return r.createElement(r.Fragment,null,(null==i?void 0:i.length)>1&&r.createElement(mT,bT({shapeType:"curve",option:f},d,{pathRef:n})),r.createElement(kT,{points:i,clipPathId:t,props:o}))}function MT(e){var{clipPathId:t,props:n,pathRef:i,previousPointsRef:a,longestAnimatedLengthRef:o}=e,{points:l,strokeDasharray:c,isAnimationActive:s,animationBegin:u,animationDuration:f,animationEasing:d,animateNewValues:p,width:h,height:m,onAnimationEnd:y,onAnimationStart:v}=n,g=a.current,b=aj(l,"recharts-line-"),w=(0,r.useRef)(b),[x,O]=(0,r.useState)(!1),E=!x,S=(0,r.useCallback)(()=>{"function"==typeof y&&y(),O(!1)},[y]),P=(0,r.useCallback)(()=>{"function"==typeof v&&v(),O(!0)},[v]),j=function(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}(i.current),A=(0,r.useRef)(0);w.current!==b&&(A.current=o.current,w.current=b);var k=A.current;return r.createElement(TT,{points:l,showLabels:E},n.children,r.createElement(ij,{animationId:b,begin:u,duration:f,isActive:s,easing:d,onAnimationEnd:S,onAnimationStart:P,key:b},e=>{var u,f=ya(k,j+k,e),d=Math.min(f,j);if(s)if(c){var y="".concat(c).split(/[,\s]+/gim).map(e=>parseFloat(e));u=((e,t,r)=>{var n=r.reduce((e,t)=>e+t);if(!n)return jT(t,e);for(var i=Math.floor(e/n),a=e%n,o=t-e,l=[],c=0,s=0;c<r.length;s+=r[c],++c)if(s+r[c]>a){l=[...r.slice(0,c),a-s];break}var u=l.length%2==0?[0,o]:[o];return[...AT(r,i),...l,...u].map(e=>"".concat(e,"px")).join(", ")})(d,j,y)}else u=jT(j,d);else u=null==c?void 0:String(c);if(e>0&&j>0&&(a.current=l,o.current=Math.max(o.current,d)),g){var v=g.length/l.length,b=1===e?l:l.map((t,r)=>{var n=Math.floor(r*v);if(g[n]){var i=g[n];return xT(xT({},t),{},{x:ya(i.x,t.x,e),y:ya(i.y,t.y,e)})}return xT(xT({},t),{},p?{x:ya(2*h,t.x,e),y:ya(m/2,t.y,e)}:{x:t.x,y:t.y})});return a.current=b,r.createElement(CT,{props:n,points:b,clipPathId:t,pathRef:i,strokeDasharray:u})}return r.createElement(CT,{props:n,points:l,clipPathId:t,pathRef:i,strokeDasharray:u})}),r.createElement(fk,{label:n.label}))}function _T(e){var{clipPathId:t,props:n}=e,i=(0,r.useRef)(null),a=(0,r.useRef)(0),o=(0,r.useRef)(null);return r.createElement(MT,{props:n,clipPathId:t,previousPointsRef:i,longestAnimatedLengthRef:a,pathRef:o})}var DT=(e,t)=>{var r,n;return{x:null!==(r=e.x)&&void 0!==r?r:void 0,y:null!==(n=e.y)&&void 0!==n?n:void 0,value:e.value,errorVal:es(e.payload,t)}};class RT extends r.Component{render(){var{hide:e,dot:t,points:n,className:i,xAxisId:a,yAxisId:o,top:l,left:c,width:s,height:u,id:f,needClip:d,zIndex:p}=this.props;if(e)return null;var h=ea("recharts-line",i),m=f,{r:y,strokeWidth:v}=function(e){var t=bx(e);if(null!=t){var{r,strokeWidth:n}=t,i=Number(r),a=Number(n);return(Number.isNaN(i)||i<0)&&(i=3),(Number.isNaN(a)||a<0)&&(a=2),{r:i,strokeWidth:a}}return{r:3,strokeWidth:2}}(t),g=hk(t),b=2*y+v,w=d?"url(#clipPath-".concat(g?"":"dots-").concat(m,")"):void 0;return r.createElement(oE,{zIndex:p},r.createElement(RO,{className:h},d&&r.createElement("defs",null,r.createElement(Dk,{clipPathId:m,xAxisId:a,yAxisId:o}),!g&&r.createElement("clipPath",{id:"clipPath-dots-".concat(m)},r.createElement("rect",{x:c-b/2,y:l-b/2,width:s+b,height:u+b}))),r.createElement(Mk,{xAxisId:a,yAxisId:o,data:n,dataPointFormatter:DT,errorBarOffset:0},r.createElement(_T,{props:this.props,clipPathId:m}))),r.createElement(jk,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:w}))}}var IT={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:"auto",label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:Om.line,type:"linear"};function NT(e){var t=fO(e,IT),{activeDot:n,animateNewValues:i,animationBegin:a,animationDuration:o,animationEasing:l,connectNulls:c,dot:s,hide:u,isAnimationActive:f,label:d,legendType:p,xAxisId:h,yAxisId:m,id:y}=t,v=ET(t,gT),{needClip:g}=_k(h,m),b=iO(),w=Ns(),x=js(),O=zc(e=>$k(e,h,m,x,y));if("horizontal"!==w&&"vertical"!==w||null==O||null==b)return null;var{height:E,width:S,x:P,y:j}=b;return r.createElement(RT,bT({},v,{id:y,connectNulls:c,dot:s,activeDot:n,animateNewValues:i,animationBegin:a,animationDuration:o,animationEasing:l,isAnimationActive:f,hide:u,label:d,legendType:p,xAxisId:h,yAxisId:m,points:O,layout:w,height:E,width:S,left:P,top:j,needClip:g}))}function LT(e){var t=fO(e,IT),n=js();return r.createElement(Zk,{id:t.id,type:"line"},e=>r.createElement(r.Fragment,null,r.createElement(qk,{legendPayload:ST(t)}),r.createElement(PT,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),r.createElement(Qk,{type:"line",id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),r.createElement(NT,bT({},t,{id:e}))))}var FT=r.memo(LT,cx);FT.displayName="Line";var zT=n(253);function BT(){return BT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},BT.apply(null,arguments)}const UT=e=>zT.createElement(l.Translate,BT({namespace:"Statistics"},e)),$T=({period:e,formatValue:t,active:r,payload:n,label:i,data:a})=>r&&n&&n.length?zT.createElement(l.Panel,null,zT.createElement(l.Paragraph,null,zi(i,e)),n.map(({name:e,stroke:r})=>{const n=a.find(t=>t.name===e)?.data,o=((e,t)=>{for(let r=0;r<e.length;r++){const n=e[r].time,i=e[r].value;if(n>=t)return i;const a=e[r+1]?.time,o=e[r+1]?.value;if(a===t)return o;if(t<a&&n!==a)return i+(t-n)*(o-i)/(a-n)}return e.at(-1)?.value})(n,i)??null;return null===o?null:zT.createElement(UT,{style:{color:r},key:e,content:"chartTooltip",params:{name:zT.createElement(l.Text,{bold:!0},e),value:t(o)},component:"div"})})):null;$T.propTypes={period:o().string.isRequired,formatValue:o().func.isRequired,active:o().bool.isRequired,payload:o().array,label:o().number.isRequired,data:o().array.isRequired};const qT=$T;var WT=n(253);function HT(){return HT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},HT.apply(null,arguments)}const KT=({id:e,loading:t,to:r,from:n,period:i,data:a,yAxisDomain:o,formatYAxis:c,formatValue:s})=>t?WT.createElement(l.Skeleton,{height:300}):WT.createElement("div",{className:"watchdog-usage-chart"},WT.createElement(za,null,WT.createElement(yO,null,WT.createElement(tS,{stroke:"#ccc",strokeDasharray:"5 5"}),WT.createElement(mS,{domain:[n,r],dataKey:"time",type:"number",ticks:Fi(n,r,i),tickFormatter:e=>zi(e,i)}),WT.createElement(SS,{domain:o,dataKey:"value",type:"number",tickFormatter:c}),WT.createElement(iA,{content:e=>WT.createElement(qT,HT({},e,{period:i,formatValue:s,data:a}))}),WT.createElement(QA,null),a.map(({data:t,name:r,key:n})=>WT.createElement(FT,{id:n,type:"linear",dataKey:t.length?"value":null,data:t,name:r,key:`${e}-${n}`,dot:!1,stroke:$i(n),isAnimationActive:1!==t.length})))));KT.propTypes={id:o().string.isRequired,loading:o().bool.isRequired,to:o().number.isRequired,from:o().number.isRequired,period:o().string.isRequired,data:o().object.isRequired,yAxisDomain:o().array,formatYAxis:o().func.isRequired,formatValue:o().func.isRequired};const VT=KT;var YT=n(253);function GT(){return GT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},GT.apply(null,arguments)}const XT=e=>YT.createElement(l.Translate,GT({namespace:"Statistics"},e)),ZT=e=>YT.createElement(YT.Fragment,null,YT.createElement(l.Heading,{level:5},YT.createElement(XT,{content:"cpuUsage"})),YT.createElement(VT,GT({},e,{id:"cpuChart",yAxisDomain:[0,100],formatYAxis:e=>`${e.toFixed()}%`,formatValue:e=>`${parseFloat(e.toFixed(1))}%`})));var JT=n(253);function QT(){return QT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},QT.apply(null,arguments)}const eC=e=>JT.createElement(l.Translate,QT({namespace:"Statistics"},e)),tC=e=>JT.createElement(JT.Fragment,null,JT.createElement(l.Heading,{level:5},JT.createElement(eC,{content:"memoryUsage"})),JT.createElement(VT,QT({},e,{id:"memoryChart",formatYAxis:e=>Ui(e,0),formatValue:Ui})));var rC=n(253);function nC(){return nC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nC.apply(null,arguments)}const iC=e=>rC.createElement(l.Translate,nC({namespace:"Statistics"},e)),aC=({loading:e,period:t,to:r,from:n,cpuLoading:i,cpuData:a,memoryLoading:o,memoryData:c})=>e?rC.createElement(l.ContentLoader,null):rC.createElement(l.Panel,null,rC.createElement(l.Paragraph,null,rC.createElement(l.Heading,{level:3},rC.createElement(iC,{content:"usageDescription",params:{to:zi(r),from:zi(n)}}))),rC.createElement(ZT,{to:r,from:n,period:t,loading:i,data:a}),rC.createElement(tC,{to:r,from:n,period:t,loading:o,data:c}));aC.propTypes={loading:o().bool.isRequired,period:o().object.isRequired,to:o().number.isRequired,from:o().number.isRequired,cpuLoading:o().bool.isRequired,cpuData:o().object.isRequired,memoryLoading:o().bool.isRequired,memoryData:o().object.isRequired};const oC=aC;var lC=n(253);function cC(){return cC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cC.apply(null,arguments)}const sC=e=>lC.createElement(l.Translate,cC({namespace:"Statistics"},e)),uC=()=>{const[e,t]=(0,r.useState)(!0),[{period:n,from:i,to:a},o]=(0,r.useState)({}),[c,u]=(0,r.useState)(!0),[f,p]=(0,r.useState)([]),[h,m]=(0,r.useState)(!0),[y,v]=(0,r.useState)([]),{baseUrl:g,monitoringStatus:b,pollInterval:w}=s(),{addError:x}=d(),O=(0,r.useRef)(new AbortController),E=(0,r.useRef)(!1),S=(0,r.useCallback)(async(e,t=!1)=>{!0!==t&&u(!0);try{const{data:t}=await xn.get(`${g}/statistics/cpu-usage`,{params:e});p(t)}catch(e){if(!xn.isAxiosError(e))throw e;x(e.message)}finally{!0!==t&&u(!1)}},[g,x]),P=(0,r.useCallback)(async(e,t=!1)=>{!0!==t&&m(!0);try{const{data:t}=await xn.get(`${g}/statistics/memory-usage`,{params:e});v(t)}catch(e){if(!xn.isAxiosError(e))throw e;x(e.message)}finally{!0!==t&&m(!1)}},[g,x]),j=(0,r.useCallback)(async(e=!1)=>{!0!==e&&t(!0);try{const{data:t}=await xn.get(`${g}/statistics/period`);o(t),S(t,e),P(t,e)}catch(e){if(!xn.isAxiosError(e))throw e;x(e.message)}finally{!0!==e&&t(!1)}},[g,S,P,x]);(0,r.useEffect)(()=>{j()},[j]);const A=(0,r.useCallback)(async()=>{if(!E.current){E.current=!0;try{await j(!0)}finally{E.current=!1}}},[j]),k=()=>O.current.abort();return(0,r.useEffect)(()=>{if(b&&w&&n===Ri){const e=setInterval(A,1e3*w);return()=>{clearInterval(e),k()}}return()=>k()},[b,w,n,A]),lC.createElement(lC.Fragment,null,lC.createElement(l.Paragraph,null,lC.createElement(sC,{content:"description"})),lC.createElement(Ji,{onReload:j}),lC.createElement(oC,{loading:e,period:n,from:i,to:a,cpuLoading:c,cpuData:f,memoryLoading:h,memoryData:y}))};var fC=n(253);const dC=({basename:e})=>fC.createElement(Ze,{basename:e},fC.createElement(Te,null,fC.createElement(Ae,{element:fC.createElement(Rn,null)},fC.createElement(Ae,{path:"/service/list",element:fC.createElement(di,null)}),fC.createElement(Ae,{path:"/disk/list",element:fC.createElement(Di,null)}),fC.createElement(Ae,{path:"/statistics/index",element:fC.createElement(uC,null)})),fC.createElement(Ae,{path:"*",element:fC.createElement(Pe,{to:"/service/list"})})));dC.propTypes={basename:o().string.isRequired};const pC=dC;var hC=n(253);const mC=({locale:e,appConfig:t})=>{const[n,i]=(0,r.useState)(t.monitoringStatus),[a,o]=(0,r.useState)(t.pollInterval),s=(0,r.useMemo)(()=>({...t,monitoringStatus:n,setMonitoringStatus:i,pollInterval:a,setPollInterval:o}),[t,n,a]);return hC.createElement(c.Provider,{value:s},hC.createElement(l.LocaleProvider,{messages:e},hC.createElement(f,null,hC.createElement(pC,{basename:t.baseUrl}))))};mC.propTypes={locale:o().object.isRequired,appConfig:o().object.isRequired};const yC=mC;var vC=n(2591),gC=n.n(vC),bC=n(1740),wC=n.n(bC),xC=n(8128),OC=n.n(xC),EC=n(855),SC=n.n(EC),PC=n(3051),jC=n.n(PC),AC=n(3656),kC=n.n(AC),TC=n(1321),CC={};CC.styleTagTransform=kC(),CC.setAttributes=SC(),CC.insert=OC().bind(null,"head"),CC.domAPI=wC(),CC.insertStyleElement=jC(),gC()(TC.A,CC),TC.A&&TC.A.locals&&TC.A.locals;var MC=n(253);xn.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",xn.interceptors.response.use(e=>(e?.data?.redirect&&window.location.assign(e.data.redirect),e),e=>(400===e.response?.status&&window.location.reload(),Promise.reject(e)));const _C=({moduleId:e,...t})=>{(0,r.createRoot)(document.getElementById(e)).render(MC.createElement(yC,t))}})(),i})());
//# sourceMappingURL=index.js.map