@sinco/react 1.2.5-rc.13 → 1.2.5-rc.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -127,306 +127,115 @@ function _objectWithoutPropertiesLoose$1(r, e) {
127
127
  }
128
128
  return t;
129
129
  }
130
- function _regeneratorRuntime() {
131
- _regeneratorRuntime = function () {
132
- return e;
133
- };
134
- var t,
135
- e = {},
136
- r = Object.prototype,
137
- n = r.hasOwnProperty,
138
- o = Object.defineProperty || function (t, e, r) {
139
- t[e] = r.value;
140
- },
141
- i = "function" == typeof Symbol ? Symbol : {},
142
- a = i.iterator || "@@iterator",
143
- c = i.asyncIterator || "@@asyncIterator",
144
- u = i.toStringTag || "@@toStringTag";
145
- function define(t, e, r) {
146
- return Object.defineProperty(t, e, {
147
- value: r,
148
- enumerable: true,
149
- configurable: true,
150
- writable: true
151
- }), t[e];
152
- }
153
- try {
154
- define({}, "");
155
- } catch (t) {
156
- define = function (t, e, r) {
157
- return t[e] = r;
158
- };
159
- }
160
- function wrap(t, e, r, n) {
161
- var i = e && e.prototype instanceof Generator ? e : Generator,
162
- a = Object.create(i.prototype),
163
- c = new Context(n || []);
164
- return o(a, "_invoke", {
165
- value: makeInvokeMethod(t, r, c)
166
- }), a;
167
- }
168
- function tryCatch(t, e, r) {
169
- try {
170
- return {
171
- type: "normal",
172
- arg: t.call(e, r)
173
- };
174
- } catch (t) {
175
- return {
176
- type: "throw",
177
- arg: t
178
- };
179
- }
180
- }
181
- e.wrap = wrap;
182
- var h = "suspendedStart",
183
- l = "suspendedYield",
184
- f = "executing",
185
- s = "completed",
186
- y = {};
187
- function Generator() {}
188
- function GeneratorFunction() {}
189
- function GeneratorFunctionPrototype() {}
190
- var p = {};
191
- define(p, a, function () {
192
- return this;
193
- });
194
- var d = Object.getPrototypeOf,
195
- v = d && d(d(values([])));
196
- v && v !== r && n.call(v, a) && (p = v);
197
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
198
- function defineIteratorMethods(t) {
199
- ["next", "throw", "return"].forEach(function (e) {
200
- define(t, e, function (t) {
201
- return this._invoke(e, t);
202
- });
203
- });
204
- }
205
- function AsyncIterator(t, e) {
206
- function invoke(r, o, i, a) {
207
- var c = tryCatch(t[r], t, o);
208
- if ("throw" !== c.type) {
209
- var u = c.arg,
210
- h = u.value;
211
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
212
- invoke("next", t, i, a);
213
- }, function (t) {
214
- invoke("throw", t, i, a);
215
- }) : e.resolve(h).then(function (t) {
216
- u.value = t, i(u);
217
- }, function (t) {
218
- return invoke("throw", t, i, a);
219
- });
220
- }
221
- a(c.arg);
222
- }
223
- var r;
224
- o(this, "_invoke", {
225
- value: function (t, n) {
226
- function callInvokeWithMethodAndArg() {
227
- return new e(function (e, r) {
228
- invoke(t, n, e, r);
229
- });
130
+ function _regenerator() {
131
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
132
+ var e,
133
+ t,
134
+ r = "function" == typeof Symbol ? Symbol : {},
135
+ n = r.iterator || "@@iterator",
136
+ o = r.toStringTag || "@@toStringTag";
137
+ function i(r, n, o, i) {
138
+ var c = n && n.prototype instanceof Generator ? n : Generator,
139
+ u = Object.create(c.prototype);
140
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
141
+ var i,
142
+ c,
143
+ u,
144
+ f = 0,
145
+ p = o || [],
146
+ y = false,
147
+ G = {
148
+ p: 0,
149
+ n: 0,
150
+ v: e,
151
+ a: d,
152
+ f: d.bind(e, 4),
153
+ d: function (t, r) {
154
+ return i = t, c = 0, u = e, G.n = r, a;
155
+ }
156
+ };
157
+ function d(r, n) {
158
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
159
+ var o,
160
+ i = p[t],
161
+ d = G.p,
162
+ l = i[2];
163
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
164
+ }
165
+ if (o || r > 1) return a;
166
+ throw y = true, n;
167
+ }
168
+ return function (o, p, l) {
169
+ if (f > 1) throw TypeError("Generator is already running");
170
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
171
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
172
+ try {
173
+ if (f = 2, i) {
174
+ if (c || (o = "next"), t = i[o]) {
175
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
176
+ if (!t.done) return t;
177
+ u = t.value, c < 2 && (c = 0);
178
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
179
+ i = e;
180
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
181
+ } catch (t) {
182
+ i = e, c = 1, u = t;
183
+ } finally {
184
+ f = 1;
185
+ }
230
186
  }
231
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
232
- }
233
- });
234
- }
235
- function makeInvokeMethod(e, r, n) {
236
- var o = h;
237
- return function (i, a) {
238
- if (o === f) throw Error("Generator is already running");
239
- if (o === s) {
240
- if ("throw" === i) throw a;
241
187
  return {
242
188
  value: t,
243
- done: true
189
+ done: y
244
190
  };
245
- }
246
- for (n.method = i, n.arg = a;;) {
247
- var c = n.delegate;
248
- if (c) {
249
- var u = maybeInvokeDelegate(c, n);
250
- if (u) {
251
- if (u === y) continue;
252
- return u;
253
- }
254
- }
255
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
256
- if (o === h) throw o = s, n.arg;
257
- n.dispatchException(n.arg);
258
- } else "return" === n.method && n.abrupt("return", n.arg);
259
- o = f;
260
- var p = tryCatch(e, r, n);
261
- if ("normal" === p.type) {
262
- if (o = n.done ? s : l, p.arg === y) continue;
263
- return {
264
- value: p.arg,
265
- done: n.done
266
- };
267
- }
268
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
269
- }
270
- };
191
+ };
192
+ }(r, o, i), true), u;
271
193
  }
272
- function maybeInvokeDelegate(e, r) {
273
- var n = r.method,
274
- o = e.iterator[n];
275
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
276
- var i = tryCatch(o, e.iterator, r.arg);
277
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
278
- var a = i.arg;
279
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
280
- }
281
- function pushTryEntry(t) {
282
- var e = {
283
- tryLoc: t[0]
284
- };
285
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
286
- }
287
- function resetTryEntry(t) {
288
- var e = t.completion || {};
289
- e.type = "normal", delete e.arg, t.completion = e;
290
- }
291
- function Context(t) {
292
- this.tryEntries = [{
293
- tryLoc: "root"
294
- }], t.forEach(pushTryEntry, this), this.reset(true);
295
- }
296
- function values(e) {
297
- if (e || "" === e) {
298
- var r = e[a];
299
- if (r) return r.call(e);
300
- if ("function" == typeof e.next) return e;
301
- if (!isNaN(e.length)) {
302
- var o = -1,
303
- i = function next() {
304
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = false, next;
305
- return next.value = t, next.done = true, next;
306
- };
307
- return i.next = i;
308
- }
309
- }
310
- throw new TypeError(typeof e + " is not iterable");
311
- }
312
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
313
- value: GeneratorFunctionPrototype,
314
- configurable: true
315
- }), o(GeneratorFunctionPrototype, "constructor", {
316
- value: GeneratorFunction,
317
- configurable: true
318
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
319
- var e = "function" == typeof t && t.constructor;
320
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
321
- }, e.mark = function (t) {
322
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
323
- }, e.awrap = function (t) {
324
- return {
325
- __await: t
326
- };
327
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
328
- return this;
329
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
330
- void 0 === i && (i = Promise);
331
- var a = new AsyncIterator(wrap(t, r, n, o), i);
332
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
333
- return t.done ? t.value : a.next();
334
- });
335
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
194
+ var a = {};
195
+ function Generator() {}
196
+ function GeneratorFunction() {}
197
+ function GeneratorFunctionPrototype() {}
198
+ t = Object.getPrototypeOf;
199
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
200
+ return this;
201
+ }), t),
202
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
203
+ function f(e) {
204
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
205
+ }
206
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
336
207
  return this;
337
- }), define(g, "toString", function () {
208
+ }), _regeneratorDefine(u, "toString", function () {
338
209
  return "[object Generator]";
339
- }), e.keys = function (t) {
340
- var e = Object(t),
341
- r = [];
342
- for (var n in e) r.push(n);
343
- return r.reverse(), function next() {
344
- for (; r.length;) {
345
- var t = r.pop();
346
- if (t in e) return next.value = t, next.done = false, next;
347
- }
348
- return next.done = true, next;
210
+ }), (_regenerator = function () {
211
+ return {
212
+ w: i,
213
+ m: f
349
214
  };
350
- }, e.values = values, Context.prototype = {
351
- constructor: Context,
352
- reset: function (e) {
353
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
354
- },
355
- stop: function () {
356
- this.done = true;
357
- var t = this.tryEntries[0].completion;
358
- if ("throw" === t.type) throw t.arg;
359
- return this.rval;
360
- },
361
- dispatchException: function (e) {
362
- if (this.done) throw e;
363
- var r = this;
364
- function handle(n, o) {
365
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
366
- }
367
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
368
- var i = this.tryEntries[o],
369
- a = i.completion;
370
- if ("root" === i.tryLoc) return handle("end");
371
- if (i.tryLoc <= this.prev) {
372
- var c = n.call(i, "catchLoc"),
373
- u = n.call(i, "finallyLoc");
374
- if (c && u) {
375
- if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
376
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
377
- } else if (c) {
378
- if (this.prev < i.catchLoc) return handle(i.catchLoc, true);
379
- } else {
380
- if (!u) throw Error("try statement without catch or finally");
381
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
382
- }
383
- }
384
- }
385
- },
386
- abrupt: function (t, e) {
387
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
388
- var o = this.tryEntries[r];
389
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
390
- var i = o;
391
- break;
392
- }
393
- }
394
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
395
- var a = i ? i.completion : {};
396
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
397
- },
398
- complete: function (t, e) {
399
- if ("throw" === t.type) throw t.arg;
400
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
401
- },
402
- finish: function (t) {
403
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
404
- var r = this.tryEntries[e];
405
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
406
- }
407
- },
408
- catch: function (t) {
409
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
410
- var r = this.tryEntries[e];
411
- if (r.tryLoc === t) {
412
- var n = r.completion;
413
- if ("throw" === n.type) {
414
- var o = n.arg;
415
- resetTryEntry(r);
416
- }
417
- return o;
418
- }
215
+ })();
216
+ }
217
+ function _regeneratorDefine(e, r, n, t) {
218
+ var i = Object.defineProperty;
219
+ try {
220
+ i({}, "", {});
221
+ } catch (e) {
222
+ i = 0;
223
+ }
224
+ _regeneratorDefine = function (e, r, n, t) {
225
+ if (r) i ? i(e, r, {
226
+ value: n,
227
+ enumerable: !t,
228
+ configurable: !t,
229
+ writable: !t
230
+ }) : e[r] = n;else {
231
+ function o(r, n) {
232
+ _regeneratorDefine(e, r, function (e) {
233
+ return this._invoke(r, n, e);
234
+ });
419
235
  }
420
- throw Error("illegal catch attempt");
421
- },
422
- delegateYield: function (e, r, n) {
423
- return this.delegate = {
424
- iterator: values(e),
425
- resultName: r,
426
- nextLoc: n
427
- }, "next" === this.method && (this.arg = t), y;
236
+ o("next", 0), o("throw", 1), o("return", 2);
428
237
  }
429
- }, e;
238
+ }, _regeneratorDefine(e, r, n, t);
430
239
  }
