@cgi-learning-hub/ui 1.0.0 → 1.1.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.
Files changed (170) hide show
  1. package/dist/Box-5x1F2S3-.cjs +1 -0
  2. package/dist/{Box-BHWJ-D81.js → Box-Bawb5zHX.js} +24 -23
  3. package/dist/Button-C__-QOJY.js +359 -0
  4. package/dist/Button-DKIRmOzf.cjs +1 -0
  5. package/dist/{ButtonBase-BpYorbzW.js → ButtonBase-4F5roLHd.js} +36 -37
  6. package/dist/ButtonBase-Bw3wq81v.cjs +75 -0
  7. package/dist/{CircularProgress-C8TogtEK.js → CircularProgress-BNazIBar.js} +30 -30
  8. package/dist/CircularProgress-WnNPMTjD.cjs +28 -0
  9. package/dist/DatePicker-B0jLSEvZ.cjs +19 -0
  10. package/dist/DatePicker-DGVeagTz.js +12663 -0
  11. package/dist/DefaultButton-F67BOmrx.js +258 -0
  12. package/dist/DefaultButton-y-mHSNFH.cjs +1 -0
  13. package/dist/{IconButton-Hsn7HKeI.js → IconButton-D_deQOvN.js} +15 -15
  14. package/dist/IconButton-DhWgsgQ7.cjs +2 -0
  15. package/dist/InputAdornment-DYqMrYJz.cjs +1 -0
  16. package/dist/InputAdornment-hNrnvXW9.js +153 -0
  17. package/dist/InputBase-BeZ70Fbf.cjs +3 -0
  18. package/dist/{InputBase-BdOkEcEz.js → InputBase-DNkF-TAp.js} +218 -217
  19. package/dist/Stack-BJ2ths-g.js +172 -0
  20. package/dist/Stack-BOcvai-O.cjs +1 -0
  21. package/dist/Tabs-CG428TT3.cjs +4 -0
  22. package/dist/{Tabs-C8ECGIYh.js → Tabs-CWujD0SK.js} +33 -33
  23. package/dist/{TextInput-CpnUc54E.js → TextField-DDmGQyEr.js} +3607 -3603
  24. package/dist/TextField-wYRnAj1v.cjs +12 -0
  25. package/dist/Tooltip-D42pzHKW.js +7463 -0
  26. package/dist/Tooltip-O30xWGZU.cjs +95 -0
  27. package/dist/{Typography-D9Jbc-Y5.js → Typography-B2XMXu83.js} +18 -18
  28. package/dist/Typography-DR_aF9lJ.cjs +1 -0
  29. package/dist/assets/index.css +1 -1
  30. package/dist/assets/styles.css +1 -1
  31. package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
  32. package/dist/components/Dropzone/Dropzone.d.ts +2 -3
  33. package/dist/components/Dropzone/Dropzone.es.js +212 -240
  34. package/dist/components/Loader/Loader.cjs.js +1 -1
  35. package/dist/components/Loader/Loader.d.ts +0 -1
  36. package/dist/components/Loader/Loader.es.js +9 -9
  37. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  38. package/dist/components/LoaderBackdrop/LoaderBackdrop.d.ts +0 -1
  39. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +1 -2
  40. package/dist/components/PaperHeader/PaperHeader.cjs.js +1 -0
  41. package/dist/components/PaperHeader/PaperHeader.d.ts +13 -0
  42. package/dist/components/PaperHeader/PaperHeader.es.js +41 -0
  43. package/dist/components/PaperHeader/PaperHeader.stories.cjs.js +1 -0
  44. package/dist/components/PaperHeader/PaperHeader.stories.d.ts +5 -0
  45. package/dist/components/PaperHeader/PaperHeader.stories.es.js +28 -0
  46. package/dist/components/PaperHeader/index.cjs.js +1 -0
  47. package/dist/components/PaperHeader/index.d.ts +2 -0
  48. package/dist/components/PaperHeader/index.es.js +4 -0
  49. package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
  50. package/dist/components/buttons/DefaultButton/DefaultButton.es.js +2 -2
  51. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
  52. package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +14 -14
  53. package/dist/components/buttons/DefaultButton/index.cjs.js +1 -1
  54. package/dist/components/buttons/DefaultButton/index.es.js +1 -1
  55. package/dist/components/buttons/IconButton.stories.cjs.js +1 -1
  56. package/dist/components/buttons/IconButton.stories.es.js +3 -3
  57. package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
  58. package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
  59. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
  60. package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +1 -1
  61. package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
  62. package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
  63. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
  64. package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +1 -1
  65. package/dist/components/buttons/index.cjs.js +1 -1
  66. package/dist/components/buttons/index.es.js +1 -1
  67. package/dist/components/feedback/Alert/Alert.d.ts +0 -1
  68. package/dist/components/feedback/QueryError/QueryError.cjs.js +1 -1
  69. package/dist/components/feedback/QueryError/QueryError.es.js +1 -1
  70. package/dist/components/index.cjs.js +1 -1
  71. package/dist/components/index.d.ts +37 -21
  72. package/dist/components/index.es.js +271 -186
  73. package/dist/components/inputs/PasswordInput/PasswordInput.cjs.js +1 -1
  74. package/dist/components/inputs/PasswordInput/PasswordInput.es.js +13 -15
  75. package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
  76. package/dist/components/inputs/SearchInput/SearchInput.es.js +36 -5
  77. package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -1
  78. package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +4 -4
  79. package/dist/components/inputs/SearchInput/index.cjs.js +1 -1
  80. package/dist/components/inputs/SearchInput/index.es.js +2 -2
  81. package/dist/components/inputs/TextInput/TextInput.cjs.js +1 -1
  82. package/dist/components/inputs/TextInput/TextInput.es.js +4 -3
  83. package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -1
  84. package/dist/components/inputs/TextInput/TextInput.stories.es.js +1 -1
  85. package/dist/components/inputs/TextInput/index.cjs.js +1 -1
  86. package/dist/components/inputs/TextInput/index.es.js +2 -2
  87. package/dist/components/inputs/index.cjs.js +1 -1
  88. package/dist/components/inputs/index.es.js +6 -6
  89. package/dist/components/lists/FileList/FileList.cjs.js +1 -1
  90. package/dist/components/lists/FileList/FileList.es.js +1 -1
  91. package/dist/components/lists/FileList/FileListItem.cjs.js +1 -1
  92. package/dist/components/lists/FileList/FileListItem.es.js +6 -6
  93. package/dist/components/lists/TabList.stories.cjs.js +1 -1
  94. package/dist/components/lists/TabList.stories.es.js +27 -26
  95. package/dist/components/pickers/DatePicker/DatePicker.cjs.js +1 -0
  96. package/dist/components/pickers/DatePicker/DatePicker.d.ts +8 -0
  97. package/dist/components/pickers/DatePicker/DatePicker.es.js +6 -0
  98. package/dist/components/pickers/DatePicker/DatePicker.stories.cjs.js +1 -0
  99. package/dist/components/pickers/DatePicker/DatePicker.stories.d.ts +5 -0
  100. package/dist/components/pickers/DatePicker/DatePicker.stories.es.js +16 -0
  101. package/dist/components/pickers/DatePicker/index.cjs.js +1 -0
  102. package/dist/components/pickers/DatePicker/index.d.ts +2 -0
  103. package/dist/components/pickers/DatePicker/index.es.js +4 -0
  104. package/dist/components/pickers/index.cjs.js +1 -0
  105. package/dist/components/pickers/index.d.ts +1 -0
  106. package/dist/components/pickers/index.es.js +4 -0
  107. package/dist/createStyled-CzVedz8V.js +142 -0
  108. package/dist/createStyled-LobpFGWo.cjs +1 -0
  109. package/dist/{createSvgIcon-BpzrJYC7.js → createSvgIcon-B8vHI3I6.js} +12 -12
  110. package/dist/createSvgIcon-BGm-SWUB.cjs +1 -0
  111. package/dist/createSvgIcon-CKlvKClV.cjs +2 -0
  112. package/dist/{createSvgIcon-CbXClqUM.js → createSvgIcon-DjuUwmEp.js} +21 -20
  113. package/dist/fr-By4s91yO.js +307 -0
  114. package/dist/fr-TRjulm1Q.cjs +1 -0
  115. package/dist/identifier-4KVhx666.cjs +50 -0
  116. package/dist/identifier-D-ng7Qqa.js +3047 -0
  117. package/dist/index.cjs.js +1 -1
  118. package/dist/index.es.js +273 -189
  119. package/dist/refType-BhXrhWFB.cjs +1 -0
  120. package/dist/{refType-CD9RZ5PF.js → refType-COGEdfch.js} +1 -1
  121. package/dist/styled-ZF_yhfMW.cjs +17 -0
  122. package/dist/styled-xiAudcD_.js +533 -0
  123. package/dist/useForkRef-CGd3Nhyb.cjs +1 -0
  124. package/dist/{useIsFocusVisible-B2ErvDHn.cjs → useIsFocusVisible-Bv_7uvif.cjs} +1 -1
  125. package/dist/{useIsFocusVisible-BsjI7Zxf.js → useIsFocusVisible-DhASXQ4o.js} +1 -1
  126. package/dist/useTheme-B5RCz7rY.cjs +1 -0
  127. package/dist/useTheme-CjBTq22m.js +18 -0
  128. package/dist/{useSlotProps-BCdUhJUO.js → useTheme-iNHILPzK.js} +41 -29
  129. package/dist/useTheme-kqsjFBnC.cjs +1 -0
  130. package/dist/useThemeProps-B-Oq4Y2j.cjs +1 -0
  131. package/dist/useThemeProps-BHAsCmc4.cjs +1 -0
  132. package/dist/useThemeProps-BM4fCFq5.js +27 -0
  133. package/dist/useThemeProps-BVvSbkPP.js +17 -0
  134. package/dist/{useTimeout-Dokw0W_A.js → useTimeout-BdvDipeg.js} +1 -1
  135. package/dist/{useTimeout-D8rbe5ty.cjs → useTimeout-XUWYBnl6.cjs} +1 -1
  136. package/package.json +18 -16
  137. package/dist/Box-DjpT-6Yv.cjs +0 -1
  138. package/dist/ButtonBase-BHN-4x4u.cjs +0 -75
  139. package/dist/CircularProgress-CjET2rvP.cjs +0 -28
  140. package/dist/DefaultButton-BoDg7xMm.cjs +0 -1
  141. package/dist/DefaultButton-y5BL9CKZ.js +0 -601
  142. package/dist/IconButton-fqTVX40x.cjs +0 -2
  143. package/dist/InputBase-DLc7Nf1T.cjs +0 -3
  144. package/dist/LocalizationProvider-B28kINsn.js +0 -575
  145. package/dist/LocalizationProvider-U4FHK15N.cjs +0 -5
  146. package/dist/SearchInput-B_Mgl-CJ.cjs +0 -1
  147. package/dist/SearchInput-DVccMSI6.js +0 -186
  148. package/dist/Tabs-Cij7O-J8.cjs +0 -4
  149. package/dist/TextInput-5zTkdX7s.cjs +0 -12
  150. package/dist/TimePicker-BRY05Sej.cjs +0 -73
  151. package/dist/TimePicker-CLolXFl8.js +0 -22074
  152. package/dist/Typography-6WB4M4zs.cjs +0 -1
  153. package/dist/components/LocalizationProvider/LocalizationProvider.cjs.js +0 -1
  154. package/dist/components/LocalizationProvider/LocalizationProvider.d.ts +0 -7
  155. package/dist/components/LocalizationProvider/LocalizationProvider.es.js +0 -6
  156. package/dist/components/LocalizationProvider/index.cjs.js +0 -1
  157. package/dist/components/LocalizationProvider/index.d.ts +0 -2
  158. package/dist/components/LocalizationProvider/index.es.js +0 -4
  159. package/dist/createSvgIcon-DQmDu_xr.cjs +0 -2
  160. package/dist/createSvgIcon-O41BSqQe.cjs +0 -1
  161. package/dist/fr-LokUOTE7.cjs +0 -1
  162. package/dist/fr-ndKV9IhC.js +0 -335
  163. package/dist/refType-DR4z34r8.cjs +0 -1
  164. package/dist/styled-D6_yEe4a.cjs +0 -26
  165. package/dist/styled-DSGBDqKV.js +0 -1218
  166. package/dist/useForkRef-DfdM2MN5.cjs +0 -1
  167. package/dist/useSlotProps-CXRrw38p.cjs +0 -1
  168. package/dist/useThemeProps-BktqG0To.cjs +0 -42
  169. package/dist/useThemeProps-DJpU2Yr7.js +0 -2428
  170. package/dist/{useForkRef-CQ5u1_mH.js → useForkRef-DwN_Iz9R.js} +1 -1
