orbitchat 3.9.9 → 3.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/orbitchat.js +21 -2
- package/dist/assets/{ChartRenderer-DClh1ujq.js → ChartRenderer-D9ji4AY0.js} +1 -1
- package/dist/assets/{MermaidRenderer-pbLK2azB.js → MermaidRenderer-Chogqtsj.js} +5 -5
- package/dist/assets/{MusicRenderer-kxb6HilQ.js → MusicRenderer-pcXSO6ad.js} +2 -2
- package/dist/assets/{SVGRenderer-iu6u1Cw7.js → SVGRenderer-dTyGaOa6.js} +1 -1
- package/dist/assets/{architectureDiagram-3BPJPVTR-SC8K0yQD.js → architectureDiagram-3BPJPVTR-D1ThwGPj.js} +1 -1
- package/dist/assets/{blockDiagram-GPEHLZMM-AwWkPUtd.js → blockDiagram-GPEHLZMM-DUlpfZ40.js} +1 -1
- package/dist/assets/{c4Diagram-AAUBKEIU-CU80FIqf.js → c4Diagram-AAUBKEIU-Bo_W6Z3L.js} +1 -1
- package/dist/assets/channel-9U8yS48E.js +1 -0
- package/dist/assets/{chunk-2J33WTMH-m3LCoOx8.js → chunk-2J33WTMH-BoV_Pkj1.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-1jlBfcq9.js → chunk-4BX2VUAB-DE0Pa0eq.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-WfRzbzaa.js → chunk-55IACEB6-yqUSUZTG.js} +1 -1
- package/dist/assets/{chunk-727SXJPM-CA2GJA5h.js → chunk-727SXJPM-BUCBxASX.js} +1 -1
- package/dist/assets/{chunk-AQP2D5EJ-BiAX-dUc.js → chunk-AQP2D5EJ-MRQLpnNF.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-fKfuBh9D.js → chunk-FMBD7UC4-BwnPTspM.js} +1 -1
- package/dist/assets/{chunk-ND2GUHAM-B3rtP9nG.js → chunk-ND2GUHAM-D--tjORX.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-DgUQ5Ecu.js → chunk-QZHKN3VN-Bnc_6NyO.js} +1 -1
- package/dist/assets/classDiagram-4FO5ZUOK-Dr01ikJ5.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-Dr01ikJ5.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-sWgsEixD.js → cose-bilkent-S5V4N54A-_uNPjkOY.js} +1 -1
- package/dist/assets/{dagre-BM42HDAG-sOxz_C4g.js → dagre-BM42HDAG--HONc1fB.js} +1 -1
- package/dist/assets/{diagram-2AECGRRQ-CVdYRm3-.js → diagram-2AECGRRQ-BX26yech.js} +1 -1
- package/dist/assets/{diagram-5GNKFQAL-DWn9p9RE.js → diagram-5GNKFQAL-Cn30tbxf.js} +1 -1
- package/dist/assets/{diagram-KO2AKTUF-sQpYYpK8.js → diagram-KO2AKTUF-yZ6OQBw5.js} +1 -1
- package/dist/assets/{diagram-LMA3HP47-D4D9ihpX.js → diagram-LMA3HP47-LzpWpvOT.js} +1 -1
- package/dist/assets/{diagram-OG6HWLK6-BNfms66C.js → diagram-OG6HWLK6-CFouggPO.js} +1 -1
- package/dist/assets/{docx-preview-BRX3O3gx.js → docx-preview-KgGHKUqF.js} +1 -1
- package/dist/assets/{erDiagram-TEJ5UH35-8YjCe8Vm.js → erDiagram-TEJ5UH35-CH3oSrSV.js} +1 -1
- package/dist/assets/{flowDiagram-I6XJVG4X-ClNfD6qJ.js → flowDiagram-I6XJVG4X-CJmSfVcv.js} +1 -1
- package/dist/assets/{ganttDiagram-6RSMTGT7-BqElHnRY.js → ganttDiagram-6RSMTGT7-Cq8k4Bhn.js} +1 -1
- package/dist/assets/{gitGraphDiagram-PVQCEYII-CQYsuJbS.js → gitGraphDiagram-PVQCEYII-Jn4EXqed.js} +1 -1
- package/dist/assets/{index-BO0SVkG1.js → index-B0rmhSKg.js} +1 -1
- package/dist/assets/index-DeOdqFXj.js +694 -0
- package/dist/assets/index-htKaG2fs.css +1 -0
- package/dist/assets/{infoDiagram-5YYISTIA-Zk2-VmGc.js → infoDiagram-5YYISTIA-BZxDF5Qa.js} +1 -1
- package/dist/assets/{ishikawaDiagram-YF4QCWOH-CJmYRSBk.js → ishikawaDiagram-YF4QCWOH-C3wpF62k.js} +1 -1
- package/dist/assets/{journeyDiagram-JHISSGLW-DHnbHd1S.js → journeyDiagram-JHISSGLW-CQIJaHm_.js} +1 -1
- package/dist/assets/{kanban-definition-UN3LZRKU-D8TFsZbU.js → kanban-definition-UN3LZRKU-f0BO7199.js} +1 -1
- package/dist/assets/{mindmap-definition-RKZ34NQL-B7D4IIUc.js → mindmap-definition-RKZ34NQL-DB3TuAar.js} +1 -1
- package/dist/assets/papaparse.min-CJkp3nBF.js +15 -0
- package/dist/assets/{pieDiagram-4H26LBE5-Cw7bR1ri.js → pieDiagram-4H26LBE5-CN1rZShf.js} +1 -1
- package/dist/assets/{quadrantDiagram-W4KKPZXB-D9-NYcEM.js → quadrantDiagram-W4KKPZXB-C0prrc2n.js} +1 -1
- package/dist/assets/{requirementDiagram-4Y6WPE33-D_FyCui_.js → requirementDiagram-4Y6WPE33-BWAV1ZDN.js} +1 -1
- package/dist/assets/{sankeyDiagram-5OEKKPKP-DNIoeOSb.js → sankeyDiagram-5OEKKPKP-DVeWxRv1.js} +1 -1
- package/dist/assets/{sequenceDiagram-3UESZ5HK-_3gUjD6A.js → sequenceDiagram-3UESZ5HK-J3_RBLyT.js} +1 -1
- package/dist/assets/{stateDiagram-AJRCARHV-CP9onNlk.js → stateDiagram-AJRCARHV-CBzw8lCJ.js} +1 -1
- package/dist/assets/stateDiagram-v2-BHNVJYJU-Bc5prAoZ.js +1 -0
- package/dist/assets/{timeline-definition-PNZ67QCA-BOSaI-Jw.js → timeline-definition-PNZ67QCA-DiJVvVTk.js} +1 -1
- package/dist/assets/{vennDiagram-CIIHVFJN-A8aVSqv1.js → vennDiagram-CIIHVFJN-BWCFwSH6.js} +1 -1
- package/dist/assets/{wardley-L42UT6IY-JgBh2O8F.js → wardley-L42UT6IY-B_9uKaqE.js} +1 -1
- package/dist/assets/{wardleyDiagram-YWT4CUSO-nIgSgvz5.js → wardleyDiagram-YWT4CUSO-MoDPca70.js} +1 -1
- package/dist/assets/{xychartDiagram-2RQKCTM6-5K0Rc5G6.js → xychartDiagram-2RQKCTM6-DS7pCp5g.js} +1 -1
- package/dist/index.html +2 -2
- package/dist/robots.txt +5 -0
- package/package.json +3 -1
- package/dist/assets/channel-BVBdTOdE.js +0 -1
- package/dist/assets/classDiagram-4FO5ZUOK-6DEt_YNG.js +0 -1
- package/dist/assets/classDiagram-v2-Q7XG4LA2-6DEt_YNG.js +0 -1
- package/dist/assets/index-CgA3Z5Y5.css +0 -1
- package/dist/assets/index-CtRXyPDv.js +0 -694
- package/dist/assets/papaparse.min-C03xjc7-.js +0 -15
- package/dist/assets/stateDiagram-v2-BHNVJYJU-vjFhnIuF.js +0 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ORBIT Chat App
|
|
2
2
|
|
|
3
|
-
A standalone chat application for ORBIT that can be installed as an npm package and run as a CLI tool. All API communication is routed through a built-in Express proxy that maps adapter names to backend API keys, so **no secrets ever reach the browser**.
|
|
3
|
+
A standalone chat application for ORBIT that can be installed as an npm package and run as a CLI tool. All API communication is routed through a built-in Express proxy that maps adapter names to backend API keys, so **no secrets ever reach the browser**.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
package/bin/orbitchat.js
CHANGED
|
@@ -155,7 +155,7 @@ const DEFAULTS = {
|
|
|
155
155
|
conversations: { maxConversations: 1, messagesPerConversation: 10, messagesPerThread: 10, totalMessages: 10 },
|
|
156
156
|
messages: { maxLength: 500 },
|
|
157
157
|
},
|
|
158
|
-
auth: { enabled: false, domain: '', clientId: '', audience: '' },
|
|
158
|
+
auth: { enabled: false, provider: 'auth0', domain: '', clientId: '', audience: '', tenantId: '', scopes: [] },
|
|
159
159
|
header: { enabled: false, logoUrl: '', logoUrlLight: '', logoUrlDark: '', logoHeight: '', logoWidth: '', bgColor: '', textColor: '', showBorder: true, navLinks: [] },
|
|
160
160
|
footer: { enabled: false, text: '', bgColor: '', textColor: '', showBorder: false, layout: 'stacked', align: 'center', topPadding: 'large', navLinks: [] },
|
|
161
161
|
startupScripts: [],
|
|
@@ -273,6 +273,19 @@ function loadYamlConfig(configPath) {
|
|
|
273
273
|
return null;
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
+
function parseAuthScopes(raw) {
|
|
277
|
+
const trimmed = raw.trim();
|
|
278
|
+
if (trimmed.startsWith('[')) {
|
|
279
|
+
try {
|
|
280
|
+
const p = JSON.parse(trimmed);
|
|
281
|
+
return Array.isArray(p) ? p.filter(Boolean) : [];
|
|
282
|
+
} catch {
|
|
283
|
+
return [];
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return trimmed.split(/\s+/).filter(Boolean);
|
|
287
|
+
}
|
|
288
|
+
|
|
276
289
|
// ---- Local asset handling ----
|
|
277
290
|
|
|
278
291
|
function resolveLocalAssetPath(rawValue, yamlPath) {
|
|
@@ -609,6 +622,12 @@ function main() {
|
|
|
609
622
|
if (process.env.VITE_AUTH_DOMAIN) config.auth.domain = process.env.VITE_AUTH_DOMAIN;
|
|
610
623
|
if (process.env.VITE_AUTH_CLIENT_ID) config.auth.clientId = process.env.VITE_AUTH_CLIENT_ID;
|
|
611
624
|
if (process.env.VITE_AUTH_AUDIENCE) config.auth.audience = process.env.VITE_AUTH_AUDIENCE;
|
|
625
|
+
if (process.env.VITE_AUTH_PROVIDER) config.auth.provider = process.env.VITE_AUTH_PROVIDER;
|
|
626
|
+
if (process.env.VITE_AUTH_TENANT_ID) config.auth.tenantId = process.env.VITE_AUTH_TENANT_ID;
|
|
627
|
+
if (process.env.VITE_AUTH_SCOPES) {
|
|
628
|
+
const raw = process.env.VITE_AUTH_SCOPES.trim();
|
|
629
|
+
config.auth.scopes = parseAuthScopes(raw);
|
|
630
|
+
}
|
|
612
631
|
|
|
613
632
|
const localAssets = {};
|
|
614
633
|
const mapHeaderLogoAsset = (fieldName, assetId) => {
|
|
@@ -656,4 +675,4 @@ function main() {
|
|
|
656
675
|
|
|
657
676
|
const isMainModule = process.argv[1] && (import.meta.url.endsWith(process.argv[1].replace(/\\/g, '/')) || path.basename(process.argv[1]) === 'orbitchat');
|
|
658
677
|
if (isMainModule) main();
|
|
659
|
-
export { main, createServer };
|
|
678
|
+
export { main, createServer, parseAuthScopes };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var q0=Object.defineProperty;var Z0=(e,t,r)=>t in e?q0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var mi=(e,t,r)=>Z0(e,typeof t!="symbol"?t+"":t,r);import{r as c,a as ms,g as J0,R as Q0,j as I}from"./index-CtRXyPDv.js";import{w as sm,Q as cm,b as Ee,al as hs,aq as ex,ar as tx,l as fm,t as Do,d as Dt,p as du,s as zi,a as dm,a5 as Tn,n as vf,as as rx,a6 as nx,a8 as ax,ac as $o,a9 as ix,ad as ox,a7 as lx,q as ux,a4 as sx,at as cx,ab as vm,ae as fx,af as dx,ag as vx,ah as px,ai as mx,aj as hx,ak as yx,am as gx,an as bx,c as xx,ao as Px,ap as wx}from"./isPrototype-D0troCl1.js";import{b as Ox,p as Ax}from"./band-CquvqAHh.js";import{d as Bi,n as Ex,e as Sx,i as ys,f as vu,g as sn,h as gs,a as bs,j as pf,k as lr,c as jx,m as No,o as pm,l as Ix,p as kx}from"./linear-CB3-LqbC.js";import{i as Sr,a as fr}from"./init-Dmth1JHB.js";import{m as mf,a as hf,p as Cx,q as _x,u as Tx,s as Dx,r as $x,v as Nx,w as Mx,x as Rx,y as Lx,z as zx,A as Bx,B as Kx,t as Wx}from"./time-C80Ah3yu.js";import{f as Fx,b as Vx}from"./defaultLocale-DX6XiGOO.js";import{i as Gx,o as Hx}from"./ordinal-DILIJJjt.js";function Ux(e=Bi){if(e===Bi)return mm;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function mm(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function hm(e,t,r=0,n=1/0,a){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(a=a===void 0?mm:Ux(a);n>r;){if(n-r>600){const u=n-r+1,s=t-r+1,f=Math.log(u),d=.5*Math.exp(2*f/3),v=.5*Math.sqrt(f*d*(u-d)/u)*(s-u/2<0?-1:1),p=Math.max(r,Math.floor(t-s*d/u+v)),m=Math.min(n,Math.floor(t+(u-s)*d/u+v));hm(e,t,p,m,a)}const i=e[t];let o=r,l=n;for(fa(e,r,t),a(e[n],i)>0&&fa(e,r,n);o<l;){for(fa(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[r],i)===0?fa(e,r,l):(++l,fa(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function fa(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Xx(e,t,r){if(e=Float64Array.from(Ex(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return mf(e);if(t>=1)return hf(e);var n,a=(n-1)*t,i=Math.floor(a),o=hf(hm(e,i).subarray(0,i+1)),l=mf(e.subarray(i+1));return o+(l-o)*(a-i)}}function Yx(e,t,r=Sx){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,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),l=+r(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function qx(e,t){t===void 0&&(t=e,e=ys);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[l](o-l)}}function ym(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,vu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return ym(e).unknown(t)},e=arguments.length?Array.from(e,vu):[0,1],sn(r)}function yf(e){return Math.log(e)}function gf(e){return Math.exp(e)}function Zx(e){return-Math.log(-e)}function Jx(e){return-Math.exp(-e)}function Qx(e){return isFinite(e)?+("1e"+e):e<0?0:e}function eP(e){return e===10?Qx:e===Math.E?Math.exp:t=>Math.pow(e,t)}function tP(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function bf(e){return(t,r)=>-e(-t,r)}function xs(e){const t=e(yf,gf),r=t.domain;let n=10,a,i;function o(){return a=tP(n),i=eP(n),r()[0]<0?(a=bf(a),i=bf(i),e(Zx,Jx)):e(yf,gf),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const u=r();let s=u[0],f=u[u.length-1];const d=f<s;d&&([s,f]=[f,s]);let v=a(s),p=a(f),m,h;const g=l==null?10:+l;let y=[];if(!(n%1)&&p-v<g){if(v=Math.floor(v),p=Math.ceil(p),s>0){for(;v<=p;++v)for(m=1;m<n;++m)if(h=v<0?m/i(-v):m*i(v),!(h<s)){if(h>f)break;y.push(h)}}else for(;v<=p;++v)for(m=n-1;m>=1;--m)if(h=v>0?m/i(-v):m*i(v),!(h<s)){if(h>f)break;y.push(h)}y.length*2<g&&(y=pf(s,f,g))}else y=pf(v,p,Math.min(p-v,g)).map(i);return d?y.reverse():y},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Fx(u)).precision==null&&(u.trim=!0),u=Vx(u)),l===1/0)return u;const s=Math.max(1,n*l/t.ticks().length);return f=>{let d=f/i(Math.round(a(f)));return d*n<n-.5&&(d*=n),d<=s?u(f):""}},t.nice=()=>r(Cx(r(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function gm(){const e=xs(gs()).domain([1,10]);return e.copy=()=>bs(e,gm()).base(e.base()),Sr.apply(e,arguments),e}function xf(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Pf(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ps(e){var t=1,r=e(xf(t),Pf(t));return r.constant=function(n){return arguments.length?e(xf(t=+n),Pf(t)):t},sn(r)}function bm(){var e=Ps(gs());return e.copy=function(){return bs(e,bm()).constant(e.constant())},Sr.apply(e,arguments)}function wf(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function rP(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function nP(e){return e<0?-e*e:e*e}function ws(e){var t=e(lr,lr),r=1;function n(){return r===1?e(lr,lr):r===.5?e(rP,nP):e(wf(r),wf(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},sn(t)}function Os(){var e=ws(gs());return e.copy=function(){return bs(e,Os()).exponent(e.exponent())},Sr.apply(e,arguments),e}function aP(){return Os.apply(null,arguments).exponent(.5)}function Of(e){return Math.sign(e)*e*e}function iP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function xm(){var e=jx(),t=[0,1],r=!1,n;function a(i){var o=iP(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(Of(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,vu)).map(Of)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return xm(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Sr.apply(a,arguments),sn(a)}function Pm(){var e=[],t=[],r=[],n;function a(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=Yx(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?n:t[No(r,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Bi),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return Pm().domain(e).range(t).unknown(n)},Sr.apply(i,arguments)}function wm(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(u){return u!=null&&u<=u?a[No(n,u,0,r)]:i}function l(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},o.range=function(u){return arguments.length?(r=(a=Array.from(u)).length-1,l()):a.slice()},o.invertExtent=function(u){var s=a.indexOf(u);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(u){return arguments.length&&(i=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return wm().domain([e,t]).range(a).unknown(i)},Sr.apply(sn(o),arguments)}function Om(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[No(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Om().domain(e).range(t).unknown(r)},Sr.apply(a,arguments)}function oP(){return Sr.apply(_x(Kx,Bx,zx,Lx,Rx,Mx,Nx,$x,Dx,Tx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Mo(){var e=0,t=1,r,n,a,i,o=lr,l=!1,u;function s(d){return d==null||isNaN(d=+d)?u:o(a===0?.5:(d=(i(d)-r)*a,l?Math.max(0,Math.min(1,d)):d))}s.domain=function(d){return arguments.length?([e,t]=d,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(d){return arguments.length?(l=!!d,s):l},s.interpolator=function(d){return arguments.length?(o=d,s):o};function f(d){return function(v){var p,m;return arguments.length?([p,m]=v,o=d(p,m),s):[o(0),o(1)]}}return s.range=f(ys),s.rangeRound=f(pm),s.unknown=function(d){return arguments.length?(u=d,s):u},function(d){return i=d,r=d(e),n=d(t),a=r===n?0:1/(n-r),s}}function jr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Am(){var e=sn(Mo()(lr));return e.copy=function(){return jr(e,Am())},fr.apply(e,arguments)}function Em(){var e=xs(Mo()).domain([1,10]);return e.copy=function(){return jr(e,Em()).base(e.base())},fr.apply(e,arguments)}function Sm(){var e=Ps(Mo());return e.copy=function(){return jr(e,Sm()).constant(e.constant())},fr.apply(e,arguments)}function As(){var e=ws(Mo());return e.copy=function(){return jr(e,As()).exponent(e.exponent())},fr.apply(e,arguments)}function lP(){return As.apply(null,arguments).exponent(.5)}function jm(){var e=[],t=lr;function r(n){if(n!=null&&!isNaN(n=+n))return t((No(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Bi),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>Xx(e,i/n))},r.copy=function(){return jm(t).domain(e)},fr.apply(r,arguments)}function Ro(){var e=0,t=.5,r=1,n=1,a,i,o,l,u,s=lr,f,d=!1,v;function p(h){return isNaN(h=+h)?v:(h=.5+((h=+f(h))-i)*(n*h<n*i?l:u),s(d?Math.max(0,Math.min(1,h)):h))}p.domain=function(h){return arguments.length?([e,t,r]=h,a=f(e=+e),i=f(t=+t),o=f(r=+r),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,p):[e,t,r]},p.clamp=function(h){return arguments.length?(d=!!h,p):d},p.interpolator=function(h){return arguments.length?(s=h,p):s};function m(h){return function(g){var y,b,x;return arguments.length?([y,b,x]=g,s=qx(h,[y,b,x]),p):[s(0),s(.5),s(1)]}}return p.range=m(ys),p.rangeRound=m(pm),p.unknown=function(h){return arguments.length?(v=h,p):v},function(h){return f=h,a=h(e),i=h(t),o=h(r),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,p}}function Im(){var e=sn(Ro()(lr));return e.copy=function(){return jr(e,Im())},fr.apply(e,arguments)}function km(){var e=xs(Ro()).domain([.1,1,10]);return e.copy=function(){return jr(e,km()).base(e.base())},fr.apply(e,arguments)}function Cm(){var e=Ps(Ro());return e.copy=function(){return jr(e,Cm()).constant(e.constant())},fr.apply(e,arguments)}function Es(){var e=ws(Ro());return e.copy=function(){return jr(e,Es()).exponent(e.exponent())},fr.apply(e,arguments)}function uP(){return Es.apply(null,arguments).exponent(.5)}function hi(e,t,r){var n=null,a=Ee(!0),i=null,o=hs,l=null,u=sm(s);e=typeof e=="function"?e:e===void 0?ex:Ee(+e),t=typeof t=="function"?t:t===void 0?Ee(0):Ee(+t),r=typeof r=="function"?r:r===void 0?tx:Ee(+r);function s(d){var v,p,m,h=(d=cm(d)).length,g,y=!1,b,x=new Array(h),P=new Array(h);for(i==null&&(l=o(b=u())),v=0;v<=h;++v){if(!(v<h&&a(g=d[v],v,d))===y)if(y=!y)p=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),m=v-1;m>=p;--m)l.point(x[m],P[m]);l.lineEnd(),l.areaEnd()}y&&(x[v]=+e(g,v,d),P[v]=+t(g,v,d),l.point(n?+n(g,v,d):x[v],r?+r(g,v,d):P[v]))}if(b)return l=null,b+""||null}function f(){return fm().defined(a).curve(o).context(i)}return s.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ee(+d),n=null,s):e},s.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Ee(+d),s):e},s.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Ee(+d),s):n},s.y=function(d){return arguments.length?(t=typeof d=="function"?d:Ee(+d),r=null,s):t},s.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Ee(+d),s):t},s.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Ee(+d),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(d){return arguments.length?(a=typeof d=="function"?d:Ee(!!d),s):a},s.curve=function(d){return arguments.length?(o=d,i!=null&&(l=o(i)),s):o},s.context=function(d){return arguments.length?(d==null?i=l=null:l=o(i=d),s):i},s}const Ss={draw(e,t){const r=Dt(t/du);e.moveTo(r,0),e.arc(0,0,r,0,Do)}},sP={draw(e,t){const r=Dt(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()}},_m=Dt(1/3),cP=_m*2,fP={draw(e,t){const r=Dt(t/cP),n=r*_m;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},dP={draw(e,t){const r=Dt(t),n=-r/2;e.rect(n,n,r,r)}},vP=.8908130915292852,Tm=zi(du/10)/zi(7*du/10),pP=zi(Do/10)*Tm,mP=-dm(Do/10)*Tm,hP={draw(e,t){const r=Dt(t*vP),n=pP*r,a=mP*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=Do*i/5,l=dm(o),u=zi(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*a,u*n+l*a)}e.closePath()}},Vl=Dt(3),yP={draw(e,t){const r=-Dt(t/(Vl*3));e.moveTo(0,r*2),e.lineTo(-Vl*r,-r),e.lineTo(Vl*r,-r),e.closePath()}},lt=-.5,ut=Dt(3)/2,pu=1/Dt(12),gP=(pu/2+1)*3,bP={draw(e,t){const r=Dt(t/gP),n=r/2,a=r*pu,i=n,o=r*pu+r,l=-i,u=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(l,u),e.lineTo(lt*n-ut*a,ut*n+lt*a),e.lineTo(lt*i-ut*o,ut*i+lt*o),e.lineTo(lt*l-ut*u,ut*l+lt*u),e.lineTo(lt*n+ut*a,lt*a-ut*n),e.lineTo(lt*i+ut*o,lt*o-ut*i),e.lineTo(lt*l+ut*u,lt*u-ut*l),e.closePath()}};function xP(e,t){let r=null,n=sm(a);e=typeof e=="function"?e:Ee(e||Ss),t=typeof t=="function"?t:Ee(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Ee(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ee(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Zr(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,l=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function mu(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function PP(e,t){return e[t]}function wP(e){const t=[];return t.key=e,t}function OP(){var e=Ee([]),t=mu,r=Zr,n=PP;function a(i){var o=Array.from(e.apply(this,arguments),wP),l,u=o.length,s=-1,f;for(const d of i)for(l=0,++s;l<u;++l)(o[l][s]=[0,+n(d,o[l].key,s,i)]).data=d;for(l=0,f=cm(t(o));l<u;++l)o[f[l]].index=l;return r(o,f),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Ee(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:Ee(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?mu:typeof i=="function"?i:Ee(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??Zr,a):r},a}function AP(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}Zr(e,t)}}function EP(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var o=0,l=0;o<a;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}Zr(e,t)}}function SP(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var l=0,u=0,s=0;l<o;++l){for(var f=e[t[l]],d=f[n][1]||0,v=f[n-1][1]||0,p=(d-v)/2,m=0;m<l;++m){var h=e[t[m]],g=h[n][1]||0,y=h[n-1][1]||0;p+=g-y}u+=d,s+=p*d}a[n-1][1]+=a[n-1][0]=r,u&&(r-=s/u)}a[n-1][1]+=a[n-1][0]=r,Zr(e,t)}}function Dm(e){return typeof e=="symbol"||e instanceof Symbol}function jP(e){return Dm(e)?NaN:Number(e)}function Di(e){return e?(e=jP(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function IP(e){const t=Di(e),r=t%1;return r?t-r:t}function hu(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function kP(e){return Array.isArray(e)?e:Array.from(e)}function CP(e,t=1){const r=[],n=Math.floor(t),a=(i,o)=>{for(let l=0;l<i.length;l++){const u=i[l];Array.isArray(u)&&o<n?a(u,o+1):r.push(u)}};return a(e,0),r}function $m(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map($m).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function Lo(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is((t=e==null?void 0:e.valueOf)==null?void 0:t.call(e),-0)?"-0":String(e)}function zo(e){if(Array.isArray(e))return e.map(Lo);if(typeof e=="symbol")return[e];e=$m(e);const t=[],r=e.length;if(r===0)return t;let n=0,a="",i="",o=!1;for(e.charCodeAt(0)===46&&(t.push(""),n++);n<r;){const l=e[n];i?l==="\\"&&n+1<r?(n++,a+=e[n]):l===i?i="":a+=l:o?l==='"'||l==="'"?i=l:l==="]"?(o=!1,t.push(a),a=""):a+=l:l==="["?(o=!0,a&&(t.push(a),a="")):l==="."?a&&(t.push(a),a=""):a+=l,n++}return a&&t.push(a),t}function Bo(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function kt(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(Tn(t))return r;const n=e[t];return n===void 0?Bo(t)?kt(e,zo(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=Lo(t));const n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return _P(e,t,r);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),Tn(t))return r;const n=e[t];return n===void 0?r:n}}}function _P(e,t,r){if(t.length===0)return r;let n=e;for(let a=0;a<t.length;a++){if(n==null||Tn(t[a]))return r;n=n[t[a]]}return n===void 0?r:n}function TP(e){return function(t){return kt(t,e)}}function Nm(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function Mm(e,t,r){return typeof r!="function"?Mm(e,t,()=>{}):yu(e,t,function n(a,i,o,l,u,s){const f=r(a,i,o,l,u,s);return f!==void 0?!!f:yu(a,i,n,s)},new Map)}function yu(e,t,r,n){if(t===e)return!0;switch(typeof t){case"object":return DP(e,t,r,n);case"function":return Object.keys(t).length>0?yu(e,{...t},r,n):hu(e,t);default:return Nm(e)?typeof t=="string"?t==="":!0:hu(e,t)}}function DP(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return Rm(e,t,r,n);if(t instanceof Map)return $P(e,t,r,n);if(t instanceof Set)return NP(e,t,r,n);const a=Object.keys(t);if(e==null||vf(e))return a.length===0;if(a.length===0)return!0;if(n!=null&&n.has(t))return n.get(t)===e;n==null||n.set(t,e);try{for(let i=0;i<a.length;i++){const o=a[i];if(!vf(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!r(e[o],t[o],o,e,t,n))return!1}return!0}finally{n==null||n.delete(t)}}function $P(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[a,i]of t.entries())if(r(e.get(a),i,a,e,t,n)===!1)return!1;return!0}function Rm(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const a=new Set;for(let i=0;i<t.length;i++){const o=t[i];let l=!1;for(let u=0;u<e.length;u++){if(a.has(u))continue;const s=e[u];let f=!1;if(r(s,o,i,e,t,n)&&(f=!0),f){a.add(u),l=!0;break}}if(!l)return!1}return!0}function NP(e,t,r,n){return t.size===0?!0:e instanceof Set?Rm([...e],[...t],r,n):!1}function Lm(e,t){return Mm(e,t,()=>{})}function MP(e){return rx(e,void 0,e,new Map,void 0)}function RP(e){return e=MP(e),t=>Lm(t,e)}const LP=/^(?:0|[1-9]\d*)$/;function zm(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 LP.test(e)}}function zP(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&Bo(t)&&(e==null?void 0:e[t])==null?r=zo(t):r=[t],r.length===0)return!1;let n=e;for(let a=0;a<r.length;a++){const i=r[a];if((n==null||!Object.hasOwn(n,i))&&!((Array.isArray(n)||nx(n))&&zm(i)&&i<n.length))return!1;n=n[i]}return!0}function BP(e,t){switch(typeof e){case"object":Object.is(e==null?void 0:e.valueOf(),-0)&&(e="-0");break;case"number":e=Lo(e);break}return t=ax(t),function(r){const n=kt(r,e);return n===void 0?zP(r,e):t===void 0?n===void 0:Lm(n,t)}}function Ko(e){return e}function js(e){if(e==null)return Ko;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?BP(e[0],e[1]):RP(e);case"string":case"symbol":case"number":return TP(e)}}function KP(e){return e[e.length-1]}function WP(e){if($o(e))return KP(kP(e))}function gu(e,t,r){return Nm(r)&&(typeof t=="number"&&$o(r)&&zm(t)&&t<r.length||typeof t=="string"&&t in r)?hu(r[t],e):!1}function FP(e,t=1){const r=[],n=Math.floor(t);if(!$o(e))return r;const a=(i,o)=>{for(let l=0;l<i.length;l++){const u=i[l];o<n&&(Array.isArray(u)||u!=null&&u[Symbol.isConcatSpreadable]||u!==null&&typeof u=="object"&&Object.prototype.toString.call(u)==="[object Arguments]")?Array.isArray(u)?a(u,o+1):a(Array.from(u),o+1):r.push(u)}};return a(Array.from(e),0),r}function Af(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const VP=(e,t,r)=>{if(e!==t){const n=Af(e),a=Af(t);if(n===a&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?a-n:n-a}return 0},GP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,HP=/^\w*$/;function UP(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Dm(e)?!0:typeof e=="string"&&(HP.test(e)||!GP.test(e))||t!=null}function XP(e,t,r,n){if(e==null)return[];r=r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(l=>String(l));const a=(l,u)=>{let s=l;for(let f=0;f<u.length&&s!=null;++f)s=s[u[f]];return s},i=(l,u)=>u==null||l==null?u:typeof l=="object"&&"key"in l?Object.hasOwn(u,l.key)?u[l.key]:a(u,l.path):typeof l=="function"?l(u):Array.isArray(l)?a(u,l):typeof u=="object"?u[l]:u,o=t.map(l=>(Array.isArray(l)&&l.length===1&&(l=l[0]),l==null||typeof l=="function"||Array.isArray(l)||UP(l)?l:{key:l,path:zo(l)}));return e.map(l=>({original:l,criteria:o.map(u=>i(u,l))})).slice().sort((l,u)=>{for(let s=0;s<o.length;s++){const f=VP(l.criteria[s],u.criteria[s],r[s]);if(f!==0)return f}return 0}).map(l=>l.original)}function Ef(e,t){if(e==null)return!0;switch(typeof t){case"symbol":case"number":case"object":if(Array.isArray(t))return Sf(e,t);if(typeof t=="number"?t=Lo(t):typeof t=="object"&&(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t)),Tn(t))return!1;if((e==null?void 0:e[t])===void 0)return!0;try{return delete e[t],!0}catch{return!1}case"string":if((e==null?void 0:e[t])===void 0&&Bo(t))return Sf(e,zo(t));if(Tn(t))return!1;try{return delete e[t],!0}catch{return!1}}}function Sf(e,t){const r=t.length===1?e:kt(e,t.slice(0,-1)),n=t[t.length-1];if((r==null?void 0:r[n])===void 0)return!0;if(Tn(n))return!1;try{return delete r[n],!0}catch{return!1}}function Wo(e,...t){const r=t.length;return r>1&&gu(e,t[0],t[1])?t=[]:r>2&&gu(t[0],t[1],t[2])&&(t=[t[0]]),XP(e,CP(t),["asc"])}function YP(e,t){const r=new Map;for(let n=0;n<e.length;n++){const a=e[n],i=t(a,n,e);r.has(i)||r.set(i,a)}return Array.from(r.values())}function qP(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}function jf(e,t=Ko){return ix(e)?YP(Array.from(e),qP(js(t),1)):[]}function ZP(e,t,{signal:r,edges:n}={}){let a,i=null;const o=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),u=()=>{i!==null&&(e.apply(a,i),a=void 0,i=null)},s=()=>{l&&u(),p()};let f=null;const d=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,s()},t)},v=()=>{f!==null&&(clearTimeout(f),f=null)},p=()=>{v(),a=void 0,i=null},m=()=>{u()},h=function(...g){if(r!=null&&r.aborted)return;a=this,i=g;const y=f==null;d(),o&&y&&u()};return h.schedule=d,h.cancel=p,h.flush=m,r==null||r.addEventListener("abort",p,{once:!0}),h}function JP(e,t=0,r={}){typeof r!="object"&&(r={});const{leading:n=!1,trailing:a=!0,maxWait:i}=r,o=Array(2);n&&(o[0]="leading"),a&&(o[1]="trailing");let l,u=null;const s=ZP(function(...v){l=e.apply(this,v),u=null},t,{edges:o}),f=function(...v){return i!=null&&(u===null&&(u=Date.now()),Date.now()-u>=i)?(l=e.apply(this,v),u=Date.now(),s.cancel(),s.schedule(),l):(s.apply(this,v),l)},d=()=>(s.flush(),l);return f.cancel=s.cancel,f.flush=d,f}function QP(e,t=0,r={}){const{leading:n=!0,trailing:a=!0}=r;return JP(e,t,{leading:n,maxWait:t,trailing:a})}function ew(e,t){if(e.length===0)return;let r=e[0],n=-1/0;for(let a=0;a<e.length;a++){const i=e[a],o=t(i,a,e);if(Number.isNaN(o))return i;o>n&&(n=o,r=i)}return r}function tw(e,t){if(e!=null)return ew(Array.from(e),js(t??Ko))}function rw(e,t){if(e.length===0)return;let r=e[0],n=1/0;for(let a=0;a<e.length;a++){const i=e[a],o=t(i,a,e);if(Number.isNaN(o))return i;o<n&&(n=o,r=i)}return r}function nw(e,t){if(e!=null)return rw(Array.from(e),js(t??Ko))}function Bm(e,t,r){r&&typeof r!="number"&&gu(e,t,r)&&(t=r=void 0),e=Di(e),t===void 0?(t=e,e=0):t=Di(t),r=r===void 0?e<t?1:-1:Di(r);const n=Math.max(Math.ceil((t-e)/(r||1)),0),a=new Array(n);for(let i=0;i<n;i++)a[i]=e,e+=r;return a}function aw(e,t){if(e=IP(e),e<1||!Number.isSafeInteger(e))return[];const r=new Array(e);for(let n=0;n<e;n++)r[n]=typeof t=="function"?t(n):n;return r}function Km(e){if(e==null)return[];switch(typeof e){case"object":case"function":return $o(e)?ow(e):ox(e)?iw(e):Ki(e);default:return Ki(Object(e))}}function Ki(e){const t=[];for(const r in e)t.push(r);return t}function iw(e){return Ki(e).filter(t=>t!=="constructor")}function ow(e){const t=aw(e.length,a=>`${a}`),r=new Set(t);lx(e)&&(r.add("offset"),r.add("parent")),ux(e)&&(r.add("buffer"),r.add("byteLength"),r.add("byteOffset"));const n=Ki(e).filter(a=>!r.has(a));return Array.isArray(e)?[...t,...n]:[...t.filter(a=>Object.hasOwn(e,a)),...n]}function Wm(e){const t=[];for(;e;)t.push(...sx(e)),e=Object.getPrototypeOf(e);return t}function lw(e,...t){if(e==null)return{};t=FP(t);const r=uw(e,t);for(let n=0;n<t.length;n++){let a=t[n];switch(typeof a){case"object":Array.isArray(a)||(a=Array.from(a));for(let i=0;i<a.length;i++){const o=a[i];Ef(r,o)}break;case"string":case"symbol":case"number":Ef(r,a);break}}return r}function uw(e,t){return t.some(r=>Array.isArray(r)||Bo(r))?cw(e):sw(e)}function sw(e){const t={},r=[...Km(e),...Wm(e)];for(let n=0;n<r.length;n++){const a=r[n];t[a]=e[a]}return t}function cw(e){const t={},r=[...Km(e),...Wm(e)];for(let n=0;n<r.length;n++){const a=r[n];t[a]=cx(e[a],i=>{if(!vm(i))return i})}return t}function Fm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Fm(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function W(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Fm(e))&&(n&&(n+=" "),n+=t);return n}var fw=["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 Is(e){if(typeof e!="string")return!1;var t=fw;return t.includes(e)}var dw=["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"],vw=new Set(dw);function Vm(e){return typeof e!="string"?!1:vw.has(e)}function Gm(e){return typeof e=="string"&&e.startsWith("data-")}function ie(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Vm(r)||Gm(r))&&(t[r]=e[r]);return t}function Ct(e){if(e==null)return null;if(c.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return ie(t)}return typeof e=="object"&&!Array.isArray(e)?ie(e):null}function Oe(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Vm(r)||Gm(r)||Is(r))&&(t[r]=e[r]);return t}function pw(e){return e==null?null:c.isValidElement(e)?Oe(e.props):typeof e=="object"&&!Array.isArray(e)?Oe(e):null}var mw=["children","width","height","viewBox","className","style","title","desc"];function bu(){return bu=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},bu.apply(null,arguments)}function hw(e,t){if(e==null)return{};var r,n,a=yw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function yw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ks=c.forwardRef((e,t)=>{var{children:r,width:n,height:a,viewBox:i,className:o,style:l,title:u,desc:s}=e,f=hw(e,mw),d=i||{width:n,height:a,x:0,y:0},v=W("recharts-surface",o);return c.createElement("svg",bu({},Oe(f),{className:v,width:n,height:a,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),c.createElement("title",null,u),c.createElement("desc",null,s),r)}),gw=["children","className"];function xu(){return xu=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},xu.apply(null,arguments)}function bw(e,t){if(e==null)return{};var r,n,a=xw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function xw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var X=c.forwardRef((e,t)=>{var{children:r,className:n}=e,a=bw(e,gw),i=W("recharts-layer",n);return c.createElement("g",xu({className:i},Oe(a),{ref:t}),r)}),Hm=c.createContext(null),Pw=()=>c.useContext(Hm),ww=4;function wr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ww,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function xe(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((a,i,o)=>{var l=r[o-1];return typeof l=="string"?a+l+i:l!==void 0?a+wr(l)+i:a+i},"")}var Se=e=>e===0?0:e>0?1:-1,_t=e=>typeof e=="number"&&e!=+e,Jr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,$=e=>(typeof e=="number"||e instanceof Number)&&!_t(e),vt=e=>$(e)||typeof e=="string",Ow=0,_a=e=>{var t=++Ow;return"".concat(e||"").concat(t)},ze=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!$(t)&&typeof t!="string")return n;var i;if(Jr(t)){if(r==null)return n;var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return _t(i)&&(i=n),a&&r!=null&&i>r&&(i=r),i},Um=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function z(e,t,r){return $(e)&&$(t)?wr(e+r*(t-e)):t}function Xm(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):kt(n,t))===r)}var Aw=e=>{for(var t=e.length,r=0,n=0,a=0,i=0,o=1/0,l=-1/0,u=0,s=0,f=0;f<t;f++){var d,v;u=((d=e[f])===null||d===void 0?void 0:d.cx)||0,s=((v=e[f])===null||v===void 0?void 0:v.cy)||0,r+=u,n+=s,a+=u*s,i+=u*u,o=Math.min(o,u),l=Math.max(l,u)}var p=t*i!==r*r?(t*a-r*n)/(t*i-r*r):0;return{xmin:o,xmax:l,a:p,b:(n-p*r)/t}},ee=e=>e===null||typeof e>"u",Ha=e=>ee(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function qe(e){return e!=null}function yt(){}var Ew=["type","size","sizeType"];function Pu(){return Pu=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},Pu.apply(null,arguments)}function If(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function kf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?If(Object(r),!0).forEach(function(n){Sw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):If(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sw(e,t,r){return(t=jw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jw(e){var t=Iw(e,"string");return typeof t=="symbol"?t:t+""}function Iw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kw(e,t){if(e==null)return{};var r,n,a=Cw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Cw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ym={symbolCircle:Ss,symbolCross:sP,symbolDiamond:fP,symbolSquare:dP,symbolStar:hP,symbolTriangle:yP,symbolWye:bP},_w=Math.PI/180,Tw=e=>{var t="symbol".concat(Ha(e));return Ym[t]||Ss},Dw=(e,t,r)=>{if(t==="area")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*_w;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*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}},$w=(e,t)=>{Ym["symbol".concat(Ha(e))]=t},Fo=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,a=kw(e,Ew),i=kf(kf({},a),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var l=()=>{var v=Tw(o),p=xP().type(v).size(Dw(r,n,o)),m=p();if(m!==null)return m},{className:u,cx:s,cy:f}=i,d=Oe(i);return $(s)&&$(f)&&$(r)?c.createElement("path",Pu({},d,{className:W("recharts-symbols",u),transform:"translate(".concat(s,", ").concat(f,")"),d:l()})):null};Fo.registerSymbol=$w;var qm=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Cs=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(c.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(a=>{Is(a)&&typeof r[a]=="function"&&(n[a]=i=>r[a](r,i))}),n},Nw=(e,t,r)=>n=>(e(t,r,n),null),$t=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(a=>{var i=e[a];Is(a)&&typeof i=="function"&&(n||(n={}),n[a]=Nw(i,t,r))}),n},Mw=e=>Array.isArray(e)&&e.length>0;function Cf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Rw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cf(Object(r),!0).forEach(function(n){Lw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lw(e,t,r){return(t=zw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zw(e){var t=Bw(e,"string");return typeof t=="symbol"?t:t+""}function Bw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function te(e,t){var r=Rw({},e),n=t,a=Object.keys(t),i=a.reduce((o,l)=>(o[l]===void 0&&n[l]!==void 0&&(o[l]=n[l]),o),r);return i}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)}function _f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_f(Object(r),!0).forEach(function(n){Kw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kw(e,t,r){return(t=Ww(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ww(e){var t=Fw(e,"string");return typeof t=="symbol"?t:t+""}function Fw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ct=32,Vw={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function Gw(e){if(typeof e=="object"&&e!==null&&"strokeDasharray"in e)return String(e.strokeDasharray)}function Hw(e){var{data:t,iconType:r,inactiveColor:n}=e,a=ct/2,i=ct/6,o=ct/3,l=t.inactive?n:t.color,u=r??t.type;if(u==="none")return null;if(u==="plainline")return c.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:Gw(t.payload),x1:0,y1:a,x2:ct,y2:a,className:"recharts-legend-icon"});if(u==="line")return c.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(o,`
|
|
1
|
+
var q0=Object.defineProperty;var Z0=(e,t,r)=>t in e?q0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var mi=(e,t,r)=>Z0(e,typeof t!="symbol"?t+"":t,r);import{r as c,a as ms,g as J0,R as Q0,j as I}from"./index-DeOdqFXj.js";import{w as sm,Q as cm,b as Ee,al as hs,aq as ex,ar as tx,l as fm,t as Do,d as Dt,p as du,s as zi,a as dm,a5 as Tn,n as vf,as as rx,a6 as nx,a8 as ax,ac as $o,a9 as ix,ad as ox,a7 as lx,q as ux,a4 as sx,at as cx,ab as vm,ae as fx,af as dx,ag as vx,ah as px,ai as mx,aj as hx,ak as yx,am as gx,an as bx,c as xx,ao as Px,ap as wx}from"./isPrototype-D0troCl1.js";import{b as Ox,p as Ax}from"./band-CquvqAHh.js";import{d as Bi,n as Ex,e as Sx,i as ys,f as vu,g as sn,h as gs,a as bs,j as pf,k as lr,c as jx,m as No,o as pm,l as Ix,p as kx}from"./linear-CB3-LqbC.js";import{i as Sr,a as fr}from"./init-Dmth1JHB.js";import{m as mf,a as hf,p as Cx,q as _x,u as Tx,s as Dx,r as $x,v as Nx,w as Mx,x as Rx,y as Lx,z as zx,A as Bx,B as Kx,t as Wx}from"./time-C80Ah3yu.js";import{f as Fx,b as Vx}from"./defaultLocale-DX6XiGOO.js";import{i as Gx,o as Hx}from"./ordinal-DILIJJjt.js";function Ux(e=Bi){if(e===Bi)return mm;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function mm(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}function hm(e,t,r=0,n=1/0,a){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(a=a===void 0?mm:Ux(a);n>r;){if(n-r>600){const u=n-r+1,s=t-r+1,f=Math.log(u),d=.5*Math.exp(2*f/3),v=.5*Math.sqrt(f*d*(u-d)/u)*(s-u/2<0?-1:1),p=Math.max(r,Math.floor(t-s*d/u+v)),m=Math.min(n,Math.floor(t+(u-s)*d/u+v));hm(e,t,p,m,a)}const i=e[t];let o=r,l=n;for(fa(e,r,t),a(e[n],i)>0&&fa(e,r,n);o<l;){for(fa(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[r],i)===0?fa(e,r,l):(++l,fa(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function fa(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Xx(e,t,r){if(e=Float64Array.from(Ex(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return mf(e);if(t>=1)return hf(e);var n,a=(n-1)*t,i=Math.floor(a),o=hf(hm(e,i).subarray(0,i+1)),l=mf(e.subarray(i+1));return o+(l-o)*(a-i)}}function Yx(e,t,r=Sx){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,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),l=+r(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function qx(e,t){t===void 0&&(t=e,e=ys);for(var r=0,n=t.length-1,a=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(a,a=t[++r]);return function(o){var l=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return i[l](o-l)}}function ym(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,vu),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return ym(e).unknown(t)},e=arguments.length?Array.from(e,vu):[0,1],sn(r)}function yf(e){return Math.log(e)}function gf(e){return Math.exp(e)}function Zx(e){return-Math.log(-e)}function Jx(e){return-Math.exp(-e)}function Qx(e){return isFinite(e)?+("1e"+e):e<0?0:e}function eP(e){return e===10?Qx:e===Math.E?Math.exp:t=>Math.pow(e,t)}function tP(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function bf(e){return(t,r)=>-e(-t,r)}function xs(e){const t=e(yf,gf),r=t.domain;let n=10,a,i;function o(){return a=tP(n),i=eP(n),r()[0]<0?(a=bf(a),i=bf(i),e(Zx,Jx)):e(yf,gf),t}return t.base=function(l){return arguments.length?(n=+l,o()):n},t.domain=function(l){return arguments.length?(r(l),o()):r()},t.ticks=l=>{const u=r();let s=u[0],f=u[u.length-1];const d=f<s;d&&([s,f]=[f,s]);let v=a(s),p=a(f),m,h;const g=l==null?10:+l;let y=[];if(!(n%1)&&p-v<g){if(v=Math.floor(v),p=Math.ceil(p),s>0){for(;v<=p;++v)for(m=1;m<n;++m)if(h=v<0?m/i(-v):m*i(v),!(h<s)){if(h>f)break;y.push(h)}}else for(;v<=p;++v)for(m=n-1;m>=1;--m)if(h=v>0?m/i(-v):m*i(v),!(h<s)){if(h>f)break;y.push(h)}y.length*2<g&&(y=pf(s,f,g))}else y=pf(v,p,Math.min(p-v,g)).map(i);return d?y.reverse():y},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=n===10?"s":","),typeof u!="function"&&(!(n%1)&&(u=Fx(u)).precision==null&&(u.trim=!0),u=Vx(u)),l===1/0)return u;const s=Math.max(1,n*l/t.ticks().length);return f=>{let d=f/i(Math.round(a(f)));return d*n<n-.5&&(d*=n),d<=s?u(f):""}},t.nice=()=>r(Cx(r(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function gm(){const e=xs(gs()).domain([1,10]);return e.copy=()=>bs(e,gm()).base(e.base()),Sr.apply(e,arguments),e}function xf(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Pf(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ps(e){var t=1,r=e(xf(t),Pf(t));return r.constant=function(n){return arguments.length?e(xf(t=+n),Pf(t)):t},sn(r)}function bm(){var e=Ps(gs());return e.copy=function(){return bs(e,bm()).constant(e.constant())},Sr.apply(e,arguments)}function wf(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function rP(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function nP(e){return e<0?-e*e:e*e}function ws(e){var t=e(lr,lr),r=1;function n(){return r===1?e(lr,lr):r===.5?e(rP,nP):e(wf(r),wf(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},sn(t)}function Os(){var e=ws(gs());return e.copy=function(){return bs(e,Os()).exponent(e.exponent())},Sr.apply(e,arguments),e}function aP(){return Os.apply(null,arguments).exponent(.5)}function Of(e){return Math.sign(e)*e*e}function iP(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function xm(){var e=jx(),t=[0,1],r=!1,n;function a(i){var o=iP(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(Of(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,vu)).map(Of)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return xm(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Sr.apply(a,arguments),sn(a)}function Pm(){var e=[],t=[],r=[],n;function a(){var o=0,l=Math.max(1,t.length);for(r=new Array(l-1);++o<l;)r[o-1]=Yx(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?n:t[No(r,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?r[l-1]:e[0],l<r.length?r[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Bi),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(n=o,i):n},i.quantiles=function(){return r.slice()},i.copy=function(){return Pm().domain(e).range(t).unknown(n)},Sr.apply(i,arguments)}function wm(){var e=0,t=1,r=1,n=[.5],a=[0,1],i;function o(u){return u!=null&&u<=u?a[No(n,u,0,r)]:i}function l(){var u=-1;for(n=new Array(r);++u<r;)n[u]=((u+1)*t-(u-r)*e)/(r+1);return o}return o.domain=function(u){return arguments.length?([e,t]=u,e=+e,t=+t,l()):[e,t]},o.range=function(u){return arguments.length?(r=(a=Array.from(u)).length-1,l()):a.slice()},o.invertExtent=function(u){var s=a.indexOf(u);return s<0?[NaN,NaN]:s<1?[e,n[0]]:s>=r?[n[r-1],t]:[n[s-1],n[s]]},o.unknown=function(u){return arguments.length&&(i=u),o},o.thresholds=function(){return n.slice()},o.copy=function(){return wm().domain([e,t]).range(a).unknown(i)},Sr.apply(sn(o),arguments)}function Om(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[No(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Om().domain(e).range(t).unknown(r)},Sr.apply(a,arguments)}function oP(){return Sr.apply(_x(Kx,Bx,zx,Lx,Rx,Mx,Nx,$x,Dx,Tx).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Mo(){var e=0,t=1,r,n,a,i,o=lr,l=!1,u;function s(d){return d==null||isNaN(d=+d)?u:o(a===0?.5:(d=(i(d)-r)*a,l?Math.max(0,Math.min(1,d)):d))}s.domain=function(d){return arguments.length?([e,t]=d,r=i(e=+e),n=i(t=+t),a=r===n?0:1/(n-r),s):[e,t]},s.clamp=function(d){return arguments.length?(l=!!d,s):l},s.interpolator=function(d){return arguments.length?(o=d,s):o};function f(d){return function(v){var p,m;return arguments.length?([p,m]=v,o=d(p,m),s):[o(0),o(1)]}}return s.range=f(ys),s.rangeRound=f(pm),s.unknown=function(d){return arguments.length?(u=d,s):u},function(d){return i=d,r=d(e),n=d(t),a=r===n?0:1/(n-r),s}}function jr(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Am(){var e=sn(Mo()(lr));return e.copy=function(){return jr(e,Am())},fr.apply(e,arguments)}function Em(){var e=xs(Mo()).domain([1,10]);return e.copy=function(){return jr(e,Em()).base(e.base())},fr.apply(e,arguments)}function Sm(){var e=Ps(Mo());return e.copy=function(){return jr(e,Sm()).constant(e.constant())},fr.apply(e,arguments)}function As(){var e=ws(Mo());return e.copy=function(){return jr(e,As()).exponent(e.exponent())},fr.apply(e,arguments)}function lP(){return As.apply(null,arguments).exponent(.5)}function jm(){var e=[],t=lr;function r(n){if(n!=null&&!isNaN(n=+n))return t((No(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let a of n)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Bi),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,a)=>t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>Xx(e,i/n))},r.copy=function(){return jm(t).domain(e)},fr.apply(r,arguments)}function Ro(){var e=0,t=.5,r=1,n=1,a,i,o,l,u,s=lr,f,d=!1,v;function p(h){return isNaN(h=+h)?v:(h=.5+((h=+f(h))-i)*(n*h<n*i?l:u),s(d?Math.max(0,Math.min(1,h)):h))}p.domain=function(h){return arguments.length?([e,t,r]=h,a=f(e=+e),i=f(t=+t),o=f(r=+r),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,p):[e,t,r]},p.clamp=function(h){return arguments.length?(d=!!h,p):d},p.interpolator=function(h){return arguments.length?(s=h,p):s};function m(h){return function(g){var y,b,x;return arguments.length?([y,b,x]=g,s=qx(h,[y,b,x]),p):[s(0),s(.5),s(1)]}}return p.range=m(ys),p.rangeRound=m(pm),p.unknown=function(h){return arguments.length?(v=h,p):v},function(h){return f=h,a=h(e),i=h(t),o=h(r),l=a===i?0:.5/(i-a),u=i===o?0:.5/(o-i),n=i<a?-1:1,p}}function Im(){var e=sn(Ro()(lr));return e.copy=function(){return jr(e,Im())},fr.apply(e,arguments)}function km(){var e=xs(Ro()).domain([.1,1,10]);return e.copy=function(){return jr(e,km()).base(e.base())},fr.apply(e,arguments)}function Cm(){var e=Ps(Ro());return e.copy=function(){return jr(e,Cm()).constant(e.constant())},fr.apply(e,arguments)}function Es(){var e=ws(Ro());return e.copy=function(){return jr(e,Es()).exponent(e.exponent())},fr.apply(e,arguments)}function uP(){return Es.apply(null,arguments).exponent(.5)}function hi(e,t,r){var n=null,a=Ee(!0),i=null,o=hs,l=null,u=sm(s);e=typeof e=="function"?e:e===void 0?ex:Ee(+e),t=typeof t=="function"?t:t===void 0?Ee(0):Ee(+t),r=typeof r=="function"?r:r===void 0?tx:Ee(+r);function s(d){var v,p,m,h=(d=cm(d)).length,g,y=!1,b,x=new Array(h),P=new Array(h);for(i==null&&(l=o(b=u())),v=0;v<=h;++v){if(!(v<h&&a(g=d[v],v,d))===y)if(y=!y)p=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),m=v-1;m>=p;--m)l.point(x[m],P[m]);l.lineEnd(),l.areaEnd()}y&&(x[v]=+e(g,v,d),P[v]=+t(g,v,d),l.point(n?+n(g,v,d):x[v],r?+r(g,v,d):P[v]))}if(b)return l=null,b+""||null}function f(){return fm().defined(a).curve(o).context(i)}return s.x=function(d){return arguments.length?(e=typeof d=="function"?d:Ee(+d),n=null,s):e},s.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Ee(+d),s):e},s.x1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:Ee(+d),s):n},s.y=function(d){return arguments.length?(t=typeof d=="function"?d:Ee(+d),r=null,s):t},s.y0=function(d){return arguments.length?(t=typeof d=="function"?d:Ee(+d),s):t},s.y1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:Ee(+d),s):r},s.lineX0=s.lineY0=function(){return f().x(e).y(t)},s.lineY1=function(){return f().x(e).y(r)},s.lineX1=function(){return f().x(n).y(t)},s.defined=function(d){return arguments.length?(a=typeof d=="function"?d:Ee(!!d),s):a},s.curve=function(d){return arguments.length?(o=d,i!=null&&(l=o(i)),s):o},s.context=function(d){return arguments.length?(d==null?i=l=null:l=o(i=d),s):i},s}const Ss={draw(e,t){const r=Dt(t/du);e.moveTo(r,0),e.arc(0,0,r,0,Do)}},sP={draw(e,t){const r=Dt(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()}},_m=Dt(1/3),cP=_m*2,fP={draw(e,t){const r=Dt(t/cP),n=r*_m;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},dP={draw(e,t){const r=Dt(t),n=-r/2;e.rect(n,n,r,r)}},vP=.8908130915292852,Tm=zi(du/10)/zi(7*du/10),pP=zi(Do/10)*Tm,mP=-dm(Do/10)*Tm,hP={draw(e,t){const r=Dt(t*vP),n=pP*r,a=mP*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=Do*i/5,l=dm(o),u=zi(o);e.lineTo(u*r,-l*r),e.lineTo(l*n-u*a,u*n+l*a)}e.closePath()}},Vl=Dt(3),yP={draw(e,t){const r=-Dt(t/(Vl*3));e.moveTo(0,r*2),e.lineTo(-Vl*r,-r),e.lineTo(Vl*r,-r),e.closePath()}},lt=-.5,ut=Dt(3)/2,pu=1/Dt(12),gP=(pu/2+1)*3,bP={draw(e,t){const r=Dt(t/gP),n=r/2,a=r*pu,i=n,o=r*pu+r,l=-i,u=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(l,u),e.lineTo(lt*n-ut*a,ut*n+lt*a),e.lineTo(lt*i-ut*o,ut*i+lt*o),e.lineTo(lt*l-ut*u,ut*l+lt*u),e.lineTo(lt*n+ut*a,lt*a-ut*n),e.lineTo(lt*i+ut*o,lt*o-ut*i),e.lineTo(lt*l+ut*u,lt*u-ut*l),e.closePath()}};function xP(e,t){let r=null,n=sm(a);e=typeof e=="function"?e:Ee(e||Ss),t=typeof t=="function"?t:Ee(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Ee(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ee(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Zr(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,l=i.length;r<o;++r)for(a=i,i=e[t[r]],n=0;n<l;++n)i[n][1]+=i[n][0]=isNaN(a[n][1])?a[n][0]:a[n][1]}function mu(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function PP(e,t){return e[t]}function wP(e){const t=[];return t.key=e,t}function OP(){var e=Ee([]),t=mu,r=Zr,n=PP;function a(i){var o=Array.from(e.apply(this,arguments),wP),l,u=o.length,s=-1,f;for(const d of i)for(l=0,++s;l<u;++l)(o[l][s]=[0,+n(d,o[l].key,s,i)]).data=d;for(l=0,f=cm(t(o));l<u;++l)o[f[l]].index=l;return r(o,f),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Ee(Array.from(i)),a):e},a.value=function(i){return arguments.length?(n=typeof i=="function"?i:Ee(+i),a):n},a.order=function(i){return arguments.length?(t=i==null?mu:typeof i=="function"?i:Ee(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(r=i??Zr,a):r},a}function AP(e,t){if((n=e.length)>0){for(var r,n,a=0,i=e[0].length,o;a<i;++a){for(o=r=0;r<n;++r)o+=e[r][a][1]||0;if(o)for(r=0;r<n;++r)e[r][a][1]/=o}Zr(e,t)}}function EP(e,t){if((a=e.length)>0){for(var r=0,n=e[t[0]],a,i=n.length;r<i;++r){for(var o=0,l=0;o<a;++o)l+=e[o][r][1]||0;n[r][1]+=n[r][0]=-l/2}Zr(e,t)}}function SP(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n<i;++n){for(var l=0,u=0,s=0;l<o;++l){for(var f=e[t[l]],d=f[n][1]||0,v=f[n-1][1]||0,p=(d-v)/2,m=0;m<l;++m){var h=e[t[m]],g=h[n][1]||0,y=h[n-1][1]||0;p+=g-y}u+=d,s+=p*d}a[n-1][1]+=a[n-1][0]=r,u&&(r-=s/u)}a[n-1][1]+=a[n-1][0]=r,Zr(e,t)}}function Dm(e){return typeof e=="symbol"||e instanceof Symbol}function jP(e){return Dm(e)?NaN:Number(e)}function Di(e){return e?(e=jP(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}function IP(e){const t=Di(e),r=t%1;return r?t-r:t}function hu(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function kP(e){return Array.isArray(e)?e:Array.from(e)}function CP(e,t=1){const r=[],n=Math.floor(t),a=(i,o)=>{for(let l=0;l<i.length;l++){const u=i[l];Array.isArray(u)&&o<n?a(u,o+1):r.push(u)}};return a(e,0),r}function $m(e){if(e==null)return"";if(typeof e=="string")return e;if(Array.isArray(e))return e.map($m).join(",");const t=String(e);return t==="0"&&Object.is(Number(e),-0)?"-0":t}function Lo(e){var t;return typeof e=="string"||typeof e=="symbol"?e:Object.is((t=e==null?void 0:e.valueOf)==null?void 0:t.call(e),-0)?"-0":String(e)}function zo(e){if(Array.isArray(e))return e.map(Lo);if(typeof e=="symbol")return[e];e=$m(e);const t=[],r=e.length;if(r===0)return t;let n=0,a="",i="",o=!1;for(e.charCodeAt(0)===46&&(t.push(""),n++);n<r;){const l=e[n];i?l==="\\"&&n+1<r?(n++,a+=e[n]):l===i?i="":a+=l:o?l==='"'||l==="'"?i=l:l==="]"?(o=!1,t.push(a),a=""):a+=l:l==="["?(o=!0,a&&(t.push(a),a="")):l==="."?a&&(t.push(a),a=""):a+=l,n++}return a&&t.push(a),t}function Bo(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}function kt(e,t,r){if(e==null)return r;switch(typeof t){case"string":{if(Tn(t))return r;const n=e[t];return n===void 0?Bo(t)?kt(e,zo(t),r):r:n}case"number":case"symbol":{typeof t=="number"&&(t=Lo(t));const n=e[t];return n===void 0?r:n}default:{if(Array.isArray(t))return _P(e,t,r);if(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t),Tn(t))return r;const n=e[t];return n===void 0?r:n}}}function _P(e,t,r){if(t.length===0)return r;let n=e;for(let a=0;a<t.length;a++){if(n==null||Tn(t[a]))return r;n=n[t[a]]}return n===void 0?r:n}function TP(e){return function(t){return kt(t,e)}}function Nm(e){return e!==null&&(typeof e=="object"||typeof e=="function")}function Mm(e,t,r){return typeof r!="function"?Mm(e,t,()=>{}):yu(e,t,function n(a,i,o,l,u,s){const f=r(a,i,o,l,u,s);return f!==void 0?!!f:yu(a,i,n,s)},new Map)}function yu(e,t,r,n){if(t===e)return!0;switch(typeof t){case"object":return DP(e,t,r,n);case"function":return Object.keys(t).length>0?yu(e,{...t},r,n):hu(e,t);default:return Nm(e)?typeof t=="string"?t==="":!0:hu(e,t)}}function DP(e,t,r,n){if(t==null)return!0;if(Array.isArray(t))return Rm(e,t,r,n);if(t instanceof Map)return $P(e,t,r,n);if(t instanceof Set)return NP(e,t,r,n);const a=Object.keys(t);if(e==null||vf(e))return a.length===0;if(a.length===0)return!0;if(n!=null&&n.has(t))return n.get(t)===e;n==null||n.set(t,e);try{for(let i=0;i<a.length;i++){const o=a[i];if(!vf(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!r(e[o],t[o],o,e,t,n))return!1}return!0}finally{n==null||n.delete(t)}}function $P(e,t,r,n){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(const[a,i]of t.entries())if(r(e.get(a),i,a,e,t,n)===!1)return!1;return!0}function Rm(e,t,r,n){if(t.length===0)return!0;if(!Array.isArray(e))return!1;const a=new Set;for(let i=0;i<t.length;i++){const o=t[i];let l=!1;for(let u=0;u<e.length;u++){if(a.has(u))continue;const s=e[u];let f=!1;if(r(s,o,i,e,t,n)&&(f=!0),f){a.add(u),l=!0;break}}if(!l)return!1}return!0}function NP(e,t,r,n){return t.size===0?!0:e instanceof Set?Rm([...e],[...t],r,n):!1}function Lm(e,t){return Mm(e,t,()=>{})}function MP(e){return rx(e,void 0,e,new Map,void 0)}function RP(e){return e=MP(e),t=>Lm(t,e)}const LP=/^(?:0|[1-9]\d*)$/;function zm(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 LP.test(e)}}function zP(e,t){let r;if(Array.isArray(t)?r=t:typeof t=="string"&&Bo(t)&&(e==null?void 0:e[t])==null?r=zo(t):r=[t],r.length===0)return!1;let n=e;for(let a=0;a<r.length;a++){const i=r[a];if((n==null||!Object.hasOwn(n,i))&&!((Array.isArray(n)||nx(n))&&zm(i)&&i<n.length))return!1;n=n[i]}return!0}function BP(e,t){switch(typeof e){case"object":Object.is(e==null?void 0:e.valueOf(),-0)&&(e="-0");break;case"number":e=Lo(e);break}return t=ax(t),function(r){const n=kt(r,e);return n===void 0?zP(r,e):t===void 0?n===void 0:Lm(n,t)}}function Ko(e){return e}function js(e){if(e==null)return Ko;switch(typeof e){case"function":return e;case"object":return Array.isArray(e)&&e.length===2?BP(e[0],e[1]):RP(e);case"string":case"symbol":case"number":return TP(e)}}function KP(e){return e[e.length-1]}function WP(e){if($o(e))return KP(kP(e))}function gu(e,t,r){return Nm(r)&&(typeof t=="number"&&$o(r)&&zm(t)&&t<r.length||typeof t=="string"&&t in r)?hu(r[t],e):!1}function FP(e,t=1){const r=[],n=Math.floor(t);if(!$o(e))return r;const a=(i,o)=>{for(let l=0;l<i.length;l++){const u=i[l];o<n&&(Array.isArray(u)||u!=null&&u[Symbol.isConcatSpreadable]||u!==null&&typeof u=="object"&&Object.prototype.toString.call(u)==="[object Arguments]")?Array.isArray(u)?a(u,o+1):a(Array.from(u),o+1):r.push(u)}};return a(Array.from(e),0),r}function Af(e){return typeof e=="symbol"?1:e===null?2:e===void 0?3:e!==e?4:0}const VP=(e,t,r)=>{if(e!==t){const n=Af(e),a=Af(t);if(n===a&&n===0){if(e<t)return r==="desc"?1:-1;if(e>t)return r==="desc"?-1:1}return r==="desc"?a-n:n-a}return 0},GP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,HP=/^\w*$/;function UP(e,t){return Array.isArray(e)?!1:typeof e=="number"||typeof e=="boolean"||e==null||Dm(e)?!0:typeof e=="string"&&(HP.test(e)||!GP.test(e))||t!=null}function XP(e,t,r,n){if(e==null)return[];r=r,Array.isArray(e)||(e=Object.values(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(r)||(r=r==null?[]:[r]),r=r.map(l=>String(l));const a=(l,u)=>{let s=l;for(let f=0;f<u.length&&s!=null;++f)s=s[u[f]];return s},i=(l,u)=>u==null||l==null?u:typeof l=="object"&&"key"in l?Object.hasOwn(u,l.key)?u[l.key]:a(u,l.path):typeof l=="function"?l(u):Array.isArray(l)?a(u,l):typeof u=="object"?u[l]:u,o=t.map(l=>(Array.isArray(l)&&l.length===1&&(l=l[0]),l==null||typeof l=="function"||Array.isArray(l)||UP(l)?l:{key:l,path:zo(l)}));return e.map(l=>({original:l,criteria:o.map(u=>i(u,l))})).slice().sort((l,u)=>{for(let s=0;s<o.length;s++){const f=VP(l.criteria[s],u.criteria[s],r[s]);if(f!==0)return f}return 0}).map(l=>l.original)}function Ef(e,t){if(e==null)return!0;switch(typeof t){case"symbol":case"number":case"object":if(Array.isArray(t))return Sf(e,t);if(typeof t=="number"?t=Lo(t):typeof t=="object"&&(Object.is(t==null?void 0:t.valueOf(),-0)?t="-0":t=String(t)),Tn(t))return!1;if((e==null?void 0:e[t])===void 0)return!0;try{return delete e[t],!0}catch{return!1}case"string":if((e==null?void 0:e[t])===void 0&&Bo(t))return Sf(e,zo(t));if(Tn(t))return!1;try{return delete e[t],!0}catch{return!1}}}function Sf(e,t){const r=t.length===1?e:kt(e,t.slice(0,-1)),n=t[t.length-1];if((r==null?void 0:r[n])===void 0)return!0;if(Tn(n))return!1;try{return delete r[n],!0}catch{return!1}}function Wo(e,...t){const r=t.length;return r>1&&gu(e,t[0],t[1])?t=[]:r>2&&gu(t[0],t[1],t[2])&&(t=[t[0]]),XP(e,CP(t),["asc"])}function YP(e,t){const r=new Map;for(let n=0;n<e.length;n++){const a=e[n],i=t(a,n,e);r.has(i)||r.set(i,a)}return Array.from(r.values())}function qP(e,t){return function(...r){return e.apply(this,r.slice(0,t))}}function jf(e,t=Ko){return ix(e)?YP(Array.from(e),qP(js(t),1)):[]}function ZP(e,t,{signal:r,edges:n}={}){let a,i=null;const o=n!=null&&n.includes("leading"),l=n==null||n.includes("trailing"),u=()=>{i!==null&&(e.apply(a,i),a=void 0,i=null)},s=()=>{l&&u(),p()};let f=null;const d=()=>{f!=null&&clearTimeout(f),f=setTimeout(()=>{f=null,s()},t)},v=()=>{f!==null&&(clearTimeout(f),f=null)},p=()=>{v(),a=void 0,i=null},m=()=>{u()},h=function(...g){if(r!=null&&r.aborted)return;a=this,i=g;const y=f==null;d(),o&&y&&u()};return h.schedule=d,h.cancel=p,h.flush=m,r==null||r.addEventListener("abort",p,{once:!0}),h}function JP(e,t=0,r={}){typeof r!="object"&&(r={});const{leading:n=!1,trailing:a=!0,maxWait:i}=r,o=Array(2);n&&(o[0]="leading"),a&&(o[1]="trailing");let l,u=null;const s=ZP(function(...v){l=e.apply(this,v),u=null},t,{edges:o}),f=function(...v){return i!=null&&(u===null&&(u=Date.now()),Date.now()-u>=i)?(l=e.apply(this,v),u=Date.now(),s.cancel(),s.schedule(),l):(s.apply(this,v),l)},d=()=>(s.flush(),l);return f.cancel=s.cancel,f.flush=d,f}function QP(e,t=0,r={}){const{leading:n=!0,trailing:a=!0}=r;return JP(e,t,{leading:n,maxWait:t,trailing:a})}function ew(e,t){if(e.length===0)return;let r=e[0],n=-1/0;for(let a=0;a<e.length;a++){const i=e[a],o=t(i,a,e);if(Number.isNaN(o))return i;o>n&&(n=o,r=i)}return r}function tw(e,t){if(e!=null)return ew(Array.from(e),js(t??Ko))}function rw(e,t){if(e.length===0)return;let r=e[0],n=1/0;for(let a=0;a<e.length;a++){const i=e[a],o=t(i,a,e);if(Number.isNaN(o))return i;o<n&&(n=o,r=i)}return r}function nw(e,t){if(e!=null)return rw(Array.from(e),js(t??Ko))}function Bm(e,t,r){r&&typeof r!="number"&&gu(e,t,r)&&(t=r=void 0),e=Di(e),t===void 0?(t=e,e=0):t=Di(t),r=r===void 0?e<t?1:-1:Di(r);const n=Math.max(Math.ceil((t-e)/(r||1)),0),a=new Array(n);for(let i=0;i<n;i++)a[i]=e,e+=r;return a}function aw(e,t){if(e=IP(e),e<1||!Number.isSafeInteger(e))return[];const r=new Array(e);for(let n=0;n<e;n++)r[n]=typeof t=="function"?t(n):n;return r}function Km(e){if(e==null)return[];switch(typeof e){case"object":case"function":return $o(e)?ow(e):ox(e)?iw(e):Ki(e);default:return Ki(Object(e))}}function Ki(e){const t=[];for(const r in e)t.push(r);return t}function iw(e){return Ki(e).filter(t=>t!=="constructor")}function ow(e){const t=aw(e.length,a=>`${a}`),r=new Set(t);lx(e)&&(r.add("offset"),r.add("parent")),ux(e)&&(r.add("buffer"),r.add("byteLength"),r.add("byteOffset"));const n=Ki(e).filter(a=>!r.has(a));return Array.isArray(e)?[...t,...n]:[...t.filter(a=>Object.hasOwn(e,a)),...n]}function Wm(e){const t=[];for(;e;)t.push(...sx(e)),e=Object.getPrototypeOf(e);return t}function lw(e,...t){if(e==null)return{};t=FP(t);const r=uw(e,t);for(let n=0;n<t.length;n++){let a=t[n];switch(typeof a){case"object":Array.isArray(a)||(a=Array.from(a));for(let i=0;i<a.length;i++){const o=a[i];Ef(r,o)}break;case"string":case"symbol":case"number":Ef(r,a);break}}return r}function uw(e,t){return t.some(r=>Array.isArray(r)||Bo(r))?cw(e):sw(e)}function sw(e){const t={},r=[...Km(e),...Wm(e)];for(let n=0;n<r.length;n++){const a=r[n];t[a]=e[a]}return t}function cw(e){const t={},r=[...Km(e),...Wm(e)];for(let n=0;n<r.length;n++){const a=r[n];t[a]=cx(e[a],i=>{if(!vm(i))return i})}return t}function Fm(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=Fm(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function W(){for(var e,t,r=0,n="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=Fm(e))&&(n&&(n+=" "),n+=t);return n}var fw=["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 Is(e){if(typeof e!="string")return!1;var t=fw;return t.includes(e)}var dw=["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"],vw=new Set(dw);function Vm(e){return typeof e!="string"?!1:vw.has(e)}function Gm(e){return typeof e=="string"&&e.startsWith("data-")}function ie(e){if(typeof e!="object"||e===null)return{};var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Vm(r)||Gm(r))&&(t[r]=e[r]);return t}function Ct(e){if(e==null)return null;if(c.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return ie(t)}return typeof e=="object"&&!Array.isArray(e)?ie(e):null}function Oe(e){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(Vm(r)||Gm(r)||Is(r))&&(t[r]=e[r]);return t}function pw(e){return e==null?null:c.isValidElement(e)?Oe(e.props):typeof e=="object"&&!Array.isArray(e)?Oe(e):null}var mw=["children","width","height","viewBox","className","style","title","desc"];function bu(){return bu=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},bu.apply(null,arguments)}function hw(e,t){if(e==null)return{};var r,n,a=yw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function yw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var ks=c.forwardRef((e,t)=>{var{children:r,width:n,height:a,viewBox:i,className:o,style:l,title:u,desc:s}=e,f=hw(e,mw),d=i||{width:n,height:a,x:0,y:0},v=W("recharts-surface",o);return c.createElement("svg",bu({},Oe(f),{className:v,width:n,height:a,style:l,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height),ref:t}),c.createElement("title",null,u),c.createElement("desc",null,s),r)}),gw=["children","className"];function xu(){return xu=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},xu.apply(null,arguments)}function bw(e,t){if(e==null)return{};var r,n,a=xw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function xw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var X=c.forwardRef((e,t)=>{var{children:r,className:n}=e,a=bw(e,gw),i=W("recharts-layer",n);return c.createElement("g",xu({className:i},Oe(a),{ref:t}),r)}),Hm=c.createContext(null),Pw=()=>c.useContext(Hm),ww=4;function wr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ww,r=10**t,n=Math.round(e*r)/r;return Object.is(n,-0)?0:n}function xe(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((a,i,o)=>{var l=r[o-1];return typeof l=="string"?a+l+i:l!==void 0?a+wr(l)+i:a+i},"")}var Se=e=>e===0?0:e>0?1:-1,_t=e=>typeof e=="number"&&e!=+e,Jr=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,$=e=>(typeof e=="number"||e instanceof Number)&&!_t(e),vt=e=>$(e)||typeof e=="string",Ow=0,_a=e=>{var t=++Ow;return"".concat(e||"").concat(t)},ze=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!$(t)&&typeof t!="string")return n;var i;if(Jr(t)){if(r==null)return n;var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return _t(i)&&(i=n),a&&r!=null&&i>r&&(i=r),i},Um=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++)if(!r[String(e[n])])r[String(e[n])]=!0;else return!0;return!1};function z(e,t,r){return $(e)&&$(t)?wr(e+r*(t-e)):t}function Xm(e,t,r){if(!(!e||!e.length))return e.find(n=>n&&(typeof t=="function"?t(n):kt(n,t))===r)}var Aw=e=>{for(var t=e.length,r=0,n=0,a=0,i=0,o=1/0,l=-1/0,u=0,s=0,f=0;f<t;f++){var d,v;u=((d=e[f])===null||d===void 0?void 0:d.cx)||0,s=((v=e[f])===null||v===void 0?void 0:v.cy)||0,r+=u,n+=s,a+=u*s,i+=u*u,o=Math.min(o,u),l=Math.max(l,u)}var p=t*i!==r*r?(t*a-r*n)/(t*i-r*r):0;return{xmin:o,xmax:l,a:p,b:(n-p*r)/t}},ee=e=>e===null||typeof e>"u",Ha=e=>ee(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function qe(e){return e!=null}function yt(){}var Ew=["type","size","sizeType"];function Pu(){return Pu=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},Pu.apply(null,arguments)}function If(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function kf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?If(Object(r),!0).forEach(function(n){Sw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):If(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sw(e,t,r){return(t=jw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jw(e){var t=Iw(e,"string");return typeof t=="symbol"?t:t+""}function Iw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kw(e,t){if(e==null)return{};var r,n,a=Cw(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function Cw(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Ym={symbolCircle:Ss,symbolCross:sP,symbolDiamond:fP,symbolSquare:dP,symbolStar:hP,symbolTriangle:yP,symbolWye:bP},_w=Math.PI/180,Tw=e=>{var t="symbol".concat(Ha(e));return Ym[t]||Ss},Dw=(e,t,r)=>{if(t==="area")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*_w;return 1.25*e*e*(Math.tan(n)-Math.tan(n*2)*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}},$w=(e,t)=>{Ym["symbol".concat(Ha(e))]=t},Fo=e=>{var{type:t="circle",size:r=64,sizeType:n="area"}=e,a=kw(e,Ew),i=kf(kf({},a),{},{type:t,size:r,sizeType:n}),o="circle";typeof t=="string"&&(o=t);var l=()=>{var v=Tw(o),p=xP().type(v).size(Dw(r,n,o)),m=p();if(m!==null)return m},{className:u,cx:s,cy:f}=i,d=Oe(i);return $(s)&&$(f)&&$(r)?c.createElement("path",Pu({},d,{className:W("recharts-symbols",u),transform:"translate(".concat(s,", ").concat(f,")"),d:l()})):null};Fo.registerSymbol=$w;var qm=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Cs=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(c.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var n={};return Object.keys(r).forEach(a=>{Is(a)&&typeof r[a]=="function"&&(n[a]=i=>r[a](r,i))}),n},Nw=(e,t,r)=>n=>(e(t,r,n),null),$t=(e,t,r)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var n=null;return Object.keys(e).forEach(a=>{var i=e[a];Is(a)&&typeof i=="function"&&(n||(n={}),n[a]=Nw(i,t,r))}),n},Mw=e=>Array.isArray(e)&&e.length>0;function Cf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Rw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cf(Object(r),!0).forEach(function(n){Lw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cf(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Lw(e,t,r){return(t=zw(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zw(e){var t=Bw(e,"string");return typeof t=="symbol"?t:t+""}function Bw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function te(e,t){var r=Rw({},e),n=t,a=Object.keys(t),i=a.reduce((o,l)=>(o[l]===void 0&&n[l]!==void 0&&(o[l]=n[l]),o),r);return i}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)}function _f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Zm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_f(Object(r),!0).forEach(function(n){Kw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_f(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kw(e,t,r){return(t=Ww(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ww(e){var t=Fw(e,"string");return typeof t=="symbol"?t:t+""}function Fw(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ct=32,Vw={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle",labelStyle:{}};function Gw(e){if(typeof e=="object"&&e!==null&&"strokeDasharray"in e)return String(e.strokeDasharray)}function Hw(e){var{data:t,iconType:r,inactiveColor:n}=e,a=ct/2,i=ct/6,o=ct/3,l=t.inactive?n:t.color,u=r??t.type;if(u==="none")return null;if(u==="plainline")return c.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:Gw(t.payload),x1:0,y1:a,x2:ct,y2:a,className:"recharts-legend-icon"});if(u==="line")return c.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(a,"h").concat(o,`
|
|
2
2
|
A`).concat(i,",").concat(i,",0,1,1,").concat(2*o,",").concat(a,`
|
|
3
3
|
H`).concat(ct,"M").concat(2*o,",").concat(a,`
|
|
4
4
|
A`).concat(i,",").concat(i,",0,1,1,").concat(o,",").concat(a),className:"recharts-legend-icon"});if(u==="rect")return c.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(ct/8,"h").concat(ct,"v").concat(ct*3/4,"h").concat(-ct,"z"),className:"recharts-legend-icon"});if(c.isValidElement(t.legendIcon)){var s=Zm({},t);return delete s.legendIcon,c.cloneElement(t.legendIcon,s)}return c.createElement(Fo,{fill:l,cx:a,cy:a,size:ct,sizeType:"diameter",type:u})}function Uw(e){var{payload:t,iconSize:r,layout:n,formatter:a,inactiveColor:i,iconType:o,labelStyle:l}=e,u={x:0,y:0,width:ct,height:ct},s={display:n==="horizontal"?"inline-block":"block",marginRight:10},f={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((d,v)=>{var p=d.formatter||a,m=W({"recharts-legend-item":!0,["legend-item-".concat(v)]:!0,inactive:d.inactive});if(d.type==="none")return null;var h=typeof l=="object"?Zm({},l):{};h.color=d.inactive?i:h.color||d.color;var g=p?p(d.value,d,v):d.value;return c.createElement("li",Wi({className:m,style:s,key:"legend-item-".concat(v)},$t(e,d,v)),c.createElement(ks,{width:r,height:r,viewBox:u,style:f,"aria-label":"".concat(d.value," legend icon")},c.createElement(Hw,{data:d,iconType:o,inactiveColor:i})),c.createElement("span",{className:"recharts-legend-item-text",style:h},g))})}var Xw=e=>{var t=te(e,Vw),{payload:r,layout:n,align:a}=t;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:n==="horizontal"?a:"left"};return c.createElement("ul",{className:"recharts-default-legend",style:i},c.createElement(Uw,Wi({},t,{payload:r})))};function Jm(e,t,r){return t===!0?jf(e,r):typeof t=="function"?jf(e,t):e}var Qm={exports:{}},eh={},th={exports:{}},rh={};/**
|