431
240
  function _slicedToArray(r, e) {
432
241
  return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
@@ -466,7 +275,7 @@ function _unsupportedIterableToArray(r, a) {
466
275
  * ...
467
276
  * @param {number} code
468
277
  */
469
- function formatMuiErrorMessage$1(code, ...args) {
278
+ function formatMuiErrorMessage(code, ...args) {
470
279
  const url = new URL(`https://mui.com/production-error/?code=${code}`);
471
280
  args.forEach(arg => url.searchParams.append('args[]', arg));
472
281
  return `Minified MUI error #${code}; visit ${url} for the full message.`;
@@ -474,22 +283,6 @@ function formatMuiErrorMessage$1(code, ...args) {
474
283
 
475
284
  var THEME_ID = '$$material';
476
285
 
477
- /**
478
- * WARNING: Don't import this directly. It's imported by the code generated by
479
- * `@mui/interal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`
480
- * constructors to ensure the plugin works as expected. Supported patterns include:
481
- * throw new Error('My message');
482
- * throw new Error(`My message: ${foo}`);
483
- * throw new Error(`My message: ${foo}` + 'another string');
484
- * ...
485
- * @param {number} code
486
- */
487
- function formatMuiErrorMessage(code, ...args) {
488
- const url = new URL(`https://mui.com/production-error/?code=${code}`);
489
- args.forEach(arg => url.searchParams.append('args[]', arg));
490
- return `Minified MUI error #${code}; visit ${url} for the full message.`;
491
- }
492
-
493
286
  function _extends() {
494
287
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
495
288
  for (var e = 1; e < arguments.length; e++) {
@@ -1102,7 +895,7 @@ function getDefaultExportFromCjs (x) {
1102
895
 
1103
896
  var propTypes = {exports: {}};
1104
897
 
1105
- var reactIs$2 = {exports: {}};
898
+ var reactIs$1 = {exports: {}};
1106
899
 
1107
900
  var reactIs_production_min = {};
1108
901
 
@@ -1129,7 +922,7 @@ var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):601
1129
922
  return reactIs_production_min;
1130
923
  }
1131
924
 
1132
- var reactIs_development$2 = {};
925
+ var reactIs_development$1 = {};
1133
926
 
1134
927
  /** @license React v16.13.1
1135
928
  * react-is.development.js
@@ -1140,11 +933,11 @@ var reactIs_development$2 = {};
1140
933
  * LICENSE file in the root directory of this source tree.
1141
934
  */
1142
935
 
1143
- var hasRequiredReactIs_development$2;
936
+ var hasRequiredReactIs_development$1;
1144
937
 
1145
- function requireReactIs_development$2 () {
1146
- if (hasRequiredReactIs_development$2) return reactIs_development$2;
1147
- hasRequiredReactIs_development$2 = 1;
938
+ function requireReactIs_development$1 () {
939
+ if (hasRequiredReactIs_development$1) return reactIs_development$1;
940
+ hasRequiredReactIs_development$1 = 1;
1148
941
 
1149
942
 
1150
943
 
@@ -1285,51 +1078,51 @@ function requireReactIs_development$2 () {
1285
1078
  return typeOf(object) === REACT_SUSPENSE_TYPE;
1286
1079
  }
1287
1080
 
1288
- reactIs_development$2.AsyncMode = AsyncMode;
1289
- reactIs_development$2.ConcurrentMode = ConcurrentMode;
1290
- reactIs_development$2.ContextConsumer = ContextConsumer;
1291
- reactIs_development$2.ContextProvider = ContextProvider;
1292
- reactIs_development$2.Element = Element;
1293
- reactIs_development$2.ForwardRef = ForwardRef;
1294
- reactIs_development$2.Fragment = Fragment;
1295
- reactIs_development$2.Lazy = Lazy;
1296
- reactIs_development$2.Memo = Memo;
1297
- reactIs_development$2.Portal = Portal;
1298
- reactIs_development$2.Profiler = Profiler;
1299
- reactIs_development$2.StrictMode = StrictMode;
1300
- reactIs_development$2.Suspense = Suspense;
1301
- reactIs_development$2.isAsyncMode = isAsyncMode;
1302
- reactIs_development$2.isConcurrentMode = isConcurrentMode;
1303
- reactIs_development$2.isContextConsumer = isContextConsumer;
1304
- reactIs_development$2.isContextProvider = isContextProvider;
1305
- reactIs_development$2.isElement = isElement;
1306
- reactIs_development$2.isForwardRef = isForwardRef;
1307
- reactIs_development$2.isFragment = isFragment;
1308
- reactIs_development$2.isLazy = isLazy;
1309
- reactIs_development$2.isMemo = isMemo;
1310
- reactIs_development$2.isPortal = isPortal;
1311
- reactIs_development$2.isProfiler = isProfiler;
1312
- reactIs_development$2.isStrictMode = isStrictMode;
1313
- reactIs_development$2.isSuspense = isSuspense;
1314
- reactIs_development$2.isValidElementType = isValidElementType;
1315
- reactIs_development$2.typeOf = typeOf;
1081
+ reactIs_development$1.AsyncMode = AsyncMode;
1082
+ reactIs_development$1.ConcurrentMode = ConcurrentMode;
1083
+ reactIs_development$1.ContextConsumer = ContextConsumer;
1084
+ reactIs_development$1.ContextProvider = ContextProvider;
1085
+ reactIs_development$1.Element = Element;
1086
+ reactIs_development$1.ForwardRef = ForwardRef;
1087
+ reactIs_development$1.Fragment = Fragment;
1088
+ reactIs_development$1.Lazy = Lazy;
1089
+ reactIs_development$1.Memo = Memo;
1090
+ reactIs_development$1.Portal = Portal;
1091
+ reactIs_development$1.Profiler = Profiler;
1092
+ reactIs_development$1.StrictMode = StrictMode;
1093
+ reactIs_development$1.Suspense = Suspense;
1094
+ reactIs_development$1.isAsyncMode = isAsyncMode;
1095
+ reactIs_development$1.isConcurrentMode = isConcurrentMode;
1096
+ reactIs_development$1.isContextConsumer = isContextConsumer;
1097
+ reactIs_development$1.isContextProvider = isContextProvider;
1098
+ reactIs_development$1.isElement = isElement;
1099
+ reactIs_development$1.isForwardRef = isForwardRef;
1100
+ reactIs_development$1.isFragment = isFragment;
1101
+ reactIs_development$1.isLazy = isLazy;
1102
+ reactIs_development$1.isMemo = isMemo;
1103
+ reactIs_development$1.isPortal = isPortal;
1104
+ reactIs_development$1.isProfiler = isProfiler;
1105
+ reactIs_development$1.isStrictMode = isStrictMode;
1106
+ reactIs_development$1.isSuspense = isSuspense;
1107
+ reactIs_development$1.isValidElementType = isValidElementType;
1108
+ reactIs_development$1.typeOf = typeOf;
1316
1109
  })();
1317
1110
  }
1318
- return reactIs_development$2;
1111
+ return reactIs_development$1;
1319
1112
  }
1320
1113
 
1321
1114
  var hasRequiredReactIs;
1322
1115
 
1323
1116
  function requireReactIs () {
1324
- if (hasRequiredReactIs) return reactIs$2.exports;
1117
+ if (hasRequiredReactIs) return reactIs$1.exports;
1325
1118
  hasRequiredReactIs = 1;
1326
1119
 
1327
1120
  if (process.env.NODE_ENV === 'production') {
1328
- reactIs$2.exports = requireReactIs_production_min();
1121
+ reactIs$1.exports = requireReactIs_production_min();
1329
1122
  } else {
1330
- reactIs$2.exports = requireReactIs_development$2();
1123
+ reactIs$1.exports = requireReactIs_development$1();
1331
1124
  }
1332
- return reactIs$2.exports;
1125
+ return reactIs$1.exports;
1333
1126
  }
1334
1127
 
1335
1128
  /*
@@ -2341,9 +2134,9 @@ function internal_serializeStyles(styles) {
2341
2134
  return serializeStyles(wrapper);
2342
2135
  }
2343
2136
 
2344
- var reactIs$1 = {exports: {}};
2137
+ var reactIs = {exports: {}};
2345
2138
 
2346
- var reactIs_production$1 = {};
2139
+ var reactIs_production = {};
2347
2140
 
2348
2141
  /**
2349
2142
  * @license React
@@ -2355,11 +2148,11 @@ var reactIs_production$1 = {};
2355
2148
  * LICENSE file in the root directory of this source tree.
2356
2149
  */
2357
2150
 
2358
- var hasRequiredReactIs_production$1;
2151
+ var hasRequiredReactIs_production;
2359
2152
 
2360
- function requireReactIs_production$1 () {
2361
- if (hasRequiredReactIs_production$1) return reactIs_production$1;
2362
- hasRequiredReactIs_production$1 = 1;
2153
+ function requireReactIs_production () {
2154
+ if (hasRequiredReactIs_production) return reactIs_production;
2155
+ hasRequiredReactIs_production = 1;
2363
2156
  var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
2364
2157
  REACT_PORTAL_TYPE = Symbol.for("react.portal"),
2365
2158
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
@@ -2405,59 +2198,59 @@ function requireReactIs_production$1 () {
2405
2198
  }
2406
2199
  }
2407
2200
  }
2408
- reactIs_production$1.ContextConsumer = REACT_CONSUMER_TYPE;
2409
- reactIs_production$1.ContextProvider = REACT_CONTEXT_TYPE;
2410
- reactIs_production$1.Element = REACT_ELEMENT_TYPE;
2411
- reactIs_production$1.ForwardRef = REACT_FORWARD_REF_TYPE;
2412
- reactIs_production$1.Fragment = REACT_FRAGMENT_TYPE;
2413
- reactIs_production$1.Lazy = REACT_LAZY_TYPE;
2414
- reactIs_production$1.Memo = REACT_MEMO_TYPE;
2415
- reactIs_production$1.Portal = REACT_PORTAL_TYPE;
2416
- reactIs_production$1.Profiler = REACT_PROFILER_TYPE;
2417
- reactIs_production$1.StrictMode = REACT_STRICT_MODE_TYPE;
2418
- reactIs_production$1.Suspense = REACT_SUSPENSE_TYPE;
2419
- reactIs_production$1.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
2420
- reactIs_production$1.isContextConsumer = function (object) {
2201
+ reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
2202
+ reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
2203
+ reactIs_production.Element = REACT_ELEMENT_TYPE;
2204
+ reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE;
2205
+ reactIs_production.Fragment = REACT_FRAGMENT_TYPE;
2206
+ reactIs_production.Lazy = REACT_LAZY_TYPE;
2207
+ reactIs_production.Memo = REACT_MEMO_TYPE;
2208
+ reactIs_production.Portal = REACT_PORTAL_TYPE;
2209
+ reactIs_production.Profiler = REACT_PROFILER_TYPE;
2210
+ reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;
2211
+ reactIs_production.Suspense = REACT_SUSPENSE_TYPE;
2212
+ reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
2213
+ reactIs_production.isContextConsumer = function (object) {
2421
2214
  return typeOf(object) === REACT_CONSUMER_TYPE;
2422
2215
  };
2423
- reactIs_production$1.isContextProvider = function (object) {
2216
+ reactIs_production.isContextProvider = function (object) {
2424
2217
  return typeOf(object) === REACT_CONTEXT_TYPE;
2425
2218
  };
2426
- reactIs_production$1.isElement = function (object) {
2219
+ reactIs_production.isElement = function (object) {
2427
2220
  return (
2428
2221
  "object" === typeof object &&
2429
2222
  null !== object &&
2430
2223
  object.$$typeof === REACT_ELEMENT_TYPE
2431
2224
  );
2432
2225
  };
2433
- reactIs_production$1.isForwardRef = function (object) {
2226
+ reactIs_production.isForwardRef = function (object) {
2434
2227
  return typeOf(object) === REACT_FORWARD_REF_TYPE;
2435
2228
  };
2436
- reactIs_production$1.isFragment = function (object) {
2229
+ reactIs_production.isFragment = function (object) {
2437
2230
  return typeOf(object) === REACT_FRAGMENT_TYPE;
2438
2231
  };
2439
- reactIs_production$1.isLazy = function (object) {
2232
+ reactIs_production.isLazy = function (object) {
2440
2233
  return typeOf(object) === REACT_LAZY_TYPE;
2441
2234
  };
2442
- reactIs_production$1.isMemo = function (object) {
2235
+ reactIs_production.isMemo = function (object) {
2443
2236
  return typeOf(object) === REACT_MEMO_TYPE;
2444
2237
  };
2445
- reactIs_production$1.isPortal = function (object) {
2238
+ reactIs_production.isPortal = function (object) {
2446
2239
  return typeOf(object) === REACT_PORTAL_TYPE;
2447
2240
  };
2448
- reactIs_production$1.isProfiler = function (object) {
2241
+ reactIs_production.isProfiler = function (object) {
2449
2242
  return typeOf(object) === REACT_PROFILER_TYPE;
2450
2243
  };
2451
- reactIs_production$1.isStrictMode = function (object) {
2244
+ reactIs_production.isStrictMode = function (object) {
2452
2245
  return typeOf(object) === REACT_STRICT_MODE_TYPE;
2453
2246
  };
2454
- reactIs_production$1.isSuspense = function (object) {
2247
+ reactIs_production.isSuspense = function (object) {
2455
2248
  return typeOf(object) === REACT_SUSPENSE_TYPE;
2456
2249
  };
2457
- reactIs_production$1.isSuspenseList = function (object) {
2250
+ reactIs_production.isSuspenseList = function (object) {
2458
2251
  return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
2459
2252
  };
2460
- reactIs_production$1.isValidElementType = function (type) {
2253
+ reactIs_production.isValidElementType = function (type) {
2461
2254
  return "string" === typeof type ||
2462
2255
  "function" === typeof type ||
2463
2256
  type === REACT_FRAGMENT_TYPE ||
@@ -2477,11 +2270,11 @@ function requireReactIs_production$1 () {
2477
2270
  ? true
2478
2271
  : false;
2479
2272
  };
2480
- reactIs_production$1.typeOf = typeOf;
2481
- return reactIs_production$1;
2273
+ reactIs_production.typeOf = typeOf;
2274
+ return reactIs_production;
2482
2275
  }
2483
2276
 
2484
- var reactIs_development$1 = {};
2277
+ var reactIs_development = {};
2485
2278
 
2486
2279
  /**
2487
2280
  * @license React
@@ -2493,11 +2286,11 @@ var reactIs_development$1 = {};
2493
2286
  * LICENSE file in the root directory of this source tree.
2494
2287
  */
2495
2288
 
2496
- var hasRequiredReactIs_development$1;
2289
+ var hasRequiredReactIs_development;
2497
2290
 
2498
- function requireReactIs_development$1 () {
2499
- if (hasRequiredReactIs_development$1) return reactIs_development$1;
2500
- hasRequiredReactIs_development$1 = 1;
2291
+ function requireReactIs_development () {
2292
+ if (hasRequiredReactIs_development) return reactIs_development;
2293
+ hasRequiredReactIs_development = 1;
2501
2294
  "production" !== process.env.NODE_ENV &&
2502
2295
  (function () {
2503
2296
  function typeOf(object) {
@@ -2545,59 +2338,59 @@ function requireReactIs_development$1 () {
2545
2338
  REACT_LAZY_TYPE = Symbol.for("react.lazy"),
2546
2339
  REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
2547
2340
  REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
2548
- reactIs_development$1.ContextConsumer = REACT_CONSUMER_TYPE;
2549
- reactIs_development$1.ContextProvider = REACT_CONTEXT_TYPE;
2550
- reactIs_development$1.Element = REACT_ELEMENT_TYPE;
2551
- reactIs_development$1.ForwardRef = REACT_FORWARD_REF_TYPE;
2552
- reactIs_development$1.Fragment = REACT_FRAGMENT_TYPE;
2553
- reactIs_development$1.Lazy = REACT_LAZY_TYPE;
2554
- reactIs_development$1.Memo = REACT_MEMO_TYPE;
2555
- reactIs_development$1.Portal = REACT_PORTAL_TYPE;
2556
- reactIs_development$1.Profiler = REACT_PROFILER_TYPE;
2557
- reactIs_development$1.StrictMode = REACT_STRICT_MODE_TYPE;
2558
- reactIs_development$1.Suspense = REACT_SUSPENSE_TYPE;
2559
- reactIs_development$1.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
2560
- reactIs_development$1.isContextConsumer = function (object) {
2341
+ reactIs_development.ContextConsumer = REACT_CONSUMER_TYPE;
2342
+ reactIs_development.ContextProvider = REACT_CONTEXT_TYPE;
2343
+ reactIs_development.Element = REACT_ELEMENT_TYPE;
2344
+ reactIs_development.ForwardRef = REACT_FORWARD_REF_TYPE;
2345
+ reactIs_development.Fragment = REACT_FRAGMENT_TYPE;
2346
+ reactIs_development.Lazy = REACT_LAZY_TYPE;
2347
+ reactIs_development.Memo = REACT_MEMO_TYPE;
2348
+ reactIs_development.Portal = REACT_PORTAL_TYPE;
2349
+ reactIs_development.Profiler = REACT_PROFILER_TYPE;
2350
+ reactIs_development.StrictMode = REACT_STRICT_MODE_TYPE;
2351
+ reactIs_development.Suspense = REACT_SUSPENSE_TYPE;
2352
+ reactIs_development.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
2353
+ reactIs_development.isContextConsumer = function (object) {
2561
2354
  return typeOf(object) === REACT_CONSUMER_TYPE;
2562
2355
  };
2563
- reactIs_development$1.isContextProvider = function (object) {
2356
+ reactIs_development.isContextProvider = function (object) {
2564
2357
  return typeOf(object) === REACT_CONTEXT_TYPE;
2565
2358
  };
2566
- reactIs_development$1.isElement = function (object) {
2359
+ reactIs_development.isElement = function (object) {
2567
2360
  return (
2568
2361
  "object" === typeof object &&
2569
2362
  null !== object &&
2570
2363
  object.$$typeof === REACT_ELEMENT_TYPE
2571
2364
  );
2572
2365
  };
2573
- reactIs_development$1.isForwardRef = function (object) {
2366
+ reactIs_development.isForwardRef = function (object) {
2574
2367
  return typeOf(object) === REACT_FORWARD_REF_TYPE;
2575
2368
  };
2576
- reactIs_development$1.isFragment = function (object) {
2369
+ reactIs_development.isFragment = function (object) {
2577
2370
  return typeOf(object) === REACT_FRAGMENT_TYPE;
2578
2371
  };
2579
- reactIs_development$1.isLazy = function (object) {
2372
+ reactIs_development.isLazy = function (object) {
2580
2373
  return typeOf(object) === REACT_LAZY_TYPE;
2581
2374
  };
2582
- reactIs_development$1.isMemo = function (object) {
2375
+ reactIs_development.isMemo = function (object) {
2583
2376
  return typeOf(object) === REACT_MEMO_TYPE;
2584
2377
  };
2585
- reactIs_development$1.isPortal = function (object) {
2378
+ reactIs_development.isPortal = function (object) {
2586
2379
  return typeOf(object) === REACT_PORTAL_TYPE;
2587
2380
  };
2588
- reactIs_development$1.isProfiler = function (object) {
2381
+ reactIs_development.isProfiler = function (object) {
2589
2382
  return typeOf(object) === REACT_PROFILER_TYPE;
2590
2383
  };
2591
- reactIs_development$1.isStrictMode = function (object) {
2384
+ reactIs_development.isStrictMode = function (object) {
2592
2385
  return typeOf(object) === REACT_STRICT_MODE_TYPE;
2593
2386
  };
2594
- reactIs_development$1.isSuspense = function (object) {
2387
+ reactIs_development.isSuspense = function (object) {
2595
2388
  return typeOf(object) === REACT_SUSPENSE_TYPE;
2596
2389
  };
2597
- reactIs_development$1.isSuspenseList = function (object) {
2390
+ reactIs_development.isSuspenseList = function (object) {
2598
2391
  return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
2599
2392
  };
2600
- reactIs_development$1.isValidElementType = function (type) {
2393
+ reactIs_development.isValidElementType = function (type) {
2601
2394
  return "string" === typeof type ||
2602
2395
  "function" === typeof type ||
2603
2396
  type === REACT_FRAGMENT_TYPE ||
@@ -2617,34 +2410,34 @@ function requireReactIs_development$1 () {
2617
2410
  ? true
2618
2411
  : false;
2619
2412
  };
2620
- reactIs_development$1.typeOf = typeOf;
2413
+ reactIs_development.typeOf = typeOf;
2621
2414
  })();
2622
- return reactIs_development$1;
2415
+ return reactIs_development;
2623
2416
  }
2624
2417
 
2625
2418
  if (process.env.NODE_ENV === 'production') {
2626
- reactIs$1.exports = requireReactIs_production$1();
2419
+ reactIs.exports = requireReactIs_production();
2627
2420
  } else {
2628
- reactIs$1.exports = requireReactIs_development$1();
2421
+ reactIs.exports = requireReactIs_development();
2629
2422
  }
2630
2423
 
2631
- var reactIsExports$1 = reactIs$1.exports;
2424
+ var reactIsExports = reactIs.exports;
2632
2425
 
2633
2426
  // https://github.com/sindresorhus/is-plain-obj/blob/main/index.js
2634
- function isPlainObject$1(item) {
2427
+ function isPlainObject(item) {
2635
2428
  if (typeof item !== 'object' || item === null) {
2636
2429
  return false;
2637
2430
  }
2638
2431
  const prototype = Object.getPrototypeOf(item);
2639
2432
  return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);
2640
2433
  }
2641
- function deepClone$1(source) {
2642
- if (/*#__PURE__*/React.isValidElement(source) || reactIsExports$1.isValidElementType(source) || !isPlainObject$1(source)) {
2434
+ function deepClone(source) {
2435
+ if (/*#__PURE__*/React.isValidElement(source) || reactIsExports.isValidElementType(source) || !isPlainObject(source)) {
2643
2436
  return source;
2644
2437
  }
2645
2438
  const output = {};
2646
2439
  Object.keys(source).forEach(key => {
2647
- output[key] = deepClone$1(source[key]);
2440
+ output[key] = deepClone(source[key]);
2648
2441
  });
2649
2442
  return output;
2650
2443
  }
@@ -2667,23 +2460,23 @@ function deepClone$1(source) {
2667
2460
  * @param options.clone Set to `false` to merge the source object directly into the target object.
2668
2461
  * @returns The merged object.
2669
2462
  */
2670
- function deepmerge$1(target, source, options = {
2463
+ function deepmerge(target, source, options = {
2671
2464
  clone: true
2672
2465
  }) {
2673
2466
  const output = options.clone ? {
2674
2467
  ...target
2675
2468
  } : target;
2676
- if (isPlainObject$1(target) && isPlainObject$1(source)) {
2469
+ if (isPlainObject(target) && isPlainObject(source)) {
2677
2470
  Object.keys(source).forEach(key => {
2678
- if (/*#__PURE__*/React.isValidElement(source[key]) || reactIsExports$1.isValidElementType(source[key])) {
2471
+ if (/*#__PURE__*/React.isValidElement(source[key]) || reactIsExports.isValidElementType(source[key])) {
2679
2472
  output[key] = source[key];
2680
- } else if (isPlainObject$1(source[key]) &&
2473
+ } else if (isPlainObject(source[key]) &&
2681
2474
  // Avoid prototype pollution
2682
- Object.prototype.hasOwnProperty.call(target, key) && isPlainObject$1(target[key])) {
2475
+ Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {
2683
2476
  // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.
2684
- output[key] = deepmerge$1(target[key], source[key], options);
2477
+ output[key] = deepmerge(target[key], source[key], options);
2685
2478
  } else if (options.clone) {
2686
- output[key] = isPlainObject$1(source[key]) ? deepClone$1(source[key]) : source[key];
2479
+ output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];
2687
2480
  } else {
2688
2481
  output[key] = source[key];
2689
2482
  }
@@ -2852,7 +2645,7 @@ function merge(acc, item) {
2852
2645
  if (!item) {
2853
2646
  return acc;
2854
2647
  }
2855
- return deepmerge$1(acc, item, {
2648
+ return deepmerge(acc, item, {
2856
2649
  clone: false // No need to clone deep, it's way faster.
2857
2650
  });
2858
2651
  }
@@ -2939,7 +2732,7 @@ function removeUnusedBreakpoints(breakpointKeys, style) {
2939
2732
  }
2940
2733
  function mergeBreakpointsInOrder(breakpointsInput, ...styles) {
2941
2734
  const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);
2942
- const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge$1(prev, next), {});
2735
+ const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});
2943
2736
  return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);
2944
2737
  }
2945
2738
 
@@ -2997,7 +2790,7 @@ function resolveBreakpointValues({
2997
2790
  //
2998
2791
  // A strict capitalization should uppercase the first letter of each word in the sentence.
2999
2792
  // We only handle the first word.
3000
- function capitalize$1(string) {
2793
+ function capitalize(string) {
3001
2794
  if (typeof string !== 'string') {
3002
2795
  throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: `capitalize(string)` expects a string argument.' : formatMuiErrorMessage(7));
3003
2796
  }
@@ -3058,7 +2851,7 @@ function style$2(options) {
3058
2851
  let value = getStyleValue$1(themeMapping, transform, propValueFinal);
3059
2852
  if (propValueFinal === value && typeof propValueFinal === 'string') {
3060
2853
  // Haven't found value
3061
- value = getStyleValue$1(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize$1(propValueFinal)}`, propValueFinal);
2854
+ value = getStyleValue$1(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);
3062
2855
  }
3063
2856
  if (cssProperty === false) {
3064
2857
  return value;
@@ -3830,7 +3623,7 @@ function unstable_createStyleFunctionSx() {
3830
3623
  let value = getStyleValue$1(themeMapping, transform, propValueFinal);
3831
3624
  if (propValueFinal === value && typeof propValueFinal === 'string') {
3832
3625
  // Haven't found value
3833
- value = getStyleValue$1(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize$1(propValueFinal)}`, propValueFinal);
3626
+ value = getStyleValue$1(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);
3834
3627
  }
3835
3628
  if (cssProperty === false) {
3836
3629
  return value;
@@ -4010,7 +3803,7 @@ function createTheme$1(options = {}, ...args) {
4010
3803
  } = options;
4011
3804
  const breakpoints = createBreakpoints(breakpointsInput);
4012
3805
  const spacing = createSpacing(spacingInput);
4013
- let muiTheme = deepmerge$1({
3806
+ let muiTheme = deepmerge({
4014
3807
  breakpoints,
4015
3808
  direction: 'ltr',
4016
3809
  components: {},
@@ -4027,7 +3820,7 @@ function createTheme$1(options = {}, ...args) {
4027
3820
  }, other);
4028
3821
  muiTheme = cssContainerQueries(muiTheme);
4029
3822
  muiTheme.applyStyles = applyStyles;
4030
- muiTheme = args.reduce((acc, argument) => deepmerge$1(acc, argument), muiTheme);
3823
+ muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
4031
3824
  muiTheme.unstable_sxConfig = {
4032
3825
  ...defaultSxConfig,
4033
3826
  ...other?.unstable_sxConfig
@@ -4138,7 +3931,7 @@ function extendSxProp$1(props) {
4138
3931
  } else if (typeof inSx === 'function') {
4139
3932
  finalSx = (...args) => {
4140
3933
  const result = inSx(...args);
4141
- if (!isPlainObject$1(result)) {
3934
+ if (!isPlainObject(result)) {
4142
3935
  return systemProps;
4143
3936
  }
4144
3937
  return {
@@ -4158,9 +3951,9 @@ function extendSxProp$1(props) {
4158
3951
  };
4159
3952
  }
4160
3953
 
4161
- const defaultGenerator$1 = componentName => componentName;
4162
- const createClassNameGenerator$1 = () => {
4163
- let generate = defaultGenerator$1;
3954
+ const defaultGenerator = componentName => componentName;
3955
+ const createClassNameGenerator = () => {
3956
+ let generate = defaultGenerator;
4164
3957
  return {
4165
3958
  configure(generator) {
4166
3959
  generate = generator;
@@ -4169,11 +3962,11 @@ const createClassNameGenerator$1 = () => {
4169
3962
  return generate(componentName);
4170
3963
  },
4171
3964
  reset() {
4172
- generate = defaultGenerator$1;
3965
+ generate = defaultGenerator;
4173
3966
  }
4174
3967
  };
4175
3968
  };
4176
- const ClassNameGenerator$1 = createClassNameGenerator$1();
3969
+ const ClassNameGenerator = createClassNameGenerator();
4177
3970
 
4178
3971
  function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
4179
3972
 
@@ -4205,7 +3998,7 @@ function createBox(options = {}) {
4205
3998
  return Box;
4206
3999
  }
4207
4000
 
4208
- const globalStateClasses$1 = {
4001
+ const globalStateClasses = {
4209
4002
  active: 'active',
4210
4003
  checked: 'checked',
4211
4004
  completed: 'completed',
@@ -4219,9 +4012,17 @@ const globalStateClasses$1 = {
4219
4012
  required: 'required',
4220
4013
  selected: 'selected'
4221
4014
  };
4222
- function generateUtilityClass$1(componentName, slot, globalStatePrefix = 'Mui') {
4223
- const globalStateClass = globalStateClasses$1[slot];
4224
- return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator$1.generate(componentName)}-${slot}`;
4015
+ function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {
4016
+ const globalStateClass = globalStateClasses[slot];
4017
+ return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;
4018
+ }
4019
+
4020
+ function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {
4021
+ const result = {};
4022
+ slots.forEach(slot => {
4023
+ result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);
4024
+ });
4025
+ return result;
4225
4026
  }
4226
4027
 
4227
4028
  function getFunctionComponentName(Component, fallback = '') {
@@ -4251,9 +4052,9 @@ function getDisplayName(Component) {
4251
4052
  // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`
4252
4053
  if (typeof Component === 'object') {
4253
4054
  switch (Component.$$typeof) {
4254
- case reactIsExports$1.ForwardRef:
4055
+ case reactIsExports.ForwardRef:
4255
4056
  return getWrappedName(Component, Component.render, 'ForwardRef');
4256
- case reactIsExports$1.Memo:
4057
+ case reactIsExports.Memo:
4257
4058
  return getWrappedName(Component, Component.type, 'memo');
4258
4059
  default:
4259
4060
  return undefined;
@@ -4443,7 +4244,7 @@ function createStyled(input = {}) {
4443
4244
  return processStyle(props, style, props.theme.modularCssLayers ? layerName : undefined);
4444
4245
  };
4445
4246
  }
4446
- if (isPlainObject$1(style)) {
4247
+ if (isPlainObject(style)) {
4447
4248
  const serialized = preprocessStyles(style);
4448
4249
  return function styleObjectProcessor(props) {
4449
4250
  if (!serialized.variants) {
@@ -4531,7 +4332,7 @@ function createStyled(input = {}) {
4531
4332
  }
4532
4333
  function generateDisplayName(componentName, componentSlot, tag) {
4533
4334
  if (componentName) {
4534
- return `${componentName}${capitalize$1(componentSlot || '')}`;
4335
+ return `${componentName}${capitalize(componentSlot || '')}`;
4535
4336
  }
4536
4337
  return `Styled(${getDisplayName(tag)})`;
4537
4338
  }
@@ -4580,7 +4381,7 @@ const styled$1 = createStyled();
4580
4381
  * and `style` objects are merged with props taking precedence.
4581
4382
  * @returns resolved props
4582
4383
  */
4583
- function resolveProps$1(defaultProps, props, mergeClassNameAndStyle = false) {
4384
+ function resolveProps(defaultProps, props, mergeClassNameAndStyle = false) {
4584
4385
  const output = {
4585
4386
  ...props
4586
4387
  };
@@ -4606,7 +4407,7 @@ function resolveProps$1(defaultProps, props, mergeClassNameAndStyle = false) {
4606
4407
  for (const slotKey in defaultSlotProps) {
4607
4408
  if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {
4608
4409
  const slotPropName = slotKey;
4609
- output[propName][slotPropName] = resolveProps$1(defaultSlotProps[slotPropName], slotProps[slotPropName], mergeClassNameAndStyle);
4410
+ output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName], mergeClassNameAndStyle);
4610
4411
  }
4611
4412
  }
4612
4413
  }
@@ -4634,7 +4435,7 @@ function getThemeProps$1(params) {
4634
4435
  if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {
4635
4436
  return props;
4636
4437
  }
4637
- return resolveProps$1(theme.components[name].defaultProps, props);
4438
+ return resolveProps(theme.components[name].defaultProps, props);
4638
4439
  }
4639
4440
 
4640
4441
  function useThemeProps({
@@ -4654,6 +4455,15 @@ function useThemeProps({
4654
4455
  });
4655
4456
  }
4656
4457
 
4458
+ /**
4459
+ * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.
4460
+ * This is useful for effects that are only needed for client-side rendering but not for SSR.
4461
+ *
4462
+ * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85
4463
+ * and confirm it doesn't apply to your use-case.
4464
+ */
4465
+ const useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
4466
+
4657
4467
  function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {
4658
4468
  return Math.max(min, Math.min(val, max));
4659
4469
  }
@@ -4953,6 +4763,27 @@ function private_safeEmphasize(color, coefficient, warning) {
4953
4763
  }
4954
4764
  }
4955
4765
 
4766
+ // This module is based on https://github.com/airbnb/prop-types-exact repository.
4767
+ // However, in order to reduce the number of dependencies and to remove some extra safe checks
4768
+ // the module was forked.
4769
+
4770
+ const specialProperty = 'exact-prop: \u200b';
4771
+ function exactProp(propTypes) {
4772
+ if (process.env.NODE_ENV === 'production') {
4773
+ return propTypes;
4774
+ }
4775
+ return {
4776
+ ...propTypes,
4777
+ [specialProperty]: props => {
4778
+ const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));
4779
+ if (unsupportedProps.length > 0) {
4780
+ return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\`${prop}\``).join(', ')}. Please remove them.`);
4781
+ }
4782
+ return null;
4783
+ }
4784
+ };
4785
+ }
4786
+
4956
4787
  const RtlContext = /*#__PURE__*/React.createContext();
4957
4788
  process.env.NODE_ENV !== "production" ? {
4958
4789
  children: PropTypes.node,
@@ -4990,11 +4821,11 @@ function getThemeProps(params) {
4990
4821
  const config = theme.components[name];
4991
4822
  if (config.defaultProps) {
4992
4823
  // compatible with v5 signature
4993
- return resolveProps$1(config.defaultProps, props, theme.components.mergeClassNameAndStyle);
4824
+ return resolveProps(config.defaultProps, props, theme.components.mergeClassNameAndStyle);
4994
4825
  }
4995
4826
  if (!config.styleOverrides && !config.variants) {
4996
4827
  // v6 signature, no property 'defaultProps'
4997
- return resolveProps$1(config, props, theme.components.mergeClassNameAndStyle);
4828
+ return resolveProps(config, props, theme.components.mergeClassNameAndStyle);
4998
4829
  }
4999
4830
  return props;
5000
4831
  }
@@ -5012,15 +4843,58 @@ function useDefaultProps$1({
5012
4843
  });
5013
4844
  }
5014
4845
 
5015
- /* eslint-disable @typescript-eslint/naming-convention */
4846
+ let globalId = 0;
5016
4847
 
5017
- // We need to pass an argument as `{ theme }` for PigmentCSS, but we don't want to
5018
- // allocate more objects.
5019
- const arg = {
5020
- theme: undefined
5021
- };
4848
+ // TODO React 17: Remove `useGlobalId` once React 17 support is removed
4849
+ function useGlobalId(idOverride) {
4850
+ const [defaultId, setDefaultId] = React.useState(idOverride);
4851
+ const id = idOverride || defaultId;
4852
+ React.useEffect(() => {
4853
+ if (defaultId == null) {
4854
+ // Fallback to this default id when possible.
4855
+ // Use the incrementing value for client-side rendering only.
4856
+ // We can't use it server-side.
4857
+ // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem
4858
+ globalId += 1;
4859
+ setDefaultId(`mui-${globalId}`);
4860
+ }
4861
+ }, [defaultId]);
4862
+ return id;
4863
+ }
5022
4864
 
5023
- /**
4865
+ // See https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379 for why
4866
+ const safeReact = {
4867
+ ...React
4868
+ };
4869
+ const maybeReactUseId = safeReact.useId;
4870
+
4871
+ /**
4872
+ *
4873
+ * @example <div id={useId()} />
4874
+ * @param idOverride
4875
+ * @returns {string}
4876
+ */
4877
+ function useId(idOverride) {
4878
+ // React.useId() is only available from React 17.0.0.
4879
+ if (maybeReactUseId !== undefined) {
4880
+ const reactId = maybeReactUseId();
4881
+ return idOverride ?? reactId;
4882
+ }
4883
+
4884
+ // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
4885
+ // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.
4886
+ return useGlobalId(idOverride);
4887
+ }
4888
+
4889
+ /* eslint-disable @typescript-eslint/naming-convention */
4890
+
4891
+ // We need to pass an argument as `{ theme }` for PigmentCSS, but we don't want to
4892
+ // allocate more objects.
4893
+ const arg = {
4894
+ theme: undefined
4895
+ };
4896
+
4897
+ /**
5024
4898
  * Memoize style function on theme.
5025
4899
  * Intended to be used in styled() calls that only need access to the theme.
5026
4900
  */
@@ -5222,7 +5096,7 @@ function prepareCssVars(theme, parserConfig = {}) {
5222
5096
  css,
5223
5097
  varsWithDefaults
5224
5098
  } = cssVarsParser(scheme, parserConfig);
5225
- themeVars = deepmerge$1(themeVars, varsWithDefaults);
5099
+ themeVars = deepmerge(themeVars, varsWithDefaults);
5226
5100
  colorSchemesMap[key] = {
5227
5101
  css,
5228
5102
  vars
@@ -5235,7 +5109,7 @@ function prepareCssVars(theme, parserConfig = {}) {
5235
5109
  vars,
5236
5110
  varsWithDefaults
5237
5111
  } = cssVarsParser(defaultScheme, parserConfig);
5238
- themeVars = deepmerge$1(themeVars, varsWithDefaults);
5112
+ themeVars = deepmerge(themeVars, varsWithDefaults);
5239
5113
  colorSchemesMap[defaultColorScheme] = {
5240
5114
  css,
5241
5115
  vars
@@ -5281,7 +5155,7 @@ function prepareCssVars(theme, parserConfig = {}) {
5281
5155
  Object.entries(colorSchemesMap).forEach(([, {
5282
5156
  vars: schemeVars
5283
5157
  }]) => {
5284
- vars = deepmerge$1(vars, schemeVars);
5158
+ vars = deepmerge(vars, schemeVars);
5285
5159
  });
5286
5160
  return vars;
5287
5161
  };
@@ -5403,7 +5277,7 @@ function createGetColorSchemeSelector(selector) {
5403
5277
  * @param classes the input classes from props
5404
5278
  * @returns the resolved classes for all slots
5405
5279
  */
5406
- function composeClasses$1(slots, getUtilityClass, classes = undefined) {
5280
+ function composeClasses(slots, getUtilityClass, classes = undefined) {
5407
5281
  const output = {};
5408
5282
  for (const slotName in slots) {
5409
5283
  const slot = slots[slotName];
@@ -5523,7 +5397,7 @@ const style = ({
5523
5397
  }
5524
5398
  };
5525
5399
  };
5526
- styles = deepmerge$1(styles, handleBreakpoints({
5400
+ styles = deepmerge(styles, handleBreakpoints({
5527
5401
  theme
5528
5402
  }, spacingValues, styleFromPropValue));
5529
5403
  }
@@ -5541,7 +5415,7 @@ function createStack(options = {}) {
5541
5415
  const slots = {
5542
5416
  root: ['root']
5543
5417
  };
5544
- return composeClasses$1(slots, slot => generateUtilityClass$1(componentName, slot), {});
5418
+ return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});
5545
5419
  };
5546
5420
  const StackRoot = createStyledComponent(style);
5547
5421
  const Stack = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {
@@ -5582,357 +5456,6 @@ function createStack(options = {}) {
5582
5456
  return Stack;
5583
5457
  }
5584
5458
 
5585
- var reactIs = {exports: {}};
5586
-
5587
- var reactIs_production = {};
5588
-
5589
- /**
5590
- * @license React
5591
- * react-is.production.js
5592
- *
5593
- * Copyright (c) Meta Platforms, Inc. and affiliates.
5594
- *
5595
- * This source code is licensed under the MIT license found in the
5596
- * LICENSE file in the root directory of this source tree.
5597
- */
5598
-
5599
- var hasRequiredReactIs_production;
5600
-
5601
- function requireReactIs_production () {
5602
- if (hasRequiredReactIs_production) return reactIs_production;
5603
- hasRequiredReactIs_production = 1;
5604
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
5605
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
5606
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
5607
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
5608
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
5609
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
5610
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
5611
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
5612
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
5613
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
5614
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
5615
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
5616
- REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
5617
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
5618
- function typeOf(object) {
5619
- if ("object" === typeof object && null !== object) {
5620
- var $$typeof = object.$$typeof;
5621
- switch ($$typeof) {
5622
- case REACT_ELEMENT_TYPE:
5623
- switch (((object = object.type), object)) {
5624
- case REACT_FRAGMENT_TYPE:
5625
- case REACT_PROFILER_TYPE:
5626
- case REACT_STRICT_MODE_TYPE:
5627
- case REACT_SUSPENSE_TYPE:
5628
- case REACT_SUSPENSE_LIST_TYPE:
5629
- case REACT_VIEW_TRANSITION_TYPE:
5630
- return object;
5631
- default:
5632
- switch (((object = object && object.$$typeof), object)) {
5633
- case REACT_CONTEXT_TYPE:
5634
- case REACT_FORWARD_REF_TYPE:
5635
- case REACT_LAZY_TYPE:
5636
- case REACT_MEMO_TYPE:
5637
- return object;
5638
- case REACT_CONSUMER_TYPE:
5639
- return object;
5640
- default:
5641
- return $$typeof;
5642
- }
5643
- }
5644
- case REACT_PORTAL_TYPE:
5645
- return $$typeof;
5646
- }
5647
- }
5648
- }
5649
- reactIs_production.ContextConsumer = REACT_CONSUMER_TYPE;
5650
- reactIs_production.ContextProvider = REACT_CONTEXT_TYPE;
5651
- reactIs_production.Element = REACT_ELEMENT_TYPE;
5652
- reactIs_production.ForwardRef = REACT_FORWARD_REF_TYPE;
5653
- reactIs_production.Fragment = REACT_FRAGMENT_TYPE;
5654
- reactIs_production.Lazy = REACT_LAZY_TYPE;
5655
- reactIs_production.Memo = REACT_MEMO_TYPE;
5656
- reactIs_production.Portal = REACT_PORTAL_TYPE;
5657
- reactIs_production.Profiler = REACT_PROFILER_TYPE;
5658
- reactIs_production.StrictMode = REACT_STRICT_MODE_TYPE;
5659
- reactIs_production.Suspense = REACT_SUSPENSE_TYPE;
5660
- reactIs_production.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
5661
- reactIs_production.isContextConsumer = function (object) {
5662
- return typeOf(object) === REACT_CONSUMER_TYPE;
5663
- };
5664
- reactIs_production.isContextProvider = function (object) {
5665
- return typeOf(object) === REACT_CONTEXT_TYPE;
5666
- };
5667
- reactIs_production.isElement = function (object) {
5668
- return (
5669
- "object" === typeof object &&
5670
- null !== object &&
5671
- object.$$typeof === REACT_ELEMENT_TYPE
5672
- );
5673
- };
5674
- reactIs_production.isForwardRef = function (object) {
5675
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
5676
- };
5677
- reactIs_production.isFragment = function (object) {
5678
- return typeOf(object) === REACT_FRAGMENT_TYPE;
5679
- };
5680
- reactIs_production.isLazy = function (object) {
5681
- return typeOf(object) === REACT_LAZY_TYPE;
5682
- };
5683
- reactIs_production.isMemo = function (object) {
5684
- return typeOf(object) === REACT_MEMO_TYPE;
5685
- };
5686
- reactIs_production.isPortal = function (object) {
5687
- return typeOf(object) === REACT_PORTAL_TYPE;
5688
- };
5689
- reactIs_production.isProfiler = function (object) {
5690
- return typeOf(object) === REACT_PROFILER_TYPE;
5691
- };
5692
- reactIs_production.isStrictMode = function (object) {
5693
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
5694
- };
5695
- reactIs_production.isSuspense = function (object) {
5696
- return typeOf(object) === REACT_SUSPENSE_TYPE;
5697
- };
5698
- reactIs_production.isSuspenseList = function (object) {
5699
- return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
5700
- };
5701
- reactIs_production.isValidElementType = function (type) {
5702
- return "string" === typeof type ||
5703
- "function" === typeof type ||
5704
- type === REACT_FRAGMENT_TYPE ||
5705
- type === REACT_PROFILER_TYPE ||
5706
- type === REACT_STRICT_MODE_TYPE ||
5707
- type === REACT_SUSPENSE_TYPE ||
5708
- type === REACT_SUSPENSE_LIST_TYPE ||
5709
- ("object" === typeof type &&
5710
- null !== type &&
5711
- (type.$$typeof === REACT_LAZY_TYPE ||
5712
- type.$$typeof === REACT_MEMO_TYPE ||
5713
- type.$$typeof === REACT_CONTEXT_TYPE ||
5714
- type.$$typeof === REACT_CONSUMER_TYPE ||
5715
- type.$$typeof === REACT_FORWARD_REF_TYPE ||
5716
- type.$$typeof === REACT_CLIENT_REFERENCE ||
5717
- void 0 !== type.getModuleId))
5718
- ? true
5719
- : false;
5720
- };
5721
- reactIs_production.typeOf = typeOf;
5722
- return reactIs_production;
5723
- }
5724
-
5725
- var reactIs_development = {};
5726
-
5727
- /**
5728
- * @license React
5729
- * react-is.development.js
5730
- *
5731
- * Copyright (c) Meta Platforms, Inc. and affiliates.
5732
- *
5733
- * This source code is licensed under the MIT license found in the
5734
- * LICENSE file in the root directory of this source tree.
5735
- */
5736
-
5737
- var hasRequiredReactIs_development;
5738
-
5739
- function requireReactIs_development () {
5740
- if (hasRequiredReactIs_development) return reactIs_development;
5741
- hasRequiredReactIs_development = 1;
5742
- "production" !== process.env.NODE_ENV &&
5743
- (function () {
5744
- function typeOf(object) {
5745
- if ("object" === typeof object && null !== object) {
5746
- var $$typeof = object.$$typeof;
5747
- switch ($$typeof) {
5748
- case REACT_ELEMENT_TYPE:
5749
- switch (((object = object.type), object)) {
5750
- case REACT_FRAGMENT_TYPE:
5751
- case REACT_PROFILER_TYPE:
5752
- case REACT_STRICT_MODE_TYPE:
5753
- case REACT_SUSPENSE_TYPE:
5754
- case REACT_SUSPENSE_LIST_TYPE:
5755
- case REACT_VIEW_TRANSITION_TYPE:
5756
- return object;
5757
- default:
5758
- switch (((object = object && object.$$typeof), object)) {
5759
- case REACT_CONTEXT_TYPE:
5760
- case REACT_FORWARD_REF_TYPE:
5761
- case REACT_LAZY_TYPE:
5762
- case REACT_MEMO_TYPE:
5763
- return object;
5764
- case REACT_CONSUMER_TYPE:
5765
- return object;
5766
- default:
5767
- return $$typeof;
5768
- }
5769
- }
5770
- case REACT_PORTAL_TYPE:
5771
- return $$typeof;
5772
- }
5773
- }
5774
- }
5775
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
5776
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
5777
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
5778
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
5779
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
5780
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
5781
- REACT_CONTEXT_TYPE = Symbol.for("react.context"),
5782
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
5783
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
5784
- REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
5785
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
5786
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
5787
- REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
5788
- REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
5789
- reactIs_development.ContextConsumer = REACT_CONSUMER_TYPE;
5790
- reactIs_development.ContextProvider = REACT_CONTEXT_TYPE;
5791
- reactIs_development.Element = REACT_ELEMENT_TYPE;
5792
- reactIs_development.ForwardRef = REACT_FORWARD_REF_TYPE;
5793
- reactIs_development.Fragment = REACT_FRAGMENT_TYPE;
5794
- reactIs_development.Lazy = REACT_LAZY_TYPE;
5795
- reactIs_development.Memo = REACT_MEMO_TYPE;
5796
- reactIs_development.Portal = REACT_PORTAL_TYPE;
5797
- reactIs_development.Profiler = REACT_PROFILER_TYPE;
5798
- reactIs_development.StrictMode = REACT_STRICT_MODE_TYPE;
5799
- reactIs_development.Suspense = REACT_SUSPENSE_TYPE;
5800
- reactIs_development.SuspenseList = REACT_SUSPENSE_LIST_TYPE;
5801
- reactIs_development.isContextConsumer = function (object) {
5802
- return typeOf(object) === REACT_CONSUMER_TYPE;
5803
- };
5804
- reactIs_development.isContextProvider = function (object) {
5805
- return typeOf(object) === REACT_CONTEXT_TYPE;
5806
- };
5807
- reactIs_development.isElement = function (object) {
5808
- return (
5809
- "object" === typeof object &&
5810
- null !== object &&
5811
- object.$$typeof === REACT_ELEMENT_TYPE
5812
- );
5813
- };
5814
- reactIs_development.isForwardRef = function (object) {
5815
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
5816
- };
5817
- reactIs_development.isFragment = function (object) {
5818
- return typeOf(object) === REACT_FRAGMENT_TYPE;
5819
- };
5820
- reactIs_development.isLazy = function (object) {
5821
- return typeOf(object) === REACT_LAZY_TYPE;
5822
- };
5823
- reactIs_development.isMemo = function (object) {
5824
- return typeOf(object) === REACT_MEMO_TYPE;
5825
- };
5826
- reactIs_development.isPortal = function (object) {
5827
- return typeOf(object) === REACT_PORTAL_TYPE;
5828
- };
5829
- reactIs_development.isProfiler = function (object) {
5830
- return typeOf(object) === REACT_PROFILER_TYPE;
5831
- };
5832
- reactIs_development.isStrictMode = function (object) {
5833
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
5834
- };
5835
- reactIs_development.isSuspense = function (object) {
5836
- return typeOf(object) === REACT_SUSPENSE_TYPE;
5837
- };
5838
- reactIs_development.isSuspenseList = function (object) {
5839
- return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
5840
- };
5841
- reactIs_development.isValidElementType = function (type) {
5842
- return "string" === typeof type ||
5843
- "function" === typeof type ||
5844
- type === REACT_FRAGMENT_TYPE ||
5845
- type === REACT_PROFILER_TYPE ||
5846
- type === REACT_STRICT_MODE_TYPE ||
5847
- type === REACT_SUSPENSE_TYPE ||
5848
- type === REACT_SUSPENSE_LIST_TYPE ||
5849
- ("object" === typeof type &&
5850
- null !== type &&
5851
- (type.$$typeof === REACT_LAZY_TYPE ||
5852
- type.$$typeof === REACT_MEMO_TYPE ||
5853
- type.$$typeof === REACT_CONTEXT_TYPE ||
5854
- type.$$typeof === REACT_CONSUMER_TYPE ||
5855
- type.$$typeof === REACT_FORWARD_REF_TYPE ||
5856
- type.$$typeof === REACT_CLIENT_REFERENCE ||
5857
- void 0 !== type.getModuleId))
5858
- ? true
5859
- : false;
5860
- };
5861
- reactIs_development.typeOf = typeOf;
5862
- })();
5863
- return reactIs_development;
5864
- }
5865
-
5866
- if (process.env.NODE_ENV === 'production') {
5867
- reactIs.exports = requireReactIs_production();
5868
- } else {
5869
- reactIs.exports = requireReactIs_development();
5870
- }
5871
-
5872
- var reactIsExports = reactIs.exports;
5873
-
5874
- // https://github.com/sindresorhus/is-plain-obj/blob/main/index.js
5875
- function isPlainObject(item) {
5876
- if (typeof item !== 'object' || item === null) {
5877
- return false;
5878
- }
5879
- const prototype = Object.getPrototypeOf(item);
5880
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);
5881
- }
5882
- function deepClone(source) {
5883
- if (/*#__PURE__*/React.isValidElement(source) || reactIsExports.isValidElementType(source) || !isPlainObject(source)) {
5884
- return source;
5885
- }
5886
- const output = {};
5887
- Object.keys(source).forEach(key => {
5888
- output[key] = deepClone(source[key]);
5889
- });
5890
- return output;
5891
- }
5892
-
5893
- /**
5894
- * Merge objects deeply.
5895
- * It will shallow copy React elements.
5896
- *
5897
- * If `options.clone` is set to `false` the source object will be merged directly into the target object.
5898
- *
5899
- * @example
5900
- * ```ts
5901
- * deepmerge({ a: { b: 1 }, d: 2 }, { a: { c: 2 }, d: 4 });
5902
- * // => { a: { b: 1, c: 2 }, d: 4 }
5903
- * ````
5904
- *
5905
- * @param target The target object.
5906
- * @param source The source object.
5907
- * @param options The merge options.
5908
- * @param options.clone Set to `false` to merge the source object directly into the target object.
5909
- * @returns The merged object.
5910
- */
5911
- function deepmerge(target, source, options = {
5912
- clone: true
5913
- }) {
5914
- const output = options.clone ? {
5915
- ...target
5916
- } : target;
5917
- if (isPlainObject(target) && isPlainObject(source)) {
5918
- Object.keys(source).forEach(key => {
5919
- if (/*#__PURE__*/React.isValidElement(source[key]) || reactIsExports.isValidElementType(source[key])) {
5920
- output[key] = source[key];
5921
- } else if (isPlainObject(source[key]) &&
5922
- // Avoid prototype pollution
5923
- Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {
5924
- // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.
5925
- output[key] = deepmerge(target[key], source[key], options);
5926
- } else if (options.clone) {
5927
- output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];
5928
- } else {
5929
- output[key] = source[key];
5930
- }
5931
- });
5932
- }
5933
- return output;
5934
- }
5935
-
5936
5459
  const common = {
5937
5460
  black: '#000',
5938
5461
  white: '#fff'
@@ -6208,10 +5731,10 @@ function createPalette(palette) {
6208
5731
  color.main = color[mainShade];
6209
5732
  }
6210
5733
  if (!color.hasOwnProperty('main')) {
6211
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n` + `The color object needs to have a \`main\` property or a \`${mainShade}\` property.` : formatMuiErrorMessage$1(11, name ? ` (${name})` : '', mainShade));
5734
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n` + `The color object needs to have a \`main\` property or a \`${mainShade}\` property.` : formatMuiErrorMessage(11, name ? ` (${name})` : '', mainShade));
6212
5735
  }
6213
5736
  if (typeof color.main !== 'string') {
6214
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n` + `\`color.main\` should be a string, but \`${JSON.stringify(color.main)}\` was provided instead.\n` + '\n' + 'Did you intend to use one of the following approaches?\n' + '\n' + 'import { green } from "@mui/material/colors";\n' + '\n' + 'const theme1 = createTheme({ palette: {\n' + ' primary: green,\n' + '} });\n' + '\n' + 'const theme2 = createTheme({ palette: {\n' + ' primary: { main: green[500] },\n' + '} });' : formatMuiErrorMessage$1(12, name ? ` (${name})` : '', JSON.stringify(color.main)));
5737
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\n` + `\`color.main\` should be a string, but \`${JSON.stringify(color.main)}\` was provided instead.\n` + '\n' + 'Did you intend to use one of the following approaches?\n' + '\n' + 'import { green } from "@mui/material/colors";\n' + '\n' + 'const theme1 = createTheme({ palette: {\n' + ' primary: green,\n' + '} });\n' + '\n' + 'const theme2 = createTheme({ palette: {\n' + ' primary: { main: green[500] },\n' + '} });' : formatMuiErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));
6215
5738
  }
6216
5739
  addLightOrDark(color, 'light', lightShade, tonalOffset);
6217
5740
  addLightOrDark(color, 'dark', darkShade, tonalOffset);
@@ -6285,58 +5808,22 @@ function createPalette(palette) {
6285
5808
  // two indexes within its tonal palette.
6286
5809
  // E.g., shift from Red 500 to Red 300 or Red 700.
6287
5810
  tonalOffset,
6288
- // The light and dark mode object.
6289
- ...modeHydrated
6290
- }, other);
6291
- return paletteOutput;
6292
- }
6293
-
6294
- function prepareTypographyVars(typography) {
6295
- const vars = {};
6296
- const entries = Object.entries(typography);
6297
- entries.forEach(entry => {
6298
- const [key, value] = entry;
6299
- if (typeof value === 'object') {
6300
- vars[key] = `${value.fontStyle ? `${value.fontStyle} ` : ''}${value.fontVariant ? `${value.fontVariant} ` : ''}${value.fontWeight ? `${value.fontWeight} ` : ''}${value.fontStretch ? `${value.fontStretch} ` : ''}${value.fontSize || ''}${value.lineHeight ? `/${value.lineHeight} ` : ''}${value.fontFamily || ''}`;
6301
- }
6302
- });
6303
- return vars;
6304
- }
6305
-
6306
- const defaultGenerator = componentName => componentName;
6307
- const createClassNameGenerator = () => {
6308
- let generate = defaultGenerator;
6309
- return {
6310
- configure(generator) {
6311
- generate = generator;
6312
- },
6313
- generate(componentName) {
6314
- return generate(componentName);
6315
- },
6316
- reset() {
6317
- generate = defaultGenerator;
6318
- }
6319
- };
6320
- };
6321
- const ClassNameGenerator = createClassNameGenerator();
5811
+ // The light and dark mode object.
5812
+ ...modeHydrated
5813
+ }, other);
5814
+ return paletteOutput;
5815
+ }
6322
5816
 
6323
- const globalStateClasses = {
6324
- active: 'active',
6325
- checked: 'checked',
6326
- completed: 'completed',
6327
- disabled: 'disabled',
6328
- error: 'error',
6329
- expanded: 'expanded',
6330
- focused: 'focused',
6331
- focusVisible: 'focusVisible',
6332
- open: 'open',
6333
- readOnly: 'readOnly',
6334
- required: 'required',
6335
- selected: 'selected'
6336
- };
6337
- function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {
6338
- const globalStateClass = globalStateClasses[slot];
6339
- return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;
5817
+ function prepareTypographyVars(typography) {
5818
+ const vars = {};
5819
+ const entries = Object.entries(typography);
5820
+ entries.forEach(entry => {
5821
+ const [key, value] = entry;
5822
+ if (typeof value === 'object') {
5823
+ vars[key] = `${value.fontStyle ? `${value.fontStyle} ` : ''}${value.fontVariant ? `${value.fontVariant} ` : ''}${value.fontWeight ? `${value.fontWeight} ` : ''}${value.fontStretch ? `${value.fontStretch} ` : ''}${value.fontSize || ''}${value.lineHeight ? `/${value.lineHeight} ` : ''}${value.fontFamily || ''}`;
5824
+ }
5825
+ });
5826
+ return vars;
6340
5827
  }
6341
5828
 
6342
5829
  function createMixins(breakpoints, mixins) {
@@ -6632,7 +6119,7 @@ function createThemeNoVars(options = {}, ...args) {
6632
6119
  options.generateThemeVars === undefined) {
6633
6120
  throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: `vars` is a private field used for CSS variables support.\n' +
6634
6121
  // #host-reference
6635
- 'Please use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.' : formatMuiErrorMessage$1(20));
6122
+ 'Please use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.' : formatMuiErrorMessage(20));
6636
6123
  }
6637
6124
  const palette = createPalette(paletteInput);
6638
6125
  const systemTheme = createTheme$1(options);
@@ -6937,7 +6424,7 @@ function createThemeWithVars(options = {}, ...args) {
6937
6424
  defaultScheme = true;
6938
6425
  }
6939
6426
  if (!defaultScheme) {
6940
- throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${defaultColorScheme}\` option is either missing or invalid.` : formatMuiErrorMessage$1(21, defaultColorScheme));
6427
+ throw new Error(process.env.NODE_ENV !== "production" ? `MUI: The \`colorSchemes.${defaultColorScheme}\` option is either missing or invalid.` : formatMuiErrorMessage(21, defaultColorScheme));
6941
6428
  }
6942
6429
 
6943
6430
  // Create the palette for the default color scheme, either `light`, `dark`, or custom color scheme.
@@ -8435,14 +7922,14 @@ var components = {
8435
7922
  },
8436
7923
  MuiInputLabel: {
8437
7924
  styleOverrides: {
8438
- asterisk: function asterisk(_ref10) {
8439
- var theme = _ref10.theme;
7925
+ asterisk: function asterisk(_ref0) {
7926
+ var theme = _ref0.theme;
8440
7927
  return {
8441
7928
  color: theme.palette.error.main
8442
7929
  };
8443
7930
  },
8444
- error: function error(_ref11) {
8445
- var theme = _ref11.theme;
7931
+ error: function error(_ref1) {
7932
+ var theme = _ref1.theme;
8446
7933
  return {
8447
7934
  color: theme.palette.text.secondary
8448
7935
  };
@@ -8964,60 +8451,6 @@ var mixins = {
8964
8451
  })
8965
8452
  };
8966
8453
 
8967
- /* eslint no-restricted-syntax: 0, prefer-template: 0, guard-for-in: 0
8968
- ---
8969
- These rules are preventing the performance optimizations below.
8970
- */
8971
-
8972
- /**
8973
- * Compose classes from multiple sources.
8974
- *
8975
- * @example
8976
- * ```tsx
8977
- * const slots = {
8978
- * root: ['root', 'primary'],
8979
- * label: ['label'],
8980
- * };
8981
- *
8982
- * const getUtilityClass = (slot) => `MuiButton-${slot}`;
8983
- *
8984
- * const classes = {
8985
- * root: 'my-root-class',
8986
- * };
8987
- *
8988
- * const output = composeClasses(slots, getUtilityClass, classes);
8989
- * // {
8990
- * // root: 'MuiButton-root MuiButton-primary my-root-class',
8991
- * // label: 'MuiButton-label',
8992
- * // }
8993
- * ```
8994
- *
8995
- * @param slots a list of classes for each possible slot
8996
- * @param getUtilityClass a function to resolve the class based on the slot name
8997
- * @param classes the input classes from props
8998
- * @returns the resolved classes for all slots
8999
- */
9000
- function composeClasses(slots, getUtilityClass, classes = undefined) {
9001
- const output = {};
9002
- for (const slotName in slots) {
9003
- const slot = slots[slotName];
9004
- let buffer = '';
9005
- let start = true;
9006
- for (let i = 0; i < slot.length; i += 1) {
9007
- const value = slot[i];
9008
- if (value) {
9009
- buffer += (start === true ? '' : ' ') + getUtilityClass(value);
9010
- start = false;
9011
- if (classes && classes[value]) {
9012
- buffer += ' ' + classes[value];
9013
- }
9014
- }
9015
- }
9016
- output[slotName] = buffer;
9017
- }
9018
- return output;
9019
- }
9020
-
9021
8454
  function GlobalStyles(props) {
9022
8455
  return /*#__PURE__*/jsx(GlobalStyles$1, {
9023
8456
  ...props,
@@ -9076,17 +8509,6 @@ function useDefaultProps(params) {
9076
8509
  return useDefaultProps$1(params);
9077
8510
  }
9078
8511
 
9079
- // It should to be noted that this function isn't equivalent to `text-transform: capitalize`.
9080
- //
9081
- // A strict capitalization should uppercase the first letter of each word in the sentence.
9082
- // We only handle the first word.
9083
- function capitalize(string) {
9084
- if (typeof string !== 'string') {
9085
- throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: `capitalize(string)` expects a string argument.' : formatMuiErrorMessage$1(7));
9086
- }
9087
- return string.charAt(0).toUpperCase() + string.slice(1);
9088
- }
9089
-
9090
8512
  /**
9091
8513
  * Type guard to check if the object has a "main" property of type string.
9092
8514
  *
@@ -9129,14 +8551,6 @@ function createSimplePaletteValueFilter(additionalPropertiesToCheck = []) {
9129
8551
  return ([, value]) => value && checkSimplePaletteColorValues(value, additionalPropertiesToCheck);
9130
8552
  }
9131
8553
 
9132
- function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {
9133
- const result = {};
9134
- slots.forEach(slot => {
9135
- result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);
9136
- });
9137
- return result;
9138
- }
9139
-
9140
8554
  function getTypographyUtilityClass(slot) {
9141
8555
  return generateUtilityClass('MuiTypography', slot);
9142
8556
  }
@@ -9575,15 +8989,6 @@ function useForkRef(...refs) {
9575
8989
  }, refs);
9576
8990
  }
9577
8991
 
9578
- /**
9579
- * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.
9580
- * This is useful for effects that are only needed for client-side rendering but not for SSR.
9581
- *
9582
- * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85
9583
- * and confirm it doesn't apply to your use-case.
9584
- */
9585
- const useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
9586
-
9587
8992
  /**
9588
8993
  * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892
9589
8994
  * See RFC in https://github.com/reactjs/rfcs/pull/220
@@ -12869,49 +12274,6 @@ function setRef(ref, value) {
12869
12274
  }
12870
12275
  }
12871
12276
 
12872
- let globalId = 0;
12873
-
12874
- // TODO React 17: Remove `useGlobalId` once React 17 support is removed
12875
- function useGlobalId(idOverride) {
12876
- const [defaultId, setDefaultId] = React.useState(idOverride);
12877
- const id = idOverride || defaultId;
12878
- React.useEffect(() => {
12879
- if (defaultId == null) {
12880
- // Fallback to this default id when possible.
12881
- // Use the incrementing value for client-side rendering only.
12882
- // We can't use it server-side.
12883
- // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem
12884
- globalId += 1;
12885
- setDefaultId(`mui-${globalId}`);
12886
- }
12887
- }, [defaultId]);
12888
- return id;
12889
- }
12890
-
12891
- // See https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379 for why
12892
- const safeReact = {
12893
- ...React
12894
- };
12895
- const maybeReactUseId = safeReact.useId;
12896
-
12897
- /**
12898
- *
12899
- * @example <div id={useId()} />
12900
- * @param idOverride
12901
- * @returns {string}
12902
- */
12903
- function useId(idOverride) {
12904
- // React.useId() is only available from React 17.0.0.
12905
- if (maybeReactUseId !== undefined) {
12906
- const reactId = maybeReactUseId();
12907
- return idOverride ?? reactId;
12908
- }
12909
-
12910
- // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler
12911
- // eslint-disable-next-line react-hooks/rules-of-hooks -- `React.useId` is invariant at runtime.
12912
- return useGlobalId(idOverride);
12913
- }
12914
-
12915
12277
  // Brought from [Base UI](https://github.com/mui/base-ui/blob/master/packages/react/src/merge-props/mergeProps.ts#L119)
12916
12278
  // Use it directly from Base UI once it's a package dependency.
12917
12279
  function isEventHandler(key, value) {
@@ -14441,27 +13803,6 @@ function getReactElementRef(element) {
14441
13803
  return element?.ref || null;
14442
13804
  }
14443
13805
 
14444
- // This module is based on https://github.com/airbnb/prop-types-exact repository.
14445
- // However, in order to reduce the number of dependencies and to remove some extra safe checks
14446
- // the module was forked.
14447
-
14448
- const specialProperty = 'exact-prop: \u200b';
14449
- function exactProp(propTypes) {
14450
- if (process.env.NODE_ENV === 'production') {
14451
- return propTypes;
14452
- }
14453
- return {
14454
- ...propTypes,
14455
- [specialProperty]: props => {
14456
- const unsupportedProps = Object.keys(props).filter(prop => !propTypes.hasOwnProperty(prop));
14457
- if (unsupportedProps.length > 0) {
14458
- return new Error(`The following props are not supported: ${unsupportedProps.map(prop => `\`${prop}\``).join(', ')}. Please remove them.`);
14459
- }
14460
- return null;
14461
- }
14462
- };
14463
- }
14464
-
14465
13806
  function getContainer$1(container) {
14466
13807
  return typeof container === 'function' ? container() : container;
14467
13808
  }
@@ -15188,7 +14529,7 @@ const InputBase = /*#__PURE__*/React.forwardRef(function InputBase(inProps, ref)
15188
14529
  if (!isControlled) {
15189
14530
  const element = event.target || inputRef.current;
15190
14531
  if (element == null) {
15191
- throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: Expected valid input target. ' + 'Did you use a custom `inputComponent` and forget to forward refs? ' + 'See https://mui.com/r/input-component-ref-interface for more info.' : formatMuiErrorMessage$1(1));
14532
+ throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: Expected valid input target. ' + 'Did you use a custom `inputComponent` and forget to forward refs? ' + 'See https://mui.com/r/input-component-ref-interface for more info.' : formatMuiErrorMessage(1));
15192
14533
  }
15193
14534
  checkDirty({
15194
14535
  value: element.value
@@ -16011,85 +15352,31 @@ process.env.NODE_ENV !== "production" ? Backdrop.propTypes /* remove-proptypes *
16011
15352
  const boxClasses = generateUtilityClasses('MuiBox', ['root']);
16012
15353
 
16013
15354
  const defaultTheme = createTheme();
16014
- const Box$2 = createBox({
16015
- themeId: THEME_ID,
16016
- defaultTheme,
16017
- defaultClassName: boxClasses.root,
16018
- generateClassName: ClassNameGenerator.generate
16019
- });
16020
- process.env.NODE_ENV !== "production" ? Box$2.propTypes /* remove-proptypes */ = {
16021
- // ┌────────────────────────────── Warning ──────────────────────────────┐
16022
- // │ These PropTypes are generated from the TypeScript type definitions. │
16023
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
16024
- // └─────────────────────────────────────────────────────────────────────┘
16025
- /**
16026
- * @ignore
16027
- */
16028
- children: PropTypes.node,
16029
- /**
16030
- * The component used for the root node.
16031
- * Either a string to use a HTML element or a component.
16032
- */
16033
- component: PropTypes.elementType,
16034
- /**
16035
- * The system prop that allows defining system overrides as well as additional CSS styles.
16036
- */
16037
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
16038
- } : void 0;
16039
-
16040
- /**
16041
- * Add keys, values of `defaultProps` that does not exist in `props`
16042
- * @param defaultProps
16043
- * @param props
16044
- * @param mergeClassNameAndStyle If `true`, merges `className` and `style` props instead of overriding them.
16045
- * When `false` (default), props override defaultProps. When `true`, `className` values are concatenated
16046
- * and `style` objects are merged with props taking precedence.
16047
- * @returns resolved props
16048
- */
16049
- function resolveProps(defaultProps, props, mergeClassNameAndStyle = false) {
16050
- const output = {
16051
- ...props
16052
- };
16053
- for (const key in defaultProps) {
16054
- if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {
16055
- const propName = key;
16056
- if (propName === 'components' || propName === 'slots') {
16057
- output[propName] = {
16058
- ...defaultProps[propName],
16059
- ...output[propName]
16060
- };
16061
- } else if (propName === 'componentsProps' || propName === 'slotProps') {
16062
- const defaultSlotProps = defaultProps[propName];
16063
- const slotProps = props[propName];
16064
- if (!slotProps) {
16065
- output[propName] = defaultSlotProps || {};
16066
- } else if (!defaultSlotProps) {
16067
- output[propName] = slotProps;
16068
- } else {
16069
- output[propName] = {
16070
- ...slotProps
16071
- };
16072
- for (const slotKey in defaultSlotProps) {
16073
- if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {
16074
- const slotPropName = slotKey;
16075
- output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName], mergeClassNameAndStyle);
16076
- }
16077
- }
16078
- }
16079
- } else if (propName === 'className' && mergeClassNameAndStyle && props.className) {
16080
- output.className = clsx(defaultProps?.className, props?.className);
16081
- } else if (propName === 'style' && mergeClassNameAndStyle && props.style) {
16082
- output.style = {
16083
- ...defaultProps?.style,
16084
- ...props?.style
16085
- };
16086
- } else if (output[propName] === undefined) {
16087
- output[propName] = defaultProps[propName];
16088
- }
16089
- }
16090
- }
16091
- return output;
16092
- }
15355
+ const Box$2 = createBox({
15356
+ themeId: THEME_ID,
15357
+ defaultTheme,
15358
+ defaultClassName: boxClasses.root,
15359
+ generateClassName: ClassNameGenerator.generate
15360
+ });
15361
+ process.env.NODE_ENV !== "production" ? Box$2.propTypes /* remove-proptypes */ = {
15362
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
15363
+ // │ These PropTypes are generated from the TypeScript type definitions. │
15364
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
15365
+ // └─────────────────────────────────────────────────────────────────────┘
15366
+ /**
15367
+ * @ignore
15368
+ */
15369
+ children: PropTypes.node,
15370
+ /**
15371
+ * The component used for the root node.
15372
+ * Either a string to use a HTML element or a component.
15373
+ */
15374
+ component: PropTypes.elementType,
15375
+ /**
15376
+ * The system prop that allows defining system overrides as well as additional CSS styles.
15377
+ */
15378
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
15379
+ } : void 0;
16093
15380
 
16094
15381
  function getButtonUtilityClass(slot) {
16095
15382
  return generateUtilityClass('MuiButton', slot);
@@ -27271,8 +26558,8 @@ let DynamicColor$1 = class DynamicColor {
27271
26558
  const amNearer = this.name === nearer.name;
27272
26559
  const expansionDir = scheme.isDark ? 1 : -1;
27273
26560
  // 1st round: solve to min, each
27274
- const nContrast = nearer.contrastCurve.getContrast(scheme.contrastLevel);
27275
- const fContrast = farther.contrastCurve.getContrast(scheme.contrastLevel);
26561
+ const nContrast = nearer.contrastCurve.get(scheme.contrastLevel);
26562
+ const fContrast = farther.contrastCurve.get(scheme.contrastLevel);
27276
26563
  // If a color is good enough, it is not adjusted.
27277
26564
  // Initial and adjusted tones for `nearer`
27278
26565
  const nInitialTone = nearer.tone(scheme);
@@ -27346,7 +26633,7 @@ let DynamicColor$1 = class DynamicColor {
27346
26633
  return answer; // No adjustment for colors with no background.
27347
26634
  }
27348
26635
  const bgTone = this.background(scheme).getTone(scheme);
27349
- const desiredRatio = this.contrastCurve.getContrast(scheme.contrastLevel);
26636
+ const desiredRatio = this.contrastCurve.get(scheme.contrastLevel);
27350
26637
  if (Contrast.ratioOfTones(bgTone, answer) >= desiredRatio) ;
27351
26638
  else {
27352
26639
  // Rough improvement.
@@ -27471,7 +26758,7 @@ let DynamicColor$1 = class DynamicColor {
27471
26758
 
27472
26759
  /**
27473
26760
  * @license
27474
- * Copyright 2022 Google LLC
26761
+ * Copyright 2021 Google LLC
27475
26762
  *
27476
26763
  * Licensed under the Apache License, Version 2.0 (the "License");
27477
26764
  * you may not use this file except in compliance with the License.
@@ -27486,22 +26773,130 @@ let DynamicColor$1 = class DynamicColor {
27486
26773
  * limitations under the License.
27487
26774
  */
27488
26775
  /**
27489
- * Set of themes supported by Dynamic Color.
27490
- * Instantiate the corresponding subclass, ex. SchemeTonalSpot, to create
27491
- * colors corresponding to the theme.
26776
+ * A convenience class for retrieving colors that are constant in hue and
26777
+ * chroma, but vary in tone.
27492
26778
  */
27493
- var Variant;
27494
- (function (Variant) {
27495
- Variant[Variant["MONOCHROME"] = 0] = "MONOCHROME";
27496
- Variant[Variant["NEUTRAL"] = 1] = "NEUTRAL";
27497
- Variant[Variant["TONAL_SPOT"] = 2] = "TONAL_SPOT";
27498
- Variant[Variant["VIBRANT"] = 3] = "VIBRANT";
27499
- Variant[Variant["EXPRESSIVE"] = 4] = "EXPRESSIVE";
27500
- Variant[Variant["FIDELITY"] = 5] = "FIDELITY";
27501
- Variant[Variant["CONTENT"] = 6] = "CONTENT";
27502
- Variant[Variant["RAINBOW"] = 7] = "RAINBOW";
27503
- Variant[Variant["FRUIT_SALAD"] = 8] = "FRUIT_SALAD";
27504
- })(Variant || (Variant = {}));
26779
+ class TonalPalette {
26780
+ /**
26781
+ * @param argb ARGB representation of a color
26782
+ * @return Tones matching that color's hue and chroma.
26783
+ */
26784
+ static fromInt(argb) {
26785
+ const hct = Hct.fromInt(argb);
26786
+ return TonalPalette.fromHct(hct);
26787
+ }
26788
+ /**
26789
+ * @param hct Hct
26790
+ * @return Tones matching that color's hue and chroma.
26791
+ */
26792
+ static fromHct(hct) {
26793
+ return new TonalPalette(hct.hue, hct.chroma, hct);
26794
+ }
26795
+ /**
26796
+ * @param hue HCT hue
26797
+ * @param chroma HCT chroma
26798
+ * @return Tones matching hue and chroma.
26799
+ */
26800
+ static fromHueAndChroma(hue, chroma) {
26801
+ const keyColor = new KeyColor(hue, chroma).create();
26802
+ return new TonalPalette(hue, chroma, keyColor);
26803
+ }
26804
+ constructor(hue, chroma, keyColor) {
26805
+ this.hue = hue;
26806
+ this.chroma = chroma;
26807
+ this.keyColor = keyColor;
26808
+ this.cache = new Map();
26809
+ }
26810
+ /**
26811
+ * @param tone HCT tone, measured from 0 to 100.
26812
+ * @return ARGB representation of a color with that tone.
26813
+ */
26814
+ tone(tone) {
26815
+ let argb = this.cache.get(tone);
26816
+ if (argb === undefined) {
26817
+ argb = Hct.from(this.hue, this.chroma, tone).toInt();
26818
+ this.cache.set(tone, argb);
26819
+ }
26820
+ return argb;
26821
+ }
26822
+ /**
26823
+ * @param tone HCT tone.
26824
+ * @return HCT representation of a color with that tone.
26825
+ */
26826
+ getHct(tone) {
26827
+ return Hct.fromInt(this.tone(tone));
26828
+ }
26829
+ }
26830
+ /**
26831
+ * Key color is a color that represents the hue and chroma of a tonal palette
26832
+ */
26833
+ class KeyColor {
26834
+ constructor(hue, requestedChroma) {
26835
+ this.hue = hue;
26836
+ this.requestedChroma = requestedChroma;
26837
+ // Cache that maps tone to max chroma to avoid duplicated HCT calculation.
26838
+ this.chromaCache = new Map();
26839
+ this.maxChromaValue = 200.0;
26840
+ }
26841
+ /**
26842
+ * Creates a key color from a [hue] and a [chroma].
26843
+ * The key color is the first tone, starting from T50, matching the given hue
26844
+ * and chroma.
26845
+ *
26846
+ * @return Key color [Hct]
26847
+ */
26848
+ create() {
26849
+ // Pivot around T50 because T50 has the most chroma available, on
26850
+ // average. Thus it is most likely to have a direct answer.
26851
+ const pivotTone = 50;
26852
+ const toneStepSize = 1;
26853
+ // Epsilon to accept values slightly higher than the requested chroma.
26854
+ const epsilon = 0.01;
26855
+ // Binary search to find the tone that can provide a chroma that is closest
26856
+ // to the requested chroma.
26857
+ let lowerTone = 0;
26858
+ let upperTone = 100;
26859
+ while (lowerTone < upperTone) {
26860
+ const midTone = Math.floor((lowerTone + upperTone) / 2);
26861
+ const isAscending = this.maxChroma(midTone) < this.maxChroma(midTone + toneStepSize);
26862
+ const sufficientChroma = this.maxChroma(midTone) >= this.requestedChroma - epsilon;
26863
+ if (sufficientChroma) {
26864
+ // Either range [lowerTone, midTone] or [midTone, upperTone] has
26865
+ // the answer, so search in the range that is closer the pivot tone.
26866
+ if (Math.abs(lowerTone - pivotTone) < Math.abs(upperTone - pivotTone)) {
26867
+ upperTone = midTone;
26868
+ }
26869
+ else {
26870
+ if (lowerTone === midTone) {
26871
+ return Hct.from(this.hue, this.requestedChroma, lowerTone);
26872
+ }
26873
+ lowerTone = midTone;
26874
+ }
26875
+ }
26876
+ else {
26877
+ // As there is no sufficient chroma in the midTone, follow the direction
26878
+ // to the chroma peak.
26879
+ if (isAscending) {
26880
+ lowerTone = midTone + toneStepSize;
26881
+ }
26882
+ else {
26883
+ // Keep midTone for potential chroma peak.
26884
+ upperTone = midTone;
26885
+ }
26886
+ }
26887
+ }
26888
+ return Hct.from(this.hue, this.requestedChroma, lowerTone);
26889
+ }
26890
+ // Find the maximum chroma for a given tone
26891
+ maxChroma(tone) {
26892
+ if (this.chromaCache.has(tone)) {
26893
+ return this.chromaCache.get(tone);
26894
+ }
26895
+ const chroma = Hct.from(this.hue, this.maxChromaValue, tone).chroma;
26896
+ this.chromaCache.set(tone, chroma);
26897
+ return chroma;
26898
+ }
26899
+ }
27505
26900
 
27506
26901
  /**
27507
26902
  * @license
@@ -27520,19 +26915,20 @@ var Variant;
27520
26915
  * limitations under the License.
27521
26916
  */
27522
26917
  /**
27523
- * A class containing the contrast curve for a dynamic color on its background.
26918
+ * A class containing a value that changes with the contrast level.
27524
26919
  *
27525
- * The four values correspond to contrast requirements for contrast levels
27526
- * -1.0, 0.0, 0.5, and 1.0, respectively.
26920
+ * Usually represents the contrast requirements for a dynamic color on its
26921
+ * background. The four values correspond to values for contrast levels -1.0,
26922
+ * 0.0, 0.5, and 1.0, respectively.
27527
26923
  */
27528
26924
  class ContrastCurve {
27529
26925
  /**
27530
26926
  * Creates a `ContrastCurve` object.
27531
26927
  *
27532
- * @param low Contrast requirement for contrast level -1.0
27533
- * @param normal Contrast requirement for contrast level 0.0
27534
- * @param medium Contrast requirement for contrast level 0.5
27535
- * @param high Contrast requirement for contrast level 1.0
26928
+ * @param low Value for contrast level -1.0
26929
+ * @param normal Value for contrast level 0.0
26930
+ * @param medium Value for contrast level 0.5
26931
+ * @param high Value for contrast level 1.0
27536
26932
  */
27537
26933
  constructor(low, normal, medium, high) {
27538
26934
  this.low = low;
@@ -27541,13 +26937,13 @@ class ContrastCurve {
27541
26937
  this.high = high;
27542
26938
  }
27543
26939
  /**
27544
- * Returns the contrast ratio at a given contrast level.
26940
+ * Returns the value at a given contrast level.
27545
26941
  *
27546
- * @param contrastLevel The contrast level. 0.0 is the default (normal);
27547
- * -1.0 is the lowest; 1.0 is the highest.
27548
- * @return The contrast ratio, a number between 1.0 and 21.0.
26942
+ * @param contrastLevel The contrast level. 0.0 is the default (normal); -1.0
26943
+ * is the lowest; 1.0 is the highest.
26944
+ * @return The value. For contrast ratios, a number between 1.0 and 21.0.
27549
26945
  */
27550
- getContrast(contrastLevel) {
26946
+ get(contrastLevel) {
27551
26947
  if (contrastLevel <= -1) {
27552
26948
  return this.low;
27553
26949
  }
@@ -27623,6 +27019,40 @@ class ToneDeltaPair {
27623
27019
  }
27624
27020
  }
27625
27021
 
27022
+ /**
27023
+ * @license
27024
+ * Copyright 2022 Google LLC
27025
+ *
27026
+ * Licensed under the Apache License, Version 2.0 (the "License");
27027
+ * you may not use this file except in compliance with the License.
27028
+ * You may obtain a copy of the License at
27029
+ *
27030
+ * http://www.apache.org/licenses/LICENSE-2.0
27031
+ *
27032
+ * Unless required by applicable law or agreed to in writing, software
27033
+ * distributed under the License is distributed on an "AS IS" BASIS,
27034
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
27035
+ * See the License for the specific language governing permissions and
27036
+ * limitations under the License.
27037
+ */
27038
+ /**
27039
+ * Set of themes supported by Dynamic Color.
27040
+ * Instantiate the corresponding subclass, ex. SchemeTonalSpot, to create
27041
+ * colors corresponding to the theme.
27042
+ */
27043
+ var Variant;
27044
+ (function (Variant) {
27045
+ Variant[Variant["MONOCHROME"] = 0] = "MONOCHROME";
27046
+ Variant[Variant["NEUTRAL"] = 1] = "NEUTRAL";
27047
+ Variant[Variant["TONAL_SPOT"] = 2] = "TONAL_SPOT";
27048
+ Variant[Variant["VIBRANT"] = 3] = "VIBRANT";
27049
+ Variant[Variant["EXPRESSIVE"] = 4] = "EXPRESSIVE";
27050
+ Variant[Variant["FIDELITY"] = 5] = "FIDELITY";
27051
+ Variant[Variant["CONTENT"] = 6] = "CONTENT";
27052
+ Variant[Variant["RAINBOW"] = 7] = "RAINBOW";
27053
+ Variant[Variant["FRUIT_SALAD"] = 8] = "FRUIT_SALAD";
27054
+ })(Variant || (Variant = {}));
27055
+
27626
27056
  /**
27627
27057
  * @license
27628
27058
  * Copyright 2022 Google LLC
@@ -27670,24 +27100,6 @@ function findDesiredChromaByTone(hue, chroma, tone, byDecreasingTone) {
27670
27100
  }
27671
27101
  return answer;
27672
27102
  }
27673
- function viewingConditionsForAlbers(scheme) {
27674
- return ViewingConditions.make(
27675
- /*whitePoint=*/ undefined,
27676
- /*adaptingLuminance=*/ undefined,
27677
- /*backgroundLstar=*/ scheme.isDark ? 30 : 80,
27678
- /*surround=*/ undefined,
27679
- /*discountingIlluminant=*/ undefined);
27680
- }
27681
- function performAlbers(prealbers, scheme) {
27682
- const albersd = prealbers.inViewingConditions(viewingConditionsForAlbers(scheme));
27683
- if (DynamicColor$1.tonePrefersLightForeground(prealbers.tone) &&
27684
- !DynamicColor$1.toneAllowsLightForeground(albersd.tone)) {
27685
- return DynamicColor$1.enableLightForeground(prealbers.tone);
27686
- }
27687
- else {
27688
- return DynamicColor$1.enableLightForeground(albersd.tone);
27689
- }
27690
- }
27691
27103
  /**
27692
27104
  * DynamicColors for the colors in the Material Design system.
27693
27105
  */
@@ -27747,43 +27159,51 @@ MaterialDynamicColors.surface = DynamicColor$1.fromPalette({
27747
27159
  MaterialDynamicColors.surfaceDim = DynamicColor$1.fromPalette({
27748
27160
  name: 'surface_dim',
27749
27161
  palette: (s) => s.neutralPalette,
27750
- tone: (s) => s.isDark ? 6 : 87,
27162
+ tone: (s) => s.isDark ? 6 : new ContrastCurve(87, 87, 80, 75).get(s.contrastLevel),
27751
27163
  isBackground: true,
27752
27164
  });
27753
27165
  MaterialDynamicColors.surfaceBright = DynamicColor$1.fromPalette({
27754
27166
  name: 'surface_bright',
27755
27167
  palette: (s) => s.neutralPalette,
27756
- tone: (s) => s.isDark ? 24 : 98,
27168
+ tone: (s) => s.isDark ? new ContrastCurve(24, 24, 29, 34).get(s.contrastLevel) : 98,
27757
27169
  isBackground: true,
27758
27170
  });
27759
27171
  MaterialDynamicColors.surfaceContainerLowest = DynamicColor$1.fromPalette({
27760
27172
  name: 'surface_container_lowest',
27761
27173
  palette: (s) => s.neutralPalette,
27762
- tone: (s) => s.isDark ? 4 : 100,
27174
+ tone: (s) => s.isDark ? new ContrastCurve(4, 4, 2, 0).get(s.contrastLevel) : 100,
27763
27175
  isBackground: true,
27764
27176
  });
27765
27177
  MaterialDynamicColors.surfaceContainerLow = DynamicColor$1.fromPalette({
27766
27178
  name: 'surface_container_low',
27767
27179
  palette: (s) => s.neutralPalette,
27768
- tone: (s) => s.isDark ? 10 : 96,
27180
+ tone: (s) => s.isDark ?
27181
+ new ContrastCurve(10, 10, 11, 12).get(s.contrastLevel) :
27182
+ new ContrastCurve(96, 96, 96, 95).get(s.contrastLevel),
27769
27183
  isBackground: true,
27770
27184
  });
27771
27185
  MaterialDynamicColors.surfaceContainer = DynamicColor$1.fromPalette({
27772
27186
  name: 'surface_container',
27773
27187
  palette: (s) => s.neutralPalette,
27774
- tone: (s) => s.isDark ? 12 : 94,
27188
+ tone: (s) => s.isDark ?
27189
+ new ContrastCurve(12, 12, 16, 20).get(s.contrastLevel) :
27190
+ new ContrastCurve(94, 94, 92, 90).get(s.contrastLevel),
27775
27191
  isBackground: true,
27776
27192
  });
27777
27193
  MaterialDynamicColors.surfaceContainerHigh = DynamicColor$1.fromPalette({
27778
27194
  name: 'surface_container_high',
27779
27195
  palette: (s) => s.neutralPalette,
27780
- tone: (s) => s.isDark ? 17 : 92,
27196
+ tone: (s) => s.isDark ?
27197
+ new ContrastCurve(17, 17, 21, 25).get(s.contrastLevel) :
27198
+ new ContrastCurve(92, 92, 88, 85).get(s.contrastLevel),
27781
27199
  isBackground: true,
27782
27200
  });
27783
27201
  MaterialDynamicColors.surfaceContainerHighest = DynamicColor$1.fromPalette({
27784
27202
  name: 'surface_container_highest',
27785
27203
  palette: (s) => s.neutralPalette,
27786
- tone: (s) => s.isDark ? 22 : 90,
27204
+ tone: (s) => s.isDark ?
27205
+ new ContrastCurve(22, 22, 26, 30).get(s.contrastLevel) :
27206
+ new ContrastCurve(90, 90, 84, 80).get(s.contrastLevel),
27787
27207
  isBackground: true,
27788
27208
  });
27789
27209
  MaterialDynamicColors.onSurface = DynamicColor$1.fromPalette({
@@ -27830,7 +27250,7 @@ MaterialDynamicColors.outlineVariant = DynamicColor$1.fromPalette({
27830
27250
  palette: (s) => s.neutralVariantPalette,
27831
27251
  tone: (s) => s.isDark ? 30 : 80,
27832
27252
  background: (s) => MaterialDynamicColors.highestSurface(s),
27833
- contrastCurve: new ContrastCurve(1, 1, 3, 7),
27253
+ contrastCurve: new ContrastCurve(1, 1, 3, 4.5),
27834
27254
  });
27835
27255
  MaterialDynamicColors.shadow = DynamicColor$1.fromPalette({
27836
27256
  name: 'shadow',
@@ -27859,8 +27279,8 @@ MaterialDynamicColors.primary = DynamicColor$1.fromPalette({
27859
27279
  },
27860
27280
  isBackground: true,
27861
27281
  background: (s) => MaterialDynamicColors.highestSurface(s),
27862
- contrastCurve: new ContrastCurve(3, 4.5, 7, 11),
27863
- toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.primaryContainer, MaterialDynamicColors.primary, 15, 'nearer', false),
27282
+ contrastCurve: new ContrastCurve(3, 4.5, 7, 7),
27283
+ toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.primaryContainer, MaterialDynamicColors.primary, 10, 'nearer', false),
27864
27284
  });
27865
27285
  MaterialDynamicColors.onPrimary = DynamicColor$1.fromPalette({
27866
27286
  name: 'on_primary',
@@ -27879,7 +27299,7 @@ MaterialDynamicColors.primaryContainer = DynamicColor$1.fromPalette({
27879
27299
  palette: (s) => s.primaryPalette,
27880
27300
  tone: (s) => {
27881
27301
  if (isFidelity(s)) {
27882
- return performAlbers(s.sourceColorHct, s);
27302
+ return s.sourceColorHct.tone;
27883
27303
  }
27884
27304
  if (isMonochrome(s)) {
27885
27305
  return s.isDark ? 85 : 25;
@@ -27888,8 +27308,8 @@ MaterialDynamicColors.primaryContainer = DynamicColor$1.fromPalette({
27888
27308
  },
27889
27309
  isBackground: true,
27890
27310
  background: (s) => MaterialDynamicColors.highestSurface(s),
27891
- contrastCurve: new ContrastCurve(1, 1, 3, 7),
27892
- toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.primaryContainer, MaterialDynamicColors.primary, 15, 'nearer', false),
27311
+ contrastCurve: new ContrastCurve(1, 1, 3, 4.5),
27312
+ toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.primaryContainer, MaterialDynamicColors.primary, 10, 'nearer', false),
27893
27313
  });
27894
27314
  MaterialDynamicColors.onPrimaryContainer = DynamicColor$1.fromPalette({
27895
27315
  name: 'on_primary_container',
@@ -27901,17 +27321,17 @@ MaterialDynamicColors.onPrimaryContainer = DynamicColor$1.fromPalette({
27901
27321
  if (isMonochrome(s)) {
27902
27322
  return s.isDark ? 0 : 100;
27903
27323
  }
27904
- return s.isDark ? 90 : 10;
27324
+ return s.isDark ? 90 : 30;
27905
27325
  },
27906
27326
  background: (s) => MaterialDynamicColors.primaryContainer,
27907
- contrastCurve: new ContrastCurve(4.5, 7, 11, 21),
27327
+ contrastCurve: new ContrastCurve(3, 4.5, 7, 11),
27908
27328
  });
27909
27329
  MaterialDynamicColors.inversePrimary = DynamicColor$1.fromPalette({
27910
27330
  name: 'inverse_primary',
27911
27331
  palette: (s) => s.primaryPalette,
27912
27332
  tone: (s) => s.isDark ? 40 : 80,
27913
27333
  background: (s) => MaterialDynamicColors.inverseSurface,
27914
- contrastCurve: new ContrastCurve(3, 4.5, 7, 11),
27334
+ contrastCurve: new ContrastCurve(3, 4.5, 7, 7),
27915
27335
  });
27916
27336
  MaterialDynamicColors.secondary = DynamicColor$1.fromPalette({
27917
27337
  name: 'secondary',
@@ -27919,8 +27339,8 @@ MaterialDynamicColors.secondary = DynamicColor$1.fromPalette({
27919
27339
  tone: (s) => s.isDark ? 80 : 40,
27920
27340
  isBackground: true,
27921
27341
  background: (s) => MaterialDynamicColors.highestSurface(s),
27922
- contrastCurve: new ContrastCurve(3, 4.5, 7, 11),
27923
- toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.secondaryContainer, MaterialDynamicColors.secondary, 15, 'nearer', false),
27342
+ contrastCurve: new ContrastCurve(3, 4.5, 7, 7),
27343
+ toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.secondaryContainer, MaterialDynamicColors.secondary, 10, 'nearer', false),
27924
27344
  });
27925
27345
  MaterialDynamicColors.onSecondary = DynamicColor$1.fromPalette({
27926
27346
  name: 'on_secondary',
@@ -27947,26 +27367,27 @@ MaterialDynamicColors.secondaryContainer = DynamicColor$1.fromPalette({
27947
27367
  if (!isFidelity(s)) {
27948
27368
  return initialTone;
27949
27369
  }
27950
- let answer = findDesiredChromaByTone(s.secondaryPalette.hue, s.secondaryPalette.chroma, initialTone, s.isDark ? false : true);
27951
- answer = performAlbers(s.secondaryPalette.getHct(answer), s);
27952
- return answer;
27370
+ return findDesiredChromaByTone(s.secondaryPalette.hue, s.secondaryPalette.chroma, initialTone, s.isDark ? false : true);
27953
27371
  },
27954
27372
  isBackground: true,
27955
27373
  background: (s) => MaterialDynamicColors.highestSurface(s),
27956
- contrastCurve: new ContrastCurve(1, 1, 3, 7),
27957
- toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.secondaryContainer, MaterialDynamicColors.secondary, 15, 'nearer', false),
27374
+ contrastCurve: new ContrastCurve(1, 1, 3, 4.5),
27375
+ toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.secondaryContainer, MaterialDynamicColors.secondary, 10, 'nearer', false),
27958
27376
  });
27959
27377
  MaterialDynamicColors.onSecondaryContainer = DynamicColor$1.fromPalette({
27960
27378
  name: 'on_secondary_container',
27961
27379
  palette: (s) => s.secondaryPalette,
27962
27380
  tone: (s) => {
27963
- if (!isFidelity(s)) {
27381
+ if (isMonochrome(s)) {
27964
27382
  return s.isDark ? 90 : 10;
27965
27383
  }
27384
+ if (!isFidelity(s)) {
27385
+ return s.isDark ? 90 : 30;
27386
+ }
27966
27387
  return DynamicColor$1.foregroundTone(MaterialDynamicColors.secondaryContainer.tone(s), 4.5);
27967
27388
  },
27968
27389
  background: (s) => MaterialDynamicColors.secondaryContainer,
27969
- contrastCurve: new ContrastCurve(4.5, 7, 11, 21),
27390
+ contrastCurve: new ContrastCurve(3, 4.5, 7, 11),
27970
27391
  });
27971
27392
  MaterialDynamicColors.tertiary = DynamicColor$1.fromPalette({
27972
27393
  name: 'tertiary',
@@ -27979,8 +27400,8 @@ MaterialDynamicColors.tertiary = DynamicColor$1.fromPalette({
27979
27400
  },
27980
27401
  isBackground: true,
27981
27402
  background: (s) => MaterialDynamicColors.highestSurface(s),
27982
- contrastCurve: new ContrastCurve(3, 4.5, 7, 11),
27983
- toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.tertiaryContainer, MaterialDynamicColors.tertiary, 15, 'nearer', false),
27403
+ contrastCurve: new ContrastCurve(3, 4.5, 7, 7),
27404
+ toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.tertiaryContainer, MaterialDynamicColors.tertiary, 10, 'nearer', false),
27984
27405
  });
27985
27406
  MaterialDynamicColors.onTertiary = DynamicColor$1.fromPalette({
27986
27407
  name: 'on_tertiary',
@@ -28004,14 +27425,13 @@ MaterialDynamicColors.tertiaryContainer = DynamicColor$1.fromPalette({
28004
27425
  if (!isFidelity(s)) {
28005
27426
  return s.isDark ? 30 : 90;
28006
27427
  }
28007
- const albersTone = performAlbers(s.tertiaryPalette.getHct(s.sourceColorHct.tone), s);
28008
- const proposedHct = s.tertiaryPalette.getHct(albersTone);
27428
+ const proposedHct = s.tertiaryPalette.getHct(s.sourceColorHct.tone);
28009
27429
  return DislikeAnalyzer.fixIfDisliked(proposedHct).tone;
28010
27430
  },
28011
27431
  isBackground: true,
28012
27432
  background: (s) => MaterialDynamicColors.highestSurface(s),
28013
- contrastCurve: new ContrastCurve(1, 1, 3, 7),
28014
- toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.tertiaryContainer, MaterialDynamicColors.tertiary, 15, 'nearer', false),
27433
+ contrastCurve: new ContrastCurve(1, 1, 3, 4.5),
27434
+ toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.tertiaryContainer, MaterialDynamicColors.tertiary, 10, 'nearer', false),
28015
27435
  });
28016
27436
  MaterialDynamicColors.onTertiaryContainer = DynamicColor$1.fromPalette({
28017
27437
  name: 'on_tertiary_container',
@@ -28021,12 +27441,12 @@ MaterialDynamicColors.onTertiaryContainer = DynamicColor$1.fromPalette({
28021
27441
  return s.isDark ? 0 : 100;
28022
27442
  }
28023
27443
  if (!isFidelity(s)) {
28024
- return s.isDark ? 90 : 10;
27444
+ return s.isDark ? 90 : 30;
28025
27445
  }
28026
27446
  return DynamicColor$1.foregroundTone(MaterialDynamicColors.tertiaryContainer.tone(s), 4.5);
28027
27447
  },
28028
27448
  background: (s) => MaterialDynamicColors.tertiaryContainer,
28029
- contrastCurve: new ContrastCurve(4.5, 7, 11, 21),
27449
+ contrastCurve: new ContrastCurve(3, 4.5, 7, 11),
28030
27450
  });
28031
27451
  MaterialDynamicColors.error = DynamicColor$1.fromPalette({
28032
27452
  name: 'error',
@@ -28034,8 +27454,8 @@ MaterialDynamicColors.error = DynamicColor$1.fromPalette({
28034
27454
  tone: (s) => s.isDark ? 80 : 40,
28035
27455
  isBackground: true,
28036
27456
  background: (s) => MaterialDynamicColors.highestSurface(s),
28037
- contrastCurve: new ContrastCurve(3, 4.5, 7, 11),
28038
- toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.errorContainer, MaterialDynamicColors.error, 15, 'nearer', false),
27457
+ contrastCurve: new ContrastCurve(3, 4.5, 7, 7),
27458
+ toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.errorContainer, MaterialDynamicColors.error, 10, 'nearer', false),
28039
27459
  });
28040
27460
  MaterialDynamicColors.onError = DynamicColor$1.fromPalette({
28041
27461
  name: 'on_error',
@@ -28050,15 +27470,20 @@ MaterialDynamicColors.errorContainer = DynamicColor$1.fromPalette({
28050
27470
  tone: (s) => s.isDark ? 30 : 90,
28051
27471
  isBackground: true,
28052
27472
  background: (s) => MaterialDynamicColors.highestSurface(s),
28053
- contrastCurve: new ContrastCurve(1, 1, 3, 7),
28054
- toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.errorContainer, MaterialDynamicColors.error, 15, 'nearer', false),
27473
+ contrastCurve: new ContrastCurve(1, 1, 3, 4.5),
27474
+ toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.errorContainer, MaterialDynamicColors.error, 10, 'nearer', false),
28055
27475
  });
28056
27476
  MaterialDynamicColors.onErrorContainer = DynamicColor$1.fromPalette({
28057
27477
  name: 'on_error_container',
28058
27478
  palette: (s) => s.errorPalette,
28059
- tone: (s) => s.isDark ? 90 : 10,
27479
+ tone: (s) => {
27480
+ if (isMonochrome(s)) {
27481
+ return s.isDark ? 90 : 10;
27482
+ }
27483
+ return s.isDark ? 90 : 30;
27484
+ },
28060
27485
  background: (s) => MaterialDynamicColors.errorContainer,
28061
- contrastCurve: new ContrastCurve(4.5, 7, 11, 21),
27486
+ contrastCurve: new ContrastCurve(3, 4.5, 7, 11),
28062
27487
  });
28063
27488
  MaterialDynamicColors.primaryFixed = DynamicColor$1.fromPalette({
28064
27489
  name: 'primary_fixed',
@@ -28066,7 +27491,7 @@ MaterialDynamicColors.primaryFixed = DynamicColor$1.fromPalette({
28066
27491
  tone: (s) => isMonochrome(s) ? 40.0 : 90.0,
28067
27492
  isBackground: true,
28068
27493
  background: (s) => MaterialDynamicColors.highestSurface(s),
28069
- contrastCurve: new ContrastCurve(1, 1, 3, 7),
27494
+ contrastCurve: new ContrastCurve(1, 1, 3, 4.5),
28070
27495
  toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.primaryFixed, MaterialDynamicColors.primaryFixedDim, 10, 'lighter', true),
28071
27496
  });
28072
27497
  MaterialDynamicColors.primaryFixedDim = DynamicColor$1.fromPalette({
@@ -28075,7 +27500,7 @@ MaterialDynamicColors.primaryFixedDim = DynamicColor$1.fromPalette({
28075
27500
  tone: (s) => isMonochrome(s) ? 30.0 : 80.0,
28076
27501
  isBackground: true,
28077
27502
  background: (s) => MaterialDynamicColors.highestSurface(s),
28078
- contrastCurve: new ContrastCurve(1, 1, 3, 7),
27503
+ contrastCurve: new ContrastCurve(1, 1, 3, 4.5),
28079
27504
  toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.primaryFixed, MaterialDynamicColors.primaryFixedDim, 10, 'lighter', true),
28080
27505
  });
28081
27506
  MaterialDynamicColors.onPrimaryFixed = DynamicColor$1.fromPalette({
@@ -28100,7 +27525,7 @@ MaterialDynamicColors.secondaryFixed = DynamicColor$1.fromPalette({
28100
27525
  tone: (s) => isMonochrome(s) ? 80.0 : 90.0,
28101
27526
  isBackground: true,
28102
27527
  background: (s) => MaterialDynamicColors.highestSurface(s),
28103
- contrastCurve: new ContrastCurve(1, 1, 3, 7),
27528
+ contrastCurve: new ContrastCurve(1, 1, 3, 4.5),
28104
27529
  toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.secondaryFixed, MaterialDynamicColors.secondaryFixedDim, 10, 'lighter', true),
28105
27530
  });
28106
27531
  MaterialDynamicColors.secondaryFixedDim = DynamicColor$1.fromPalette({
@@ -28109,7 +27534,7 @@ MaterialDynamicColors.secondaryFixedDim = DynamicColor$1.fromPalette({
28109
27534
  tone: (s) => isMonochrome(s) ? 70.0 : 80.0,
28110
27535
  isBackground: true,
28111
27536
  background: (s) => MaterialDynamicColors.highestSurface(s),
28112
- contrastCurve: new ContrastCurve(1, 1, 3, 7),
27537
+ contrastCurve: new ContrastCurve(1, 1, 3, 4.5),
28113
27538
  toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.secondaryFixed, MaterialDynamicColors.secondaryFixedDim, 10, 'lighter', true),
28114
27539
  });
28115
27540
  MaterialDynamicColors.onSecondaryFixed = DynamicColor$1.fromPalette({
@@ -28134,7 +27559,7 @@ MaterialDynamicColors.tertiaryFixed = DynamicColor$1.fromPalette({
28134
27559
  tone: (s) => isMonochrome(s) ? 40.0 : 90.0,
28135
27560
  isBackground: true,
28136
27561
  background: (s) => MaterialDynamicColors.highestSurface(s),
28137
- contrastCurve: new ContrastCurve(1, 1, 3, 7),
27562
+ contrastCurve: new ContrastCurve(1, 1, 3, 4.5),
28138
27563
  toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.tertiaryFixed, MaterialDynamicColors.tertiaryFixedDim, 10, 'lighter', true),
28139
27564
  });
28140
27565
  MaterialDynamicColors.tertiaryFixedDim = DynamicColor$1.fromPalette({
@@ -28143,7 +27568,7 @@ MaterialDynamicColors.tertiaryFixedDim = DynamicColor$1.fromPalette({
28143
27568
  tone: (s) => isMonochrome(s) ? 30.0 : 80.0,
28144
27569
  isBackground: true,
28145
27570
  background: (s) => MaterialDynamicColors.highestSurface(s),
28146
- contrastCurve: new ContrastCurve(1, 1, 3, 7),
27571
+ contrastCurve: new ContrastCurve(1, 1, 3, 4.5),
28147
27572
  toneDeltaPair: (s) => new ToneDeltaPair(MaterialDynamicColors.tertiaryFixed, MaterialDynamicColors.tertiaryFixedDim, 10, 'lighter', true),
28148
27573
  });
28149
27574
  MaterialDynamicColors.onTertiaryFixed = DynamicColor$1.fromPalette({
@@ -28163,110 +27588,6 @@ MaterialDynamicColors.onTertiaryFixedVariant = DynamicColor$1.fromPalette({
28163
27588
  contrastCurve: new ContrastCurve(3, 4.5, 7, 11),
28164
27589
  });
28165
27590
 
28166
- /**
28167
- * @license
28168
- * Copyright 2021 Google LLC
28169
- *
28170
- * Licensed under the Apache License, Version 2.0 (the "License");
28171
- * you may not use this file except in compliance with the License.
28172
- * You may obtain a copy of the License at
28173
- *
28174
- * http://www.apache.org/licenses/LICENSE-2.0
28175
- *
28176
- * Unless required by applicable law or agreed to in writing, software
28177
- * distributed under the License is distributed on an "AS IS" BASIS,
28178
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28179
- * See the License for the specific language governing permissions and
28180
- * limitations under the License.
28181
- */
28182
- /**
28183
- * A convenience class for retrieving colors that are constant in hue and
28184
- * chroma, but vary in tone.
28185
- */
28186
- class TonalPalette {
28187
- /**
28188
- * @param argb ARGB representation of a color
28189
- * @return Tones matching that color's hue and chroma.
28190
- */
28191
- static fromInt(argb) {
28192
- const hct = Hct.fromInt(argb);
28193
- return TonalPalette.fromHct(hct);
28194
- }
28195
- /**
28196
- * @param hct Hct
28197
- * @return Tones matching that color's hue and chroma.
28198
- */
28199
- static fromHct(hct) {
28200
- return new TonalPalette(hct.hue, hct.chroma, hct);
28201
- }
28202
- /**
28203
- * @param hue HCT hue
28204
- * @param chroma HCT chroma
28205
- * @return Tones matching hue and chroma.
28206
- */
28207
- static fromHueAndChroma(hue, chroma) {
28208
- return new TonalPalette(hue, chroma, TonalPalette.createKeyColor(hue, chroma));
28209
- }
28210
- constructor(hue, chroma, keyColor) {
28211
- this.hue = hue;
28212
- this.chroma = chroma;
28213
- this.keyColor = keyColor;
28214
- this.cache = new Map();
28215
- }
28216
- static createKeyColor(hue, chroma) {
28217
- const startTone = 50.0;
28218
- let smallestDeltaHct = Hct.from(hue, chroma, startTone);
28219
- let smallestDelta = Math.abs(smallestDeltaHct.chroma - chroma);
28220
- // Starting from T50, check T+/-delta to see if they match the requested
28221
- // chroma.
28222
- //
28223
- // Starts from T50 because T50 has the most chroma available, on
28224
- // average. Thus it is most likely to have a direct answer and minimize
28225
- // iteration.
28226
- for (let delta = 1.0; delta < 50.0; delta += 1.0) {
28227
- // Termination condition rounding instead of minimizing delta to avoid
28228
- // case where requested chroma is 16.51, and the closest chroma is 16.49.
28229
- // Error is minimized, but when rounded and displayed, requested chroma
28230
- // is 17, key color's chroma is 16.
28231
- if (Math.round(chroma) === Math.round(smallestDeltaHct.chroma)) {
28232
- return smallestDeltaHct;
28233
- }
28234
- const hctAdd = Hct.from(hue, chroma, startTone + delta);
28235
- const hctAddDelta = Math.abs(hctAdd.chroma - chroma);
28236
- if (hctAddDelta < smallestDelta) {
28237
- smallestDelta = hctAddDelta;
28238
- smallestDeltaHct = hctAdd;
28239
- }
28240
- const hctSubtract = Hct.from(hue, chroma, startTone - delta);
28241
- const hctSubtractDelta = Math.abs(hctSubtract.chroma - chroma);
28242
- if (hctSubtractDelta < smallestDelta) {
28243
- smallestDelta = hctSubtractDelta;
28244
- smallestDeltaHct = hctSubtract;
28245
- }
28246
- }
28247
- return smallestDeltaHct;
28248
- }
28249
- /**
28250
- * @param tone HCT tone, measured from 0 to 100.
28251
- * @return ARGB representation of a color with that tone.
28252
- */
28253
- tone(tone) {
28254
- let argb = this.cache.get(tone);
28255
- if (argb === undefined) {
28256
- argb = Hct.from(this.hue, this.chroma, tone).toInt();
28257
- this.cache.set(tone, argb);
28258
- }
28259
- return argb;
28260
- }
28261
- /**
28262
- * @param tone HCT tone.
28263
- * @return HCT representation of a color with that tone.
28264
- */
28265
- getHct(tone) {
28266
- return Hct.fromInt(this.tone(tone));
28267
- }
28268
- }
28269
-
28270
27591
  /**
28271
27592
  * @license
28272
27593
  * Copyright 2021 Google LLC
@@ -29101,6 +28422,11 @@ class QuantizerCelebi {
29101
28422
  */
29102
28423
  // This file is automatically generated. Do not modify it.
29103
28424
  /**
28425
+ * DEPRECATED. The `Scheme` class is deprecated in favor of `DynamicScheme`.
28426
+ * Please see
28427
+ * https://github.com/material-foundation/material-color-utilities/blob/main/make_schemes.md
28428
+ * for migration guidance.
28429
+ *
29104
28430
  * Represents a Material color scheme, a mapping of color roles to colors.
29105
28431
  */
29106
28432
  class Scheme {
@@ -29499,7 +28825,7 @@ async function sourceColorFromImage(image) {
29499
28825
  reject(new Error('Could not get canvas context'));
29500
28826
  return;
29501
28827
  }
29502
- const callback = () => {
28828
+ const loadCallback = () => {
29503
28829
  canvas.width = image.width;
29504
28830
  canvas.height = image.height;
29505
28831
  context.drawImage(image, 0, 0);
@@ -29514,11 +28840,15 @@ async function sourceColorFromImage(image) {
29514
28840
  const [sx, sy, sw, sh] = rect;
29515
28841
  resolve(context.getImageData(sx, sy, sw, sh).data);
29516
28842
  };
28843
+ const errorCallback = () => {
28844
+ reject(new Error('Image load failed'));
28845
+ };
29517
28846
  if (image.complete) {
29518
- callback();
28847
+ loadCallback();
29519
28848
  }
29520
28849
  else {
29521
- image.onload = callback;
28850
+ image.onload = loadCallback;
28851
+ image.onerror = errorCallback;
29522
28852
  }
29523
28853
  });
29524
28854
  // Convert Image data to Pixel Array
@@ -29631,17 +28961,17 @@ function customColor(source, color) {
29631
28961
  }
29632
28962
 
29633
28963
  var DynamicColor = /*#__PURE__*/function () {
29634
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(src) {
28964
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(src) {
29635
28965
  var imageElement, dynamicPalette, extractHctInstance, _dynamicPalette$palet, primary, secondary, _dynamicPalette$schem, dark, light, primaryMain, secondaryMain, primaryLight, primaryDark, secondaryLight, secondaryDark, primaryColor, secondaryColor, backgroundColor;
29636
- return _regeneratorRuntime().wrap(function _callee$(_context) {
29637
- while (1) switch (_context.prev = _context.next) {
28966
+ return _regenerator().w(function (_context) {
28967
+ while (1) switch (_context.n) {
29638
28968
  case 0:
29639
28969
  imageElement = document.createElement("img");
29640
28970
  imageElement.src = src;
29641
- _context.next = 4;
28971
+ _context.n = 1;
29642
28972
  return themeFromImage(imageElement);
29643
- case 4:
29644
- dynamicPalette = _context.sent;
28973
+ case 1:
28974
+ dynamicPalette = _context.v;
29645
28975
  extractHctInstance = function extractHctInstance(color) {
29646
28976
  var _color$keyColor = color.keyColor,
29647
28977
  hue = _color$keyColor.hue,
@@ -29673,14 +29003,11 @@ var DynamicColor = /*#__PURE__*/function () {
29673
29003
  "default": alpha(primaryMain, 0.1),
29674
29004
  paper: "#fff"
29675
29005
  };
29676
- return _context.abrupt("return", {
29006
+ return _context.a(2, {
29677
29007
  primaryColor: primaryColor,
29678
29008
  secondaryColor: secondaryColor,
29679
29009
  backgroundColor: backgroundColor
29680
29010
  });
29681
- case 18:
29682
- case "end":
29683
- return _context.stop();
29684
29011
  }
29685
29012
  }, _callee);
29686
29013
  }));