@carto/ps-react-ui 0.1.0-alpha.7 → 1.0.0

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