@carto/ps-react-ui 0.1.0-alpha.4 → 0.1.0-alpha.5

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.
@@ -1,322 +1,897 @@
1
- import * as React$2 from "react";
2
- import React__default, { useRef, useState, useEffect } from "react";
3
- import { makeStyles, Box, Typography, IconButton, Button } from "@material-ui/core";
4
- import { withStyles as withStyles$1 } from "@material-ui/styles";
5
- import * as ReactDOM from "react-dom";
6
- function toVal(mix) {
7
- var k, y, str = "";
8
- if (typeof mix === "string" || typeof mix === "number") {
9
- str += mix;
10
- } else if (typeof mix === "object") {
11
- if (Array.isArray(mix)) {
12
- for (k = 0; k < mix.length; k++) {
13
- if (mix[k]) {
14
- if (y = toVal(mix[k])) {
15
- str && (str += " ");
16
- str += y;
17
- }
18
- }
19
- }
20
- } else {
21
- for (k in mix) {
22
- if (mix[k]) {
23
- str && (str += " ");
24
- str += k;
25
- }
26
- }
27
- }
28
- }
29
- return str;
30
- }
31
- function clsx() {
32
- var i = 0, tmp, x, str = "";
33
- while (i < arguments.length) {
34
- if (tmp = arguments[i++]) {
35
- if (x = toVal(tmp)) {
36
- str && (str += " ");
37
- str += x;
38
- }
39
- }
40
- }
41
- return str;
42
- }
43
- function getAugmentedNamespace(n) {
44
- if (n.__esModule)
45
- return n;
46
- var a = Object.defineProperty({}, "__esModule", { value: true });
47
- Object.keys(n).forEach(function(k) {
48
- var d = Object.getOwnPropertyDescriptor(n, k);
49
- Object.defineProperty(a, k, d.get ? d : {
50
- enumerable: true,
1
+ import * as F from "react";
2
+ import ue, { useRef as Tt, useState as Ue, useEffect as wt } from "react";
3
+ import { makeStyles as St, Box as ie, Typography as me, IconButton as _t, Button as Rt } from "@material-ui/core";
4
+ import { withStyles as At } from "@material-ui/styles";
5
+ import * as Pt from "react-dom";
6
+ function pt(e) {
7
+ var t, r, n = "";
8
+ if (typeof e == "string" || typeof e == "number")
9
+ n += e;
10
+ else if (typeof e == "object")
11
+ if (Array.isArray(e))
12
+ for (t = 0; t < e.length; t++)
13
+ e[t] && (r = pt(e[t])) && (n && (n += " "), n += r);
14
+ else
15
+ for (t in e)
16
+ e[t] && (n && (n += " "), n += t);
17
+ return n;
18
+ }
19
+ function re() {
20
+ for (var e = 0, t, r, n = ""; e < arguments.length; )
21
+ (t = arguments[e++]) && (r = pt(t)) && (n && (n += " "), n += r);
22
+ return n;
23
+ }
24
+ function It(e) {
25
+ var t = e.default;
26
+ if (typeof t == "function") {
27
+ var r = function() {
28
+ return t.apply(this, arguments);
29
+ };
30
+ r.prototype = t.prototype;
31
+ } else
32
+ r = {};
33
+ return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
34
+ var o = Object.getOwnPropertyDescriptor(e, n);
35
+ Object.defineProperty(r, n, o.get ? o : {
36
+ enumerable: !0,
51
37
  get: function() {
52
- return n[k];
38
+ return e[n];
53
39
  }
54
40
  });
55
- });
56
- return a;
57
- }
58
- var DeleteOutline = {};
59
- var interopRequireDefault = { exports: {} };
60
- (function(module) {
61
- function _interopRequireDefault2(obj) {
62
- return obj && obj.__esModule ? obj : {
63
- "default": obj
41
+ }), r;
42
+ }
43
+ var je = {}, mt = { exports: {} };
44
+ (function(e) {
45
+ function t(r) {
46
+ return r && r.__esModule ? r : {
47
+ default: r
64
48
  };
65
49
  }
66
- module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
67
- })(interopRequireDefault);
68
- var interopRequireWildcard = { exports: {} };
69
- var _typeof$1 = { exports: {} };
70
- (function(module) {
71
- function _typeof2(obj) {
72
- "@babel/helpers - typeof";
73
- return module.exports = _typeof2 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
74
- return typeof obj2;
75
- } : function(obj2) {
76
- return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
77
- }, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof2(obj);
50
+ e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
51
+ })(mt);
52
+ var vt = { exports: {} }, gt = { exports: {} };
53
+ (function(e) {
54
+ function t(r) {
55
+ return e.exports = t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(n) {
56
+ return typeof n;
57
+ } : function(n) {
58
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
59
+ }, e.exports.__esModule = !0, e.exports.default = e.exports, t(r);
78
60
  }
79
- module.exports = _typeof2, module.exports.__esModule = true, module.exports["default"] = module.exports;
80
- })(_typeof$1);
81
- (function(module) {
82
- var _typeof2 = _typeof$1.exports["default"];
83
- function _getRequireWildcardCache(nodeInterop) {
84
- if (typeof WeakMap !== "function")
61
+ e.exports = t, e.exports.__esModule = !0, e.exports.default = e.exports;
62
+ })(gt);
63
+ (function(e) {
64
+ var t = gt.exports.default;
65
+ function r(o) {
66
+ if (typeof WeakMap != "function")
85
67
  return null;
86
- var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
87
- var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
88
- return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) {
89
- return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
90
- })(nodeInterop);
68
+ var a = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap();
69
+ return (r = function(f) {
70
+ return f ? c : a;
71
+ })(o);
91
72
  }
92
- function _interopRequireWildcard2(obj, nodeInterop) {
93
- if (!nodeInterop && obj && obj.__esModule) {
94
- return obj;
95
- }
96
- if (obj === null || _typeof2(obj) !== "object" && typeof obj !== "function") {
73
+ function n(o, a) {
74
+ if (!a && o && o.__esModule)
75
+ return o;
76
+ if (o === null || t(o) !== "object" && typeof o != "function")
97
77
  return {
98
- "default": obj
78
+ default: o
99
79
  };
80
+ var c = r(a);
81
+ if (c && c.has(o))
82
+ return c.get(o);
83
+ var s = {}, f = Object.defineProperty && Object.getOwnPropertyDescriptor;
84
+ for (var p in o)
85
+ if (p !== "default" && Object.prototype.hasOwnProperty.call(o, p)) {
86
+ var d = f ? Object.getOwnPropertyDescriptor(o, p) : null;
87
+ d && (d.get || d.set) ? Object.defineProperty(s, p, d) : s[p] = o[p];
88
+ }
89
+ return s.default = o, c && c.set(o, s), s;
90
+ }
91
+ e.exports = n, e.exports.__esModule = !0, e.exports.default = e.exports;
92
+ })(vt);
93
+ var ve = {};
94
+ function Ct(e, t) {
95
+ return process.env.NODE_ENV === "production" ? function() {
96
+ return null;
97
+ } : function() {
98
+ return e.apply(void 0, arguments) || t.apply(void 0, arguments);
99
+ };
100
+ }
101
+ function Y() {
102
+ return Y = Object.assign ? Object.assign.bind() : function(e) {
103
+ for (var t = 1; t < arguments.length; t++) {
104
+ var r = arguments[t];
105
+ for (var n in r)
106
+ Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
100
107
  }
101
- var cache = _getRequireWildcardCache(nodeInterop);
102
- if (cache && cache.has(obj)) {
103
- return cache.get(obj);
108
+ return e;
109
+ }, Y.apply(this, arguments);
110
+ }
111
+ function Me(e) {
112
+ return Me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
113
+ return typeof t;
114
+ } : function(t) {
115
+ return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
116
+ }, Me(e);
117
+ }
118
+ function ge(e) {
119
+ return e && Me(e) === "object" && e.constructor === Object;
120
+ }
121
+ function ne(e, t) {
122
+ var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
123
+ clone: !0
124
+ }, n = r.clone ? Y({}, e) : e;
125
+ return ge(e) && ge(t) && Object.keys(t).forEach(function(o) {
126
+ o !== "__proto__" && (ge(t[o]) && o in e ? n[o] = ne(e[o], t[o], r) : n[o] = t[o]);
127
+ }), n;
128
+ }
129
+ var U = { exports: {} }, he = { exports: {} }, I = {};
130
+ /** @license React v16.13.1
131
+ * react-is.production.min.js
132
+ *
133
+ * Copyright (c) Facebook, Inc. and its affiliates.
134
+ *
135
+ * This source code is licensed under the MIT license found in the
136
+ * LICENSE file in the root directory of this source tree.
137
+ */
138
+ var qe;
139
+ function Mt() {
140
+ if (qe)
141
+ return I;
142
+ qe = 1;
143
+ 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, a = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, q = e ? Symbol.for("react.scope") : 60119;
144
+ function j(u) {
145
+ if (typeof u == "object" && u !== null) {
146
+ var N = u.$$typeof;
147
+ switch (N) {
148
+ case t:
149
+ switch (u = u.type, u) {
150
+ case f:
151
+ case p:
152
+ case n:
153
+ case a:
154
+ case o:
155
+ case m:
156
+ return u;
157
+ default:
158
+ switch (u = u && u.$$typeof, u) {
159
+ case s:
160
+ case d:
161
+ case g:
162
+ case b:
163
+ case c:
164
+ return u;
165
+ default:
166
+ return N;
167
+ }
168
+ }
169
+ case r:
170
+ return N;
171
+ }
104
172
  }
105
- var newObj = {};
106
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
107
- for (var key in obj) {
108
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
109
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
110
- if (desc && (desc.get || desc.set)) {
111
- Object.defineProperty(newObj, key, desc);
112
- } else {
113
- newObj[key] = obj[key];
173
+ }
174
+ function M(u) {
175
+ return j(u) === p;
176
+ }
177
+ return I.AsyncMode = f, I.ConcurrentMode = p, I.ContextConsumer = s, I.ContextProvider = c, I.Element = t, I.ForwardRef = d, I.Fragment = n, I.Lazy = g, I.Memo = b, I.Portal = r, I.Profiler = a, I.StrictMode = o, I.Suspense = m, I.isAsyncMode = function(u) {
178
+ return M(u) || j(u) === f;
179
+ }, I.isConcurrentMode = M, I.isContextConsumer = function(u) {
180
+ return j(u) === s;
181
+ }, I.isContextProvider = function(u) {
182
+ return j(u) === c;
183
+ }, I.isElement = function(u) {
184
+ return typeof u == "object" && u !== null && u.$$typeof === t;
185
+ }, I.isForwardRef = function(u) {
186
+ return j(u) === d;
187
+ }, I.isFragment = function(u) {
188
+ return j(u) === n;
189
+ }, I.isLazy = function(u) {
190
+ return j(u) === g;
191
+ }, I.isMemo = function(u) {
192
+ return j(u) === b;
193
+ }, I.isPortal = function(u) {
194
+ return j(u) === r;
195
+ }, I.isProfiler = function(u) {
196
+ return j(u) === a;
197
+ }, I.isStrictMode = function(u) {
198
+ return j(u) === o;
199
+ }, I.isSuspense = function(u) {
200
+ return j(u) === m;
201
+ }, I.isValidElementType = function(u) {
202
+ return typeof u == "string" || typeof u == "function" || u === n || u === p || u === a || u === o || u === m || u === y || typeof u == "object" && u !== null && (u.$$typeof === g || u.$$typeof === b || u.$$typeof === c || u.$$typeof === s || u.$$typeof === d || u.$$typeof === E || u.$$typeof === D || u.$$typeof === q || u.$$typeof === h);
203
+ }, I.typeOf = j, I;
204
+ }
205
+ var C = {};
206
+ /** @license React v16.13.1
207
+ * react-is.development.js
208
+ *
209
+ * Copyright (c) Facebook, Inc. and its affiliates.
210
+ *
211
+ * This source code is licensed under the MIT license found in the
212
+ * LICENSE file in the root directory of this source tree.
213
+ */
214
+ var Le;
215
+ function $t() {
216
+ return Le || (Le = 1, process.env.NODE_ENV !== "production" && function() {
217
+ 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, a = e ? Symbol.for("react.profiler") : 60114, c = e ? Symbol.for("react.provider") : 60109, s = e ? Symbol.for("react.context") : 60110, f = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, d = e ? Symbol.for("react.forward_ref") : 60112, m = e ? Symbol.for("react.suspense") : 60113, y = e ? Symbol.for("react.suspense_list") : 60120, b = e ? Symbol.for("react.memo") : 60115, g = e ? Symbol.for("react.lazy") : 60116, h = e ? Symbol.for("react.block") : 60121, E = e ? Symbol.for("react.fundamental") : 60117, D = e ? Symbol.for("react.responder") : 60118, q = e ? Symbol.for("react.scope") : 60119;
218
+ function j(l) {
219
+ return typeof l == "string" || typeof l == "function" || l === n || l === p || l === a || l === o || l === m || l === y || typeof l == "object" && l !== null && (l.$$typeof === g || l.$$typeof === b || l.$$typeof === c || l.$$typeof === s || l.$$typeof === d || l.$$typeof === E || l.$$typeof === D || l.$$typeof === q || l.$$typeof === h);
220
+ }
221
+ function M(l) {
222
+ if (typeof l == "object" && l !== null) {
223
+ var J = l.$$typeof;
224
+ switch (J) {
225
+ case t:
226
+ var ae = l.type;
227
+ switch (ae) {
228
+ case f:
229
+ case p:
230
+ case n:
231
+ case a:
232
+ case o:
233
+ case m:
234
+ return ae;
235
+ default:
236
+ var ke = ae && ae.$$typeof;
237
+ switch (ke) {
238
+ case s:
239
+ case d:
240
+ case g:
241
+ case b:
242
+ case c:
243
+ return ke;
244
+ default:
245
+ return J;
246
+ }
247
+ }
248
+ case r:
249
+ return J;
114
250
  }
115
251
  }
116
252
  }
117
- newObj["default"] = obj;
118
- if (cache) {
119
- cache.set(obj, newObj);
253
+ var u = f, N = p, z = s, W = c, _ = t, k = d, B = n, X = g, te = b, Z = r, de = a, H = o, G = m, oe = !1;
254
+ function pe(l) {
255
+ return oe || (oe = !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.")), i(l) || M(l) === f;
256
+ }
257
+ function i(l) {
258
+ return M(l) === p;
259
+ }
260
+ function v(l) {
261
+ return M(l) === s;
262
+ }
263
+ function S(l) {
264
+ return M(l) === c;
265
+ }
266
+ function T(l) {
267
+ return typeof l == "object" && l !== null && l.$$typeof === t;
268
+ }
269
+ function x(l) {
270
+ return M(l) === d;
271
+ }
272
+ function R(l) {
273
+ return M(l) === n;
274
+ }
275
+ function O(l) {
276
+ return M(l) === g;
120
277
  }
121
- return newObj;
278
+ function w(l) {
279
+ return M(l) === b;
280
+ }
281
+ function A(l) {
282
+ return M(l) === r;
283
+ }
284
+ function $(l) {
285
+ return M(l) === a;
286
+ }
287
+ function P(l) {
288
+ return M(l) === o;
289
+ }
290
+ function L(l) {
291
+ return M(l) === m;
292
+ }
293
+ C.AsyncMode = u, C.ConcurrentMode = N, C.ContextConsumer = z, C.ContextProvider = W, C.Element = _, C.ForwardRef = k, C.Fragment = B, C.Lazy = X, C.Memo = te, C.Portal = Z, C.Profiler = de, C.StrictMode = H, C.Suspense = G, C.isAsyncMode = pe, C.isConcurrentMode = i, C.isContextConsumer = v, C.isContextProvider = S, C.isElement = T, C.isForwardRef = x, C.isFragment = R, C.isLazy = O, C.isMemo = w, C.isPortal = A, C.isProfiler = $, C.isStrictMode = P, C.isSuspense = L, C.isValidElementType = j, C.typeOf = M;
294
+ }()), C;
295
+ }
296
+ var Ye;
297
+ function ht() {
298
+ return Ye || (Ye = 1, function(e) {
299
+ process.env.NODE_ENV === "production" ? e.exports = Mt() : e.exports = $t();
300
+ }(he)), he.exports;
301
+ }
302
+ /*
303
+ object-assign
304
+ (c) Sindre Sorhus
305
+ @license MIT
306
+ */
307
+ var ye, Be;
308
+ function Nt() {
309
+ if (Be)
310
+ return ye;
311
+ Be = 1;
312
+ var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
313
+ function n(a) {
314
+ if (a == null)
315
+ throw new TypeError("Object.assign cannot be called with null or undefined");
316
+ return Object(a);
122
317
  }
123
- module.exports = _interopRequireWildcard2, module.exports.__esModule = true, module.exports["default"] = module.exports;
124
- })(interopRequireWildcard);
125
- var createSvgIcon$1 = {};
126
- function _extends() {
127
- _extends = Object.assign ? Object.assign.bind() : function(target) {
128
- for (var i = 1; i < arguments.length; i++) {
129
- var source = arguments[i];
130
- for (var key in source) {
131
- if (Object.prototype.hasOwnProperty.call(source, key)) {
132
- target[key] = source[key];
133
- }
318
+ function o() {
319
+ try {
320
+ if (!Object.assign)
321
+ return !1;
322
+ var a = new String("abc");
323
+ if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
324
+ return !1;
325
+ for (var c = {}, s = 0; s < 10; s++)
326
+ c["_" + String.fromCharCode(s)] = s;
327
+ var f = Object.getOwnPropertyNames(c).map(function(d) {
328
+ return c[d];
329
+ });
330
+ if (f.join("") !== "0123456789")
331
+ return !1;
332
+ var p = {};
333
+ return "abcdefghijklmnopqrst".split("").forEach(function(d) {
334
+ p[d] = d;
335
+ }), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
336
+ } catch {
337
+ return !1;
338
+ }
339
+ }
340
+ return ye = o() ? Object.assign : function(a, c) {
341
+ for (var s, f = n(a), p, d = 1; d < arguments.length; d++) {
342
+ s = Object(arguments[d]);
343
+ for (var m in s)
344
+ t.call(s, m) && (f[m] = s[m]);
345
+ if (e) {
346
+ p = e(s);
347
+ for (var y = 0; y < p.length; y++)
348
+ r.call(s, p[y]) && (f[p[y]] = s[p[y]]);
134
349
  }
135
350
  }
136
- return target;
137
- };
138
- return _extends.apply(this, arguments);
139
- }
140
- function _typeof(obj) {
141
- "@babel/helpers - typeof";
142
- return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
143
- return typeof obj2;
144
- } : function(obj2) {
145
- return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
146
- }, _typeof(obj);
147
- }
148
- function isPlainObject(item) {
149
- return item && _typeof(item) === "object" && item.constructor === Object;
150
- }
151
- function deepmerge(target, source) {
152
- var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
153
- clone: true
351
+ return f;
352
+ }, ye;
353
+ }
354
+ var be, He;
355
+ function We() {
356
+ if (He)
357
+ return be;
358
+ He = 1;
359
+ var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
360
+ return be = e, be;
361
+ }
362
+ var Ee, Je;
363
+ function yt() {
364
+ return Je || (Je = 1, Ee = Function.call.bind(Object.prototype.hasOwnProperty)), Ee;
365
+ }
366
+ var xe, Ke;
367
+ function Dt() {
368
+ if (Ke)
369
+ return xe;
370
+ Ke = 1;
371
+ var e = function() {
154
372
  };
155
- var output = options.clone ? _extends({}, target) : target;
156
- if (isPlainObject(target) && isPlainObject(source)) {
157
- Object.keys(source).forEach(function(key) {
158
- if (key === "__proto__") {
159
- return;
373
+ if (process.env.NODE_ENV !== "production") {
374
+ var t = We(), r = {}, n = yt();
375
+ e = function(a) {
376
+ var c = "Warning: " + a;
377
+ typeof console < "u" && console.error(c);
378
+ try {
379
+ throw new Error(c);
380
+ } catch {
160
381
  }
161
- if (isPlainObject(source[key]) && key in target) {
162
- output[key] = deepmerge(target[key], source[key], options);
163
- } else {
164
- output[key] = source[key];
165
- }
166
- });
382
+ };
167
383
  }
168
- return output;
169
- }
170
- function _defineProperty(obj, key, value) {
171
- if (key in obj) {
172
- Object.defineProperty(obj, key, {
173
- value,
174
- enumerable: true,
175
- configurable: true,
176
- writable: true
177
- });
178
- } else {
179
- obj[key] = value;
384
+ function o(a, c, s, f, p) {
385
+ if (process.env.NODE_ENV !== "production") {
386
+ for (var d in a)
387
+ if (n(a, d)) {
388
+ var m;
389
+ try {
390
+ if (typeof a[d] != "function") {
391
+ var y = Error((f || "React class") + ": " + s + " type `" + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[d] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
392
+ throw y.name = "Invariant Violation", y;
393
+ }
394
+ m = a[d](c, d, f, s, null, t);
395
+ } catch (g) {
396
+ m = g;
397
+ }
398
+ if (m && !(m instanceof Error) && e((f || "React class") + ": type specification of " + s + " `" + d + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof m + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."), m instanceof Error && !(m.message in r)) {
399
+ r[m.message] = !0;
400
+ var b = p ? p() : "";
401
+ e("Failed " + s + " type: " + m.message + (b ?? ""));
402
+ }
403
+ }
404
+ }
180
405
  }
181
- return obj;
406
+ return o.resetWarningCache = function() {
407
+ process.env.NODE_ENV !== "production" && (r = {});
408
+ }, xe = o, xe;
182
409
  }
183
- function formatMuiErrorMessage(code) {
184
- var url = "https://mui.com/production-error/?code=" + code;
185
- for (var i = 1; i < arguments.length; i += 1) {
186
- url += "&args[]=" + encodeURIComponent(arguments[i]);
410
+ var Oe, Xe;
411
+ function jt() {
412
+ if (Xe)
413
+ return Oe;
414
+ Xe = 1;
415
+ var e = ht(), t = Nt(), r = We(), n = yt(), o = Dt(), a = function() {
416
+ };
417
+ process.env.NODE_ENV !== "production" && (a = function(s) {
418
+ var f = "Warning: " + s;
419
+ typeof console < "u" && console.error(f);
420
+ try {
421
+ throw new Error(f);
422
+ } catch {
423
+ }
424
+ });
425
+ function c() {
426
+ return null;
187
427
  }
188
- return "Minified Material-UI error #" + code + "; visit " + url + " for the full message.";
428
+ return Oe = function(s, f) {
429
+ var p = typeof Symbol == "function" && Symbol.iterator, d = "@@iterator";
430
+ function m(i) {
431
+ var v = i && (p && i[p] || i[d]);
432
+ if (typeof v == "function")
433
+ return v;
434
+ }
435
+ var y = "<<anonymous>>", b = {
436
+ array: D("array"),
437
+ bigint: D("bigint"),
438
+ bool: D("boolean"),
439
+ func: D("function"),
440
+ number: D("number"),
441
+ object: D("object"),
442
+ string: D("string"),
443
+ symbol: D("symbol"),
444
+ any: q(),
445
+ arrayOf: j,
446
+ element: M(),
447
+ elementType: u(),
448
+ instanceOf: N,
449
+ node: k(),
450
+ objectOf: W,
451
+ oneOf: z,
452
+ oneOfType: _,
453
+ shape: X,
454
+ exact: te
455
+ };
456
+ function g(i, v) {
457
+ return i === v ? i !== 0 || 1 / i === 1 / v : i !== i && v !== v;
458
+ }
459
+ function h(i, v) {
460
+ this.message = i, this.data = v && typeof v == "object" ? v : {}, this.stack = "";
461
+ }
462
+ h.prototype = Error.prototype;
463
+ function E(i) {
464
+ if (process.env.NODE_ENV !== "production")
465
+ var v = {}, S = 0;
466
+ function T(R, O, w, A, $, P, L) {
467
+ if (A = A || y, P = P || w, L !== r) {
468
+ if (f) {
469
+ var l = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
470
+ throw l.name = "Invariant Violation", l;
471
+ } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
472
+ var J = A + ":" + w;
473
+ !v[J] && S < 3 && (a("You are manually calling a React.PropTypes validation function for the `" + P + "` prop on `" + A + "`. 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."), v[J] = !0, S++);
474
+ }
475
+ }
476
+ return O[w] == null ? R ? O[w] === null ? new h("The " + $ + " `" + P + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new h("The " + $ + " `" + P + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : i(O, w, A, $, P);
477
+ }
478
+ var x = T.bind(null, !1);
479
+ return x.isRequired = T.bind(null, !0), x;
480
+ }
481
+ function D(i) {
482
+ function v(S, T, x, R, O, w) {
483
+ var A = S[T], $ = H(A);
484
+ if ($ !== i) {
485
+ var P = G(A);
486
+ return new h("Invalid " + R + " `" + O + "` of type " + ("`" + P + "` supplied to `" + x + "`, expected ") + ("`" + i + "`."), { expectedType: i });
487
+ }
488
+ return null;
489
+ }
490
+ return E(v);
491
+ }
492
+ function q() {
493
+ return E(c);
494
+ }
495
+ function j(i) {
496
+ function v(S, T, x, R, O) {
497
+ if (typeof i != "function")
498
+ return new h("Property `" + O + "` of component `" + x + "` has invalid PropType notation inside arrayOf.");
499
+ var w = S[T];
500
+ if (!Array.isArray(w)) {
501
+ var A = H(w);
502
+ return new h("Invalid " + R + " `" + O + "` of type " + ("`" + A + "` supplied to `" + x + "`, expected an array."));
503
+ }
504
+ for (var $ = 0; $ < w.length; $++) {
505
+ var P = i(w, $, x, R, O + "[" + $ + "]", r);
506
+ if (P instanceof Error)
507
+ return P;
508
+ }
509
+ return null;
510
+ }
511
+ return E(v);
512
+ }
513
+ function M() {
514
+ function i(v, S, T, x, R) {
515
+ var O = v[S];
516
+ if (!s(O)) {
517
+ var w = H(O);
518
+ return new h("Invalid " + x + " `" + R + "` of type " + ("`" + w + "` supplied to `" + T + "`, expected a single ReactElement."));
519
+ }
520
+ return null;
521
+ }
522
+ return E(i);
523
+ }
524
+ function u() {
525
+ function i(v, S, T, x, R) {
526
+ var O = v[S];
527
+ if (!e.isValidElementType(O)) {
528
+ var w = H(O);
529
+ return new h("Invalid " + x + " `" + R + "` of type " + ("`" + w + "` supplied to `" + T + "`, expected a single ReactElement type."));
530
+ }
531
+ return null;
532
+ }
533
+ return E(i);
534
+ }
535
+ function N(i) {
536
+ function v(S, T, x, R, O) {
537
+ if (!(S[T] instanceof i)) {
538
+ var w = i.name || y, A = pe(S[T]);
539
+ return new h("Invalid " + R + " `" + O + "` of type " + ("`" + A + "` supplied to `" + x + "`, expected ") + ("instance of `" + w + "`."));
540
+ }
541
+ return null;
542
+ }
543
+ return E(v);
544
+ }
545
+ function z(i) {
546
+ if (!Array.isArray(i))
547
+ return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a("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]).") : a("Invalid argument supplied to oneOf, expected an array.")), c;
548
+ function v(S, T, x, R, O) {
549
+ for (var w = S[T], A = 0; A < i.length; A++)
550
+ if (g(w, i[A]))
551
+ return null;
552
+ var $ = JSON.stringify(i, function(L, l) {
553
+ var J = G(l);
554
+ return J === "symbol" ? String(l) : l;
555
+ });
556
+ return new h("Invalid " + R + " `" + O + "` of value `" + String(w) + "` " + ("supplied to `" + x + "`, expected one of " + $ + "."));
557
+ }
558
+ return E(v);
559
+ }
560
+ function W(i) {
561
+ function v(S, T, x, R, O) {
562
+ if (typeof i != "function")
563
+ return new h("Property `" + O + "` of component `" + x + "` has invalid PropType notation inside objectOf.");
564
+ var w = S[T], A = H(w);
565
+ if (A !== "object")
566
+ return new h("Invalid " + R + " `" + O + "` of type " + ("`" + A + "` supplied to `" + x + "`, expected an object."));
567
+ for (var $ in w)
568
+ if (n(w, $)) {
569
+ var P = i(w, $, x, R, O + "." + $, r);
570
+ if (P instanceof Error)
571
+ return P;
572
+ }
573
+ return null;
574
+ }
575
+ return E(v);
576
+ }
577
+ function _(i) {
578
+ if (!Array.isArray(i))
579
+ return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), c;
580
+ for (var v = 0; v < i.length; v++) {
581
+ var S = i[v];
582
+ if (typeof S != "function")
583
+ return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + oe(S) + " at index " + v + "."), c;
584
+ }
585
+ function T(x, R, O, w, A) {
586
+ for (var $ = [], P = 0; P < i.length; P++) {
587
+ var L = i[P], l = L(x, R, O, w, A, r);
588
+ if (l == null)
589
+ return null;
590
+ l.data && n(l.data, "expectedType") && $.push(l.data.expectedType);
591
+ }
592
+ var J = $.length > 0 ? ", expected one of type [" + $.join(", ") + "]" : "";
593
+ return new h("Invalid " + w + " `" + A + "` supplied to " + ("`" + O + "`" + J + "."));
594
+ }
595
+ return E(T);
596
+ }
597
+ function k() {
598
+ function i(v, S, T, x, R) {
599
+ return Z(v[S]) ? null : new h("Invalid " + x + " `" + R + "` supplied to " + ("`" + T + "`, expected a ReactNode."));
600
+ }
601
+ return E(i);
602
+ }
603
+ function B(i, v, S, T, x) {
604
+ return new h((i || "React class") + ": " + v + " type `" + S + "." + T + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + x + "`.");
605
+ }
606
+ function X(i) {
607
+ function v(S, T, x, R, O) {
608
+ var w = S[T], A = H(w);
609
+ if (A !== "object")
610
+ return new h("Invalid " + R + " `" + O + "` of type `" + A + "` " + ("supplied to `" + x + "`, expected `object`."));
611
+ for (var $ in i) {
612
+ var P = i[$];
613
+ if (typeof P != "function")
614
+ return B(x, R, O, $, G(P));
615
+ var L = P(w, $, x, R, O + "." + $, r);
616
+ if (L)
617
+ return L;
618
+ }
619
+ return null;
620
+ }
621
+ return E(v);
622
+ }
623
+ function te(i) {
624
+ function v(S, T, x, R, O) {
625
+ var w = S[T], A = H(w);
626
+ if (A !== "object")
627
+ return new h("Invalid " + R + " `" + O + "` of type `" + A + "` " + ("supplied to `" + x + "`, expected `object`."));
628
+ var $ = t({}, S[T], i);
629
+ for (var P in $) {
630
+ var L = i[P];
631
+ if (n(i, P) && typeof L != "function")
632
+ return B(x, R, O, P, G(L));
633
+ if (!L)
634
+ return new h("Invalid " + R + " `" + O + "` key `" + P + "` supplied to `" + x + "`.\nBad object: " + JSON.stringify(S[T], null, " ") + `
635
+ Valid keys: ` + JSON.stringify(Object.keys(i), null, " "));
636
+ var l = L(w, P, x, R, O + "." + P, r);
637
+ if (l)
638
+ return l;
639
+ }
640
+ return null;
641
+ }
642
+ return E(v);
643
+ }
644
+ function Z(i) {
645
+ switch (typeof i) {
646
+ case "number":
647
+ case "string":
648
+ case "undefined":
649
+ return !0;
650
+ case "boolean":
651
+ return !i;
652
+ case "object":
653
+ if (Array.isArray(i))
654
+ return i.every(Z);
655
+ if (i === null || s(i))
656
+ return !0;
657
+ var v = m(i);
658
+ if (v) {
659
+ var S = v.call(i), T;
660
+ if (v !== i.entries) {
661
+ for (; !(T = S.next()).done; )
662
+ if (!Z(T.value))
663
+ return !1;
664
+ } else
665
+ for (; !(T = S.next()).done; ) {
666
+ var x = T.value;
667
+ if (x && !Z(x[1]))
668
+ return !1;
669
+ }
670
+ } else
671
+ return !1;
672
+ return !0;
673
+ default:
674
+ return !1;
675
+ }
676
+ }
677
+ function de(i, v) {
678
+ return i === "symbol" ? !0 : v ? v["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && v instanceof Symbol : !1;
679
+ }
680
+ function H(i) {
681
+ var v = typeof i;
682
+ return Array.isArray(i) ? "array" : i instanceof RegExp ? "object" : de(v, i) ? "symbol" : v;
683
+ }
684
+ function G(i) {
685
+ if (typeof i > "u" || i === null)
686
+ return "" + i;
687
+ var v = H(i);
688
+ if (v === "object") {
689
+ if (i instanceof Date)
690
+ return "date";
691
+ if (i instanceof RegExp)
692
+ return "regexp";
693
+ }
694
+ return v;
695
+ }
696
+ function oe(i) {
697
+ var v = G(i);
698
+ switch (v) {
699
+ case "array":
700
+ case "object":
701
+ return "an " + v;
702
+ case "boolean":
703
+ case "date":
704
+ case "regexp":
705
+ return "a " + v;
706
+ default:
707
+ return v;
708
+ }
709
+ }
710
+ function pe(i) {
711
+ return !i.constructor || !i.constructor.name ? y : i.constructor.name;
712
+ }
713
+ return b.checkPropTypes = o, b.resetWarningCache = o.resetWarningCache, b.PropTypes = b, b;
714
+ }, Oe;
189
715
  }
190
- function capitalize(string) {
191
- if (typeof string !== "string") {
192
- throw new Error(formatMuiErrorMessage(7));
716
+ var Te, Ge;
717
+ function Wt() {
718
+ if (Ge)
719
+ return Te;
720
+ Ge = 1;
721
+ var e = We();
722
+ function t() {
193
723
  }
194
- return string.charAt(0).toUpperCase() + string.slice(1);
195
- }
196
- function createChainedFunction() {
197
- for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
198
- funcs[_key] = arguments[_key];
724
+ function r() {
199
725
  }
200
- return funcs.reduce(function(acc, func) {
201
- if (func == null) {
202
- return acc;
203
- }
204
- return function chainedFunction() {
205
- for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
206
- args[_key2] = arguments[_key2];
726
+ return r.resetWarningCache = t, Te = function() {
727
+ function n(c, s, f, p, d, m) {
728
+ if (m !== e) {
729
+ var y = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
730
+ throw y.name = "Invariant Violation", y;
207
731
  }
208
- acc.apply(this, args);
209
- func.apply(this, args);
732
+ }
733
+ n.isRequired = n;
734
+ function o() {
735
+ return n;
736
+ }
737
+ var a = {
738
+ array: n,
739
+ bigint: n,
740
+ bool: n,
741
+ func: n,
742
+ number: n,
743
+ object: n,
744
+ string: n,
745
+ symbol: n,
746
+ any: n,
747
+ arrayOf: o,
748
+ element: n,
749
+ elementType: n,
750
+ instanceOf: o,
751
+ node: n,
752
+ objectOf: o,
753
+ oneOf: o,
754
+ oneOfType: o,
755
+ shape: o,
756
+ exact: o,
757
+ checkPropTypes: r,
758
+ resetWarningCache: t
210
759
  };
760
+ return a.PropTypes = a, a;
761
+ }, Te;
762
+ }
763
+ if (process.env.NODE_ENV !== "production") {
764
+ var Vt = ht(), zt = !0;
765
+ U.exports = jt()(Vt.isElement, zt);
766
+ } else
767
+ U.exports = Wt()();
768
+ function se(e, t, r) {
769
+ return t in e ? Object.defineProperty(e, t, {
770
+ value: r,
771
+ enumerable: !0,
772
+ configurable: !0,
773
+ writable: !0
774
+ }) : e[t] = r, e;
775
+ }
776
+ function ce(e) {
777
+ for (var t = "https://mui.com/production-error/?code=" + e, r = 1; r < arguments.length; r += 1)
778
+ t += "&args[]=" + encodeURIComponent(arguments[r]);
779
+ return "Minified Material-UI error #" + e + "; visit " + t + " for the full message.";
780
+ }
781
+ function $e(e) {
782
+ if (typeof e != "string")
783
+ throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: capitalize(string) expects a string argument." : ce(7));
784
+ return e.charAt(0).toUpperCase() + e.slice(1);
785
+ }
786
+ function Ft() {
787
+ for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
788
+ t[r] = arguments[r];
789
+ return t.reduce(function(n, o) {
790
+ return o == null ? n : (process.env.NODE_ENV !== "production" && typeof o != "function" && console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null."), function() {
791
+ for (var c = arguments.length, s = new Array(c), f = 0; f < c; f++)
792
+ s[f] = arguments[f];
793
+ n.apply(this, s), o.apply(this, s);
794
+ });
211
795
  }, function() {
212
796
  });
213
797
  }
214
- function _objectWithoutPropertiesLoose(source, excluded) {
215
- if (source == null)
798
+ function kt(e, t) {
799
+ if (e == null)
216
800
  return {};
217
- var target = {};
218
- var sourceKeys = Object.keys(source);
219
- var key, i;
220
- for (i = 0; i < sourceKeys.length; i++) {
221
- key = sourceKeys[i];
222
- if (excluded.indexOf(key) >= 0)
223
- continue;
224
- target[key] = source[key];
225
- }
226
- return target;
801
+ var r = {}, n = Object.keys(e), o, a;
802
+ for (a = 0; a < n.length; a++)
803
+ o = n[a], !(t.indexOf(o) >= 0) && (r[o] = e[o]);
804
+ return r;
227
805
  }
228
- function _objectWithoutProperties(source, excluded) {
229
- if (source == null)
806
+ function ee(e, t) {
807
+ if (e == null)
230
808
  return {};
231
- var target = _objectWithoutPropertiesLoose(source, excluded);
232
- var key, i;
809
+ var r = kt(e, t), n, o;
233
810
  if (Object.getOwnPropertySymbols) {
234
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
235
- for (i = 0; i < sourceSymbolKeys.length; i++) {
236
- key = sourceSymbolKeys[i];
237
- if (excluded.indexOf(key) >= 0)
238
- continue;
239
- if (!Object.prototype.propertyIsEnumerable.call(source, key))
240
- continue;
241
- target[key] = source[key];
242
- }
811
+ var a = Object.getOwnPropertySymbols(e);
812
+ for (o = 0; o < a.length; o++)
813
+ n = a[o], !(t.indexOf(n) >= 0) && (!Object.prototype.propertyIsEnumerable.call(e, n) || (r[n] = e[n]));
243
814
  }
244
- return target;
815
+ return r;
245
816
  }
246
- var keys = ["xs", "sm", "md", "lg", "xl"];
247
- function createBreakpoints(breakpoints) {
248
- var _breakpoints$values = breakpoints.values, values = _breakpoints$values === void 0 ? {
817
+ var K = ["xs", "sm", "md", "lg", "xl"];
818
+ function Ut(e) {
819
+ var t = e.values, r = t === void 0 ? {
249
820
  xs: 0,
250
821
  sm: 600,
251
822
  md: 960,
252
823
  lg: 1280,
253
824
  xl: 1920
254
- } : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties(breakpoints, ["values", "unit", "step"]);
255
- function up(key) {
256
- var value = typeof values[key] === "number" ? values[key] : key;
257
- return "@media (min-width:".concat(value).concat(unit, ")");
825
+ } : t, n = e.unit, o = n === void 0 ? "px" : n, a = e.step, c = a === void 0 ? 5 : a, s = ee(e, ["values", "unit", "step"]);
826
+ function f(g) {
827
+ var h = typeof r[g] == "number" ? r[g] : g;
828
+ return "@media (min-width:".concat(h).concat(o, ")");
258
829
  }
259
- function down(key) {
260
- var endIndex = keys.indexOf(key) + 1;
261
- var upperbound = values[keys[endIndex]];
262
- if (endIndex === keys.length) {
263
- return up("xs");
264
- }
265
- var value = typeof upperbound === "number" && endIndex > 0 ? upperbound : key;
266
- return "@media (max-width:".concat(value - step / 100).concat(unit, ")");
830
+ function p(g) {
831
+ var h = K.indexOf(g) + 1, E = r[K[h]];
832
+ if (h === K.length)
833
+ return f("xs");
834
+ var D = typeof E == "number" && h > 0 ? E : g;
835
+ return "@media (max-width:".concat(D - c / 100).concat(o, ")");
267
836
  }
268
- function between(start, end) {
269
- var endIndex = keys.indexOf(end);
270
- if (endIndex === keys.length - 1) {
271
- return up(start);
272
- }
273
- return "@media (min-width:".concat(typeof values[start] === "number" ? values[start] : start).concat(unit, ") and ") + "(max-width:".concat((endIndex !== -1 && typeof values[keys[endIndex + 1]] === "number" ? values[keys[endIndex + 1]] : end) - step / 100).concat(unit, ")");
837
+ function d(g, h) {
838
+ var E = K.indexOf(h);
839
+ return E === K.length - 1 ? f(g) : "@media (min-width:".concat(typeof r[g] == "number" ? r[g] : g).concat(o, ") and ") + "(max-width:".concat((E !== -1 && typeof r[K[E + 1]] == "number" ? r[K[E + 1]] : h) - c / 100).concat(o, ")");
274
840
  }
275
- function only(key) {
276
- return between(key, key);
841
+ function m(g) {
842
+ return d(g, g);
277
843
  }
278
- function width(key) {
279
- return values[key];
844
+ var y = !1;
845
+ function b(g) {
846
+ return process.env.NODE_ENV !== "production" && (y || (y = !0, console.warn(["Material-UI: The `theme.breakpoints.width` utility is deprecated because it's redundant.", "Use the `theme.breakpoints.values` instead."].join(`
847
+ `)))), r[g];
280
848
  }
281
- return _extends({
282
- keys,
283
- values,
284
- up,
285
- down,
286
- between,
287
- only,
288
- width
289
- }, other);
290
- }
291
- function createMixins(breakpoints, spacing, mixins) {
292
- var _toolbar;
293
- return _extends({
294
- gutters: function gutters() {
295
- var styles3 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
296
- console.warn(["Material-UI: theme.mixins.gutters() is deprecated.", "You can use the source of the mixin directly:", "\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n"));
297
- return _extends({
298
- paddingLeft: spacing(2),
299
- paddingRight: spacing(2)
300
- }, styles3, _defineProperty({}, breakpoints.up("sm"), _extends({
301
- paddingLeft: spacing(3),
302
- paddingRight: spacing(3)
303
- }, styles3[breakpoints.up("sm")])));
849
+ return Y({
850
+ keys: K,
851
+ values: r,
852
+ up: f,
853
+ down: p,
854
+ between: d,
855
+ only: m,
856
+ width: b
857
+ }, s);
858
+ }
859
+ function qt(e, t, r) {
860
+ var n;
861
+ return Y({
862
+ gutters: function() {
863
+ var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
864
+ return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.", "You can use the source of the mixin directly:", `
865
+ paddingLeft: theme.spacing(2),
866
+ paddingRight: theme.spacing(2),
867
+ [theme.breakpoints.up('sm')]: {
868
+ paddingLeft: theme.spacing(3),
869
+ paddingRight: theme.spacing(3),
870
+ },
871
+ `].join(`
872
+ `)), Y({
873
+ paddingLeft: t(2),
874
+ paddingRight: t(2)
875
+ }, a, se({}, e.up("sm"), Y({
876
+ paddingLeft: t(3),
877
+ paddingRight: t(3)
878
+ }, a[e.up("sm")])));
304
879
  },
305
- toolbar: (_toolbar = {
880
+ toolbar: (n = {
306
881
  minHeight: 56
307
- }, _defineProperty(_toolbar, "".concat(breakpoints.up("xs"), " and (orientation: landscape)"), {
882
+ }, se(n, "".concat(e.up("xs"), " and (orientation: landscape)"), {
308
883
  minHeight: 48
309
- }), _defineProperty(_toolbar, breakpoints.up("sm"), {
884
+ }), se(n, e.up("sm"), {
310
885
  minHeight: 64
311
- }), _toolbar)
312
- }, mixins);
886
+ }), n)
887
+ }, r);
313
888
  }
314
- var common = {
889
+ var Lt = {
315
890
  black: "#000",
316
891
  white: "#fff"
317
892
  };
318
- var common$1 = common;
319
- var grey = {
893
+ const fe = Lt;
894
+ var Yt = {
320
895
  50: "#fafafa",
321
896
  100: "#f5f5f5",
322
897
  200: "#eeeeee",
@@ -332,8 +907,8 @@ var grey = {
332
907
  A400: "#303030",
333
908
  A700: "#616161"
334
909
  };
335
- var grey$1 = grey;
336
- var indigo = {
910
+ const Ve = Yt;
911
+ var Bt = {
337
912
  50: "#e8eaf6",
338
913
  100: "#c5cae9",
339
914
  200: "#9fa8da",
@@ -349,8 +924,8 @@ var indigo = {
349
924
  A400: "#3d5afe",
350
925
  A700: "#304ffe"
351
926
  };
352
- var indigo$1 = indigo;
353
- var pink = {
927
+ const we = Bt;
928
+ var Ht = {
354
929
  50: "#fce4ec",
355
930
  100: "#f8bbd0",
356
931
  200: "#f48fb1",
@@ -366,8 +941,8 @@ var pink = {
366
941
  A400: "#f50057",
367
942
  A700: "#c51162"
368
943
  };
369
- var pink$1 = pink;
370
- var red = {
944
+ const Se = Ht;
945
+ var Jt = {
371
946
  50: "#ffebee",
372
947
  100: "#ffcdd2",
373
948
  200: "#ef9a9a",
@@ -383,8 +958,8 @@ var red = {
383
958
  A400: "#ff1744",
384
959
  A700: "#d50000"
385
960
  };
386
- var red$1 = red;
387
- var orange = {
961
+ const _e = Jt;
962
+ var Kt = {
388
963
  50: "#fff3e0",
389
964
  100: "#ffe0b2",
390
965
  200: "#ffcc80",
@@ -400,8 +975,8 @@ var orange = {
400
975
  A400: "#ff9100",
401
976
  A700: "#ff6d00"
402
977
  };
403
- var orange$1 = orange;
404
- var blue = {
978
+ const Re = Kt;
979
+ var Xt = {
405
980
  50: "#e3f2fd",
406
981
  100: "#bbdefb",
407
982
  200: "#90caf9",
@@ -417,8 +992,8 @@ var blue = {
417
992
  A400: "#2979ff",
418
993
  A700: "#2962ff"
419
994
  };
420
- var blue$1 = blue;
421
- var green = {
995
+ const Ae = Xt;
996
+ var Gt = {
422
997
  50: "#e8f5e9",
423
998
  100: "#c8e6c9",
424
999
  200: "#a5d6a7",
@@ -434,120 +1009,81 @@ var green = {
434
1009
  A400: "#00e676",
435
1010
  A700: "#00c853"
436
1011
  };
437
- var green$1 = green;
438
- function clamp(value) {
439
- var min = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
440
- var max = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
441
- return Math.min(Math.max(min, value), max);
442
- }
443
- function hexToRgb(color) {
444
- color = color.substr(1);
445
- var re = new RegExp(".{1,".concat(color.length >= 6 ? 2 : 1, "}"), "g");
446
- var colors = color.match(re);
447
- if (colors && colors[0].length === 1) {
448
- colors = colors.map(function(n) {
449
- return n + n;
450
- });
451
- }
452
- return colors ? "rgb".concat(colors.length === 4 ? "a" : "", "(").concat(colors.map(function(n, index) {
453
- return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3;
1012
+ const Pe = Gt;
1013
+ function bt(e) {
1014
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
1015
+ return process.env.NODE_ENV !== "production" && (e < t || e > r) && console.error("Material-UI: The value provided ".concat(e, " is out of range [").concat(t, ", ").concat(r, "].")), Math.min(Math.max(t, e), r);
1016
+ }
1017
+ function Zt(e) {
1018
+ e = e.substr(1);
1019
+ var t = new RegExp(".{1,".concat(e.length >= 6 ? 2 : 1, "}"), "g"), r = e.match(t);
1020
+ return r && r[0].length === 1 && (r = r.map(function(n) {
1021
+ return n + n;
1022
+ })), r ? "rgb".concat(r.length === 4 ? "a" : "", "(").concat(r.map(function(n, o) {
1023
+ return o < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3;
454
1024
  }).join(", "), ")") : "";
455
1025
  }
456
- function hslToRgb(color) {
457
- color = decomposeColor(color);
458
- var _color = color, values = _color.values;
459
- var h = values[0];
460
- var s = values[1] / 100;
461
- var l = values[2] / 100;
462
- var a = s * Math.min(l, 1 - l);
463
- var f = function f2(n) {
464
- var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (n + h / 30) % 12;
465
- return l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
466
- };
467
- var type = "rgb";
468
- var rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];
469
- if (color.type === "hsla") {
470
- type += "a";
471
- rgb.push(values[3]);
472
- }
473
- return recomposeColor({
474
- type,
475
- values: rgb
1026
+ function Qt(e) {
1027
+ e = Q(e);
1028
+ var t = e, r = t.values, n = r[0], o = r[1] / 100, a = r[2] / 100, c = o * Math.min(a, 1 - a), s = function(m) {
1029
+ var y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : (m + n / 30) % 12;
1030
+ return a - c * Math.max(Math.min(y - 3, 9 - y, 1), -1);
1031
+ }, f = "rgb", p = [Math.round(s(0) * 255), Math.round(s(8) * 255), Math.round(s(4) * 255)];
1032
+ return e.type === "hsla" && (f += "a", p.push(r[3])), ze({
1033
+ type: f,
1034
+ values: p
476
1035
  });
477
1036
  }
478
- function decomposeColor(color) {
479
- if (color.type) {
480
- return color;
481
- }
482
- if (color.charAt(0) === "#") {
483
- return decomposeColor(hexToRgb(color));
484
- }
485
- var marker = color.indexOf("(");
486
- var type = color.substring(0, marker);
487
- if (["rgb", "rgba", "hsl", "hsla"].indexOf(type) === -1) {
488
- throw new Error(formatMuiErrorMessage(3, color));
489
- }
490
- var values = color.substring(marker + 1, color.length - 1).split(",");
491
- values = values.map(function(value) {
492
- return parseFloat(value);
493
- });
494
- return {
495
- type,
496
- values
1037
+ function Q(e) {
1038
+ if (e.type)
1039
+ return e;
1040
+ if (e.charAt(0) === "#")
1041
+ return Q(Zt(e));
1042
+ var t = e.indexOf("("), r = e.substring(0, t);
1043
+ if (["rgb", "rgba", "hsl", "hsla"].indexOf(r) === -1)
1044
+ throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: Unsupported `".concat(e, "` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla().") : ce(3, e));
1045
+ var n = e.substring(t + 1, e.length - 1).split(",");
1046
+ return n = n.map(function(o) {
1047
+ return parseFloat(o);
1048
+ }), {
1049
+ type: r,
1050
+ values: n
497
1051
  };
498
1052
  }
499
- function recomposeColor(color) {
500
- var type = color.type;
501
- var values = color.values;
502
- if (type.indexOf("rgb") !== -1) {
503
- values = values.map(function(n, i) {
504
- return i < 3 ? parseInt(n, 10) : n;
505
- });
506
- } else if (type.indexOf("hsl") !== -1) {
507
- values[1] = "".concat(values[1], "%");
508
- values[2] = "".concat(values[2], "%");
509
- }
510
- return "".concat(type, "(").concat(values.join(", "), ")");
511
- }
512
- function getContrastRatio(foreground, background) {
513
- var lumA = getLuminance(foreground);
514
- var lumB = getLuminance(background);
515
- return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);
516
- }
517
- function getLuminance(color) {
518
- color = decomposeColor(color);
519
- var rgb = color.type === "hsl" ? decomposeColor(hslToRgb(color)).values : color.values;
520
- rgb = rgb.map(function(val) {
521
- val /= 255;
522
- return val <= 0.03928 ? val / 12.92 : Math.pow((val + 0.055) / 1.055, 2.4);
523
- });
524
- return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
525
- }
526
- function darken(color, coefficient) {
527
- color = decomposeColor(color);
528
- coefficient = clamp(coefficient);
529
- if (color.type.indexOf("hsl") !== -1) {
530
- color.values[2] *= 1 - coefficient;
531
- } else if (color.type.indexOf("rgb") !== -1) {
532
- for (var i = 0; i < 3; i += 1) {
533
- color.values[i] *= 1 - coefficient;
534
- }
535
- }
536
- return recomposeColor(color);
537
- }
538
- function lighten(color, coefficient) {
539
- color = decomposeColor(color);
540
- coefficient = clamp(coefficient);
541
- if (color.type.indexOf("hsl") !== -1) {
542
- color.values[2] += (100 - color.values[2]) * coefficient;
543
- } else if (color.type.indexOf("rgb") !== -1) {
544
- for (var i = 0; i < 3; i += 1) {
545
- color.values[i] += (255 - color.values[i]) * coefficient;
546
- }
547
- }
548
- return recomposeColor(color);
1053
+ function ze(e) {
1054
+ var t = e.type, r = e.values;
1055
+ return t.indexOf("rgb") !== -1 ? r = r.map(function(n, o) {
1056
+ return o < 3 ? parseInt(n, 10) : n;
1057
+ }) : t.indexOf("hsl") !== -1 && (r[1] = "".concat(r[1], "%"), r[2] = "".concat(r[2], "%")), "".concat(t, "(").concat(r.join(", "), ")");
1058
+ }
1059
+ function Ze(e, t) {
1060
+ var r = Qe(e), n = Qe(t);
1061
+ return (Math.max(r, n) + 0.05) / (Math.min(r, n) + 0.05);
549
1062
  }
550
- var light = {
1063
+ function Qe(e) {
1064
+ e = Q(e);
1065
+ var t = e.type === "hsl" ? Q(Qt(e)).values : e.values;
1066
+ return t = t.map(function(r) {
1067
+ return r /= 255, r <= 0.03928 ? r / 12.92 : Math.pow((r + 0.055) / 1.055, 2.4);
1068
+ }), Number((0.2126 * t[0] + 0.7152 * t[1] + 0.0722 * t[2]).toFixed(3));
1069
+ }
1070
+ function er(e, t) {
1071
+ if (e = Q(e), t = bt(t), e.type.indexOf("hsl") !== -1)
1072
+ e.values[2] *= 1 - t;
1073
+ else if (e.type.indexOf("rgb") !== -1)
1074
+ for (var r = 0; r < 3; r += 1)
1075
+ e.values[r] *= 1 - t;
1076
+ return ze(e);
1077
+ }
1078
+ function tr(e, t) {
1079
+ if (e = Q(e), t = bt(t), e.type.indexOf("hsl") !== -1)
1080
+ e.values[2] += (100 - e.values[2]) * t;
1081
+ else if (e.type.indexOf("rgb") !== -1)
1082
+ for (var r = 0; r < 3; r += 1)
1083
+ e.values[r] += (255 - e.values[r]) * t;
1084
+ return ze(e);
1085
+ }
1086
+ var et = {
551
1087
  text: {
552
1088
  primary: "rgba(0, 0, 0, 0.87)",
553
1089
  secondary: "rgba(0, 0, 0, 0.54)",
@@ -556,8 +1092,8 @@ var light = {
556
1092
  },
557
1093
  divider: "rgba(0, 0, 0, 0.12)",
558
1094
  background: {
559
- paper: common$1.white,
560
- default: grey$1[50]
1095
+ paper: fe.white,
1096
+ default: Ve[50]
561
1097
  },
562
1098
  action: {
563
1099
  active: "rgba(0, 0, 0, 0.54)",
@@ -572,10 +1108,9 @@ var light = {
572
1108
  focusOpacity: 0.12,
573
1109
  activatedOpacity: 0.12
574
1110
  }
575
- };
576
- var dark = {
1111
+ }, Ie = {
577
1112
  text: {
578
- primary: common$1.white,
1113
+ primary: fe.white,
579
1114
  secondary: "rgba(255, 255, 255, 0.7)",
580
1115
  disabled: "rgba(255, 255, 255, 0.5)",
581
1116
  hint: "rgba(255, 255, 255, 0.5)",
@@ -583,11 +1118,11 @@ var dark = {
583
1118
  },
584
1119
  divider: "rgba(255, 255, 255, 0.12)",
585
1120
  background: {
586
- paper: grey$1[800],
1121
+ paper: Ve[800],
587
1122
  default: "#303030"
588
1123
  },
589
1124
  action: {
590
- active: common$1.white,
1125
+ active: fe.white,
591
1126
  hover: "rgba(255, 255, 255, 0.08)",
592
1127
  hoverOpacity: 0.08,
593
1128
  selected: "rgba(255, 255, 255, 0.16)",
@@ -600,218 +1135,197 @@ var dark = {
600
1135
  activatedOpacity: 0.24
601
1136
  }
602
1137
  };
603
- function addLightOrDark(intent, direction, shade, tonalOffset) {
604
- var tonalOffsetLight = tonalOffset.light || tonalOffset;
605
- var tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;
606
- if (!intent[direction]) {
607
- if (intent.hasOwnProperty(shade)) {
608
- intent[direction] = intent[shade];
609
- } else if (direction === "light") {
610
- intent.light = lighten(intent.main, tonalOffsetLight);
611
- } else if (direction === "dark") {
612
- intent.dark = darken(intent.main, tonalOffsetDark);
613
- }
614
- }
1138
+ function tt(e, t, r, n) {
1139
+ var o = n.light || n, a = n.dark || n * 1.5;
1140
+ e[t] || (e.hasOwnProperty(r) ? e[t] = e[r] : t === "light" ? e.light = tr(e.main, o) : t === "dark" && (e.dark = er(e.main, a)));
615
1141
  }
616
- function createPalette(palette) {
617
- var _palette$primary = palette.primary, primary = _palette$primary === void 0 ? {
618
- light: indigo$1[300],
619
- main: indigo$1[500],
620
- dark: indigo$1[700]
621
- } : _palette$primary, _palette$secondary = palette.secondary, secondary = _palette$secondary === void 0 ? {
622
- light: pink$1.A200,
623
- main: pink$1.A400,
624
- dark: pink$1.A700
625
- } : _palette$secondary, _palette$error = palette.error, error = _palette$error === void 0 ? {
626
- light: red$1[300],
627
- main: red$1[500],
628
- dark: red$1[700]
629
- } : _palette$error, _palette$warning = palette.warning, warning = _palette$warning === void 0 ? {
630
- light: orange$1[300],
631
- main: orange$1[500],
632
- dark: orange$1[700]
633
- } : _palette$warning, _palette$info = palette.info, info = _palette$info === void 0 ? {
634
- light: blue$1[300],
635
- main: blue$1[500],
636
- dark: blue$1[700]
637
- } : _palette$info, _palette$success = palette.success, success = _palette$success === void 0 ? {
638
- light: green$1[300],
639
- main: green$1[500],
640
- dark: green$1[700]
641
- } : _palette$success, _palette$type = palette.type, type = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
642
- function getContrastText(background) {
643
- var contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
644
- return contrastText;
645
- }
646
- var augmentColor = function augmentColor2(color) {
647
- var mainShade = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500;
648
- var lightShade = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300;
649
- var darkShade = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
650
- color = _extends({}, color);
651
- if (!color.main && color[mainShade]) {
652
- color.main = color[mainShade];
653
- }
654
- if (!color.main) {
655
- throw new Error(formatMuiErrorMessage(4, mainShade));
1142
+ function rr(e) {
1143
+ var t = e.primary, r = t === void 0 ? {
1144
+ light: we[300],
1145
+ main: we[500],
1146
+ dark: we[700]
1147
+ } : t, n = e.secondary, o = n === void 0 ? {
1148
+ light: Se.A200,
1149
+ main: Se.A400,
1150
+ dark: Se.A700
1151
+ } : n, a = e.error, c = a === void 0 ? {
1152
+ light: _e[300],
1153
+ main: _e[500],
1154
+ dark: _e[700]
1155
+ } : a, s = e.warning, f = s === void 0 ? {
1156
+ light: Re[300],
1157
+ main: Re[500],
1158
+ dark: Re[700]
1159
+ } : s, p = e.info, d = p === void 0 ? {
1160
+ light: Ae[300],
1161
+ main: Ae[500],
1162
+ dark: Ae[700]
1163
+ } : p, m = e.success, y = m === void 0 ? {
1164
+ light: Pe[300],
1165
+ main: Pe[500],
1166
+ dark: Pe[700]
1167
+ } : m, b = e.type, g = b === void 0 ? "light" : b, h = e.contrastThreshold, E = h === void 0 ? 3 : h, D = e.tonalOffset, q = D === void 0 ? 0.2 : D, j = ee(e, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
1168
+ function M(W) {
1169
+ var _ = Ze(W, Ie.text.primary) >= E ? Ie.text.primary : et.text.primary;
1170
+ if (process.env.NODE_ENV !== "production") {
1171
+ var k = Ze(W, _);
1172
+ k < 3 && console.error(["Material-UI: The contrast ratio of ".concat(k, ":1 for ").concat(_, " on ").concat(W), "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(`
1173
+ `));
656
1174
  }
657
- if (typeof color.main !== "string") {
658
- throw new Error(formatMuiErrorMessage(5, JSON.stringify(color.main)));
659
- }
660
- addLightOrDark(color, "light", lightShade, tonalOffset);
661
- addLightOrDark(color, "dark", darkShade, tonalOffset);
662
- if (!color.contrastText) {
663
- color.contrastText = getContrastText(color.main);
664
- }
665
- return color;
666
- };
667
- var types = {
668
- dark,
669
- light
1175
+ return _;
1176
+ }
1177
+ var u = function(_) {
1178
+ var k = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500, B = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300, X = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
1179
+ if (_ = Y({}, _), !_.main && _[k] && (_.main = _[k]), !_.main)
1180
+ throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(k, "` property.") : ce(4, k));
1181
+ if (typeof _.main != "string")
1182
+ throw new Error(process.env.NODE_ENV !== "production" ? "Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(_.main), `\` was provided instead.
1183
+
1184
+ Did you intend to use one of the following approaches?
1185
+
1186
+ import {\xA0green } from "@material-ui/core/colors";
1187
+
1188
+ const theme1 = createTheme({ palette: {
1189
+ primary: green,
1190
+ } });
1191
+
1192
+ const theme2 = createTheme({ palette: {
1193
+ primary: { main: green[500] },
1194
+ } });`) : ce(5, JSON.stringify(_.main)));
1195
+ return tt(_, "light", B, q), tt(_, "dark", X, q), _.contrastText || (_.contrastText = M(_.main)), _;
1196
+ }, N = {
1197
+ dark: Ie,
1198
+ light: et
670
1199
  };
671
- var paletteOutput = deepmerge(_extends({
672
- common: common$1,
673
- type,
674
- primary: augmentColor(primary),
675
- secondary: augmentColor(secondary, "A400", "A200", "A700"),
676
- error: augmentColor(error),
677
- warning: augmentColor(warning),
678
- info: augmentColor(info),
679
- success: augmentColor(success),
680
- grey: grey$1,
681
- contrastThreshold,
682
- getContrastText,
683
- augmentColor,
684
- tonalOffset
685
- }, types[type]), other);
686
- return paletteOutput;
687
- }
688
- function round(value) {
689
- return Math.round(value * 1e5) / 1e5;
690
- }
691
- function roundWithDeprecationWarning(value) {
692
- return round(value);
693
- }
694
- var caseAllCaps = {
1200
+ process.env.NODE_ENV !== "production" && (N[g] || console.error("Material-UI: The palette type `".concat(g, "` is not supported.")));
1201
+ var z = ne(Y({
1202
+ common: fe,
1203
+ type: g,
1204
+ primary: u(r),
1205
+ secondary: u(o, "A400", "A200", "A700"),
1206
+ error: u(c),
1207
+ warning: u(f),
1208
+ info: u(d),
1209
+ success: u(y),
1210
+ grey: Ve,
1211
+ contrastThreshold: E,
1212
+ getContrastText: M,
1213
+ augmentColor: u,
1214
+ tonalOffset: q
1215
+ }, N[g]), j);
1216
+ return z;
1217
+ }
1218
+ function Et(e) {
1219
+ return Math.round(e * 1e5) / 1e5;
1220
+ }
1221
+ var rt = !1;
1222
+ function nr(e) {
1223
+ return process.env.NODE_ENV !== "production" && (rt || (console.warn(["Material-UI: The `theme.typography.round` helper is deprecated.", "Head to https://mui.com/r/migration-v4/#theme for a migration path."].join(`
1224
+ `)), rt = !0)), Et(e);
1225
+ }
1226
+ var nt = {
695
1227
  textTransform: "uppercase"
696
- };
697
- var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
698
- function createTypography(palette, typography) {
699
- var _ref = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref.fontFamily, fontFamily = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref.fontSize, fontSize = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref.allVariants, pxToRem2 = _ref.pxToRem, other = _objectWithoutProperties(_ref, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
700
- var coef = fontSize / 14;
701
- var pxToRem = pxToRem2 || function(size) {
702
- return "".concat(size / htmlFontSize * coef, "rem");
703
- };
704
- var buildVariant = function buildVariant2(fontWeight, size, lineHeight, letterSpacing, casing) {
705
- return _extends({
706
- fontFamily,
707
- fontWeight,
708
- fontSize: pxToRem(size),
709
- lineHeight
710
- }, fontFamily === defaultFontFamily ? {
711
- letterSpacing: "".concat(round(letterSpacing / size), "em")
712
- } : {}, casing, allVariants);
1228
+ }, ot = '"Roboto", "Helvetica", "Arial", sans-serif';
1229
+ function or(e, t) {
1230
+ var r = typeof t == "function" ? t(e) : t, n = r.fontFamily, o = n === void 0 ? ot : n, a = r.fontSize, c = a === void 0 ? 14 : a, s = r.fontWeightLight, f = s === void 0 ? 300 : s, p = r.fontWeightRegular, d = p === void 0 ? 400 : p, m = r.fontWeightMedium, y = m === void 0 ? 500 : m, b = r.fontWeightBold, g = b === void 0 ? 700 : b, h = r.htmlFontSize, E = h === void 0 ? 16 : h, D = r.allVariants, q = r.pxToRem, j = ee(r, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
1231
+ process.env.NODE_ENV !== "production" && (typeof c != "number" && console.error("Material-UI: `fontSize` is required to be a number."), typeof E != "number" && console.error("Material-UI: `htmlFontSize` is required to be a number."));
1232
+ var M = c / 14, u = q || function(W) {
1233
+ return "".concat(W / E * M, "rem");
1234
+ }, N = function(_, k, B, X, te) {
1235
+ return Y({
1236
+ fontFamily: o,
1237
+ fontWeight: _,
1238
+ fontSize: u(k),
1239
+ lineHeight: B
1240
+ }, o === ot ? {
1241
+ letterSpacing: "".concat(Et(X / k), "em")
1242
+ } : {}, te, D);
1243
+ }, z = {
1244
+ h1: N(f, 96, 1.167, -1.5),
1245
+ h2: N(f, 60, 1.2, -0.5),
1246
+ h3: N(d, 48, 1.167, 0),
1247
+ h4: N(d, 34, 1.235, 0.25),
1248
+ h5: N(d, 24, 1.334, 0),
1249
+ h6: N(y, 20, 1.6, 0.15),
1250
+ subtitle1: N(d, 16, 1.75, 0.15),
1251
+ subtitle2: N(y, 14, 1.57, 0.1),
1252
+ body1: N(d, 16, 1.5, 0.15),
1253
+ body2: N(d, 14, 1.43, 0.15),
1254
+ button: N(y, 14, 1.75, 0.4, nt),
1255
+ caption: N(d, 12, 1.66, 0.4),
1256
+ overline: N(d, 12, 2.66, 1, nt)
713
1257
  };
714
- var variants = {
715
- h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),
716
- h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),
717
- h3: buildVariant(fontWeightRegular, 48, 1.167, 0),
718
- h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),
719
- h5: buildVariant(fontWeightRegular, 24, 1.334, 0),
720
- h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),
721
- subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),
722
- subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),
723
- body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),
724
- body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),
725
- button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),
726
- caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
727
- overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)
728
- };
729
- return deepmerge(_extends({
730
- htmlFontSize,
731
- pxToRem,
732
- round: roundWithDeprecationWarning,
733
- fontFamily,
734
- fontSize,
735
- fontWeightLight,
736
- fontWeightRegular,
737
- fontWeightMedium,
738
- fontWeightBold
739
- }, variants), other, {
740
- clone: false
1258
+ return ne(Y({
1259
+ htmlFontSize: E,
1260
+ pxToRem: u,
1261
+ round: nr,
1262
+ fontFamily: o,
1263
+ fontSize: c,
1264
+ fontWeightLight: f,
1265
+ fontWeightRegular: d,
1266
+ fontWeightMedium: y,
1267
+ fontWeightBold: g
1268
+ }, z), j, {
1269
+ clone: !1
741
1270
  });
742
1271
  }
743
- var shadowKeyUmbraOpacity = 0.2;
744
- var shadowKeyPenumbraOpacity = 0.14;
745
- var shadowAmbientShadowOpacity = 0.12;
746
- function createShadow() {
747
- return ["".concat(arguments.length <= 0 ? void 0 : arguments[0], "px ").concat(arguments.length <= 1 ? void 0 : arguments[1], "px ").concat(arguments.length <= 2 ? void 0 : arguments[2], "px ").concat(arguments.length <= 3 ? void 0 : arguments[3], "px rgba(0,0,0,").concat(shadowKeyUmbraOpacity, ")"), "".concat(arguments.length <= 4 ? void 0 : arguments[4], "px ").concat(arguments.length <= 5 ? void 0 : arguments[5], "px ").concat(arguments.length <= 6 ? void 0 : arguments[6], "px ").concat(arguments.length <= 7 ? void 0 : arguments[7], "px rgba(0,0,0,").concat(shadowKeyPenumbraOpacity, ")"), "".concat(arguments.length <= 8 ? void 0 : arguments[8], "px ").concat(arguments.length <= 9 ? void 0 : arguments[9], "px ").concat(arguments.length <= 10 ? void 0 : arguments[10], "px ").concat(arguments.length <= 11 ? void 0 : arguments[11], "px rgba(0,0,0,").concat(shadowAmbientShadowOpacity, ")")].join(",");
1272
+ var ar = 0.2, ir = 0.14, ur = 0.12;
1273
+ function V() {
1274
+ return ["".concat(arguments.length <= 0 ? void 0 : arguments[0], "px ").concat(arguments.length <= 1 ? void 0 : arguments[1], "px ").concat(arguments.length <= 2 ? void 0 : arguments[2], "px ").concat(arguments.length <= 3 ? void 0 : arguments[3], "px rgba(0,0,0,").concat(ar, ")"), "".concat(arguments.length <= 4 ? void 0 : arguments[4], "px ").concat(arguments.length <= 5 ? void 0 : arguments[5], "px ").concat(arguments.length <= 6 ? void 0 : arguments[6], "px ").concat(arguments.length <= 7 ? void 0 : arguments[7], "px rgba(0,0,0,").concat(ir, ")"), "".concat(arguments.length <= 8 ? void 0 : arguments[8], "px ").concat(arguments.length <= 9 ? void 0 : arguments[9], "px ").concat(arguments.length <= 10 ? void 0 : arguments[10], "px ").concat(arguments.length <= 11 ? void 0 : arguments[11], "px rgba(0,0,0,").concat(ur, ")")].join(",");
748
1275
  }
749
- var shadows = ["none", createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
750
- var shadows$1 = shadows;
751
- var shape = {
1276
+ var sr = ["none", V(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), V(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), V(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), V(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), V(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), V(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), V(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), V(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), V(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), V(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), V(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), V(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), V(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), V(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), V(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), V(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), V(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), V(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), V(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), V(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), V(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), V(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), V(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), V(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
1277
+ const cr = sr;
1278
+ var fr = {
752
1279
  borderRadius: 4
753
1280
  };
754
- var shape$1 = shape;
755
- function createUnarySpacing(theme) {
756
- var themeSpacing = theme.spacing || 8;
757
- if (typeof themeSpacing === "number") {
758
- return function(abs) {
759
- return themeSpacing * abs;
760
- };
761
- }
762
- if (Array.isArray(themeSpacing)) {
763
- return function(abs) {
764
- return themeSpacing[abs];
765
- };
766
- }
767
- if (typeof themeSpacing === "function") {
768
- return themeSpacing;
769
- }
770
- return function() {
771
- return void 0;
772
- };
773
- }
774
- function createSpacing() {
775
- var spacingInput = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 8;
776
- if (spacingInput.mui) {
777
- return spacingInput;
778
- }
779
- var transform = createUnarySpacing({
780
- spacing: spacingInput
1281
+ const lr = fr;
1282
+ var dr = process.env.NODE_ENV !== "production" ? U.exports.oneOfType([U.exports.number, U.exports.string, U.exports.object, U.exports.array]) : {};
1283
+ const pr = dr;
1284
+ var mr = ["m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY"];
1285
+ function vr(e) {
1286
+ var t = e.spacing || 8;
1287
+ return typeof t == "number" ? function(r) {
1288
+ return process.env.NODE_ENV !== "production" && typeof r != "number" && console.error("Material-UI: Expected spacing argument to be a number, got ".concat(r, ".")), t * r;
1289
+ } : Array.isArray(t) ? function(r) {
1290
+ return process.env.NODE_ENV !== "production" && r > t.length - 1 && console.error(["Material-UI: The value provided (".concat(r, ") overflows."), "The supported values are: ".concat(JSON.stringify(t), "."), "".concat(r, " > ").concat(t.length - 1, ", you need to add the missing values.")].join(`
1291
+ `)), t[r];
1292
+ } : typeof t == "function" ? t : (process.env.NODE_ENV !== "production" && console.error(["Material-UI: The `theme.spacing` value (".concat(t, ") is invalid."), "It should be a number, an array or a function."].join(`
1293
+ `)), function() {
781
1294
  });
782
- var spacing = function spacing2() {
783
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
784
- args[_key] = arguments[_key];
785
- }
786
- if (args.length === 0) {
787
- return transform(1);
788
- }
789
- if (args.length === 1) {
790
- return transform(args[0]);
791
- }
792
- return args.map(function(argument) {
793
- if (typeof argument === "string") {
794
- return argument;
795
- }
796
- var output = transform(argument);
797
- return typeof output === "number" ? "".concat(output, "px") : output;
1295
+ }
1296
+ process.env.NODE_ENV !== "production" && mr.reduce(function(e, t) {
1297
+ return e[t] = pr, e;
1298
+ }, {});
1299
+ var at;
1300
+ function gr() {
1301
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 8;
1302
+ if (e.mui)
1303
+ return e;
1304
+ var t = vr({
1305
+ spacing: e
1306
+ }), r = function() {
1307
+ for (var o = arguments.length, a = new Array(o), c = 0; c < o; c++)
1308
+ a[c] = arguments[c];
1309
+ return process.env.NODE_ENV !== "production" && (a.length <= 4 || console.error("Material-UI: Too many arguments provided, expected between 0 and 4, got ".concat(a.length))), a.length === 0 ? t(1) : a.length === 1 ? t(a[0]) : a.map(function(s) {
1310
+ if (typeof s == "string")
1311
+ return s;
1312
+ var f = t(s);
1313
+ return typeof f == "number" ? "".concat(f, "px") : f;
798
1314
  }).join(" ");
799
1315
  };
800
- Object.defineProperty(spacing, "unit", {
801
- get: function get() {
802
- return spacingInput;
1316
+ return Object.defineProperty(r, "unit", {
1317
+ get: function() {
1318
+ return process.env.NODE_ENV !== "production" && ((!at || process.env.NODE_ENV === "test") && console.error(["Material-UI: theme.spacing.unit usage has been deprecated.", "It will be removed in v5.", "You can replace `theme.spacing.unit * y` with `theme.spacing(y)`.", "", "You can use the `https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod/README.md#theme-spacing-api` migration helper to make the process smoother."].join(`
1319
+ `)), at = !0), e;
803
1320
  }
804
- });
805
- spacing.mui = true;
806
- return spacing;
1321
+ }), r.mui = !0, r;
807
1322
  }
808
- var easing = {
1323
+ var it = {
809
1324
  easeInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
810
1325
  easeOut: "cubic-bezier(0.0, 0, 0.2, 1)",
811
1326
  easeIn: "cubic-bezier(0.4, 0, 1, 1)",
812
1327
  sharp: "cubic-bezier(0.4, 0, 0.6, 1)"
813
- };
814
- var duration = {
1328
+ }, ut = {
815
1329
  shortest: 150,
816
1330
  shorter: 200,
817
1331
  short: 250,
@@ -820,30 +1334,34 @@ var duration = {
820
1334
  enteringScreen: 225,
821
1335
  leavingScreen: 195
822
1336
  };
823
- function formatMs(milliseconds) {
824
- return "".concat(Math.round(milliseconds), "ms");
825
- }
826
- var transitions = {
827
- easing,
828
- duration,
829
- create: function create() {
830
- var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["all"];
831
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
832
- var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay;
833
- _objectWithoutProperties(options, ["duration", "easing", "delay"]);
834
- return (Array.isArray(props) ? props : [props]).map(function(animatedProp) {
835
- return "".concat(animatedProp, " ").concat(typeof durationOption === "string" ? durationOption : formatMs(durationOption), " ").concat(easingOption, " ").concat(typeof delay === "string" ? delay : formatMs(delay));
1337
+ function st(e) {
1338
+ return "".concat(Math.round(e), "ms");
1339
+ }
1340
+ const hr = {
1341
+ easing: it,
1342
+ duration: ut,
1343
+ create: function() {
1344
+ var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["all"], r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = r.duration, o = n === void 0 ? ut.standard : n, a = r.easing, c = a === void 0 ? it.easeInOut : a, s = r.delay, f = s === void 0 ? 0 : s, p = ee(r, ["duration", "easing", "delay"]);
1345
+ if (process.env.NODE_ENV !== "production") {
1346
+ var d = function(b) {
1347
+ return typeof b == "string";
1348
+ }, m = function(b) {
1349
+ return !isNaN(parseFloat(b));
1350
+ };
1351
+ !d(t) && !Array.isArray(t) && console.error('Material-UI: Argument "props" must be a string or Array.'), !m(o) && !d(o) && console.error('Material-UI: Argument "duration" must be a number or a string but found '.concat(o, ".")), d(c) || console.error('Material-UI: Argument "easing" must be a string.'), !m(f) && !d(f) && console.error('Material-UI: Argument "delay" must be a number or a string.'), Object.keys(p).length !== 0 && console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(p).join(","), "]."));
1352
+ }
1353
+ return (Array.isArray(t) ? t : [t]).map(function(y) {
1354
+ return "".concat(y, " ").concat(typeof o == "string" ? o : st(o), " ").concat(c, " ").concat(typeof f == "string" ? f : st(f));
836
1355
  }).join(",");
837
1356
  },
838
- getAutoHeightDuration: function getAutoHeightDuration(height) {
839
- if (!height) {
1357
+ getAutoHeightDuration: function(t) {
1358
+ if (!t)
840
1359
  return 0;
841
- }
842
- var constant = height / 36;
843
- return Math.round((4 + 15 * Math.pow(constant, 0.25) + constant / 5) * 10);
1360
+ var r = t / 36;
1361
+ return Math.round((4 + 15 * Math.pow(r, 0.25) + r / 5) * 10);
844
1362
  }
845
1363
  };
846
- var zIndex = {
1364
+ var yr = {
847
1365
  mobileStepper: 1e3,
848
1366
  speedDial: 1050,
849
1367
  appBar: 1100,
@@ -852,43 +1370,48 @@ var zIndex = {
852
1370
  snackbar: 1400,
853
1371
  tooltip: 1500
854
1372
  };
855
- var zIndex$1 = zIndex;
856
- function createTheme() {
857
- var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
858
- var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
859
- var palette = createPalette(paletteInput);
860
- var breakpoints = createBreakpoints(breakpointsInput);
861
- var spacing = createSpacing(spacingInput);
862
- var muiTheme = deepmerge({
863
- breakpoints,
1373
+ const br = yr;
1374
+ function Er() {
1375
+ for (var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = e.breakpoints, r = t === void 0 ? {} : t, n = e.mixins, o = n === void 0 ? {} : n, a = e.palette, c = a === void 0 ? {} : a, s = e.spacing, f = e.typography, p = f === void 0 ? {} : f, d = ee(e, ["breakpoints", "mixins", "palette", "spacing", "typography"]), m = rr(c), y = Ut(r), b = gr(s), g = ne({
1376
+ breakpoints: y,
864
1377
  direction: "ltr",
865
- mixins: createMixins(breakpoints, spacing, mixinsInput),
1378
+ mixins: qt(y, b, o),
866
1379
  overrides: {},
867
- palette,
1380
+ palette: m,
868
1381
  props: {},
869
- shadows: shadows$1,
870
- typography: createTypography(palette, typographyInput),
871
- spacing,
872
- shape: shape$1,
873
- transitions,
874
- zIndex: zIndex$1
875
- }, other);
876
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
877
- args[_key - 1] = arguments[_key];
1382
+ shadows: cr,
1383
+ typography: or(m, p),
1384
+ spacing: b,
1385
+ shape: lr,
1386
+ transitions: hr,
1387
+ zIndex: br
1388
+ }, d), h = arguments.length, E = new Array(h > 1 ? h - 1 : 0), D = 1; D < h; D++)
1389
+ E[D - 1] = arguments[D];
1390
+ if (g = E.reduce(function(M, u) {
1391
+ return ne(M, u);
1392
+ }, g), process.env.NODE_ENV !== "production") {
1393
+ var q = ["checked", "disabled", "error", "focused", "focusVisible", "required", "expanded", "selected"], j = function M(u, N) {
1394
+ var z = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, W;
1395
+ for (W in u) {
1396
+ var _ = u[W];
1397
+ z === 1 ? W.indexOf("Mui") === 0 && _ && M(_, W, z + 1) : q.indexOf(W) !== -1 && Object.keys(_).length > 0 && (process.env.NODE_ENV !== "production" && console.error(["Material-UI: The `".concat(N, "` component increases ") + "the CSS specificity of the `".concat(W, "` internal state."), "You can not override it like this: ", JSON.stringify(u, null, 2), "", "Instead, you need to use the $ruleName syntax:", JSON.stringify({
1398
+ root: se({}, "&$".concat(W), _)
1399
+ }, null, 2), "", "https://mui.com/r/pseudo-classes-guide"].join(`
1400
+ `)), u[W] = {});
1401
+ }
1402
+ };
1403
+ j(g.overrides);
878
1404
  }
879
- muiTheme = args.reduce(function(acc, argument) {
880
- return deepmerge(acc, argument);
881
- }, muiTheme);
882
- return muiTheme;
883
- }
884
- var defaultTheme = createTheme();
885
- var defaultTheme$1 = defaultTheme;
886
- function withStyles(stylesOrCreator, options) {
887
- return withStyles$1(stylesOrCreator, _extends({
888
- defaultTheme: defaultTheme$1
889
- }, options));
890
- }
891
- var styles = function styles2(theme) {
1405
+ return g;
1406
+ }
1407
+ var xr = Er();
1408
+ const Or = xr;
1409
+ function Tr(e, t) {
1410
+ return At(e, Y({
1411
+ defaultTheme: Or
1412
+ }, t));
1413
+ }
1414
+ var wr = function(t) {
892
1415
  return {
893
1416
  root: {
894
1417
  userSelect: "none",
@@ -897,314 +1420,293 @@ var styles = function styles2(theme) {
897
1420
  display: "inline-block",
898
1421
  fill: "currentColor",
899
1422
  flexShrink: 0,
900
- fontSize: theme.typography.pxToRem(24),
901
- transition: theme.transitions.create("fill", {
902
- duration: theme.transitions.duration.shorter
1423
+ fontSize: t.typography.pxToRem(24),
1424
+ transition: t.transitions.create("fill", {
1425
+ duration: t.transitions.duration.shorter
903
1426
  })
904
1427
  },
905
1428
  colorPrimary: {
906
- color: theme.palette.primary.main
1429
+ color: t.palette.primary.main
907
1430
  },
908
1431
  colorSecondary: {
909
- color: theme.palette.secondary.main
1432
+ color: t.palette.secondary.main
910
1433
  },
911
1434
  colorAction: {
912
- color: theme.palette.action.active
1435
+ color: t.palette.action.active
913
1436
  },
914
1437
  colorError: {
915
- color: theme.palette.error.main
1438
+ color: t.palette.error.main
916
1439
  },
917
1440
  colorDisabled: {
918
- color: theme.palette.action.disabled
1441
+ color: t.palette.action.disabled
919
1442
  },
920
1443
  fontSizeInherit: {
921
1444
  fontSize: "inherit"
922
1445
  },
923
1446
  fontSizeSmall: {
924
- fontSize: theme.typography.pxToRem(20)
1447
+ fontSize: t.typography.pxToRem(20)
925
1448
  },
926
1449
  fontSizeLarge: {
927
- fontSize: theme.typography.pxToRem(35)
1450
+ fontSize: t.typography.pxToRem(35)
928
1451
  }
929
1452
  };
930
- };
931
- var SvgIcon = /* @__PURE__ */ React$2.forwardRef(function SvgIcon2(props, ref) {
932
- var children = props.children, classes = props.classes, className = props.className, _props$color = props.color, color = _props$color === void 0 ? "inherit" : _props$color, _props$component = props.component, Component = _props$component === void 0 ? "svg" : _props$component, _props$fontSize = props.fontSize, fontSize = _props$fontSize === void 0 ? "medium" : _props$fontSize, htmlColor = props.htmlColor, titleAccess = props.titleAccess, _props$viewBox = props.viewBox, viewBox = _props$viewBox === void 0 ? "0 0 24 24" : _props$viewBox, other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
933
- return /* @__PURE__ */ React$2.createElement(Component, _extends({
934
- className: clsx(classes.root, className, color !== "inherit" && classes["color".concat(capitalize(color))], fontSize !== "default" && fontSize !== "medium" && classes["fontSize".concat(capitalize(fontSize))]),
1453
+ }, Fe = /* @__PURE__ */ F.forwardRef(function(t, r) {
1454
+ var n = t.children, o = t.classes, a = t.className, c = t.color, s = c === void 0 ? "inherit" : c, f = t.component, p = f === void 0 ? "svg" : f, d = t.fontSize, m = d === void 0 ? "medium" : d, y = t.htmlColor, b = t.titleAccess, g = t.viewBox, h = g === void 0 ? "0 0 24 24" : g, E = ee(t, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
1455
+ return /* @__PURE__ */ F.createElement(p, Y({
1456
+ className: re(o.root, a, s !== "inherit" && o["color".concat($e(s))], m !== "default" && m !== "medium" && o["fontSize".concat($e(m))]),
935
1457
  focusable: "false",
936
- viewBox,
937
- color: htmlColor,
938
- "aria-hidden": titleAccess ? void 0 : true,
939
- role: titleAccess ? "img" : void 0,
940
- ref
941
- }, other), children, titleAccess ? /* @__PURE__ */ React$2.createElement("title", null, titleAccess) : null);
1458
+ viewBox: h,
1459
+ color: y,
1460
+ "aria-hidden": b ? void 0 : !0,
1461
+ role: b ? "img" : void 0,
1462
+ ref: r
1463
+ }, E), n, b ? /* @__PURE__ */ F.createElement("title", null, b) : null);
1464
+ });
1465
+ process.env.NODE_ENV !== "production" && (Fe.propTypes = {
1466
+ children: U.exports.node,
1467
+ classes: U.exports.object,
1468
+ className: U.exports.string,
1469
+ color: U.exports.oneOf(["action", "disabled", "error", "inherit", "primary", "secondary"]),
1470
+ component: U.exports.elementType,
1471
+ fontSize: Ct(U.exports.oneOf(["default", "inherit", "large", "medium", "small"]), function(e) {
1472
+ var t = e.fontSize;
1473
+ if (t === "default")
1474
+ throw new Error('Material-UI: `fontSize="default"` is deprecated. Use `fontSize="medium"` instead.');
1475
+ return null;
1476
+ }),
1477
+ htmlColor: U.exports.string,
1478
+ shapeRendering: U.exports.string,
1479
+ titleAccess: U.exports.string,
1480
+ viewBox: U.exports.string
942
1481
  });
943
- SvgIcon.muiName = "SvgIcon";
944
- var SvgIcon$1 = withStyles(styles, {
1482
+ Fe.muiName = "SvgIcon";
1483
+ const ct = Tr(wr, {
945
1484
  name: "MuiSvgIcon"
946
- })(SvgIcon);
947
- function createSvgIcon(path, displayName) {
948
- var Component = function Component2(props, ref) {
949
- return /* @__PURE__ */ React__default.createElement(SvgIcon$1, _extends({
950
- ref
951
- }, props), path);
1485
+ })(Fe);
1486
+ function Sr(e, t) {
1487
+ var r = function(o, a) {
1488
+ return /* @__PURE__ */ ue.createElement(ct, Y({
1489
+ ref: a
1490
+ }, o), e);
952
1491
  };
953
- Component.muiName = SvgIcon$1.muiName;
954
- return /* @__PURE__ */ React__default.memo(/* @__PURE__ */ React__default.forwardRef(Component));
955
- }
956
- function debounce(func) {
957
- var wait = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 166;
958
- var timeout;
959
- function debounced() {
960
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
961
- args[_key] = arguments[_key];
962
- }
963
- var that = this;
964
- var later = function later2() {
965
- func.apply(that, args);
966
- };
967
- clearTimeout(timeout);
968
- timeout = setTimeout(later, wait);
969
- }
970
- debounced.clear = function() {
971
- clearTimeout(timeout);
972
- };
973
- return debounced;
1492
+ return process.env.NODE_ENV !== "production" && (r.displayName = "".concat(t, "Icon")), r.muiName = ct.muiName, /* @__PURE__ */ ue.memo(/* @__PURE__ */ ue.forwardRef(r));
974
1493
  }
975
- function deprecatedPropType(validator, reason) {
976
- {
977
- return function() {
978
- return null;
1494
+ function _r(e) {
1495
+ var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 166, r;
1496
+ function n() {
1497
+ for (var o = arguments.length, a = new Array(o), c = 0; c < o; c++)
1498
+ a[c] = arguments[c];
1499
+ var s = this, f = function() {
1500
+ e.apply(s, a);
979
1501
  };
1502
+ clearTimeout(r), r = setTimeout(f, t);
980
1503
  }
1504
+ return n.clear = function() {
1505
+ clearTimeout(r);
1506
+ }, n;
981
1507
  }
982
- function isMuiElement(element, muiNames) {
983
- return /* @__PURE__ */ React$2.isValidElement(element) && muiNames.indexOf(element.type.muiName) !== -1;
1508
+ function Rr(e, t) {
1509
+ return process.env.NODE_ENV === "production" ? function() {
1510
+ return null;
1511
+ } : function(r, n, o, a, c) {
1512
+ var s = o || "<<anonymous>>", f = c || n;
1513
+ return typeof r[n] < "u" ? new Error("The ".concat(a, " `").concat(f, "` of ") + "`".concat(s, "` is deprecated. ").concat(t)) : null;
1514
+ };
984
1515
  }
985
- function ownerDocument(node) {
986
- return node && node.ownerDocument || document;
1516
+ function Ar(e, t) {
1517
+ return /* @__PURE__ */ F.isValidElement(e) && t.indexOf(e.type.muiName) !== -1;
987
1518
  }
988
- function ownerWindow(node) {
989
- var doc = ownerDocument(node);
990
- return doc.defaultView || window;
1519
+ function xt(e) {
1520
+ return e && e.ownerDocument || document;
991
1521
  }
992
- function requirePropFactory(componentNameInError) {
993
- {
1522
+ function Pr(e) {
1523
+ var t = xt(e);
1524
+ return t.defaultView || window;
1525
+ }
1526
+ function Ir(e) {
1527
+ if (process.env.NODE_ENV === "production")
994
1528
  return function() {
995
1529
  return null;
996
1530
  };
997
- }
1531
+ var t = function(n) {
1532
+ return function(o, a, c, s, f) {
1533
+ var p = f || a;
1534
+ return typeof o[a] < "u" && !o[n] ? new Error("The prop `".concat(p, "` of ") + "`".concat(e, "` must be used on `").concat(n, "`.")) : null;
1535
+ };
1536
+ };
1537
+ return t;
998
1538
  }
999
- function setRef(ref, value) {
1000
- if (typeof ref === "function") {
1001
- ref(value);
1002
- } else if (ref) {
1003
- ref.current = value;
1004
- }
1539
+ function Ne(e, t) {
1540
+ typeof e == "function" ? e(t) : e && (e.current = t);
1005
1541
  }
1006
- function unsupportedProp(props, propName, componentName, location, propFullName) {
1007
- {
1542
+ function Cr(e, t, r, n, o) {
1543
+ if (process.env.NODE_ENV === "production")
1008
1544
  return null;
1009
- }
1545
+ var a = o || t;
1546
+ return typeof e[t] < "u" ? new Error("The prop `".concat(a, "` is not supported. Please remove it.")) : null;
1010
1547
  }
1011
- function useControlled(_ref) {
1012
- var controlled = _ref.controlled, defaultProp = _ref.default;
1013
- _ref.name;
1014
- _ref.state;
1015
- var _React$useRef = React$2.useRef(controlled !== void 0), isControlled = _React$useRef.current;
1016
- var _React$useState = React$2.useState(defaultProp), valueState = _React$useState[0], setValue = _React$useState[1];
1017
- var value = isControlled ? controlled : valueState;
1018
- var setValueIfUncontrolled = React$2.useCallback(function(newValue) {
1019
- if (!isControlled) {
1020
- setValue(newValue);
1021
- }
1548
+ function Mr(e) {
1549
+ var t = e.controlled, r = e.default, n = e.name, o = e.state, a = o === void 0 ? "value" : o, c = F.useRef(t !== void 0), s = c.current, f = F.useState(r), p = f[0], d = f[1], m = s ? t : p;
1550
+ if (process.env.NODE_ENV !== "production") {
1551
+ F.useEffect(function() {
1552
+ s !== (t !== void 0) && console.error(["Material-UI: A component is changing the ".concat(s ? "" : "un", "controlled ").concat(a, " state of ").concat(n, " to be ").concat(s ? "un" : "", "controlled."), "Elements should not switch from uncontrolled to controlled (or vice versa).", "Decide between using a controlled or uncontrolled ".concat(n, " ") + "element for the lifetime of the component.", "The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join(`
1553
+ `));
1554
+ }, [t]);
1555
+ var y = F.useRef(r), b = y.current;
1556
+ F.useEffect(function() {
1557
+ !s && b !== r && console.error(["Material-UI: A component is changing the default ".concat(a, " state of an uncontrolled ").concat(n, " after being initialized. ") + "To suppress this warning opt to use a controlled ".concat(n, ".")].join(`
1558
+ `));
1559
+ }, [JSON.stringify(r)]);
1560
+ }
1561
+ var g = F.useCallback(function(h) {
1562
+ s || d(h);
1022
1563
  }, []);
1023
- return [value, setValueIfUncontrolled];
1564
+ return [m, g];
1024
1565
  }
1025
- var useEnhancedEffect = typeof window !== "undefined" ? React$2.useLayoutEffect : React$2.useEffect;
1026
- function useEventCallback(fn) {
1027
- var ref = React$2.useRef(fn);
1028
- useEnhancedEffect(function() {
1029
- ref.current = fn;
1030
- });
1031
- return React$2.useCallback(function() {
1032
- return ref.current.apply(void 0, arguments);
1566
+ var $r = typeof window < "u" ? F.useLayoutEffect : F.useEffect;
1567
+ function Nr(e) {
1568
+ var t = F.useRef(e);
1569
+ return $r(function() {
1570
+ t.current = e;
1571
+ }), F.useCallback(function() {
1572
+ return t.current.apply(void 0, arguments);
1033
1573
  }, []);
1034
1574
  }
1035
- function useForkRef(refA, refB) {
1036
- return React$2.useMemo(function() {
1037
- if (refA == null && refB == null) {
1038
- return null;
1039
- }
1040
- return function(refValue) {
1041
- setRef(refA, refValue);
1042
- setRef(refB, refValue);
1575
+ function Dr(e, t) {
1576
+ return F.useMemo(function() {
1577
+ return e == null && t == null ? null : function(r) {
1578
+ Ne(e, r), Ne(t, r);
1043
1579
  };
1044
- }, [refA, refB]);
1045
- }
1046
- function useId(idOverride) {
1047
- var _React$useState = React$2.useState(idOverride), defaultId = _React$useState[0], setDefaultId = _React$useState[1];
1048
- var id = idOverride || defaultId;
1049
- React$2.useEffect(function() {
1050
- if (defaultId == null) {
1051
- setDefaultId("mui-".concat(Math.round(Math.random() * 1e5)));
1052
- }
1053
- }, [defaultId]);
1054
- return id;
1055
- }
1056
- var hadKeyboardEvent = true;
1057
- var hadFocusVisibleRecently = false;
1058
- var hadFocusVisibleRecentlyTimeout = null;
1059
- var inputTypesWhitelist = {
1060
- text: true,
1061
- search: true,
1062
- url: true,
1063
- tel: true,
1064
- email: true,
1065
- password: true,
1066
- number: true,
1067
- date: true,
1068
- month: true,
1069
- week: true,
1070
- time: true,
1071
- datetime: true,
1072
- "datetime-local": true
1580
+ }, [e, t]);
1581
+ }
1582
+ function jr(e) {
1583
+ var t = F.useState(e), r = t[0], n = t[1], o = e || r;
1584
+ return F.useEffect(function() {
1585
+ r == null && n("mui-".concat(Math.round(Math.random() * 1e5)));
1586
+ }, [r]), o;
1587
+ }
1588
+ var le = !0, De = !1, ft = null, Wr = {
1589
+ text: !0,
1590
+ search: !0,
1591
+ url: !0,
1592
+ tel: !0,
1593
+ email: !0,
1594
+ password: !0,
1595
+ number: !0,
1596
+ date: !0,
1597
+ month: !0,
1598
+ week: !0,
1599
+ time: !0,
1600
+ datetime: !0,
1601
+ "datetime-local": !0
1073
1602
  };
1074
- function focusTriggersKeyboardModality(node) {
1075
- var type = node.type, tagName = node.tagName;
1076
- if (tagName === "INPUT" && inputTypesWhitelist[type] && !node.readOnly) {
1077
- return true;
1078
- }
1079
- if (tagName === "TEXTAREA" && !node.readOnly) {
1080
- return true;
1081
- }
1082
- if (node.isContentEditable) {
1083
- return true;
1084
- }
1085
- return false;
1603
+ function Vr(e) {
1604
+ var t = e.type, r = e.tagName;
1605
+ return !!(r === "INPUT" && Wr[t] && !e.readOnly || r === "TEXTAREA" && !e.readOnly || e.isContentEditable);
1086
1606
  }
1087
- function handleKeyDown(event) {
1088
- if (event.metaKey || event.altKey || event.ctrlKey) {
1089
- return;
1090
- }
1091
- hadKeyboardEvent = true;
1607
+ function zr(e) {
1608
+ e.metaKey || e.altKey || e.ctrlKey || (le = !0);
1092
1609
  }
1093
- function handlePointerDown() {
1094
- hadKeyboardEvent = false;
1610
+ function Ce() {
1611
+ le = !1;
1095
1612
  }
1096
- function handleVisibilityChange() {
1097
- if (this.visibilityState === "hidden") {
1098
- if (hadFocusVisibleRecently) {
1099
- hadKeyboardEvent = true;
1100
- }
1101
- }
1613
+ function Fr() {
1614
+ this.visibilityState === "hidden" && De && (le = !0);
1102
1615
  }
1103
- function prepare(doc) {
1104
- doc.addEventListener("keydown", handleKeyDown, true);
1105
- doc.addEventListener("mousedown", handlePointerDown, true);
1106
- doc.addEventListener("pointerdown", handlePointerDown, true);
1107
- doc.addEventListener("touchstart", handlePointerDown, true);
1108
- doc.addEventListener("visibilitychange", handleVisibilityChange, true);
1616
+ function kr(e) {
1617
+ e.addEventListener("keydown", zr, !0), e.addEventListener("mousedown", Ce, !0), e.addEventListener("pointerdown", Ce, !0), e.addEventListener("touchstart", Ce, !0), e.addEventListener("visibilitychange", Fr, !0);
1109
1618
  }
1110
- function isFocusVisible(event) {
1111
- var target = event.target;
1619
+ function lt(e) {
1620
+ var t = e.target;
1112
1621
  try {
1113
- return target.matches(":focus-visible");
1114
- } catch (error) {
1622
+ return t.matches(":focus-visible");
1623
+ } catch {
1115
1624
  }
1116
- return hadKeyboardEvent || focusTriggersKeyboardModality(target);
1625
+ return le || Vr(t);
1117
1626
  }
1118
- function handleBlurVisible() {
1119
- hadFocusVisibleRecently = true;
1120
- window.clearTimeout(hadFocusVisibleRecentlyTimeout);
1121
- hadFocusVisibleRecentlyTimeout = window.setTimeout(function() {
1122
- hadFocusVisibleRecently = false;
1627
+ function Ur() {
1628
+ De = !0, window.clearTimeout(ft), ft = window.setTimeout(function() {
1629
+ De = !1;
1123
1630
  }, 100);
1124
1631
  }
1125
- function useIsFocusVisible() {
1126
- var ref = React$2.useCallback(function(instance) {
1127
- var node = ReactDOM.findDOMNode(instance);
1128
- if (node != null) {
1129
- prepare(node.ownerDocument);
1130
- }
1632
+ function qr() {
1633
+ var e = F.useCallback(function(t) {
1634
+ var r = Pt.findDOMNode(t);
1635
+ r != null && kr(r.ownerDocument);
1131
1636
  }, []);
1132
- return {
1133
- isFocusVisible,
1134
- onBlurVisible: handleBlurVisible,
1135
- ref
1637
+ return process.env.NODE_ENV !== "production" && F.useDebugValue(lt), {
1638
+ isFocusVisible: lt,
1639
+ onBlurVisible: Ur,
1640
+ ref: e
1136
1641
  };
1137
1642
  }
1138
- var utils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1643
+ const Lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1139
1644
  __proto__: null,
1140
- capitalize,
1141
- createChainedFunction,
1142
- createSvgIcon,
1143
- debounce,
1144
- deprecatedPropType,
1145
- isMuiElement,
1146
- ownerDocument,
1147
- ownerWindow,
1148
- requirePropFactory,
1149
- setRef,
1150
- unsupportedProp,
1151
- useControlled,
1152
- useEventCallback,
1153
- useForkRef,
1154
- unstable_useId: useId,
1155
- useIsFocusVisible
1156
- }, Symbol.toStringTag, { value: "Module" }));
1157
- var require$$0 = /* @__PURE__ */ getAugmentedNamespace(utils);
1158
- (function(exports) {
1159
- Object.defineProperty(exports, "__esModule", {
1160
- value: true
1161
- });
1162
- Object.defineProperty(exports, "default", {
1163
- enumerable: true,
1164
- get: function get() {
1165
- return _utils.createSvgIcon;
1166
- }
1167
- });
1168
- var _utils = require$$0;
1169
- })(createSvgIcon$1);
1170
- var _interopRequireDefault = interopRequireDefault.exports;
1171
- var _interopRequireWildcard = interopRequireWildcard.exports;
1172
- Object.defineProperty(DeleteOutline, "__esModule", {
1173
- value: true
1645
+ capitalize: $e,
1646
+ createChainedFunction: Ft,
1647
+ createSvgIcon: Sr,
1648
+ debounce: _r,
1649
+ deprecatedPropType: Rr,
1650
+ isMuiElement: Ar,
1651
+ ownerDocument: xt,
1652
+ ownerWindow: Pr,
1653
+ requirePropFactory: Ir,
1654
+ setRef: Ne,
1655
+ unsupportedProp: Cr,
1656
+ useControlled: Mr,
1657
+ useEventCallback: Nr,
1658
+ useForkRef: Dr,
1659
+ unstable_useId: jr,
1660
+ useIsFocusVisible: qr
1661
+ }, Symbol.toStringTag, { value: "Module" })), Yr = /* @__PURE__ */ It(Lr);
1662
+ var dt;
1663
+ function Br() {
1664
+ return dt || (dt = 1, function(e) {
1665
+ Object.defineProperty(e, "__esModule", {
1666
+ value: !0
1667
+ }), Object.defineProperty(e, "default", {
1668
+ enumerable: !0,
1669
+ get: function() {
1670
+ return t.createSvgIcon;
1671
+ }
1672
+ });
1673
+ var t = Yr;
1674
+ }(ve)), ve;
1675
+ }
1676
+ var Hr = mt.exports, Jr = vt.exports;
1677
+ Object.defineProperty(je, "__esModule", {
1678
+ value: !0
1174
1679
  });
1175
- var default_1 = DeleteOutline.default = void 0;
1176
- var React$1 = _interopRequireWildcard(React__default);
1177
- var _createSvgIcon = _interopRequireDefault(createSvgIcon$1);
1178
- var _default = (0, _createSvgIcon.default)(/* @__PURE__ */ React$1.createElement("path", {
1680
+ var Ot = je.default = void 0, Kr = Jr(ue), Xr = Hr(Br()), Gr = (0, Xr.default)(/* @__PURE__ */ Kr.createElement("path", {
1179
1681
  d: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM8 9h8v10H8V9zm7.5-5l-1-1h-5l-1 1H5v2h14V4z"
1180
1682
  }), "DeleteOutline");
1181
- default_1 = DeleteOutline.default = _default;
1182
- const useStyles = makeStyles(({ palette, spacing, typography }) => ({
1683
+ Ot = je.default = Gr;
1684
+ const Zr = St(({ palette: e, spacing: t, typography: r }) => ({
1183
1685
  inputFile: {
1184
1686
  display: "flex",
1185
1687
  flexDirection: "row",
1186
1688
  alignItems: "center",
1187
1689
  justifyContent: "space-between",
1188
1690
  flex: 1,
1189
- height: spacing(7),
1190
- minHeight: spacing(7),
1191
- padding: spacing(0, 1, 0, 2),
1192
- backgroundColor: ({ variant }) => variant === "filled" ? palette.action.hover : palette.common.white,
1691
+ height: t(7),
1692
+ minHeight: t(7),
1693
+ padding: t(0, 1, 0, 2),
1694
+ backgroundColor: ({ variant: n }) => n === "filled" ? e.action.hover : e.common.white,
1193
1695
  border: "2px solid",
1194
- borderColor: ({ variant }) => variant === "filled" ? "transparent" : palette.action.disabled,
1195
- borderRadius: spacing(0.5),
1196
- color: palette.text.secondary,
1696
+ borderColor: ({ variant: n }) => n === "filled" ? "transparent" : e.action.disabled,
1697
+ borderRadius: t(0.5),
1698
+ color: e.text.secondary,
1197
1699
  transition: "border-color 0.25s ease, background-color 0.25s ease",
1198
1700
  "&:hover": {
1199
- backgroundColor: ({ variant }) => variant === "filled" ? palette.action.selected : palette.common.white,
1200
- borderColor: ({ variant }) => variant === "filled" ? "transparent" : palette.text.primary
1701
+ backgroundColor: ({ variant: n }) => n === "filled" ? e.action.selected : e.common.white,
1702
+ borderColor: ({ variant: n }) => n === "filled" ? "transparent" : e.text.primary
1201
1703
  }
1202
1704
  },
1203
1705
  over: {
1204
- borderColor: () => palette.primary.main
1706
+ borderColor: () => e.primary.main
1205
1707
  },
1206
1708
  files: {
1207
- borderColor: ({ variant }) => variant === "filled" ? "transparent" : palette.action.disabled
1709
+ borderColor: ({ variant: n }) => n === "filled" ? "transparent" : e.action.disabled
1208
1710
  },
1209
1711
  textWrapper: {
1210
1712
  display: "flex",
@@ -1221,155 +1723,139 @@ const useStyles = makeStyles(({ palette, spacing, typography }) => ({
1221
1723
  transition: "all 0.2s ease-in-out"
1222
1724
  },
1223
1725
  placeholderFiles: {
1224
- top: spacing(1),
1726
+ top: t(1),
1225
1727
  transform: "translateY(0)",
1226
1728
  opacity: 1,
1227
- ...typography.caption
1729
+ ...r.caption
1228
1730
  },
1229
1731
  filesText: {
1230
1732
  position: "absolute",
1231
- top: spacing(4),
1733
+ top: t(4),
1232
1734
  opacity: 0,
1233
1735
  transition: "all 0.2s ease-in-out"
1234
1736
  },
1235
1737
  filesTextFiles: {
1236
- top: spacing(3),
1738
+ top: t(3),
1237
1739
  opacity: 1
1238
1740
  },
1239
1741
  helperText: {
1240
- fontWeight: typography.body1.fontWeight
1742
+ fontWeight: r.body1.fontWeight
1241
1743
  },
1242
1744
  clearButton: {
1243
- marginTop: spacing(2),
1244
- marginRight: spacing(0.5),
1245
- color: palette.error.main
1745
+ marginTop: t(2),
1746
+ marginRight: t(0.5),
1747
+ color: e.error.main
1246
1748
  },
1247
1749
  disabled: {
1248
1750
  "& $inputFile": {
1249
- color: palette.text.disabled,
1250
- borderColor: () => palette.text.disabled,
1251
- backgroundColor: () => palette.action.hover,
1751
+ color: e.text.disabled,
1752
+ borderColor: () => e.text.disabled,
1753
+ backgroundColor: () => e.action.hover,
1252
1754
  pointerEvents: "none"
1253
1755
  },
1254
1756
  "& $helperText": {
1255
- color: palette.action.disabled
1757
+ color: e.action.disabled
1256
1758
  }
1257
1759
  },
1258
1760
  error: {
1259
1761
  "& $inputFile": {
1260
- borderColor: () => palette.error.main
1762
+ borderColor: () => e.error.main
1261
1763
  },
1262
1764
  "& $files": {
1263
- color: palette.error.main
1765
+ color: e.error.main
1264
1766
  },
1265
1767
  "& $helperText": {
1266
- color: palette.error.main
1768
+ color: e.error.main
1267
1769
  }
1268
1770
  }
1269
1771
  }));
1270
- function InputFile({
1271
- placeholder = "Upload file",
1272
- buttonText = "Browse",
1273
- multipleSummaryText = "files selected",
1274
- helperText,
1275
- accept = "application/JSON",
1276
- multiple = false,
1277
- disabled = false,
1278
- error = false,
1279
- variant = "outlined",
1280
- files = [],
1281
- onChange
1772
+ function rn({
1773
+ placeholder: e = "Upload file",
1774
+ buttonText: t = "Browse",
1775
+ multipleSummaryText: r = "files selected",
1776
+ helperText: n,
1777
+ accept: o = "application/JSON",
1778
+ multiple: a = !1,
1779
+ disabled: c = !1,
1780
+ error: s = !1,
1781
+ variant: f = "outlined",
1782
+ files: p = [],
1783
+ onChange: d
1282
1784
  }) {
1283
- const classes = useStyles({ variant });
1284
- const uploadInputRef = useRef(null);
1285
- const [filesText, setFilesText] = useState("");
1286
- const [over, setOver] = useState(false);
1287
- useEffect(() => {
1288
- let txt = "";
1289
- if (files.length === 1) {
1290
- txt = files[0].name;
1291
- } else if (files.length > 1) {
1292
- txt = `${files.length} ${multipleSummaryText}`;
1785
+ const m = Zr({ variant: f }), y = Tt(null), [b, g] = Ue(""), [h, E] = Ue(!1);
1786
+ wt(() => {
1787
+ let z = "";
1788
+ p.length === 1 ? z = p[0].name : p.length > 1 && (z = `${p.length} ${r}`), g(z);
1789
+ }, [p, r]);
1790
+ const D = () => {
1791
+ y.current?.click();
1792
+ }, q = (z) => {
1793
+ z.preventDefault(), E(!0);
1794
+ }, j = (z) => {
1795
+ z.preventDefault(), E(!1);
1796
+ }, M = (z) => {
1797
+ z.preventDefault();
1798
+ const W = [], _ = z.dataTransfer.items;
1799
+ for (let k = 0; k < _.length; k++) {
1800
+ const B = _[k].getAsFile();
1801
+ W.push(B);
1293
1802
  }
1294
- setFilesText(txt);
1295
- }, [files, multipleSummaryText]);
1296
- const handleBrowse = () => {
1297
- var _a;
1298
- (_a = uploadInputRef.current) == null ? void 0 : _a.click();
1803
+ E(!1), d(W);
1804
+ }, u = (z) => {
1805
+ const W = Array.from(z.target.files);
1806
+ d(W);
1807
+ }, N = () => {
1808
+ d([]);
1299
1809
  };
1300
- const handleDragOver = (event) => {
1301
- event.preventDefault();
1302
- setOver(true);
1303
- };
1304
- const handleDragLeave = (event) => {
1305
- event.preventDefault();
1306
- setOver(false);
1307
- };
1308
- const handleDrop = (event) => {
1309
- event.preventDefault();
1310
- const newFiles = [];
1311
- const items = event.dataTransfer.items;
1312
- for (let i = 0; i < items.length; i++) {
1313
- const file = items[i].getAsFile();
1314
- newFiles.push(file);
1315
- }
1316
- setOver(false);
1317
- onChange(newFiles);
1318
- };
1319
- const handleFiles = (event) => {
1320
- const newFiles = Array.from(event.target.files);
1321
- onChange(newFiles);
1322
- };
1323
- const clear = () => {
1324
- onChange([]);
1325
- };
1326
- return /* @__PURE__ */ React.createElement(Box, {
1327
- className: clsx({ [classes.error]: error }, { [classes.disabled]: disabled })
1328
- }, /* @__PURE__ */ React.createElement(Box, {
1329
- className: clsx(classes.inputFile, { [classes.over]: over }, { [classes.files]: filesText }),
1330
- onDragOver: handleDragOver,
1331
- onDragLeave: handleDragLeave,
1332
- onDrop: handleDrop
1333
- }, /* @__PURE__ */ React.createElement(Box, {
1334
- className: classes.textWrapper
1335
- }, /* @__PURE__ */ React.createElement(Typography, {
1810
+ return /* @__PURE__ */ React.createElement(ie, {
1811
+ className: re({ [m.error]: s }, { [m.disabled]: c })
1812
+ }, /* @__PURE__ */ React.createElement(ie, {
1813
+ className: re(m.inputFile, { [m.over]: h }, { [m.files]: b }),
1814
+ onDragOver: q,
1815
+ onDragLeave: j,
1816
+ onDrop: M
1817
+ }, /* @__PURE__ */ React.createElement(ie, {
1818
+ className: m.textWrapper
1819
+ }, /* @__PURE__ */ React.createElement(me, {
1336
1820
  variant: "body1",
1337
1821
  color: "inherit",
1338
- noWrap: true,
1339
- className: clsx(classes.placeholder, {
1340
- [classes.placeholderFiles]: filesText
1822
+ noWrap: !0,
1823
+ className: re(m.placeholder, {
1824
+ [m.placeholderFiles]: b
1341
1825
  })
1342
- }, placeholder), /* @__PURE__ */ React.createElement(Typography, {
1826
+ }, e), /* @__PURE__ */ React.createElement(me, {
1343
1827
  variant: "body1",
1344
1828
  color: "textPrimary",
1345
- noWrap: true,
1346
- className: clsx(classes.filesText, {
1347
- [classes.filesTextFiles]: filesText
1829
+ noWrap: !0,
1830
+ className: re(m.filesText, {
1831
+ [m.filesTextFiles]: b
1348
1832
  })
1349
- }, filesText)), files.length ? /* @__PURE__ */ React.createElement(IconButton, {
1833
+ }, b)), p.length ? /* @__PURE__ */ React.createElement(_t, {
1350
1834
  size: "small",
1351
- className: classes.clearButton,
1352
- onClick: clear
1353
- }, /* @__PURE__ */ React.createElement(default_1, null)) : /* @__PURE__ */ React.createElement(Button, {
1835
+ className: m.clearButton,
1836
+ onClick: N
1837
+ }, /* @__PURE__ */ React.createElement(Ot, null)) : /* @__PURE__ */ React.createElement(Rt, {
1354
1838
  variant: "text",
1355
1839
  color: "primary",
1356
- disabled,
1357
- onClick: handleBrowse
1358
- }, buttonText), /* @__PURE__ */ React.createElement("input", {
1359
- ref: uploadInputRef,
1840
+ disabled: c,
1841
+ onClick: D
1842
+ }, t), /* @__PURE__ */ React.createElement("input", {
1843
+ ref: y,
1360
1844
  style: { display: "none" },
1361
1845
  type: "file",
1362
- accept,
1363
- multiple,
1364
- disabled,
1365
- onChange: handleFiles
1366
- })), helperText && /* @__PURE__ */ React.createElement(Box, {
1846
+ accept: o,
1847
+ multiple: a,
1848
+ disabled: c,
1849
+ onChange: u
1850
+ })), n && /* @__PURE__ */ React.createElement(ie, {
1367
1851
  mt: 0.5,
1368
1852
  ml: 2
1369
- }, /* @__PURE__ */ React.createElement(Typography, {
1853
+ }, /* @__PURE__ */ React.createElement(me, {
1370
1854
  variant: "caption",
1371
1855
  color: "textSecondary",
1372
- className: classes.helperText
1373
- }, helperText)));
1856
+ className: m.helperText
1857
+ }, n)));
1374
1858
  }
1375
- export { InputFile };
1859
+ export {
1860
+ rn as InputFile
1861
+ };