@@ -1,2428 +0,0 @@
1
- import * as Ut from "react";
2
- import { ThemeContext as Wt } from "@emotion/react";
3
- function pe(e) {
4
- let t = "https://mui.com/production-error/?code=" + e;
5
- for (let r = 1; r < arguments.length; r += 1)
6
- t += "&args[]=" + encodeURIComponent(arguments[r]);
7
- return "Minified MUI error #" + e + "; visit " + t + " for the full message.";
8
- }
9
- const zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10
- __proto__: null,
11
- default: pe
12
- }, Symbol.toStringTag, { value: "Module" }));
13
- var Hn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
14
- function qt(e) {
15
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
16
- }
17
- function Et(e) {
18
- if (e.__esModule)
19
- return e;
20
- var t = e.default;
21
- if (typeof t == "function") {
22
- var r = function n() {
23
- return this instanceof n ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
24
- };
25
- r.prototype = t.prototype;
26
- } else
27
- r = {};
28
- return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
29
- var o = Object.getOwnPropertyDescriptor(e, n);
30
- Object.defineProperty(r, n, o.get ? o : {
31
- enumerable: !0,
32
- get: function() {
33
- return e[n];
34
- }
35
- });
36
- }), r;
37
- }
38
- var Fe = { exports: {} }, Oe = { exports: {} }, P = {};
39
- /** @license React v16.13.1
40
- * react-is.production.min.js
41
- *
42
- * Copyright (c) Facebook, Inc. and its affiliates.
43
- *
44
- * This source code is licensed under the MIT license found in the
45
- * LICENSE file in the root directory of this source tree.
46
- */
47
- var rt;
48
- function Lt() {
49
- if (rt)
50
- return P;
51
- rt = 1;
52
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
53
- function N(y) {
54
- if (typeof y == "object" && y !== null) {
55
- var Z = y.$$typeof;
56
- switch (Z) {
57
- case t:
58
- switch (y = y.type, y) {
59
- case l:
60
- case f:
61
- case n:
62
- case i:
63
- case o:
64
- case h:
65
- return y;
66
- default:
67
- switch (y = y && y.$$typeof, y) {
68
- case u:
69
- case g:
70
- case v:
71
- case b:
72
- case s:
73
- return y;
74
- default:
75
- return Z;
76
- }
77
- }
78
- case r:
79
- return Z;
80
- }
81
- }
82
- }
83
- function W(y) {
84
- return N(y) === f;
85
- }
86
- return P.AsyncMode = l, P.ConcurrentMode = f, P.ContextConsumer = u, P.ContextProvider = s, P.Element = t, P.ForwardRef = g, P.Fragment = n, P.Lazy = v, P.Memo = b, P.Portal = r, P.Profiler = i, P.StrictMode = o, P.Suspense = h, P.isAsyncMode = function(y) {
87
- return W(y) || N(y) === l;
88
- }, P.isConcurrentMode = W, P.isContextConsumer = function(y) {
89
- return N(y) === u;
90
- }, P.isContextProvider = function(y) {
91
- return N(y) === s;
92
- }, P.isElement = function(y) {
93
- return typeof y == "object" && y !== null && y.$$typeof === t;
94
- }, P.isForwardRef = function(y) {
95
- return N(y) === g;
96
- }, P.isFragment = function(y) {
97
- return N(y) === n;
98
- }, P.isLazy = function(y) {
99
- return N(y) === v;
100
- }, P.isMemo = function(y) {
101
- return N(y) === b;
102
- }, P.isPortal = function(y) {
103
- return N(y) === r;
104
- }, P.isProfiler = function(y) {
105
- return N(y) === i;
106
- }, P.isStrictMode = function(y) {
107
- return N(y) === o;
108
- }, P.isSuspense = function(y) {
109
- return N(y) === h;
110
- }, P.isValidElementType = function(y) {
111
- return typeof y == "string" || typeof y == "function" || y === n || y === f || y === i || y === o || y === h || y === c || typeof y == "object" && y !== null && (y.$$typeof === v || y.$$typeof === b || y.$$typeof === s || y.$$typeof === u || y.$$typeof === g || y.$$typeof === T || y.$$typeof === j || y.$$typeof === F || y.$$typeof === d);
112
- }, P.typeOf = N, P;
113
- }
114
- var A = {};
115
- /** @license React v16.13.1
116
- * react-is.development.js
117
- *
118
- * Copyright (c) Facebook, Inc. and its affiliates.
119
- *
120
- * This source code is licensed under the MIT license found in the
121
- * LICENSE file in the root directory of this source tree.
122
- */
123
- var nt;
124
- function Kt() {
125
- return nt || (nt = 1, process.env.NODE_ENV !== "production" && function() {
126
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, f = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, c = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, v = e ? Symbol.for("react.lazy") : 60116, d = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, j = e ? Symbol.for("react.responder") : 60118, F = e ? Symbol.for("react.scope") : 60119;
127
- function N(p) {
128
- return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
129
- p === n || p === f || p === i || p === o || p === h || p === c || typeof p == "object" && p !== null && (p.$$typeof === v || p.$$typeof === b || p.$$typeof === s || p.$$typeof === u || p.$$typeof === g || p.$$typeof === T || p.$$typeof === j || p.$$typeof === F || p.$$typeof === d);
130
- }
131
- function W(p) {
132
- if (typeof p == "object" && p !== null) {
133
- var H = p.$$typeof;
134
- switch (H) {
135
- case t:
136
- var ve = p.type;
137
- switch (ve) {
138
- case l:
139
- case f:
140
- case n:
141
- case i:
142
- case o:
143
- case h:
144
- return ve;
145
- default:
146
- var tt = ve && ve.$$typeof;
147
- switch (tt) {
148
- case u:
149
- case g:
150
- case v:
151
- case b:
152
- case s:
153
- return tt;
154
- default:
155
- return H;
156
- }
157
- }
158
- case r:
159
- return H;
160
- }
161
- }
162
- }
163
- var y = l, Z = f, Re = u, je = s, Ie = t, ke = g, he = n, Me = v, De = b, ee = r, Ne = i, G = o, Q = h, be = !1;
164
- function Be(p) {
165
- return be || (be = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), a(p) || W(p) === l;
166
- }
167
- function a(p) {
168
- return W(p) === f;
169
- }
170
- function m(p) {
171
- return W(p) === u;
172
- }
173
- function S(p) {
174
- return W(p) === s;
175
- }
176
- function x(p) {
177
- return typeof p == "object" && p !== null && p.$$typeof === t;
178
- }
179
- function O(p) {
180
- return W(p) === g;
181
- }
182
- function w(p) {
183
- return W(p) === n;
184
- }
185
- function E(p) {
186
- return W(p) === v;
187
- }
188
- function _(p) {
189
- return W(p) === b;
190
- }
191
- function C(p) {
192
- return W(p) === r;
193
- }
194
- function R(p) {
195
- return W(p) === i;
196
- }
197
- function $(p) {
198
- return W(p) === o;
199
- }
200
- function z(p) {
201
- return W(p) === h;
202
- }
203
- A.AsyncMode = y, A.ConcurrentMode = Z, A.ContextConsumer = Re, A.ContextProvider = je, A.Element = Ie, A.ForwardRef = ke, A.Fragment = he, A.Lazy = Me, A.Memo = De, A.Portal = ee, A.Profiler = Ne, A.StrictMode = G, A.Suspense = Q, A.isAsyncMode = Be, A.isConcurrentMode = a, A.isContextConsumer = m, A.isContextProvider = S, A.isElement = x, A.isForwardRef = O, A.isFragment = w, A.isLazy = E, A.isMemo = _, A.isPortal = C, A.isProfiler = R, A.isStrictMode = $, A.isSuspense = z, A.isValidElementType = N, A.typeOf = W;
204
- }()), A;
205
- }
206
- var ot;
207
- function Tt() {
208
- return ot || (ot = 1, process.env.NODE_ENV === "production" ? Oe.exports = Lt() : Oe.exports = Kt()), Oe.exports;
209
- }
210
- /*
211
- object-assign
212
- (c) Sindre Sorhus
213
- @license MIT
214
- */
215
- var Ue, it;
216
- function Yt() {
217
- if (it)
218
- return Ue;
219
- it = 1;
220
- var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
221
- function n(i) {
222
- if (i == null)
223
- throw new TypeError("Object.assign cannot be called with null or undefined");
224
- return Object(i);
225
- }
226
- function o() {
227
- try {
228
- if (!Object.assign)
229
- return !1;
230
- var i = new String("abc");
231
- if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
232
- return !1;
233
- for (var s = {}, u = 0; u < 10; u++)
234
- s["_" + String.fromCharCode(u)] = u;
235
- var l = Object.getOwnPropertyNames(s).map(function(g) {
236
- return s[g];
237
- });
238
- if (l.join("") !== "0123456789")
239
- return !1;
240
- var f = {};
241
- return "abcdefghijklmnopqrst".split("").forEach(function(g) {
242
- f[g] = g;
243
- }), Object.keys(Object.assign({}, f)).join("") === "abcdefghijklmnopqrst";
244
- } catch {
245
- return !1;
246
- }
247
- }
248
- return Ue = o() ? Object.assign : function(i, s) {
249
- for (var u, l = n(i), f, g = 1; g < arguments.length; g++) {
250
- u = Object(arguments[g]);
251
- for (var h in u)
252
- t.call(u, h) && (l[h] = u[h]);
253
- if (e) {
254
- f = e(u);
255
- for (var c = 0; c < f.length; c++)
256
- r.call(u, f[c]) && (l[f[c]] = u[f[c]]);
257
- }
258
- }
259
- return l;
260
- }, Ue;
261
- }
262
- var We, st;
263
- function Ge() {
264
- if (st)
265
- return We;
266
- st = 1;
267
- var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
268
- return We = e, We;
269
- }
270
- var ze, at;
271
- function xt() {
272
- return at || (at = 1, ze = Function.call.bind(Object.prototype.hasOwnProperty)), ze;
273
- }
274
- var qe, ut;
275
- function Ft() {
276
- if (ut)
277
- return qe;
278
- ut = 1;
279
- var e = function() {
280
- };
281
- if (process.env.NODE_ENV !== "production") {
282
- var t = Ge(), r = {}, n = xt();
283
- e = function(i) {
284
- var s = "Warning: " + i;
285
- typeof console < "u" && console.error(s);
286
- try {
287
- throw new Error(s);
288
- } catch {
289
- }
290
- };
291
- }
292
- function o(i, s, u, l, f) {
293
- if (process.env.NODE_ENV !== "production") {
294
- for (var g in i)
295
- if (n(i, g)) {
296
- var h;
297
- try {
298
- if (typeof i[g] != "function") {
299
- var c = Error(
300
- (l || "React class") + ": " + u + " type `" + g + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[g] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
301
- );
302
- throw c.name = "Invariant Violation", c;
303
- }
304
- h = i[g](s, g, l, u, null, t);
305
- } catch (v) {
306
- h = v;
307
- }
308
- if (h && !(h instanceof Error) && e(
309
- (l || "React class") + ": type specification of " + u + " `" + g + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
310
- ), h instanceof Error && !(h.message in r)) {
311
- r[h.message] = !0;
312
- var b = f ? f() : "";
313
- e(
314
- "Failed " + u + " type: " + h.message + (b ?? "")
315
- );
316
- }
317
- }
318
- }
319
- }
320
- return o.resetWarningCache = function() {
321
- process.env.NODE_ENV !== "production" && (r = {});
322
- }, qe = o, qe;
323
- }
324
- var Le, ct;
325
- function Gt() {
326
- if (ct)
327
- return Le;
328
- ct = 1;
329
- var e = Tt(), t = Yt(), r = Ge(), n = xt(), o = Ft(), i = function() {
330
- };
331
- process.env.NODE_ENV !== "production" && (i = function(u) {
332
- var l = "Warning: " + u;
333
- typeof console < "u" && console.error(l);
334
- try {
335
- throw new Error(l);
336
- } catch {
337
- }
338
- });
339
- function s() {
340
- return null;
341
- }
342
- return Le = function(u, l) {
343
- var f = typeof Symbol == "function" && Symbol.iterator, g = "@@iterator";
344
- function h(a) {
345
- var m = a && (f && a[f] || a[g]);
346
- if (typeof m == "function")
347
- return m;
348
- }
349
- var c = "<<anonymous>>", b = {
350
- array: j("array"),
351
- bigint: j("bigint"),
352
- bool: j("boolean"),
353
- func: j("function"),
354
- number: j("number"),
355
- object: j("object"),
356
- string: j("string"),
357
- symbol: j("symbol"),
358
- any: F(),
359
- arrayOf: N,
360
- element: W(),
361
- elementType: y(),
362
- instanceOf: Z,
363
- node: ke(),
364
- objectOf: je,
365
- oneOf: Re,
366
- oneOfType: Ie,
367
- shape: Me,
368
- exact: De
369
- };
370
- function v(a, m) {
371
- return a === m ? a !== 0 || 1 / a === 1 / m : a !== a && m !== m;
372
- }
373
- function d(a, m) {
374
- this.message = a, this.data = m && typeof m == "object" ? m : {}, this.stack = "";
375
- }
376
- d.prototype = Error.prototype;
377
- function T(a) {
378
- if (process.env.NODE_ENV !== "production")
379
- var m = {}, S = 0;
380
- function x(w, E, _, C, R, $, z) {
381
- if (C = C || c, $ = $ || _, z !== r) {
382
- if (l) {
383
- var p = new Error(
384
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
385
- );
386
- throw p.name = "Invariant Violation", p;
387
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
388
- var H = C + ":" + _;
389
- !m[H] && // Avoid spamming the console because they are often not actionable except for lib authors
390
- S < 3 && (i(
391
- "You are manually calling a React.PropTypes validation function for the `" + $ + "` prop on `" + C + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
392
- ), m[H] = !0, S++);
393
- }
394
- }
395
- return E[_] == null ? w ? E[_] === null ? new d("The " + R + " `" + $ + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new d("The " + R + " `" + $ + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : a(E, _, C, R, $);
396
- }
397
- var O = x.bind(null, !1);
398
- return O.isRequired = x.bind(null, !0), O;
399
- }
400
- function j(a) {
401
- function m(S, x, O, w, E, _) {
402
- var C = S[x], R = G(C);
403
- if (R !== a) {
404
- var $ = Q(C);
405
- return new d(
406
- "Invalid " + w + " `" + E + "` of type " + ("`" + $ + "` supplied to `" + O + "`, expected ") + ("`" + a + "`."),
407
- { expectedType: a }
408
- );
409
- }
410
- return null;
411
- }
412
- return T(m);
413
- }
414
- function F() {
415
- return T(s);
416
- }
417
- function N(a) {
418
- function m(S, x, O, w, E) {
419
- if (typeof a != "function")
420
- return new d("Property `" + E + "` of component `" + O + "` has invalid PropType notation inside arrayOf.");
421
- var _ = S[x];
422
- if (!Array.isArray(_)) {
423
- var C = G(_);
424
- return new d("Invalid " + w + " `" + E + "` of type " + ("`" + C + "` supplied to `" + O + "`, expected an array."));
425
- }
426
- for (var R = 0; R < _.length; R++) {
427
- var $ = a(_, R, O, w, E + "[" + R + "]", r);
428
- if ($ instanceof Error)
429
- return $;
430
- }
431
- return null;
432
- }
433
- return T(m);
434
- }
435
- function W() {
436
- function a(m, S, x, O, w) {
437
- var E = m[S];
438
- if (!u(E)) {
439
- var _ = G(E);
440
- return new d("Invalid " + O + " `" + w + "` of type " + ("`" + _ + "` supplied to `" + x + "`, expected a single ReactElement."));
441
- }
442
- return null;
443
- }
444
- return T(a);
445
- }
446
- function y() {
447
- function a(m, S, x, O, w) {
448
- var E = m[S];
449
- if (!e.isValidElementType(E)) {
450
- var _ = G(E);
451
- return new d("Invalid " + O + " `" + w + "` of type " + ("`" + _ + "` supplied to `" + x + "`, expected a single ReactElement type."));
452
- }
453
- return null;
454
- }
455
- return T(a);
456
- }
457
- function Z(a) {
458
- function m(S, x, O, w, E) {
459
- if (!(S[x] instanceof a)) {
460
- var _ = a.name || c, C = Be(S[x]);
461
- return new d("Invalid " + w + " `" + E + "` of type " + ("`" + C + "` supplied to `" + O + "`, expected ") + ("instance of `" + _ + "`."));
462
- }
463
- return null;
464
- }
465
- return T(m);
466
- }
467
- function Re(a) {
468
- if (!Array.isArray(a))
469
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
470
- "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
471
- ) : i("Invalid argument supplied to oneOf, expected an array.")), s;
472
- function m(S, x, O, w, E) {
473
- for (var _ = S[x], C = 0; C < a.length; C++)
474
- if (v(_, a[C]))
475
- return null;
476
- var R = JSON.stringify(a, function(z, p) {
477
- var H = Q(p);
478
- return H === "symbol" ? String(p) : p;
479
- });
480
- return new d("Invalid " + w + " `" + E + "` of value `" + String(_) + "` " + ("supplied to `" + O + "`, expected one of " + R + "."));
481
- }
482
- return T(m);
483
- }
484
- function je(a) {
485
- function m(S, x, O, w, E) {
486
- if (typeof a != "function")
487
- return new d("Property `" + E + "` of component `" + O + "` has invalid PropType notation inside objectOf.");
488
- var _ = S[x], C = G(_);
489
- if (C !== "object")
490
- return new d("Invalid " + w + " `" + E + "` of type " + ("`" + C + "` supplied to `" + O + "`, expected an object."));
491
- for (var R in _)
492
- if (n(_, R)) {
493
- var $ = a(_, R, O, w, E + "." + R, r);
494
- if ($ instanceof Error)
495
- return $;
496
- }
497
- return null;
498
- }
499
- return T(m);
500
- }
501
- function Ie(a) {
502
- if (!Array.isArray(a))
503
- return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), s;
504
- for (var m = 0; m < a.length; m++) {
505
- var S = a[m];
506
- if (typeof S != "function")
507
- return i(
508
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + be(S) + " at index " + m + "."
509
- ), s;
510
- }
511
- function x(O, w, E, _, C) {
512
- for (var R = [], $ = 0; $ < a.length; $++) {
513
- var z = a[$], p = z(O, w, E, _, C, r);
514
- if (p == null)
515
- return null;
516
- p.data && n(p.data, "expectedType") && R.push(p.data.expectedType);
517
- }
518
- var H = R.length > 0 ? ", expected one of type [" + R.join(", ") + "]" : "";
519
- return new d("Invalid " + _ + " `" + C + "` supplied to " + ("`" + E + "`" + H + "."));
520
- }
521
- return T(x);
522
- }
523
- function ke() {
524
- function a(m, S, x, O, w) {
525
- return ee(m[S]) ? null : new d("Invalid " + O + " `" + w + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
526
- }
527
- return T(a);
528
- }
529
- function he(a, m, S, x, O) {
530
- return new d(
531
- (a || "React class") + ": " + m + " type `" + S + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + O + "`."
532
- );
533
- }
534
- function Me(a) {
535
- function m(S, x, O, w, E) {
536
- var _ = S[x], C = G(_);
537
- if (C !== "object")
538
- return new d("Invalid " + w + " `" + E + "` of type `" + C + "` " + ("supplied to `" + O + "`, expected `object`."));
539
- for (var R in a) {
540
- var $ = a[R];
541
- if (typeof $ != "function")
542
- return he(O, w, E, R, Q($));
543
- var z = $(_, R, O, w, E + "." + R, r);
544
- if (z)
545
- return z;
546
- }
547
- return null;
548
- }
549
- return T(m);
550
- }
551
- function De(a) {
552
- function m(S, x, O, w, E) {
553
- var _ = S[x], C = G(_);
554
- if (C !== "object")
555
- return new d("Invalid " + w + " `" + E + "` of type `" + C + "` " + ("supplied to `" + O + "`, expected `object`."));
556
- var R = t({}, S[x], a);
557
- for (var $ in R) {
558
- var z = a[$];
559
- if (n(a, $) && typeof z != "function")
560
- return he(O, w, E, $, Q(z));
561
- if (!z)
562
- return new d(
563
- "Invalid " + w + " `" + E + "` key `" + $ + "` supplied to `" + O + "`.\nBad object: " + JSON.stringify(S[x], null, " ") + `
564
- Valid keys: ` + JSON.stringify(Object.keys(a), null, " ")
565
- );
566
- var p = z(_, $, O, w, E + "." + $, r);
567
- if (p)
568
- return p;
569
- }
570
- return null;
571
- }
572
- return T(m);
573
- }
574
- function ee(a) {
575
- switch (typeof a) {
576
- case "number":
577
- case "string":
578
- case "undefined":
579
- return !0;
580
- case "boolean":
581
- return !a;
582
- case "object":
583
- if (Array.isArray(a))
584
- return a.every(ee);
585
- if (a === null || u(a))
586
- return !0;
587
- var m = h(a);
588
- if (m) {
589
- var S = m.call(a), x;
590
- if (m !== a.entries) {
591
- for (; !(x = S.next()).done; )
592
- if (!ee(x.value))
593
- return !1;
594
- } else
595
- for (; !(x = S.next()).done; ) {
596
- var O = x.value;
597
- if (O && !ee(O[1]))
598
- return !1;
599
- }
600
- } else
601
- return !1;
602
- return !0;
603
- default:
604
- return !1;
605
- }
606
- }
607
- function Ne(a, m) {
608
- return a === "symbol" ? !0 : m ? m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol : !1;
609
- }
610
- function G(a) {
611
- var m = typeof a;
612
- return Array.isArray(a) ? "array" : a instanceof RegExp ? "object" : Ne(m, a) ? "symbol" : m;
613
- }
614
- function Q(a) {
615
- if (typeof a > "u" || a === null)
616
- return "" + a;
617
- var m = G(a);
618
- if (m === "object") {
619
- if (a instanceof Date)
620
- return "date";
621
- if (a instanceof RegExp)
622
- return "regexp";
623
- }
624
- return m;
625
- }
626
- function be(a) {
627
- var m = Q(a);
628
- switch (m) {
629
- case "array":
630
- case "object":
631
- return "an " + m;
632
- case "boolean":
633
- case "date":
634
- case "regexp":
635
- return "a " + m;
636
- default:
637
- return m;
638
- }
639
- }
640
- function Be(a) {
641
- return !a.constructor || !a.constructor.name ? c : a.constructor.name;
642
- }
643
- return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
644
- }, Le;
645
- }
646
- var Ke, ft;
647
- function Ht() {
648
- if (ft)
649
- return Ke;
650
- ft = 1;
651
- var e = Ge();
652
- function t() {
653
- }
654
- function r() {
655
- }
656
- return r.resetWarningCache = t, Ke = function() {
657
- function n(s, u, l, f, g, h) {
658
- if (h !== e) {
659
- var c = new Error(
660
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
661
- );
662
- throw c.name = "Invariant Violation", c;
663
- }
664
- }
665
- n.isRequired = n;
666
- function o() {
667
- return n;
668
- }
669
- var i = {
670
- array: n,
671
- bigint: n,
672
- bool: n,
673
- func: n,
674
- number: n,
675
- object: n,
676
- string: n,
677
- symbol: n,
678
- any: n,
679
- arrayOf: o,
680
- element: n,
681
- elementType: n,
682
- instanceOf: o,
683
- node: n,
684
- objectOf: o,
685
- oneOf: o,
686
- oneOfType: o,
687
- shape: o,
688
- exact: o,
689
- checkPropTypes: r,
690
- resetWarningCache: t
691
- };
692
- return i.PropTypes = i, i;
693
- }, Ke;
694
- }
695
- if (process.env.NODE_ENV !== "production") {
696
- var Vt = Tt(), Jt = !0;
697
- Fe.exports = Gt()(Vt.isElement, Jt);
698
- } else
699
- Fe.exports = Ht()();
700
- var Xt = Fe.exports;
701
- const fe = /* @__PURE__ */ qt(Xt);
702
- function D() {
703
- return D = Object.assign ? Object.assign.bind() : function(e) {
704
- for (var t = 1; t < arguments.length; t++) {
705
- var r = arguments[t];
706
- for (var n in r)
707
- ({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
708
- }
709
- return e;
710
- }, D.apply(null, arguments);
711
- }
712
- function ue(e, t) {
713
- if (e == null)
714
- return {};
715
- var r = {};
716
- for (var n in e)
717
- if ({}.hasOwnProperty.call(e, n)) {
718
- if (t.indexOf(n) >= 0)
719
- continue;
720
- r[n] = e[n];
721
- }
722
- return r;
723
- }
724
- function se(e) {
725
- if (typeof e != "object" || e === null)
726
- return !1;
727
- const t = Object.getPrototypeOf(e);
728
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Symbol.toStringTag in e) && !(Symbol.iterator in e);
729
- }
730
- function _t(e) {
731
- if (!se(e))
732
- return e;
733
- const t = {};
734
- return Object.keys(e).forEach((r) => {
735
- t[r] = _t(e[r]);
736
- }), t;
737
- }
738
- function V(e, t, r = {
739
- clone: !0
740
- }) {
741
- const n = r.clone ? D({}, e) : e;
742
- return se(e) && se(t) && Object.keys(t).forEach((o) => {
743
- se(t[o]) && // Avoid prototype pollution
744
- Object.prototype.hasOwnProperty.call(e, o) && se(e[o]) ? n[o] = V(e[o], t[o], r) : r.clone ? n[o] = se(t[o]) ? _t(t[o]) : t[o] : n[o] = t[o];
745
- }), n;
746
- }
747
- const Zt = ["values", "unit", "step"], Qt = (e) => {
748
- const t = Object.keys(e).map((r) => ({
749
- key: r,
750
- val: e[r]
751
- })) || [];
752
- return t.sort((r, n) => r.val - n.val), t.reduce((r, n) => D({}, r, {
753
- [n.key]: n.val
754
- }), {});
755
- };
756
- function er(e) {
757
- const {
758
- // The breakpoint **start** at this value.
759
- // For instance with the first breakpoint xs: [xs, sm).
760
- values: t = {
761
- xs: 0,
762
- // phone
763
- sm: 600,
764
- // tablet
765
- md: 900,
766
- // small laptop
767
- lg: 1200,
768
- // desktop
769
- xl: 1536
770
- // large screen
771
- },
772
- unit: r = "px",
773
- step: n = 5
774
- } = e, o = ue(e, Zt), i = Qt(t), s = Object.keys(i);
775
- function u(c) {
776
- return `@media (min-width:${typeof t[c] == "number" ? t[c] : c}${r})`;
777
- }
778
- function l(c) {
779
- return `@media (max-width:${(typeof t[c] == "number" ? t[c] : c) - n / 100}${r})`;
780
- }
781
- function f(c, b) {
782
- const v = s.indexOf(b);
783
- return `@media (min-width:${typeof t[c] == "number" ? t[c] : c}${r}) and (max-width:${(v !== -1 && typeof t[s[v]] == "number" ? t[s[v]] : b) - n / 100}${r})`;
784
- }
785
- function g(c) {
786
- return s.indexOf(c) + 1 < s.length ? f(c, s[s.indexOf(c) + 1]) : u(c);
787
- }
788
- function h(c) {
789
- const b = s.indexOf(c);
790
- return b === 0 ? u(s[1]) : b === s.length - 1 ? l(s[b]) : f(c, s[s.indexOf(c) + 1]).replace("@media", "@media not all and");
791
- }
792
- return D({
793
- keys: s,
794
- values: i,
795
- up: u,
796
- down: l,
797
- between: f,
798
- only: g,
799
- not: h,
800
- unit: r
801
- }, o);
802
- }
803
- const tr = {
804
- borderRadius: 4
805
- }, X = process.env.NODE_ENV !== "production" ? fe.oneOfType([fe.number, fe.string, fe.object, fe.array]) : {};
806
- function de(e, t) {
807
- return t ? V(e, t, {
808
- clone: !1
809
- // No need to clone deep, it's way faster.
810
- }) : e;
811
- }
812
- const He = {
813
- xs: 0,
814
- // phone
815
- sm: 600,
816
- // tablet
817
- md: 900,
818
- // small laptop
819
- lg: 1200,
820
- // desktop
821
- xl: 1536
822
- // large screen
823
- }, lt = {
824
- // Sorted ASC by size. That's important.
825
- // It can't be configured as it's used statically for propTypes.
826
- keys: ["xs", "sm", "md", "lg", "xl"],
827
- up: (e) => `@media (min-width:${He[e]}px)`
828
- };
829
- function J(e, t, r) {
830
- const n = e.theme || {};
831
- if (Array.isArray(t)) {
832
- const i = n.breakpoints || lt;
833
- return t.reduce((s, u, l) => (s[i.up(i.keys[l])] = r(t[l]), s), {});
834
- }
835
- if (typeof t == "object") {
836
- const i = n.breakpoints || lt;
837
- return Object.keys(t).reduce((s, u) => {
838
- if (Object.keys(i.values || He).indexOf(u) !== -1) {
839
- const l = i.up(u);
840
- s[l] = r(t[u], u);
841
- } else {
842
- const l = u;
843
- s[l] = t[l];
844
- }
845
- return s;
846
- }, {});
847
- }
848
- return r(t);
849
- }
850
- function St(e = {}) {
851
- var t;
852
- return ((t = e.keys) == null ? void 0 : t.reduce((n, o) => {
853
- const i = e.up(o);
854
- return n[i] = {}, n;
855
- }, {})) || {};
856
- }
857
- function wt(e, t) {
858
- return e.reduce((r, n) => {
859
- const o = r[n];
860
- return (!o || Object.keys(o).length === 0) && delete r[n], r;
861
- }, t);
862
- }
863
- function Vn(e, ...t) {
864
- const r = St(e), n = [r, ...t].reduce((o, i) => V(o, i), {});
865
- return wt(Object.keys(r), n);
866
- }
867
- function rr(e, t) {
868
- if (typeof e != "object")
869
- return {};
870
- const r = {}, n = Object.keys(t);
871
- return Array.isArray(e) ? n.forEach((o, i) => {
872
- i < e.length && (r[o] = !0);
873
- }) : n.forEach((o) => {
874
- e[o] != null && (r[o] = !0);
875
- }), r;
876
- }
877
- function Jn({
878
- values: e,
879
- breakpoints: t,
880
- base: r
881
- }) {
882
- const n = r || rr(e, t), o = Object.keys(n);
883
- if (o.length === 0)
884
- return e;
885
- let i;
886
- return o.reduce((s, u, l) => (Array.isArray(e) ? (s[u] = e[l] != null ? e[l] : e[i], i = l) : typeof e == "object" ? (s[u] = e[u] != null ? e[u] : e[i], i = u) : s[u] = e, s), {});
887
- }
888
- function Ct(e) {
889
- if (typeof e != "string")
890
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `capitalize(string)` expects a string argument." : pe(7));
891
- return e.charAt(0).toUpperCase() + e.slice(1);
892
- }
893
- function xe(e, t, r = !0) {
894
- if (!t || typeof t != "string")
895
- return null;
896
- if (e && e.vars && r) {
897
- const n = `vars.${t}`.split(".").reduce((o, i) => o && o[i] ? o[i] : null, e);
898
- if (n != null)
899
- return n;
900
- }
901
- return t.split(".").reduce((n, o) => n && n[o] != null ? n[o] : null, e);
902
- }
903
- function Ee(e, t, r, n = r) {
904
- let o;
905
- return typeof e == "function" ? o = e(r) : Array.isArray(e) ? o = e[r] || n : o = xe(e, r) || n, t && (o = t(o, n, e)), o;
906
- }
907
- function B(e) {
908
- const {
909
- prop: t,
910
- cssProperty: r = e.prop,
911
- themeKey: n,
912
- transform: o
913
- } = e, i = (s) => {
914
- if (s[t] == null)
915
- return null;
916
- const u = s[t], l = s.theme, f = xe(l, n) || {};
917
- return J(s, u, (h) => {
918
- let c = Ee(f, o, h);
919
- return h === c && typeof h == "string" && (c = Ee(f, o, `${t}${h === "default" ? "" : Ct(h)}`, h)), r === !1 ? c : {
920
- [r]: c
921
- };
922
- });
923
- };
924
- return i.propTypes = process.env.NODE_ENV !== "production" ? {
925
- [t]: X
926
- } : {}, i.filterProps = [t], i;
927
- }
928
- function nr(e) {
929
- const t = {};
930
- return (r) => (t[r] === void 0 && (t[r] = e(r)), t[r]);
931
- }
932
- const or = {
933
- m: "margin",
934
- p: "padding"
935
- }, ir = {
936
- t: "Top",
937
- r: "Right",
938
- b: "Bottom",
939
- l: "Left",
940
- x: ["Left", "Right"],
941
- y: ["Top", "Bottom"]
942
- }, dt = {
943
- marginX: "mx",
944
- marginY: "my",
945
- paddingX: "px",
946
- paddingY: "py"
947
- }, sr = nr((e) => {
948
- if (e.length > 2)
949
- if (dt[e])
950
- e = dt[e];
951
- else
952
- return [e];
953
- const [t, r] = e.split(""), n = or[t], o = ir[r] || "";
954
- return Array.isArray(o) ? o.map((i) => n + i) : [n + o];
955
- }), _e = ["m", "mt", "mr", "mb", "ml", "mx", "my", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "marginInline", "marginInlineStart", "marginInlineEnd", "marginBlock", "marginBlockStart", "marginBlockEnd"], Se = ["p", "pt", "pr", "pb", "pl", "px", "py", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY", "paddingInline", "paddingInlineStart", "paddingInlineEnd", "paddingBlock", "paddingBlockStart", "paddingBlockEnd"], ar = [..._e, ...Se];
956
- function me(e, t, r, n) {
957
- var o;
958
- const i = (o = xe(e, t, !1)) != null ? o : r;
959
- return typeof i == "number" ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && typeof s != "number" && console.error(`MUI: Expected ${n} argument to be a number or a string, got ${s}.`), i * s) : Array.isArray(i) ? (s) => typeof s == "string" ? s : (process.env.NODE_ENV !== "production" && (Number.isInteger(s) ? s > i.length - 1 && console.error([`MUI: The value provided (${s}) overflows.`, `The supported values are: ${JSON.stringify(i)}.`, `${s} > ${i.length - 1}, you need to add the missing values.`].join(`
960
- `)) : console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
961
- `))), i[s]) : typeof i == "function" ? i : (process.env.NODE_ENV !== "production" && console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`, "It should be a number, an array or a function."].join(`
962
- `)), () => {
963
- });
964
- }
965
- function $t(e) {
966
- return me(e, "spacing", 8, "spacing");
967
- }
968
- function ge(e, t) {
969
- if (typeof t == "string" || t == null)
970
- return t;
971
- const r = Math.abs(t), n = e(r);
972
- return t >= 0 ? n : typeof n == "number" ? -n : `-${n}`;
973
- }
974
- function ur(e, t) {
975
- return (r) => e.reduce((n, o) => (n[o] = ge(t, r), n), {});
976
- }
977
- function cr(e, t, r, n) {
978
- if (t.indexOf(r) === -1)
979
- return null;
980
- const o = sr(r), i = ur(o, n), s = e[r];
981
- return J(e, s, i);
982
- }
983
- function Pt(e, t) {
984
- const r = $t(e.theme);
985
- return Object.keys(e).map((n) => cr(e, t, n, r)).reduce(de, {});
986
- }
987
- function k(e) {
988
- return Pt(e, _e);
989
- }
990
- k.propTypes = process.env.NODE_ENV !== "production" ? _e.reduce((e, t) => (e[t] = X, e), {}) : {};
991
- k.filterProps = _e;
992
- function M(e) {
993
- return Pt(e, Se);
994
- }
995
- M.propTypes = process.env.NODE_ENV !== "production" ? Se.reduce((e, t) => (e[t] = X, e), {}) : {};
996
- M.filterProps = Se;
997
- process.env.NODE_ENV !== "production" && ar.reduce((e, t) => (e[t] = X, e), {});
998
- function fr(e = 8) {
999
- if (e.mui)
1000
- return e;
1001
- const t = $t({
1002
- spacing: e
1003
- }), r = (...n) => (process.env.NODE_ENV !== "production" && (n.length <= 4 || console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)), (n.length === 0 ? [1] : n).map((i) => {
1004
- const s = t(i);
1005
- return typeof s == "number" ? `${s}px` : s;
1006
- }).join(" "));
1007
- return r.mui = !0, r;
1008
- }
1009
- function we(...e) {
1010
- const t = e.reduce((n, o) => (o.filterProps.forEach((i) => {
1011
- n[i] = o;
1012
- }), n), {}), r = (n) => Object.keys(n).reduce((o, i) => t[i] ? de(o, t[i](n)) : o, {});
1013
- return r.propTypes = process.env.NODE_ENV !== "production" ? e.reduce((n, o) => Object.assign(n, o.propTypes), {}) : {}, r.filterProps = e.reduce((n, o) => n.concat(o.filterProps), []), r;
1014
- }
1015
- function L(e) {
1016
- return typeof e != "number" ? e : `${e}px solid`;
1017
- }
1018
- function Y(e, t) {
1019
- return B({
1020
- prop: e,
1021
- themeKey: "borders",
1022
- transform: t
1023
- });
1024
- }
1025
- const lr = Y("border", L), dr = Y("borderTop", L), pr = Y("borderRight", L), yr = Y("borderBottom", L), mr = Y("borderLeft", L), gr = Y("borderColor"), hr = Y("borderTopColor"), br = Y("borderRightColor"), vr = Y("borderBottomColor"), Or = Y("borderLeftColor"), Er = Y("outline", L), Tr = Y("outlineColor"), Ce = (e) => {
1026
- if (e.borderRadius !== void 0 && e.borderRadius !== null) {
1027
- const t = me(e.theme, "shape.borderRadius", 4, "borderRadius"), r = (n) => ({
1028
- borderRadius: ge(t, n)
1029
- });
1030
- return J(e, e.borderRadius, r);
1031
- }
1032
- return null;
1033
- };
1034
- Ce.propTypes = process.env.NODE_ENV !== "production" ? {
1035
- borderRadius: X
1036
- } : {};
1037
- Ce.filterProps = ["borderRadius"];
1038
- we(lr, dr, pr, yr, mr, gr, hr, br, vr, Or, Ce, Er, Tr);
1039
- const $e = (e) => {
1040
- if (e.gap !== void 0 && e.gap !== null) {
1041
- const t = me(e.theme, "spacing", 8, "gap"), r = (n) => ({
1042
- gap: ge(t, n)
1043
- });
1044
- return J(e, e.gap, r);
1045
- }
1046
- return null;
1047
- };
1048
- $e.propTypes = process.env.NODE_ENV !== "production" ? {
1049
- gap: X
1050
- } : {};
1051
- $e.filterProps = ["gap"];
1052
- const Pe = (e) => {
1053
- if (e.columnGap !== void 0 && e.columnGap !== null) {
1054
- const t = me(e.theme, "spacing", 8, "columnGap"), r = (n) => ({
1055
- columnGap: ge(t, n)
1056
- });
1057
- return J(e, e.columnGap, r);
1058
- }
1059
- return null;
1060
- };
1061
- Pe.propTypes = process.env.NODE_ENV !== "production" ? {
1062
- columnGap: X
1063
- } : {};
1064
- Pe.filterProps = ["columnGap"];
1065
- const Ae = (e) => {
1066
- if (e.rowGap !== void 0 && e.rowGap !== null) {
1067
- const t = me(e.theme, "spacing", 8, "rowGap"), r = (n) => ({
1068
- rowGap: ge(t, n)
1069
- });
1070
- return J(e, e.rowGap, r);
1071
- }
1072
- return null;
1073
- };
1074
- Ae.propTypes = process.env.NODE_ENV !== "production" ? {
1075
- rowGap: X
1076
- } : {};
1077
- Ae.filterProps = ["rowGap"];
1078
- const xr = B({
1079
- prop: "gridColumn"
1080
- }), _r = B({
1081
- prop: "gridRow"
1082
- }), Sr = B({
1083
- prop: "gridAutoFlow"
1084
- }), wr = B({
1085
- prop: "gridAutoColumns"
1086
- }), Cr = B({
1087
- prop: "gridAutoRows"
1088
- }), $r = B({
1089
- prop: "gridTemplateColumns"
1090
- }), Pr = B({
1091
- prop: "gridTemplateRows"
1092
- }), Ar = B({
1093
- prop: "gridTemplateAreas"
1094
- }), Rr = B({
1095
- prop: "gridArea"
1096
- });
1097
- we($e, Pe, Ae, xr, _r, Sr, wr, Cr, $r, Pr, Ar, Rr);
1098
- function ae(e, t) {
1099
- return t === "grey" ? t : e;
1100
- }
1101
- const jr = B({
1102
- prop: "color",
1103
- themeKey: "palette",
1104
- transform: ae
1105
- }), Ir = B({
1106
- prop: "bgcolor",
1107
- cssProperty: "backgroundColor",
1108
- themeKey: "palette",
1109
- transform: ae
1110
- }), kr = B({
1111
- prop: "backgroundColor",
1112
- themeKey: "palette",
1113
- transform: ae
1114
- });
1115
- we(jr, Ir, kr);
1116
- function q(e) {
1117
- return e <= 1 && e !== 0 ? `${e * 100}%` : e;
1118
- }
1119
- const Mr = B({
1120
- prop: "width",
1121
- transform: q
1122
- }), Ve = (e) => {
1123
- if (e.maxWidth !== void 0 && e.maxWidth !== null) {
1124
- const t = (r) => {
1125
- var n, o;
1126
- const i = ((n = e.theme) == null || (n = n.breakpoints) == null || (n = n.values) == null ? void 0 : n[r]) || He[r];
1127
- return i ? ((o = e.theme) == null || (o = o.breakpoints) == null ? void 0 : o.unit) !== "px" ? {
1128
- maxWidth: `${i}${e.theme.breakpoints.unit}`
1129
- } : {
1130
- maxWidth: i
1131
- } : {
1132
- maxWidth: q(r)
1133
- };
1134
- };
1135
- return J(e, e.maxWidth, t);
1136
- }
1137
- return null;
1138
- };
1139
- Ve.filterProps = ["maxWidth"];
1140
- const Dr = B({
1141
- prop: "minWidth",
1142
- transform: q
1143
- }), Nr = B({
1144
- prop: "height",
1145
- transform: q
1146
- }), Br = B({
1147
- prop: "maxHeight",
1148
- transform: q
1149
- }), Ur = B({
1150
- prop: "minHeight",
1151
- transform: q
1152
- });
1153
- B({
1154
- prop: "size",
1155
- cssProperty: "width",
1156
- transform: q
1157
- });
1158
- B({
1159
- prop: "size",
1160
- cssProperty: "height",
1161
- transform: q
1162
- });
1163
- const Wr = B({
1164
- prop: "boxSizing"
1165
- });
1166
- we(Mr, Ve, Dr, Nr, Br, Ur, Wr);
1167
- const Je = {
1168
- // borders
1169
- border: {
1170
- themeKey: "borders",
1171
- transform: L
1172
- },
1173
- borderTop: {
1174
- themeKey: "borders",
1175
- transform: L
1176
- },
1177
- borderRight: {
1178
- themeKey: "borders",
1179
- transform: L
1180
- },
1181
- borderBottom: {
1182
- themeKey: "borders",
1183
- transform: L
1184
- },
1185
- borderLeft: {
1186
- themeKey: "borders",
1187
- transform: L
1188
- },
1189
- borderColor: {
1190
- themeKey: "palette"
1191
- },
1192
- borderTopColor: {
1193
- themeKey: "palette"
1194
- },
1195
- borderRightColor: {
1196
- themeKey: "palette"
1197
- },
1198
- borderBottomColor: {
1199
- themeKey: "palette"
1200
- },
1201
- borderLeftColor: {
1202
- themeKey: "palette"
1203
- },
1204
- outline: {
1205
- themeKey: "borders",
1206
- transform: L
1207
- },
1208
- outlineColor: {
1209
- themeKey: "palette"
1210
- },
1211
- borderRadius: {
1212
- themeKey: "shape.borderRadius",
1213
- style: Ce
1214
- },
1215
- // palette
1216
- color: {
1217
- themeKey: "palette",
1218
- transform: ae
1219
- },
1220
- bgcolor: {
1221
- themeKey: "palette",
1222
- cssProperty: "backgroundColor",
1223
- transform: ae
1224
- },
1225
- backgroundColor: {
1226
- themeKey: "palette",
1227
- transform: ae
1228
- },
1229
- // spacing
1230
- p: {
1231
- style: M
1232
- },
1233
- pt: {
1234
- style: M
1235
- },
1236
- pr: {
1237
- style: M
1238
- },
1239
- pb: {
1240
- style: M
1241
- },
1242
- pl: {
1243
- style: M
1244
- },
1245
- px: {
1246
- style: M
1247
- },
1248
- py: {
1249
- style: M
1250
- },
1251
- padding: {
1252
- style: M
1253
- },
1254
- paddingTop: {
1255
- style: M
1256
- },
1257
- paddingRight: {
1258
- style: M
1259
- },
1260
- paddingBottom: {
1261
- style: M
1262
- },
1263
- paddingLeft: {
1264
- style: M
1265
- },
1266
- paddingX: {
1267
- style: M
1268
- },
1269
- paddingY: {
1270
- style: M
1271
- },
1272
- paddingInline: {
1273
- style: M
1274
- },
1275
- paddingInlineStart: {
1276
- style: M
1277
- },
1278
- paddingInlineEnd: {
1279
- style: M
1280
- },
1281
- paddingBlock: {
1282
- style: M
1283
- },
1284
- paddingBlockStart: {
1285
- style: M
1286
- },
1287
- paddingBlockEnd: {
1288
- style: M
1289
- },
1290
- m: {
1291
- style: k
1292
- },
1293
- mt: {
1294
- style: k
1295
- },
1296
- mr: {
1297
- style: k
1298
- },
1299
- mb: {
1300
- style: k
1301
- },
1302
- ml: {
1303
- style: k
1304
- },
1305
- mx: {
1306
- style: k
1307
- },
1308
- my: {
1309
- style: k
1310
- },
1311
- margin: {
1312
- style: k
1313
- },
1314
- marginTop: {
1315
- style: k
1316
- },
1317
- marginRight: {
1318
- style: k
1319
- },
1320
- marginBottom: {
1321
- style: k
1322
- },
1323
- marginLeft: {
1324
- style: k
1325
- },
1326
- marginX: {
1327
- style: k
1328
- },
1329
- marginY: {
1330
- style: k
1331
- },
1332
- marginInline: {
1333
- style: k
1334
- },
1335
- marginInlineStart: {
1336
- style: k
1337
- },
1338
- marginInlineEnd: {
1339
- style: k
1340
- },
1341
- marginBlock: {
1342
- style: k
1343
- },
1344
- marginBlockStart: {
1345
- style: k
1346
- },
1347
- marginBlockEnd: {
1348
- style: k
1349
- },
1350
- // display
1351
- displayPrint: {
1352
- cssProperty: !1,
1353
- transform: (e) => ({
1354
- "@media print": {
1355
- display: e
1356
- }
1357
- })
1358
- },
1359
- display: {},
1360
- overflow: {},
1361
- textOverflow: {},
1362
- visibility: {},
1363
- whiteSpace: {},
1364
- // flexbox
1365
- flexBasis: {},
1366
- flexDirection: {},
1367
- flexWrap: {},
1368
- justifyContent: {},
1369
- alignItems: {},
1370
- alignContent: {},
1371
- order: {},
1372
- flex: {},
1373
- flexGrow: {},
1374
- flexShrink: {},
1375
- alignSelf: {},
1376
- justifyItems: {},
1377
- justifySelf: {},
1378
- // grid
1379
- gap: {
1380
- style: $e
1381
- },
1382
- rowGap: {
1383
- style: Ae
1384
- },
1385
- columnGap: {
1386
- style: Pe
1387
- },
1388
- gridColumn: {},
1389
- gridRow: {},
1390
- gridAutoFlow: {},
1391
- gridAutoColumns: {},
1392
- gridAutoRows: {},
1393
- gridTemplateColumns: {},
1394
- gridTemplateRows: {},
1395
- gridTemplateAreas: {},
1396
- gridArea: {},
1397
- // positions
1398
- position: {},
1399
- zIndex: {
1400
- themeKey: "zIndex"
1401
- },
1402
- top: {},
1403
- right: {},
1404
- bottom: {},
1405
- left: {},
1406
- // shadows
1407
- boxShadow: {
1408
- themeKey: "shadows"
1409
- },
1410
- // sizing
1411
- width: {
1412
- transform: q
1413
- },
1414
- maxWidth: {
1415
- style: Ve
1416
- },
1417
- minWidth: {
1418
- transform: q
1419
- },
1420
- height: {
1421
- transform: q
1422
- },
1423
- maxHeight: {
1424
- transform: q
1425
- },
1426
- minHeight: {
1427
- transform: q
1428
- },
1429
- boxSizing: {},
1430
- // typography
1431
- fontFamily: {
1432
- themeKey: "typography"
1433
- },
1434
- fontSize: {
1435
- themeKey: "typography"
1436
- },
1437
- fontStyle: {
1438
- themeKey: "typography"
1439
- },
1440
- fontWeight: {
1441
- themeKey: "typography"
1442
- },
1443
- letterSpacing: {},
1444
- textTransform: {},
1445
- lineHeight: {},
1446
- textAlign: {},
1447
- typography: {
1448
- cssProperty: !1,
1449
- themeKey: "typography"
1450
- }
1451
- };
1452
- function zr(...e) {
1453
- const t = e.reduce((n, o) => n.concat(Object.keys(o)), []), r = new Set(t);
1454
- return e.every((n) => r.size === Object.keys(n).length);
1455
- }
1456
- function qr(e, t) {
1457
- return typeof e == "function" ? e(t) : e;
1458
- }
1459
- function Lr() {
1460
- function e(r, n, o, i) {
1461
- const s = {
1462
- [r]: n,
1463
- theme: o
1464
- }, u = i[r];
1465
- if (!u)
1466
- return {
1467
- [r]: n
1468
- };
1469
- const {
1470
- cssProperty: l = r,
1471
- themeKey: f,
1472
- transform: g,
1473
- style: h
1474
- } = u;
1475
- if (n == null)
1476
- return null;
1477
- if (f === "typography" && n === "inherit")
1478
- return {
1479
- [r]: n
1480
- };
1481
- const c = xe(o, f) || {};
1482
- return h ? h(s) : J(s, n, (v) => {
1483
- let d = Ee(c, g, v);
1484
- return v === d && typeof v == "string" && (d = Ee(c, g, `${r}${v === "default" ? "" : Ct(v)}`, v)), l === !1 ? d : {
1485
- [l]: d
1486
- };
1487
- });
1488
- }
1489
- function t(r) {
1490
- var n;
1491
- const {
1492
- sx: o,
1493
- theme: i = {}
1494
- } = r || {};
1495
- if (!o)
1496
- return null;
1497
- const s = (n = i.unstable_sxConfig) != null ? n : Je;
1498
- function u(l) {
1499
- let f = l;
1500
- if (typeof l == "function")
1501
- f = l(i);
1502
- else if (typeof l != "object")
1503
- return l;
1504
- if (!f)
1505
- return null;
1506
- const g = St(i.breakpoints), h = Object.keys(g);
1507
- let c = g;
1508
- return Object.keys(f).forEach((b) => {
1509
- const v = qr(f[b], i);
1510
- if (v != null)
1511
- if (typeof v == "object")
1512
- if (s[b])
1513
- c = de(c, e(b, v, i, s));
1514
- else {
1515
- const d = J({
1516
- theme: i
1517
- }, v, (T) => ({
1518
- [b]: T
1519
- }));
1520
- zr(d, v) ? c[b] = t({
1521
- sx: v,
1522
- theme: i
1523
- }) : c = de(c, d);
1524
- }
1525
- else
1526
- c = de(c, e(b, v, i, s));
1527
- }), wt(h, c);
1528
- }
1529
- return Array.isArray(o) ? o.map(u) : u(o);
1530
- }
1531
- return t;
1532
- }
1533
- const Xe = Lr();
1534
- Xe.filterProps = ["sx"];
1535
- function Kr(e, t) {
1536
- const r = this;
1537
- return r.vars && typeof r.getColorSchemeSelector == "function" ? {
1538
- [r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/, "*:where($1)")]: t
1539
- } : r.palette.mode === e ? t : {};
1540
- }
1541
- const Yr = ["breakpoints", "palette", "spacing", "shape"];
1542
- function At(e = {}, ...t) {
1543
- const {
1544
- breakpoints: r = {},
1545
- palette: n = {},
1546
- spacing: o,
1547
- shape: i = {}
1548
- } = e, s = ue(e, Yr), u = er(r), l = fr(o);
1549
- let f = V({
1550
- breakpoints: u,
1551
- direction: "ltr",
1552
- components: {},
1553
- // Inject component definitions.
1554
- palette: D({
1555
- mode: "light"
1556
- }, n),
1557
- spacing: l,
1558
- shape: D({}, tr, i)
1559
- }, s);
1560
- return f.applyStyles = Kr, f = t.reduce((g, h) => V(g, h), f), f.unstable_sxConfig = D({}, Je, s == null ? void 0 : s.unstable_sxConfig), f.unstable_sx = function(h) {
1561
- return Xe({
1562
- sx: h,
1563
- theme: this
1564
- });
1565
- }, f;
1566
- }
1567
- function Fr(e) {
1568
- return Object.keys(e).length === 0;
1569
- }
1570
- function Gr(e = null) {
1571
- const t = Ut.useContext(Wt);
1572
- return !t || Fr(t) ? e : t;
1573
- }
1574
- const Hr = At();
1575
- function Vr(e = Hr) {
1576
- return Gr(e);
1577
- }
1578
- const pt = (e) => e, Jr = () => {
1579
- let e = pt;
1580
- return {
1581
- configure(t) {
1582
- e = t;
1583
- },
1584
- generate(t) {
1585
- return e(t);
1586
- },
1587
- reset() {
1588
- e = pt;
1589
- }
1590
- };
1591
- }, Xr = Jr(), Zr = {
1592
- active: "active",
1593
- checked: "checked",
1594
- completed: "completed",
1595
- disabled: "disabled",
1596
- error: "error",
1597
- expanded: "expanded",
1598
- focused: "focused",
1599
- focusVisible: "focusVisible",
1600
- open: "open",
1601
- readOnly: "readOnly",
1602
- required: "required",
1603
- selected: "selected"
1604
- };
1605
- function Qr(e, t, r = "Mui") {
1606
- const n = Zr[t];
1607
- return n ? `${r}-${n}` : `${Xr.generate(e)}-${t}`;
1608
- }
1609
- function Rt(e, t) {
1610
- const r = D({}, t);
1611
- return Object.keys(e).forEach((n) => {
1612
- if (n.toString().match(/^(components|slots)$/))
1613
- r[n] = D({}, e[n], r[n]);
1614
- else if (n.toString().match(/^(componentsProps|slotProps)$/)) {
1615
- const o = e[n] || {}, i = t[n];
1616
- r[n] = {}, !i || !Object.keys(i) ? r[n] = o : !o || !Object.keys(o) ? r[n] = i : (r[n] = D({}, i), Object.keys(o).forEach((s) => {
1617
- r[n][s] = Rt(o[s], i[s]);
1618
- }));
1619
- } else
1620
- r[n] === void 0 && (r[n] = e[n]);
1621
- }), r;
1622
- }
1623
- function en(e) {
1624
- const {
1625
- theme: t,
1626
- name: r,
1627
- props: n
1628
- } = e;
1629
- return !t || !t.components || !t.components[r] || !t.components[r].defaultProps ? n : Rt(t.components[r].defaultProps, n);
1630
- }
1631
- function tn({
1632
- props: e,
1633
- name: t,
1634
- defaultTheme: r,
1635
- themeId: n
1636
- }) {
1637
- let o = Vr(r);
1638
- return n && (o = o[n] || o), en({
1639
- theme: o,
1640
- name: t,
1641
- props: e
1642
- });
1643
- }
1644
- function rn(e, t = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
1645
- return Math.max(t, Math.min(e, r));
1646
- }
1647
- const nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1648
- __proto__: null,
1649
- default: rn
1650
- }, Symbol.toStringTag, { value: "Module" })), on = "$$material";
1651
- function sn(e, t) {
1652
- return D({
1653
- toolbar: {
1654
- minHeight: 56,
1655
- [e.up("xs")]: {
1656
- "@media (orientation: landscape)": {
1657
- minHeight: 48
1658
- }
1659
- },
1660
- [e.up("sm")]: {
1661
- minHeight: 64
1662
- }
1663
- }
1664
- }, t);
1665
- }
1666
- var U = {}, jt = { exports: {} };
1667
- (function(e) {
1668
- function t(r) {
1669
- return r && r.__esModule ? r : {
1670
- default: r
1671
- };
1672
- }
1673
- e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
1674
- })(jt);
1675
- var an = jt.exports;
1676
- const un = /* @__PURE__ */ Et(zt), cn = /* @__PURE__ */ Et(nn);
1677
- var It = an;
1678
- Object.defineProperty(U, "__esModule", {
1679
- value: !0
1680
- });
1681
- var Xn = U.alpha = Nt;
1682
- U.blend = En;
1683
- U.colorChannel = void 0;
1684
- var fn = U.darken = Qe;
1685
- U.decomposeColor = K;
1686
- var Zn = U.emphasize = Bt, yt = U.getContrastRatio = gn;
1687
- U.getLuminance = Te;
1688
- U.hexToRgb = kt;
1689
- U.hslToRgb = Dt;
1690
- var ln = U.lighten = et;
1691
- U.private_safeAlpha = hn;
1692
- U.private_safeColorChannel = void 0;
1693
- U.private_safeDarken = bn;
1694
- U.private_safeEmphasize = On;
1695
- U.private_safeLighten = vn;
1696
- U.recomposeColor = ce;
1697
- U.rgbToHex = mn;
1698
- var mt = It(un), dn = It(cn);
1699
- function Ze(e, t = 0, r = 1) {
1700
- return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`), (0, dn.default)(e, t, r);
1701
- }
1702
- function kt(e) {
1703
- e = e.slice(1);
1704
- const t = new RegExp(`.{1,${e.length >= 6 ? 2 : 1}}`, "g");
1705
- let r = e.match(t);
1706
- return r && r[0].length === 1 && (r = r.map((n) => n + n)), r ? `rgb${r.length === 4 ? "a" : ""}(${r.map((n, o) => o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3).join(", ")})` : "";
1707
- }
1708
- function pn(e) {
1709
- const t = e.toString(16);
1710
- return t.length === 1 ? `0${t}` : t;
1711
- }
1712
- function K(e) {
1713
- if (e.type)
1714
- return e;
1715
- if (e.charAt(0) === "#")
1716
- return K(kt(e));
1717
- const t = e.indexOf("("), r = e.substring(0, t);
1718
- if (["rgb", "rgba", "hsl", "hsla", "color"].indexOf(r) === -1)
1719
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: Unsupported \`${e}\` color.
1720
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` : (0, mt.default)(9, e));
1721
- let n = e.substring(t + 1, e.length - 1), o;
1722
- if (r === "color") {
1723
- if (n = n.split(" "), o = n.shift(), n.length === 4 && n[3].charAt(0) === "/" && (n[3] = n[3].slice(1)), ["srgb", "display-p3", "a98-rgb", "prophoto-rgb", "rec-2020"].indexOf(o) === -1)
1724
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: unsupported \`${o}\` color space.
1725
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.` : (0, mt.default)(10, o));
1726
- } else
1727
- n = n.split(",");
1728
- return n = n.map((i) => parseFloat(i)), {
1729
- type: r,
1730
- values: n,
1731
- colorSpace: o
1732
- };
1733
- }
1734
- const Mt = (e) => {
1735
- const t = K(e);
1736
- return t.values.slice(0, 3).map((r, n) => t.type.indexOf("hsl") !== -1 && n !== 0 ? `${r}%` : r).join(" ");
1737
- };
1738
- U.colorChannel = Mt;
1739
- const yn = (e, t) => {
1740
- try {
1741
- return Mt(e);
1742
- } catch {
1743
- return t && process.env.NODE_ENV !== "production" && console.warn(t), e;
1744
- }
1745
- };
1746
- U.private_safeColorChannel = yn;
1747
- function ce(e) {
1748
- const {
1749
- type: t,
1750
- colorSpace: r
1751
- } = e;
1752
- let {
1753
- values: n
1754
- } = e;
1755
- return t.indexOf("rgb") !== -1 ? n = n.map((o, i) => i < 3 ? parseInt(o, 10) : o) : t.indexOf("hsl") !== -1 && (n[1] = `${n[1]}%`, n[2] = `${n[2]}%`), t.indexOf("color") !== -1 ? n = `${r} ${n.join(" ")}` : n = `${n.join(", ")}`, `${t}(${n})`;
1756
- }
1757
- function mn(e) {
1758
- if (e.indexOf("#") === 0)
1759
- return e;
1760
- const {
1761
- values: t
1762
- } = K(e);
1763
- return `#${t.map((r, n) => pn(n === 3 ? Math.round(255 * r) : r)).join("")}`;
1764
- }
1765
- function Dt(e) {
1766
- e = K(e);
1767
- const {
1768
- values: t
1769
- } = e, r = t[0], n = t[1] / 100, o = t[2] / 100, i = n * Math.min(o, 1 - o), s = (f, g = (f + r / 30) % 12) => o - i * Math.max(Math.min(g - 3, 9 - g, 1), -1);
1770
- let u = "rgb";
1771
- const l = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
1772
- return e.type === "hsla" && (u += "a", l.push(t[3])), ce({
1773
- type: u,
1774
- values: l
1775
- });
1776
- }
1777
- function Te(e) {
1778
- e = K(e);
1779
- let t = e.type === "hsl" || e.type === "hsla" ? K(Dt(e)).values : e.values;
1780
- return t = t.map((r) => (e.type !== "color" && (r /= 255), r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4)), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
1781
- }
1782
- function gn(e, t) {
1783
- const r = Te(e), n = Te(t);
1784
- return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
1785
- }
1786
- function Nt(e, t) {
1787
- return e = K(e), t = Ze(t), (e.type === "rgb" || e.type === "hsl") && (e.type += "a"), e.type === "color" ? e.values[3] = `/${t}` : e.values[3] = t, ce(e);
1788
- }
1789
- function hn(e, t, r) {
1790
- try {
1791
- return Nt(e, t);
1792
- } catch {
1793
- return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
1794
- }
1795
- }
1796
- function Qe(e, t) {
1797
- if (e = K(e), t = Ze(t), e.type.indexOf("hsl") !== -1)
1798
- e.values[2] *= 1 - t;
1799
- else if (e.type.indexOf("rgb") !== -1 || e.type.indexOf("color") !== -1)
1800
- for (let r = 0; r < 3; r += 1)
1801
- e.values[r] *= 1 - t;
1802
- return ce(e);
1803
- }
1804
- function bn(e, t, r) {
1805
- try {
1806
- return Qe(e, t);
1807
- } catch {
1808
- return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
1809
- }
1810
- }
1811
- function et(e, t) {
1812
- if (e = K(e), t = Ze(t), e.type.indexOf("hsl") !== -1)
1813
- e.values[2] += (100 - e.values[2]) * t;
1814
- else if (e.type.indexOf("rgb") !== -1)
1815
- for (let r = 0; r < 3; r += 1)
1816
- e.values[r] += (255 - e.values[r]) * t;
1817
- else if (e.type.indexOf("color") !== -1)
1818
- for (let r = 0; r < 3; r += 1)
1819
- e.values[r] += (1 - e.values[r]) * t;
1820
- return ce(e);
1821
- }
1822
- function vn(e, t, r) {
1823
- try {
1824
- return et(e, t);
1825
- } catch {
1826
- return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
1827
- }
1828
- }
1829
- function Bt(e, t = 0.15) {
1830
- return Te(e) > 0.5 ? Qe(e, t) : et(e, t);
1831
- }
1832
- function On(e, t, r) {
1833
- try {
1834
- return Bt(e, t);
1835
- } catch {
1836
- return r && process.env.NODE_ENV !== "production" && console.warn(r), e;
1837
- }
1838
- }
1839
- function En(e, t, r, n = 1) {
1840
- const o = (l, f) => Math.round((l ** (1 / n) * (1 - r) + f ** (1 / n) * r) ** n), i = K(e), s = K(t), u = [o(i.values[0], s.values[0]), o(i.values[1], s.values[1]), o(i.values[2], s.values[2])];
1841
- return ce({
1842
- type: "rgb",
1843
- values: u
1844
- });
1845
- }
1846
- const ye = {
1847
- black: "#000",
1848
- white: "#fff"
1849
- }, Tn = {
1850
- 50: "#fafafa",
1851
- 100: "#f5f5f5",
1852
- 200: "#eeeeee",
1853
- 300: "#e0e0e0",
1854
- 400: "#bdbdbd",
1855
- 500: "#9e9e9e",
1856
- 600: "#757575",
1857
- 700: "#616161",
1858
- 800: "#424242",
1859
- 900: "#212121",
1860
- A100: "#f5f5f5",
1861
- A200: "#eeeeee",
1862
- A400: "#bdbdbd",
1863
- A700: "#616161"
1864
- }, te = {
1865
- 50: "#f3e5f5",
1866
- 100: "#e1bee7",
1867
- 200: "#ce93d8",
1868
- 300: "#ba68c8",
1869
- 400: "#ab47bc",
1870
- 500: "#9c27b0",
1871
- 600: "#8e24aa",
1872
- 700: "#7b1fa2",
1873
- 800: "#6a1b9a",
1874
- 900: "#4a148c",
1875
- A100: "#ea80fc",
1876
- A200: "#e040fb",
1877
- A400: "#d500f9",
1878
- A700: "#aa00ff"
1879
- }, re = {
1880
- 50: "#ffebee",
1881
- 100: "#ffcdd2",
1882
- 200: "#ef9a9a",
1883
- 300: "#e57373",
1884
- 400: "#ef5350",
1885
- 500: "#f44336",
1886
- 600: "#e53935",
1887
- 700: "#d32f2f",
1888
- 800: "#c62828",
1889
- 900: "#b71c1c",
1890
- A100: "#ff8a80",
1891
- A200: "#ff5252",
1892
- A400: "#ff1744",
1893
- A700: "#d50000"
1894
- }, le = {
1895
- 50: "#fff3e0",
1896
- 100: "#ffe0b2",
1897
- 200: "#ffcc80",
1898
- 300: "#ffb74d",
1899
- 400: "#ffa726",
1900
- 500: "#ff9800",
1901
- 600: "#fb8c00",
1902
- 700: "#f57c00",
1903
- 800: "#ef6c00",
1904
- 900: "#e65100",
1905
- A100: "#ffd180",
1906
- A200: "#ffab40",
1907
- A400: "#ff9100",
1908
- A700: "#ff6d00"
1909
- }, ne = {
1910
- 50: "#e3f2fd",
1911
- 100: "#bbdefb",
1912
- 200: "#90caf9",
1913
- 300: "#64b5f6",
1914
- 400: "#42a5f5",
1915
- 500: "#2196f3",
1916
- 600: "#1e88e5",
1917
- 700: "#1976d2",
1918
- 800: "#1565c0",
1919
- 900: "#0d47a1",
1920
- A100: "#82b1ff",
1921
- A200: "#448aff",
1922
- A400: "#2979ff",
1923
- A700: "#2962ff"
1924
- }, oe = {
1925
- 50: "#e1f5fe",
1926
- 100: "#b3e5fc",
1927
- 200: "#81d4fa",
1928
- 300: "#4fc3f7",
1929
- 400: "#29b6f6",
1930
- 500: "#03a9f4",
1931
- 600: "#039be5",
1932
- 700: "#0288d1",
1933
- 800: "#0277bd",
1934
- 900: "#01579b",
1935
- A100: "#80d8ff",
1936
- A200: "#40c4ff",
1937
- A400: "#00b0ff",
1938
- A700: "#0091ea"
1939
- }, ie = {
1940
- 50: "#e8f5e9",
1941
- 100: "#c8e6c9",
1942
- 200: "#a5d6a7",
1943
- 300: "#81c784",
1944
- 400: "#66bb6a",
1945
- 500: "#4caf50",
1946
- 600: "#43a047",
1947
- 700: "#388e3c",
1948
- 800: "#2e7d32",
1949
- 900: "#1b5e20",
1950
- A100: "#b9f6ca",
1951
- A200: "#69f0ae",
1952
- A400: "#00e676",
1953
- A700: "#00c853"
1954
- }, xn = ["mode", "contrastThreshold", "tonalOffset"], gt = {
1955
- // The colors used to style the text.
1956
- text: {
1957
- // The most important text.
1958
- primary: "rgba(0, 0, 0, 0.87)",
1959
- // Secondary text.
1960
- secondary: "rgba(0, 0, 0, 0.6)",
1961
- // Disabled text have even lower visual prominence.
1962
- disabled: "rgba(0, 0, 0, 0.38)"
1963
- },
1964
- // The color used to divide different elements.
1965
- divider: "rgba(0, 0, 0, 0.12)",
1966
- // The background colors used to style the surfaces.
1967
- // Consistency between these values is important.
1968
- background: {
1969
- paper: ye.white,
1970
- default: ye.white
1971
- },
1972
- // The colors used to style the action elements.
1973
- action: {
1974
- // The color of an active action like an icon button.
1975
- active: "rgba(0, 0, 0, 0.54)",
1976
- // The color of an hovered action.
1977
- hover: "rgba(0, 0, 0, 0.04)",
1978
- hoverOpacity: 0.04,
1979
- // The color of a selected action.
1980
- selected: "rgba(0, 0, 0, 0.08)",
1981
- selectedOpacity: 0.08,
1982
- // The color of a disabled action.
1983
- disabled: "rgba(0, 0, 0, 0.26)",
1984
- // The background color of a disabled action.
1985
- disabledBackground: "rgba(0, 0, 0, 0.12)",
1986
- disabledOpacity: 0.38,
1987
- focus: "rgba(0, 0, 0, 0.12)",
1988
- focusOpacity: 0.12,
1989
- activatedOpacity: 0.12
1990
- }
1991
- }, Ye = {
1992
- text: {
1993
- primary: ye.white,
1994
- secondary: "rgba(255, 255, 255, 0.7)",
1995
- disabled: "rgba(255, 255, 255, 0.5)",
1996
- icon: "rgba(255, 255, 255, 0.5)"
1997
- },
1998
- divider: "rgba(255, 255, 255, 0.12)",
1999
- background: {
2000
- paper: "#121212",
2001
- default: "#121212"
2002
- },
2003
- action: {
2004
- active: ye.white,
2005
- hover: "rgba(255, 255, 255, 0.08)",
2006
- hoverOpacity: 0.08,
2007
- selected: "rgba(255, 255, 255, 0.16)",
2008
- selectedOpacity: 0.16,
2009
- disabled: "rgba(255, 255, 255, 0.3)",
2010
- disabledBackground: "rgba(255, 255, 255, 0.12)",
2011
- disabledOpacity: 0.38,
2012
- focus: "rgba(255, 255, 255, 0.12)",
2013
- focusOpacity: 0.12,
2014
- activatedOpacity: 0.24
2015
- }
2016
- };
2017
- function ht(e, t, r, n) {
2018
- const o = n.light || n, i = n.dark || n * 1.5;
2019
- e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = ln(e.main, o) : t === "dark" && (e.dark = fn(e.main, i)));
2020
- }
2021
- function _n(e = "light") {
2022
- return e === "dark" ? {
2023
- main: ne[200],
2024
- light: ne[50],
2025
- dark: ne[400]
2026
- } : {
2027
- main: ne[700],
2028
- light: ne[400],
2029
- dark: ne[800]
2030
- };
2031
- }
2032
- function Sn(e = "light") {
2033
- return e === "dark" ? {
2034
- main: te[200],
2035
- light: te[50],
2036
- dark: te[400]
2037
- } : {
2038
- main: te[500],
2039
- light: te[300],
2040
- dark: te[700]
2041
- };
2042
- }
2043
- function wn(e = "light") {
2044
- return e === "dark" ? {
2045
- main: re[500],
2046
- light: re[300],
2047
- dark: re[700]
2048
- } : {
2049
- main: re[700],
2050
- light: re[400],
2051
- dark: re[800]
2052
- };
2053
- }
2054
- function Cn(e = "light") {
2055
- return e === "dark" ? {
2056
- main: oe[400],
2057
- light: oe[300],
2058
- dark: oe[700]
2059
- } : {
2060
- main: oe[700],
2061
- light: oe[500],
2062
- dark: oe[900]
2063
- };
2064
- }
2065
- function $n(e = "light") {
2066
- return e === "dark" ? {
2067
- main: ie[400],
2068
- light: ie[300],
2069
- dark: ie[700]
2070
- } : {
2071
- main: ie[800],
2072
- light: ie[500],
2073
- dark: ie[900]
2074
- };
2075
- }
2076
- function Pn(e = "light") {
2077
- return e === "dark" ? {
2078
- main: le[400],
2079
- light: le[300],
2080
- dark: le[700]
2081
- } : {
2082
- main: "#ed6c02",
2083
- // closest to orange[800] that pass 3:1.
2084
- light: le[500],
2085
- dark: le[900]
2086
- };
2087
- }
2088
- function An(e) {
2089
- const {
2090
- mode: t = "light",
2091
- contrastThreshold: r = 3,
2092
- tonalOffset: n = 0.2
2093
- } = e, o = ue(e, xn), i = e.primary || _n(t), s = e.secondary || Sn(t), u = e.error || wn(t), l = e.info || Cn(t), f = e.success || $n(t), g = e.warning || Pn(t);
2094
- function h(d) {
2095
- const T = yt(d, Ye.text.primary) >= r ? Ye.text.primary : gt.text.primary;
2096
- if (process.env.NODE_ENV !== "production") {
2097
- const j = yt(d, T);
2098
- j < 3 && console.error([`MUI: The contrast ratio of ${j}:1 for ${T} on ${d}`, "falls below the WCAG recommended absolute minimum contrast ratio of 3:1.", "https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
2099
- `));
2100
- }
2101
- return T;
2102
- }
2103
- const c = ({
2104
- color: d,
2105
- name: T,
2106
- mainShade: j = 500,
2107
- lightShade: F = 300,
2108
- darkShade: N = 700
2109
- }) => {
2110
- if (d = D({}, d), !d.main && d[j] && (d.main = d[j]), !d.hasOwnProperty("main"))
2111
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${T ? ` (${T})` : ""} provided to augmentColor(color) is invalid.
2112
- The color object needs to have a \`main\` property or a \`${j}\` property.` : pe(11, T ? ` (${T})` : "", j));
2113
- if (typeof d.main != "string")
2114
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${T ? ` (${T})` : ""} provided to augmentColor(color) is invalid.
2115
- \`color.main\` should be a string, but \`${JSON.stringify(d.main)}\` was provided instead.
2116
-
2117
- Did you intend to use one of the following approaches?
2118
-
2119
- import { green } from "@mui/material/colors";
2120
-
2121
- const theme1 = createTheme({ palette: {
2122
- primary: green,
2123
- } });
2124
-
2125
- const theme2 = createTheme({ palette: {
2126
- primary: { main: green[500] },
2127
- } });` : pe(12, T ? ` (${T})` : "", JSON.stringify(d.main)));
2128
- return ht(d, "light", F, n), ht(d, "dark", N, n), d.contrastText || (d.contrastText = h(d.main)), d;
2129
- }, b = {
2130
- dark: Ye,
2131
- light: gt
2132
- };
2133
- return process.env.NODE_ENV !== "production" && (b[t] || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), V(D({
2134
- // A collection of common colors.
2135
- common: D({}, ye),
2136
- // prevent mutable object.
2137
- // The palette mode, can be light or dark.
2138
- mode: t,
2139
- // The colors used to represent primary interface elements for a user.
2140
- primary: c({
2141
- color: i,
2142
- name: "primary"
2143
- }),
2144
- // The colors used to represent secondary interface elements for a user.
2145
- secondary: c({
2146
- color: s,
2147
- name: "secondary",
2148
- mainShade: "A400",
2149
- lightShade: "A200",
2150
- darkShade: "A700"
2151
- }),
2152
- // The colors used to represent interface elements that the user should be made aware of.
2153
- error: c({
2154
- color: u,
2155
- name: "error"
2156
- }),
2157
- // The colors used to represent potentially dangerous actions or important messages.
2158
- warning: c({
2159
- color: g,
2160
- name: "warning"
2161
- }),
2162
- // The colors used to present information to the user that is neutral and not necessarily important.
2163
- info: c({
2164
- color: l,
2165
- name: "info"
2166
- }),
2167
- // The colors used to indicate the successful completion of an action that user triggered.
2168
- success: c({
2169
- color: f,
2170
- name: "success"
2171
- }),
2172
- // The grey colors.
2173
- grey: Tn,
2174
- // Used by `getContrastText()` to maximize the contrast between
2175
- // the background and the text.
2176
- contrastThreshold: r,
2177
- // Takes a background color and returns the text color that maximizes the contrast.
2178
- getContrastText: h,
2179
- // Generate a rich color object.
2180
- augmentColor: c,
2181
- // Used by the functions below to shift a color's luminance by approximately
2182
- // two indexes within its tonal palette.
2183
- // E.g., shift from Red 500 to Red 300 or Red 700.
2184
- tonalOffset: n
2185
- }, b[t]), o);
2186
- }
2187
- const Rn = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
2188
- function jn(e) {
2189
- return Math.round(e * 1e5) / 1e5;
2190
- }
2191
- const bt = {
2192
- textTransform: "uppercase"
2193
- }, vt = '"Roboto", "Helvetica", "Arial", sans-serif';
2194
- function In(e, t) {
2195
- const r = typeof t == "function" ? t(e) : t, {
2196
- fontFamily: n = vt,
2197
- // The default font size of the Material Specification.
2198
- fontSize: o = 14,
2199
- // px
2200
- fontWeightLight: i = 300,
2201
- fontWeightRegular: s = 400,
2202
- fontWeightMedium: u = 500,
2203
- fontWeightBold: l = 700,
2204
- // Tell MUI what's the font-size on the html element.
2205
- // 16px is the default font-size used by browsers.
2206
- htmlFontSize: f = 16,
2207
- // Apply the CSS properties to all the variants.
2208
- allVariants: g,
2209
- pxToRem: h
2210
- } = r, c = ue(r, Rn);
2211
- process.env.NODE_ENV !== "production" && (typeof o != "number" && console.error("MUI: `fontSize` is required to be a number."), typeof f != "number" && console.error("MUI: `htmlFontSize` is required to be a number."));
2212
- const b = o / 14, v = h || ((j) => `${j / f * b}rem`), d = (j, F, N, W, y) => D({
2213
- fontFamily: n,
2214
- fontWeight: j,
2215
- fontSize: v(F),
2216
- // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
2217
- lineHeight: N
2218
- }, n === vt ? {
2219
- letterSpacing: `${jn(W / F)}em`
2220
- } : {}, y, g), T = {
2221
- h1: d(i, 96, 1.167, -1.5),
2222
- h2: d(i, 60, 1.2, -0.5),
2223
- h3: d(s, 48, 1.167, 0),
2224
- h4: d(s, 34, 1.235, 0.25),
2225
- h5: d(s, 24, 1.334, 0),
2226
- h6: d(u, 20, 1.6, 0.15),
2227
- subtitle1: d(s, 16, 1.75, 0.15),
2228
- subtitle2: d(u, 14, 1.57, 0.1),
2229
- body1: d(s, 16, 1.5, 0.15),
2230
- body2: d(s, 14, 1.43, 0.15),
2231
- button: d(u, 14, 1.75, 0.4, bt),
2232
- caption: d(s, 12, 1.66, 0.4),
2233
- overline: d(s, 12, 2.66, 1, bt),
2234
- // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.
2235
- inherit: {
2236
- fontFamily: "inherit",
2237
- fontWeight: "inherit",
2238
- fontSize: "inherit",
2239
- lineHeight: "inherit",
2240
- letterSpacing: "inherit"
2241
- }
2242
- };
2243
- return V(D({
2244
- htmlFontSize: f,
2245
- pxToRem: v,
2246
- fontFamily: n,
2247
- fontSize: o,
2248
- fontWeightLight: i,
2249
- fontWeightRegular: s,
2250
- fontWeightMedium: u,
2251
- fontWeightBold: l
2252
- }, T), c, {
2253
- clone: !1
2254
- // No need to clone deep
2255
- });
2256
- }
2257
- const kn = 0.2, Mn = 0.14, Dn = 0.12;
2258
- function I(...e) {
2259
- return [`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${kn})`, `${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Mn})`, `${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Dn})`].join(",");
2260
- }
2261
- const Nn = ["none", I(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), I(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), I(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), I(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), I(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), I(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), I(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), I(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), I(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), I(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), I(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), I(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), I(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), I(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), I(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), I(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), I(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), I(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), I(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), I(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), I(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), I(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), I(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), I(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)], Bn = ["duration", "easing", "delay"], Un = {
2262
- // This is the most common easing curve.
2263
- easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
2264
- // Objects enter the screen at full velocity from off-screen and
2265
- // slowly decelerate to a resting point.
2266
- easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
2267
- // Objects leave the screen at full velocity. They do not decelerate when off-screen.
2268
- easeIn: "cubic-bezier(0.4, 0, 1, 1)",
2269
- // The sharp curve is used by objects that may return to the screen at any time.
2270
- sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
2271
- }, Wn = {
2272
- shortest: 150,
2273
- shorter: 200,
2274
- short: 250,
2275
- // most basic recommended timing
2276
- standard: 300,
2277
- // this is to be used in complex animations
2278
- complex: 375,
2279
- // recommended when something is entering screen
2280
- enteringScreen: 225,
2281
- // recommended when something is leaving screen
2282
- leavingScreen: 195
2283
- };
2284
- function Ot(e) {
2285
- return `${Math.round(e)}ms`;
2286
- }
2287
- function zn(e) {
2288
- if (!e)
2289
- return 0;
2290
- const t = e / 36;
2291
- return Math.round((4 + 15 * t ** 0.25 + t / 5) * 10);
2292
- }
2293
- function qn(e) {
2294
- const t = D({}, Un, e.easing), r = D({}, Wn, e.duration);
2295
- return D({
2296
- getAutoHeightDuration: zn,
2297
- create: (o = ["all"], i = {}) => {
2298
- const {
2299
- duration: s = r.standard,
2300
- easing: u = t.easeInOut,
2301
- delay: l = 0
2302
- } = i, f = ue(i, Bn);
2303
- if (process.env.NODE_ENV !== "production") {
2304
- const g = (c) => typeof c == "string", h = (c) => !isNaN(parseFloat(c));
2305
- !g(o) && !Array.isArray(o) && console.error('MUI: Argument "props" must be a string or Array.'), !h(s) && !g(s) && console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`), g(u) || console.error('MUI: Argument "easing" must be a string.'), !h(l) && !g(l) && console.error('MUI: Argument "delay" must be a number or a string.'), typeof i != "object" && console.error(["MUI: Secong argument of transition.create must be an object.", "Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
2306
- `)), Object.keys(f).length !== 0 && console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`);
2307
- }
2308
- return (Array.isArray(o) ? o : [o]).map((g) => `${g} ${typeof s == "string" ? s : Ot(s)} ${u} ${typeof l == "string" ? l : Ot(l)}`).join(",");
2309
- }
2310
- }, e, {
2311
- easing: t,
2312
- duration: r
2313
- });
2314
- }
2315
- const Ln = {
2316
- mobileStepper: 1e3,
2317
- fab: 1050,
2318
- speedDial: 1050,
2319
- appBar: 1100,
2320
- drawer: 1200,
2321
- modal: 1300,
2322
- snackbar: 1400,
2323
- tooltip: 1500
2324
- }, Kn = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
2325
- function Yn(e = {}, ...t) {
2326
- const {
2327
- mixins: r = {},
2328
- palette: n = {},
2329
- transitions: o = {},
2330
- typography: i = {}
2331
- } = e, s = ue(e, Kn);
2332
- if (e.vars)
2333
- throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : pe(18));
2334
- const u = An(n), l = At(e);
2335
- let f = V(l, {
2336
- mixins: sn(l.breakpoints, r),
2337
- palette: u,
2338
- // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
2339
- shadows: Nn.slice(),
2340
- typography: In(u, i),
2341
- transitions: qn(o),
2342
- zIndex: D({}, Ln)
2343
- });
2344
- if (f = V(f, s), f = t.reduce((g, h) => V(g, h), f), process.env.NODE_ENV !== "production") {
2345
- const g = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], h = (c, b) => {
2346
- let v;
2347
- for (v in c) {
2348
- const d = c[v];
2349
- if (g.indexOf(v) !== -1 && Object.keys(d).length > 0) {
2350
- if (process.env.NODE_ENV !== "production") {
2351
- const T = Qr("", v);
2352
- console.error([`MUI: The \`${b}\` component increases the CSS specificity of the \`${v}\` internal state.`, "You can not override it like this: ", JSON.stringify(c, null, 2), "", `Instead, you need to use the '&.${T}' syntax:`, JSON.stringify({
2353
- root: {
2354
- [`&.${T}`]: d
2355
- }
2356
- }, null, 2), "", "https://mui.com/r/state-classes-guide"].join(`
2357
- `));
2358
- }
2359
- c[v] = {};
2360
- }
2361
- }
2362
- };
2363
- Object.keys(f.components).forEach((c) => {
2364
- const b = f.components[c].styleOverrides;
2365
- b && c.indexOf("Mui") === 0 && h(b, c);
2366
- });
2367
- }
2368
- return f.unstable_sxConfig = D({}, Je, s == null ? void 0 : s.unstable_sxConfig), f.unstable_sx = function(h) {
2369
- return Xe({
2370
- sx: h,
2371
- theme: this
2372
- });
2373
- }, f;
2374
- }
2375
- const Fn = Yn();
2376
- function Qn({
2377
- props: e,
2378
- name: t
2379
- }) {
2380
- return tn({
2381
- props: e,
2382
- name: t,
2383
- defaultTheme: Fn,
2384
- themeId: on
2385
- });
2386
- }
2387
- export {
2388
- Jn as A,
2389
- $t as B,
2390
- Xr as C,
2391
- Vn as D,
2392
- tn as E,
2393
- ge as F,
2394
- Zr as G,
2395
- ln as H,
2396
- fn as I,
2397
- xe as J,
2398
- Zn as K,
2399
- fe as P,
2400
- on as T,
2401
- D as _,
2402
- Xn as a,
2403
- ue as b,
2404
- Ct as c,
2405
- Vr as d,
2406
- Yn as e,
2407
- Et as f,
2408
- Qr as g,
2409
- Fn as h,
2410
- an as i,
2411
- Hn as j,
2412
- pe as k,
2413
- qt as l,
2414
- V as m,
2415
- se as n,
2416
- At as o,
2417
- er as p,
2418
- Kr as q,
2419
- Rt as r,
2420
- Xe as s,
2421
- Je as t,
2422
- Qn as u,
2423
- Lr as v,
2424
- Gr as w,
2425
- en as x,
2426
- rn as y,
2427
- J as z
2428
- };