@astrato-io/visualizations 0.8.0 → 0.10.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 +9 -5
- package/THIRD_PARTY_NOTICES.md +403 -325
- package/VISUALIZATION_DEFINITIONS.md +319 -32
- package/chunks/{Button-BrGKp9Nm.js → Button-CCF851ea.js} +10 -10
- package/chunks/CircularProgress-yupH6YWs.js +765 -0
- package/chunks/FieldTypeIcon-D_MzsdfY.js +22 -0
- package/chunks/LinearProgress-CyFjN4px.js +327 -0
- package/chunks/{MenuOption-ByRqhRdX.js → MenuOption-CQpT79AP.js} +1391 -1008
- package/chunks/Title-C-p4ZarD.js +1804 -0
- package/chunks/_createAggregator-BF4qG9XK.js +50 -0
- package/chunks/{app-filter-bar.compiler-TwVTeoj5.js → app-filter-bar.compiler-8fxCo2q7.js} +10 -10
- package/chunks/bar-layout-DStC-GNV.js +9 -0
- package/chunks/{bar.compiler-DuQg8EUb.js → bar.compiler-CQAu8KL8.js} +102 -84
- package/chunks/{builder-DEDvNq1k.js → builder-CScg1TOS.js} +156 -60
- package/chunks/color-rules-DYJL4fIW.js +15 -0
- package/chunks/color-settings-DJFoFTip.js +5 -0
- package/chunks/{coloring-CncX_JRX.js → coloring-9jU3s_-p.js} +41 -41
- package/chunks/contains-BK-sRXcB.js +21 -0
- package/chunks/createSimplePaletteValueFilter-C4hZpCdn.js +2005 -0
- package/chunks/defaults-cyNhn37t.js +3 -0
- package/chunks/{definitions-BPJQTx16.js → definitions-C4grxhye.js} +612 -400
- package/chunks/{escobar-DRhRMYRE.js → escobar-CjirINHP.js} +5354 -5473
- package/chunks/{extend-preset-CUFNpmPe.js → extend-preset-D-l9u_we.js} +974 -909
- package/chunks/{filter.compiler-w27dlv0C.js → filter.compiler-lji2Acgn.js} +7 -7
- package/chunks/{filtering-cc7WqWpg.js → filtering-C1zakrrX.js} +570 -390
- package/chunks/handlers-ZviIUC-j.js +15387 -0
- package/chunks/{icon-picker-styles-CoJmwTRi.js → icon-picker-styles-Bj80ZUBK.js} +11 -11
- package/chunks/isEqual-Ch9OEye3.js +16 -0
- package/chunks/isFocusVisible-CgMP0qkR.js +144 -0
- package/chunks/label-format-type-C46pzgx7.js +17 -0
- package/chunks/{line.compiler-Ct1WhN2p.js → line.compiler-De5fiKuR.js} +6 -6
- package/chunks/{logger-DpQtYQnX.js → logger-CKRjhSHQ.js} +77 -66
- package/chunks/map.compiler-CKzorLgK.js +345 -0
- package/chunks/{metadata-WABZrt7Y.js → metadata-Bb9pTXrq.js} +1 -1
- package/chunks/{number.compiler-D8TPly-4.js → number.compiler-CaTmJkmi.js} +4 -4
- package/chunks/operations-DZoY50VX.js +31297 -0
- package/chunks/{range-Bi-7zT0k.js → range-D1BTmFMp.js} +2 -2
- package/chunks/react-dom-Dgv2azN2.js +368 -0
- package/chunks/{render-wrappers-OEmtaM8g.js → render-wrappers-_P3xwu5A.js} +1 -1
- package/chunks/{requirements-Dvd8jqYF.js → requirements-NHNrR8Ie.js} +55 -53
- package/chunks/responsive.styles-FItb913l.js +93 -0
- package/chunks/shared-UitWpq1J.js +1331 -0
- package/chunks/standalone-B0U6c3su.js +3638 -0
- package/chunks/{standalone-we5D5MIn.js → standalone-BBu90BhK.js} +113 -113
- package/chunks/standalone-BEekPuA12.js +357 -0
- package/chunks/{standalone-BMTCb10X.js → standalone-BOzHA_d4.js} +41 -41
- package/chunks/standalone-BR2JuRIC.js +422 -0
- package/chunks/{standalone-BGkmozIb.js → standalone-BapqaniK.js} +619 -619
- package/chunks/standalone-Bnnr87pc.js +2009 -0
- package/chunks/standalone-BwJqDj2Z.js +396 -0
- package/chunks/{standalone-BDhPQtzQ.js → standalone-ByKKqT5L.js} +308 -300
- package/chunks/{standalone-vBnBS2YC.js → standalone-CRdDZYeM.js} +1788 -1004
- package/chunks/standalone-CRfDOO1x.js +287 -0
- package/chunks/{standalone-D5Q5ngsD.js → standalone-CVknVdUC.js} +30 -27
- package/chunks/standalone-CbPk8bKn.js +580 -0
- package/chunks/{standalone-CJvIXsQE.js → standalone-Ck63MZzj.js} +234 -232
- package/chunks/{standalone-CM5XcAN5.js → standalone-DCFY1MAV.js} +8075 -7729
- package/chunks/{standalone-DW6NT205.js → standalone-DZDGX3aa.js} +168 -168
- package/chunks/standalone-DhfgeJIk.js +1012 -0
- package/chunks/{standalone-DT0wKji7.js → standalone-DibjA73M.js} +2 -2
- package/chunks/{standalone-XuGksArp.js → standalone-DtBk_iUz.js} +9 -8
- package/chunks/standalone-DxBAyqAu.js +772 -0
- package/chunks/standalone-KMQPsNsq.js +2 -0
- package/chunks/standalone-MBLSvsrY.js +2 -0
- package/chunks/standalone-U0WJwFlG.js +354 -0
- package/chunks/{standalone-C8ZAEutO.js → standalone-swGs70tD.js} +49 -51
- package/chunks/standalone-wgFAVnnm.js +355 -0
- package/chunks/standalone-xGV0dqPV.js +689 -0
- package/chunks/{table.compiler-DMeeHxb6.js → table.compiler-OWSx5MOq.js} +7 -7
- package/chunks/{typeof-CJDtcySz.js → typeof-DCq3QgvY.js} +6 -1
- package/chunks/useFieldName-B8iCYyw1.js +7 -0
- package/chunks/{utils-vdmi_2PK.js → utils-3Igg6xmO.js} +7668 -12779
- package/chunks/{view-BuwQugKb.js → view-DdMLZySj.js} +2430 -2110
- package/chunks/{visualization-filters-Cc4KU-l-.js → visualization-filters-CzvFHE6M.js} +5205 -4438
- package/chunks/with-html-element-DOfkR3C1.js +16094 -0
- package/definitions.js +2 -2
- package/docs/operations/astrato-app-filter-bar.md +1 -1
- package/docs/operations/bar.md +303 -2
- package/docs/operations/combo.md +262 -1
- package/docs/operations/date-picker.md +1 -1
- package/docs/operations/distribution-gauge.md +1 -1
- package/docs/operations/dot.md +148 -1
- package/docs/operations/filter.md +1 -1
- package/docs/operations/gauge.md +1 -1
- package/docs/operations/heatMap.md +1 -1
- package/docs/operations/histogram.md +262 -1
- package/docs/operations/iframe.md +1 -1
- package/docs/operations/image.md +1 -1
- package/docs/operations/index.md +8 -8
- package/docs/operations/line.md +262 -1
- package/docs/operations/number.md +1 -1
- package/docs/operations/pie.md +1 -1
- package/docs/operations/radar.md +1 -1
- package/docs/operations/sankey.md +1 -1
- package/docs/operations/scatter.md +148 -1
- package/docs/operations/shape.md +1 -1
- package/docs/operations/simpleTextObject.md +1 -1
- package/docs/operations/slider.md +1 -1
- package/docs/operations/table.md +439 -157
- package/docs/operations/tree.md +1 -1
- package/docs/operations/treemap.md +1 -1
- package/docs/operations/waterfall.md +1 -1
- package/docs/operations/word-cloud.md +1 -1
- package/getters.js +2 -2
- package/index.js +523 -469
- package/metadata.js +2 -2
- package/operations.js +5 -5
- package/package.json +74 -68
- package/src/definitions/index.d.ts +1 -1
- package/src/definitions/model/definitions/available-fields.d.ts +2 -2
- package/src/definitions/model/definitions/compilers/compile.d.ts +1 -0
- package/src/definitions/model/definitions/data-item-resolution.d.ts +3 -3
- package/src/definitions/model/definitions/descriptors/descriptor-metadata.d.ts +535 -349
- package/src/definitions/model/definitions/index.d.ts +2 -1
- package/src/definitions/model/definitions/schema-registry.d.ts +406 -101
- package/src/definitions/model/definitions/schemas/bar.schema.d.ts +10 -8
- package/src/definitions/model/definitions/schemas/common.schema.d.ts +33 -32
- package/src/definitions/model/definitions/schemas/index.d.ts +1 -0
- package/src/definitions/model/definitions/schemas/line.schema.d.ts +10 -10
- package/src/definitions/model/definitions/schemas/map.schema.d.ts +590 -0
- package/src/definitions/model/definitions/schemas/number.schema.d.ts +4 -4
- package/src/definitions/model/definitions/schemas/object.schema.d.ts +38 -38
- package/src/definitions/model/definitions/schemas/table.schema.d.ts +61 -61
- package/src/definitions/model/definitions/types/compilation.types.d.ts +7 -2
- package/src/definitions/model/definitions/types/definition.types.d.ts +2 -2
- package/src/definitions/model/definitions/types/index.d.ts +1 -1
- package/src/index.d.ts +1 -1
- package/src/operations/index.d.ts +1 -1
- package/src/types.d.ts +45 -41
- package/src/visualization-catalog.d.ts +26 -26
- package/chunks/DefaultPropsProvider-BsfB7QTn.js +0 -257
- package/chunks/FieldTypeIcon-Drs6hSJF.js +0 -22
- package/chunks/LinearProgress-VtfFx2vJ.js +0 -253
- package/chunks/Title-CO5dP1ma.js +0 -1691
- package/chunks/ToggleButton-KOBAimC1.js +0 -112
- package/chunks/color-rules-CN7TcGrC.js +0 -6
- package/chunks/color-settings-3VRlf_Vw.js +0 -6
- package/chunks/colorManipulator-D8Pjy1pf.js +0 -45
- package/chunks/handlers-TOT-7INo.js +0 -12871
- package/chunks/isEqual-B8loyPsC.js +0 -12
- package/chunks/label-format-type-weq1XfcX.js +0 -8
- package/chunks/operations-Dh4v1Ovt.js +0 -26280
- package/chunks/responsive.styles-DSiOGD7u.js +0 -82
- package/chunks/shared-Bn4N5QcZ.js +0 -1218
- package/chunks/standalone-B55oyW6c.js +0 -689
- package/chunks/standalone-BXKRE_Se.js +0 -468
- package/chunks/standalone-Bes8srx1.js +0 -354
- package/chunks/standalone-BjZp0QMe.js +0 -2
- package/chunks/standalone-BlMIwpEe.js +0 -1877
- package/chunks/standalone-C8qAelL4.js +0 -2
- package/chunks/standalone-CLmGb7nn2.js +0 -355
- package/chunks/standalone-CXNP6-xD.js +0 -420
- package/chunks/standalone-DLlyRIE6.js +0 -287
- package/chunks/standalone-DMcI1afI.js +0 -396
- package/chunks/standalone-DN4S1MjT.js +0 -3874
- package/chunks/standalone-DYQIQH4c.js +0 -2095
- package/chunks/standalone-D__XCp-h.js +0 -1003
- package/chunks/standalone-XTgSsTAa.js +0 -354
- package/chunks/useFieldName-Cjn9KCVp.js +0 -7
- package/chunks/useSlotProps-DLbQp4lc.js +0 -166
- package/chunks/with-html-element-D0uY2zjI.js +0 -7328
|
@@ -0,0 +1,2005 @@
|
|
|
1
|
+
import { o as e } from "./rolldown-runtime-DleVn1XH.js";
|
|
2
|
+
import { Ct as t, Ot as n, Tt as r, Vt as i, _t as a, ci as o, dn as s, dt as c, fn as l, gt as u, ht as d, kt as f, ln as p, pn as m, rt as h, tt as g, un as _, vt as v, zr as y } from "./utils-3Igg6xmO.js";
|
|
3
|
+
var b = /* @__PURE__ */ e(o());
|
|
4
|
+
y(), f();
|
|
5
|
+
var x = {
|
|
6
|
+
black: "#000",
|
|
7
|
+
white: "#fff"
|
|
8
|
+
}, S = {
|
|
9
|
+
50: "#ffebee",
|
|
10
|
+
100: "#ffcdd2",
|
|
11
|
+
200: "#ef9a9a",
|
|
12
|
+
300: "#e57373",
|
|
13
|
+
400: "#ef5350",
|
|
14
|
+
500: "#f44336",
|
|
15
|
+
600: "#e53935",
|
|
16
|
+
700: "#d32f2f",
|
|
17
|
+
800: "#c62828",
|
|
18
|
+
900: "#b71c1c",
|
|
19
|
+
A100: "#ff8a80",
|
|
20
|
+
A200: "#ff5252",
|
|
21
|
+
A400: "#ff1744",
|
|
22
|
+
A700: "#d50000"
|
|
23
|
+
}, C = {
|
|
24
|
+
50: "#f3e5f5",
|
|
25
|
+
100: "#e1bee7",
|
|
26
|
+
200: "#ce93d8",
|
|
27
|
+
300: "#ba68c8",
|
|
28
|
+
400: "#ab47bc",
|
|
29
|
+
500: "#9c27b0",
|
|
30
|
+
600: "#8e24aa",
|
|
31
|
+
700: "#7b1fa2",
|
|
32
|
+
800: "#6a1b9a",
|
|
33
|
+
900: "#4a148c",
|
|
34
|
+
A100: "#ea80fc",
|
|
35
|
+
A200: "#e040fb",
|
|
36
|
+
A400: "#d500f9",
|
|
37
|
+
A700: "#aa00ff"
|
|
38
|
+
}, w = {
|
|
39
|
+
50: "#e3f2fd",
|
|
40
|
+
100: "#bbdefb",
|
|
41
|
+
200: "#90caf9",
|
|
42
|
+
300: "#64b5f6",
|
|
43
|
+
400: "#42a5f5",
|
|
44
|
+
500: "#2196f3",
|
|
45
|
+
600: "#1e88e5",
|
|
46
|
+
700: "#1976d2",
|
|
47
|
+
800: "#1565c0",
|
|
48
|
+
900: "#0d47a1",
|
|
49
|
+
A100: "#82b1ff",
|
|
50
|
+
A200: "#448aff",
|
|
51
|
+
A400: "#2979ff",
|
|
52
|
+
A700: "#2962ff"
|
|
53
|
+
}, T = {
|
|
54
|
+
50: "#e1f5fe",
|
|
55
|
+
100: "#b3e5fc",
|
|
56
|
+
200: "#81d4fa",
|
|
57
|
+
300: "#4fc3f7",
|
|
58
|
+
400: "#29b6f6",
|
|
59
|
+
500: "#03a9f4",
|
|
60
|
+
600: "#039be5",
|
|
61
|
+
700: "#0288d1",
|
|
62
|
+
800: "#0277bd",
|
|
63
|
+
900: "#01579b",
|
|
64
|
+
A100: "#80d8ff",
|
|
65
|
+
A200: "#40c4ff",
|
|
66
|
+
A400: "#00b0ff",
|
|
67
|
+
A700: "#0091ea"
|
|
68
|
+
}, E = {
|
|
69
|
+
50: "#e8f5e9",
|
|
70
|
+
100: "#c8e6c9",
|
|
71
|
+
200: "#a5d6a7",
|
|
72
|
+
300: "#81c784",
|
|
73
|
+
400: "#66bb6a",
|
|
74
|
+
500: "#4caf50",
|
|
75
|
+
600: "#43a047",
|
|
76
|
+
700: "#388e3c",
|
|
77
|
+
800: "#2e7d32",
|
|
78
|
+
900: "#1b5e20",
|
|
79
|
+
A100: "#b9f6ca",
|
|
80
|
+
A200: "#69f0ae",
|
|
81
|
+
A400: "#00e676",
|
|
82
|
+
A700: "#00c853"
|
|
83
|
+
}, D = {
|
|
84
|
+
50: "#fff3e0",
|
|
85
|
+
100: "#ffe0b2",
|
|
86
|
+
200: "#ffcc80",
|
|
87
|
+
300: "#ffb74d",
|
|
88
|
+
400: "#ffa726",
|
|
89
|
+
500: "#ff9800",
|
|
90
|
+
600: "#fb8c00",
|
|
91
|
+
700: "#f57c00",
|
|
92
|
+
800: "#ef6c00",
|
|
93
|
+
900: "#e65100",
|
|
94
|
+
A100: "#ffd180",
|
|
95
|
+
A200: "#ffab40",
|
|
96
|
+
A400: "#ff9100",
|
|
97
|
+
A700: "#ff6d00"
|
|
98
|
+
}, ee = {
|
|
99
|
+
50: "#fafafa",
|
|
100
|
+
100: "#f5f5f5",
|
|
101
|
+
200: "#eeeeee",
|
|
102
|
+
300: "#e0e0e0",
|
|
103
|
+
400: "#bdbdbd",
|
|
104
|
+
500: "#9e9e9e",
|
|
105
|
+
600: "#757575",
|
|
106
|
+
700: "#616161",
|
|
107
|
+
800: "#424242",
|
|
108
|
+
900: "#212121",
|
|
109
|
+
A100: "#f5f5f5",
|
|
110
|
+
A200: "#eeeeee",
|
|
111
|
+
A400: "#bdbdbd",
|
|
112
|
+
A700: "#616161"
|
|
113
|
+
}, te = "$$material", ne = /* #__PURE__ */ b.createContext(typeof HTMLElement < "u" ? /* #__PURE__ */ m({ key: "css" }) : null);
|
|
114
|
+
ne.Provider;
|
|
115
|
+
var re = function(e) {
|
|
116
|
+
return /*#__PURE__*/ (0, b.forwardRef)(function(t, n) {
|
|
117
|
+
return e(t, (0, b.useContext)(ne), n);
|
|
118
|
+
});
|
|
119
|
+
}, ie = /* #__PURE__ */ b.createContext({}), ae = {}.hasOwnProperty, oe = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__", se = function(e, t) {
|
|
120
|
+
var n = {};
|
|
121
|
+
for (var r in t) ae.call(t, r) && (n[r] = t[r]);
|
|
122
|
+
return n[oe] = e, n;
|
|
123
|
+
}, ce = function(e) {
|
|
124
|
+
var t = e.cache, r = e.serialized, i = e.isStringTag;
|
|
125
|
+
return s(t, r, i), n(function() {
|
|
126
|
+
return _(t, r, i);
|
|
127
|
+
}), null;
|
|
128
|
+
}, le = /* @__PURE__ */ re(function(e, t, n) {
|
|
129
|
+
var r = e.css;
|
|
130
|
+
typeof r == "string" && t.registered[r] !== void 0 && (r = t.registered[r]);
|
|
131
|
+
var i = e[oe], a = [r], o = "";
|
|
132
|
+
typeof e.className == "string" ? o = p(t.registered, a, e.className) : e.className != null && (o = e.className + " ");
|
|
133
|
+
var s = l(a, void 0, b.useContext(ie));
|
|
134
|
+
o += t.key + "-" + s.name;
|
|
135
|
+
var c = {};
|
|
136
|
+
for (var u in e) ae.call(e, u) && u !== "css" && u !== oe && (c[u] = e[u]);
|
|
137
|
+
return c.className = o, n && (c.ref = n), /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(ce, {
|
|
138
|
+
cache: t,
|
|
139
|
+
serialized: s,
|
|
140
|
+
isStringTag: typeof i == "string"
|
|
141
|
+
}), /*#__PURE__*/ b.createElement(i, c));
|
|
142
|
+
}), ue = function(e, t) {
|
|
143
|
+
var n = arguments;
|
|
144
|
+
if (t == null || !ae.call(t, "css")) return b.createElement.apply(void 0, n);
|
|
145
|
+
var r = n.length, i = Array(r);
|
|
146
|
+
i[0] = le, i[1] = se(e, t);
|
|
147
|
+
for (var a = 2; a < r; a++) i[a] = n[a];
|
|
148
|
+
return b.createElement.apply(null, i);
|
|
149
|
+
};
|
|
150
|
+
(function(e) {
|
|
151
|
+
var t;
|
|
152
|
+
t ||= e.JSX ||= {};
|
|
153
|
+
})(ue ||= {});
|
|
154
|
+
function de() {
|
|
155
|
+
return l([...arguments]);
|
|
156
|
+
}
|
|
157
|
+
function fe() {
|
|
158
|
+
var e = de.apply(void 0, arguments), t = "animation-" + e.name;
|
|
159
|
+
return {
|
|
160
|
+
name: t,
|
|
161
|
+
styles: "@keyframes " + t + "{" + e.styles + "}",
|
|
162
|
+
anim: 1,
|
|
163
|
+
toString: function() {
|
|
164
|
+
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
var pe = t, me = function(e) {
|
|
169
|
+
return e !== "theme";
|
|
170
|
+
}, he = function(e) {
|
|
171
|
+
return typeof e == "string" && e.charCodeAt(0) > 96 ? pe : me;
|
|
172
|
+
}, ge = function(e, t, n) {
|
|
173
|
+
var r;
|
|
174
|
+
if (t) {
|
|
175
|
+
var i = t.shouldForwardProp;
|
|
176
|
+
r = e.__emotion_forwardProp && i ? function(t) {
|
|
177
|
+
return e.__emotion_forwardProp(t) && i(t);
|
|
178
|
+
} : i;
|
|
179
|
+
}
|
|
180
|
+
return typeof r != "function" && n && (r = e.__emotion_forwardProp), r;
|
|
181
|
+
}, _e = function(e) {
|
|
182
|
+
var t = e.cache, r = e.serialized, i = e.isStringTag;
|
|
183
|
+
return s(t, r, i), n(function() {
|
|
184
|
+
return _(t, r, i);
|
|
185
|
+
}), null;
|
|
186
|
+
}, ve = function e(t, n) {
|
|
187
|
+
var r = t.__emotion_real === t, a = r && t.__emotion_base || t, o, s;
|
|
188
|
+
n !== void 0 && (o = n.label, s = n.target);
|
|
189
|
+
var c = ge(t, n, r), u = c || he(a), d = !u("as");
|
|
190
|
+
return function() {
|
|
191
|
+
var f = arguments, m = r && t.__emotion_styles !== void 0 ? t.__emotion_styles.slice(0) : [];
|
|
192
|
+
if (o !== void 0 && m.push("label:" + o + ";"), f[0] == null || f[0].raw === void 0) m.push.apply(m, f);
|
|
193
|
+
else {
|
|
194
|
+
var h = f[0];
|
|
195
|
+
m.push(h[0]);
|
|
196
|
+
for (var g = f.length, _ = 1; _ < g; _++) m.push(f[_], h[_]);
|
|
197
|
+
}
|
|
198
|
+
var v = re(function(e, t, n) {
|
|
199
|
+
var r = d && e.as || a, i = "", o = [], f = e;
|
|
200
|
+
if (e.theme == null) {
|
|
201
|
+
for (var h in f = {}, e) f[h] = e[h];
|
|
202
|
+
f.theme = b.useContext(ie);
|
|
203
|
+
}
|
|
204
|
+
typeof e.className == "string" ? i = p(t.registered, o, e.className) : e.className != null && (i = e.className + " ");
|
|
205
|
+
var g = l(m.concat(o), t.registered, f);
|
|
206
|
+
i += t.key + "-" + g.name, s !== void 0 && (i += " " + s);
|
|
207
|
+
var _ = d && c === void 0 ? he(r) : u, v = {};
|
|
208
|
+
for (var y in e) d && y === "as" || _(y) && (v[y] = e[y]);
|
|
209
|
+
return v.className = i, n && (v.ref = n), /*#__PURE__*/ b.createElement(b.Fragment, null, /*#__PURE__*/ b.createElement(_e, {
|
|
210
|
+
cache: t,
|
|
211
|
+
serialized: g,
|
|
212
|
+
isStringTag: typeof r == "string"
|
|
213
|
+
}), /*#__PURE__*/ b.createElement(r, v));
|
|
214
|
+
});
|
|
215
|
+
return v.displayName = o === void 0 ? "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")" : o, v.defaultProps = t.defaultProps, v.__emotion_real = v, v.__emotion_base = a, v.__emotion_styles = m, v.__emotion_forwardProp = c, Object.defineProperty(v, "toString", { value: function() {
|
|
216
|
+
return "." + s;
|
|
217
|
+
} }), v.withComponent = function(t, r) {
|
|
218
|
+
return e(t, i({}, n, r, { shouldForwardProp: ge(v, r, !0) })).apply(void 0, m);
|
|
219
|
+
}, v;
|
|
220
|
+
};
|
|
221
|
+
}, ye = /* @__PURE__ */ "a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan".split("."), be = ve.bind(null);
|
|
222
|
+
ye.forEach(function(e) {
|
|
223
|
+
be[e] = be(e);
|
|
224
|
+
});
|
|
225
|
+
function xe(e, t) {
|
|
226
|
+
return be(e, t);
|
|
227
|
+
}
|
|
228
|
+
function Se(e, t) {
|
|
229
|
+
Array.isArray(e.__emotion_styles) && (e.__emotion_styles = t(e.__emotion_styles));
|
|
230
|
+
}
|
|
231
|
+
var Ce = [];
|
|
232
|
+
function O(e) {
|
|
233
|
+
return Ce[0] = e, l(Ce);
|
|
234
|
+
}
|
|
235
|
+
var we = (e) => {
|
|
236
|
+
let t = Object.keys(e).map((t) => ({
|
|
237
|
+
key: t,
|
|
238
|
+
val: e[t]
|
|
239
|
+
})) || [];
|
|
240
|
+
return t.sort((e, t) => e.val - t.val), t.reduce((e, t) => ({
|
|
241
|
+
...e,
|
|
242
|
+
[t.key]: t.val
|
|
243
|
+
}), {});
|
|
244
|
+
};
|
|
245
|
+
function Te(e) {
|
|
246
|
+
let { values: t = {
|
|
247
|
+
xs: 0,
|
|
248
|
+
sm: 600,
|
|
249
|
+
md: 900,
|
|
250
|
+
lg: 1200,
|
|
251
|
+
xl: 1536
|
|
252
|
+
}, unit: n = "px", step: r = 5, ...i } = e, a = we(t), o = Object.keys(a);
|
|
253
|
+
function s(e) {
|
|
254
|
+
return `@media (min-width:${typeof t[e] == "number" ? t[e] : e}${n})`;
|
|
255
|
+
}
|
|
256
|
+
function c(e) {
|
|
257
|
+
return `@media (max-width:${(typeof t[e] == "number" ? t[e] : e) - r / 100}${n})`;
|
|
258
|
+
}
|
|
259
|
+
function l(e, i) {
|
|
260
|
+
let a = o.indexOf(i);
|
|
261
|
+
return `@media (min-width:${typeof t[e] == "number" ? t[e] : e}${n}) and (max-width:${(a !== -1 && typeof t[o[a]] == "number" ? t[o[a]] : i) - r / 100}${n})`;
|
|
262
|
+
}
|
|
263
|
+
function u(e) {
|
|
264
|
+
return o.indexOf(e) + 1 < o.length ? l(e, o[o.indexOf(e) + 1]) : s(e);
|
|
265
|
+
}
|
|
266
|
+
function d(e) {
|
|
267
|
+
let t = o.indexOf(e);
|
|
268
|
+
return t === 0 ? s(o[1]) : t === o.length - 1 ? c(o[t]) : l(e, o[o.indexOf(e) + 1]).replace("@media", "@media not all and");
|
|
269
|
+
}
|
|
270
|
+
let f = [];
|
|
271
|
+
for (let e = 0; e < o.length; e += 1) f.push(s(o[e]));
|
|
272
|
+
return {
|
|
273
|
+
keys: o,
|
|
274
|
+
values: a,
|
|
275
|
+
up: s,
|
|
276
|
+
down: c,
|
|
277
|
+
between: l,
|
|
278
|
+
only: u,
|
|
279
|
+
not: d,
|
|
280
|
+
unit: n,
|
|
281
|
+
internal_mediaKeys: f,
|
|
282
|
+
...i
|
|
283
|
+
};
|
|
284
|
+
}
|
|
285
|
+
var Ee = /min-width:\s*([0-9.]+)/;
|
|
286
|
+
function De(e, t) {
|
|
287
|
+
if (!e.containerQueries || !Oe(t)) return t;
|
|
288
|
+
let n = [];
|
|
289
|
+
for (let e in t) e.startsWith("@container") && n.push(e);
|
|
290
|
+
n.sort((e, t) => (e.match(Ee)?.[1] || 0) - +(t.match(Ee)?.[1] || 0));
|
|
291
|
+
let r = t;
|
|
292
|
+
for (let e = 0; e < n.length; e += 1) {
|
|
293
|
+
let t = n[e], i = r[t];
|
|
294
|
+
delete r[t], r[t] = i;
|
|
295
|
+
}
|
|
296
|
+
return r;
|
|
297
|
+
}
|
|
298
|
+
function Oe(e) {
|
|
299
|
+
for (let t in e) if (t.startsWith("@container")) return !0;
|
|
300
|
+
return !1;
|
|
301
|
+
}
|
|
302
|
+
function ke(e, t) {
|
|
303
|
+
return t === "@" || t.startsWith("@") && (e.some((e) => t.startsWith(`@${e}`)) || !!t.match(/^@\d/));
|
|
304
|
+
}
|
|
305
|
+
function Ae(e, t) {
|
|
306
|
+
let n = t.match(/^@([^/]+)?\/?(.+)?$/);
|
|
307
|
+
if (!n) return null;
|
|
308
|
+
let [, r, i] = n, a = Number.isNaN(+r) ? r || 0 : +r;
|
|
309
|
+
return e.containerQueries(i).up(a);
|
|
310
|
+
}
|
|
311
|
+
function je(e) {
|
|
312
|
+
let t = (e, t) => e.replace("@media", t ? `@container ${t}` : "@container");
|
|
313
|
+
function n(n, r) {
|
|
314
|
+
n.up = (...n) => t(e.breakpoints.up(...n), r), n.down = (...n) => t(e.breakpoints.down(...n), r), n.between = (...n) => t(e.breakpoints.between(...n), r), n.only = (...n) => t(e.breakpoints.only(...n), r), n.not = (...n) => {
|
|
315
|
+
let i = t(e.breakpoints.not(...n), r);
|
|
316
|
+
return i.includes("not all and") ? i.replace("not all and ", "").replace("min-width:", "width<").replace("max-width:", "width>").replace("and", "or") : i;
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
let r = {}, i = (e) => (n(r, e), r);
|
|
320
|
+
return n(i), {
|
|
321
|
+
...e,
|
|
322
|
+
containerQueries: i
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
var Me = { borderRadius: 4 }, Ne = {}, Pe = {
|
|
326
|
+
xs: 0,
|
|
327
|
+
sm: 600,
|
|
328
|
+
md: 900,
|
|
329
|
+
lg: 1200,
|
|
330
|
+
xl: 1536
|
|
331
|
+
}, Fe = Te({ values: Pe }), Ie = { containerQueries: (e) => ({ up: (t) => {
|
|
332
|
+
let n = typeof t == "number" ? t : Pe[t] || t;
|
|
333
|
+
return typeof n == "number" && (n = `${n}px`), e ? `@container ${e} (min-width:${n})` : `@container (min-width:${n})`;
|
|
334
|
+
} }) };
|
|
335
|
+
function k(e, t, n) {
|
|
336
|
+
let r = {};
|
|
337
|
+
return Le(r, e.theme, t, (e, t, i) => {
|
|
338
|
+
let a = n(t, i);
|
|
339
|
+
e ? r[e] = a : d(r, a);
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
function Le(e, t, n, r) {
|
|
343
|
+
if (t ??= Ne, Array.isArray(n)) {
|
|
344
|
+
let i = t.breakpoints ?? Fe;
|
|
345
|
+
for (let t = 0; t < n.length; t += 1) Re(e, i.up(i.keys[t]), n[t], void 0, r);
|
|
346
|
+
return e;
|
|
347
|
+
}
|
|
348
|
+
if (typeof n == "object") {
|
|
349
|
+
let i = t.breakpoints ?? Fe, a = i.values ?? Pe;
|
|
350
|
+
for (let o in n) if (ke(i.keys, o)) {
|
|
351
|
+
let i = Ae(t.containerQueries ? t : Ie, o);
|
|
352
|
+
i && Re(e, i, n[o], o, r);
|
|
353
|
+
} else if (o in a) Re(e, i.up(o), n[o], o, r);
|
|
354
|
+
else {
|
|
355
|
+
let t = o;
|
|
356
|
+
e[t] = n[t];
|
|
357
|
+
}
|
|
358
|
+
return e;
|
|
359
|
+
}
|
|
360
|
+
return r(void 0, n), e;
|
|
361
|
+
}
|
|
362
|
+
function Re(e, t, n, r, i) {
|
|
363
|
+
e[t] ??= {}, i(t, n, r);
|
|
364
|
+
}
|
|
365
|
+
function ze(e = Fe) {
|
|
366
|
+
let { internal_mediaKeys: t } = e, n = {};
|
|
367
|
+
for (let e = 0; e < t.length; e += 1) n[t[e]] = {};
|
|
368
|
+
return n;
|
|
369
|
+
}
|
|
370
|
+
function Be(e, t) {
|
|
371
|
+
let n = e.internal_mediaKeys;
|
|
372
|
+
for (let e = 0; e < n.length; e += 1) {
|
|
373
|
+
let r = n[e];
|
|
374
|
+
u(t[r]) && delete t[r];
|
|
375
|
+
}
|
|
376
|
+
return t;
|
|
377
|
+
}
|
|
378
|
+
function Ve(e, t) {
|
|
379
|
+
if (Array.isArray(t)) return !0;
|
|
380
|
+
if (typeof t == "object" && t) {
|
|
381
|
+
for (let n = 0; n < e.keys.length; n += 1) if (e.keys[n] in t) return !0;
|
|
382
|
+
let n = Object.keys(t);
|
|
383
|
+
for (let t = 0; t < n.length; t += 1) if (ke(e.keys, n[t])) return !0;
|
|
384
|
+
}
|
|
385
|
+
return !1;
|
|
386
|
+
}
|
|
387
|
+
function He(e, t, n, r) {
|
|
388
|
+
let i;
|
|
389
|
+
return i = typeof e == "function" ? e(n) : Array.isArray(e) ? e[n] || n : typeof n == "string" && A(e, n, !0, r) || n, t && (i = t(i, n, e)), i;
|
|
390
|
+
}
|
|
391
|
+
function A(e, t, n = !0, r = void 0) {
|
|
392
|
+
if (!e || !t) return null;
|
|
393
|
+
let i = t.split(".");
|
|
394
|
+
if (e.vars && n) {
|
|
395
|
+
let t = Ue(e.vars, i, r);
|
|
396
|
+
if (t != null) return t;
|
|
397
|
+
}
|
|
398
|
+
return Ue(e, i, r);
|
|
399
|
+
}
|
|
400
|
+
function Ue(e, t, n = void 0) {
|
|
401
|
+
let r, i = e, a = 0;
|
|
402
|
+
for (; a < t.length;) {
|
|
403
|
+
if (i == null) return i;
|
|
404
|
+
r = i, i = i[t[a]], a += 1;
|
|
405
|
+
}
|
|
406
|
+
if (n && i === void 0) {
|
|
407
|
+
let e = t[t.length - 1], i = `${n}${e === "default" ? "" : c(e)}`;
|
|
408
|
+
return r?.[i];
|
|
409
|
+
}
|
|
410
|
+
return i;
|
|
411
|
+
}
|
|
412
|
+
function j(e) {
|
|
413
|
+
let { prop: t, cssProperty: n = e.prop, themeKey: r, transform: i } = e, a = (e) => {
|
|
414
|
+
if (e[t] == null) return null;
|
|
415
|
+
let a = e[t], o = e.theme, s = A(o, r) || {};
|
|
416
|
+
return k(e, a, (e) => {
|
|
417
|
+
let r = He(s, i, e, t);
|
|
418
|
+
return n === !1 ? r : { [n]: r };
|
|
419
|
+
});
|
|
420
|
+
};
|
|
421
|
+
return a.propTypes = {}, a.filterProps = [t], a;
|
|
422
|
+
}
|
|
423
|
+
var We = { internal_cache: {} }, Ge = {
|
|
424
|
+
m: "margin",
|
|
425
|
+
p: "padding"
|
|
426
|
+
}, Ke = {
|
|
427
|
+
t: "Top",
|
|
428
|
+
r: "Right",
|
|
429
|
+
b: "Bottom",
|
|
430
|
+
l: "Left",
|
|
431
|
+
x: ["Left", "Right"],
|
|
432
|
+
y: ["Top", "Bottom"]
|
|
433
|
+
}, qe = {
|
|
434
|
+
marginX: "mx",
|
|
435
|
+
marginY: "my",
|
|
436
|
+
paddingX: "px",
|
|
437
|
+
paddingY: "py"
|
|
438
|
+
}, M = {};
|
|
439
|
+
for (let e in Ge) M[e] = [Ge[e]];
|
|
440
|
+
for (let e in Ge) for (let t in Ke) {
|
|
441
|
+
let n = Ge[e], r = Ke[t], i = Array.isArray(r) ? r.map((e) => n + e) : [n + r];
|
|
442
|
+
M[e + t] = i;
|
|
443
|
+
}
|
|
444
|
+
for (let e in qe) M[e] = M[qe[e]];
|
|
445
|
+
var Je = /* @__PURE__ */ new Set([
|
|
446
|
+
"m",
|
|
447
|
+
"mt",
|
|
448
|
+
"mr",
|
|
449
|
+
"mb",
|
|
450
|
+
"ml",
|
|
451
|
+
"mx",
|
|
452
|
+
"my",
|
|
453
|
+
"margin",
|
|
454
|
+
"marginTop",
|
|
455
|
+
"marginRight",
|
|
456
|
+
"marginBottom",
|
|
457
|
+
"marginLeft",
|
|
458
|
+
"marginX",
|
|
459
|
+
"marginY",
|
|
460
|
+
"marginInline",
|
|
461
|
+
"marginInlineStart",
|
|
462
|
+
"marginInlineEnd",
|
|
463
|
+
"marginBlock",
|
|
464
|
+
"marginBlockStart",
|
|
465
|
+
"marginBlockEnd"
|
|
466
|
+
]), Ye = /* @__PURE__ */ new Set([
|
|
467
|
+
"p",
|
|
468
|
+
"pt",
|
|
469
|
+
"pr",
|
|
470
|
+
"pb",
|
|
471
|
+
"pl",
|
|
472
|
+
"px",
|
|
473
|
+
"py",
|
|
474
|
+
"padding",
|
|
475
|
+
"paddingTop",
|
|
476
|
+
"paddingRight",
|
|
477
|
+
"paddingBottom",
|
|
478
|
+
"paddingLeft",
|
|
479
|
+
"paddingX",
|
|
480
|
+
"paddingY",
|
|
481
|
+
"paddingInline",
|
|
482
|
+
"paddingInlineStart",
|
|
483
|
+
"paddingInlineEnd",
|
|
484
|
+
"paddingBlock",
|
|
485
|
+
"paddingBlockStart",
|
|
486
|
+
"paddingBlockEnd"
|
|
487
|
+
]), Xe = /* @__PURE__ */ new Set([...Je, ...Ye]);
|
|
488
|
+
function N(e, t, n, r) {
|
|
489
|
+
let i = A(e, t, !0) ?? n;
|
|
490
|
+
return typeof i == "number" || typeof i == "string" ? (e) => typeof e == "string" ? e : typeof i == "string" ? i.startsWith("var(") && e === 0 ? 0 : i.startsWith("var(") && e === 1 ? i : `calc(${e} * ${i})` : i * e : Array.isArray(i) ? (e) => {
|
|
491
|
+
if (typeof e == "string") return e;
|
|
492
|
+
let t = i[Math.abs(e)];
|
|
493
|
+
return e >= 0 ? t : typeof t == "number" ? -t : typeof t == "string" && t.startsWith("var(") ? `calc(-1 * ${t})` : `-${t}`;
|
|
494
|
+
} : typeof i == "function" ? i : () => void 0;
|
|
495
|
+
}
|
|
496
|
+
function Ze(e) {
|
|
497
|
+
return N(e, "spacing", 8, "spacing");
|
|
498
|
+
}
|
|
499
|
+
function P(e, t) {
|
|
500
|
+
return typeof t == "string" || t == null ? t : e(t);
|
|
501
|
+
}
|
|
502
|
+
var Qe = [""];
|
|
503
|
+
function $e(e, t) {
|
|
504
|
+
let n = e.theme ?? We, r = n?.internal_cache?.unarySpacing ?? Ze(n), i = {};
|
|
505
|
+
for (let n in e) {
|
|
506
|
+
if (!t.has(n)) continue;
|
|
507
|
+
let a = M[n] ?? (Qe[0] = n, Qe), o = e[n];
|
|
508
|
+
Le(i, e.theme, o, (e, t) => {
|
|
509
|
+
let n = e ? i[e] : i;
|
|
510
|
+
for (let e = 0; e < a.length; e += 1) n[a[e]] = P(r, t);
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
return i;
|
|
514
|
+
}
|
|
515
|
+
function et(e) {
|
|
516
|
+
return $e(e, Je);
|
|
517
|
+
}
|
|
518
|
+
et.propTypes = {}, et.filterProps = Je;
|
|
519
|
+
var F = et;
|
|
520
|
+
function tt(e) {
|
|
521
|
+
return $e(e, Ye);
|
|
522
|
+
}
|
|
523
|
+
tt.propTypes = {}, tt.filterProps = Ye;
|
|
524
|
+
var I = tt;
|
|
525
|
+
function nt(e) {
|
|
526
|
+
return $e(e, Xe);
|
|
527
|
+
}
|
|
528
|
+
nt.propTypes = {}, nt.filterProps = Xe;
|
|
529
|
+
function rt(e = 8, t = Ze({ spacing: e })) {
|
|
530
|
+
if (e.mui) return e;
|
|
531
|
+
let n = (...e) => (e.length === 0 ? [1] : e).map((e) => {
|
|
532
|
+
let n = t(e);
|
|
533
|
+
return typeof n == "number" ? `${n}px` : n;
|
|
534
|
+
}).join(" ");
|
|
535
|
+
return n.mui = !0, n;
|
|
536
|
+
}
|
|
537
|
+
function it(...e) {
|
|
538
|
+
let t = e.reduce((e, t) => (t.filterProps.forEach((n) => {
|
|
539
|
+
e[n] = t;
|
|
540
|
+
}), e), {}), n = (e) => {
|
|
541
|
+
let n = {};
|
|
542
|
+
for (let r in e) t[r] && d(n, t[r](e));
|
|
543
|
+
return n;
|
|
544
|
+
};
|
|
545
|
+
return n.propTypes = {}, n.filterProps = e.reduce((e, t) => e.concat(t.filterProps), []), n;
|
|
546
|
+
}
|
|
547
|
+
function L(e) {
|
|
548
|
+
return typeof e == "number" ? `${e}px solid` : e;
|
|
549
|
+
}
|
|
550
|
+
function R(e, t) {
|
|
551
|
+
return j({
|
|
552
|
+
prop: e,
|
|
553
|
+
themeKey: "borders",
|
|
554
|
+
transform: t
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
var at = R("border", L), ot = R("borderTop", L), st = R("borderRight", L), ct = R("borderBottom", L), lt = R("borderLeft", L), ut = R("borderColor"), dt = R("borderTopColor"), ft = R("borderRightColor"), pt = R("borderBottomColor"), mt = R("borderLeftColor"), ht = R("outline", L), gt = R("outlineColor"), _t = (e) => {
|
|
558
|
+
if (e.borderRadius !== void 0 && e.borderRadius !== null) {
|
|
559
|
+
let t = N(e.theme, "shape.borderRadius", 4, "borderRadius");
|
|
560
|
+
return k(e, e.borderRadius, (e) => ({ borderRadius: P(t, e) }));
|
|
561
|
+
}
|
|
562
|
+
return null;
|
|
563
|
+
};
|
|
564
|
+
_t.propTypes = {}, _t.filterProps = ["borderRadius"], it(at, ot, st, ct, lt, ut, dt, ft, pt, mt, _t, ht, gt);
|
|
565
|
+
var z = (e) => {
|
|
566
|
+
if (e.gap !== void 0 && e.gap !== null) {
|
|
567
|
+
let t = N(e.theme, "spacing", 8, "gap");
|
|
568
|
+
return k(e, e.gap, (e) => ({ gap: P(t, e) }));
|
|
569
|
+
}
|
|
570
|
+
return null;
|
|
571
|
+
};
|
|
572
|
+
z.propTypes = {}, z.filterProps = ["gap"];
|
|
573
|
+
var vt = (e) => {
|
|
574
|
+
if (e.columnGap !== void 0 && e.columnGap !== null) {
|
|
575
|
+
let t = N(e.theme, "spacing", 8, "columnGap");
|
|
576
|
+
return k(e, e.columnGap, (e) => ({ columnGap: P(t, e) }));
|
|
577
|
+
}
|
|
578
|
+
return null;
|
|
579
|
+
};
|
|
580
|
+
vt.propTypes = {}, vt.filterProps = ["columnGap"];
|
|
581
|
+
var yt = (e) => {
|
|
582
|
+
if (e.rowGap !== void 0 && e.rowGap !== null) {
|
|
583
|
+
let t = N(e.theme, "spacing", 8, "rowGap");
|
|
584
|
+
return k(e, e.rowGap, (e) => ({ rowGap: P(t, e) }));
|
|
585
|
+
}
|
|
586
|
+
return null;
|
|
587
|
+
};
|
|
588
|
+
yt.propTypes = {}, yt.filterProps = ["rowGap"], it(z, vt, yt, j({ prop: "gridColumn" }), j({ prop: "gridRow" }), j({ prop: "gridAutoFlow" }), j({ prop: "gridAutoColumns" }), j({ prop: "gridAutoRows" }), j({ prop: "gridTemplateColumns" }), j({ prop: "gridTemplateRows" }), j({ prop: "gridTemplateAreas" }), j({ prop: "gridArea" }));
|
|
589
|
+
function B(e, t) {
|
|
590
|
+
return t === "grey" ? t : e;
|
|
591
|
+
}
|
|
592
|
+
it(j({
|
|
593
|
+
prop: "color",
|
|
594
|
+
themeKey: "palette",
|
|
595
|
+
transform: B
|
|
596
|
+
}), j({
|
|
597
|
+
prop: "bgcolor",
|
|
598
|
+
cssProperty: "backgroundColor",
|
|
599
|
+
themeKey: "palette",
|
|
600
|
+
transform: B
|
|
601
|
+
}), j({
|
|
602
|
+
prop: "backgroundColor",
|
|
603
|
+
themeKey: "palette",
|
|
604
|
+
transform: B
|
|
605
|
+
}));
|
|
606
|
+
var bt = Pe;
|
|
607
|
+
function V(e) {
|
|
608
|
+
return e <= 1 && e !== 0 ? `${e * 100}%` : e;
|
|
609
|
+
}
|
|
610
|
+
var xt = j({
|
|
611
|
+
prop: "width",
|
|
612
|
+
transform: V
|
|
613
|
+
}), St = (e) => e.maxWidth !== void 0 && e.maxWidth !== null ? k(e, e.maxWidth, (t) => {
|
|
614
|
+
let n = e.theme?.breakpoints?.values?.[t] || bt[t];
|
|
615
|
+
return n ? e.theme?.breakpoints?.unit === "px" ? { maxWidth: n } : { maxWidth: `${n}${e.theme.breakpoints.unit}` } : { maxWidth: V(t) };
|
|
616
|
+
}) : null;
|
|
617
|
+
St.filterProps = ["maxWidth"];
|
|
618
|
+
var Ct = j({
|
|
619
|
+
prop: "minWidth",
|
|
620
|
+
transform: V
|
|
621
|
+
}), wt = j({
|
|
622
|
+
prop: "height",
|
|
623
|
+
transform: V
|
|
624
|
+
}), Tt = j({
|
|
625
|
+
prop: "maxHeight",
|
|
626
|
+
transform: V
|
|
627
|
+
}), Et = j({
|
|
628
|
+
prop: "minHeight",
|
|
629
|
+
transform: V
|
|
630
|
+
});
|
|
631
|
+
j({
|
|
632
|
+
prop: "size",
|
|
633
|
+
cssProperty: "width",
|
|
634
|
+
transform: V
|
|
635
|
+
}), j({
|
|
636
|
+
prop: "size",
|
|
637
|
+
cssProperty: "height",
|
|
638
|
+
transform: V
|
|
639
|
+
}), it(xt, St, Ct, wt, Tt, Et, j({ prop: "boxSizing" }));
|
|
640
|
+
var Dt = {
|
|
641
|
+
border: {
|
|
642
|
+
themeKey: "borders",
|
|
643
|
+
transform: L
|
|
644
|
+
},
|
|
645
|
+
borderTop: {
|
|
646
|
+
themeKey: "borders",
|
|
647
|
+
transform: L
|
|
648
|
+
},
|
|
649
|
+
borderRight: {
|
|
650
|
+
themeKey: "borders",
|
|
651
|
+
transform: L
|
|
652
|
+
},
|
|
653
|
+
borderBottom: {
|
|
654
|
+
themeKey: "borders",
|
|
655
|
+
transform: L
|
|
656
|
+
},
|
|
657
|
+
borderLeft: {
|
|
658
|
+
themeKey: "borders",
|
|
659
|
+
transform: L
|
|
660
|
+
},
|
|
661
|
+
borderColor: { themeKey: "palette" },
|
|
662
|
+
borderTopColor: { themeKey: "palette" },
|
|
663
|
+
borderRightColor: { themeKey: "palette" },
|
|
664
|
+
borderBottomColor: { themeKey: "palette" },
|
|
665
|
+
borderLeftColor: { themeKey: "palette" },
|
|
666
|
+
outline: {
|
|
667
|
+
themeKey: "borders",
|
|
668
|
+
transform: L
|
|
669
|
+
},
|
|
670
|
+
outlineColor: { themeKey: "palette" },
|
|
671
|
+
borderRadius: {
|
|
672
|
+
themeKey: "shape.borderRadius",
|
|
673
|
+
style: _t
|
|
674
|
+
},
|
|
675
|
+
color: {
|
|
676
|
+
themeKey: "palette",
|
|
677
|
+
transform: B
|
|
678
|
+
},
|
|
679
|
+
bgcolor: {
|
|
680
|
+
themeKey: "palette",
|
|
681
|
+
cssProperty: "backgroundColor",
|
|
682
|
+
transform: B
|
|
683
|
+
},
|
|
684
|
+
backgroundColor: {
|
|
685
|
+
themeKey: "palette",
|
|
686
|
+
transform: B
|
|
687
|
+
},
|
|
688
|
+
p: { style: I },
|
|
689
|
+
pt: { style: I },
|
|
690
|
+
pr: { style: I },
|
|
691
|
+
pb: { style: I },
|
|
692
|
+
pl: { style: I },
|
|
693
|
+
px: { style: I },
|
|
694
|
+
py: { style: I },
|
|
695
|
+
padding: { style: I },
|
|
696
|
+
paddingTop: { style: I },
|
|
697
|
+
paddingRight: { style: I },
|
|
698
|
+
paddingBottom: { style: I },
|
|
699
|
+
paddingLeft: { style: I },
|
|
700
|
+
paddingX: { style: I },
|
|
701
|
+
paddingY: { style: I },
|
|
702
|
+
paddingInline: { style: I },
|
|
703
|
+
paddingInlineStart: { style: I },
|
|
704
|
+
paddingInlineEnd: { style: I },
|
|
705
|
+
paddingBlock: { style: I },
|
|
706
|
+
paddingBlockStart: { style: I },
|
|
707
|
+
paddingBlockEnd: { style: I },
|
|
708
|
+
m: { style: F },
|
|
709
|
+
mt: { style: F },
|
|
710
|
+
mr: { style: F },
|
|
711
|
+
mb: { style: F },
|
|
712
|
+
ml: { style: F },
|
|
713
|
+
mx: { style: F },
|
|
714
|
+
my: { style: F },
|
|
715
|
+
margin: { style: F },
|
|
716
|
+
marginTop: { style: F },
|
|
717
|
+
marginRight: { style: F },
|
|
718
|
+
marginBottom: { style: F },
|
|
719
|
+
marginLeft: { style: F },
|
|
720
|
+
marginX: { style: F },
|
|
721
|
+
marginY: { style: F },
|
|
722
|
+
marginInline: { style: F },
|
|
723
|
+
marginInlineStart: { style: F },
|
|
724
|
+
marginInlineEnd: { style: F },
|
|
725
|
+
marginBlock: { style: F },
|
|
726
|
+
marginBlockStart: { style: F },
|
|
727
|
+
marginBlockEnd: { style: F },
|
|
728
|
+
displayPrint: {
|
|
729
|
+
cssProperty: !1,
|
|
730
|
+
transform: (e) => ({ "@media print": { display: e } })
|
|
731
|
+
},
|
|
732
|
+
display: {},
|
|
733
|
+
overflow: {},
|
|
734
|
+
textOverflow: {},
|
|
735
|
+
visibility: {},
|
|
736
|
+
whiteSpace: {},
|
|
737
|
+
flexBasis: {},
|
|
738
|
+
flexDirection: {},
|
|
739
|
+
flexWrap: {},
|
|
740
|
+
justifyContent: {},
|
|
741
|
+
alignItems: {},
|
|
742
|
+
alignContent: {},
|
|
743
|
+
order: {},
|
|
744
|
+
flex: {},
|
|
745
|
+
flexGrow: {},
|
|
746
|
+
flexShrink: {},
|
|
747
|
+
alignSelf: {},
|
|
748
|
+
justifyItems: {},
|
|
749
|
+
justifySelf: {},
|
|
750
|
+
gap: { style: z },
|
|
751
|
+
rowGap: { style: yt },
|
|
752
|
+
columnGap: { style: vt },
|
|
753
|
+
gridColumn: {},
|
|
754
|
+
gridRow: {},
|
|
755
|
+
gridAutoFlow: {},
|
|
756
|
+
gridAutoColumns: {},
|
|
757
|
+
gridAutoRows: {},
|
|
758
|
+
gridTemplateColumns: {},
|
|
759
|
+
gridTemplateRows: {},
|
|
760
|
+
gridTemplateAreas: {},
|
|
761
|
+
gridArea: {},
|
|
762
|
+
position: {},
|
|
763
|
+
zIndex: { themeKey: "zIndex" },
|
|
764
|
+
top: {},
|
|
765
|
+
right: {},
|
|
766
|
+
bottom: {},
|
|
767
|
+
left: {},
|
|
768
|
+
boxShadow: { themeKey: "shadows" },
|
|
769
|
+
width: { transform: V },
|
|
770
|
+
maxWidth: { style: St },
|
|
771
|
+
minWidth: { transform: V },
|
|
772
|
+
height: { transform: V },
|
|
773
|
+
maxHeight: { transform: V },
|
|
774
|
+
minHeight: { transform: V },
|
|
775
|
+
boxSizing: {},
|
|
776
|
+
font: { themeKey: "font" },
|
|
777
|
+
fontFamily: { themeKey: "typography" },
|
|
778
|
+
fontSize: { themeKey: "typography" },
|
|
779
|
+
fontStyle: { themeKey: "typography" },
|
|
780
|
+
fontWeight: { themeKey: "typography" },
|
|
781
|
+
letterSpacing: {},
|
|
782
|
+
textTransform: {},
|
|
783
|
+
lineHeight: {},
|
|
784
|
+
textAlign: {},
|
|
785
|
+
typography: {
|
|
786
|
+
cssProperty: !1,
|
|
787
|
+
themeKey: "typography"
|
|
788
|
+
}
|
|
789
|
+
}, Ot = {};
|
|
790
|
+
function kt() {
|
|
791
|
+
function e(t) {
|
|
792
|
+
if (!t.sx) return null;
|
|
793
|
+
let { sx: n, theme: r = Ot, nested: i } = t, a = r.unstable_sxConfig ?? Dt, o = {
|
|
794
|
+
sx: null,
|
|
795
|
+
theme: r,
|
|
796
|
+
nested: !0
|
|
797
|
+
};
|
|
798
|
+
function s(n) {
|
|
799
|
+
let s = n;
|
|
800
|
+
if (typeof n == "function") s = n(r);
|
|
801
|
+
else if (typeof n != "object") return n;
|
|
802
|
+
if (!s) return null;
|
|
803
|
+
let c = r.breakpoints ?? Fe, l = ze(c);
|
|
804
|
+
for (let n in s) {
|
|
805
|
+
let i = jt(s[n], r);
|
|
806
|
+
if (i != null) {
|
|
807
|
+
if (typeof i != "object") {
|
|
808
|
+
At(l, n, i, r, a);
|
|
809
|
+
continue;
|
|
810
|
+
}
|
|
811
|
+
if (a[n]) {
|
|
812
|
+
At(l, n, i, r, a);
|
|
813
|
+
continue;
|
|
814
|
+
}
|
|
815
|
+
Ve(c, i) ? Le(l, t.theme, i, (e, t) => {
|
|
816
|
+
l[e][n] = t;
|
|
817
|
+
}) : (o.sx = i, l[n] = e(o));
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
return !i && r.modularCssLayers ? { "@layer sx": De(r, Be(c, l)) } : De(r, Be(c, l));
|
|
821
|
+
}
|
|
822
|
+
return Array.isArray(n) ? n.map(s) : s(n);
|
|
823
|
+
}
|
|
824
|
+
return e.filterProps = ["sx"], e;
|
|
825
|
+
}
|
|
826
|
+
var H = kt();
|
|
827
|
+
function At(e, t, n, r, i) {
|
|
828
|
+
let a = i[t];
|
|
829
|
+
if (!a) {
|
|
830
|
+
e[t] = n;
|
|
831
|
+
return;
|
|
832
|
+
}
|
|
833
|
+
if (n == null) return;
|
|
834
|
+
let { themeKey: o } = a;
|
|
835
|
+
if (o === "typography" && n === "inherit") {
|
|
836
|
+
e[t] = n;
|
|
837
|
+
return;
|
|
838
|
+
}
|
|
839
|
+
let { style: s } = a;
|
|
840
|
+
if (s) {
|
|
841
|
+
d(e, s({
|
|
842
|
+
[t]: n,
|
|
843
|
+
theme: r
|
|
844
|
+
}));
|
|
845
|
+
return;
|
|
846
|
+
}
|
|
847
|
+
let { cssProperty: c = t, transform: l } = a, u = A(r, o);
|
|
848
|
+
Le(e, r, n, (n, r) => {
|
|
849
|
+
let i = He(u, l, r, t);
|
|
850
|
+
c === !1 ? d(n ? e[n] : e, i) : n ? e[n][c] = i : e[c] = i;
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
function jt(e, t) {
|
|
854
|
+
return typeof e == "function" ? e(t) : e;
|
|
855
|
+
}
|
|
856
|
+
function Mt(e, t) {
|
|
857
|
+
let n = this;
|
|
858
|
+
if (n.vars) {
|
|
859
|
+
if (!n.colorSchemes?.[e] || typeof n.getColorSchemeSelector != "function") return {};
|
|
860
|
+
let r = n.getColorSchemeSelector(e);
|
|
861
|
+
return r === "&" ? t : ((r.includes("data-") || r.includes(".")) && (r = `*:where(${r.replace(/\s*&$/, "")}) &`), { [r]: t });
|
|
862
|
+
}
|
|
863
|
+
return n.palette.mode === e ? t : {};
|
|
864
|
+
}
|
|
865
|
+
function Nt(e = {}, ...t) {
|
|
866
|
+
let { breakpoints: n = {}, palette: r = {}, spacing: i, shape: o = {}, ...s } = e, c = Te(n), l = rt(i), u = a({
|
|
867
|
+
breakpoints: c,
|
|
868
|
+
direction: "ltr",
|
|
869
|
+
components: {},
|
|
870
|
+
palette: {
|
|
871
|
+
mode: "light",
|
|
872
|
+
...r
|
|
873
|
+
},
|
|
874
|
+
spacing: l,
|
|
875
|
+
shape: {
|
|
876
|
+
...Me,
|
|
877
|
+
...o
|
|
878
|
+
}
|
|
879
|
+
}, s);
|
|
880
|
+
return u = je(u), u.applyStyles = Mt, u = t.reduce((e, t) => a(e, t), u), u.unstable_sxConfig = {
|
|
881
|
+
...Dt,
|
|
882
|
+
...s?.unstable_sxConfig
|
|
883
|
+
}, u.unstable_sx = function(e) {
|
|
884
|
+
return H({
|
|
885
|
+
sx: e,
|
|
886
|
+
theme: this
|
|
887
|
+
});
|
|
888
|
+
}, u.internal_cache = {}, u;
|
|
889
|
+
}
|
|
890
|
+
function Pt(e) {
|
|
891
|
+
let { variants: t, ...n } = e, r = {
|
|
892
|
+
variants: t,
|
|
893
|
+
style: O(n),
|
|
894
|
+
isProcessed: !0
|
|
895
|
+
};
|
|
896
|
+
return r.style === n || t && t.forEach((e) => {
|
|
897
|
+
typeof e.style != "function" && (e.style = O(e.style));
|
|
898
|
+
}), r;
|
|
899
|
+
}
|
|
900
|
+
var Ft = Nt();
|
|
901
|
+
function It(e) {
|
|
902
|
+
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
903
|
+
}
|
|
904
|
+
function U(e, t) {
|
|
905
|
+
return t && e && typeof e == "object" && e.styles && !e.styles.startsWith("@layer") && (e.styles = `@layer ${t}{${String(e.styles)}}`), e;
|
|
906
|
+
}
|
|
907
|
+
function Lt(e) {
|
|
908
|
+
return e ? (t, n) => n[e] : null;
|
|
909
|
+
}
|
|
910
|
+
function Rt(e, t, n) {
|
|
911
|
+
e.theme = u(e.theme) ? n : e.theme[t] || e.theme;
|
|
912
|
+
}
|
|
913
|
+
function zt(e, t, n) {
|
|
914
|
+
let r = typeof t == "function" ? t(e) : t;
|
|
915
|
+
if (Array.isArray(r)) return r.flatMap((t) => zt(e, t, n));
|
|
916
|
+
if (Array.isArray(r?.variants)) {
|
|
917
|
+
let t;
|
|
918
|
+
if (r.isProcessed) t = n ? U(r.style, n) : r.style;
|
|
919
|
+
else {
|
|
920
|
+
let { variants: e, ...i } = r;
|
|
921
|
+
t = n ? U(O(i), n) : i;
|
|
922
|
+
}
|
|
923
|
+
return Bt(e, r.variants, [t], n);
|
|
924
|
+
}
|
|
925
|
+
return r?.isProcessed ? n ? U(O(r.style), n) : r.style : n ? U(O(r), n) : r;
|
|
926
|
+
}
|
|
927
|
+
function Bt(e, t, n = [], r = void 0) {
|
|
928
|
+
let i;
|
|
929
|
+
variantLoop: for (let a = 0; a < t.length; a += 1) {
|
|
930
|
+
let o = t[a];
|
|
931
|
+
if (typeof o.props == "function") {
|
|
932
|
+
if (i ??= {
|
|
933
|
+
...e,
|
|
934
|
+
...e.ownerState,
|
|
935
|
+
ownerState: e.ownerState
|
|
936
|
+
}, !o.props(i)) continue;
|
|
937
|
+
} else for (let t in o.props) if (e[t] !== o.props[t] && e.ownerState?.[t] !== o.props[t]) continue variantLoop;
|
|
938
|
+
typeof o.style == "function" ? (i ??= {
|
|
939
|
+
...e,
|
|
940
|
+
...e.ownerState,
|
|
941
|
+
ownerState: e.ownerState
|
|
942
|
+
}, n.push(r ? U(O(o.style(i)), r) : o.style(i))) : n.push(r ? U(O(o.style), r) : o.style);
|
|
943
|
+
}
|
|
944
|
+
return n;
|
|
945
|
+
}
|
|
946
|
+
function Vt(e = {}) {
|
|
947
|
+
let { themeId: t, defaultTheme: n = Ft, rootShouldForwardProp: r = It, slotShouldForwardProp: i = It } = e;
|
|
948
|
+
function a(e) {
|
|
949
|
+
Rt(e, t, n);
|
|
950
|
+
}
|
|
951
|
+
return (e, t = {}) => {
|
|
952
|
+
Se(e, (e) => e.filter((e) => e !== H));
|
|
953
|
+
let { name: n, slot: o, skipVariantsResolver: s, skipSx: c, overridesResolver: l = Lt(Ut(o)), ...u } = t, d = n && n.startsWith("Mui") || o ? "components" : "custom", f = s === void 0 ? o && o !== "Root" && o !== "root" || !1 : s, p = c || !1, m = It;
|
|
954
|
+
o === "Root" || o === "root" ? m = r : o ? m = i : Ht(e) && (m = void 0);
|
|
955
|
+
let h = xe(e, {
|
|
956
|
+
shouldForwardProp: m,
|
|
957
|
+
label: void 0,
|
|
958
|
+
...u
|
|
959
|
+
}), g = (e) => {
|
|
960
|
+
if (e.__emotion_real === e) return e;
|
|
961
|
+
if (typeof e == "function") return function(t) {
|
|
962
|
+
return zt(t, e, t.theme.modularCssLayers ? d : void 0);
|
|
963
|
+
};
|
|
964
|
+
if (v(e)) {
|
|
965
|
+
let t = Pt(e);
|
|
966
|
+
return function(e) {
|
|
967
|
+
return t.variants ? zt(e, t, e.theme.modularCssLayers ? d : void 0) : e.theme.modularCssLayers ? U(t.style, d) : t.style;
|
|
968
|
+
};
|
|
969
|
+
}
|
|
970
|
+
return e;
|
|
971
|
+
}, _ = (...t) => {
|
|
972
|
+
let r = [], i = t.map(g), o = [];
|
|
973
|
+
if (r.push(a), n && l && o.push(function(e) {
|
|
974
|
+
let t = e.theme.components?.[n]?.styleOverrides;
|
|
975
|
+
if (!t) return null;
|
|
976
|
+
let r = {};
|
|
977
|
+
for (let n in t) r[n] = zt(e, t[n], e.theme.modularCssLayers ? "theme" : void 0);
|
|
978
|
+
return l(e, r);
|
|
979
|
+
}), n && !f && o.push(function(e) {
|
|
980
|
+
let t = e.theme?.components?.[n]?.variants;
|
|
981
|
+
return t ? Bt(e, t, [], e.theme.modularCssLayers ? "theme" : void 0) : null;
|
|
982
|
+
}), p || o.push(H), Array.isArray(i[0])) {
|
|
983
|
+
let e = i.shift(), t = Array(r.length).fill(""), n = Array(o.length).fill(""), a;
|
|
984
|
+
a = [
|
|
985
|
+
...t,
|
|
986
|
+
...e,
|
|
987
|
+
...n
|
|
988
|
+
], a.raw = [
|
|
989
|
+
...t,
|
|
990
|
+
...e.raw,
|
|
991
|
+
...n
|
|
992
|
+
], r.unshift(a);
|
|
993
|
+
}
|
|
994
|
+
let s = [
|
|
995
|
+
...r,
|
|
996
|
+
...i,
|
|
997
|
+
...o
|
|
998
|
+
], c = h(...s);
|
|
999
|
+
return e.muiName && (c.muiName = e.muiName), c;
|
|
1000
|
+
};
|
|
1001
|
+
return h.withConfig && (_.withConfig = h.withConfig), _;
|
|
1002
|
+
};
|
|
1003
|
+
}
|
|
1004
|
+
function Ht(e) {
|
|
1005
|
+
return typeof e == "string" && e.charCodeAt(0) > 96;
|
|
1006
|
+
}
|
|
1007
|
+
function Ut(e) {
|
|
1008
|
+
return e && e.charAt(0).toLowerCase() + e.slice(1);
|
|
1009
|
+
}
|
|
1010
|
+
function Wt(e, t = 0, n = 1) {
|
|
1011
|
+
return g(e, t, n);
|
|
1012
|
+
}
|
|
1013
|
+
function Gt(e) {
|
|
1014
|
+
e = e.slice(1);
|
|
1015
|
+
let t = RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g"), n = e.match(t);
|
|
1016
|
+
return n && n[0].length === 1 && (n = n.map((e) => e + e)), n ? `rgb${n.length === 4 ? "a" : ""}(${n.map((e, t) => t < 3 ? parseInt(e, 16) : Math.round(parseInt(e, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
|
|
1017
|
+
}
|
|
1018
|
+
function W(e) {
|
|
1019
|
+
if (e.type) return e;
|
|
1020
|
+
if (e.charAt(0) === "#") return W(Gt(e));
|
|
1021
|
+
let t = e.indexOf("("), n = e.substring(0, t);
|
|
1022
|
+
if (![
|
|
1023
|
+
"rgb",
|
|
1024
|
+
"rgba",
|
|
1025
|
+
"hsl",
|
|
1026
|
+
"hsla",
|
|
1027
|
+
"color"
|
|
1028
|
+
].includes(n)) throw Error(r(9, e));
|
|
1029
|
+
let i = e.substring(t + 1, e.length - 1), a;
|
|
1030
|
+
if (n === "color") {
|
|
1031
|
+
if (i = i.split(" "), a = i.shift(), i.length === 4 && i[3].charAt(0) === "/" && (i[3] = i[3].slice(1)), ![
|
|
1032
|
+
"srgb",
|
|
1033
|
+
"display-p3",
|
|
1034
|
+
"a98-rgb",
|
|
1035
|
+
"prophoto-rgb",
|
|
1036
|
+
"rec-2020"
|
|
1037
|
+
].includes(a)) throw Error(r(10, a));
|
|
1038
|
+
} else i = i.split(",");
|
|
1039
|
+
return i = i.map((e) => parseFloat(e)), {
|
|
1040
|
+
type: n,
|
|
1041
|
+
values: i,
|
|
1042
|
+
colorSpace: a
|
|
1043
|
+
};
|
|
1044
|
+
}
|
|
1045
|
+
var Kt = (e) => {
|
|
1046
|
+
let t = W(e);
|
|
1047
|
+
return t.values.slice(0, 3).map((e, n) => t.type.includes("hsl") && n !== 0 ? `${e}%` : e).join(" ");
|
|
1048
|
+
}, G = (e, t) => {
|
|
1049
|
+
try {
|
|
1050
|
+
return Kt(e);
|
|
1051
|
+
} catch {
|
|
1052
|
+
return e;
|
|
1053
|
+
}
|
|
1054
|
+
};
|
|
1055
|
+
function qt(e) {
|
|
1056
|
+
let { type: t, colorSpace: n } = e, { values: r } = e;
|
|
1057
|
+
return t.includes("rgb") ? r = r.map((e, t) => t < 3 ? parseInt(e, 10) : e) : t.includes("hsl") && (r[1] = `${r[1]}%`, r[2] = `${r[2]}%`), r = t.includes("color") ? `${n} ${r.join(" ")}` : `${r.join(", ")}`, `${t}(${r})`;
|
|
1058
|
+
}
|
|
1059
|
+
function Jt(e) {
|
|
1060
|
+
e = W(e);
|
|
1061
|
+
let { values: t } = e, n = t[0], r = t[1] / 100, i = t[2] / 100, a = r * Math.min(i, 1 - i), o = (e, t = (e + n / 30) % 12) => i - a * Math.max(Math.min(t - 3, 9 - t, 1), -1), s = "rgb", c = [
|
|
1062
|
+
Math.round(o(0) * 255),
|
|
1063
|
+
Math.round(o(8) * 255),
|
|
1064
|
+
Math.round(o(4) * 255)
|
|
1065
|
+
];
|
|
1066
|
+
return e.type === "hsla" && (s += "a", c.push(t[3])), qt({
|
|
1067
|
+
type: s,
|
|
1068
|
+
values: c
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
function Yt(e) {
|
|
1072
|
+
e = W(e);
|
|
1073
|
+
let t = e.type === "hsl" || e.type === "hsla" ? W(Jt(e)).values : e.values;
|
|
1074
|
+
return t = t.map((t) => (e.type !== "color" && (t /= 255), t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4)), Number((.2126 * t[0] + .7152 * t[1] + .0722 * t[2]).toFixed(3));
|
|
1075
|
+
}
|
|
1076
|
+
function Xt(e, t) {
|
|
1077
|
+
let n = Yt(e), r = Yt(t);
|
|
1078
|
+
return (Math.max(n, r) + .05) / (Math.min(n, r) + .05);
|
|
1079
|
+
}
|
|
1080
|
+
function Zt(e, t) {
|
|
1081
|
+
return e = W(e), t = Wt(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, qt(e);
|
|
1082
|
+
}
|
|
1083
|
+
function K(e, t, n) {
|
|
1084
|
+
try {
|
|
1085
|
+
return Zt(e, t);
|
|
1086
|
+
} catch {
|
|
1087
|
+
return e;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
function Qt(e, t) {
|
|
1091
|
+
if (e = W(e), t = Wt(t), e.type.includes("hsl")) e.values[2] *= 1 - t;
|
|
1092
|
+
else if (e.type.includes("rgb") || e.type.includes("color")) for (let n = 0; n < 3; n += 1) e.values[n] *= 1 - t;
|
|
1093
|
+
return qt(e);
|
|
1094
|
+
}
|
|
1095
|
+
function q(e, t, n) {
|
|
1096
|
+
try {
|
|
1097
|
+
return Qt(e, t);
|
|
1098
|
+
} catch {
|
|
1099
|
+
return e;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
function $t(e, t) {
|
|
1103
|
+
if (e = W(e), t = Wt(t), e.type.includes("hsl")) e.values[2] += (100 - e.values[2]) * t;
|
|
1104
|
+
else if (e.type.includes("rgb")) for (let n = 0; n < 3; n += 1) e.values[n] += (255 - e.values[n]) * t;
|
|
1105
|
+
else if (e.type.includes("color")) for (let n = 0; n < 3; n += 1) e.values[n] += (1 - e.values[n]) * t;
|
|
1106
|
+
return qt(e);
|
|
1107
|
+
}
|
|
1108
|
+
function J(e, t, n) {
|
|
1109
|
+
try {
|
|
1110
|
+
return $t(e, t);
|
|
1111
|
+
} catch {
|
|
1112
|
+
return e;
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
function en(e, t = .15) {
|
|
1116
|
+
return Yt(e) > .5 ? Qt(e, t) : $t(e, t);
|
|
1117
|
+
}
|
|
1118
|
+
function tn(e, t, n) {
|
|
1119
|
+
try {
|
|
1120
|
+
return en(e, t);
|
|
1121
|
+
} catch {
|
|
1122
|
+
return e;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
var nn = /*#__PURE__*/ b.createContext(void 0);
|
|
1126
|
+
function rn(e) {
|
|
1127
|
+
let { theme: t, name: n, props: r } = e;
|
|
1128
|
+
if (!t || !t.components || !t.components[n]) return r;
|
|
1129
|
+
let i = t.components[n];
|
|
1130
|
+
return i.defaultProps ? h(i.defaultProps, r, t.components.mergeClassNameAndStyle) : !i.styleOverrides && !i.variants ? h(i, r, t.components.mergeClassNameAndStyle) : r;
|
|
1131
|
+
}
|
|
1132
|
+
function an({ props: e, name: t }) {
|
|
1133
|
+
return rn({
|
|
1134
|
+
props: e,
|
|
1135
|
+
name: t,
|
|
1136
|
+
theme: { components: b.useContext(nn) }
|
|
1137
|
+
});
|
|
1138
|
+
}
|
|
1139
|
+
var on = { theme: void 0 };
|
|
1140
|
+
function sn(e) {
|
|
1141
|
+
let t, n;
|
|
1142
|
+
return function(r) {
|
|
1143
|
+
let i = t;
|
|
1144
|
+
return (i === void 0 || r.theme !== n) && (on.theme = r.theme, i = Pt(e(on)), t = i, n = r.theme), i;
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
function cn(e = "") {
|
|
1148
|
+
function t(...n) {
|
|
1149
|
+
if (!n.length) return "";
|
|
1150
|
+
let r = n[0];
|
|
1151
|
+
return typeof r == "string" && !r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/) ? `, var(--${e ? `${e}-` : ""}${r}${t(...n.slice(1))})` : `, ${r}`;
|
|
1152
|
+
}
|
|
1153
|
+
return (n, ...r) => `var(--${e ? `${e}-` : ""}${n}${t(...r)})`;
|
|
1154
|
+
}
|
|
1155
|
+
var ln = /* @__PURE__ */ new Set([
|
|
1156
|
+
"__proto__",
|
|
1157
|
+
"constructor",
|
|
1158
|
+
"prototype"
|
|
1159
|
+
]), un = (e, t, n, r = []) => {
|
|
1160
|
+
let i = e;
|
|
1161
|
+
for (let e = 0; e < t.length; e += 1) {
|
|
1162
|
+
let a = t[e];
|
|
1163
|
+
if (ln.has(a)) break;
|
|
1164
|
+
e === t.length - 1 ? Array.isArray(i) ? i[Number(a)] = n : i && typeof i == "object" && (i[a] = n) : i && typeof i == "object" && (i[a] || (i[a] = r.includes(a) ? [] : {}), i = i[a]);
|
|
1165
|
+
}
|
|
1166
|
+
}, dn = (e, t, n) => {
|
|
1167
|
+
function r(e, i = [], a = []) {
|
|
1168
|
+
Object.entries(e).forEach(([e, o]) => {
|
|
1169
|
+
(!n || n && !n([...i, e])) && o != null && (typeof o == "object" && Object.keys(o).length > 0 ? r(o, [...i, e], Array.isArray(o) ? [...a, e] : a) : t([...i, e], o, a));
|
|
1170
|
+
});
|
|
1171
|
+
}
|
|
1172
|
+
r(e);
|
|
1173
|
+
}, fn = (e, t) => typeof t == "number" ? [
|
|
1174
|
+
"lineHeight",
|
|
1175
|
+
"fontWeight",
|
|
1176
|
+
"opacity",
|
|
1177
|
+
"zIndex"
|
|
1178
|
+
].some((t) => e.includes(t)) || e[e.length - 1].toLowerCase().includes("opacity") ? t : `${t}px` : t;
|
|
1179
|
+
function pn(e, t) {
|
|
1180
|
+
let { prefix: n, shouldSkipGeneratingVar: r } = t || {}, i = {}, a = {}, o = {};
|
|
1181
|
+
return dn(e, (e, t, s) => {
|
|
1182
|
+
if ((typeof t == "string" || typeof t == "number") && (!r || !r(e, t))) {
|
|
1183
|
+
let r = `--${n ? `${n}-` : ""}${e.join("-")}`, c = fn(e, t);
|
|
1184
|
+
Object.assign(i, { [r]: c }), un(a, e, `var(${r})`, s), un(o, e, `var(${r}, ${c})`, s);
|
|
1185
|
+
}
|
|
1186
|
+
}, (e) => e[0] === "vars"), {
|
|
1187
|
+
css: i,
|
|
1188
|
+
vars: a,
|
|
1189
|
+
varsWithDefaults: o
|
|
1190
|
+
};
|
|
1191
|
+
}
|
|
1192
|
+
function mn(e, t = {}) {
|
|
1193
|
+
let { getSelector: n = v, disableCssColorScheme: r, colorSchemeSelector: i, enableContrastVars: o } = t, { colorSchemes: s = {}, components: c, defaultColorScheme: l = "light", ...u } = e, { vars: d, css: f, varsWithDefaults: p } = pn(u, t), m = p, h = {}, { [l]: g, ..._ } = s;
|
|
1194
|
+
if (Object.entries(_ || {}).forEach(([e, n]) => {
|
|
1195
|
+
let { vars: r, css: i, varsWithDefaults: o } = pn(n, t);
|
|
1196
|
+
m = a(m, o), h[e] = {
|
|
1197
|
+
css: i,
|
|
1198
|
+
vars: r
|
|
1199
|
+
};
|
|
1200
|
+
}), g) {
|
|
1201
|
+
let { css: e, vars: n, varsWithDefaults: r } = pn(g, t);
|
|
1202
|
+
m = a(m, r), h[l] = {
|
|
1203
|
+
css: e,
|
|
1204
|
+
vars: n
|
|
1205
|
+
};
|
|
1206
|
+
}
|
|
1207
|
+
function v(t, n) {
|
|
1208
|
+
let r = i;
|
|
1209
|
+
if (i === "class" && (r = ".%s"), i === "data" && (r = "[data-%s]"), i?.startsWith("data-") && !i.includes("%s") && (r = `[${i}="%s"]`), t) {
|
|
1210
|
+
if (r === "media") return e.defaultColorScheme === t ? ":root" : { [`@media (prefers-color-scheme: ${s[t]?.palette?.mode || t})`]: { ":root": n } };
|
|
1211
|
+
if (r) return e.defaultColorScheme === t ? `:root, ${r.replace("%s", String(t))}` : r.replace("%s", String(t));
|
|
1212
|
+
}
|
|
1213
|
+
return ":root";
|
|
1214
|
+
}
|
|
1215
|
+
return {
|
|
1216
|
+
vars: m,
|
|
1217
|
+
generateThemeVars: () => {
|
|
1218
|
+
let e = { ...d };
|
|
1219
|
+
return Object.entries(h).forEach(([, { vars: t }]) => {
|
|
1220
|
+
e = a(e, t);
|
|
1221
|
+
}), e;
|
|
1222
|
+
},
|
|
1223
|
+
generateStyleSheets: () => {
|
|
1224
|
+
let t = [], i = e.defaultColorScheme || "light";
|
|
1225
|
+
function a(e, n) {
|
|
1226
|
+
Object.keys(n).length && t.push(typeof e == "string" ? { [e]: { ...n } } : e);
|
|
1227
|
+
}
|
|
1228
|
+
a(n(void 0, { ...f }), f);
|
|
1229
|
+
let { [i]: c, ...l } = h;
|
|
1230
|
+
if (c) {
|
|
1231
|
+
let { css: e } = c, t = s[i]?.palette?.mode, o = !r && t ? {
|
|
1232
|
+
colorScheme: t,
|
|
1233
|
+
...e
|
|
1234
|
+
} : { ...e };
|
|
1235
|
+
a(n(i, { ...o }), o);
|
|
1236
|
+
}
|
|
1237
|
+
return Object.entries(l).forEach(([e, { css: t }]) => {
|
|
1238
|
+
let i = s[e]?.palette?.mode, o = !r && i ? {
|
|
1239
|
+
colorScheme: i,
|
|
1240
|
+
...t
|
|
1241
|
+
} : { ...t };
|
|
1242
|
+
a(n(e, { ...o }), o);
|
|
1243
|
+
}), o && t.push({ ":root": {
|
|
1244
|
+
"--__l-threshold": "0.7",
|
|
1245
|
+
"--__l": "clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)",
|
|
1246
|
+
"--__a": "clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"
|
|
1247
|
+
} }), t;
|
|
1248
|
+
}
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1251
|
+
function hn(e) {
|
|
1252
|
+
return function(t) {
|
|
1253
|
+
return e === "media" ? `@media (prefers-color-scheme: ${t})` : e ? e.startsWith("data-") && !e.includes("%s") ? `[${e}="${t}"] &` : e === "class" ? `.${t} &` : e === "data" ? `[data-${t}] &` : `${e.replace("%s", t)} &` : "&";
|
|
1254
|
+
};
|
|
1255
|
+
}
|
|
1256
|
+
function gn() {
|
|
1257
|
+
return {
|
|
1258
|
+
text: {
|
|
1259
|
+
primary: "rgba(0, 0, 0, 0.87)",
|
|
1260
|
+
secondary: "rgba(0, 0, 0, 0.6)",
|
|
1261
|
+
disabled: "rgba(0, 0, 0, 0.38)"
|
|
1262
|
+
},
|
|
1263
|
+
divider: "rgba(0, 0, 0, 0.12)",
|
|
1264
|
+
background: {
|
|
1265
|
+
paper: x.white,
|
|
1266
|
+
default: x.white
|
|
1267
|
+
},
|
|
1268
|
+
action: {
|
|
1269
|
+
active: "rgba(0, 0, 0, 0.54)",
|
|
1270
|
+
hover: "rgba(0, 0, 0, 0.04)",
|
|
1271
|
+
hoverOpacity: .04,
|
|
1272
|
+
selected: "rgba(0, 0, 0, 0.08)",
|
|
1273
|
+
selectedOpacity: .08,
|
|
1274
|
+
disabled: "rgba(0, 0, 0, 0.26)",
|
|
1275
|
+
disabledBackground: "rgba(0, 0, 0, 0.12)",
|
|
1276
|
+
disabledOpacity: .38,
|
|
1277
|
+
focus: "rgba(0, 0, 0, 0.12)",
|
|
1278
|
+
focusOpacity: .12,
|
|
1279
|
+
activatedOpacity: .12
|
|
1280
|
+
}
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1283
|
+
var _n = gn();
|
|
1284
|
+
function vn() {
|
|
1285
|
+
return {
|
|
1286
|
+
text: {
|
|
1287
|
+
primary: x.white,
|
|
1288
|
+
secondary: "rgba(255, 255, 255, 0.7)",
|
|
1289
|
+
disabled: "rgba(255, 255, 255, 0.5)",
|
|
1290
|
+
icon: "rgba(255, 255, 255, 0.5)"
|
|
1291
|
+
},
|
|
1292
|
+
divider: "rgba(255, 255, 255, 0.12)",
|
|
1293
|
+
background: {
|
|
1294
|
+
paper: "#121212",
|
|
1295
|
+
default: "#121212"
|
|
1296
|
+
},
|
|
1297
|
+
action: {
|
|
1298
|
+
active: x.white,
|
|
1299
|
+
hover: "rgba(255, 255, 255, 0.08)",
|
|
1300
|
+
hoverOpacity: .08,
|
|
1301
|
+
selected: "rgba(255, 255, 255, 0.16)",
|
|
1302
|
+
selectedOpacity: .16,
|
|
1303
|
+
disabled: "rgba(255, 255, 255, 0.3)",
|
|
1304
|
+
disabledBackground: "rgba(255, 255, 255, 0.12)",
|
|
1305
|
+
disabledOpacity: .38,
|
|
1306
|
+
focus: "rgba(255, 255, 255, 0.12)",
|
|
1307
|
+
focusOpacity: .12,
|
|
1308
|
+
activatedOpacity: .24
|
|
1309
|
+
}
|
|
1310
|
+
};
|
|
1311
|
+
}
|
|
1312
|
+
var yn = vn();
|
|
1313
|
+
function bn(e, t, n, r) {
|
|
1314
|
+
let i = r.light || r, a = r.dark || r * 1.5;
|
|
1315
|
+
e[t] || (e.hasOwnProperty(n) ? e[t] = e[n] : t === "light" ? e.light = $t(e.main, i) : t === "dark" && (e.dark = Qt(e.main, a)));
|
|
1316
|
+
}
|
|
1317
|
+
function xn(e, t, n, r, i) {
|
|
1318
|
+
let a = i.light || i, o = i.dark || i * 1.5;
|
|
1319
|
+
t[n] || (t.hasOwnProperty(r) ? t[n] = t[r] : n === "light" ? t.light = `color-mix(in ${e}, ${t.main}, #fff ${(a * 100).toFixed(0)}%)` : n === "dark" && (t.dark = `color-mix(in ${e}, ${t.main}, #000 ${(o * 100).toFixed(0)}%)`));
|
|
1320
|
+
}
|
|
1321
|
+
function Sn(e = "light") {
|
|
1322
|
+
return e === "dark" ? {
|
|
1323
|
+
main: w[200],
|
|
1324
|
+
light: w[50],
|
|
1325
|
+
dark: w[400]
|
|
1326
|
+
} : {
|
|
1327
|
+
main: w[700],
|
|
1328
|
+
light: w[400],
|
|
1329
|
+
dark: w[800]
|
|
1330
|
+
};
|
|
1331
|
+
}
|
|
1332
|
+
function Cn(e = "light") {
|
|
1333
|
+
return e === "dark" ? {
|
|
1334
|
+
main: C[200],
|
|
1335
|
+
light: C[50],
|
|
1336
|
+
dark: C[400]
|
|
1337
|
+
} : {
|
|
1338
|
+
main: C[500],
|
|
1339
|
+
light: C[300],
|
|
1340
|
+
dark: C[700]
|
|
1341
|
+
};
|
|
1342
|
+
}
|
|
1343
|
+
function wn(e = "light") {
|
|
1344
|
+
return e === "dark" ? {
|
|
1345
|
+
main: S[500],
|
|
1346
|
+
light: S[300],
|
|
1347
|
+
dark: S[700]
|
|
1348
|
+
} : {
|
|
1349
|
+
main: S[700],
|
|
1350
|
+
light: S[400],
|
|
1351
|
+
dark: S[800]
|
|
1352
|
+
};
|
|
1353
|
+
}
|
|
1354
|
+
function Tn(e = "light") {
|
|
1355
|
+
return e === "dark" ? {
|
|
1356
|
+
main: T[400],
|
|
1357
|
+
light: T[300],
|
|
1358
|
+
dark: T[700]
|
|
1359
|
+
} : {
|
|
1360
|
+
main: T[700],
|
|
1361
|
+
light: T[500],
|
|
1362
|
+
dark: T[900]
|
|
1363
|
+
};
|
|
1364
|
+
}
|
|
1365
|
+
function En(e = "light") {
|
|
1366
|
+
return e === "dark" ? {
|
|
1367
|
+
main: E[400],
|
|
1368
|
+
light: E[300],
|
|
1369
|
+
dark: E[700]
|
|
1370
|
+
} : {
|
|
1371
|
+
main: E[800],
|
|
1372
|
+
light: E[500],
|
|
1373
|
+
dark: E[900]
|
|
1374
|
+
};
|
|
1375
|
+
}
|
|
1376
|
+
function Dn(e = "light") {
|
|
1377
|
+
return e === "dark" ? {
|
|
1378
|
+
main: D[400],
|
|
1379
|
+
light: D[300],
|
|
1380
|
+
dark: D[700]
|
|
1381
|
+
} : {
|
|
1382
|
+
main: "#ed6c02",
|
|
1383
|
+
light: D[500],
|
|
1384
|
+
dark: D[900]
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
function On(e) {
|
|
1388
|
+
return `oklch(from ${e} var(--__l) 0 h / var(--__a))`;
|
|
1389
|
+
}
|
|
1390
|
+
function kn(e) {
|
|
1391
|
+
let { mode: t = "light", contrastThreshold: n = 3, tonalOffset: i = .2, colorSpace: o, ...s } = e, c = e.primary || Sn(t), l = e.secondary || Cn(t), u = e.error || wn(t), d = e.info || Tn(t), f = e.success || En(t), p = e.warning || Dn(t);
|
|
1392
|
+
function m(e) {
|
|
1393
|
+
return o ? On(e) : Xt(e, yn.text.primary) >= n ? yn.text.primary : _n.text.primary;
|
|
1394
|
+
}
|
|
1395
|
+
let h = ({ color: e, name: t, mainShade: n = 500, lightShade: a = 300, darkShade: s = 700 }) => {
|
|
1396
|
+
if (e = { ...e }, !e.main && e[n] && (e.main = e[n]), !e.hasOwnProperty("main")) throw Error(r(11, t ? ` (${t})` : "", n));
|
|
1397
|
+
if (typeof e.main != "string") throw Error(r(12, t ? ` (${t})` : "", JSON.stringify(e.main)));
|
|
1398
|
+
return o ? (xn(o, e, "light", a, i), xn(o, e, "dark", s, i)) : (bn(e, "light", a, i), bn(e, "dark", s, i)), e.contrastText ||= m(e.main), e;
|
|
1399
|
+
}, g;
|
|
1400
|
+
return t === "light" ? g = gn() : t === "dark" && (g = vn()), a({
|
|
1401
|
+
common: { ...x },
|
|
1402
|
+
mode: t,
|
|
1403
|
+
primary: h({
|
|
1404
|
+
color: c,
|
|
1405
|
+
name: "primary"
|
|
1406
|
+
}),
|
|
1407
|
+
secondary: h({
|
|
1408
|
+
color: l,
|
|
1409
|
+
name: "secondary",
|
|
1410
|
+
mainShade: "A400",
|
|
1411
|
+
lightShade: "A200",
|
|
1412
|
+
darkShade: "A700"
|
|
1413
|
+
}),
|
|
1414
|
+
error: h({
|
|
1415
|
+
color: u,
|
|
1416
|
+
name: "error"
|
|
1417
|
+
}),
|
|
1418
|
+
warning: h({
|
|
1419
|
+
color: p,
|
|
1420
|
+
name: "warning"
|
|
1421
|
+
}),
|
|
1422
|
+
info: h({
|
|
1423
|
+
color: d,
|
|
1424
|
+
name: "info"
|
|
1425
|
+
}),
|
|
1426
|
+
success: h({
|
|
1427
|
+
color: f,
|
|
1428
|
+
name: "success"
|
|
1429
|
+
}),
|
|
1430
|
+
grey: ee,
|
|
1431
|
+
contrastThreshold: n,
|
|
1432
|
+
getContrastText: m,
|
|
1433
|
+
augmentColor: h,
|
|
1434
|
+
tonalOffset: i,
|
|
1435
|
+
...g
|
|
1436
|
+
}, s);
|
|
1437
|
+
}
|
|
1438
|
+
var An = "--_focusVisible-offset", jn = "--_focusVisible-behavior", Mn = "--_focusVisible-shadow", Nn = `var(${An}, 1)`, Pn = `var(${jn}, )`, Fn = {
|
|
1439
|
+
[An]: 1,
|
|
1440
|
+
[jn]: "initial"
|
|
1441
|
+
};
|
|
1442
|
+
function In(e, t) {
|
|
1443
|
+
return t.reduce((e, t) => t && "focusVisible" in t ? a(e, { focusVisible: t.focusVisible }) : e, { focusVisible: e }).focusVisible;
|
|
1444
|
+
}
|
|
1445
|
+
function Ln(e) {
|
|
1446
|
+
return typeof e == "object" && !!e && typeof e.outlineOffset == "string" && e.outlineOffset.includes(An);
|
|
1447
|
+
}
|
|
1448
|
+
function Rn(e, t) {
|
|
1449
|
+
return zn({
|
|
1450
|
+
outlineStyle: "solid",
|
|
1451
|
+
outlineColor: t,
|
|
1452
|
+
outlineWidth: 2,
|
|
1453
|
+
outlineOffset: 2,
|
|
1454
|
+
boxShadow: `var(${Mn}, 0 0)`,
|
|
1455
|
+
...e === !0 ? null : e
|
|
1456
|
+
});
|
|
1457
|
+
}
|
|
1458
|
+
function zn(e) {
|
|
1459
|
+
let t = e.outlineOffset ?? 0;
|
|
1460
|
+
(typeof t != "string" || !t.includes(An)) && (e.outlineOffset = `calc(${Nn} * ${typeof t == "number" ? `${t}px` : t})`);
|
|
1461
|
+
let n = /* @__PURE__ */ new Set([
|
|
1462
|
+
"none",
|
|
1463
|
+
"initial",
|
|
1464
|
+
"inherit",
|
|
1465
|
+
"unset",
|
|
1466
|
+
"revert",
|
|
1467
|
+
"revert-layer"
|
|
1468
|
+
]);
|
|
1469
|
+
return typeof e.boxShadow == "string" && !n.has(e.boxShadow.trim().toLowerCase()) && !/\binset\b/.test(e.boxShadow) && !e.boxShadow.includes(jn) && (e.boxShadow = `${Pn} ${e.boxShadow}`), e;
|
|
1470
|
+
}
|
|
1471
|
+
function Bn(e) {
|
|
1472
|
+
let t = {};
|
|
1473
|
+
return Object.entries(e).forEach((e) => {
|
|
1474
|
+
let [n, r] = e;
|
|
1475
|
+
typeof r == "object" && (t[n] = `${r.fontStyle ? `${r.fontStyle} ` : ""}${r.fontVariant ? `${r.fontVariant} ` : ""}${r.fontWeight ? `${r.fontWeight} ` : ""}${r.fontStretch ? `${r.fontStretch} ` : ""}${r.fontSize || ""}${r.lineHeight ? `/${r.lineHeight} ` : ""}${r.fontFamily || ""}`);
|
|
1476
|
+
}), t;
|
|
1477
|
+
}
|
|
1478
|
+
function Vn(e, t) {
|
|
1479
|
+
return {
|
|
1480
|
+
toolbar: {
|
|
1481
|
+
minHeight: 56,
|
|
1482
|
+
[e.up("xs")]: { "@media (orientation: landscape)": { minHeight: 48 } },
|
|
1483
|
+
[e.up("sm")]: { minHeight: 64 }
|
|
1484
|
+
},
|
|
1485
|
+
...t
|
|
1486
|
+
};
|
|
1487
|
+
}
|
|
1488
|
+
function Hn(e) {
|
|
1489
|
+
return Math.round(e * 1e5) / 1e5;
|
|
1490
|
+
}
|
|
1491
|
+
var Un = { textTransform: "uppercase" }, Wn = "\"Roboto\", \"Helvetica\", \"Arial\", sans-serif";
|
|
1492
|
+
function Gn(e, t) {
|
|
1493
|
+
let { fontFamily: n = Wn, fontSize: r = 14, fontWeightLight: i = 300, fontWeightRegular: o = 400, fontWeightMedium: s = 500, fontWeightBold: c = 700, htmlFontSize: l = 16, allVariants: u, pxToRem: d, ...f } = typeof t == "function" ? t(e) : t, p = r / 14, m = d || ((e) => `${e / l * p}rem`), h = (e, t, r, i, a) => ({
|
|
1494
|
+
fontFamily: n,
|
|
1495
|
+
fontWeight: e,
|
|
1496
|
+
fontSize: m(t),
|
|
1497
|
+
lineHeight: r,
|
|
1498
|
+
...n === Wn ? { letterSpacing: `${Hn(i / t)}em` } : {},
|
|
1499
|
+
...a,
|
|
1500
|
+
...u
|
|
1501
|
+
});
|
|
1502
|
+
return a({
|
|
1503
|
+
htmlFontSize: l,
|
|
1504
|
+
pxToRem: m,
|
|
1505
|
+
fontFamily: n,
|
|
1506
|
+
fontSize: r,
|
|
1507
|
+
fontWeightLight: i,
|
|
1508
|
+
fontWeightRegular: o,
|
|
1509
|
+
fontWeightMedium: s,
|
|
1510
|
+
fontWeightBold: c,
|
|
1511
|
+
h1: h(i, 96, 1.167, -1.5),
|
|
1512
|
+
h2: h(i, 60, 1.2, -.5),
|
|
1513
|
+
h3: h(o, 48, 1.167, 0),
|
|
1514
|
+
h4: h(o, 34, 1.235, .25),
|
|
1515
|
+
h5: h(o, 24, 1.334, 0),
|
|
1516
|
+
h6: h(s, 20, 1.6, .15),
|
|
1517
|
+
subtitle1: h(o, 16, 1.75, .15),
|
|
1518
|
+
subtitle2: h(s, 14, 1.57, .1),
|
|
1519
|
+
body1: h(o, 16, 1.5, .15),
|
|
1520
|
+
body2: h(o, 14, 1.43, .15),
|
|
1521
|
+
button: h(s, 14, 1.75, .4, Un),
|
|
1522
|
+
caption: h(o, 12, 1.66, .4),
|
|
1523
|
+
overline: h(o, 12, 2.66, 1, Un),
|
|
1524
|
+
inherit: {
|
|
1525
|
+
fontFamily: "inherit",
|
|
1526
|
+
fontWeight: "inherit",
|
|
1527
|
+
fontSize: "inherit",
|
|
1528
|
+
lineHeight: "inherit",
|
|
1529
|
+
letterSpacing: "inherit"
|
|
1530
|
+
}
|
|
1531
|
+
}, f, { clone: !1 });
|
|
1532
|
+
}
|
|
1533
|
+
var Kn = .2, qn = .14, Jn = .12;
|
|
1534
|
+
function Y(...e) {
|
|
1535
|
+
return [
|
|
1536
|
+
`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Kn})`,
|
|
1537
|
+
`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${qn})`,
|
|
1538
|
+
`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Jn})`
|
|
1539
|
+
].join(",");
|
|
1540
|
+
}
|
|
1541
|
+
var Yn = [
|
|
1542
|
+
"none",
|
|
1543
|
+
Y(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0),
|
|
1544
|
+
Y(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0),
|
|
1545
|
+
Y(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0),
|
|
1546
|
+
Y(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0),
|
|
1547
|
+
Y(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0),
|
|
1548
|
+
Y(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0),
|
|
1549
|
+
Y(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1),
|
|
1550
|
+
Y(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2),
|
|
1551
|
+
Y(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2),
|
|
1552
|
+
Y(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3),
|
|
1553
|
+
Y(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3),
|
|
1554
|
+
Y(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4),
|
|
1555
|
+
Y(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4),
|
|
1556
|
+
Y(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4),
|
|
1557
|
+
Y(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5),
|
|
1558
|
+
Y(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5),
|
|
1559
|
+
Y(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5),
|
|
1560
|
+
Y(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6),
|
|
1561
|
+
Y(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6),
|
|
1562
|
+
Y(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7),
|
|
1563
|
+
Y(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7),
|
|
1564
|
+
Y(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7),
|
|
1565
|
+
Y(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8),
|
|
1566
|
+
Y(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)
|
|
1567
|
+
], Xn = ["all"], Zn = {}, Qn = {
|
|
1568
|
+
easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
1569
|
+
easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
|
|
1570
|
+
easeIn: "cubic-bezier(0.4, 0, 1, 1)",
|
|
1571
|
+
sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
|
|
1572
|
+
}, $n = {
|
|
1573
|
+
shortest: 150,
|
|
1574
|
+
shorter: 200,
|
|
1575
|
+
short: 250,
|
|
1576
|
+
standard: 300,
|
|
1577
|
+
complex: 375,
|
|
1578
|
+
enteringScreen: 225,
|
|
1579
|
+
leavingScreen: 195
|
|
1580
|
+
};
|
|
1581
|
+
function er(e) {
|
|
1582
|
+
return `${Math.round(e)}ms`;
|
|
1583
|
+
}
|
|
1584
|
+
function tr(e) {
|
|
1585
|
+
if (!e) return 0;
|
|
1586
|
+
let t = e / 36;
|
|
1587
|
+
return Math.min(Math.round((4 + 15 * t ** .25 + t / 5) * 10), 3e3);
|
|
1588
|
+
}
|
|
1589
|
+
function nr(e) {
|
|
1590
|
+
let t = { ...e };
|
|
1591
|
+
delete t.reducedMotion;
|
|
1592
|
+
let n = {
|
|
1593
|
+
...Qn,
|
|
1594
|
+
...t.easing
|
|
1595
|
+
}, r = {
|
|
1596
|
+
...$n,
|
|
1597
|
+
...t.duration
|
|
1598
|
+
};
|
|
1599
|
+
return {
|
|
1600
|
+
getAutoHeightDuration: tr,
|
|
1601
|
+
create: t.create ?? ((e = Xn, t = Zn) => {
|
|
1602
|
+
let { duration: i = r.standard, easing: a = n.easeInOut, delay: o = 0, ...s } = t;
|
|
1603
|
+
return (Array.isArray(e) ? e : [e]).map((e) => `${e} ${typeof i == "string" ? i : er(i)} ${a} ${typeof o == "string" ? o : er(o)}`).join(",");
|
|
1604
|
+
}),
|
|
1605
|
+
...t,
|
|
1606
|
+
easing: n,
|
|
1607
|
+
duration: r
|
|
1608
|
+
};
|
|
1609
|
+
}
|
|
1610
|
+
var rr = {};
|
|
1611
|
+
function ir(e = rr) {
|
|
1612
|
+
return {
|
|
1613
|
+
reducedMotion: "never",
|
|
1614
|
+
...e
|
|
1615
|
+
};
|
|
1616
|
+
}
|
|
1617
|
+
var ar = {
|
|
1618
|
+
mobileStepper: 1e3,
|
|
1619
|
+
fab: 1050,
|
|
1620
|
+
speedDial: 1050,
|
|
1621
|
+
appBar: 1100,
|
|
1622
|
+
drawer: 1200,
|
|
1623
|
+
modal: 1300,
|
|
1624
|
+
snackbar: 1400,
|
|
1625
|
+
tooltip: 1500
|
|
1626
|
+
};
|
|
1627
|
+
function or(e) {
|
|
1628
|
+
return v(e) || e === void 0 || typeof e == "string" || typeof e == "boolean" || typeof e == "number" || Array.isArray(e);
|
|
1629
|
+
}
|
|
1630
|
+
function sr(e = {}) {
|
|
1631
|
+
let t = { ...e };
|
|
1632
|
+
function n(e) {
|
|
1633
|
+
let t = Object.entries(e);
|
|
1634
|
+
for (let r = 0; r < t.length; r++) {
|
|
1635
|
+
let [i, a] = t[r];
|
|
1636
|
+
!or(a) || i.startsWith("unstable_") || i.startsWith("internal_") ? delete e[i] : v(a) && (e[i] = { ...a }, n(e[i]));
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
return n(t), `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
1640
|
+
|
|
1641
|
+
const theme = ${JSON.stringify(t, null, 2)};
|
|
1642
|
+
|
|
1643
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
1644
|
+
theme.motion = { reducedMotion: 'never', ...theme.motion };
|
|
1645
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
1646
|
+
|
|
1647
|
+
export default theme;`;
|
|
1648
|
+
}
|
|
1649
|
+
function cr(e) {
|
|
1650
|
+
return typeof e == "number" ? `${(e * 100).toFixed(0)}%` : `calc((${e}) * 100%)`;
|
|
1651
|
+
}
|
|
1652
|
+
var lr = (e) => {
|
|
1653
|
+
if (!Number.isNaN(+e)) return +e;
|
|
1654
|
+
let t = e.match(/\d*\.?\d+/g);
|
|
1655
|
+
if (!t) return 0;
|
|
1656
|
+
let n = 0;
|
|
1657
|
+
for (let e = 0; e < t.length; e += 1) n += +t[e];
|
|
1658
|
+
return n;
|
|
1659
|
+
};
|
|
1660
|
+
function ur(e) {
|
|
1661
|
+
return e.startsWith("hsl") ? Jt(e) : e;
|
|
1662
|
+
}
|
|
1663
|
+
function dr(e, t, n = "") {
|
|
1664
|
+
let r = n.trim();
|
|
1665
|
+
if (r && !r.startsWith("color(")) try {
|
|
1666
|
+
let e = Kt(ur(r));
|
|
1667
|
+
if (e.split(" ").length === 3 && !e.includes("NaN")) return `var(--${t}Channel, ${e})`;
|
|
1668
|
+
} catch {}
|
|
1669
|
+
return `var(--${t}Channel)`;
|
|
1670
|
+
}
|
|
1671
|
+
function fr(e) {
|
|
1672
|
+
Object.assign(e, {
|
|
1673
|
+
alpha(t, n) {
|
|
1674
|
+
let r = this || e;
|
|
1675
|
+
if (r.colorSpace) return `oklch(from ${t} l c h / ${typeof n == "string" ? `calc(${n})` : n})`;
|
|
1676
|
+
if (r.vars) {
|
|
1677
|
+
let e = typeof n == "string" ? `calc(${n})` : n;
|
|
1678
|
+
return t.startsWith("color(") ? t.replace(/\s*(?:\/[^)]*)?\)$/, ` / ${e})`) : `rgba(${t.includes("var(") ? t.replace(/var\(--([^,\s)]+)(?:,((?:[^()]|\([^()]*\))+)\)|(?:,[^)]+)?\)+)/g, dr) : G(ur(t))} / ${e})`;
|
|
1679
|
+
}
|
|
1680
|
+
return Zt(t, lr(n));
|
|
1681
|
+
},
|
|
1682
|
+
lighten(t, n) {
|
|
1683
|
+
let r = this || e;
|
|
1684
|
+
return r.colorSpace ? `color-mix(in ${r.colorSpace}, ${t}, #fff ${cr(n)})` : $t(t, n);
|
|
1685
|
+
},
|
|
1686
|
+
darken(t, n) {
|
|
1687
|
+
let r = this || e;
|
|
1688
|
+
return r.colorSpace ? `color-mix(in ${r.colorSpace}, ${t}, #000 ${cr(n)})` : Qt(t, n);
|
|
1689
|
+
}
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
function pr(e = {}, ...t) {
|
|
1693
|
+
let { breakpoints: n, mixins: i = {}, spacing: o, palette: s = {}, motion: c = {}, transitions: l = {}, typography: u = {}, shape: d, colorSpace: f, ...p } = e;
|
|
1694
|
+
if (e.vars && e.generateThemeVars === void 0) throw Error(r(22));
|
|
1695
|
+
let m = kn({
|
|
1696
|
+
...s,
|
|
1697
|
+
colorSpace: f
|
|
1698
|
+
}), h = Nt(e), g = a(h, {
|
|
1699
|
+
mixins: Vn(h.breakpoints, i),
|
|
1700
|
+
palette: m,
|
|
1701
|
+
shadows: Yn.slice(),
|
|
1702
|
+
typography: Gn(m, u),
|
|
1703
|
+
motion: ir(c),
|
|
1704
|
+
transitions: nr(l),
|
|
1705
|
+
zIndex: { ...ar }
|
|
1706
|
+
});
|
|
1707
|
+
return g = a(g, p), g = t.reduce((e, t) => a(e, t), g), delete g.transitions.reducedMotion, g.focusVisible != null && g.focusVisible !== !1 && (g.focusVisible = Rn(g.focusVisible, g.palette.primary.main)), g.unstable_sxConfig = {
|
|
1708
|
+
...Dt,
|
|
1709
|
+
...p?.unstable_sxConfig
|
|
1710
|
+
}, g.unstable_sx = function(e) {
|
|
1711
|
+
return H({
|
|
1712
|
+
sx: e,
|
|
1713
|
+
theme: this
|
|
1714
|
+
});
|
|
1715
|
+
}, g.toRuntimeSource = sr, fr(g), g;
|
|
1716
|
+
}
|
|
1717
|
+
function mr(e) {
|
|
1718
|
+
let t;
|
|
1719
|
+
return t = e < 1 ? 5.11916 * e ** 2 : 4.5 * Math.log(e + 1) + 2, Math.round(t * 10) / 1e3;
|
|
1720
|
+
}
|
|
1721
|
+
var hr = [...Array(25)].map((e, t) => {
|
|
1722
|
+
if (t === 0) return "none";
|
|
1723
|
+
let n = mr(t);
|
|
1724
|
+
return `linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`;
|
|
1725
|
+
});
|
|
1726
|
+
function gr(e) {
|
|
1727
|
+
return {
|
|
1728
|
+
inputPlaceholder: e === "dark" ? .5 : .42,
|
|
1729
|
+
inputUnderline: e === "dark" ? .7 : .42,
|
|
1730
|
+
switchTrackDisabled: e === "dark" ? .2 : .12,
|
|
1731
|
+
switchTrack: e === "dark" ? .3 : .38
|
|
1732
|
+
};
|
|
1733
|
+
}
|
|
1734
|
+
function _r(e) {
|
|
1735
|
+
return e === "dark" ? hr : [];
|
|
1736
|
+
}
|
|
1737
|
+
function vr(e) {
|
|
1738
|
+
let { palette: t = { mode: "light" }, opacity: n, overlays: r, colorSpace: i, ...a } = e, o = kn({
|
|
1739
|
+
...t,
|
|
1740
|
+
colorSpace: i
|
|
1741
|
+
});
|
|
1742
|
+
return {
|
|
1743
|
+
palette: o,
|
|
1744
|
+
opacity: {
|
|
1745
|
+
...gr(o.mode),
|
|
1746
|
+
...n
|
|
1747
|
+
},
|
|
1748
|
+
overlays: r || _r(o.mode),
|
|
1749
|
+
...a
|
|
1750
|
+
};
|
|
1751
|
+
}
|
|
1752
|
+
function yr(e) {
|
|
1753
|
+
return e[0] === "motion" || e[0] === "focusVisible" || !!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!e[0].match(/sxConfig$/) || e[0] === "palette" && !!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/);
|
|
1754
|
+
}
|
|
1755
|
+
var br = (e) => [
|
|
1756
|
+
...[...Array(25)].map((t, n) => `--${e ? `${e}-` : ""}overlays-${n}`),
|
|
1757
|
+
`--${e ? `${e}-` : ""}palette-AppBar-darkBg`,
|
|
1758
|
+
`--${e ? `${e}-` : ""}palette-AppBar-darkColor`
|
|
1759
|
+
], xr = (e) => (t, n) => {
|
|
1760
|
+
let r = e.rootSelector || ":root", i = e.colorSchemeSelector, a = i;
|
|
1761
|
+
if (i === "class" && (a = ".%s"), i === "data" && (a = "[data-%s]"), i?.startsWith("data-") && !i.includes("%s") && (a = `[${i}="%s"]`), e.defaultColorScheme === t) {
|
|
1762
|
+
if (t === "dark") {
|
|
1763
|
+
let i = {};
|
|
1764
|
+
return br(e.cssVarPrefix).forEach((e) => {
|
|
1765
|
+
i[e] = n[e], delete n[e];
|
|
1766
|
+
}), a === "media" ? {
|
|
1767
|
+
[r]: n,
|
|
1768
|
+
"@media (prefers-color-scheme: dark)": { [r]: i }
|
|
1769
|
+
} : a ? {
|
|
1770
|
+
[a.replace("%s", t)]: i,
|
|
1771
|
+
[`${r}, ${a.replace("%s", t)}`]: n
|
|
1772
|
+
} : { [r]: {
|
|
1773
|
+
...n,
|
|
1774
|
+
...i
|
|
1775
|
+
} };
|
|
1776
|
+
}
|
|
1777
|
+
if (a && a !== "media") return `${r}, ${a.replace("%s", String(t))}`;
|
|
1778
|
+
} else if (t) {
|
|
1779
|
+
if (a === "media") return { [`@media (prefers-color-scheme: ${String(t)})`]: { [r]: n } };
|
|
1780
|
+
if (a) return a.replace("%s", String(t));
|
|
1781
|
+
}
|
|
1782
|
+
return r;
|
|
1783
|
+
};
|
|
1784
|
+
function Sr(e, t) {
|
|
1785
|
+
t.forEach((t) => {
|
|
1786
|
+
e[t] || (e[t] = {});
|
|
1787
|
+
});
|
|
1788
|
+
}
|
|
1789
|
+
function X(e, t, n) {
|
|
1790
|
+
!e[t] && n && (e[t] = n);
|
|
1791
|
+
}
|
|
1792
|
+
function Z(e) {
|
|
1793
|
+
return typeof e != "string" || !e.startsWith("hsl") ? e : Jt(e);
|
|
1794
|
+
}
|
|
1795
|
+
function Q(e, t) {
|
|
1796
|
+
`${t}Channel` in e || (e[`${t}Channel`] = G(Z(e[t]), `MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
1797
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`));
|
|
1798
|
+
}
|
|
1799
|
+
function Cr(e) {
|
|
1800
|
+
return typeof e == "number" ? `${e}px` : typeof e == "string" || typeof e == "function" || Array.isArray(e) ? e : "8px";
|
|
1801
|
+
}
|
|
1802
|
+
var $ = (e) => {
|
|
1803
|
+
try {
|
|
1804
|
+
return e();
|
|
1805
|
+
} catch {}
|
|
1806
|
+
}, wr = (e = "mui") => cn(e);
|
|
1807
|
+
function Tr(e, t, n, r, i) {
|
|
1808
|
+
if (!n) return;
|
|
1809
|
+
n = n === !0 ? {} : n;
|
|
1810
|
+
let a = i === "dark" ? "dark" : "light";
|
|
1811
|
+
if (!r) {
|
|
1812
|
+
t[i] = vr({
|
|
1813
|
+
...n,
|
|
1814
|
+
palette: {
|
|
1815
|
+
mode: a,
|
|
1816
|
+
...n?.palette
|
|
1817
|
+
},
|
|
1818
|
+
colorSpace: e
|
|
1819
|
+
});
|
|
1820
|
+
return;
|
|
1821
|
+
}
|
|
1822
|
+
let { palette: o, ...s } = pr({
|
|
1823
|
+
...r,
|
|
1824
|
+
palette: {
|
|
1825
|
+
mode: a,
|
|
1826
|
+
...n?.palette
|
|
1827
|
+
},
|
|
1828
|
+
colorSpace: e
|
|
1829
|
+
});
|
|
1830
|
+
return t[i] = {
|
|
1831
|
+
...n,
|
|
1832
|
+
palette: o,
|
|
1833
|
+
opacity: {
|
|
1834
|
+
...gr(a),
|
|
1835
|
+
...n?.opacity
|
|
1836
|
+
},
|
|
1837
|
+
overlays: n?.overlays || _r(a)
|
|
1838
|
+
}, s;
|
|
1839
|
+
}
|
|
1840
|
+
function Er(e = {}, ...t) {
|
|
1841
|
+
let { colorSchemes: n = { light: !0 }, defaultColorScheme: i, disableCssColorScheme: o = !1, cssVarPrefix: s = "mui", nativeColor: c = !1, shouldSkipGeneratingVar: l = yr, colorSchemeSelector: u = n.light && n.dark ? "media" : void 0, rootSelector: d = ":root", ...f } = e, p = Object.keys(n)[0], m = i || (n.light && p !== "light" ? "light" : p), h = wr(s), { [m]: g, light: _, dark: v, ...y } = n, b = { ...y }, x = g;
|
|
1842
|
+
if ((m === "dark" && !("dark" in n) || m === "light" && !("light" in n)) && (x = !0), !x) throw Error(r(21, m));
|
|
1843
|
+
let S;
|
|
1844
|
+
c && (S = "oklch");
|
|
1845
|
+
let C = Tr(S, b, x, f, m);
|
|
1846
|
+
_ && !b.light && Tr(S, b, _, void 0, "light"), v && !b.dark && Tr(S, b, v, void 0, "dark");
|
|
1847
|
+
let w = {
|
|
1848
|
+
defaultColorScheme: m,
|
|
1849
|
+
...C,
|
|
1850
|
+
cssVarPrefix: s,
|
|
1851
|
+
colorSchemeSelector: u,
|
|
1852
|
+
rootSelector: d,
|
|
1853
|
+
getCssVar: h,
|
|
1854
|
+
colorSchemes: b,
|
|
1855
|
+
font: {
|
|
1856
|
+
...Bn(C.typography),
|
|
1857
|
+
...C.font
|
|
1858
|
+
},
|
|
1859
|
+
spacing: Cr(f.spacing)
|
|
1860
|
+
};
|
|
1861
|
+
Object.keys(w.colorSchemes).forEach((e) => {
|
|
1862
|
+
let t = w.colorSchemes[e].palette, n = (e) => {
|
|
1863
|
+
let n = e.split("-"), r = n[1], i = n[2];
|
|
1864
|
+
return h(e, t[r][i]);
|
|
1865
|
+
};
|
|
1866
|
+
t.mode === "light" && (X(t.common, "background", "#fff"), X(t.common, "onBackground", "#000")), t.mode === "dark" && (X(t.common, "background", "#000"), X(t.common, "onBackground", "#fff")), c || Q(t.text, "primary");
|
|
1867
|
+
function r(e, t, n) {
|
|
1868
|
+
if (S) {
|
|
1869
|
+
let r;
|
|
1870
|
+
return e === K && (r = `transparent ${((1 - n) * 100).toFixed(0)}%`), e === q && (r = `#000 ${(n * 100).toFixed(0)}%`), e === J && (r = `#fff ${(n * 100).toFixed(0)}%`), `color-mix(in ${S}, ${t}, ${r})`;
|
|
1871
|
+
}
|
|
1872
|
+
return e(t, n);
|
|
1873
|
+
}
|
|
1874
|
+
if (Sr(t, [
|
|
1875
|
+
"Alert",
|
|
1876
|
+
"AppBar",
|
|
1877
|
+
"Avatar",
|
|
1878
|
+
"Button",
|
|
1879
|
+
"Chip",
|
|
1880
|
+
"FilledInput",
|
|
1881
|
+
"Input",
|
|
1882
|
+
"LinearProgress",
|
|
1883
|
+
"Skeleton",
|
|
1884
|
+
"Slider",
|
|
1885
|
+
"SnackbarContent",
|
|
1886
|
+
"SpeedDialAction",
|
|
1887
|
+
"StepConnector",
|
|
1888
|
+
"StepContent",
|
|
1889
|
+
"Switch",
|
|
1890
|
+
"TableCell",
|
|
1891
|
+
"Tooltip"
|
|
1892
|
+
]), t.mode === "light") {
|
|
1893
|
+
X(t.Alert, "errorColor", r(q, c ? h("palette-error-light") : t.error.light, .6)), X(t.Alert, "infoColor", r(q, c ? h("palette-info-light") : t.info.light, .6)), X(t.Alert, "successColor", r(q, c ? h("palette-success-light") : t.success.light, .6)), X(t.Alert, "warningColor", r(q, c ? h("palette-warning-light") : t.warning.light, .6)), X(t.Alert, "errorFilledBg", n("palette-error-main")), X(t.Alert, "infoFilledBg", n("palette-info-main")), X(t.Alert, "successFilledBg", n("palette-success-main")), X(t.Alert, "warningFilledBg", n("palette-warning-main")), X(t.Alert, "errorFilledColor", $(() => t.getContrastText(t.error.main))), X(t.Alert, "infoFilledColor", $(() => t.getContrastText(t.info.main))), X(t.Alert, "successFilledColor", $(() => t.getContrastText(t.success.main))), X(t.Alert, "warningFilledColor", $(() => t.getContrastText(t.warning.main))), X(t.Alert, "errorStandardBg", r(J, c ? h("palette-error-light") : t.error.light, .9)), X(t.Alert, "infoStandardBg", r(J, c ? h("palette-info-light") : t.info.light, .9)), X(t.Alert, "successStandardBg", r(J, c ? h("palette-success-light") : t.success.light, .9)), X(t.Alert, "warningStandardBg", r(J, c ? h("palette-warning-light") : t.warning.light, .9)), X(t.Alert, "errorIconColor", n("palette-error-main")), X(t.Alert, "infoIconColor", n("palette-info-main")), X(t.Alert, "successIconColor", n("palette-success-main")), X(t.Alert, "warningIconColor", n("palette-warning-main")), X(t.AppBar, "defaultBg", n("palette-grey-100")), X(t.Avatar, "defaultBg", n("palette-grey-400")), X(t.Button, "inheritContainedBg", n("palette-grey-300")), X(t.Button, "inheritContainedHoverBg", n("palette-grey-A100")), X(t.Chip, "defaultBorder", n("palette-grey-400")), X(t.Chip, "defaultAvatarColor", n("palette-grey-700")), X(t.Chip, "defaultIconColor", n("palette-grey-700")), X(t.FilledInput, "bg", "rgba(0, 0, 0, 0.06)"), X(t.FilledInput, "hoverBg", "rgba(0, 0, 0, 0.09)"), X(t.FilledInput, "disabledBg", "rgba(0, 0, 0, 0.12)"), X(t.Input, "autofillWebkitBoxShadow", "none"), X(t.LinearProgress, "primaryBg", r(J, c ? h("palette-primary-main") : t.primary.main, .62)), X(t.LinearProgress, "secondaryBg", r(J, c ? h("palette-secondary-main") : t.secondary.main, .62)), X(t.LinearProgress, "errorBg", r(J, c ? h("palette-error-main") : t.error.main, .62)), X(t.LinearProgress, "infoBg", r(J, c ? h("palette-info-main") : t.info.main, .62)), X(t.LinearProgress, "successBg", r(J, c ? h("palette-success-main") : t.success.main, .62)), X(t.LinearProgress, "warningBg", r(J, c ? h("palette-warning-light") : t.warning.main, .62)), X(t.Skeleton, "bg", S ? r(K, c ? h("palette-text-primary") : t.text.primary, .11) : `rgba(${n("palette-text-primaryChannel")} / 0.11)`), X(t.Slider, "primaryTrack", r(J, c ? h("palette-primary-main") : t.primary.main, .62)), X(t.Slider, "secondaryTrack", r(J, c ? h("palette-secondary-main") : t.secondary.main, .62)), X(t.Slider, "errorTrack", r(J, c ? h("palette-error-main") : t.error.main, .62)), X(t.Slider, "infoTrack", r(J, c ? h("palette-info-main") : t.info.main, .62)), X(t.Slider, "successTrack", r(J, c ? h("palette-success-main") : t.success.main, .62)), X(t.Slider, "warningTrack", r(J, c ? h("palette-warning-main") : t.warning.main, .62));
|
|
1894
|
+
let e = S ? r(q, c ? h("palette-background-default") : t.background.default, .6825) : tn(t.background.default, .8);
|
|
1895
|
+
X(t.SnackbarContent, "bg", e), X(t.SnackbarContent, "color", $(() => S ? yn.text.primary : t.getContrastText(e))), X(t.SpeedDialAction, "fabHoverBg", tn(t.background.paper, .15)), X(t.StepConnector, "border", n("palette-grey-400")), X(t.StepContent, "border", n("palette-grey-400")), X(t.Switch, "defaultColor", n("palette-common-white")), X(t.Switch, "defaultDisabledColor", n("palette-grey-100")), X(t.Switch, "primaryDisabledColor", r(J, c ? h("palette-primary-main") : t.primary.main, .62)), X(t.Switch, "secondaryDisabledColor", r(J, c ? h("palette-secondary-main") : t.secondary.main, .62)), X(t.Switch, "errorDisabledColor", r(J, c ? h("palette-error-main") : t.error.main, .62)), X(t.Switch, "infoDisabledColor", r(J, c ? h("palette-info-main") : t.info.main, .62)), X(t.Switch, "successDisabledColor", r(J, c ? h("palette-success-main") : t.success.main, .62)), X(t.Switch, "warningDisabledColor", r(J, c ? h("palette-warning-main") : t.warning.main, .62)), X(t.TableCell, "border", r(J, K(c ? h("palette-divider") : t.divider, 1), .88)), X(t.Tooltip, "bg", r(K, c ? h("palette-grey-700") : t.grey[700], .92));
|
|
1896
|
+
}
|
|
1897
|
+
if (t.mode === "dark") {
|
|
1898
|
+
X(t.Alert, "errorColor", r(J, c ? h("palette-error-light") : t.error.light, .6)), X(t.Alert, "infoColor", r(J, c ? h("palette-info-light") : t.info.light, .6)), X(t.Alert, "successColor", r(J, c ? h("palette-success-light") : t.success.light, .6)), X(t.Alert, "warningColor", r(J, c ? h("palette-warning-light") : t.warning.light, .6)), X(t.Alert, "errorFilledBg", n("palette-error-dark")), X(t.Alert, "infoFilledBg", n("palette-info-dark")), X(t.Alert, "successFilledBg", n("palette-success-dark")), X(t.Alert, "warningFilledBg", n("palette-warning-dark")), X(t.Alert, "errorFilledColor", $(() => t.getContrastText(t.error.dark))), X(t.Alert, "infoFilledColor", $(() => t.getContrastText(t.info.dark))), X(t.Alert, "successFilledColor", $(() => t.getContrastText(t.success.dark))), X(t.Alert, "warningFilledColor", $(() => t.getContrastText(t.warning.dark))), X(t.Alert, "errorStandardBg", r(q, c ? h("palette-error-light") : t.error.light, .9)), X(t.Alert, "infoStandardBg", r(q, c ? h("palette-info-light") : t.info.light, .9)), X(t.Alert, "successStandardBg", r(q, c ? h("palette-success-light") : t.success.light, .9)), X(t.Alert, "warningStandardBg", r(q, c ? h("palette-warning-light") : t.warning.light, .9)), X(t.Alert, "errorIconColor", n("palette-error-main")), X(t.Alert, "infoIconColor", n("palette-info-main")), X(t.Alert, "successIconColor", n("palette-success-main")), X(t.Alert, "warningIconColor", n("palette-warning-main")), X(t.AppBar, "defaultBg", n("palette-grey-900")), X(t.AppBar, "darkBg", n("palette-background-paper")), X(t.AppBar, "darkColor", n("palette-text-primary")), X(t.Avatar, "defaultBg", n("palette-grey-600")), X(t.Button, "inheritContainedBg", n("palette-grey-800")), X(t.Button, "inheritContainedHoverBg", n("palette-grey-700")), X(t.Chip, "defaultBorder", n("palette-grey-700")), X(t.Chip, "defaultAvatarColor", n("palette-grey-300")), X(t.Chip, "defaultIconColor", n("palette-grey-300")), X(t.FilledInput, "bg", "rgba(255, 255, 255, 0.09)"), X(t.FilledInput, "hoverBg", "rgba(255, 255, 255, 0.13)"), X(t.FilledInput, "disabledBg", "rgba(255, 255, 255, 0.12)"), X(t.Input, "autofillWebkitBoxShadow", "0 0 0 100px #266798 inset"), X(t.LinearProgress, "primaryBg", r(q, c ? h("palette-primary-main") : t.primary.main, .5)), X(t.LinearProgress, "secondaryBg", r(q, c ? h("palette-secondary-main") : t.secondary.main, .5)), X(t.LinearProgress, "errorBg", r(q, c ? h("palette-error-main") : t.error.main, .5)), X(t.LinearProgress, "infoBg", r(q, c ? h("palette-info-main") : t.info.main, .5)), X(t.LinearProgress, "successBg", r(q, c ? h("palette-success-main") : t.success.main, .5)), X(t.LinearProgress, "warningBg", r(q, c ? h("palette-warning-main") : t.warning.main, .5)), X(t.Skeleton, "bg", S ? r(K, c ? h("palette-text-primary") : t.text.primary, .13) : `rgba(${n("palette-text-primaryChannel")} / 0.13)`), X(t.Slider, "primaryTrack", r(q, c ? h("palette-primary-main") : t.primary.main, .5)), X(t.Slider, "secondaryTrack", r(q, c ? h("palette-secondary-main") : t.secondary.main, .5)), X(t.Slider, "errorTrack", r(q, c ? h("palette-error-main") : t.error.main, .5)), X(t.Slider, "infoTrack", r(q, c ? h("palette-info-main") : t.info.main, .5)), X(t.Slider, "successTrack", r(q, c ? h("palette-success-main") : t.success.main, .5)), X(t.Slider, "warningTrack", r(q, c ? h("palette-warning-light") : t.warning.main, .5));
|
|
1899
|
+
let e = S ? r(J, c ? h("palette-background-default") : t.background.default, .985) : tn(t.background.default, .98);
|
|
1900
|
+
X(t.SnackbarContent, "bg", e), X(t.SnackbarContent, "color", $(() => S ? _n.text.primary : t.getContrastText(e))), X(t.SpeedDialAction, "fabHoverBg", tn(t.background.paper, .15)), X(t.StepConnector, "border", n("palette-grey-600")), X(t.StepContent, "border", n("palette-grey-600")), X(t.Switch, "defaultColor", n("palette-grey-300")), X(t.Switch, "defaultDisabledColor", n("palette-grey-600")), X(t.Switch, "primaryDisabledColor", r(q, c ? h("palette-primary-main") : t.primary.main, .55)), X(t.Switch, "secondaryDisabledColor", r(q, c ? h("palette-secondary-main") : t.secondary.main, .55)), X(t.Switch, "errorDisabledColor", r(q, c ? h("palette-error-main") : t.error.main, .55)), X(t.Switch, "infoDisabledColor", r(q, c ? h("palette-info-main") : t.info.main, .55)), X(t.Switch, "successDisabledColor", r(q, c ? h("palette-success-main") : t.success.main, .55)), X(t.Switch, "warningDisabledColor", r(q, c ? h("palette-warning-light") : t.warning.main, .55)), X(t.TableCell, "border", r(q, K(c ? h("palette-divider") : t.divider, 1), .68)), X(t.Tooltip, "bg", r(K, c ? h("palette-grey-700") : t.grey[700], .92));
|
|
1901
|
+
}
|
|
1902
|
+
c || (Q(t.background, "default"), Q(t.background, "paper"), Q(t.common, "background"), Q(t.common, "onBackground"), Q(t, "divider")), Object.keys(t).forEach((e) => {
|
|
1903
|
+
let n = t[e];
|
|
1904
|
+
e !== "tonalOffset" && !c && n && typeof n == "object" && (n.main && X(t[e], "mainChannel", G(Z(n.main))), n.light && X(t[e], "lightChannel", G(Z(n.light))), n.dark && X(t[e], "darkChannel", G(Z(n.dark))), n.contrastText && X(t[e], "contrastTextChannel", G(Z(n.contrastText))), e === "text" && (Q(t[e], "primary"), Q(t[e], "secondary")), e === "action" && (n.active && Q(t[e], "active"), n.selected && Q(t[e], "selected")));
|
|
1905
|
+
});
|
|
1906
|
+
}), w = t.reduce((e, t) => a(e, t), w);
|
|
1907
|
+
let T = In(e.focusVisible, t);
|
|
1908
|
+
T != null && T !== !1 && (w.focusVisible = Rn(T, h("palette-primary-main")));
|
|
1909
|
+
let E = {
|
|
1910
|
+
prefix: s,
|
|
1911
|
+
disableCssColorScheme: o,
|
|
1912
|
+
shouldSkipGeneratingVar: l,
|
|
1913
|
+
getSelector: xr(w),
|
|
1914
|
+
enableContrastVars: c
|
|
1915
|
+
}, { vars: D, generateThemeVars: ee, generateStyleSheets: te } = mn(w, E);
|
|
1916
|
+
return w.vars = D, Object.entries(w.colorSchemes[w.defaultColorScheme]).forEach(([e, t]) => {
|
|
1917
|
+
w[e] = t;
|
|
1918
|
+
}), w.generateThemeVars = ee, w.generateStyleSheets = te, w.generateSpacing = function() {
|
|
1919
|
+
return rt(f.spacing, Ze(this));
|
|
1920
|
+
}, w.getColorSchemeSelector = hn(u), w.spacing = w.generateSpacing(), w.shouldSkipGeneratingVar = l, w.unstable_sxConfig = {
|
|
1921
|
+
...Dt,
|
|
1922
|
+
...f?.unstable_sxConfig
|
|
1923
|
+
}, w.unstable_sx = function(e) {
|
|
1924
|
+
return H({
|
|
1925
|
+
sx: e,
|
|
1926
|
+
theme: this
|
|
1927
|
+
});
|
|
1928
|
+
}, w.internal_cache = {}, w.toRuntimeSource = sr, w;
|
|
1929
|
+
}
|
|
1930
|
+
function Dr(e, t, n) {
|
|
1931
|
+
e.colorSchemes && n && (e.colorSchemes[t] = {
|
|
1932
|
+
...n !== !0 && n,
|
|
1933
|
+
palette: kn({
|
|
1934
|
+
...n === !0 ? {} : n.palette,
|
|
1935
|
+
mode: t
|
|
1936
|
+
})
|
|
1937
|
+
});
|
|
1938
|
+
}
|
|
1939
|
+
function Or(e = {}, ...t) {
|
|
1940
|
+
let { palette: n, cssVariables: r = !1, colorSchemes: i = n ? void 0 : { light: !0 }, defaultColorScheme: a = n?.mode, ...o } = e, s = a || "light", c = i?.[s], l = {
|
|
1941
|
+
...i,
|
|
1942
|
+
...n ? { [s]: {
|
|
1943
|
+
...typeof c != "boolean" && c,
|
|
1944
|
+
palette: n
|
|
1945
|
+
} } : void 0
|
|
1946
|
+
};
|
|
1947
|
+
if (r === !1) {
|
|
1948
|
+
if (!("colorSchemes" in e)) return pr(e, ...t);
|
|
1949
|
+
let r = n;
|
|
1950
|
+
"palette" in e || l[s] && (l[s] === !0 ? s === "dark" && (r = { mode: "dark" }) : r = l[s].palette);
|
|
1951
|
+
let i = pr({
|
|
1952
|
+
...e,
|
|
1953
|
+
palette: r
|
|
1954
|
+
}, ...t);
|
|
1955
|
+
if (i.defaultColorScheme = s, i.colorSchemes = l, i.palette.mode === "light" && (i.colorSchemes.light = {
|
|
1956
|
+
...l.light !== !0 && l.light,
|
|
1957
|
+
palette: i.palette
|
|
1958
|
+
}, Dr(i, "dark", l.dark)), i.palette.mode === "dark" && (i.colorSchemes.dark = {
|
|
1959
|
+
...l.dark !== !0 && l.dark,
|
|
1960
|
+
palette: i.palette
|
|
1961
|
+
}, Dr(i, "light", l.light)), i.focusVisible != null && i.focusVisible !== !1) {
|
|
1962
|
+
let n = i.focusVisible, r = In(e.focusVisible, t), a = r && typeof r == "object" ? r.outlineColor : void 0;
|
|
1963
|
+
if (!a || Ln(r) && a === i.palette.primary.main) {
|
|
1964
|
+
let { outlineColor: e, ...t } = n;
|
|
1965
|
+
n = t;
|
|
1966
|
+
}
|
|
1967
|
+
Object.keys(i.colorSchemes).forEach((e) => {
|
|
1968
|
+
let t = i.colorSchemes?.[e]?.palette;
|
|
1969
|
+
t?.primary && (i.colorSchemes[e].focusVisible = Rn(n, t.primary.main));
|
|
1970
|
+
});
|
|
1971
|
+
}
|
|
1972
|
+
return i;
|
|
1973
|
+
}
|
|
1974
|
+
return !n && !("light" in l) && s === "light" && (l.light = !0), Er({
|
|
1975
|
+
...o,
|
|
1976
|
+
colorSchemes: l,
|
|
1977
|
+
defaultColorScheme: s,
|
|
1978
|
+
...typeof r != "boolean" && r
|
|
1979
|
+
}, ...t);
|
|
1980
|
+
}
|
|
1981
|
+
var kr = Or();
|
|
1982
|
+
function Ar(e) {
|
|
1983
|
+
return e !== "ownerState" && e !== "theme" && e !== "sx" && e !== "as";
|
|
1984
|
+
}
|
|
1985
|
+
var jr = Vt({
|
|
1986
|
+
themeId: te,
|
|
1987
|
+
defaultTheme: kr,
|
|
1988
|
+
rootShouldForwardProp: (e) => Ar(e) && e !== "classes"
|
|
1989
|
+
}), Mr = sn;
|
|
1990
|
+
function Nr(e) {
|
|
1991
|
+
return an(e);
|
|
1992
|
+
}
|
|
1993
|
+
var Pr = c;
|
|
1994
|
+
function Fr(e) {
|
|
1995
|
+
return typeof e.main == "string";
|
|
1996
|
+
}
|
|
1997
|
+
function Ir(e, t = []) {
|
|
1998
|
+
if (!Fr(e)) return !1;
|
|
1999
|
+
for (let n of t) if (!e.hasOwnProperty(n) || typeof e[n] != "string") return !1;
|
|
2000
|
+
return !0;
|
|
2001
|
+
}
|
|
2002
|
+
function Lr(e = []) {
|
|
2003
|
+
return ([, t]) => t && Ir(t, e);
|
|
2004
|
+
}
|
|
2005
|
+
export { jr as a, Nt as c, ie as d, te as f, Mr as i, de as l, Pr as n, kr as o, Nr as r, Fn as s, Lr as t, fe as u };
|