dynamic-mui 2.2.0 → 2.3.0
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 +142 -5
- package/dist/accordion-DqBdGRim.mjs +23 -0
- package/dist/accordion-lvbD_BpX.js +1 -0
- package/dist/addressfield-CGX3UppE.mjs +152 -0
- package/dist/addressfield-DDG15fqJ.js +1 -0
- package/dist/asyncautocomplete-BAfBR9P7.mjs +89 -0
- package/dist/asyncautocomplete-w9q_1DWt.js +1 -0
- package/dist/bar-BzO7tvYJ.mjs +20 -0
- package/dist/bar-DEVxyUVS.js +1 -0
- package/dist/cascadeselect-C3QVfoig.mjs +64 -0
- package/dist/cascadeselect-DzbhK9en.js +1 -0
- package/dist/colorpicker-5qmEq7ZI.js +1 -0
- package/dist/colorpicker-DhNZulJY.mjs +98 -0
- package/dist/components/DynamicComponent.d.ts +2 -0
- package/dist/components/FormGenerator.d.ts +99 -10
- package/dist/components/controls/index.d.ts +45 -79
- package/dist/consentfield-B7Rm8d3U.js +1 -0
- package/dist/consentfield-CBQUR4J5.mjs +78 -0
- package/dist/datatable-BIQznwQe.mjs +20 -0
- package/dist/datatable-BWlcUP0M.js +1 -0
- package/dist/dynamic-mui.cjs +1 -0
- package/dist/dynamic-mui.mjs +32 -0
- package/dist/editabletable-DCoRmsEO.js +1 -0
- package/dist/editabletable-DRlBV8lk.mjs +126 -0
- package/dist/fileupload-ByBv1UjT.mjs +172 -0
- package/dist/fileupload-Cze3Oc_2.js +1 -0
- package/dist/formrepeater-BBkKGLFJ.mjs +71 -0
- package/dist/formrepeater-BxJzXoHx.js +1 -0
- package/dist/formwizard-BDZE1UDD.js +1 -0
- package/dist/formwizard-D2u1bMvK.mjs +83 -0
- package/dist/geofield-8WTeZk0Z.mjs +104 -0
- package/dist/geofield-Bw3p4NLJ.js +1 -0
- package/dist/group-B2mSylHd.mjs +23 -0
- package/dist/group-BlfO3ZZf.js +1 -0
- package/dist/imagelist-Bn9QhIv7.js +1 -0
- package/dist/imagelist-rqmJajHt.mjs +18 -0
- package/dist/index-CddjLTWF.mjs +12499 -0
- package/dist/index-D08GIfqF.js +43 -0
- package/dist/index.d.ts +9 -1
- package/dist/intlphone-B_Xn98pU.js +1 -0
- package/dist/intlphone-DtQZ12xk.mjs +140 -0
- package/dist/keyvaluefield-B_1NeGuP.mjs +125 -0
- package/dist/keyvaluefield-DyKCGd32.js +1 -0
- package/dist/line-B-DwR1hm.mjs +20 -0
- package/dist/line-BkymZu31.js +1 -0
- package/dist/lineitemlist-DGo8UOZC.js +1 -0
- package/dist/lineitemlist-vGKzJlQx.mjs +166 -0
- package/dist/list-7uNWrepS.mjs +20 -0
- package/dist/list-C0FgmtQw.js +1 -0
- package/dist/locationfield-CeUgxLkQ.mjs +119 -0
- package/dist/locationfield-Duyw1ZEz.js +1 -0
- package/dist/markdowneditor-B1y-hfny.mjs +90 -0
- package/dist/markdowneditor-Db0Un1_Z.js +2 -0
- package/dist/matrixfield-C7Sc-YpI.mjs +117 -0
- package/dist/matrixfield-CckODuPn.js +1 -0
- package/dist/mixChart-C3o184UT.js +1 -0
- package/dist/mixChart-ISf3Kbr-.mjs +75 -0
- package/dist/multitextbox-BYazIAeG.js +1 -0
- package/dist/multitextbox-ide2lvJ6.mjs +78 -0
- package/dist/npsscale-C2e88qk_.js +1 -0
- package/dist/npsscale-lndz7GEq.mjs +87 -0
- package/dist/numberstepper-DitbcvV9.mjs +128 -0
- package/dist/numberstepper-DyRjQM_K.js +1 -0
- package/dist/pie-CJSL8Sv5.js +1 -0
- package/dist/pie-CL29dlh5.mjs +20 -0
- package/dist/richtexteditor-CVg-MnKp.js +1 -0
- package/dist/richtexteditor-DsC1XC7h.mjs +141 -0
- package/dist/s3Upload-B0JeoLkS.js +1 -0
- package/dist/s3Upload-dpioZ2c8.mjs +51 -0
- package/dist/signature-14OrZriO.mjs +1225 -0
- package/dist/signature-D582X6tB.js +2 -0
- package/dist/stepper-B-FpcZvT.js +1 -0
- package/dist/stepper-CDfEy_C6.mjs +140 -0
- package/dist/summaryfield-B08ZmVHh.js +1 -0
- package/dist/summaryfield-CTpPlZBG.mjs +96 -0
- package/dist/tabs-BIliqFOs.js +1 -0
- package/dist/tabs-DDeJCFt8.mjs +39 -0
- package/dist/tagsinput-D-q6rRZS.mjs +58 -0
- package/dist/tagsinput-qh_lhdFb.js +1 -0
- package/dist/util/registry.d.ts +29 -0
- package/dist/util/resolvers.d.ts +45 -0
- package/dist/util/useFormEngine.d.ts +74 -0
- package/dist/util/validateSchema.d.ts +23 -0
- package/dist/v4-BysszJq8.mjs +30 -0
- package/dist/v4-CqdK_b8Y.js +1 -0
- package/package.json +36 -11
- package/dist/AxisSharedComponents-BbsKw1BT.js +0 -3
- package/dist/AxisSharedComponents-xLtpOLH_.mjs +0 -605
- package/dist/ChartsAxis-CANvBdY9.mjs +0 -47
- package/dist/ChartsAxis-EZ7m_KrU.js +0 -1
- package/dist/ChartsGrid-BCRTvNTr.js +0 -3
- package/dist/ChartsGrid-C_HT7qpL.mjs +0 -381
- package/dist/ChartsWrapper-CM7EDyAK.js +0 -5
- package/dist/ChartsWrapper-CO5_Z6BD.mjs +0 -1878
- package/dist/ChartsXAxis-CPmuCRhq.mjs +0 -487
- package/dist/ChartsXAxis-DFFY1sPg.js +0 -3
- package/dist/ChartsYAxis-DLUMr9vG.mjs +0 -392
- package/dist/ChartsYAxis-fpevi1sP.js +0 -1
- package/dist/XmlShapeDeserializer-3yQdm0b0.mjs +0 -237
- package/dist/XmlShapeDeserializer-XKJAoqLc.js +0 -1
- package/dist/clampAngle-BvZjnf53.mjs +0 -11
- package/dist/clampAngle-DpAsDoeT.js +0 -1
- package/dist/createSelector-B-9FwV16.mjs +0 -430
- package/dist/createSelector-f0oqn8Lr.js +0 -7
- package/dist/date-utils-CFUUt6NL.js +0 -4
- package/dist/date-utils-pGzaKb0p.mjs +0 -477
- package/dist/dynamic-mui.cjs.js +0 -1
- package/dist/dynamic-mui.es.js +0 -22
- package/dist/index--8Zky9Oh.js +0 -299
- package/dist/index-6WTs1Xy_.js +0 -1
- package/dist/index-B1R1akM2.js +0 -1
- package/dist/index-BW8_rRff.js +0 -7
- package/dist/index-BXFVK_GX.js +0 -1
- package/dist/index-B_KNUTjy.js +0 -1
- package/dist/index-BhaKvHkU.mjs +0 -62051
- package/dist/index-Bif92ima.js +0 -1
- package/dist/index-BnZOu8CL.js +0 -1
- package/dist/index-CDxpgRlR.mjs +0 -7
- package/dist/index-CThMfvtJ.mjs +0 -2555
- package/dist/index-CVqLvm8B.js +0 -1
- package/dist/index-CodJBIn6.mjs +0 -1665
- package/dist/index-Cr6Wp_S-.mjs +0 -3141
- package/dist/index-CslPwsrf.mjs +0 -4
- package/dist/index-CuV0MQzZ.mjs +0 -1173
- package/dist/index-DA0XouZs.mjs +0 -153
- package/dist/index-DKS5Sz9e.js +0 -14
- package/dist/index-DSkYYZuW.mjs +0 -4
- package/dist/index-DU78_FiA.js +0 -1
- package/dist/index-D_mYhgJ0.js +0 -10
- package/dist/index-DcWfyXJp.mjs +0 -92
- package/dist/index-Dlimbnxj.mjs +0 -2965
- package/dist/index-MllWgTJ5.mjs +0 -9372
- package/dist/index-in5z9hUb.js +0 -133
- package/dist/index-qUW7FnZ-.mjs +0 -20540
- package/dist/index.browser-BSu11T_q.mjs +0 -363
- package/dist/index.browser-By7-GABP.js +0 -4
- package/dist/isDeepEqual-BHfPvf9U.mjs +0 -393
- package/dist/isDeepEqual-CqxZGVRk.js +0 -1
- package/dist/loadCognitoIdentity-DtYTy-DW.js +0 -1
- package/dist/loadCognitoIdentity-DzdR91GB.mjs +0 -872
- package/dist/loadSts-Cic6UToN.mjs +0 -593
- package/dist/loadSts-csbFP6zX.js +0 -1
- package/dist/main.d.ts +0 -1
- package/dist/noAuth-B8ui2kBg.mjs +0 -71
- package/dist/noAuth-JPA2o4dt.js +0 -1
- package/dist/playground/AIContext.d.ts +0 -18
- package/dist/playground/AIPanel.d.ts +0 -10
- package/dist/playground/Builder.d.ts +0 -1
- package/dist/playground/Canvas.d.ts +0 -9
- package/dist/playground/DemoGallery.d.ts +0 -6
- package/dist/playground/PropertiesEditor.d.ts +0 -10
- package/dist/playground/Sidebar.d.ts +0 -9
- package/dist/playground/demoForms.d.ts +0 -3
- package/dist/playground/demoRecipes.d.ts +0 -15
- package/dist/playground/demoVariants.d.ts +0 -11
- package/dist/playground/documentation.d.ts +0 -6
- package/dist/playground/templates.d.ts +0 -7
- package/dist/playground/testData.d.ts +0 -2
- package/dist/test/setup.d.ts +0 -0
- package/dist/theme/theme.d.ts +0 -6
- package/dist/useAxis-DSbfEtO7.js +0 -3
- package/dist/useAxis-SiNBMMWq.mjs +0 -3010
- package/dist/useChartContainerProps-Bl3hO-r1.mjs +0 -5418
- package/dist/useChartContainerProps-C_C_PZoi.js +0 -12
- package/dist/useItemHighlightedGetter-9CIwqsGj.js +0 -1
- package/dist/useItemHighlightedGetter-CTISrNdV.mjs +0 -88
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
import { s as A, f as b, i as j, b as N, g as Z, c as T, d as L, u as W, a as K } from "./useAxis-SiNBMMWq.mjs";
|
|
2
|
-
import * as C from "react";
|
|
3
|
-
import { _ as p, g as E, h as S, s as v, j as c, c as k, P as g, u as q, a as B } from "./index-BhaKvHkU.mjs";
|
|
4
|
-
import { s as M, b as J, c as V, d as $, e as H, f as X, g as Q, h as z } from "./useChartContainerProps-Bl3hO-r1.mjs";
|
|
5
|
-
import { c as I, a as G } from "./createSelector-B-9FwV16.mjs";
|
|
6
|
-
import { h as P } from "./AxisSharedComponents-xLtpOLH_.mjs";
|
|
7
|
-
function O(s, i, t) {
|
|
8
|
-
if (s === "pointer") {
|
|
9
|
-
if (i)
|
|
10
|
-
return [i];
|
|
11
|
-
if (t)
|
|
12
|
-
return [t];
|
|
13
|
-
}
|
|
14
|
-
if (s === "keyboard") {
|
|
15
|
-
if (t)
|
|
16
|
-
return [t];
|
|
17
|
-
if (i)
|
|
18
|
-
return [i];
|
|
19
|
-
}
|
|
20
|
-
return [];
|
|
21
|
-
}
|
|
22
|
-
const f = (s) => s.controlledCartesianAxisHighlight, Y = (s, i, t, e, a, h) => {
|
|
23
|
-
if (h)
|
|
24
|
-
return [];
|
|
25
|
-
if (t !== void 0)
|
|
26
|
-
return t.filter((l) => i.axis[l.axisId] !== void 0).map((l) => l);
|
|
27
|
-
const d = s !== null && {
|
|
28
|
-
axisId: i.axisIds[0],
|
|
29
|
-
dataIndex: s
|
|
30
|
-
}, o = e != null && e;
|
|
31
|
-
return O(a, d, o);
|
|
32
|
-
}, As = I(M, A, f, V, $, H, Y);
|
|
33
|
-
I(X, b, f, z, $, H, Y);
|
|
34
|
-
const _ = (s, i, t, e, a, h, d) => {
|
|
35
|
-
if (d)
|
|
36
|
-
return [];
|
|
37
|
-
if (e !== void 0)
|
|
38
|
-
return e.map((u) => p({}, u, {
|
|
39
|
-
value: t.axis[u.axisId]?.data?.[u.dataIndex]
|
|
40
|
-
})).filter(({
|
|
41
|
-
value: u
|
|
42
|
-
}) => u !== void 0);
|
|
43
|
-
const o = i != null && {
|
|
44
|
-
axisId: t.axisIds[0],
|
|
45
|
-
value: i
|
|
46
|
-
};
|
|
47
|
-
o && s != null && (o.dataIndex = s);
|
|
48
|
-
const l = a != null && t.axis[a.axisId]?.data?.[a.dataIndex], r = a != null && l != null && p({}, a, {
|
|
49
|
-
value: l
|
|
50
|
-
});
|
|
51
|
-
return O(h, o, r);
|
|
52
|
-
}, ss = I(M, J, A, f, V, $, H, _), ts = I(X, Q, b, f, z, $, H, _), R = (s, i) => s === void 0 ? [i.axis[i.axisIds[0]]] : s.map((e) => i.axis[e.axisId] ?? null).filter((e) => e !== null);
|
|
53
|
-
G(f, A, R);
|
|
54
|
-
G(f, b, R);
|
|
55
|
-
function D(s) {
|
|
56
|
-
if (j(s))
|
|
57
|
-
return (t) => (s(t) ?? 0) + s.bandwidth() / 2;
|
|
58
|
-
const i = s.domain();
|
|
59
|
-
return i[0] === i[1] ? (t) => t === i[0] ? s(t) : NaN : (t) => s(t);
|
|
60
|
-
}
|
|
61
|
-
function bs() {
|
|
62
|
-
return N().use(Z);
|
|
63
|
-
}
|
|
64
|
-
function is(s) {
|
|
65
|
-
return E("MuiChartsAxisHighlight", s);
|
|
66
|
-
}
|
|
67
|
-
S("MuiChartsAxisHighlight", ["root"]);
|
|
68
|
-
const y = v("path", {
|
|
69
|
-
name: "MuiChartsAxisHighlight",
|
|
70
|
-
slot: "Root"
|
|
71
|
-
})(({
|
|
72
|
-
theme: s
|
|
73
|
-
}) => ({
|
|
74
|
-
pointerEvents: "none",
|
|
75
|
-
variants: [{
|
|
76
|
-
props: {
|
|
77
|
-
axisHighlight: "band"
|
|
78
|
-
},
|
|
79
|
-
style: p({
|
|
80
|
-
fill: "white",
|
|
81
|
-
fillOpacity: 0.1
|
|
82
|
-
}, s.applyStyles("light", {
|
|
83
|
-
fill: "gray"
|
|
84
|
-
}))
|
|
85
|
-
}, {
|
|
86
|
-
props: {
|
|
87
|
-
axisHighlight: "line"
|
|
88
|
-
},
|
|
89
|
-
style: p({
|
|
90
|
-
strokeDasharray: "5 2",
|
|
91
|
-
stroke: "#ffffff"
|
|
92
|
-
}, s.applyStyles("light", {
|
|
93
|
-
stroke: "#000000"
|
|
94
|
-
}))
|
|
95
|
-
}]
|
|
96
|
-
}));
|
|
97
|
-
function es(s) {
|
|
98
|
-
const {
|
|
99
|
-
type: i,
|
|
100
|
-
classes: t
|
|
101
|
-
} = s, {
|
|
102
|
-
left: e,
|
|
103
|
-
width: a
|
|
104
|
-
} = T(), h = N(), d = h.use(ts), o = h.use(b);
|
|
105
|
-
return d.length === 0 ? null : d.map(({
|
|
106
|
-
axisId: l,
|
|
107
|
-
value: r
|
|
108
|
-
}) => {
|
|
109
|
-
const n = o.axis[l].scale, x = D(n), m = i === "band" && r !== null && j(n);
|
|
110
|
-
return process.env.NODE_ENV !== "production" && m && n(r) === void 0 && console.error(["MUI X Charts: The position value provided for the axis is not valid for the current scale.", "This probably means something is wrong with the data passed to the chart.", "The ChartsAxisHighlight component will not be displayed."].join(`
|
|
111
|
-
`)), /* @__PURE__ */ c.jsxs(C.Fragment, {
|
|
112
|
-
children: [m && n(r) !== void 0 && /* @__PURE__ */ c.jsx(y, {
|
|
113
|
-
d: `M ${e} ${n(r) - (n.step() - n.bandwidth()) / 2} l 0 ${n.step()} l ${a} 0 l 0 ${-n.step()} Z`,
|
|
114
|
-
className: t.root,
|
|
115
|
-
ownerState: {
|
|
116
|
-
axisHighlight: "band"
|
|
117
|
-
}
|
|
118
|
-
}), i === "line" && r !== null && /* @__PURE__ */ c.jsx(y, {
|
|
119
|
-
d: `M ${e} ${x(r)} L ${e + a} ${x(r)}`,
|
|
120
|
-
className: t.root,
|
|
121
|
-
ownerState: {
|
|
122
|
-
axisHighlight: "line"
|
|
123
|
-
}
|
|
124
|
-
})]
|
|
125
|
-
}, `${l}-${r}`);
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
function ns(s) {
|
|
129
|
-
const {
|
|
130
|
-
type: i,
|
|
131
|
-
classes: t
|
|
132
|
-
} = s, {
|
|
133
|
-
top: e,
|
|
134
|
-
height: a
|
|
135
|
-
} = T(), h = N(), d = h.use(ss), o = h.use(A);
|
|
136
|
-
return d.length === 0 ? null : d.map(({
|
|
137
|
-
axisId: l,
|
|
138
|
-
value: r
|
|
139
|
-
}) => {
|
|
140
|
-
const n = o.axis[l].scale, x = D(n), m = i === "band" && r !== null && j(n);
|
|
141
|
-
return process.env.NODE_ENV !== "production" && m && n(r) === void 0 && console.error(["MUI X Charts: The position value provided for the axis is not valid for the current scale.", "This probably means something is wrong with the data passed to the chart.", "The ChartsAxisHighlight component will not be displayed."].join(`
|
|
142
|
-
`)), /* @__PURE__ */ c.jsxs(C.Fragment, {
|
|
143
|
-
children: [m && n(r) !== void 0 && /* @__PURE__ */ c.jsx(y, {
|
|
144
|
-
d: `M ${n(r) - (n.step() - n.bandwidth()) / 2} ${e} l ${n.step()} 0 l 0 ${a} l ${-n.step()} 0 Z`,
|
|
145
|
-
className: t.root,
|
|
146
|
-
ownerState: {
|
|
147
|
-
axisHighlight: "band"
|
|
148
|
-
}
|
|
149
|
-
}), i === "line" && r !== null && /* @__PURE__ */ c.jsx(y, {
|
|
150
|
-
d: `M ${x(r)} ${e} L ${x(r)} ${e + a}`,
|
|
151
|
-
className: t.root,
|
|
152
|
-
ownerState: {
|
|
153
|
-
axisHighlight: "line"
|
|
154
|
-
}
|
|
155
|
-
})]
|
|
156
|
-
}, `${l}-${r}`);
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
const rs = () => k({
|
|
160
|
-
root: ["root"]
|
|
161
|
-
}, is);
|
|
162
|
-
function os(s) {
|
|
163
|
-
const {
|
|
164
|
-
x: i,
|
|
165
|
-
y: t
|
|
166
|
-
} = s, e = rs();
|
|
167
|
-
return /* @__PURE__ */ c.jsxs(C.Fragment, {
|
|
168
|
-
children: [i && i !== "none" && /* @__PURE__ */ c.jsx(ns, {
|
|
169
|
-
type: i,
|
|
170
|
-
classes: e
|
|
171
|
-
}), t && t !== "none" && /* @__PURE__ */ c.jsx(es, {
|
|
172
|
-
type: t,
|
|
173
|
-
classes: e
|
|
174
|
-
})]
|
|
175
|
-
});
|
|
176
|
-
}
|
|
177
|
-
process.env.NODE_ENV !== "production" && (os.propTypes = {
|
|
178
|
-
// ----------------------------- Warning --------------------------------
|
|
179
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
180
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
181
|
-
// ----------------------------------------------------------------------
|
|
182
|
-
x: g.oneOf(["band", "line", "none"]),
|
|
183
|
-
y: g.oneOf(["band", "line", "none"])
|
|
184
|
-
});
|
|
185
|
-
function as(s) {
|
|
186
|
-
const {
|
|
187
|
-
id: i,
|
|
188
|
-
offset: t
|
|
189
|
-
} = s, {
|
|
190
|
-
left: e,
|
|
191
|
-
top: a,
|
|
192
|
-
width: h,
|
|
193
|
-
height: d
|
|
194
|
-
} = T(), o = p({
|
|
195
|
-
top: 0,
|
|
196
|
-
right: 0,
|
|
197
|
-
bottom: 0,
|
|
198
|
-
left: 0
|
|
199
|
-
}, t);
|
|
200
|
-
return /* @__PURE__ */ c.jsx("clipPath", {
|
|
201
|
-
id: i,
|
|
202
|
-
children: /* @__PURE__ */ c.jsx("rect", {
|
|
203
|
-
x: e - o.left,
|
|
204
|
-
y: a - o.top,
|
|
205
|
-
width: h + o.left + o.right,
|
|
206
|
-
height: d + o.top + o.bottom
|
|
207
|
-
})
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
process.env.NODE_ENV !== "production" && (as.propTypes = {
|
|
211
|
-
// ----------------------------- Warning --------------------------------
|
|
212
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
213
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
214
|
-
// ----------------------------------------------------------------------
|
|
215
|
-
/**
|
|
216
|
-
* The id of the clip path.
|
|
217
|
-
*/
|
|
218
|
-
id: g.string.isRequired,
|
|
219
|
-
/**
|
|
220
|
-
* Offset, in pixels, of the clip path rectangle from the drawing area.
|
|
221
|
-
*
|
|
222
|
-
* A positive value will move the rectangle outside the drawing area.
|
|
223
|
-
*/
|
|
224
|
-
offset: g.shape({
|
|
225
|
-
bottom: g.number,
|
|
226
|
-
left: g.number,
|
|
227
|
-
right: g.number,
|
|
228
|
-
top: g.number
|
|
229
|
-
})
|
|
230
|
-
});
|
|
231
|
-
function ls(s) {
|
|
232
|
-
return E("MuiChartsGrid", s);
|
|
233
|
-
}
|
|
234
|
-
const w = S("MuiChartsGrid", ["root", "line", "horizontalLine", "verticalLine"]), cs = v("g", {
|
|
235
|
-
name: "MuiChartsGrid",
|
|
236
|
-
slot: "Root",
|
|
237
|
-
overridesResolver: (s, i) => [{
|
|
238
|
-
[`&.${w.verticalLine}`]: i.verticalLine
|
|
239
|
-
}, {
|
|
240
|
-
[`&.${w.horizontalLine}`]: i.horizontalLine
|
|
241
|
-
}, i.root]
|
|
242
|
-
})({}), U = v("line", {
|
|
243
|
-
name: "MuiChartsGrid",
|
|
244
|
-
slot: "Line"
|
|
245
|
-
})(({
|
|
246
|
-
theme: s
|
|
247
|
-
}) => ({
|
|
248
|
-
stroke: (s.vars || s).palette.divider,
|
|
249
|
-
shapeRendering: "crispEdges",
|
|
250
|
-
strokeWidth: 1
|
|
251
|
-
}));
|
|
252
|
-
function hs(s) {
|
|
253
|
-
const {
|
|
254
|
-
instance: i
|
|
255
|
-
} = L(), {
|
|
256
|
-
axis: t,
|
|
257
|
-
start: e,
|
|
258
|
-
end: a,
|
|
259
|
-
classes: h
|
|
260
|
-
} = s, {
|
|
261
|
-
scale: d,
|
|
262
|
-
tickNumber: o,
|
|
263
|
-
tickInterval: l,
|
|
264
|
-
tickSpacing: r
|
|
265
|
-
} = t, u = P({
|
|
266
|
-
scale: d,
|
|
267
|
-
tickNumber: o,
|
|
268
|
-
tickInterval: l,
|
|
269
|
-
tickSpacing: r,
|
|
270
|
-
direction: "x",
|
|
271
|
-
ordinalTimeTicks: "ordinalTimeTicks" in t ? t.ordinalTimeTicks : void 0
|
|
272
|
-
});
|
|
273
|
-
return /* @__PURE__ */ c.jsx(C.Fragment, {
|
|
274
|
-
children: u.map(({
|
|
275
|
-
value: n,
|
|
276
|
-
offset: x
|
|
277
|
-
}) => i.isXInside(x) ? /* @__PURE__ */ c.jsx(U, {
|
|
278
|
-
y1: e,
|
|
279
|
-
y2: a,
|
|
280
|
-
x1: x,
|
|
281
|
-
x2: x,
|
|
282
|
-
className: h.verticalLine
|
|
283
|
-
}, `vertical-${n?.getTime?.() ?? n}`) : null)
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
function ds(s) {
|
|
287
|
-
const {
|
|
288
|
-
instance: i
|
|
289
|
-
} = L(), {
|
|
290
|
-
axis: t,
|
|
291
|
-
start: e,
|
|
292
|
-
end: a,
|
|
293
|
-
classes: h
|
|
294
|
-
} = s, {
|
|
295
|
-
scale: d,
|
|
296
|
-
tickNumber: o,
|
|
297
|
-
tickInterval: l,
|
|
298
|
-
tickSpacing: r
|
|
299
|
-
} = t, u = P({
|
|
300
|
-
scale: d,
|
|
301
|
-
tickNumber: o,
|
|
302
|
-
tickInterval: l,
|
|
303
|
-
tickSpacing: r,
|
|
304
|
-
direction: "y",
|
|
305
|
-
ordinalTimeTicks: "ordinalTimeTicks" in t ? t.ordinalTimeTicks : void 0
|
|
306
|
-
});
|
|
307
|
-
return /* @__PURE__ */ c.jsx(C.Fragment, {
|
|
308
|
-
children: u.map(({
|
|
309
|
-
value: n,
|
|
310
|
-
offset: x
|
|
311
|
-
}) => i.isYInside(x) ? /* @__PURE__ */ c.jsx(U, {
|
|
312
|
-
y1: x,
|
|
313
|
-
y2: x,
|
|
314
|
-
x1: e,
|
|
315
|
-
x2: a,
|
|
316
|
-
className: h.horizontalLine
|
|
317
|
-
}, `horizontal-${n?.getTime?.() ?? n}`) : null)
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
const us = ["vertical", "horizontal"], xs = ({
|
|
321
|
-
classes: s
|
|
322
|
-
}) => k({
|
|
323
|
-
root: ["root"],
|
|
324
|
-
verticalLine: ["line", "verticalLine"],
|
|
325
|
-
horizontalLine: ["line", "horizontalLine"]
|
|
326
|
-
}, ls, s);
|
|
327
|
-
function gs(s) {
|
|
328
|
-
const i = q({
|
|
329
|
-
props: s,
|
|
330
|
-
name: "MuiChartsGrid"
|
|
331
|
-
}), t = T(), {
|
|
332
|
-
vertical: e,
|
|
333
|
-
horizontal: a
|
|
334
|
-
} = i, h = B(i, us), {
|
|
335
|
-
xAxis: d,
|
|
336
|
-
xAxisIds: o
|
|
337
|
-
} = W(), {
|
|
338
|
-
yAxis: l,
|
|
339
|
-
yAxisIds: r
|
|
340
|
-
} = K(), u = xs(i), n = l[r[0]], x = d[o[0]];
|
|
341
|
-
return /* @__PURE__ */ c.jsxs(cs, p({}, h, {
|
|
342
|
-
className: u.root,
|
|
343
|
-
children: [e && /* @__PURE__ */ c.jsx(hs, {
|
|
344
|
-
axis: x,
|
|
345
|
-
start: t.top,
|
|
346
|
-
end: t.height + t.top,
|
|
347
|
-
classes: u
|
|
348
|
-
}), a && /* @__PURE__ */ c.jsx(ds, {
|
|
349
|
-
axis: n,
|
|
350
|
-
start: t.left,
|
|
351
|
-
end: t.width + t.left,
|
|
352
|
-
classes: u
|
|
353
|
-
})]
|
|
354
|
-
}));
|
|
355
|
-
}
|
|
356
|
-
process.env.NODE_ENV !== "production" && (gs.propTypes = {
|
|
357
|
-
// ----------------------------- Warning --------------------------------
|
|
358
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
359
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
360
|
-
// ----------------------------------------------------------------------
|
|
361
|
-
/**
|
|
362
|
-
* Override or extend the styles applied to the component.
|
|
363
|
-
*/
|
|
364
|
-
classes: g.object,
|
|
365
|
-
/**
|
|
366
|
-
* Displays horizontal grid.
|
|
367
|
-
*/
|
|
368
|
-
horizontal: g.bool,
|
|
369
|
-
/**
|
|
370
|
-
* Displays vertical grid.
|
|
371
|
-
*/
|
|
372
|
-
vertical: g.bool
|
|
373
|
-
});
|
|
374
|
-
export {
|
|
375
|
-
gs as C,
|
|
376
|
-
os as a,
|
|
377
|
-
as as b,
|
|
378
|
-
D as g,
|
|
379
|
-
As as s,
|
|
380
|
-
bs as u
|
|
381
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
"use strict";const l=require("./useAxis-DSbfEtO7.js"),t=require("./index--8Zky9Oh.js"),P=require("./createSelector-f0oqn8Lr.js"),E=require("./useChartContainerProps-C_C_PZoi.js"),Ve=require("react"),Ue=require("./clampAngle-DpAsDoeT.js"),He=require("./isDeepEqual-CqxZGVRk.js"),We=require("react-dom");function Te(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(s,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return s.default=e,Object.freeze(s)}const R=Te(Ve),Be=Te(We),Ye=e=>e.animation,Ge=P.createSelector(Ye,e=>e.skip||e.skipAnimationRequests>0),Je=e=>e.tooltip,ge=P.createSelector(Je,e=>e?.item??null),Ke=P.createSelector(ge,e=>e!==null),le=P.createSelector(E.selectorChartsLastInteraction,ge,E.selectorChartsKeyboardItem,(e,s,r)=>e==="keyboard"?r:s??null),Qe=P.createSelector(E.selectorChartsLastInteraction,Ke,E.selectorChartsHasFocusedItem,(e,s,r)=>e==="keyboard"?r:s),Ze=P.createSelectorMemoized(le,l.selectorChartXAxis,l.selectorChartYAxis,l.selectorChartRotationAxis,l.selectorChartRadiusAxis,l.selectorChartSeriesProcessed,function(s,{axis:r,axisIds:o},{axis:n,axisIds:i},a,u,f){if(!s)return{};const T=f[s.type]?.series[s.seriesId];if(!T)return{};const y={rotationAxes:a,radiusAxes:u},x=l.isCartesianSeries(T)?T.xAxisId??o[0]:void 0,h=l.isCartesianSeries(T)?T.yAxisId??i[0]:void 0;return x!==void 0&&(y.x=r[x]),h!==void 0&&(y.y=n[h]),y}),Xe=P.createSelectorMemoized(le,l.selectorChartDrawingArea,l.selectorChartSeriesConfig,l.selectorChartSeriesProcessed,l.selectorChartSeriesLayout,Ze,function(s,r,o,n,i,a,u="top"){if(!s)return null;const f=n[s.type]?.series[s.seriesId];return f?o[f.type].tooltipItemPositionGetter?.({series:n,seriesLayout:i,drawingArea:r,axesConfig:a,identifier:s,placement:u})??null:null}),et=e=>(s,r)=>Math.atan2(s-e.cx,e.cy-r);function fe(e,s){const{scale:r,data:o,reverse:n}=e;if(!l.isOrdinalScale(r))throw new Error("MUI X Charts: getAxisValue is not implemented for polare continuous axes.");if(!o)return-1;const i=Ue.clampAngleRad(s-Math.min(...r.range())),a=r.bandwidth()===0?Math.floor((i+r.step()/2)/r.step())%o.length:Math.floor(i/r.step());return a<0||a>=o.length?-1:n?o.length-1-a:a}function Z(){return l.useStore().use(l.selectorChartSeriesProcessed)}const tt=P.createSelector(l.selectorChartSeriesProcessed,(e,s)=>e[s]);P.createSelectorMemoized(l.selectorChartSeriesProcessed,(e,s,r)=>{if(r===void 0||Array.isArray(r)&&r.length===0)return e[s]?.seriesOrder?.map(i=>e[s]?.series[i])??[];if(!Array.isArray(r))return e[s]?.series?.[r];const o=[],n=[];for(const i of r){const a=e[s]?.series?.[i];a?o.push(a):n.push(i)}if(process.env.NODE_ENV!=="production"&&n.length>0){const i=n.map(u=>JSON.stringify(u)).join(", "),a=`use${s.charAt(0).toUpperCase()}${s.slice(1)}Series`;t.warnOnce([`MUI X Charts: The following ids provided to "${a}" could not be found: ${i}.`,`Make sure that they exist and their series are using the "${s}" series type.`])}return o});const st=e=>l.useStore().use(tt,e);function rt(){return!1}function Pe(e,s){return!e||!s?rt:function(o){return o?e.highlight==="series"?o.seriesId===s.seriesId:e.highlight==="item"?o.dataIndex===s.dataIndex&&o.seriesId===s.seriesId:!1:!1}}function ot(){return!1}function Ce(e,s){return!e||!s?ot:function(o){return o?e.fade==="series"?o.seriesId===s.seriesId&&o.dataIndex!==s.dataIndex:e.fade==="global"?o.seriesId!==s.seriesId||o.dataIndex!==s.dataIndex:!1:!1}}function ce(e,s,r){return e?.highlight==="series"&&s?.seriesId===r}function nt(e,s,r){return ce(e,s,r)?!1:e?.fade==="global"&&s!=null||e?.fade==="series"&&s?.seriesId===r}function be(e,s,r){return e?.highlight==="item"&&s?.seriesId===r?s.dataIndex:null}function it(e,s,r){return ce(e,s,r)||be(e,s,r)===s?.dataIndex?null:(e?.fade==="series"||e?.fade==="global")&&s?.seriesId===r?s.dataIndex:null}const at=e=>e.highlight,lt=P.createSelector(l.selectorChartSeriesProcessed,e=>{const s=new Map;return Object.keys(e).forEach(r=>{const o=e[r];o?.seriesOrder?.forEach(n=>{const i=o?.series[n];s.set(n,i?.highlightScope)})}),s}),M=P.createSelectorMemoized(at,E.selectorChartsKeyboardItem,function(s,r){return s.isControlled||s.lastUpdate==="pointer"?s.item:r}),L=P.createSelector(lt,M,function(s,r){if(!r)return null;const o=s.get(r.seriesId);return o===void 0?null:o}),ct=P.createSelectorMemoized(L,M,Pe),pt=P.createSelectorMemoized(L,M,Ce),ut=P.createSelector(L,M,function(s,r,o){return Pe(s,r)(o)}),dt=P.createSelector(L,M,ce),ft=P.createSelector(L,M,nt),ht=P.createSelector(L,M,it),yt=P.createSelector(L,M,be),xt=P.createSelector(L,M,function(s,r,o){return Ce(s,r)(o)});function mt(e){const s=l.useStore(),r=s.use(ut,e),o=s.use(xt,e);return{isHighlighted:r,isFaded:!r&&o}}function Tt(e,s){return Object.keys(e).flatMap(r=>{const o=s[r].legendGetter;return o===void 0?[]:o(e[r])})}function gt(){const e=Z(),r=l.useStore().use(l.selectorChartSeriesConfig);return{items:Tt(e,r)}}var te,he;function Pt(){if(he)return te;he=1;var e=4,s=.001,r=1e-7,o=10,n=11,i=1/(n-1),a=typeof Float32Array=="function";function u(p,c){return 1-3*c+3*p}function f(p,c){return 3*c-6*p}function T(p){return 3*p}function y(p,c,d){return((u(c,d)*p+f(c,d))*p+T(c))*p}function x(p,c,d){return 3*u(c,d)*p*p+2*f(c,d)*p+T(c)}function h(p,c,d,m,C){var I,g,A=0;do g=c+(d-c)/2,I=y(g,m,C)-p,I>0?d=g:c=g;while(Math.abs(I)>r&&++A<o);return g}function b(p,c,d,m){for(var C=0;C<e;++C){var I=x(c,d,m);if(I===0)return c;var g=y(c,d,m)-p;c-=g/I}return c}function O(p){return p}return te=function(c,d,m,C){if(!(0<=c&&c<=1&&0<=m&&m<=1))throw new Error("bezier x values must be in [0, 1] range");if(c===d&&m===C)return O;for(var I=a?new Float32Array(n):new Array(n),g=0;g<n;++g)I[g]=y(g*i,c,m);function A(S){for(var j=0,v=1,k=n-1;v!==k&&I[v]<=S;++v)j+=i;--v;var N=(S-I[v])/(I[v+1]-I[v]),w=j+N*i,_=x(w,c,m);return _>=s?b(S,w,c,m):_===0?w:h(S,j,j+i,c,m)}return function(j){return j===0?0:j===1?1:y(A(j),d,C)}},te}var Ct=Pt();const bt=t.getDefaultExportFromCjs(Ct),Ie=300,It="cubic-bezier(0.66, 0, 0.34, 1)",Rt=bt(.66,0,.34,1);var V=0,H=0,U=0,Re=1e3,G,W,J=0,q=0,X=0,B=typeof performance=="object"&&performance.now?performance:Date,je=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function pe(){return q||(je(jt),q=B.now()+X)}function jt(){q=0}function K(){this._call=this._time=this._next=null}K.prototype=ve.prototype={constructor:K,restart:function(e,s,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?pe():+r)+(s==null?0:+s),!this._next&&W!==this&&(W?W._next=this:G=this,W=this),this._call=e,this._time=r,oe()},stop:function(){this._call&&(this._call=null,this._time=1/0,oe())}};function ve(e,s,r){var o=new K;return o.restart(e,s,r),o}function vt(){pe(),++V;for(var e=G,s;e;)(s=q-e._time)>=0&&e._call.call(void 0,s),e=e._next;--V}function ye(){q=(J=B.now())+X,V=H=0;try{vt()}finally{V=0,Ot(),q=0}}function Et(){var e=B.now(),s=e-J;s>Re&&(X-=s,J=e)}function Ot(){for(var e,s=G,r,o=1/0;s;)s._call?(o>s._time&&(o=s._time),e=s,s=s._next):(r=s._next,s._next=null,s=e?e._next=r:G=r);W=e,oe(o)}function oe(e){if(!V){H&&(H=clearTimeout(H));var s=e-q;s>24?(e<1/0&&(H=setTimeout(ye,e-B.now()-X)),U&&(U=clearInterval(U))):(U||(J=B.now(),U=setInterval(Et,Re)),V=1,je(ye))}}function At(e,s,r){var o=new K;return s=s==null?0:+s,o.restart(n=>{o.stop(),e(n+s)},s,r),o}class St{elapsed=0;timer=null;constructor(s,r,o){this.duration=s,this.easingFn=r,this.onTickCallback=o,this.resume()}get running(){return this.timer!==null}timerCallback(s){this.elapsed=Math.min(s,this.duration);const r=this.duration===0?1:this.elapsed/this.duration,o=this.easingFn(r);this.onTickCallback(o),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;const s=pe()-this.elapsed;return this.timer=ve(r=>this.timerCallback(r),0,s),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),At(()=>this.timerCallback(this.duration)),this}}function kt(e,s){if(Object.is(e,s))return!0;if(typeof e!="object"||e===null||typeof s!="object"||s===null)return!1;const r=Object.keys(e),o=Object.keys(s);if(r.length!==o.length)return!1;for(let n=0;n<r.length;n+=1){const i=r[n];if(!Object.prototype.hasOwnProperty.call(s,i)||!Object.is(e[i],s[i]))return!1}return!0}function Nt(e,{createInterpolator:s,applyProps:r,skip:o,initialProps:n=e}){const i=R.useRef(n),a=R.useRef(null),u=R.useRef(null),f=R.useRef(e);t.useEnhancedEffect(()=>{f.current=e},[e]),t.useEnhancedEffect(()=>{o&&(a.current?.finish(),a.current=null,u.current=null,i.current=e)},[e,o]);const T=R.useCallback(x=>{const h=i.current,b=s(h,e);a.current=new St(Ie,Rt,O=>{const p=b(O);i.current=p,r(x,p)})},[r,s,e]);return[R.useCallback(x=>{if(x===null){a.current?.stop();return}const h=u.current;if(h===x){if(kt(f.current,e)){a.current?.resume();return}a.current?.stop()}h&&a.current?.stop(),u.current=x,(a.current||!o)&&T(x)},[T,e,o]),i.current]}function wt(e,{createInterpolator:s,transformProps:r,applyProps:o,skip:n,initialProps:i=e,ref:a}){const u=r??(x=>x),[f,T]=Nt(e,{initialProps:i,createInterpolator:s,applyProps:(x,h)=>o(x,u(h)),skip:n}),y=r(n?e:T);return t._extends({},y,{ref:t.useForkRef(f,a)})}function _t(){return l.useChartContext().chartRootRef}const Ee=()=>{const e=R.useContext(E.ChartsLocalizationContext);if(e===null)throw new Error(["MUI X Charts: Can not find the charts localization context.","It looks like you forgot to wrap your component in ChartsLocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-charts` package"].join(`
|
|
2
|
-
`));return e};function Mt(){return l.useStore().use(E.selectorChartsFocusedItem)}function Lt(e){const r=l.useStore().use(Ge);return e||r}function qt(e){"hasPointerCapture"in e.currentTarget&&e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)}const Dt=(e,s)=>{const{instance:r}=l.useChartContext(),o=R.useRef(!1),n=t.useEventCallback(()=>{o.current=!0,r.setLastUpdateSource("pointer"),r.setTooltipItem(e),r.setHighlight(e.type==="sankey"?e:{seriesId:e.seriesId,dataIndex:e.dataIndex})}),i=t.useEventCallback(()=>{o.current=!1,r.removeTooltipItem(e),r.clearHighlight()});return R.useEffect(()=>()=>{o.current&&i()},[i]),R.useMemo(()=>s?{}:{onPointerEnter:n,onPointerLeave:i,onPointerDown:qt},[s,n,i])};function $t(e){return t.generateUtilityClass("MuiChartsTooltip",e)}const F=t.generateUtilityClasses("MuiChartsTooltip",["root","paper","table","row","cell","mark","markContainer","labelCell","valueCell","axisValueCell"]),ee=e=>{const s={root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markContainer:["markContainer"],labelCell:["labelCell"],valueCell:["valueCell"],axisValueCell:["axisValueCell"]};return t.composeClasses(s,$t,e)};function Ft(){const e=l.useStore(),s=e.use(le),r=e.use(l.selectorChartSeriesConfig),o=Z(),{xAxis:n,xAxisIds:i}=l.useXAxes(),{yAxis:a,yAxisIds:u}=l.useYAxes(),{zAxis:f,zAxisIds:T}=E.useZAxes(),{rotationAxis:y,rotationAxisIds:x}=l.useRotationAxes();if(!s)return null;const h=o[s.type]?.series[s.seriesId];if(!h)return null;const b=l.isCartesianSeries(h)?h.xAxisId??i[0]:void 0,O=l.isCartesianSeries(h)?h.yAxisId??u[0]:void 0,p="zAxisId"in h?h.zAxisId??T[0]:T[0],c=x[0],d=r[h.type].colorProcessor?.(h,b!==void 0?n[b]:void 0,O!==void 0?a[O]:void 0,p!==void 0?f[p]:void 0)??(()=>""),m={};return b!==void 0&&(m.x=n[b]),O!==void 0&&(m.y=a[O]),c!==void 0&&(m.rotation=y[c]),r[h.type].tooltipGetter({series:h,axesConfig:m,getColor:d,identifier:s})}const ne=t.styled("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(e,s)=>s.paper})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,borderRadius:(e.vars||e).shape?.borderRadius,border:`solid ${(e.vars||e).palette.divider} 1px`})),ie=t.styled("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,[`& .${F.markContainer}`]:{display:"inline-block",width:`calc(20px + ${e.spacing(1.5)})`,verticalAlign:"middle"},"& caption":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`,padding:e.spacing(.5,1.5),textAlign:"start",whiteSpace:"nowrap","& span":{marginRight:e.spacing(1.5)}}})),ae=t.styled("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(.5)},"tr:last-of-type& td":{paddingBottom:e.spacing(.5)}})),z=t.styled(t.Typography,{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,textAlign:"start",[`&.${F.cell}`]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[`&.${F.labelCell}`]:{whiteSpace:"nowrap",fontWeight:e.typography.fontWeightRegular},[`&.${F.valueCell}, &.${F.axisValueCell}`]:{color:(e.vars||e).palette.text.primary,fontWeight:e.typography.fontWeightMedium},[`&.${F.valueCell}`]:{paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5)},"td:first-of-type&, th:first-of-type&":{paddingLeft:e.spacing(1.5)},"td:last-of-type&, th:last-of-type&":{paddingRight:e.spacing(1.5)}}));function zt(e){return t.generateUtilityClass("MuiChartsLabelMark",e)}const $=t.generateUtilityClasses("MuiChartsLabelMark",["root","line","square","circle","mask","fill"]),Vt=e=>{const{type:s}=e,r={root:typeof s=="function"?["root"]:["root",s],mask:["mask"],fill:["fill"]};return t.composeClasses(r,zt,e.classes)},ue=(e,s,r)=>R.forwardRef(function(n,i){const a=t.useThemeProps({props:n,name:e}),u=typeof s.defaultProps=="function"?s.defaultProps(a):s.defaultProps??{},f=t.resolveProps(u,a),T=t.useTheme(),y=s.classesResolver?.(f,T),x=R.forwardRef(r);return process.env.NODE_ENV!=="production"&&(x.displayName="OutComponent"),process.env.NODE_ENV!=="production"&&(x.displayName=`consumeThemeProps(${e})`),t.jsxRuntimeExports.jsx(x,t._extends({},f,{classes:y,ref:i}))});process.env.NODE_ENV!=="production"&&(ue.displayName="consumeThemeProps");const Ut=["type","color","className","classes"],Ht=t.styled("div",{name:"MuiChartsLabelMark",slot:"Root"})(()=>({display:"flex",width:14,height:14,[`&.${$.line}`]:{width:16,height:"unset",alignItems:"center",[`.${$.mask}`]:{height:4,width:"100%",borderRadius:1,overflow:"hidden"}},[`&.${$.square}`]:{height:13,width:13,borderRadius:2,overflow:"hidden"},[`&.${$.circle}`]:{height:15,width:15},svg:{display:"block"},[`& .${$.mask} > *`]:{height:"100%",width:"100%"},[`& .${$.mask}`]:{height:"100%",width:"100%"}})),Y=ue("MuiChartsLabelMark",{defaultProps:{type:"square"},classesResolver:Vt},function(s,r){const{type:o,color:n,className:i,classes:a}=s,u=t._objectWithoutPropertiesLoose(s,Ut),f=o;return t.jsxRuntimeExports.jsx(Ht,t._extends({className:t.clsx(a?.root,i),ownerState:s,"aria-hidden":"true",ref:r},u,{children:t.jsxRuntimeExports.jsx("div",{className:a?.mask,children:typeof f=="function"?t.jsxRuntimeExports.jsx(f,{className:a?.fill,color:n}):t.jsxRuntimeExports.jsx("svg",{viewBox:"0 0 24 24",preserveAspectRatio:o==="line"?"none":void 0,children:o==="circle"?t.jsxRuntimeExports.jsx("circle",{className:a?.fill,r:"12",cx:"12",cy:"12",fill:n}):t.jsxRuntimeExports.jsx("rect",{className:a?.fill,width:"24",height:"24",fill:n})})})}))});process.env.NODE_ENV!=="production"&&(Y.propTypes={classes:t.PropTypes.object,color:t.PropTypes.string,type:t.PropTypes.oneOf(["circle","line","square"])});function Oe(e){const{classes:s,sx:r}=e,o=Ft(),n=ee(s);if(!o)return null;if("values"in o){const{label:T,color:y,markType:x}=o;return t.jsxRuntimeExports.jsx(ne,{sx:r,className:n.paper,children:t.jsxRuntimeExports.jsxs(ie,{className:n.table,children:[t.jsxRuntimeExports.jsxs(t.Typography,{component:"caption",children:[t.jsxRuntimeExports.jsx("div",{className:n.markContainer,children:t.jsxRuntimeExports.jsx(Y,{type:x,color:y,className:n.mark})}),T]}),t.jsxRuntimeExports.jsx("tbody",{children:o.values.map(({formattedValue:h,label:b})=>t.jsxRuntimeExports.jsxs(ae,{className:n.row,children:[t.jsxRuntimeExports.jsx(z,{className:t.clsx(n.labelCell,n.cell),component:"th",children:b}),t.jsxRuntimeExports.jsx(z,{className:t.clsx(n.valueCell,n.cell),component:"td",children:h})]},b))})]})})}const{color:i,label:a,formattedValue:u,markType:f}=o;return t.jsxRuntimeExports.jsx(ne,{sx:r,className:n.paper,children:t.jsxRuntimeExports.jsx(ie,{className:n.table,children:t.jsxRuntimeExports.jsx("tbody",{children:t.jsxRuntimeExports.jsxs(ae,{className:n.row,children:[t.jsxRuntimeExports.jsxs(z,{className:t.clsx(n.labelCell,n.cell),component:"th",children:[t.jsxRuntimeExports.jsx("div",{className:n.markContainer,children:t.jsxRuntimeExports.jsx(Y,{type:f,color:i,className:n.mark})}),a]}),t.jsxRuntimeExports.jsx(z,{className:t.clsx(n.valueCell,n.cell),component:"td",children:u})]})})})})}process.env.NODE_ENV!=="production"&&(Oe.propTypes={classes:t.PropTypes.object,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object])});function Wt(e){const r=l.useStore().use(l.selectorChartSeriesConfig);return R.useMemo(()=>{const n={};return Object.keys(r).forEach(i=>{n[i]=r[i].colorProcessor}),n},[r])}function Bt(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}const Yt="@media (pointer: fine)",Gt=()=>t.useMediaQuery(Yt,{defaultMatches:!0}),Ae=(e,s)=>s,Se=(e,s)=>s;function ke(e,s,r){return Array.isArray(r)?r.map(o=>fe(s.axis[o],e)):fe(s.axis[r],e)}const Ne=P.createSelector(E.selectorChartsInteractionPointerX,E.selectorChartsInteractionPointerY,l.selectorChartPolarCenter,(e,s,r)=>e===null||s===null?null:et(r)(e,s)),Jt=P.createSelector(Ne,l.selectorChartRotationAxis,Ae,(e,s,r=s.axisIds[0])=>e===null?null:ke(e,s,r)),we=P.createSelector(Ne,l.selectorChartRotationAxis,Se,(e,s,r=s.axisIds)=>e===null?null:ke(e,s,r));P.createSelector(l.selectorChartRotationAxis,Jt,Ae,(e,s,r=e.axisIds[0])=>{if(s===null||s===-1||e.axisIds.length===0)return null;const o=e.axis[r]?.data;return o?o[s]:null});P.createSelector(l.selectorChartRotationAxis,we,Se,(e,s,r=e.axisIds)=>s===null?null:r.map((o,n)=>{const i=s[n];return i===-1?null:e.axis[o].data?.[i]}));const _e=P.createSelectorMemoizedWithOptions({memoizeOptions:{resultEqualityCheck:He.isDeepEqual}})(we,l.selectorChartRotationAxis,(e,s)=>e===null?[]:s.axisIds.map((r,o)=>({axisId:r,dataIndex:e[o]})).filter(({axisId:r,dataIndex:o})=>s.axis[r].triggerTooltip&&o>=0)),Kt=P.createSelector(_e,e=>e.length>0);function se(e,s,r){const o=e.data?.[s]??null,i=(e.valueFormatter??(a=>e.scaleType==="utc"?Bt(a):a.toLocaleString()))(o,{location:"tooltip",scale:e.scale});return{axisDirection:r,axisId:e.id,mainAxis:e,dataIndex:s,axisValue:o,axisFormattedValue:i,seriesItems:[]}}function Qt(e={}){const{multipleAxes:s,directions:r}=e,o=l.useXAxis(),n=l.useYAxis(),i=l.useRotationAxis(),a=l.useStore(),u=a.use(E.selectorChartsInteractionTooltipXAxes),f=a.use(E.selectorChartsInteractionTooltipYAxes),T=a.use(_e),y=Z(),{xAxis:x}=l.useXAxes(),{yAxis:h}=l.useYAxes(),{zAxis:b,zAxisIds:O}=E.useZAxes(),{rotationAxis:p}=l.useRotationAxes(),c=Wt();if(u.length===0&&f.length===0&&T.length===0)return null;const d=[];return(r===void 0||r.includes("x"))&&u.forEach(({axisId:m,dataIndex:C})=>{!s&&d.length>1||d.push(se(x[m],C,"x"))}),(r===void 0||r.includes("y"))&&f.forEach(({axisId:m,dataIndex:C})=>{!s&&d.length>1||d.push(se(h[m],C,"y"))}),(r===void 0||r.includes("rotation"))&&T.forEach(({axisId:m,dataIndex:C})=>{!s&&d.length>1||d.push(se(p[m],C,"rotation"))}),Object.keys(y).filter(l.isCartesianSeriesType).forEach(m=>{const C=y[m];return C?C.seriesOrder.forEach(I=>{const g=C.series[I],A=g.xAxisId??o.id,S=g.yAxisId??n.id,j=d.findIndex(({axisDirection:v,axisId:k})=>v==="x"&&k===A||v==="y"&&k===S);if(j>=0){const v="zAxisId"in g?g.zAxisId:O[0],{dataIndex:k}=d[j],N=c[m]?.(g,x[A],h[S],v?b[v]:void 0)(k)??"",w=g.data[k]??null,_=g.valueFormatter(w,{dataIndex:k}),D=E.getLabel(g.label,"tooltip")??null;d[j].seriesItems.push({seriesId:I,color:N,value:w,formattedValue:_,formattedLabel:D,markType:g.labelMarkType})}}):[]}),Object.keys(y).filter(l.isPolarSeriesType).forEach(m=>{const C=y[m];return C?C.seriesOrder.forEach(I=>{const g=C.series[I],A=g.rotationAxisId??i?.id,S=d.findIndex(({axisDirection:j,axisId:v})=>j==="rotation"&&v===A);if(S>=0){const{dataIndex:j}=d[S],v=c[m]?.(g)(j)??"",k=g.data[j]??null,N=g.valueFormatter(k,{dataIndex:j}),w=E.getLabel(g.label,"tooltip")??null;d[S].seriesItems.push({seriesId:I,color:v,value:k,formattedValue:N,formattedLabel:w,markType:g.labelMarkType})}}):[]}),s?d:d.length===0?d[0]:null}function Zt(e){return Qt(t._extends({},e,{multipleAxes:!0}))}function Me(e){const s=ee(e.classes),r=Zt();return r===null?null:t.jsxRuntimeExports.jsx(ne,{sx:e.sx,className:s.paper,children:r.map(({axisId:o,mainAxis:n,axisValue:i,axisFormattedValue:a,seriesItems:u})=>t.jsxRuntimeExports.jsxs(ie,{className:s.table,children:[i!=null&&!n.hideTooltip&&t.jsxRuntimeExports.jsx(t.Typography,{component:"caption",children:a}),t.jsxRuntimeExports.jsx("tbody",{children:u.map(({seriesId:f,color:T,formattedValue:y,formattedLabel:x,markType:h})=>y==null?null:t.jsxRuntimeExports.jsxs(ae,{className:s.row,children:[t.jsxRuntimeExports.jsxs(z,{className:t.clsx(s.labelCell,s.cell),component:"th",children:[t.jsxRuntimeExports.jsx("div",{className:s.markContainer,children:t.jsxRuntimeExports.jsx(Y,{type:h,color:T,className:s.mark})}),x||null]}),t.jsxRuntimeExports.jsx(z,{className:t.clsx(s.valueCell,s.cell),component:"td",children:y})]},f))})]},o))})}process.env.NODE_ENV!=="production"&&(Me.propTypes={classes:t.PropTypes.object,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object])});function Q(e){const{children:s,defer:r=!1,fallback:o=null}=e,[n,i]=R.useState(!1);return t.useEnhancedEffect(()=>{r||i(!0)},[r]),R.useEffect(()=>{r&&i(!0)},[r]),n?s:o}process.env.NODE_ENV!=="production"&&(Q.propTypes={children:t.PropTypes.node,defer:t.PropTypes.bool,fallback:t.PropTypes.node});process.env.NODE_ENV!=="production"&&(Q.propTypes=t.exactProp(Q.propTypes));function Xt(e){let s,r;const o=()=>{r=null,e(...s)};function n(...i){s=i,r||(r=requestAnimationFrame(o))}return n.clear=()=>{r&&(cancelAnimationFrame(r),r=null)},n}function es(){const e=l.useStore(),s=e.use(l.selectorChartRawRotationAxis),r=e.use(l.selectorChartRawXAxis);return s!==void 0?"polar":r!==void 0?"cartesian":"none"}const ts=["trigger","position","anchor","classes","children"],xe=()=>!1,ss=()=>null;function rs(e,s,r){return r?xe:e==="item"?Qe:s==="polar"?Kt:s==="cartesian"?E.selectorChartsInteractionAxisTooltip:xe}const os=t.styled(t.Popper,{name:"MuiChartsTooltip",slot:"Root"})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function Le(e){const s=t.useThemeProps({props:e,name:"MuiChartsTooltipContainer"}),{trigger:r="axis",position:o,anchor:n="pointer",classes:i,children:a}=s,u=t._objectWithoutPropertiesLoose(s,ts),f=l.useStore(),T=E.useSvgRef(),y=R.useRef(null),x=ee(i),h=f.use(E.selectorChartsPointerType),b=Gt(),O=R.useRef(null),p=t.useLazyRef(()=>({x:0,y:0})),c=es(),d=f.use(E.selectorBrushShouldPreventTooltip),m=f.use(rs(r,c,d)),I=f.use(E.selectorChartsLastInteraction)==="keyboard"||h===null?"node":n,g=f.use(r==="item"&&I==="node"?Xe:ss,o),A=g!==null;R.useEffect(()=>{const N=T.current;if(N===null)return()=>{};if(A)return;const w=Xt((D,ze)=>{p.current={x:D,y:ze},O.current?.update()}),_=D=>{w(D.clientX,D.clientY)};return N.addEventListener("pointermove",_),N.addEventListener("pointerenter",_),()=>{N.removeEventListener("pointermove",_),N.removeEventListener("pointerenter",_),w.clear()}},[T,p,A]);const S=R.useMemo(()=>({getBoundingClientRect:()=>({x:p.current.x,y:p.current.y,top:p.current.y,left:p.current.x,right:p.current.x,bottom:p.current.y,width:0,height:0,toJSON:()=>""})}),[p]),j=h==="mouse"||b,v=h==="touch"||!b,k=R.useMemo(()=>[{name:"offset",options:{offset:()=>v&&!A?[0,64]:[0,8]}},...j?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}],{name:"preventOverflow",options:{altAxis:!0}}],[j,A,v]);return r==="none"?null:t.jsxRuntimeExports.jsxs(R.Fragment,{children:[T.current&&Be.createPortal(t.jsxRuntimeExports.jsx("rect",t._extends({ref:y},g,{display:"hidden",pointerEvents:"none",opacity:0,width:1,height:1})),T.current),t.jsxRuntimeExports.jsx(Q,{children:m&&t.jsxRuntimeExports.jsx(os,t._extends({},u,{className:x?.root,open:m,placement:u.placement??o??(!A&&j?"right-start":"top"),popperRef:O,anchorEl:g?y.current:S,modifiers:k,children:a}))})]})}process.env.NODE_ENV!=="production"&&(Le.propTypes={anchor:t.PropTypes.oneOf(["node","pointer"]),anchorEl:t.PropTypes.oneOfType([t.HTMLElementType,t.PropTypes.object,t.PropTypes.func]),children:t.PropTypes.node,classes:t.PropTypes.object,component:t.PropTypes.elementType,components:t.PropTypes.shape({Root:t.PropTypes.elementType}),componentsProps:t.PropTypes.shape({root:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object])}),container:t.PropTypes.oneOfType([(e,s)=>e[s]==null?new Error(`Prop '${s}' is required but wasn't specified`):typeof e[s]!="object"||e[s].nodeType!==1?new Error(`Expected prop '${s}' to be of type Element`):null,t.PropTypes.func]),disablePortal:t.PropTypes.bool,keepMounted:t.PropTypes.bool,modifiers:t.PropTypes.arrayOf(t.PropTypes.shape({data:t.PropTypes.object,effect:t.PropTypes.func,enabled:t.PropTypes.bool,fn:t.PropTypes.func,name:t.PropTypes.any,options:t.PropTypes.object,phase:t.PropTypes.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:t.PropTypes.arrayOf(t.PropTypes.string),requiresIfExists:t.PropTypes.arrayOf(t.PropTypes.string)})),open:t.PropTypes.bool,placement:t.PropTypes.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:t.PropTypes.shape({modifiers:t.PropTypes.array,onFirstUpdate:t.PropTypes.func,placement:t.PropTypes.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:t.PropTypes.oneOf(["absolute","fixed"])}),popperRef:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.shape({current:t.PropTypes.shape({destroy:t.PropTypes.func.isRequired,forceUpdate:t.PropTypes.func.isRequired,setOptions:t.PropTypes.func.isRequired,state:t.PropTypes.shape({attributes:t.PropTypes.object.isRequired,elements:t.PropTypes.object.isRequired,modifiersData:t.PropTypes.object.isRequired,options:t.PropTypes.object.isRequired,orderedModifiers:t.PropTypes.arrayOf(t.PropTypes.object).isRequired,placement:t.PropTypes.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]).isRequired,rects:t.PropTypes.object.isRequired,reset:t.PropTypes.bool.isRequired,scrollParents:t.PropTypes.object.isRequired,strategy:t.PropTypes.oneOf(["absolute","fixed"]).isRequired,styles:t.PropTypes.object.isRequired}).isRequired,update:t.PropTypes.func.isRequired})})]),position:t.PropTypes.oneOf(["bottom","left","right","top"]),slotProps:t.PropTypes.object,slots:t.PropTypes.object,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),transition:t.PropTypes.bool,trigger:t.PropTypes.oneOf(["axis","item","none"])});function qe(e){const{classes:s,trigger:r="axis"}=e,o=ee(s);return t.jsxRuntimeExports.jsx(Le,t._extends({},e,{classes:s,children:r==="axis"?t.jsxRuntimeExports.jsx(Me,{classes:o}):t.jsxRuntimeExports.jsx(Oe,{classes:o})}))}process.env.NODE_ENV!=="production"&&(qe.propTypes={anchor:t.PropTypes.oneOf(["node","pointer"]),anchorEl:t.PropTypes.oneOfType([t.HTMLElementType,t.PropTypes.object,t.PropTypes.func]),classes:t.PropTypes.object,component:t.PropTypes.elementType,components:t.PropTypes.shape({Root:t.PropTypes.elementType}),componentsProps:t.PropTypes.shape({root:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object])}),container:t.PropTypes.oneOfType([(e,s)=>e[s]==null?new Error(`Prop '${s}' is required but wasn't specified`):typeof e[s]!="object"||e[s].nodeType!==1?new Error(`Expected prop '${s}' to be of type Element`):null,t.PropTypes.func]),disablePortal:t.PropTypes.bool,keepMounted:t.PropTypes.bool,modifiers:t.PropTypes.arrayOf(t.PropTypes.shape({data:t.PropTypes.object,effect:t.PropTypes.func,enabled:t.PropTypes.bool,fn:t.PropTypes.func,name:t.PropTypes.any,options:t.PropTypes.object,phase:t.PropTypes.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:t.PropTypes.arrayOf(t.PropTypes.string),requiresIfExists:t.PropTypes.arrayOf(t.PropTypes.string)})),open:t.PropTypes.bool,placement:t.PropTypes.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:t.PropTypes.shape({modifiers:t.PropTypes.array,onFirstUpdate:t.PropTypes.func,placement:t.PropTypes.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:t.PropTypes.oneOf(["absolute","fixed"])}),popperRef:t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.shape({current:t.PropTypes.shape({destroy:t.PropTypes.func.isRequired,forceUpdate:t.PropTypes.func.isRequired,setOptions:t.PropTypes.func.isRequired,state:t.PropTypes.shape({attributes:t.PropTypes.object.isRequired,elements:t.PropTypes.object.isRequired,modifiersData:t.PropTypes.object.isRequired,options:t.PropTypes.object.isRequired,orderedModifiers:t.PropTypes.arrayOf(t.PropTypes.object).isRequired,placement:t.PropTypes.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]).isRequired,rects:t.PropTypes.object.isRequired,reset:t.PropTypes.bool.isRequired,scrollParents:t.PropTypes.object.isRequired,strategy:t.PropTypes.oneOf(["absolute","fixed"]).isRequired,styles:t.PropTypes.object.isRequired}).isRequired,update:t.PropTypes.func.isRequired})})]),position:t.PropTypes.oneOf(["bottom","left","right","top"]),slotProps:t.PropTypes.object,slots:t.PropTypes.object,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),transition:t.PropTypes.bool,trigger:t.PropTypes.oneOf(["axis","item","none"])});const ns=e=>({type:"series",color:e.color,label:e.label,seriesId:e.seriesId,itemId:e.itemId,dataIndex:e.dataIndex});function is(e){return t.generateUtilityClass("MuiChartsLegend",e)}const as=e=>{const{classes:s,direction:r}=e,o={root:["root",r],item:["item"],mark:["mark"],label:["label"],series:["series"],hidden:["hidden"]};return t.composeClasses(o,is,s)},re=t.generateUtilityClasses("MuiChartsLegend",["root","item","series","mark","label","vertical","horizontal","hidden"]),ls=["slots","slotProps"],cs=["ownerState"],De=(e,s,r,o)=>{function n(i,a){const u=t.useThemeProps({props:i,name:e}),f=typeof r.defaultProps=="function"?r.defaultProps(u):r.defaultProps??{},T=t.resolveProps(f,u),y=T,{slots:x,slotProps:h}=y,b=t._objectWithoutPropertiesLoose(y,ls),O=t.useTheme(),p=r.classesResolver?.(T,O),c=x?.[s]??o,d=r.propagateSlots&&!x?.[s],m=t.useSlotProps({elementType:c,externalSlotProps:h?.[s],additionalProps:t._extends({},b,{classes:p},d&&{slots:x,slotProps:h}),ownerState:{}}),C=t._objectWithoutPropertiesLoose(m,cs),I=t._extends({},C);for(const g of r.omitProps??[])delete I[g];return process.env.NODE_ENV!=="production"&&(c.displayName=`${e}.slots.${s}`),t.jsxRuntimeExports.jsx(c,t._extends({},I,{ref:a}))}return R.forwardRef(n)};process.env.NODE_ENV!=="production"&&(De.displayName="consumeSlots");function ps(e){return t.generateUtilityClass("MuiChartsLabel",e)}t.generateUtilityClasses("MuiChartsLabel",["root"]);const us=e=>{const s={root:["root"]};return t.composeClasses(s,ps,e.classes)},ds=["children","className","classes"],$e=ue("MuiChartsLabel",{classesResolver:us},function(s,r){const{children:o,className:n,classes:i}=s,a=t._objectWithoutPropertiesLoose(s,ds);return t.jsxRuntimeExports.jsx("span",t._extends({className:t.clsx(i?.root,n),ref:r},a,{children:o}))});process.env.NODE_ENV!=="production"&&($e.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object});const fs=["direction","onItemClick","className","classes","toggleVisibilityOnClick"],hs=t.styled("ul",{name:"MuiChartsLegend",slot:"Root"})(({ownerState:e,theme:s})=>t._extends({},s.typography.caption,{color:(s.vars||s).palette.text.primary,lineHeight:"100%",display:"flex",flexDirection:e.direction==="vertical"?"column":"row",alignItems:e.direction==="vertical"?void 0:"center",flexShrink:0,gap:s.spacing(2),listStyleType:"none",paddingInlineStart:0,marginBlock:s.spacing(1),marginInline:s.spacing(1),flexWrap:"wrap",li:{display:e.direction==="horizontal"?"inline-flex":void 0},[`button.${re.series}`]:{background:"none",border:"none",padding:0,fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",letterSpacing:"inherit",color:"inherit"},[`& .${re.series}`]:{display:e.direction==="vertical"?"flex":"inline-flex",alignItems:"center",gap:s.spacing(1),cursor:e.onItemClick||e.toggleVisibilityOnClick?"pointer":"default",[`&.${re.hidden}`]:{opacity:.5}},gridArea:"legend"})),de=De("MuiChartsLegend","legend",{defaultProps:{direction:"horizontal"},omitProps:["position"],classesResolver:as},R.forwardRef(function(s,r){const o=gt(),{instance:n}=l.useChartContext(),i=l.useStore(),a=i.use(l.selectorChartSeriesConfig),u=i.use(l.selectorIsItemVisibleGetter),{onItemClick:f,className:T,classes:y,toggleVisibilityOnClick:x}=s,h=t._objectWithoutPropertiesLoose(s,fs),b=!!(f||x),O=b?"button":"div",p=t.useEventCallback((c,d)=>m=>{f&&c&&f(m,ns(c),d),x&&n.toggleItemVisibility({type:c.type,seriesId:c.seriesId,dataIndex:c.dataIndex})});return o.items.length===0?null:t.jsxRuntimeExports.jsx(hs,t._extends({className:t.clsx(y?.root,T),ref:r},h,{ownerState:s,children:o.items.map((c,d)=>{const m=u(a,{type:c.type,seriesId:c.seriesId,dataIndex:c.dataIndex});return t.jsxRuntimeExports.jsx("li",{className:y?.item,"data-series":c.seriesId,"data-index":c.dataIndex,children:t.jsxRuntimeExports.jsxs(O,{className:t.clsx(y?.series,!m&&y?.hidden),role:b?"button":void 0,type:b?"button":void 0,onClick:b?p(c,d):void 0,children:[t.jsxRuntimeExports.jsx(Y,{className:y?.mark,color:c.color,type:c.markType}),t.jsxRuntimeExports.jsx($e,{className:y?.label,children:c.label})]})},`${c.seriesId}-${c.dataIndex}`)})}))}));process.env.NODE_ENV!=="production"&&(de.displayName="ChartsLegend");process.env.NODE_ENV!=="production"&&(de.propTypes={classes:t.PropTypes.object,className:t.PropTypes.string,direction:t.PropTypes.oneOf(["horizontal","vertical"]),onItemClick:t.PropTypes.func,slotProps:t.PropTypes.object,slots:t.PropTypes.object,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object]),toggleVisibilityOnClick:t.PropTypes.bool});const ys=["message"],xs=t.styled("text",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>t._extends({},e.typography.body2,{stroke:"none",fill:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function ms(e){const{message:s}=e,r=t._objectWithoutPropertiesLoose(e,ys),{top:o,left:n,height:i,width:a}=l.useDrawingArea(),{localeText:u}=Ee();return t.jsxRuntimeExports.jsx(xs,t._extends({x:n+a/2,y:o+i/2},r,{children:s??u.loading}))}const Ts=["message"],gs=t.styled("text",{slot:"internal",shouldForwardProp:void 0})(({theme:e})=>t._extends({},e.typography.body2,{stroke:"none",fill:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function Ps(e){const{message:s}=e,r=t._objectWithoutPropertiesLoose(e,Ts),{top:o,left:n,height:i,width:a}=l.useDrawingArea(),{localeText:u}=Ee();return t.jsxRuntimeExports.jsx(gs,t._extends({x:n+a/2,y:o+i/2},r,{children:s??u.noData}))}function Cs(){const e=Z();return Object.values(e).every(s=>{if(!s)return!0;const{series:r,seriesOrder:o}=s;return o.every(n=>{const i=r[n];return i.type==="sankey"?i.data.links.length===0:i.data.length===0})})}function bs(e){const s=Cs();if(e.loading){const r=e.slots?.loadingOverlay??ms;return t.jsxRuntimeExports.jsx(r,t._extends({},e.slotProps?.loadingOverlay))}if(s){const r=e.slots?.noDataOverlay??Ps;return t.jsxRuntimeExports.jsx(r,t._extends({},e.slotProps?.noDataOverlay))}return null}const me=t.generateUtilityClasses("MuiChartsToolbar",["root"]),Is=e=>e?.horizontal==="start"?"start":e?.horizontal==="end"?"end":"center",Rs=e=>e?.vertical==="top"?"flex-start":e?.vertical==="bottom"?"flex-end":"center",js=(e,s,r)=>e?'"chart"':s==="vertical"?r?.horizontal==="start"?'"legend chart"':'"chart legend"':r?.vertical==="bottom"?`"chart"
|
|
3
|
-
"legend"`:`"legend"
|
|
4
|
-
"chart"`,vs=(e=!1,s="horizontal",r="end",o=void 0)=>{const n=o?"auto":"1fr";return s==="horizontal"||e?n:r==="start"?`auto ${n}`:`${n} auto`},Es=(e=!1,s="horizontal",r="top")=>s==="vertical"||e?"1fr":r==="bottom"?"1fr auto":"auto 1fr",Os=t.styled("div",{name:"MuiChartsWrapper",slot:"Root",shouldForwardProp:e=>t.shouldForwardProp(e)&&e!=="extendVertically"&&e!=="width"})(({ownerState:e,width:s})=>{const r=vs(e.hideLegend,e.legendDirection,e.legendPosition?.horizontal,s),o=Es(e.hideLegend,e.legendDirection,e.legendPosition?.vertical),n=js(e.hideLegend,e.legendDirection,e.legendPosition);return{variants:[{props:{extendVertically:!0},style:{height:"100%",minHeight:0}}],flex:1,display:"grid",gridTemplateColumns:r,gridTemplateRows:o,gridTemplateAreas:n,[`&:has(.${me.root})`]:{gridTemplateRows:`auto ${o}`,gridTemplateAreas:`"${r.split(" ").map(()=>"toolbar").join(" ")}"
|
|
5
|
-
${n}`},[`& .${me.root}`]:{gridArea:"toolbar",justifySelf:"center"},justifyContent:"safe center",justifyItems:Is(e.legendPosition),alignItems:Rs(e.legendPosition)}});function Fe(e){const{children:s,sx:r,extendVertically:o}=e,n=_t(),i=l.useStore(),a=i.use(l.selectorChartPropsWidth),u=i.use(l.selectorChartPropsHeight);return t.jsxRuntimeExports.jsx(Os,{ref:n,ownerState:e,sx:r,extendVertically:o??u===void 0,width:a,children:s})}process.env.NODE_ENV!=="production"&&(Fe.propTypes={children:t.PropTypes.node,extendVertically:t.PropTypes.bool,hideLegend:t.PropTypes.bool,legendDirection:t.PropTypes.oneOf(["horizontal","vertical"]),legendPosition:t.PropTypes.shape({horizontal:t.PropTypes.oneOf(["center","end","start"]),vertical:t.PropTypes.oneOf(["bottom","middle","top"])}),sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object])});exports.ANIMATION_DURATION_MS=Ie;exports.ANIMATION_TIMING_FUNCTION=It;exports.ChartsLegend=de;exports.ChartsOverlay=bs;exports.ChartsTooltip=qe;exports.ChartsWrapper=Fe;exports.selectorChartIsSeriesFaded=ft;exports.selectorChartIsSeriesHighlighted=dt;exports.selectorChartSeriesHighlightedItem=yt;exports.selectorChartSeriesUnfadedItem=ht;exports.selectorChartsIsFadedCallback=pt;exports.selectorChartsIsHighlightedCallback=ct;exports.useAllSeriesOfType=st;exports.useAnimate=wt;exports.useFocusedItem=Mt;exports.useInteractionItemProps=Dt;exports.useItemHighlighted=mt;exports.useSkipAnimation=Lt;
|