@protonradio/proton-ui 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1507 +1,5 @@
1
- function Kn(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
- }
4
- var ir = { exports: {} }, nt = {}, sr = { exports: {} }, x = {};
5
- /**
6
- * @license React
7
- * react.production.min.js
8
- *
9
- * Copyright (c) Facebook, Inc. and its affiliates.
10
- *
11
- * This source code is licensed under the MIT license found in the
12
- * LICENSE file in the root directory of this source tree.
13
- */
14
- var Wr;
15
- function Un() {
16
- if (Wr)
17
- return x;
18
- Wr = 1;
19
- var t = Symbol.for("react.element"), r = Symbol.for("react.portal"), o = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), b = Symbol.for("react.provider"), v = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), W = Symbol.for("react.memo"), I = Symbol.for("react.lazy"), re = Symbol.iterator;
20
- function ce(i) {
21
- return i === null || typeof i != "object" ? null : (i = re && i[re] || i["@@iterator"], typeof i == "function" ? i : null);
22
- }
23
- var fe = { isMounted: function() {
24
- return !1;
25
- }, enqueueForceUpdate: function() {
26
- }, enqueueReplaceState: function() {
27
- }, enqueueSetState: function() {
28
- } }, ve = Object.assign, ye = {};
29
- function ne(i, h, S) {
30
- this.props = i, this.context = h, this.refs = ye, this.updater = S || fe;
31
- }
32
- ne.prototype.isReactComponent = {}, ne.prototype.setState = function(i, h) {
33
- if (typeof i != "object" && typeof i != "function" && i != null)
34
- throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
35
- this.updater.enqueueSetState(this, i, h, "setState");
36
- }, ne.prototype.forceUpdate = function(i) {
37
- this.updater.enqueueForceUpdate(this, i, "forceUpdate");
38
- };
39
- function ae() {
40
- }
41
- ae.prototype = ne.prototype;
42
- function L(i, h, S) {
43
- this.props = i, this.context = h, this.refs = ye, this.updater = S || fe;
44
- }
45
- var X = L.prototype = new ae();
46
- X.constructor = L, ve(X, ne.prototype), X.isPureReactComponent = !0;
47
- var oe = Array.isArray, K = Object.prototype.hasOwnProperty, ie = { current: null }, he = { key: !0, ref: !0, __self: !0, __source: !0 };
48
- function u(i, h, S) {
49
- var N, D = {}, G = null, q = null;
50
- if (h != null)
51
- for (N in h.ref !== void 0 && (q = h.ref), h.key !== void 0 && (G = "" + h.key), h)
52
- K.call(h, N) && !he.hasOwnProperty(N) && (D[N] = h[N]);
53
- var H = arguments.length - 2;
54
- if (H === 1)
55
- D.children = S;
56
- else if (1 < H) {
57
- for (var Y = Array(H), le = 0; le < H; le++)
58
- Y[le] = arguments[le + 2];
59
- D.children = Y;
60
- }
61
- if (i && i.defaultProps)
62
- for (N in H = i.defaultProps, H)
63
- D[N] === void 0 && (D[N] = H[N]);
64
- return { $$typeof: t, type: i, key: G, ref: q, props: D, _owner: ie.current };
65
- }
66
- function O(i, h) {
67
- return { $$typeof: t, type: i.type, key: h, ref: i.ref, props: i.props, _owner: i._owner };
68
- }
69
- function ue(i) {
70
- return typeof i == "object" && i !== null && i.$$typeof === t;
71
- }
72
- function E(i) {
73
- var h = { "=": "=0", ":": "=2" };
74
- return "$" + i.replace(/[=:]/g, function(S) {
75
- return h[S];
76
- });
77
- }
78
- var V = /\/+/g;
79
- function d(i, h) {
80
- return typeof i == "object" && i !== null && i.key != null ? E("" + i.key) : h.toString(36);
81
- }
82
- function g(i, h, S, N, D) {
83
- var G = typeof i;
84
- (G === "undefined" || G === "boolean") && (i = null);
85
- var q = !1;
86
- if (i === null)
87
- q = !0;
88
- else
89
- switch (G) {
90
- case "string":
91
- case "number":
92
- q = !0;
93
- break;
94
- case "object":
95
- switch (i.$$typeof) {
96
- case t:
97
- case r:
98
- q = !0;
99
- }
100
- }
101
- if (q)
102
- return q = i, D = D(q), i = N === "" ? "." + d(q, 0) : N, oe(D) ? (S = "", i != null && (S = i.replace(V, "$&/") + "/"), g(D, h, S, "", function(le) {
103
- return le;
104
- })) : D != null && (ue(D) && (D = O(D, S + (!D.key || q && q.key === D.key ? "" : ("" + D.key).replace(V, "$&/") + "/") + i)), h.push(D)), 1;
105
- if (q = 0, N = N === "" ? "." : N + ":", oe(i))
106
- for (var H = 0; H < i.length; H++) {
107
- G = i[H];
108
- var Y = N + d(G, H);
109
- q += g(G, h, S, Y, D);
110
- }
111
- else if (Y = ce(i), typeof Y == "function")
112
- for (i = Y.call(i), H = 0; !(G = i.next()).done; )
113
- G = G.value, Y = N + d(G, H++), q += g(G, h, S, Y, D);
114
- else if (G === "object")
115
- throw h = String(i), Error("Objects are not valid as a React child (found: " + (h === "[object Object]" ? "object with keys {" + Object.keys(i).join(", ") + "}" : h) + "). If you meant to render a collection of children, use an array instead.");
116
- return q;
117
- }
118
- function A(i, h, S) {
119
- if (i == null)
120
- return i;
121
- var N = [], D = 0;
122
- return g(i, N, "", "", function(G) {
123
- return h.call(S, G, D++);
124
- }), N;
125
- }
126
- function be(i) {
127
- if (i._status === -1) {
128
- var h = i._result;
129
- h = h(), h.then(function(S) {
130
- (i._status === 0 || i._status === -1) && (i._status = 1, i._result = S);
131
- }, function(S) {
132
- (i._status === 0 || i._status === -1) && (i._status = 2, i._result = S);
133
- }), i._status === -1 && (i._status = 0, i._result = h);
134
- }
135
- if (i._status === 1)
136
- return i._result.default;
137
- throw i._result;
138
- }
139
- var $ = { current: null }, Ee = { transition: null }, Oe = { ReactCurrentDispatcher: $, ReactCurrentBatchConfig: Ee, ReactCurrentOwner: ie };
140
- return x.Children = { map: A, forEach: function(i, h, S) {
141
- A(i, function() {
142
- h.apply(this, arguments);
143
- }, S);
144
- }, count: function(i) {
145
- var h = 0;
146
- return A(i, function() {
147
- h++;
148
- }), h;
149
- }, toArray: function(i) {
150
- return A(i, function(h) {
151
- return h;
152
- }) || [];
153
- }, only: function(i) {
154
- if (!ue(i))
155
- throw Error("React.Children.only expected to receive a single React element child.");
156
- return i;
157
- } }, x.Component = ne, x.Fragment = o, x.Profiler = f, x.PureComponent = L, x.StrictMode = l, x.Suspense = T, x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Oe, x.cloneElement = function(i, h, S) {
158
- if (i == null)
159
- throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + i + ".");
160
- var N = ve({}, i.props), D = i.key, G = i.ref, q = i._owner;
161
- if (h != null) {
162
- if (h.ref !== void 0 && (G = h.ref, q = ie.current), h.key !== void 0 && (D = "" + h.key), i.type && i.type.defaultProps)
163
- var H = i.type.defaultProps;
164
- for (Y in h)
165
- K.call(h, Y) && !he.hasOwnProperty(Y) && (N[Y] = h[Y] === void 0 && H !== void 0 ? H[Y] : h[Y]);
166
- }
167
- var Y = arguments.length - 2;
168
- if (Y === 1)
169
- N.children = S;
170
- else if (1 < Y) {
171
- H = Array(Y);
172
- for (var le = 0; le < Y; le++)
173
- H[le] = arguments[le + 2];
174
- N.children = H;
175
- }
176
- return { $$typeof: t, type: i.type, key: D, ref: G, props: N, _owner: q };
177
- }, x.createContext = function(i) {
178
- return i = { $$typeof: v, _currentValue: i, _currentValue2: i, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, i.Provider = { $$typeof: b, _context: i }, i.Consumer = i;
179
- }, x.createElement = u, x.createFactory = function(i) {
180
- var h = u.bind(null, i);
181
- return h.type = i, h;
182
- }, x.createRef = function() {
183
- return { current: null };
184
- }, x.forwardRef = function(i) {
185
- return { $$typeof: C, render: i };
186
- }, x.isValidElement = ue, x.lazy = function(i) {
187
- return { $$typeof: I, _payload: { _status: -1, _result: i }, _init: be };
188
- }, x.memo = function(i, h) {
189
- return { $$typeof: W, type: i, compare: h === void 0 ? null : h };
190
- }, x.startTransition = function(i) {
191
- var h = Ee.transition;
192
- Ee.transition = {};
193
- try {
194
- i();
195
- } finally {
196
- Ee.transition = h;
197
- }
198
- }, x.unstable_act = function() {
199
- throw Error("act(...) is not supported in production builds of React.");
200
- }, x.useCallback = function(i, h) {
201
- return $.current.useCallback(i, h);
202
- }, x.useContext = function(i) {
203
- return $.current.useContext(i);
204
- }, x.useDebugValue = function() {
205
- }, x.useDeferredValue = function(i) {
206
- return $.current.useDeferredValue(i);
207
- }, x.useEffect = function(i, h) {
208
- return $.current.useEffect(i, h);
209
- }, x.useId = function() {
210
- return $.current.useId();
211
- }, x.useImperativeHandle = function(i, h, S) {
212
- return $.current.useImperativeHandle(i, h, S);
213
- }, x.useInsertionEffect = function(i, h) {
214
- return $.current.useInsertionEffect(i, h);
215
- }, x.useLayoutEffect = function(i, h) {
216
- return $.current.useLayoutEffect(i, h);
217
- }, x.useMemo = function(i, h) {
218
- return $.current.useMemo(i, h);
219
- }, x.useReducer = function(i, h, S) {
220
- return $.current.useReducer(i, h, S);
221
- }, x.useRef = function(i) {
222
- return $.current.useRef(i);
223
- }, x.useState = function(i) {
224
- return $.current.useState(i);
225
- }, x.useSyncExternalStore = function(i, h, S) {
226
- return $.current.useSyncExternalStore(i, h, S);
227
- }, x.useTransition = function() {
228
- return $.current.useTransition();
229
- }, x.version = "18.2.0", x;
230
- }
231
- var it = { exports: {} };
232
- /**
233
- * @license React
234
- * react.development.js
235
- *
236
- * Copyright (c) Facebook, Inc. and its affiliates.
237
- *
238
- * This source code is licensed under the MIT license found in the
239
- * LICENSE file in the root directory of this source tree.
240
- */
241
- it.exports;
242
- var Kr;
243
- function Vn() {
244
- return Kr || (Kr = 1, function(t, r) {
245
- process.env.NODE_ENV !== "production" && function() {
246
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
247
- var o = "18.2.0", l = Symbol.for("react.element"), f = Symbol.for("react.portal"), b = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), W = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), re = Symbol.for("react.suspense"), ce = Symbol.for("react.suspense_list"), fe = Symbol.for("react.memo"), ve = Symbol.for("react.lazy"), ye = Symbol.for("react.offscreen"), ne = Symbol.iterator, ae = "@@iterator";
248
- function L(e) {
249
- if (e === null || typeof e != "object")
250
- return null;
251
- var n = ne && e[ne] || e[ae];
252
- return typeof n == "function" ? n : null;
253
- }
254
- var X = {
255
- /**
256
- * @internal
257
- * @type {ReactComponent}
258
- */
259
- current: null
260
- }, oe = {
261
- transition: null
262
- }, K = {
263
- current: null,
264
- // Used to reproduce behavior of `batchedUpdates` in legacy mode.
265
- isBatchingLegacy: !1,
266
- didScheduleLegacyUpdate: !1
267
- }, ie = {
268
- /**
269
- * @internal
270
- * @type {ReactComponent}
271
- */
272
- current: null
273
- }, he = {}, u = null;
274
- function O(e) {
275
- u = e;
276
- }
277
- he.setExtraStackFrame = function(e) {
278
- u = e;
279
- }, he.getCurrentStack = null, he.getStackAddendum = function() {
280
- var e = "";
281
- u && (e += u);
282
- var n = he.getCurrentStack;
283
- return n && (e += n() || ""), e;
284
- };
285
- var ue = !1, E = !1, V = !1, d = !1, g = !1, A = {
286
- ReactCurrentDispatcher: X,
287
- ReactCurrentBatchConfig: oe,
288
- ReactCurrentOwner: ie
289
- };
290
- A.ReactDebugCurrentFrame = he, A.ReactCurrentActQueue = K;
291
- function be(e) {
292
- {
293
- for (var n = arguments.length, s = new Array(n > 1 ? n - 1 : 0), c = 1; c < n; c++)
294
- s[c - 1] = arguments[c];
295
- Ee("warn", e, s);
296
- }
297
- }
298
- function $(e) {
299
- {
300
- for (var n = arguments.length, s = new Array(n > 1 ? n - 1 : 0), c = 1; c < n; c++)
301
- s[c - 1] = arguments[c];
302
- Ee("error", e, s);
303
- }
304
- }
305
- function Ee(e, n, s) {
306
- {
307
- var c = A.ReactDebugCurrentFrame, y = c.getStackAddendum();
308
- y !== "" && (n += "%s", s = s.concat([y]));
309
- var w = s.map(function(P) {
310
- return String(P);
311
- });
312
- w.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, w);
313
- }
314
- }
315
- var Oe = {};
316
- function i(e, n) {
317
- {
318
- var s = e.constructor, c = s && (s.displayName || s.name) || "ReactClass", y = c + "." + n;
319
- if (Oe[y])
320
- return;
321
- $("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", n, c), Oe[y] = !0;
322
- }
323
- }
324
- var h = {
325
- /**
326
- * Checks whether or not this composite component is mounted.
327
- * @param {ReactClass} publicInstance The instance we want to test.
328
- * @return {boolean} True if mounted, false otherwise.
329
- * @protected
330
- * @final
331
- */
332
- isMounted: function(e) {
333
- return !1;
334
- },
335
- /**
336
- * Forces an update. This should only be invoked when it is known with
337
- * certainty that we are **not** in a DOM transaction.
338
- *
339
- * You may want to call this when you know that some deeper aspect of the
340
- * component's state has changed but `setState` was not called.
341
- *
342
- * This will not invoke `shouldComponentUpdate`, but it will invoke
343
- * `componentWillUpdate` and `componentDidUpdate`.
344
- *
345
- * @param {ReactClass} publicInstance The instance that should rerender.
346
- * @param {?function} callback Called after component is updated.
347
- * @param {?string} callerName name of the calling function in the public API.
348
- * @internal
349
- */
350
- enqueueForceUpdate: function(e, n, s) {
351
- i(e, "forceUpdate");
352
- },
353
- /**
354
- * Replaces all of the state. Always use this or `setState` to mutate state.
355
- * You should treat `this.state` as immutable.
356
- *
357
- * There is no guarantee that `this.state` will be immediately updated, so
358
- * accessing `this.state` after calling this method may return the old value.
359
- *
360
- * @param {ReactClass} publicInstance The instance that should rerender.
361
- * @param {object} completeState Next state.
362
- * @param {?function} callback Called after component is updated.
363
- * @param {?string} callerName name of the calling function in the public API.
364
- * @internal
365
- */
366
- enqueueReplaceState: function(e, n, s, c) {
367
- i(e, "replaceState");
368
- },
369
- /**
370
- * Sets a subset of the state. This only exists because _pendingState is
371
- * internal. This provides a merging strategy that is not available to deep
372
- * properties which is confusing. TODO: Expose pendingState or don't use it
373
- * during the merge.
374
- *
375
- * @param {ReactClass} publicInstance The instance that should rerender.
376
- * @param {object} partialState Next partial state to be merged with state.
377
- * @param {?function} callback Called after component is updated.
378
- * @param {?string} Name of the calling function in the public API.
379
- * @internal
380
- */
381
- enqueueSetState: function(e, n, s, c) {
382
- i(e, "setState");
383
- }
384
- }, S = Object.assign, N = {};
385
- Object.freeze(N);
386
- function D(e, n, s) {
387
- this.props = e, this.context = n, this.refs = N, this.updater = s || h;
388
- }
389
- D.prototype.isReactComponent = {}, D.prototype.setState = function(e, n) {
390
- if (typeof e != "object" && typeof e != "function" && e != null)
391
- throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
392
- this.updater.enqueueSetState(this, e, n, "setState");
393
- }, D.prototype.forceUpdate = function(e) {
394
- this.updater.enqueueForceUpdate(this, e, "forceUpdate");
395
- };
396
- {
397
- var G = {
398
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
399
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
400
- }, q = function(e, n) {
401
- Object.defineProperty(D.prototype, e, {
402
- get: function() {
403
- be("%s(...) is deprecated in plain JavaScript React classes. %s", n[0], n[1]);
404
- }
405
- });
406
- };
407
- for (var H in G)
408
- G.hasOwnProperty(H) && q(H, G[H]);
409
- }
410
- function Y() {
411
- }
412
- Y.prototype = D.prototype;
413
- function le(e, n, s) {
414
- this.props = e, this.context = n, this.refs = N, this.updater = s || h;
415
- }
416
- var $e = le.prototype = new Y();
417
- $e.constructor = le, S($e, D.prototype), $e.isPureReactComponent = !0;
418
- function jt() {
419
- var e = {
420
- current: null
421
- };
422
- return Object.seal(e), e;
423
- }
424
- var ct = Array.isArray;
425
- function Ue(e) {
426
- return ct(e);
427
- }
428
- function Mt(e) {
429
- {
430
- var n = typeof Symbol == "function" && Symbol.toStringTag, s = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
431
- return s;
432
- }
433
- }
434
- function Ve(e) {
435
- try {
436
- return ke(e), !1;
437
- } catch {
438
- return !0;
439
- }
440
- }
441
- function ke(e) {
442
- return "" + e;
443
- }
444
- function xe(e) {
445
- if (Ve(e))
446
- return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Mt(e)), ke(e);
447
- }
448
- function ft(e, n, s) {
449
- var c = e.displayName;
450
- if (c)
451
- return c;
452
- var y = n.displayName || n.name || "";
453
- return y !== "" ? s + "(" + y + ")" : s;
454
- }
455
- function De(e) {
456
- return e.displayName || "Context";
457
- }
458
- function _e(e) {
459
- if (e == null)
460
- return null;
461
- if (typeof e.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
462
- return e.displayName || e.name || null;
463
- if (typeof e == "string")
464
- return e;
465
- switch (e) {
466
- case b:
467
- return "Fragment";
468
- case f:
469
- return "Portal";
470
- case C:
471
- return "Profiler";
472
- case v:
473
- return "StrictMode";
474
- case re:
475
- return "Suspense";
476
- case ce:
477
- return "SuspenseList";
478
- }
479
- if (typeof e == "object")
480
- switch (e.$$typeof) {
481
- case W:
482
- var n = e;
483
- return De(n) + ".Consumer";
484
- case T:
485
- var s = e;
486
- return De(s._context) + ".Provider";
487
- case I:
488
- return ft(e, e.render, "ForwardRef");
489
- case fe:
490
- var c = e.displayName || null;
491
- return c !== null ? c : _e(e.type) || "Memo";
492
- case ve: {
493
- var y = e, w = y._payload, P = y._init;
494
- try {
495
- return _e(P(w));
496
- } catch {
497
- return null;
498
- }
499
- }
500
- }
501
- return null;
502
- }
503
- var Fe = Object.prototype.hasOwnProperty, Ye = {
504
- key: !0,
505
- ref: !0,
506
- __self: !0,
507
- __source: !0
508
- }, dt, pt, Be;
509
- Be = {};
510
- function Ze(e) {
511
- if (Fe.call(e, "ref")) {
512
- var n = Object.getOwnPropertyDescriptor(e, "ref").get;
513
- if (n && n.isReactWarning)
514
- return !1;
515
- }
516
- return e.ref !== void 0;
517
- }
518
- function we(e) {
519
- if (Fe.call(e, "key")) {
520
- var n = Object.getOwnPropertyDescriptor(e, "key").get;
521
- if (n && n.isReactWarning)
522
- return !1;
523
- }
524
- return e.key !== void 0;
525
- }
526
- function It(e, n) {
527
- var s = function() {
528
- dt || (dt = !0, $("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
529
- };
530
- s.isReactWarning = !0, Object.defineProperty(e, "key", {
531
- get: s,
532
- configurable: !0
533
- });
534
- }
535
- function vt(e, n) {
536
- var s = function() {
537
- pt || (pt = !0, $("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", n));
538
- };
539
- s.isReactWarning = !0, Object.defineProperty(e, "ref", {
540
- get: s,
541
- configurable: !0
542
- });
543
- }
544
- function yt(e) {
545
- if (typeof e.ref == "string" && ie.current && e.__self && ie.current.stateNode !== e.__self) {
546
- var n = _e(ie.current.type);
547
- Be[n] || ($('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', n, e.ref), Be[n] = !0);
548
- }
549
- }
550
- var Ae = function(e, n, s, c, y, w, P) {
551
- var R = {
552
- // This tag allows us to uniquely identify this as a React Element
553
- $$typeof: l,
554
- // Built-in properties that belong on the element
555
- type: e,
556
- key: n,
557
- ref: s,
558
- props: P,
559
- // Record the component responsible for creating this element.
560
- _owner: w
561
- };
562
- return R._store = {}, Object.defineProperty(R._store, "validated", {
563
- configurable: !1,
564
- enumerable: !1,
565
- writable: !0,
566
- value: !1
567
- }), Object.defineProperty(R, "_self", {
568
- configurable: !1,
569
- enumerable: !1,
570
- writable: !1,
571
- value: c
572
- }), Object.defineProperty(R, "_source", {
573
- configurable: !1,
574
- enumerable: !1,
575
- writable: !1,
576
- value: y
577
- }), Object.freeze && (Object.freeze(R.props), Object.freeze(R)), R;
578
- };
579
- function Nt(e, n, s) {
580
- var c, y = {}, w = null, P = null, R = null, j = null;
581
- if (n != null) {
582
- Ze(n) && (P = n.ref, yt(n)), we(n) && (xe(n.key), w = "" + n.key), R = n.__self === void 0 ? null : n.__self, j = n.__source === void 0 ? null : n.__source;
583
- for (c in n)
584
- Fe.call(n, c) && !Ye.hasOwnProperty(c) && (y[c] = n[c]);
585
- }
586
- var z = arguments.length - 2;
587
- if (z === 1)
588
- y.children = s;
589
- else if (z > 1) {
590
- for (var J = Array(z), Q = 0; Q < z; Q++)
591
- J[Q] = arguments[Q + 2];
592
- Object.freeze && Object.freeze(J), y.children = J;
593
- }
594
- if (e && e.defaultProps) {
595
- var ee = e.defaultProps;
596
- for (c in ee)
597
- y[c] === void 0 && (y[c] = ee[c]);
598
- }
599
- if (w || P) {
600
- var se = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
601
- w && It(y, se), P && vt(y, se);
602
- }
603
- return Ae(e, w, P, R, j, ie.current, y);
604
- }
605
- function Wt(e, n) {
606
- var s = Ae(e.type, n, e.ref, e._self, e._source, e._owner, e.props);
607
- return s;
608
- }
609
- function Kt(e, n, s) {
610
- if (e == null)
611
- throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
612
- var c, y = S({}, e.props), w = e.key, P = e.ref, R = e._self, j = e._source, z = e._owner;
613
- if (n != null) {
614
- Ze(n) && (P = n.ref, z = ie.current), we(n) && (xe(n.key), w = "" + n.key);
615
- var J;
616
- e.type && e.type.defaultProps && (J = e.type.defaultProps);
617
- for (c in n)
618
- Fe.call(n, c) && !Ye.hasOwnProperty(c) && (n[c] === void 0 && J !== void 0 ? y[c] = J[c] : y[c] = n[c]);
619
- }
620
- var Q = arguments.length - 2;
621
- if (Q === 1)
622
- y.children = s;
623
- else if (Q > 1) {
624
- for (var ee = Array(Q), se = 0; se < Q; se++)
625
- ee[se] = arguments[se + 2];
626
- y.children = ee;
627
- }
628
- return Ae(e.type, w, P, R, j, z, y);
629
- }
630
- function Re(e) {
631
- return typeof e == "object" && e !== null && e.$$typeof === l;
632
- }
633
- var gt = ".", Ut = ":";
634
- function Vt(e) {
635
- var n = /[=:]/g, s = {
636
- "=": "=0",
637
- ":": "=2"
638
- }, c = e.replace(n, function(y) {
639
- return s[y];
640
- });
641
- return "$" + c;
642
- }
643
- var He = !1, ht = /\/+/g;
644
- function Pe(e) {
645
- return e.replace(ht, "$&/");
646
- }
647
- function Le(e, n) {
648
- return typeof e == "object" && e !== null && e.key != null ? (xe(e.key), Vt("" + e.key)) : n.toString(36);
649
- }
650
- function Se(e, n, s, c, y) {
651
- var w = typeof e;
652
- (w === "undefined" || w === "boolean") && (e = null);
653
- var P = !1;
654
- if (e === null)
655
- P = !0;
656
- else
657
- switch (w) {
658
- case "string":
659
- case "number":
660
- P = !0;
661
- break;
662
- case "object":
663
- switch (e.$$typeof) {
664
- case l:
665
- case f:
666
- P = !0;
667
- }
668
- }
669
- if (P) {
670
- var R = e, j = y(R), z = c === "" ? gt + Le(R, 0) : c;
671
- if (Ue(j)) {
672
- var J = "";
673
- z != null && (J = Pe(z) + "/"), Se(j, n, J, "", function(Wn) {
674
- return Wn;
675
- });
676
- } else
677
- j != null && (Re(j) && (j.key && (!R || R.key !== j.key) && xe(j.key), j = Wt(
678
- j,
679
- // Keep both the (mapped) and old keys if they differ, just as
680
- // traverseAllChildren used to do for objects as children
681
- s + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
682
- (j.key && (!R || R.key !== j.key) ? (
683
- // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
684
- // eslint-disable-next-line react-internal/safe-string-coercion
685
- Pe("" + j.key) + "/"
686
- ) : "") + z
687
- )), n.push(j));
688
- return 1;
689
- }
690
- var Q, ee, se = 0, pe = c === "" ? gt : c + Ut;
691
- if (Ue(e))
692
- for (var Ct = 0; Ct < e.length; Ct++)
693
- Q = e[Ct], ee = pe + Le(Q, Ct), se += Se(Q, n, s, ee, y);
694
- else {
695
- var nr = L(e);
696
- if (typeof nr == "function") {
697
- var Mr = e;
698
- nr === Mr.entries && (He || be("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), He = !0);
699
- for (var In = nr.call(Mr), Ir, Nn = 0; !(Ir = In.next()).done; )
700
- Q = Ir.value, ee = pe + Le(Q, Nn++), se += Se(Q, n, s, ee, y);
701
- } else if (w === "object") {
702
- var Nr = String(e);
703
- throw new Error("Objects are not valid as a React child (found: " + (Nr === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : Nr) + "). If you meant to render a collection of children, use an array instead.");
704
- }
705
- }
706
- return se;
707
- }
708
- function je(e, n, s) {
709
- if (e == null)
710
- return e;
711
- var c = [], y = 0;
712
- return Se(e, c, "", "", function(w) {
713
- return n.call(s, w, y++);
714
- }), c;
715
- }
716
- function Yt(e) {
717
- var n = 0;
718
- return je(e, function() {
719
- n++;
720
- }), n;
721
- }
722
- function bt(e, n, s) {
723
- je(e, function() {
724
- n.apply(this, arguments);
725
- }, s);
726
- }
727
- function Bt(e) {
728
- return je(e, function(n) {
729
- return n;
730
- }) || [];
731
- }
732
- function mt(e) {
733
- if (!Re(e))
734
- throw new Error("React.Children.only expected to receive a single React element child.");
735
- return e;
736
- }
737
- function Et(e) {
738
- var n = {
739
- $$typeof: W,
740
- // As a workaround to support multiple concurrent renderers, we categorize
741
- // some renderers as primary and others as secondary. We only expect
742
- // there to be two concurrent renderers at most: React Native (primary) and
743
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
744
- // Secondary renderers store their context values on separate fields.
745
- _currentValue: e,
746
- _currentValue2: e,
747
- // Used to track how many concurrent renderers this context currently
748
- // supports within in a single renderer. Such as parallel server rendering.
749
- _threadCount: 0,
750
- // These are circular
751
- Provider: null,
752
- Consumer: null,
753
- // Add these to use same hidden class in VM as ServerContext
754
- _defaultValue: null,
755
- _globalName: null
756
- };
757
- n.Provider = {
758
- $$typeof: T,
759
- _context: n
760
- };
761
- var s = !1, c = !1, y = !1;
762
- {
763
- var w = {
764
- $$typeof: W,
765
- _context: n
766
- };
767
- Object.defineProperties(w, {
768
- Provider: {
769
- get: function() {
770
- return c || (c = !0, $("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), n.Provider;
771
- },
772
- set: function(P) {
773
- n.Provider = P;
774
- }
775
- },
776
- _currentValue: {
777
- get: function() {
778
- return n._currentValue;
779
- },
780
- set: function(P) {
781
- n._currentValue = P;
782
- }
783
- },
784
- _currentValue2: {
785
- get: function() {
786
- return n._currentValue2;
787
- },
788
- set: function(P) {
789
- n._currentValue2 = P;
790
- }
791
- },
792
- _threadCount: {
793
- get: function() {
794
- return n._threadCount;
795
- },
796
- set: function(P) {
797
- n._threadCount = P;
798
- }
799
- },
800
- Consumer: {
801
- get: function() {
802
- return s || (s = !0, $("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), n.Consumer;
803
- }
804
- },
805
- displayName: {
806
- get: function() {
807
- return n.displayName;
808
- },
809
- set: function(P) {
810
- y || (be("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", P), y = !0);
811
- }
812
- }
813
- }), n.Consumer = w;
814
- }
815
- return n._currentRenderer = null, n._currentRenderer2 = null, n;
816
- }
817
- var Me = -1, et = 0, tt = 1, Ht = 2;
818
- function zt(e) {
819
- if (e._status === Me) {
820
- var n = e._result, s = n();
821
- if (s.then(function(w) {
822
- if (e._status === et || e._status === Me) {
823
- var P = e;
824
- P._status = tt, P._result = w;
825
- }
826
- }, function(w) {
827
- if (e._status === et || e._status === Me) {
828
- var P = e;
829
- P._status = Ht, P._result = w;
830
- }
831
- }), e._status === Me) {
832
- var c = e;
833
- c._status = et, c._result = s;
834
- }
835
- }
836
- if (e._status === tt) {
837
- var y = e._result;
838
- return y === void 0 && $(`lazy: Expected the result of a dynamic import() call. Instead received: %s
839
-
840
- Your code should look like:
841
- const MyComponent = lazy(() => import('./MyComponent'))
842
-
843
- Did you accidentally put curly braces around the import?`, y), "default" in y || $(`lazy: Expected the result of a dynamic import() call. Instead received: %s
844
-
845
- Your code should look like:
846
- const MyComponent = lazy(() => import('./MyComponent'))`, y), y.default;
847
- } else
848
- throw e._result;
849
- }
850
- function Gt(e) {
851
- var n = {
852
- // We use these fields to store the result.
853
- _status: Me,
854
- _result: e
855
- }, s = {
856
- $$typeof: ve,
857
- _payload: n,
858
- _init: zt
859
- };
860
- {
861
- var c, y;
862
- Object.defineProperties(s, {
863
- defaultProps: {
864
- configurable: !0,
865
- get: function() {
866
- return c;
867
- },
868
- set: function(w) {
869
- $("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), c = w, Object.defineProperty(s, "defaultProps", {
870
- enumerable: !0
871
- });
872
- }
873
- },
874
- propTypes: {
875
- configurable: !0,
876
- get: function() {
877
- return y;
878
- },
879
- set: function(w) {
880
- $("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), y = w, Object.defineProperty(s, "propTypes", {
881
- enumerable: !0
882
- });
883
- }
884
- }
885
- });
886
- }
887
- return s;
888
- }
889
- function qt(e) {
890
- e != null && e.$$typeof === fe ? $("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? $("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && $("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && $("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
891
- var n = {
892
- $$typeof: I,
893
- render: e
894
- };
895
- {
896
- var s;
897
- Object.defineProperty(n, "displayName", {
898
- enumerable: !1,
899
- configurable: !0,
900
- get: function() {
901
- return s;
902
- },
903
- set: function(c) {
904
- s = c, !e.name && !e.displayName && (e.displayName = c);
905
- }
906
- });
907
- }
908
- return n;
909
- }
910
- var a;
911
- a = Symbol.for("react.module.reference");
912
- function p(e) {
913
- return !!(typeof e == "string" || typeof e == "function" || e === b || e === C || g || e === v || e === re || e === ce || d || e === ye || ue || E || V || typeof e == "object" && e !== null && (e.$$typeof === ve || e.$$typeof === fe || e.$$typeof === T || e.$$typeof === W || e.$$typeof === I || // This needs to include all possible module reference object
914
- // types supported by any Flight configuration anywhere since
915
- // we don't know which Flight build this will end up being used
916
- // with.
917
- e.$$typeof === a || e.getModuleId !== void 0));
918
- }
919
- function m(e, n) {
920
- p(e) || $("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
921
- var s = {
922
- $$typeof: fe,
923
- type: e,
924
- compare: n === void 0 ? null : n
925
- };
926
- {
927
- var c;
928
- Object.defineProperty(s, "displayName", {
929
- enumerable: !1,
930
- configurable: !0,
931
- get: function() {
932
- return c;
933
- },
934
- set: function(y) {
935
- c = y, !e.name && !e.displayName && (e.displayName = y);
936
- }
937
- });
938
- }
939
- return s;
940
- }
941
- function _() {
942
- var e = X.current;
943
- return e === null && $(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
944
- 1. You might have mismatching versions of React and the renderer (such as React DOM)
945
- 2. You might be breaking the Rules of Hooks
946
- 3. You might have more than one copy of React in the same app
947
- See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
948
- }
949
- function M(e) {
950
- var n = _();
951
- if (e._context !== void 0) {
952
- var s = e._context;
953
- s.Consumer === e ? $("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : s.Provider === e && $("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
954
- }
955
- return n.useContext(e);
956
- }
957
- function B(e) {
958
- var n = _();
959
- return n.useState(e);
960
- }
961
- function F(e, n, s) {
962
- var c = _();
963
- return c.useReducer(e, n, s);
964
- }
965
- function k(e) {
966
- var n = _();
967
- return n.useRef(e);
968
- }
969
- function de(e, n) {
970
- var s = _();
971
- return s.useEffect(e, n);
972
- }
973
- function Z(e, n) {
974
- var s = _();
975
- return s.useInsertionEffect(e, n);
976
- }
977
- function te(e, n) {
978
- var s = _();
979
- return s.useLayoutEffect(e, n);
980
- }
981
- function ge(e, n) {
982
- var s = _();
983
- return s.useCallback(e, n);
984
- }
985
- function Ce(e, n) {
986
- var s = _();
987
- return s.useMemo(e, n);
988
- }
989
- function _t(e, n, s) {
990
- var c = _();
991
- return c.useImperativeHandle(e, n, s);
992
- }
993
- function me(e, n) {
994
- {
995
- var s = _();
996
- return s.useDebugValue(e, n);
997
- }
998
- }
999
- function yn() {
1000
- var e = _();
1001
- return e.useTransition();
1002
- }
1003
- function gn(e) {
1004
- var n = _();
1005
- return n.useDeferredValue(e);
1006
- }
1007
- function hn() {
1008
- var e = _();
1009
- return e.useId();
1010
- }
1011
- function bn(e, n, s) {
1012
- var c = _();
1013
- return c.useSyncExternalStore(e, n, s);
1014
- }
1015
- var rt = 0, hr, br, mr, Er, _r, Pr, Tr;
1016
- function $r() {
1017
- }
1018
- $r.__reactDisabledLog = !0;
1019
- function mn() {
1020
- {
1021
- if (rt === 0) {
1022
- hr = console.log, br = console.info, mr = console.warn, Er = console.error, _r = console.group, Pr = console.groupCollapsed, Tr = console.groupEnd;
1023
- var e = {
1024
- configurable: !0,
1025
- enumerable: !0,
1026
- value: $r,
1027
- writable: !0
1028
- };
1029
- Object.defineProperties(console, {
1030
- info: e,
1031
- log: e,
1032
- warn: e,
1033
- error: e,
1034
- group: e,
1035
- groupCollapsed: e,
1036
- groupEnd: e
1037
- });
1038
- }
1039
- rt++;
1040
- }
1041
- }
1042
- function En() {
1043
- {
1044
- if (rt--, rt === 0) {
1045
- var e = {
1046
- configurable: !0,
1047
- enumerable: !0,
1048
- writable: !0
1049
- };
1050
- Object.defineProperties(console, {
1051
- log: S({}, e, {
1052
- value: hr
1053
- }),
1054
- info: S({}, e, {
1055
- value: br
1056
- }),
1057
- warn: S({}, e, {
1058
- value: mr
1059
- }),
1060
- error: S({}, e, {
1061
- value: Er
1062
- }),
1063
- group: S({}, e, {
1064
- value: _r
1065
- }),
1066
- groupCollapsed: S({}, e, {
1067
- value: Pr
1068
- }),
1069
- groupEnd: S({}, e, {
1070
- value: Tr
1071
- })
1072
- });
1073
- }
1074
- rt < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1075
- }
1076
- }
1077
- var Xt = A.ReactCurrentDispatcher, Jt;
1078
- function Pt(e, n, s) {
1079
- {
1080
- if (Jt === void 0)
1081
- try {
1082
- throw Error();
1083
- } catch (y) {
1084
- var c = y.stack.trim().match(/\n( *(at )?)/);
1085
- Jt = c && c[1] || "";
1086
- }
1087
- return `
1088
- ` + Jt + e;
1089
- }
1090
- }
1091
- var Qt = !1, Tt;
1092
- {
1093
- var _n = typeof WeakMap == "function" ? WeakMap : Map;
1094
- Tt = new _n();
1095
- }
1096
- function wr(e, n) {
1097
- if (!e || Qt)
1098
- return "";
1099
- {
1100
- var s = Tt.get(e);
1101
- if (s !== void 0)
1102
- return s;
1103
- }
1104
- var c;
1105
- Qt = !0;
1106
- var y = Error.prepareStackTrace;
1107
- Error.prepareStackTrace = void 0;
1108
- var w;
1109
- w = Xt.current, Xt.current = null, mn();
1110
- try {
1111
- if (n) {
1112
- var P = function() {
1113
- throw Error();
1114
- };
1115
- if (Object.defineProperty(P.prototype, "props", {
1116
- set: function() {
1117
- throw Error();
1118
- }
1119
- }), typeof Reflect == "object" && Reflect.construct) {
1120
- try {
1121
- Reflect.construct(P, []);
1122
- } catch (pe) {
1123
- c = pe;
1124
- }
1125
- Reflect.construct(e, [], P);
1126
- } else {
1127
- try {
1128
- P.call();
1129
- } catch (pe) {
1130
- c = pe;
1131
- }
1132
- e.call(P.prototype);
1133
- }
1134
- } else {
1135
- try {
1136
- throw Error();
1137
- } catch (pe) {
1138
- c = pe;
1139
- }
1140
- e();
1141
- }
1142
- } catch (pe) {
1143
- if (pe && c && typeof pe.stack == "string") {
1144
- for (var R = pe.stack.split(`
1145
- `), j = c.stack.split(`
1146
- `), z = R.length - 1, J = j.length - 1; z >= 1 && J >= 0 && R[z] !== j[J]; )
1147
- J--;
1148
- for (; z >= 1 && J >= 0; z--, J--)
1149
- if (R[z] !== j[J]) {
1150
- if (z !== 1 || J !== 1)
1151
- do
1152
- if (z--, J--, J < 0 || R[z] !== j[J]) {
1153
- var Q = `
1154
- ` + R[z].replace(" at new ", " at ");
1155
- return e.displayName && Q.includes("<anonymous>") && (Q = Q.replace("<anonymous>", e.displayName)), typeof e == "function" && Tt.set(e, Q), Q;
1156
- }
1157
- while (z >= 1 && J >= 0);
1158
- break;
1159
- }
1160
- }
1161
- } finally {
1162
- Qt = !1, Xt.current = w, En(), Error.prepareStackTrace = y;
1163
- }
1164
- var ee = e ? e.displayName || e.name : "", se = ee ? Pt(ee) : "";
1165
- return typeof e == "function" && Tt.set(e, se), se;
1166
- }
1167
- function Pn(e, n, s) {
1168
- return wr(e, !1);
1169
- }
1170
- function Tn(e) {
1171
- var n = e.prototype;
1172
- return !!(n && n.isReactComponent);
1173
- }
1174
- function $t(e, n, s) {
1175
- if (e == null)
1176
- return "";
1177
- if (typeof e == "function")
1178
- return wr(e, Tn(e));
1179
- if (typeof e == "string")
1180
- return Pt(e);
1181
- switch (e) {
1182
- case re:
1183
- return Pt("Suspense");
1184
- case ce:
1185
- return Pt("SuspenseList");
1186
- }
1187
- if (typeof e == "object")
1188
- switch (e.$$typeof) {
1189
- case I:
1190
- return Pn(e.render);
1191
- case fe:
1192
- return $t(e.type, n, s);
1193
- case ve: {
1194
- var c = e, y = c._payload, w = c._init;
1195
- try {
1196
- return $t(w(y), n, s);
1197
- } catch {
1198
- }
1199
- }
1200
- }
1201
- return "";
1202
- }
1203
- var Rr = {}, Sr = A.ReactDebugCurrentFrame;
1204
- function wt(e) {
1205
- if (e) {
1206
- var n = e._owner, s = $t(e.type, e._source, n ? n.type : null);
1207
- Sr.setExtraStackFrame(s);
1208
- } else
1209
- Sr.setExtraStackFrame(null);
1210
- }
1211
- function $n(e, n, s, c, y) {
1212
- {
1213
- var w = Function.call.bind(Fe);
1214
- for (var P in e)
1215
- if (w(e, P)) {
1216
- var R = void 0;
1217
- try {
1218
- if (typeof e[P] != "function") {
1219
- var j = Error((c || "React class") + ": " + s + " type `" + P + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[P] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1220
- throw j.name = "Invariant Violation", j;
1221
- }
1222
- R = e[P](n, P, c, s, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1223
- } catch (z) {
1224
- R = z;
1225
- }
1226
- R && !(R instanceof Error) && (wt(y), $("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", c || "React class", s, P, typeof R), wt(null)), R instanceof Error && !(R.message in Rr) && (Rr[R.message] = !0, wt(y), $("Failed %s type: %s", s, R.message), wt(null));
1227
- }
1228
- }
1229
- }
1230
- function ze(e) {
1231
- if (e) {
1232
- var n = e._owner, s = $t(e.type, e._source, n ? n.type : null);
1233
- O(s);
1234
- } else
1235
- O(null);
1236
- }
1237
- var Zt;
1238
- Zt = !1;
1239
- function Cr() {
1240
- if (ie.current) {
1241
- var e = _e(ie.current.type);
1242
- if (e)
1243
- return `
1244
-
1245
- Check the render method of \`` + e + "`.";
1246
- }
1247
- return "";
1248
- }
1249
- function wn(e) {
1250
- if (e !== void 0) {
1251
- var n = e.fileName.replace(/^.*[\\\/]/, ""), s = e.lineNumber;
1252
- return `
1253
-
1254
- Check your code at ` + n + ":" + s + ".";
1255
- }
1256
- return "";
1257
- }
1258
- function Rn(e) {
1259
- return e != null ? wn(e.__source) : "";
1260
- }
1261
- var Or = {};
1262
- function Sn(e) {
1263
- var n = Cr();
1264
- if (!n) {
1265
- var s = typeof e == "string" ? e : e.displayName || e.name;
1266
- s && (n = `
1267
-
1268
- Check the top-level render call using <` + s + ">.");
1269
- }
1270
- return n;
1271
- }
1272
- function kr(e, n) {
1273
- if (!(!e._store || e._store.validated || e.key != null)) {
1274
- e._store.validated = !0;
1275
- var s = Sn(n);
1276
- if (!Or[s]) {
1277
- Or[s] = !0;
1278
- var c = "";
1279
- e && e._owner && e._owner !== ie.current && (c = " It was passed a child from " + _e(e._owner.type) + "."), ze(e), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', s, c), ze(null);
1280
- }
1281
- }
1282
- }
1283
- function xr(e, n) {
1284
- if (typeof e == "object") {
1285
- if (Ue(e))
1286
- for (var s = 0; s < e.length; s++) {
1287
- var c = e[s];
1288
- Re(c) && kr(c, n);
1289
- }
1290
- else if (Re(e))
1291
- e._store && (e._store.validated = !0);
1292
- else if (e) {
1293
- var y = L(e);
1294
- if (typeof y == "function" && y !== e.entries)
1295
- for (var w = y.call(e), P; !(P = w.next()).done; )
1296
- Re(P.value) && kr(P.value, n);
1297
- }
1298
- }
1299
- }
1300
- function Dr(e) {
1301
- {
1302
- var n = e.type;
1303
- if (n == null || typeof n == "string")
1304
- return;
1305
- var s;
1306
- if (typeof n == "function")
1307
- s = n.propTypes;
1308
- else if (typeof n == "object" && (n.$$typeof === I || // Note: Memo only checks outer props here.
1309
- // Inner props are checked in the reconciler.
1310
- n.$$typeof === fe))
1311
- s = n.propTypes;
1312
- else
1313
- return;
1314
- if (s) {
1315
- var c = _e(n);
1316
- $n(s, e.props, "prop", c, e);
1317
- } else if (n.PropTypes !== void 0 && !Zt) {
1318
- Zt = !0;
1319
- var y = _e(n);
1320
- $("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
1321
- }
1322
- typeof n.getDefaultProps == "function" && !n.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1323
- }
1324
- }
1325
- function Cn(e) {
1326
- {
1327
- for (var n = Object.keys(e.props), s = 0; s < n.length; s++) {
1328
- var c = n[s];
1329
- if (c !== "children" && c !== "key") {
1330
- ze(e), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", c), ze(null);
1331
- break;
1332
- }
1333
- }
1334
- e.ref !== null && (ze(e), $("Invalid attribute `ref` supplied to `React.Fragment`."), ze(null));
1335
- }
1336
- }
1337
- function Fr(e, n, s) {
1338
- var c = p(e);
1339
- if (!c) {
1340
- var y = "";
1341
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (y += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
1342
- var w = Rn(n);
1343
- w ? y += w : y += Cr();
1344
- var P;
1345
- e === null ? P = "null" : Ue(e) ? P = "array" : e !== void 0 && e.$$typeof === l ? (P = "<" + (_e(e.type) || "Unknown") + " />", y = " Did you accidentally export a JSX literal instead of a component?") : P = typeof e, $("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", P, y);
1346
- }
1347
- var R = Nt.apply(this, arguments);
1348
- if (R == null)
1349
- return R;
1350
- if (c)
1351
- for (var j = 2; j < arguments.length; j++)
1352
- xr(arguments[j], e);
1353
- return e === b ? Cn(R) : Dr(R), R;
1354
- }
1355
- var Ar = !1;
1356
- function On(e) {
1357
- var n = Fr.bind(null, e);
1358
- return n.type = e, Ar || (Ar = !0, be("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(n, "type", {
1359
- enumerable: !1,
1360
- get: function() {
1361
- return be("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
1362
- value: e
1363
- }), e;
1364
- }
1365
- }), n;
1366
- }
1367
- function kn(e, n, s) {
1368
- for (var c = Kt.apply(this, arguments), y = 2; y < arguments.length; y++)
1369
- xr(arguments[y], c.type);
1370
- return Dr(c), c;
1371
- }
1372
- function xn(e, n) {
1373
- var s = oe.transition;
1374
- oe.transition = {};
1375
- var c = oe.transition;
1376
- oe.transition._updatedFibers = /* @__PURE__ */ new Set();
1377
- try {
1378
- e();
1379
- } finally {
1380
- if (oe.transition = s, s === null && c._updatedFibers) {
1381
- var y = c._updatedFibers.size;
1382
- y > 10 && be("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), c._updatedFibers.clear();
1383
- }
1384
- }
1385
- }
1386
- var Lr = !1, Rt = null;
1387
- function Dn(e) {
1388
- if (Rt === null)
1389
- try {
1390
- var n = ("require" + Math.random()).slice(0, 7), s = t && t[n];
1391
- Rt = s.call(t, "timers").setImmediate;
1392
- } catch {
1393
- Rt = function(y) {
1394
- Lr === !1 && (Lr = !0, typeof MessageChannel > "u" && $("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
1395
- var w = new MessageChannel();
1396
- w.port1.onmessage = y, w.port2.postMessage(void 0);
1397
- };
1398
- }
1399
- return Rt(e);
1400
- }
1401
- var Ge = 0, jr = !1;
1402
- function Fn(e) {
1403
- {
1404
- var n = Ge;
1405
- Ge++, K.current === null && (K.current = []);
1406
- var s = K.isBatchingLegacy, c;
1407
- try {
1408
- if (K.isBatchingLegacy = !0, c = e(), !s && K.didScheduleLegacyUpdate) {
1409
- var y = K.current;
1410
- y !== null && (K.didScheduleLegacyUpdate = !1, rr(y));
1411
- }
1412
- } catch (ee) {
1413
- throw St(n), ee;
1414
- } finally {
1415
- K.isBatchingLegacy = s;
1416
- }
1417
- if (c !== null && typeof c == "object" && typeof c.then == "function") {
1418
- var w = c, P = !1, R = {
1419
- then: function(ee, se) {
1420
- P = !0, w.then(function(pe) {
1421
- St(n), Ge === 0 ? er(pe, ee, se) : ee(pe);
1422
- }, function(pe) {
1423
- St(n), se(pe);
1424
- });
1425
- }
1426
- };
1427
- return !jr && typeof Promise < "u" && Promise.resolve().then(function() {
1428
- }).then(function() {
1429
- P || (jr = !0, $("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
1430
- }), R;
1431
- } else {
1432
- var j = c;
1433
- if (St(n), Ge === 0) {
1434
- var z = K.current;
1435
- z !== null && (rr(z), K.current = null);
1436
- var J = {
1437
- then: function(ee, se) {
1438
- K.current === null ? (K.current = [], er(j, ee, se)) : ee(j);
1439
- }
1440
- };
1441
- return J;
1442
- } else {
1443
- var Q = {
1444
- then: function(ee, se) {
1445
- ee(j);
1446
- }
1447
- };
1448
- return Q;
1449
- }
1450
- }
1451
- }
1452
- }
1453
- function St(e) {
1454
- e !== Ge - 1 && $("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), Ge = e;
1455
- }
1456
- function er(e, n, s) {
1457
- {
1458
- var c = K.current;
1459
- if (c !== null)
1460
- try {
1461
- rr(c), Dn(function() {
1462
- c.length === 0 ? (K.current = null, n(e)) : er(e, n, s);
1463
- });
1464
- } catch (y) {
1465
- s(y);
1466
- }
1467
- else
1468
- n(e);
1469
- }
1470
- }
1471
- var tr = !1;
1472
- function rr(e) {
1473
- if (!tr) {
1474
- tr = !0;
1475
- var n = 0;
1476
- try {
1477
- for (; n < e.length; n++) {
1478
- var s = e[n];
1479
- do
1480
- s = s(!0);
1481
- while (s !== null);
1482
- }
1483
- e.length = 0;
1484
- } catch (c) {
1485
- throw e = e.slice(n + 1), c;
1486
- } finally {
1487
- tr = !1;
1488
- }
1489
- }
1490
- }
1491
- var An = Fr, Ln = kn, jn = On, Mn = {
1492
- map: je,
1493
- forEach: bt,
1494
- count: Yt,
1495
- toArray: Bt,
1496
- only: mt
1497
- };
1498
- r.Children = Mn, r.Component = D, r.Fragment = b, r.Profiler = C, r.PureComponent = le, r.StrictMode = v, r.Suspense = re, r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = A, r.cloneElement = Ln, r.createContext = Et, r.createElement = An, r.createFactory = jn, r.createRef = jt, r.forwardRef = qt, r.isValidElement = Re, r.lazy = Gt, r.memo = m, r.startTransition = xn, r.unstable_act = Fn, r.useCallback = ge, r.useContext = M, r.useDebugValue = me, r.useDeferredValue = gn, r.useEffect = de, r.useId = hn, r.useImperativeHandle = _t, r.useInsertionEffect = Z, r.useLayoutEffect = te, r.useMemo = Ce, r.useReducer = F, r.useRef = k, r.useState = B, r.useSyncExternalStore = bn, r.useTransition = yn, r.version = o, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
1499
- }();
1500
- }(it, it.exports)), it.exports;
1501
- }
1502
- process.env.NODE_ENV === "production" ? sr.exports = Un() : sr.exports = Vn();
1503
- var U = sr.exports;
1504
- const At = /* @__PURE__ */ Kn(U);
1
+ import ne, { useRef as Y, useEffect as Pe, useCallback as U, useState as Ie, useMemo as Ot, useContext as Ct } from "react";
2
+ var Le = { exports: {} }, ie = {};
1505
3
  /**
1506
4
  * @license React
1507
5
  * react-jsx-runtime.production.min.js
@@ -1511,25 +9,25 @@ const At = /* @__PURE__ */ Kn(U);
1511
9
  * This source code is licensed under the MIT license found in the
1512
10
  * LICENSE file in the root directory of this source tree.
1513
11
  */
1514
- var Ur;
1515
- function Yn() {
1516
- if (Ur)
1517
- return nt;
1518
- Ur = 1;
1519
- var t = U, r = Symbol.for("react.element"), o = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, f = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, b = { key: !0, ref: !0, __self: !0, __source: !0 };
1520
- function v(C, T, W) {
1521
- var I, re = {}, ce = null, fe = null;
1522
- W !== void 0 && (ce = "" + W), T.key !== void 0 && (ce = "" + T.key), T.ref !== void 0 && (fe = T.ref);
1523
- for (I in T)
1524
- l.call(T, I) && !b.hasOwnProperty(I) && (re[I] = T[I]);
1525
- if (C && C.defaultProps)
1526
- for (I in T = C.defaultProps, T)
1527
- re[I] === void 0 && (re[I] = T[I]);
1528
- return { $$typeof: r, type: C, key: ce, ref: fe, props: re, _owner: f.current };
12
+ var pt;
13
+ function dr() {
14
+ if (pt)
15
+ return ie;
16
+ pt = 1;
17
+ var e = ne, r = Symbol.for("react.element"), n = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, f = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function u(h, v, T) {
19
+ var w, F = {}, L = null, V = null;
20
+ T !== void 0 && (L = "" + T), v.key !== void 0 && (L = "" + v.key), v.ref !== void 0 && (V = v.ref);
21
+ for (w in v)
22
+ i.call(v, w) && !f.hasOwnProperty(w) && (F[w] = v[w]);
23
+ if (h && h.defaultProps)
24
+ for (w in v = h.defaultProps, v)
25
+ F[w] === void 0 && (F[w] = v[w]);
26
+ return { $$typeof: r, type: h, key: L, ref: V, props: F, _owner: o.current };
1529
27
  }
1530
- return nt.Fragment = o, nt.jsx = v, nt.jsxs = v, nt;
28
+ return ie.Fragment = n, ie.jsx = u, ie.jsxs = u, ie;
1531
29
  }
1532
- var at = {};
30
+ var oe = {};
1533
31
  /**
1534
32
  * @license React
1535
33
  * react-jsx-runtime.development.js
@@ -1539,91 +37,91 @@ var at = {};
1539
37
  * This source code is licensed under the MIT license found in the
1540
38
  * LICENSE file in the root directory of this source tree.
1541
39
  */
1542
- var Vr;
1543
- function Bn() {
1544
- return Vr || (Vr = 1, process.env.NODE_ENV !== "production" && function() {
1545
- var t = U, r = Symbol.for("react.element"), o = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), C = Symbol.for("react.context"), T = Symbol.for("react.forward_ref"), W = Symbol.for("react.suspense"), I = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), ce = Symbol.for("react.lazy"), fe = Symbol.for("react.offscreen"), ve = Symbol.iterator, ye = "@@iterator";
1546
- function ne(a) {
1547
- if (a === null || typeof a != "object")
40
+ var vt;
41
+ function pr() {
42
+ return vt || (vt = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var e = ne, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), h = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), w = Symbol.for("react.suspense_list"), F = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), V = Symbol.for("react.offscreen"), H = Symbol.iterator, j = "@@iterator";
44
+ function A(t) {
45
+ if (t === null || typeof t != "object")
1548
46
  return null;
1549
- var p = ve && a[ve] || a[ye];
1550
- return typeof p == "function" ? p : null;
47
+ var s = H && t[H] || t[j];
48
+ return typeof s == "function" ? s : null;
1551
49
  }
1552
- var ae = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
1553
- function L(a) {
50
+ var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function P(t) {
1554
52
  {
1555
- for (var p = arguments.length, m = new Array(p > 1 ? p - 1 : 0), _ = 1; _ < p; _++)
1556
- m[_ - 1] = arguments[_];
1557
- X("error", a, m);
53
+ for (var s = arguments.length, d = new Array(s > 1 ? s - 1 : 0), g = 1; g < s; g++)
54
+ d[g - 1] = arguments[g];
55
+ O("error", t, d);
1558
56
  }
1559
57
  }
1560
- function X(a, p, m) {
58
+ function O(t, s, d) {
1561
59
  {
1562
- var _ = ae.ReactDebugCurrentFrame, M = _.getStackAddendum();
1563
- M !== "" && (p += "%s", m = m.concat([M]));
1564
- var B = m.map(function(F) {
1565
- return String(F);
60
+ var g = C.ReactDebugCurrentFrame, $ = g.getStackAddendum();
61
+ $ !== "" && (s += "%s", d = d.concat([$]));
62
+ var E = d.map(function(m) {
63
+ return String(m);
1566
64
  });
1567
- B.unshift("Warning: " + p), Function.prototype.apply.call(console[a], console, B);
65
+ E.unshift("Warning: " + s), Function.prototype.apply.call(console[t], console, E);
1568
66
  }
1569
67
  }
1570
- var oe = !1, K = !1, ie = !1, he = !1, u = !1, O;
1571
- O = Symbol.for("react.module.reference");
1572
- function ue(a) {
1573
- return !!(typeof a == "string" || typeof a == "function" || a === l || a === b || u || a === f || a === W || a === I || he || a === fe || oe || K || ie || typeof a == "object" && a !== null && (a.$$typeof === ce || a.$$typeof === re || a.$$typeof === v || a.$$typeof === C || a.$$typeof === T || // This needs to include all possible module reference object
68
+ var I = !1, M = !1, J = !1, Te = !1, a = !1, y;
69
+ y = Symbol.for("react.module.reference");
70
+ function D(t) {
71
+ return !!(typeof t == "string" || typeof t == "function" || t === i || t === f || a || t === o || t === T || t === w || Te || t === V || I || M || J || typeof t == "object" && t !== null && (t.$$typeof === L || t.$$typeof === F || t.$$typeof === u || t.$$typeof === h || t.$$typeof === v || // This needs to include all possible module reference object
1574
72
  // types supported by any Flight configuration anywhere since
1575
73
  // we don't know which Flight build this will end up being used
1576
74
  // with.
1577
- a.$$typeof === O || a.getModuleId !== void 0));
75
+ t.$$typeof === y || t.getModuleId !== void 0));
1578
76
  }
1579
- function E(a, p, m) {
1580
- var _ = a.displayName;
1581
- if (_)
1582
- return _;
1583
- var M = p.displayName || p.name || "";
1584
- return M !== "" ? m + "(" + M + ")" : m;
77
+ function p(t, s, d) {
78
+ var g = t.displayName;
79
+ if (g)
80
+ return g;
81
+ var $ = s.displayName || s.name || "";
82
+ return $ !== "" ? d + "(" + $ + ")" : d;
1585
83
  }
1586
- function V(a) {
1587
- return a.displayName || "Context";
84
+ function S(t) {
85
+ return t.displayName || "Context";
1588
86
  }
1589
- function d(a) {
1590
- if (a == null)
87
+ function l(t) {
88
+ if (t == null)
1591
89
  return null;
1592
- if (typeof a.tag == "number" && L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof a == "function")
1593
- return a.displayName || a.name || null;
1594
- if (typeof a == "string")
1595
- return a;
1596
- switch (a) {
1597
- case l:
90
+ if (typeof t.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof t == "function")
91
+ return t.displayName || t.name || null;
92
+ if (typeof t == "string")
93
+ return t;
94
+ switch (t) {
95
+ case i:
1598
96
  return "Fragment";
1599
- case o:
97
+ case n:
1600
98
  return "Portal";
1601
- case b:
1602
- return "Profiler";
1603
99
  case f:
100
+ return "Profiler";
101
+ case o:
1604
102
  return "StrictMode";
1605
- case W:
103
+ case T:
1606
104
  return "Suspense";
1607
- case I:
105
+ case w:
1608
106
  return "SuspenseList";
1609
107
  }
1610
- if (typeof a == "object")
1611
- switch (a.$$typeof) {
1612
- case C:
1613
- var p = a;
1614
- return V(p) + ".Consumer";
108
+ if (typeof t == "object")
109
+ switch (t.$$typeof) {
110
+ case h:
111
+ var s = t;
112
+ return S(s) + ".Consumer";
113
+ case u:
114
+ var d = t;
115
+ return S(d._context) + ".Provider";
1615
116
  case v:
1616
- var m = a;
1617
- return V(m._context) + ".Provider";
1618
- case T:
1619
- return E(a, a.render, "ForwardRef");
1620
- case re:
1621
- var _ = a.displayName || null;
1622
- return _ !== null ? _ : d(a.type) || "Memo";
1623
- case ce: {
1624
- var M = a, B = M._payload, F = M._init;
117
+ return p(t, t.render, "ForwardRef");
118
+ case F:
119
+ var g = t.displayName || null;
120
+ return g !== null ? g : l(t.type) || "Memo";
121
+ case L: {
122
+ var $ = t, E = $._payload, m = $._init;
1625
123
  try {
1626
- return d(F(B));
124
+ return l(m(E));
1627
125
  } catch {
1628
126
  return null;
1629
127
  }
@@ -1631,858 +129,858 @@ function Bn() {
1631
129
  }
1632
130
  return null;
1633
131
  }
1634
- var g = Object.assign, A = 0, be, $, Ee, Oe, i, h, S;
1635
- function N() {
132
+ var c = Object.assign, _ = 0, He, Be, Ge, ze, qe, Je, Xe;
133
+ function Ze() {
1636
134
  }
1637
- N.__reactDisabledLog = !0;
1638
- function D() {
135
+ Ze.__reactDisabledLog = !0;
136
+ function Nt() {
1639
137
  {
1640
- if (A === 0) {
1641
- be = console.log, $ = console.info, Ee = console.warn, Oe = console.error, i = console.group, h = console.groupCollapsed, S = console.groupEnd;
1642
- var a = {
138
+ if (_ === 0) {
139
+ He = console.log, Be = console.info, Ge = console.warn, ze = console.error, qe = console.group, Je = console.groupCollapsed, Xe = console.groupEnd;
140
+ var t = {
1643
141
  configurable: !0,
1644
142
  enumerable: !0,
1645
- value: N,
143
+ value: Ze,
1646
144
  writable: !0
1647
145
  };
1648
146
  Object.defineProperties(console, {
1649
- info: a,
1650
- log: a,
1651
- warn: a,
1652
- error: a,
1653
- group: a,
1654
- groupCollapsed: a,
1655
- groupEnd: a
147
+ info: t,
148
+ log: t,
149
+ warn: t,
150
+ error: t,
151
+ group: t,
152
+ groupCollapsed: t,
153
+ groupEnd: t
1656
154
  });
1657
155
  }
1658
- A++;
156
+ _++;
1659
157
  }
1660
158
  }
1661
- function G() {
159
+ function Ut() {
1662
160
  {
1663
- if (A--, A === 0) {
1664
- var a = {
161
+ if (_--, _ === 0) {
162
+ var t = {
1665
163
  configurable: !0,
1666
164
  enumerable: !0,
1667
165
  writable: !0
1668
166
  };
1669
167
  Object.defineProperties(console, {
1670
- log: g({}, a, {
1671
- value: be
168
+ log: c({}, t, {
169
+ value: He
1672
170
  }),
1673
- info: g({}, a, {
1674
- value: $
171
+ info: c({}, t, {
172
+ value: Be
1675
173
  }),
1676
- warn: g({}, a, {
1677
- value: Ee
174
+ warn: c({}, t, {
175
+ value: Ge
1678
176
  }),
1679
- error: g({}, a, {
1680
- value: Oe
177
+ error: c({}, t, {
178
+ value: ze
1681
179
  }),
1682
- group: g({}, a, {
1683
- value: i
180
+ group: c({}, t, {
181
+ value: qe
1684
182
  }),
1685
- groupCollapsed: g({}, a, {
1686
- value: h
183
+ groupCollapsed: c({}, t, {
184
+ value: Je
1687
185
  }),
1688
- groupEnd: g({}, a, {
1689
- value: S
186
+ groupEnd: c({}, t, {
187
+ value: Xe
1690
188
  })
1691
189
  });
1692
190
  }
1693
- A < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
191
+ _ < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1694
192
  }
1695
193
  }
1696
- var q = ae.ReactCurrentDispatcher, H;
1697
- function Y(a, p, m) {
194
+ var we = C.ReactCurrentDispatcher, Se;
195
+ function fe(t, s, d) {
1698
196
  {
1699
- if (H === void 0)
197
+ if (Se === void 0)
1700
198
  try {
1701
199
  throw Error();
1702
- } catch (M) {
1703
- var _ = M.stack.trim().match(/\n( *(at )?)/);
1704
- H = _ && _[1] || "";
200
+ } catch ($) {
201
+ var g = $.stack.trim().match(/\n( *(at )?)/);
202
+ Se = g && g[1] || "";
1705
203
  }
1706
204
  return `
1707
- ` + H + a;
205
+ ` + Se + t;
1708
206
  }
1709
207
  }
1710
- var le = !1, $e;
208
+ var _e = !1, de;
1711
209
  {
1712
- var jt = typeof WeakMap == "function" ? WeakMap : Map;
1713
- $e = new jt();
210
+ var Vt = typeof WeakMap == "function" ? WeakMap : Map;
211
+ de = new Vt();
1714
212
  }
1715
- function ct(a, p) {
1716
- if (!a || le)
213
+ function Qe(t, s) {
214
+ if (!t || _e)
1717
215
  return "";
1718
216
  {
1719
- var m = $e.get(a);
1720
- if (m !== void 0)
1721
- return m;
217
+ var d = de.get(t);
218
+ if (d !== void 0)
219
+ return d;
1722
220
  }
1723
- var _;
1724
- le = !0;
1725
- var M = Error.prepareStackTrace;
221
+ var g;
222
+ _e = !0;
223
+ var $ = Error.prepareStackTrace;
1726
224
  Error.prepareStackTrace = void 0;
1727
- var B;
1728
- B = q.current, q.current = null, D();
225
+ var E;
226
+ E = we.current, we.current = null, Nt();
1729
227
  try {
1730
- if (p) {
1731
- var F = function() {
228
+ if (s) {
229
+ var m = function() {
1732
230
  throw Error();
1733
231
  };
1734
- if (Object.defineProperty(F.prototype, "props", {
232
+ if (Object.defineProperty(m.prototype, "props", {
1735
233
  set: function() {
1736
234
  throw Error();
1737
235
  }
1738
236
  }), typeof Reflect == "object" && Reflect.construct) {
1739
237
  try {
1740
- Reflect.construct(F, []);
1741
- } catch (me) {
1742
- _ = me;
238
+ Reflect.construct(m, []);
239
+ } catch (W) {
240
+ g = W;
1743
241
  }
1744
- Reflect.construct(a, [], F);
242
+ Reflect.construct(t, [], m);
1745
243
  } else {
1746
244
  try {
1747
- F.call();
1748
- } catch (me) {
1749
- _ = me;
245
+ m.call();
246
+ } catch (W) {
247
+ g = W;
1750
248
  }
1751
- a.call(F.prototype);
249
+ t.call(m.prototype);
1752
250
  }
1753
251
  } else {
1754
252
  try {
1755
253
  throw Error();
1756
- } catch (me) {
1757
- _ = me;
254
+ } catch (W) {
255
+ g = W;
1758
256
  }
1759
- a();
1760
- }
1761
- } catch (me) {
1762
- if (me && _ && typeof me.stack == "string") {
1763
- for (var k = me.stack.split(`
1764
- `), de = _.stack.split(`
1765
- `), Z = k.length - 1, te = de.length - 1; Z >= 1 && te >= 0 && k[Z] !== de[te]; )
1766
- te--;
1767
- for (; Z >= 1 && te >= 0; Z--, te--)
1768
- if (k[Z] !== de[te]) {
1769
- if (Z !== 1 || te !== 1)
257
+ t();
258
+ }
259
+ } catch (W) {
260
+ if (W && g && typeof W.stack == "string") {
261
+ for (var b = W.stack.split(`
262
+ `), k = g.stack.split(`
263
+ `), R = b.length - 1, x = k.length - 1; R >= 1 && x >= 0 && b[R] !== k[x]; )
264
+ x--;
265
+ for (; R >= 1 && x >= 0; R--, x--)
266
+ if (b[R] !== k[x]) {
267
+ if (R !== 1 || x !== 1)
1770
268
  do
1771
- if (Z--, te--, te < 0 || k[Z] !== de[te]) {
1772
- var ge = `
1773
- ` + k[Z].replace(" at new ", " at ");
1774
- return a.displayName && ge.includes("<anonymous>") && (ge = ge.replace("<anonymous>", a.displayName)), typeof a == "function" && $e.set(a, ge), ge;
269
+ if (R--, x--, x < 0 || b[R] !== k[x]) {
270
+ var K = `
271
+ ` + b[R].replace(" at new ", " at ");
272
+ return t.displayName && K.includes("<anonymous>") && (K = K.replace("<anonymous>", t.displayName)), typeof t == "function" && de.set(t, K), K;
1775
273
  }
1776
- while (Z >= 1 && te >= 0);
274
+ while (R >= 1 && x >= 0);
1777
275
  break;
1778
276
  }
1779
277
  }
1780
278
  } finally {
1781
- le = !1, q.current = B, G(), Error.prepareStackTrace = M;
279
+ _e = !1, we.current = E, Ut(), Error.prepareStackTrace = $;
1782
280
  }
1783
- var Ce = a ? a.displayName || a.name : "", _t = Ce ? Y(Ce) : "";
1784
- return typeof a == "function" && $e.set(a, _t), _t;
281
+ var Z = t ? t.displayName || t.name : "", dt = Z ? fe(Z) : "";
282
+ return typeof t == "function" && de.set(t, dt), dt;
1785
283
  }
1786
- function Ue(a, p, m) {
1787
- return ct(a, !1);
284
+ function Yt(t, s, d) {
285
+ return Qe(t, !1);
1788
286
  }
1789
- function Mt(a) {
1790
- var p = a.prototype;
1791
- return !!(p && p.isReactComponent);
287
+ function Ht(t) {
288
+ var s = t.prototype;
289
+ return !!(s && s.isReactComponent);
1792
290
  }
1793
- function Ve(a, p, m) {
1794
- if (a == null)
291
+ function pe(t, s, d) {
292
+ if (t == null)
1795
293
  return "";
1796
- if (typeof a == "function")
1797
- return ct(a, Mt(a));
1798
- if (typeof a == "string")
1799
- return Y(a);
1800
- switch (a) {
1801
- case W:
1802
- return Y("Suspense");
1803
- case I:
1804
- return Y("SuspenseList");
1805
- }
1806
- if (typeof a == "object")
1807
- switch (a.$$typeof) {
1808
- case T:
1809
- return Ue(a.render);
1810
- case re:
1811
- return Ve(a.type, p, m);
1812
- case ce: {
1813
- var _ = a, M = _._payload, B = _._init;
294
+ if (typeof t == "function")
295
+ return Qe(t, Ht(t));
296
+ if (typeof t == "string")
297
+ return fe(t);
298
+ switch (t) {
299
+ case T:
300
+ return fe("Suspense");
301
+ case w:
302
+ return fe("SuspenseList");
303
+ }
304
+ if (typeof t == "object")
305
+ switch (t.$$typeof) {
306
+ case v:
307
+ return Yt(t.render);
308
+ case F:
309
+ return pe(t.type, s, d);
310
+ case L: {
311
+ var g = t, $ = g._payload, E = g._init;
1814
312
  try {
1815
- return Ve(B(M), p, m);
313
+ return pe(E($), s, d);
1816
314
  } catch {
1817
315
  }
1818
316
  }
1819
317
  }
1820
318
  return "";
1821
319
  }
1822
- var ke = Object.prototype.hasOwnProperty, xe = {}, ft = ae.ReactDebugCurrentFrame;
1823
- function De(a) {
1824
- if (a) {
1825
- var p = a._owner, m = Ve(a.type, a._source, p ? p.type : null);
1826
- ft.setExtraStackFrame(m);
320
+ var ve = Object.prototype.hasOwnProperty, et = {}, tt = C.ReactDebugCurrentFrame;
321
+ function ge(t) {
322
+ if (t) {
323
+ var s = t._owner, d = pe(t.type, t._source, s ? s.type : null);
324
+ tt.setExtraStackFrame(d);
1827
325
  } else
1828
- ft.setExtraStackFrame(null);
326
+ tt.setExtraStackFrame(null);
1829
327
  }
1830
- function _e(a, p, m, _, M) {
328
+ function Bt(t, s, d, g, $) {
1831
329
  {
1832
- var B = Function.call.bind(ke);
1833
- for (var F in a)
1834
- if (B(a, F)) {
1835
- var k = void 0;
330
+ var E = Function.call.bind(ve);
331
+ for (var m in t)
332
+ if (E(t, m)) {
333
+ var b = void 0;
1836
334
  try {
1837
- if (typeof a[F] != "function") {
1838
- var de = Error((_ || "React class") + ": " + m + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1839
- throw de.name = "Invariant Violation", de;
335
+ if (typeof t[m] != "function") {
336
+ var k = Error((g || "React class") + ": " + d + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw k.name = "Invariant Violation", k;
1840
338
  }
1841
- k = a[F](p, F, _, m, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1842
- } catch (Z) {
1843
- k = Z;
339
+ b = t[m](s, m, g, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (R) {
341
+ b = R;
1844
342
  }
1845
- k && !(k instanceof Error) && (De(M), L("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", _ || "React class", m, F, typeof k), De(null)), k instanceof Error && !(k.message in xe) && (xe[k.message] = !0, De(M), L("Failed %s type: %s", m, k.message), De(null));
343
+ b && !(b instanceof Error) && (ge($), P("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", d, m, typeof b), ge(null)), b instanceof Error && !(b.message in et) && (et[b.message] = !0, ge($), P("Failed %s type: %s", d, b.message), ge(null));
1846
344
  }
1847
345
  }
1848
346
  }
1849
- var Fe = Array.isArray;
1850
- function Ye(a) {
1851
- return Fe(a);
347
+ var Gt = Array.isArray;
348
+ function Re(t) {
349
+ return Gt(t);
1852
350
  }
1853
- function dt(a) {
351
+ function zt(t) {
1854
352
  {
1855
- var p = typeof Symbol == "function" && Symbol.toStringTag, m = p && a[Symbol.toStringTag] || a.constructor.name || "Object";
1856
- return m;
353
+ var s = typeof Symbol == "function" && Symbol.toStringTag, d = s && t[Symbol.toStringTag] || t.constructor.name || "Object";
354
+ return d;
1857
355
  }
1858
356
  }
1859
- function pt(a) {
357
+ function qt(t) {
1860
358
  try {
1861
- return Be(a), !1;
359
+ return rt(t), !1;
1862
360
  } catch {
1863
361
  return !0;
1864
362
  }
1865
363
  }
1866
- function Be(a) {
1867
- return "" + a;
364
+ function rt(t) {
365
+ return "" + t;
1868
366
  }
1869
- function Ze(a) {
1870
- if (pt(a))
1871
- return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", dt(a)), Be(a);
367
+ function nt(t) {
368
+ if (qt(t))
369
+ return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", zt(t)), rt(t);
1872
370
  }
1873
- var we = ae.ReactCurrentOwner, It = {
371
+ var ae = C.ReactCurrentOwner, Jt = {
1874
372
  key: !0,
1875
373
  ref: !0,
1876
374
  __self: !0,
1877
375
  __source: !0
1878
- }, vt, yt, Ae;
1879
- Ae = {};
1880
- function Nt(a) {
1881
- if (ke.call(a, "ref")) {
1882
- var p = Object.getOwnPropertyDescriptor(a, "ref").get;
1883
- if (p && p.isReactWarning)
376
+ }, at, it, xe;
377
+ xe = {};
378
+ function Xt(t) {
379
+ if (ve.call(t, "ref")) {
380
+ var s = Object.getOwnPropertyDescriptor(t, "ref").get;
381
+ if (s && s.isReactWarning)
1884
382
  return !1;
1885
383
  }
1886
- return a.ref !== void 0;
384
+ return t.ref !== void 0;
1887
385
  }
1888
- function Wt(a) {
1889
- if (ke.call(a, "key")) {
1890
- var p = Object.getOwnPropertyDescriptor(a, "key").get;
1891
- if (p && p.isReactWarning)
386
+ function Zt(t) {
387
+ if (ve.call(t, "key")) {
388
+ var s = Object.getOwnPropertyDescriptor(t, "key").get;
389
+ if (s && s.isReactWarning)
1892
390
  return !1;
1893
391
  }
1894
- return a.key !== void 0;
392
+ return t.key !== void 0;
1895
393
  }
1896
- function Kt(a, p) {
1897
- if (typeof a.ref == "string" && we.current && p && we.current.stateNode !== p) {
1898
- var m = d(we.current.type);
1899
- Ae[m] || (L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', d(we.current.type), a.ref), Ae[m] = !0);
394
+ function Qt(t, s) {
395
+ if (typeof t.ref == "string" && ae.current && s && ae.current.stateNode !== s) {
396
+ var d = l(ae.current.type);
397
+ xe[d] || (P('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', l(ae.current.type), t.ref), xe[d] = !0);
1900
398
  }
1901
399
  }
1902
- function Re(a, p) {
400
+ function er(t, s) {
1903
401
  {
1904
- var m = function() {
1905
- vt || (vt = !0, L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
402
+ var d = function() {
403
+ at || (at = !0, P("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
1906
404
  };
1907
- m.isReactWarning = !0, Object.defineProperty(a, "key", {
1908
- get: m,
405
+ d.isReactWarning = !0, Object.defineProperty(t, "key", {
406
+ get: d,
1909
407
  configurable: !0
1910
408
  });
1911
409
  }
1912
410
  }
1913
- function gt(a, p) {
411
+ function tr(t, s) {
1914
412
  {
1915
- var m = function() {
1916
- yt || (yt = !0, L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
413
+ var d = function() {
414
+ it || (it = !0, P("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", s));
1917
415
  };
1918
- m.isReactWarning = !0, Object.defineProperty(a, "ref", {
1919
- get: m,
416
+ d.isReactWarning = !0, Object.defineProperty(t, "ref", {
417
+ get: d,
1920
418
  configurable: !0
1921
419
  });
1922
420
  }
1923
421
  }
1924
- var Ut = function(a, p, m, _, M, B, F) {
1925
- var k = {
422
+ var rr = function(t, s, d, g, $, E, m) {
423
+ var b = {
1926
424
  // This tag allows us to uniquely identify this as a React Element
1927
425
  $$typeof: r,
1928
426
  // Built-in properties that belong on the element
1929
- type: a,
1930
- key: p,
1931
- ref: m,
1932
- props: F,
427
+ type: t,
428
+ key: s,
429
+ ref: d,
430
+ props: m,
1933
431
  // Record the component responsible for creating this element.
1934
- _owner: B
432
+ _owner: E
1935
433
  };
1936
- return k._store = {}, Object.defineProperty(k._store, "validated", {
434
+ return b._store = {}, Object.defineProperty(b._store, "validated", {
1937
435
  configurable: !1,
1938
436
  enumerable: !1,
1939
437
  writable: !0,
1940
438
  value: !1
1941
- }), Object.defineProperty(k, "_self", {
439
+ }), Object.defineProperty(b, "_self", {
1942
440
  configurable: !1,
1943
441
  enumerable: !1,
1944
442
  writable: !1,
1945
- value: _
1946
- }), Object.defineProperty(k, "_source", {
443
+ value: g
444
+ }), Object.defineProperty(b, "_source", {
1947
445
  configurable: !1,
1948
446
  enumerable: !1,
1949
447
  writable: !1,
1950
- value: M
1951
- }), Object.freeze && (Object.freeze(k.props), Object.freeze(k)), k;
448
+ value: $
449
+ }), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
1952
450
  };
1953
- function Vt(a, p, m, _, M) {
451
+ function nr(t, s, d, g, $) {
1954
452
  {
1955
- var B, F = {}, k = null, de = null;
1956
- m !== void 0 && (Ze(m), k = "" + m), Wt(p) && (Ze(p.key), k = "" + p.key), Nt(p) && (de = p.ref, Kt(p, M));
1957
- for (B in p)
1958
- ke.call(p, B) && !It.hasOwnProperty(B) && (F[B] = p[B]);
1959
- if (a && a.defaultProps) {
1960
- var Z = a.defaultProps;
1961
- for (B in Z)
1962
- F[B] === void 0 && (F[B] = Z[B]);
453
+ var E, m = {}, b = null, k = null;
454
+ d !== void 0 && (nt(d), b = "" + d), Zt(s) && (nt(s.key), b = "" + s.key), Xt(s) && (k = s.ref, Qt(s, $));
455
+ for (E in s)
456
+ ve.call(s, E) && !Jt.hasOwnProperty(E) && (m[E] = s[E]);
457
+ if (t && t.defaultProps) {
458
+ var R = t.defaultProps;
459
+ for (E in R)
460
+ m[E] === void 0 && (m[E] = R[E]);
1963
461
  }
1964
- if (k || de) {
1965
- var te = typeof a == "function" ? a.displayName || a.name || "Unknown" : a;
1966
- k && Re(F, te), de && gt(F, te);
462
+ if (b || k) {
463
+ var x = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
464
+ b && er(m, x), k && tr(m, x);
1967
465
  }
1968
- return Ut(a, k, de, M, _, we.current, F);
466
+ return rr(t, b, k, $, g, ae.current, m);
1969
467
  }
1970
468
  }
1971
- var He = ae.ReactCurrentOwner, ht = ae.ReactDebugCurrentFrame;
1972
- function Pe(a) {
1973
- if (a) {
1974
- var p = a._owner, m = Ve(a.type, a._source, p ? p.type : null);
1975
- ht.setExtraStackFrame(m);
469
+ var Oe = C.ReactCurrentOwner, ot = C.ReactDebugCurrentFrame;
470
+ function X(t) {
471
+ if (t) {
472
+ var s = t._owner, d = pe(t.type, t._source, s ? s.type : null);
473
+ ot.setExtraStackFrame(d);
1976
474
  } else
1977
- ht.setExtraStackFrame(null);
475
+ ot.setExtraStackFrame(null);
1978
476
  }
1979
- var Le;
1980
- Le = !1;
1981
- function Se(a) {
1982
- return typeof a == "object" && a !== null && a.$$typeof === r;
477
+ var Ce;
478
+ Ce = !1;
479
+ function ke(t) {
480
+ return typeof t == "object" && t !== null && t.$$typeof === r;
1983
481
  }
1984
- function je() {
482
+ function st() {
1985
483
  {
1986
- if (He.current) {
1987
- var a = d(He.current.type);
1988
- if (a)
484
+ if (Oe.current) {
485
+ var t = l(Oe.current.type);
486
+ if (t)
1989
487
  return `
1990
488
 
1991
- Check the render method of \`` + a + "`.";
489
+ Check the render method of \`` + t + "`.";
1992
490
  }
1993
491
  return "";
1994
492
  }
1995
493
  }
1996
- function Yt(a) {
494
+ function ar(t) {
1997
495
  {
1998
- if (a !== void 0) {
1999
- var p = a.fileName.replace(/^.*[\\\/]/, ""), m = a.lineNumber;
496
+ if (t !== void 0) {
497
+ var s = t.fileName.replace(/^.*[\\\/]/, ""), d = t.lineNumber;
2000
498
  return `
2001
499
 
2002
- Check your code at ` + p + ":" + m + ".";
500
+ Check your code at ` + s + ":" + d + ".";
2003
501
  }
2004
502
  return "";
2005
503
  }
2006
504
  }
2007
- var bt = {};
2008
- function Bt(a) {
505
+ var lt = {};
506
+ function ir(t) {
2009
507
  {
2010
- var p = je();
2011
- if (!p) {
2012
- var m = typeof a == "string" ? a : a.displayName || a.name;
2013
- m && (p = `
508
+ var s = st();
509
+ if (!s) {
510
+ var d = typeof t == "string" ? t : t.displayName || t.name;
511
+ d && (s = `
2014
512
 
2015
- Check the top-level render call using <` + m + ">.");
513
+ Check the top-level render call using <` + d + ">.");
2016
514
  }
2017
- return p;
515
+ return s;
2018
516
  }
2019
517
  }
2020
- function mt(a, p) {
518
+ function ut(t, s) {
2021
519
  {
2022
- if (!a._store || a._store.validated || a.key != null)
520
+ if (!t._store || t._store.validated || t.key != null)
2023
521
  return;
2024
- a._store.validated = !0;
2025
- var m = Bt(p);
2026
- if (bt[m])
522
+ t._store.validated = !0;
523
+ var d = ir(s);
524
+ if (lt[d])
2027
525
  return;
2028
- bt[m] = !0;
2029
- var _ = "";
2030
- a && a._owner && a._owner !== He.current && (_ = " It was passed a child from " + d(a._owner.type) + "."), Pe(a), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', m, _), Pe(null);
526
+ lt[d] = !0;
527
+ var g = "";
528
+ t && t._owner && t._owner !== Oe.current && (g = " It was passed a child from " + l(t._owner.type) + "."), X(t), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, g), X(null);
2031
529
  }
2032
530
  }
2033
- function Et(a, p) {
531
+ function ct(t, s) {
2034
532
  {
2035
- if (typeof a != "object")
533
+ if (typeof t != "object")
2036
534
  return;
2037
- if (Ye(a))
2038
- for (var m = 0; m < a.length; m++) {
2039
- var _ = a[m];
2040
- Se(_) && mt(_, p);
535
+ if (Re(t))
536
+ for (var d = 0; d < t.length; d++) {
537
+ var g = t[d];
538
+ ke(g) && ut(g, s);
2041
539
  }
2042
- else if (Se(a))
2043
- a._store && (a._store.validated = !0);
2044
- else if (a) {
2045
- var M = ne(a);
2046
- if (typeof M == "function" && M !== a.entries)
2047
- for (var B = M.call(a), F; !(F = B.next()).done; )
2048
- Se(F.value) && mt(F.value, p);
540
+ else if (ke(t))
541
+ t._store && (t._store.validated = !0);
542
+ else if (t) {
543
+ var $ = A(t);
544
+ if (typeof $ == "function" && $ !== t.entries)
545
+ for (var E = $.call(t), m; !(m = E.next()).done; )
546
+ ke(m.value) && ut(m.value, s);
2049
547
  }
2050
548
  }
2051
549
  }
2052
- function Me(a) {
550
+ function or(t) {
2053
551
  {
2054
- var p = a.type;
2055
- if (p == null || typeof p == "string")
552
+ var s = t.type;
553
+ if (s == null || typeof s == "string")
2056
554
  return;
2057
- var m;
2058
- if (typeof p == "function")
2059
- m = p.propTypes;
2060
- else if (typeof p == "object" && (p.$$typeof === T || // Note: Memo only checks outer props here.
555
+ var d;
556
+ if (typeof s == "function")
557
+ d = s.propTypes;
558
+ else if (typeof s == "object" && (s.$$typeof === v || // Note: Memo only checks outer props here.
2061
559
  // Inner props are checked in the reconciler.
2062
- p.$$typeof === re))
2063
- m = p.propTypes;
560
+ s.$$typeof === F))
561
+ d = s.propTypes;
2064
562
  else
2065
563
  return;
2066
- if (m) {
2067
- var _ = d(p);
2068
- _e(m, a.props, "prop", _, a);
2069
- } else if (p.PropTypes !== void 0 && !Le) {
2070
- Le = !0;
2071
- var M = d(p);
2072
- L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", M || "Unknown");
564
+ if (d) {
565
+ var g = l(s);
566
+ Bt(d, t.props, "prop", g, t);
567
+ } else if (s.PropTypes !== void 0 && !Ce) {
568
+ Ce = !0;
569
+ var $ = l(s);
570
+ P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $ || "Unknown");
2073
571
  }
2074
- typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
572
+ typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
2075
573
  }
2076
574
  }
2077
- function et(a) {
575
+ function sr(t) {
2078
576
  {
2079
- for (var p = Object.keys(a.props), m = 0; m < p.length; m++) {
2080
- var _ = p[m];
2081
- if (_ !== "children" && _ !== "key") {
2082
- Pe(a), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", _), Pe(null);
577
+ for (var s = Object.keys(t.props), d = 0; d < s.length; d++) {
578
+ var g = s[d];
579
+ if (g !== "children" && g !== "key") {
580
+ X(t), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", g), X(null);
2083
581
  break;
2084
582
  }
2085
583
  }
2086
- a.ref !== null && (Pe(a), L("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
584
+ t.ref !== null && (X(t), P("Invalid attribute `ref` supplied to `React.Fragment`."), X(null));
2087
585
  }
2088
586
  }
2089
- function tt(a, p, m, _, M, B) {
587
+ function ft(t, s, d, g, $, E) {
2090
588
  {
2091
- var F = ue(a);
2092
- if (!F) {
2093
- var k = "";
2094
- (a === void 0 || typeof a == "object" && a !== null && Object.keys(a).length === 0) && (k += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
2095
- var de = Yt(M);
2096
- de ? k += de : k += je();
2097
- var Z;
2098
- a === null ? Z = "null" : Ye(a) ? Z = "array" : a !== void 0 && a.$$typeof === r ? (Z = "<" + (d(a.type) || "Unknown") + " />", k = " Did you accidentally export a JSX literal instead of a component?") : Z = typeof a, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Z, k);
2099
- }
2100
- var te = Vt(a, p, m, M, B);
2101
- if (te == null)
2102
- return te;
2103
- if (F) {
2104
- var ge = p.children;
2105
- if (ge !== void 0)
2106
- if (_)
2107
- if (Ye(ge)) {
2108
- for (var Ce = 0; Ce < ge.length; Ce++)
2109
- Et(ge[Ce], a);
2110
- Object.freeze && Object.freeze(ge);
589
+ var m = D(t);
590
+ if (!m) {
591
+ var b = "";
592
+ (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (b += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
593
+ var k = ar($);
594
+ k ? b += k : b += st();
595
+ var R;
596
+ t === null ? R = "null" : Re(t) ? R = "array" : t !== void 0 && t.$$typeof === r ? (R = "<" + (l(t.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : R = typeof t, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, b);
597
+ }
598
+ var x = nr(t, s, d, $, E);
599
+ if (x == null)
600
+ return x;
601
+ if (m) {
602
+ var K = s.children;
603
+ if (K !== void 0)
604
+ if (g)
605
+ if (Re(K)) {
606
+ for (var Z = 0; Z < K.length; Z++)
607
+ ct(K[Z], t);
608
+ Object.freeze && Object.freeze(K);
2111
609
  } else
2112
- L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
610
+ P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
2113
611
  else
2114
- Et(ge, a);
612
+ ct(K, t);
2115
613
  }
2116
- return a === l ? et(te) : Me(te), te;
614
+ return t === i ? sr(x) : or(x), x;
2117
615
  }
2118
616
  }
2119
- function Ht(a, p, m) {
2120
- return tt(a, p, m, !0);
617
+ function lr(t, s, d) {
618
+ return ft(t, s, d, !0);
2121
619
  }
2122
- function zt(a, p, m) {
2123
- return tt(a, p, m, !1);
620
+ function ur(t, s, d) {
621
+ return ft(t, s, d, !1);
2124
622
  }
2125
- var Gt = zt, qt = Ht;
2126
- at.Fragment = l, at.jsx = Gt, at.jsxs = qt;
2127
- }()), at;
2128
- }
2129
- process.env.NODE_ENV === "production" ? ir.exports = Yn() : ir.exports = Bn();
2130
- var ot = ir.exports;
2131
- function an(t) {
2132
- var r, o, l = "";
2133
- if (typeof t == "string" || typeof t == "number")
2134
- l += t;
2135
- else if (typeof t == "object")
2136
- if (Array.isArray(t))
2137
- for (r = 0; r < t.length; r++)
2138
- t[r] && (o = an(t[r])) && (l && (l += " "), l += o);
623
+ var cr = ur, fr = lr;
624
+ oe.Fragment = i, oe.jsx = cr, oe.jsxs = fr;
625
+ }()), oe;
626
+ }
627
+ process.env.NODE_ENV === "production" ? Le.exports = dr() : Le.exports = pr();
628
+ var se = Le.exports;
629
+ function kt(e) {
630
+ var r, n, i = "";
631
+ if (typeof e == "string" || typeof e == "number")
632
+ i += e;
633
+ else if (typeof e == "object")
634
+ if (Array.isArray(e))
635
+ for (r = 0; r < e.length; r++)
636
+ e[r] && (n = kt(e[r])) && (i && (i += " "), i += n);
2139
637
  else
2140
- for (r in t)
2141
- t[r] && (l && (l += " "), l += r);
2142
- return l;
638
+ for (r in e)
639
+ e[r] && (i && (i += " "), i += r);
640
+ return i;
2143
641
  }
2144
- function Hn() {
2145
- for (var t, r, o = 0, l = ""; o < arguments.length; )
2146
- (t = arguments[o++]) && (r = an(t)) && (l && (l += " "), l += r);
2147
- return l;
642
+ function vr() {
643
+ for (var e, r, n = 0, i = ""; n < arguments.length; )
644
+ (e = arguments[n++]) && (r = kt(e)) && (i && (i += " "), i += r);
645
+ return i;
2148
646
  }
2149
- const dr = typeof document < "u" ? At.useLayoutEffect : () => {
647
+ const We = typeof document < "u" ? ne.useLayoutEffect : () => {
2150
648
  };
2151
- function Ie(t) {
2152
- const r = U.useRef(null);
2153
- return dr(() => {
2154
- r.current = t;
649
+ function B(e) {
650
+ const r = Y(null);
651
+ return We(() => {
652
+ r.current = e;
2155
653
  }, [
2156
- t
2157
- ]), U.useCallback((...o) => {
2158
- const l = r.current;
2159
- return l(...o);
654
+ e
655
+ ]), U((...n) => {
656
+ const i = r.current;
657
+ return i(...n);
2160
658
  }, []);
2161
659
  }
2162
- let Yr = /* @__PURE__ */ new Map();
2163
- function zn(t, r) {
2164
- if (t === r)
2165
- return t;
2166
- let o = Yr.get(t);
2167
- if (o)
2168
- return o(r), r;
2169
- let l = Yr.get(r);
2170
- return l ? (l(t), t) : r;
2171
- }
2172
- function Gn(...t) {
660
+ let gt = /* @__PURE__ */ new Map();
661
+ function gr(e, r) {
662
+ if (e === r)
663
+ return e;
664
+ let n = gt.get(e);
665
+ if (n)
666
+ return n(r), r;
667
+ let i = gt.get(r);
668
+ return i ? (i(e), e) : r;
669
+ }
670
+ function br(...e) {
2173
671
  return (...r) => {
2174
- for (let o of t)
2175
- typeof o == "function" && o(...r);
672
+ for (let n of e)
673
+ typeof n == "function" && n(...r);
2176
674
  };
2177
675
  }
2178
- function We(...t) {
676
+ function z(...e) {
2179
677
  let r = {
2180
- ...t[0]
678
+ ...e[0]
2181
679
  };
2182
- for (let o = 1; o < t.length; o++) {
2183
- let l = t[o];
2184
- for (let f in l) {
2185
- let b = r[f], v = l[f];
2186
- typeof b == "function" && typeof v == "function" && // This is a lot faster than a regex.
2187
- f[0] === "o" && f[1] === "n" && f.charCodeAt(2) >= /* 'A' */
2188
- 65 && f.charCodeAt(2) <= /* 'Z' */
2189
- 90 ? r[f] = Gn(b, v) : (f === "className" || f === "UNSAFE_className") && typeof b == "string" && typeof v == "string" ? r[f] = Hn(b, v) : f === "id" && b && v ? r.id = zn(b, v) : r[f] = v !== void 0 ? v : b;
680
+ for (let n = 1; n < e.length; n++) {
681
+ let i = e[n];
682
+ for (let o in i) {
683
+ let f = r[o], u = i[o];
684
+ typeof f == "function" && typeof u == "function" && // This is a lot faster than a regex.
685
+ o[0] === "o" && o[1] === "n" && o.charCodeAt(2) >= /* 'A' */
686
+ 65 && o.charCodeAt(2) <= /* 'Z' */
687
+ 90 ? r[o] = br(f, u) : (o === "className" || o === "UNSAFE_className") && typeof f == "string" && typeof u == "string" ? r[o] = vr(f, u) : o === "id" && f && u ? r.id = gr(f, u) : r[o] = u !== void 0 ? u : f;
2190
688
  }
2191
689
  }
2192
690
  return r;
2193
691
  }
2194
- const qn = /* @__PURE__ */ new Set([
692
+ const hr = /* @__PURE__ */ new Set([
2195
693
  "id"
2196
- ]), Xn = /* @__PURE__ */ new Set([
694
+ ]), yr = /* @__PURE__ */ new Set([
2197
695
  "aria-label",
2198
696
  "aria-labelledby",
2199
697
  "aria-describedby",
2200
698
  "aria-details"
2201
- ]), Jn = /* @__PURE__ */ new Set([
699
+ ]), mr = /* @__PURE__ */ new Set([
2202
700
  "href",
2203
701
  "target",
2204
702
  "rel",
2205
703
  "download",
2206
704
  "ping",
2207
705
  "referrerPolicy"
2208
- ]), Qn = /^(data-.*)$/;
2209
- function Zn(t, r = {}) {
2210
- let { labelable: o, isLink: l, propNames: f } = r, b = {};
2211
- for (const v in t)
2212
- Object.prototype.hasOwnProperty.call(t, v) && (qn.has(v) || o && Xn.has(v) || l && Jn.has(v) || f != null && f.has(v) || Qn.test(v)) && (b[v] = t[v]);
2213
- return b;
2214
- }
2215
- function Ne(t) {
2216
- if (ea())
2217
- t.focus({
706
+ ]), $r = /^(data-.*)$/;
707
+ function Pr(e, r = {}) {
708
+ let { labelable: n, isLink: i, propNames: o } = r, f = {};
709
+ for (const u in e)
710
+ Object.prototype.hasOwnProperty.call(e, u) && (hr.has(u) || n && yr.has(u) || i && mr.has(u) || o != null && o.has(u) || $r.test(u)) && (f[u] = e[u]);
711
+ return f;
712
+ }
713
+ function G(e) {
714
+ if (Er())
715
+ e.focus({
2218
716
  preventScroll: !0
2219
717
  });
2220
718
  else {
2221
- let r = ta(t);
2222
- t.focus(), ra(r);
719
+ let r = Tr(e);
720
+ e.focus(), wr(r);
2223
721
  }
2224
722
  }
2225
- let Ot = null;
2226
- function ea() {
2227
- if (Ot == null) {
2228
- Ot = !1;
723
+ let be = null;
724
+ function Er() {
725
+ if (be == null) {
726
+ be = !1;
2229
727
  try {
2230
- var t = document.createElement("div");
2231
- t.focus({
728
+ var e = document.createElement("div");
729
+ e.focus({
2232
730
  get preventScroll() {
2233
- return Ot = !0, !0;
731
+ return be = !0, !0;
2234
732
  }
2235
733
  });
2236
734
  } catch {
2237
735
  }
2238
736
  }
2239
- return Ot;
737
+ return be;
2240
738
  }
2241
- function ta(t) {
2242
- for (var r = t.parentNode, o = [], l = document.scrollingElement || document.documentElement; r instanceof HTMLElement && r !== l; )
2243
- (r.offsetHeight < r.scrollHeight || r.offsetWidth < r.scrollWidth) && o.push({
739
+ function Tr(e) {
740
+ for (var r = e.parentNode, n = [], i = document.scrollingElement || document.documentElement; r instanceof HTMLElement && r !== i; )
741
+ (r.offsetHeight < r.scrollHeight || r.offsetWidth < r.scrollWidth) && n.push({
2244
742
  element: r,
2245
743
  scrollTop: r.scrollTop,
2246
744
  scrollLeft: r.scrollLeft
2247
745
  }), r = r.parentNode;
2248
- return l instanceof HTMLElement && o.push({
2249
- element: l,
2250
- scrollTop: l.scrollTop,
2251
- scrollLeft: l.scrollLeft
2252
- }), o;
746
+ return i instanceof HTMLElement && n.push({
747
+ element: i,
748
+ scrollTop: i.scrollTop,
749
+ scrollLeft: i.scrollLeft
750
+ }), n;
2253
751
  }
2254
- function ra(t) {
2255
- for (let { element: r, scrollTop: o, scrollLeft: l } of t)
2256
- r.scrollTop = o, r.scrollLeft = l;
752
+ function wr(e) {
753
+ for (let { element: r, scrollTop: n, scrollLeft: i } of e)
754
+ r.scrollTop = n, r.scrollLeft = i;
2257
755
  }
2258
- function Lt(t) {
756
+ function Ee(e) {
2259
757
  var r;
2260
- return typeof window > "u" || window.navigator == null ? !1 : ((r = window.navigator.userAgentData) === null || r === void 0 ? void 0 : r.brands.some((o) => t.test(o.brand))) || t.test(window.navigator.userAgent);
758
+ return typeof window > "u" || window.navigator == null ? !1 : ((r = window.navigator.userAgentData) === null || r === void 0 ? void 0 : r.brands.some((n) => e.test(n.brand))) || e.test(window.navigator.userAgent);
2261
759
  }
2262
- function pr(t) {
760
+ function Ne(e) {
2263
761
  var r;
2264
- return typeof window < "u" && window.navigator != null ? t.test(((r = window.navigator.userAgentData) === null || r === void 0 ? void 0 : r.platform) || window.navigator.platform) : !1;
762
+ return typeof window < "u" && window.navigator != null ? e.test(((r = window.navigator.userAgentData) === null || r === void 0 ? void 0 : r.platform) || window.navigator.platform) : !1;
2265
763
  }
2266
- function st() {
2267
- return pr(/^Mac/i);
764
+ function le() {
765
+ return Ne(/^Mac/i);
2268
766
  }
2269
- function na() {
2270
- return pr(/^iPhone/i);
767
+ function Sr() {
768
+ return Ne(/^iPhone/i);
2271
769
  }
2272
- function on() {
2273
- return pr(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
2274
- st() && navigator.maxTouchPoints > 1;
770
+ function Ft() {
771
+ return Ne(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
772
+ le() && navigator.maxTouchPoints > 1;
2275
773
  }
2276
- function sn() {
2277
- return na() || on();
774
+ function Dt() {
775
+ return Sr() || Ft();
2278
776
  }
2279
- function aa() {
2280
- return Lt(/AppleWebKit/i) && !oa();
777
+ function _r() {
778
+ return Ee(/AppleWebKit/i) && !Rr();
2281
779
  }
2282
- function oa() {
2283
- return Lt(/Chrome/i);
780
+ function Rr() {
781
+ return Ee(/Chrome/i);
2284
782
  }
2285
- function un() {
2286
- return Lt(/Android/i);
783
+ function Lt() {
784
+ return Ee(/Android/i);
2287
785
  }
2288
- function ia() {
2289
- return Lt(/Firefox/i);
786
+ function xr() {
787
+ return Ee(/Firefox/i);
2290
788
  }
2291
- function ut(t, r, o = !0) {
2292
- var l, f;
2293
- let { metaKey: b, ctrlKey: v, altKey: C, shiftKey: T } = r;
2294
- ia() && (!((l = window.event) === null || l === void 0 || (f = l.type) === null || f === void 0) && f.startsWith("key")) && t.target === "_blank" && (st() ? b = !0 : v = !0);
2295
- let W = aa() && st() && !on() ? new KeyboardEvent("keydown", {
789
+ function ue(e, r, n = !0) {
790
+ var i, o;
791
+ let { metaKey: f, ctrlKey: u, altKey: h, shiftKey: v } = r;
792
+ xr() && (!((i = window.event) === null || i === void 0 || (o = i.type) === null || o === void 0) && o.startsWith("key")) && e.target === "_blank" && (le() ? f = !0 : u = !0);
793
+ let T = _r() && le() && !Ft() ? new KeyboardEvent("keydown", {
2296
794
  keyIdentifier: "Enter",
2297
- metaKey: b,
2298
- ctrlKey: v,
2299
- altKey: C,
2300
- shiftKey: T
795
+ metaKey: f,
796
+ ctrlKey: u,
797
+ altKey: h,
798
+ shiftKey: v
2301
799
  }) : new MouseEvent("click", {
2302
- metaKey: b,
2303
- ctrlKey: v,
2304
- altKey: C,
2305
- shiftKey: T,
800
+ metaKey: f,
801
+ ctrlKey: u,
802
+ altKey: h,
803
+ shiftKey: v,
2306
804
  bubbles: !0,
2307
805
  cancelable: !0
2308
806
  });
2309
- ut.isOpening = o, Ne(t), t.dispatchEvent(W), ut.isOpening = !1;
807
+ ue.isOpening = n, G(e), e.dispatchEvent(T), ue.isOpening = !1;
2310
808
  }
2311
- ut.isOpening = !1;
2312
- let Je = /* @__PURE__ */ new Map(), ur = /* @__PURE__ */ new Set();
2313
- function Br() {
809
+ ue.isOpening = !1;
810
+ let te = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new Set();
811
+ function bt() {
2314
812
  if (typeof window > "u")
2315
813
  return;
2316
- let t = (o) => {
2317
- let l = Je.get(o.target);
2318
- l || (l = /* @__PURE__ */ new Set(), Je.set(o.target, l), o.target.addEventListener("transitioncancel", r)), l.add(o.propertyName);
2319
- }, r = (o) => {
2320
- let l = Je.get(o.target);
2321
- if (l && (l.delete(o.propertyName), l.size === 0 && (o.target.removeEventListener("transitioncancel", r), Je.delete(o.target)), Je.size === 0)) {
2322
- for (let f of ur)
2323
- f();
2324
- ur.clear();
814
+ let e = (n) => {
815
+ let i = te.get(n.target);
816
+ i || (i = /* @__PURE__ */ new Set(), te.set(n.target, i), n.target.addEventListener("transitioncancel", r)), i.add(n.propertyName);
817
+ }, r = (n) => {
818
+ let i = te.get(n.target);
819
+ if (i && (i.delete(n.propertyName), i.size === 0 && (n.target.removeEventListener("transitioncancel", r), te.delete(n.target)), te.size === 0)) {
820
+ for (let o of Me)
821
+ o();
822
+ Me.clear();
2325
823
  }
2326
824
  };
2327
- document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", r);
825
+ document.body.addEventListener("transitionrun", e), document.body.addEventListener("transitionend", r);
2328
826
  }
2329
- typeof document < "u" && (document.readyState !== "loading" ? Br() : document.addEventListener("DOMContentLoaded", Br));
2330
- function ln(t) {
827
+ typeof document < "u" && (document.readyState !== "loading" ? bt() : document.addEventListener("DOMContentLoaded", bt));
828
+ function Mt(e) {
2331
829
  requestAnimationFrame(() => {
2332
- Je.size === 0 ? t() : ur.add(t);
830
+ te.size === 0 ? e() : Me.add(e);
2333
831
  });
2334
832
  }
2335
- function sa() {
2336
- let t = U.useRef(/* @__PURE__ */ new Map()), r = U.useCallback((f, b, v, C) => {
2337
- let T = C != null && C.once ? (...W) => {
2338
- t.current.delete(v), v(...W);
2339
- } : v;
2340
- t.current.set(v, {
2341
- type: b,
2342
- eventTarget: f,
2343
- fn: T,
2344
- options: C
2345
- }), f.addEventListener(b, v, C);
2346
- }, []), o = U.useCallback((f, b, v, C) => {
2347
- var T;
2348
- let W = ((T = t.current.get(v)) === null || T === void 0 ? void 0 : T.fn) || v;
2349
- f.removeEventListener(b, W, C), t.current.delete(v);
2350
- }, []), l = U.useCallback(() => {
2351
- t.current.forEach((f, b) => {
2352
- o(f.eventTarget, f.type, b, f.options);
833
+ function Or() {
834
+ let e = Y(/* @__PURE__ */ new Map()), r = U((o, f, u, h) => {
835
+ let v = h != null && h.once ? (...T) => {
836
+ e.current.delete(u), u(...T);
837
+ } : u;
838
+ e.current.set(u, {
839
+ type: f,
840
+ eventTarget: o,
841
+ fn: v,
842
+ options: h
843
+ }), o.addEventListener(f, u, h);
844
+ }, []), n = U((o, f, u, h) => {
845
+ var v;
846
+ let T = ((v = e.current.get(u)) === null || v === void 0 ? void 0 : v.fn) || u;
847
+ o.removeEventListener(f, T, h), e.current.delete(u);
848
+ }, []), i = U(() => {
849
+ e.current.forEach((o, f) => {
850
+ n(o.eventTarget, o.type, f, o.options);
2353
851
  });
2354
852
  }, [
2355
- o
853
+ n
2356
854
  ]);
2357
- return U.useEffect(() => l, [
2358
- l
855
+ return Pe(() => i, [
856
+ i
2359
857
  ]), {
2360
858
  addGlobalListener: r,
2361
- removeGlobalListener: o,
2362
- removeAllGlobalListeners: l
859
+ removeGlobalListener: n,
860
+ removeAllGlobalListeners: i
2363
861
  };
2364
862
  }
2365
- function cn(t, r) {
2366
- dr(() => {
2367
- if (t && t.ref && r)
2368
- return t.ref.current = r.current, () => {
2369
- t.ref.current = null;
863
+ function Kt(e, r) {
864
+ We(() => {
865
+ if (e && e.ref && r)
866
+ return e.ref.current = r.current, () => {
867
+ e.ref.current = null;
2370
868
  };
2371
869
  });
2372
870
  }
2373
- function lr(t) {
2374
- return t.mozInputSource === 0 && t.isTrusted ? !0 : un() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
871
+ function Ke(e) {
872
+ return e.mozInputSource === 0 && e.isTrusted ? !0 : Lt() && e.pointerType ? e.type === "click" && e.buttons === 1 : e.detail === 0 && !e.pointerType;
2375
873
  }
2376
- function ua(t) {
2377
- return !un() && t.width === 0 && t.height === 0 || t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType === "mouse";
874
+ function Cr(e) {
875
+ return !Lt() && e.width === 0 && e.height === 0 || e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse";
2378
876
  }
2379
- function la(t, r, o) {
2380
- let l = U.useRef(r), f = Ie(() => {
2381
- o && o(l.current);
877
+ function kr(e, r, n) {
878
+ let i = Y(r), o = B(() => {
879
+ n && n(i.current);
2382
880
  });
2383
- U.useEffect(() => {
2384
- var b;
2385
- let v = t == null || (b = t.current) === null || b === void 0 ? void 0 : b.form;
2386
- return v == null || v.addEventListener("reset", f), () => {
2387
- v == null || v.removeEventListener("reset", f);
881
+ Pe(() => {
882
+ var f;
883
+ let u = e == null || (f = e.current) === null || f === void 0 ? void 0 : f.form;
884
+ return u == null || u.addEventListener("reset", o), () => {
885
+ u == null || u.removeEventListener("reset", o);
2388
886
  };
2389
887
  }, [
2390
- t,
2391
- f
888
+ e,
889
+ o
2392
890
  ]);
2393
891
  }
2394
- function ca(t, r) {
2395
- return r.get ? r.get.call(t) : r.value;
892
+ function Fr(e, r) {
893
+ return r.get ? r.get.call(e) : r.value;
2396
894
  }
2397
- function fn(t, r, o) {
2398
- if (!r.has(t))
2399
- throw new TypeError("attempted to " + o + " private field on non-instance");
2400
- return r.get(t);
895
+ function At(e, r, n) {
896
+ if (!r.has(e))
897
+ throw new TypeError("attempted to " + n + " private field on non-instance");
898
+ return r.get(e);
2401
899
  }
2402
- function fa(t, r) {
2403
- var o = fn(t, r, "get");
2404
- return ca(t, o);
900
+ function Dr(e, r) {
901
+ var n = At(e, r, "get");
902
+ return Fr(e, n);
2405
903
  }
2406
- function da(t, r) {
2407
- if (r.has(t))
904
+ function Lr(e, r) {
905
+ if (r.has(e))
2408
906
  throw new TypeError("Cannot initialize the same private elements twice on an object");
2409
907
  }
2410
- function pa(t, r, o) {
2411
- da(t, r), r.set(t, o);
908
+ function Mr(e, r, n) {
909
+ Lr(e, r), r.set(e, n);
2412
910
  }
2413
- function va(t, r, o) {
911
+ function Kr(e, r, n) {
2414
912
  if (r.set)
2415
- r.set.call(t, o);
913
+ r.set.call(e, n);
2416
914
  else {
2417
915
  if (!r.writable)
2418
916
  throw new TypeError("attempted to set read only private field");
2419
- r.value = o;
917
+ r.value = n;
2420
918
  }
2421
919
  }
2422
- function Hr(t, r, o) {
2423
- var l = fn(t, r, "set");
2424
- return va(t, l, o), o;
920
+ function ht(e, r, n) {
921
+ var i = At(e, r, "set");
922
+ return Kr(e, i, n), n;
2425
923
  }
2426
- let Qe = "default", cr = "", Ft = /* @__PURE__ */ new WeakMap();
2427
- function zr(t) {
2428
- sn() ? (Qe === "default" && (cr = document.documentElement.style.webkitUserSelect, document.documentElement.style.webkitUserSelect = "none"), Qe = "disabled") : (t instanceof HTMLElement || t instanceof SVGElement) && (Ft.set(t, t.style.userSelect), t.style.userSelect = "none");
924
+ let re = "default", Ae = "", $e = /* @__PURE__ */ new WeakMap();
925
+ function yt(e) {
926
+ Dt() ? (re === "default" && (Ae = document.documentElement.style.webkitUserSelect, document.documentElement.style.webkitUserSelect = "none"), re = "disabled") : (e instanceof HTMLElement || e instanceof SVGElement) && ($e.set(e, e.style.userSelect), e.style.userSelect = "none");
2429
927
  }
2430
- function kt(t) {
2431
- if (sn()) {
2432
- if (Qe !== "disabled")
928
+ function he(e) {
929
+ if (Dt()) {
930
+ if (re !== "disabled")
2433
931
  return;
2434
- Qe = "restoring", setTimeout(() => {
2435
- ln(() => {
2436
- Qe === "restoring" && (document.documentElement.style.webkitUserSelect === "none" && (document.documentElement.style.webkitUserSelect = cr || ""), cr = "", Qe = "default");
932
+ re = "restoring", setTimeout(() => {
933
+ Mt(() => {
934
+ re === "restoring" && (document.documentElement.style.webkitUserSelect === "none" && (document.documentElement.style.webkitUserSelect = Ae || ""), Ae = "", re = "default");
2437
935
  });
2438
936
  }, 300);
2439
- } else if ((t instanceof HTMLElement || t instanceof SVGElement) && t && Ft.has(t)) {
2440
- let r = Ft.get(t);
2441
- t.style.userSelect === "none" && (t.style.userSelect = r), t.getAttribute("style") === "" && t.removeAttribute("style"), Ft.delete(t);
937
+ } else if ((e instanceof HTMLElement || e instanceof SVGElement) && e && $e.has(e)) {
938
+ let r = $e.get(e);
939
+ e.style.userSelect === "none" && (e.style.userSelect = r), e.getAttribute("style") === "" && e.removeAttribute("style"), $e.delete(e);
2442
940
  }
2443
941
  }
2444
- const dn = At.createContext(null);
2445
- dn.displayName = "PressResponderContext";
2446
- function ya(t) {
2447
- let r = U.useContext(dn);
942
+ const jt = ne.createContext(null);
943
+ jt.displayName = "PressResponderContext";
944
+ function Ar(e) {
945
+ let r = Ct(jt);
2448
946
  if (r) {
2449
- let { register: o, ...l } = r;
2450
- t = We(l, t), o();
947
+ let { register: n, ...i } = r;
948
+ e = z(i, e), n();
2451
949
  }
2452
- return cn(r, t.ref), t;
950
+ return Kt(r, e.ref), e;
2453
951
  }
2454
- var xt = /* @__PURE__ */ new WeakMap();
2455
- class Dt {
952
+ var ye = /* @__PURE__ */ new WeakMap();
953
+ class me {
2456
954
  continuePropagation() {
2457
- Hr(this, xt, !1);
955
+ ht(this, ye, !1);
2458
956
  }
2459
957
  get shouldStopPropagation() {
2460
- return fa(this, xt);
958
+ return Dr(this, ye);
2461
959
  }
2462
- constructor(r, o, l) {
2463
- pa(this, xt, {
960
+ constructor(r, n, i) {
961
+ Mr(this, ye, {
2464
962
  writable: !0,
2465
963
  value: void 0
2466
- }), Hr(this, xt, !0), this.type = r, this.pointerType = o, this.target = l.currentTarget, this.shiftKey = l.shiftKey, this.metaKey = l.metaKey, this.ctrlKey = l.ctrlKey, this.altKey = l.altKey;
964
+ }), ht(this, ye, !0), this.type = r, this.pointerType = n, this.target = i.currentTarget, this.shiftKey = i.shiftKey, this.metaKey = i.metaKey, this.ctrlKey = i.ctrlKey, this.altKey = i.altKey;
2467
965
  }
2468
966
  }
2469
- const Gr = Symbol("linkClicked");
2470
- function ga(t) {
967
+ const mt = Symbol("linkClicked");
968
+ function jr(e) {
2471
969
  let {
2472
970
  onPress: r,
2473
- onPressChange: o,
2474
- onPressStart: l,
2475
- onPressEnd: f,
2476
- onPressUp: b,
2477
- isDisabled: v,
2478
- isPressed: C,
2479
- preventFocusOnPress: T,
2480
- shouldCancelOnPointerExit: W,
2481
- allowTextSelectionOnPress: I,
971
+ onPressChange: n,
972
+ onPressStart: i,
973
+ onPressEnd: o,
974
+ onPressUp: f,
975
+ isDisabled: u,
976
+ isPressed: h,
977
+ preventFocusOnPress: v,
978
+ shouldCancelOnPointerExit: T,
979
+ allowTextSelectionOnPress: w,
2482
980
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
2483
- ref: re,
2484
- ...ce
2485
- } = ya(t), [fe, ve] = U.useState(!1), ye = U.useRef({
981
+ ref: F,
982
+ ...L
983
+ } = Ar(e), [V, H] = Ie(!1), j = Y({
2486
984
  isPressed: !1,
2487
985
  ignoreEmulatedMouseEvents: !1,
2488
986
  ignoreClickAfterPress: !1,
@@ -2492,257 +990,257 @@ function ga(t) {
2492
990
  target: null,
2493
991
  isOverTarget: !1,
2494
992
  pointerType: null
2495
- }), { addGlobalListener: ne, removeAllGlobalListeners: ae } = sa(), L = Ie((u, O) => {
2496
- let ue = ye.current;
2497
- if (v || ue.didFirePressStart)
993
+ }), { addGlobalListener: A, removeAllGlobalListeners: C } = Or(), P = B((a, y) => {
994
+ let D = j.current;
995
+ if (u || D.didFirePressStart)
2498
996
  return;
2499
- let E = !0;
2500
- if (ue.isTriggeringEvent = !0, l) {
2501
- let V = new Dt("pressstart", O, u);
2502
- l(V), E = V.shouldStopPropagation;
997
+ let p = !0;
998
+ if (D.isTriggeringEvent = !0, i) {
999
+ let S = new me("pressstart", y, a);
1000
+ i(S), p = S.shouldStopPropagation;
2503
1001
  }
2504
- return o && o(!0), ue.isTriggeringEvent = !1, ue.didFirePressStart = !0, ve(!0), E;
2505
- }), X = Ie((u, O, ue = !0) => {
2506
- let E = ye.current;
2507
- if (!E.didFirePressStart)
1002
+ return n && n(!0), D.isTriggeringEvent = !1, D.didFirePressStart = !0, H(!0), p;
1003
+ }), O = B((a, y, D = !0) => {
1004
+ let p = j.current;
1005
+ if (!p.didFirePressStart)
2508
1006
  return;
2509
- E.ignoreClickAfterPress = !0, E.didFirePressStart = !1, E.isTriggeringEvent = !0;
2510
- let V = !0;
2511
- if (f) {
2512
- let d = new Dt("pressend", O, u);
2513
- f(d), V = d.shouldStopPropagation;
1007
+ p.ignoreClickAfterPress = !0, p.didFirePressStart = !1, p.isTriggeringEvent = !0;
1008
+ let S = !0;
1009
+ if (o) {
1010
+ let l = new me("pressend", y, a);
1011
+ o(l), S = l.shouldStopPropagation;
2514
1012
  }
2515
- if (o && o(!1), ve(!1), r && ue && !v) {
2516
- let d = new Dt("press", O, u);
2517
- r(d), V && (V = d.shouldStopPropagation);
1013
+ if (n && n(!1), H(!1), r && D && !u) {
1014
+ let l = new me("press", y, a);
1015
+ r(l), S && (S = l.shouldStopPropagation);
2518
1016
  }
2519
- return E.isTriggeringEvent = !1, V;
2520
- }), oe = Ie((u, O) => {
2521
- let ue = ye.current;
2522
- if (!v) {
2523
- if (b) {
2524
- ue.isTriggeringEvent = !0;
2525
- let E = new Dt("pressup", O, u);
2526
- return b(E), ue.isTriggeringEvent = !1, E.shouldStopPropagation;
1017
+ return p.isTriggeringEvent = !1, S;
1018
+ }), I = B((a, y) => {
1019
+ let D = j.current;
1020
+ if (!u) {
1021
+ if (f) {
1022
+ D.isTriggeringEvent = !0;
1023
+ let p = new me("pressup", y, a);
1024
+ return f(p), D.isTriggeringEvent = !1, p.shouldStopPropagation;
2527
1025
  }
2528
1026
  return !0;
2529
1027
  }
2530
- }), K = Ie((u) => {
2531
- let O = ye.current;
2532
- O.isPressed && (O.isOverTarget && X(Te(O.target, u), O.pointerType, !1), O.isPressed = !1, O.isOverTarget = !1, O.activePointerId = null, O.pointerType = null, ae(), I || kt(O.target));
2533
- }), ie = Ie((u) => {
2534
- W && K(u);
2535
- }), he = U.useMemo(() => {
2536
- let u = ye.current, O = {
2537
- onKeyDown(E) {
2538
- if (ar(E.nativeEvent, E.currentTarget) && E.currentTarget.contains(E.target)) {
2539
- Xr(E.target, E.key) && E.preventDefault();
2540
- let V = !0;
2541
- !u.isPressed && !E.repeat && (u.target = E.currentTarget, u.isPressed = !0, V = L(E, "keyboard"), ne(document, "keyup", ue, !1)), V && E.stopPropagation(), E.metaKey && st() && u.metaKeyEvents.set(E.key, E.nativeEvent);
1028
+ }), M = B((a) => {
1029
+ let y = j.current;
1030
+ y.isPressed && (y.isOverTarget && O(N(y.target, a), y.pointerType, !1), y.isPressed = !1, y.isOverTarget = !1, y.activePointerId = null, y.pointerType = null, C(), w || he(y.target));
1031
+ }), J = B((a) => {
1032
+ T && M(a);
1033
+ }), Te = Ot(() => {
1034
+ let a = j.current, y = {
1035
+ onKeyDown(p) {
1036
+ if (Fe(p.nativeEvent, p.currentTarget) && p.currentTarget.contains(p.target)) {
1037
+ Pt(p.target, p.key) && p.preventDefault();
1038
+ let S = !0;
1039
+ !a.isPressed && !p.repeat && (a.target = p.currentTarget, a.isPressed = !0, S = P(p, "keyboard"), A(document, "keyup", D, !1)), S && p.stopPropagation(), p.metaKey && le() && a.metaKeyEvents.set(p.key, p.nativeEvent);
2542
1040
  } else
2543
- E.key === "Meta" && (u.metaKeyEvents = /* @__PURE__ */ new Map());
1041
+ p.key === "Meta" && (a.metaKeyEvents = /* @__PURE__ */ new Map());
2544
1042
  },
2545
- onKeyUp(E) {
2546
- ar(E.nativeEvent, E.currentTarget) && !E.repeat && E.currentTarget.contains(E.target) && oe(Te(u.target, E), "keyboard");
1043
+ onKeyUp(p) {
1044
+ Fe(p.nativeEvent, p.currentTarget) && !p.repeat && p.currentTarget.contains(p.target) && I(N(a.target, p), "keyboard");
2547
1045
  },
2548
- onClick(E) {
2549
- if (!(E && !E.currentTarget.contains(E.target)) && E && E.button === 0 && !u.isTriggeringEvent && !ut.isOpening) {
2550
- let V = !0;
2551
- if (v && E.preventDefault(), !u.ignoreClickAfterPress && !u.ignoreEmulatedMouseEvents && !u.isPressed && (u.pointerType === "virtual" || lr(E.nativeEvent))) {
2552
- !v && !T && Ne(E.currentTarget);
2553
- let d = L(E, "virtual"), g = oe(E, "virtual"), A = X(E, "virtual");
2554
- V = d && g && A;
1046
+ onClick(p) {
1047
+ if (!(p && !p.currentTarget.contains(p.target)) && p && p.button === 0 && !a.isTriggeringEvent && !ue.isOpening) {
1048
+ let S = !0;
1049
+ if (u && p.preventDefault(), !a.ignoreClickAfterPress && !a.ignoreEmulatedMouseEvents && !a.isPressed && (a.pointerType === "virtual" || Ke(p.nativeEvent))) {
1050
+ !u && !v && G(p.currentTarget);
1051
+ let l = P(p, "virtual"), c = I(p, "virtual"), _ = O(p, "virtual");
1052
+ S = l && c && _;
2555
1053
  }
2556
- u.ignoreEmulatedMouseEvents = !1, u.ignoreClickAfterPress = !1, V && E.stopPropagation();
2557
- }
2558
- }
2559
- }, ue = (E) => {
2560
- var V;
2561
- if (u.isPressed && ar(E, u.target)) {
2562
- var d;
2563
- Xr(E.target, E.key) && E.preventDefault();
2564
- let g = E.target, A = X(Te(u.target, E), "keyboard", u.target.contains(g));
2565
- ae(), A && E.stopPropagation(), E.key !== "Enter" && vr(u.target) && u.target.contains(g) && !E[Gr] && (E[Gr] = !0, ut(u.target, E, !1)), u.isPressed = !1, (d = u.metaKeyEvents) === null || d === void 0 || d.delete(E.key);
2566
- } else if (E.key === "Meta" && (!((V = u.metaKeyEvents) === null || V === void 0) && V.size)) {
2567
- let g = u.metaKeyEvents;
2568
- u.metaKeyEvents = null;
2569
- for (let A of g.values())
2570
- u.target.dispatchEvent(new KeyboardEvent("keyup", A));
1054
+ a.ignoreEmulatedMouseEvents = !1, a.ignoreClickAfterPress = !1, S && p.stopPropagation();
1055
+ }
1056
+ }
1057
+ }, D = (p) => {
1058
+ var S;
1059
+ if (a.isPressed && Fe(p, a.target)) {
1060
+ var l;
1061
+ Pt(p.target, p.key) && p.preventDefault();
1062
+ let c = p.target, _ = O(N(a.target, p), "keyboard", a.target.contains(c));
1063
+ C(), _ && p.stopPropagation(), p.key !== "Enter" && Ue(a.target) && a.target.contains(c) && !p[mt] && (p[mt] = !0, ue(a.target, p, !1)), a.isPressed = !1, (l = a.metaKeyEvents) === null || l === void 0 || l.delete(p.key);
1064
+ } else if (p.key === "Meta" && (!((S = a.metaKeyEvents) === null || S === void 0) && S.size)) {
1065
+ let c = a.metaKeyEvents;
1066
+ a.metaKeyEvents = null;
1067
+ for (let _ of c.values())
1068
+ a.target.dispatchEvent(new KeyboardEvent("keyup", _));
2571
1069
  }
2572
1070
  };
2573
1071
  if (typeof PointerEvent < "u") {
2574
- O.onPointerDown = (g) => {
2575
- if (g.button !== 0 || !g.currentTarget.contains(g.target))
1072
+ y.onPointerDown = (c) => {
1073
+ if (c.button !== 0 || !c.currentTarget.contains(c.target))
2576
1074
  return;
2577
- if (ua(g.nativeEvent)) {
2578
- u.pointerType = "virtual";
1075
+ if (Cr(c.nativeEvent)) {
1076
+ a.pointerType = "virtual";
2579
1077
  return;
2580
1078
  }
2581
- or(g.currentTarget) && g.preventDefault(), u.pointerType = g.pointerType;
2582
- let A = !0;
2583
- u.isPressed || (u.isPressed = !0, u.isOverTarget = !0, u.activePointerId = g.pointerId, u.target = g.currentTarget, !v && !T && Ne(g.currentTarget), I || zr(u.target), A = L(g, u.pointerType), ne(document, "pointermove", E, !1), ne(document, "pointerup", V, !1), ne(document, "pointercancel", d, !1)), A && g.stopPropagation();
2584
- }, O.onMouseDown = (g) => {
2585
- g.currentTarget.contains(g.target) && g.button === 0 && (or(g.currentTarget) && g.preventDefault(), g.stopPropagation());
2586
- }, O.onPointerUp = (g) => {
2587
- !g.currentTarget.contains(g.target) || u.pointerType === "virtual" || g.button === 0 && qe(g, g.currentTarget) && oe(g, u.pointerType || g.pointerType);
1079
+ De(c.currentTarget) && c.preventDefault(), a.pointerType = c.pointerType;
1080
+ let _ = !0;
1081
+ a.isPressed || (a.isPressed = !0, a.isOverTarget = !0, a.activePointerId = c.pointerId, a.target = c.currentTarget, !u && !v && G(c.currentTarget), w || yt(a.target), _ = P(c, a.pointerType), A(document, "pointermove", p, !1), A(document, "pointerup", S, !1), A(document, "pointercancel", l, !1)), _ && c.stopPropagation();
1082
+ }, y.onMouseDown = (c) => {
1083
+ c.currentTarget.contains(c.target) && c.button === 0 && (De(c.currentTarget) && c.preventDefault(), c.stopPropagation());
1084
+ }, y.onPointerUp = (c) => {
1085
+ !c.currentTarget.contains(c.target) || a.pointerType === "virtual" || c.button === 0 && Q(c, c.currentTarget) && I(c, a.pointerType || c.pointerType);
2588
1086
  };
2589
- let E = (g) => {
2590
- g.pointerId === u.activePointerId && (qe(g, u.target) ? u.isOverTarget || (u.isOverTarget = !0, L(Te(u.target, g), u.pointerType)) : u.isOverTarget && (u.isOverTarget = !1, X(Te(u.target, g), u.pointerType, !1), ie(g)));
2591
- }, V = (g) => {
2592
- g.pointerId === u.activePointerId && u.isPressed && g.button === 0 && (qe(g, u.target) ? X(Te(u.target, g), u.pointerType) : u.isOverTarget && X(Te(u.target, g), u.pointerType, !1), u.isPressed = !1, u.isOverTarget = !1, u.activePointerId = null, u.pointerType = null, ae(), I || kt(u.target));
2593
- }, d = (g) => {
2594
- K(g);
1087
+ let p = (c) => {
1088
+ c.pointerId === a.activePointerId && (Q(c, a.target) ? a.isOverTarget || (a.isOverTarget = !0, P(N(a.target, c), a.pointerType)) : a.isOverTarget && (a.isOverTarget = !1, O(N(a.target, c), a.pointerType, !1), J(c)));
1089
+ }, S = (c) => {
1090
+ c.pointerId === a.activePointerId && a.isPressed && c.button === 0 && (Q(c, a.target) ? O(N(a.target, c), a.pointerType) : a.isOverTarget && O(N(a.target, c), a.pointerType, !1), a.isPressed = !1, a.isOverTarget = !1, a.activePointerId = null, a.pointerType = null, C(), w || he(a.target));
1091
+ }, l = (c) => {
1092
+ M(c);
2595
1093
  };
2596
- O.onDragStart = (g) => {
2597
- g.currentTarget.contains(g.target) && K(g);
1094
+ y.onDragStart = (c) => {
1095
+ c.currentTarget.contains(c.target) && M(c);
2598
1096
  };
2599
1097
  } else {
2600
- O.onMouseDown = (d) => {
2601
- if (d.button !== 0 || !d.currentTarget.contains(d.target))
1098
+ y.onMouseDown = (l) => {
1099
+ if (l.button !== 0 || !l.currentTarget.contains(l.target))
2602
1100
  return;
2603
- if (or(d.currentTarget) && d.preventDefault(), u.ignoreEmulatedMouseEvents) {
2604
- d.stopPropagation();
1101
+ if (De(l.currentTarget) && l.preventDefault(), a.ignoreEmulatedMouseEvents) {
1102
+ l.stopPropagation();
2605
1103
  return;
2606
1104
  }
2607
- u.isPressed = !0, u.isOverTarget = !0, u.target = d.currentTarget, u.pointerType = lr(d.nativeEvent) ? "virtual" : "mouse", !v && !T && Ne(d.currentTarget), L(d, u.pointerType) && d.stopPropagation(), ne(document, "mouseup", E, !1);
2608
- }, O.onMouseEnter = (d) => {
2609
- if (!d.currentTarget.contains(d.target))
1105
+ a.isPressed = !0, a.isOverTarget = !0, a.target = l.currentTarget, a.pointerType = Ke(l.nativeEvent) ? "virtual" : "mouse", !u && !v && G(l.currentTarget), P(l, a.pointerType) && l.stopPropagation(), A(document, "mouseup", p, !1);
1106
+ }, y.onMouseEnter = (l) => {
1107
+ if (!l.currentTarget.contains(l.target))
2610
1108
  return;
2611
- let g = !0;
2612
- u.isPressed && !u.ignoreEmulatedMouseEvents && (u.isOverTarget = !0, g = L(d, u.pointerType)), g && d.stopPropagation();
2613
- }, O.onMouseLeave = (d) => {
2614
- if (!d.currentTarget.contains(d.target))
1109
+ let c = !0;
1110
+ a.isPressed && !a.ignoreEmulatedMouseEvents && (a.isOverTarget = !0, c = P(l, a.pointerType)), c && l.stopPropagation();
1111
+ }, y.onMouseLeave = (l) => {
1112
+ if (!l.currentTarget.contains(l.target))
2615
1113
  return;
2616
- let g = !0;
2617
- u.isPressed && !u.ignoreEmulatedMouseEvents && (u.isOverTarget = !1, g = X(d, u.pointerType, !1), ie(d)), g && d.stopPropagation();
2618
- }, O.onMouseUp = (d) => {
2619
- d.currentTarget.contains(d.target) && !u.ignoreEmulatedMouseEvents && d.button === 0 && oe(d, u.pointerType || "mouse");
1114
+ let c = !0;
1115
+ a.isPressed && !a.ignoreEmulatedMouseEvents && (a.isOverTarget = !1, c = O(l, a.pointerType, !1), J(l)), c && l.stopPropagation();
1116
+ }, y.onMouseUp = (l) => {
1117
+ l.currentTarget.contains(l.target) && !a.ignoreEmulatedMouseEvents && l.button === 0 && I(l, a.pointerType || "mouse");
2620
1118
  };
2621
- let E = (d) => {
2622
- if (d.button === 0) {
2623
- if (u.isPressed = !1, ae(), u.ignoreEmulatedMouseEvents) {
2624
- u.ignoreEmulatedMouseEvents = !1;
1119
+ let p = (l) => {
1120
+ if (l.button === 0) {
1121
+ if (a.isPressed = !1, C(), a.ignoreEmulatedMouseEvents) {
1122
+ a.ignoreEmulatedMouseEvents = !1;
2625
1123
  return;
2626
1124
  }
2627
- qe(d, u.target) ? X(Te(u.target, d), u.pointerType) : u.isOverTarget && X(Te(u.target, d), u.pointerType, !1), u.isOverTarget = !1;
1125
+ Q(l, a.target) ? O(N(a.target, l), a.pointerType) : a.isOverTarget && O(N(a.target, l), a.pointerType, !1), a.isOverTarget = !1;
2628
1126
  }
2629
1127
  };
2630
- O.onTouchStart = (d) => {
2631
- if (!d.currentTarget.contains(d.target))
1128
+ y.onTouchStart = (l) => {
1129
+ if (!l.currentTarget.contains(l.target))
2632
1130
  return;
2633
- let g = ha(d.nativeEvent);
2634
- if (!g)
1131
+ let c = Ir(l.nativeEvent);
1132
+ if (!c)
2635
1133
  return;
2636
- u.activePointerId = g.identifier, u.ignoreEmulatedMouseEvents = !0, u.isOverTarget = !0, u.isPressed = !0, u.target = d.currentTarget, u.pointerType = "touch", !v && !T && Ne(d.currentTarget), I || zr(u.target), L(d, u.pointerType) && d.stopPropagation(), ne(window, "scroll", V, !0);
2637
- }, O.onTouchMove = (d) => {
2638
- if (!d.currentTarget.contains(d.target))
1134
+ a.activePointerId = c.identifier, a.ignoreEmulatedMouseEvents = !0, a.isOverTarget = !0, a.isPressed = !0, a.target = l.currentTarget, a.pointerType = "touch", !u && !v && G(l.currentTarget), w || yt(a.target), P(l, a.pointerType) && l.stopPropagation(), A(window, "scroll", S, !0);
1135
+ }, y.onTouchMove = (l) => {
1136
+ if (!l.currentTarget.contains(l.target))
2639
1137
  return;
2640
- if (!u.isPressed) {
2641
- d.stopPropagation();
1138
+ if (!a.isPressed) {
1139
+ l.stopPropagation();
2642
1140
  return;
2643
1141
  }
2644
- let g = qr(d.nativeEvent, u.activePointerId), A = !0;
2645
- g && qe(g, d.currentTarget) ? u.isOverTarget || (u.isOverTarget = !0, A = L(d, u.pointerType)) : u.isOverTarget && (u.isOverTarget = !1, A = X(d, u.pointerType, !1), ie(d)), A && d.stopPropagation();
2646
- }, O.onTouchEnd = (d) => {
2647
- if (!d.currentTarget.contains(d.target))
1142
+ let c = $t(l.nativeEvent, a.activePointerId), _ = !0;
1143
+ c && Q(c, l.currentTarget) ? a.isOverTarget || (a.isOverTarget = !0, _ = P(l, a.pointerType)) : a.isOverTarget && (a.isOverTarget = !1, _ = O(l, a.pointerType, !1), J(l)), _ && l.stopPropagation();
1144
+ }, y.onTouchEnd = (l) => {
1145
+ if (!l.currentTarget.contains(l.target))
2648
1146
  return;
2649
- if (!u.isPressed) {
2650
- d.stopPropagation();
1147
+ if (!a.isPressed) {
1148
+ l.stopPropagation();
2651
1149
  return;
2652
1150
  }
2653
- let g = qr(d.nativeEvent, u.activePointerId), A = !0;
2654
- g && qe(g, d.currentTarget) ? (oe(d, u.pointerType), A = X(d, u.pointerType)) : u.isOverTarget && (A = X(d, u.pointerType, !1)), A && d.stopPropagation(), u.isPressed = !1, u.activePointerId = null, u.isOverTarget = !1, u.ignoreEmulatedMouseEvents = !0, I || kt(u.target), ae();
2655
- }, O.onTouchCancel = (d) => {
2656
- d.currentTarget.contains(d.target) && (d.stopPropagation(), u.isPressed && K(d));
1151
+ let c = $t(l.nativeEvent, a.activePointerId), _ = !0;
1152
+ c && Q(c, l.currentTarget) ? (I(l, a.pointerType), _ = O(l, a.pointerType)) : a.isOverTarget && (_ = O(l, a.pointerType, !1)), _ && l.stopPropagation(), a.isPressed = !1, a.activePointerId = null, a.isOverTarget = !1, a.ignoreEmulatedMouseEvents = !0, w || he(a.target), C();
1153
+ }, y.onTouchCancel = (l) => {
1154
+ l.currentTarget.contains(l.target) && (l.stopPropagation(), a.isPressed && M(l));
2657
1155
  };
2658
- let V = (d) => {
2659
- u.isPressed && d.target.contains(u.target) && K({
2660
- currentTarget: u.target,
1156
+ let S = (l) => {
1157
+ a.isPressed && l.target.contains(a.target) && M({
1158
+ currentTarget: a.target,
2661
1159
  shiftKey: !1,
2662
1160
  ctrlKey: !1,
2663
1161
  metaKey: !1,
2664
1162
  altKey: !1
2665
1163
  });
2666
1164
  };
2667
- O.onDragStart = (d) => {
2668
- d.currentTarget.contains(d.target) && K(d);
1165
+ y.onDragStart = (l) => {
1166
+ l.currentTarget.contains(l.target) && M(l);
2669
1167
  };
2670
1168
  }
2671
- return O;
1169
+ return y;
2672
1170
  }, [
2673
- ne,
1171
+ A,
1172
+ u,
2674
1173
  v,
2675
- T,
2676
- ae,
2677
- I,
2678
- K,
2679
- ie,
2680
- X,
2681
- L,
2682
- oe
1174
+ C,
1175
+ w,
1176
+ M,
1177
+ J,
1178
+ O,
1179
+ P,
1180
+ I
2683
1181
  ]);
2684
- return U.useEffect(() => () => {
2685
- I || kt(ye.current.target);
1182
+ return Pe(() => () => {
1183
+ w || he(j.current.target);
2686
1184
  }, [
2687
- I
1185
+ w
2688
1186
  ]), {
2689
- isPressed: C || fe,
2690
- pressProps: We(ce, he)
1187
+ isPressed: h || V,
1188
+ pressProps: z(L, Te)
2691
1189
  };
2692
1190
  }
2693
- function vr(t) {
2694
- return t.tagName === "A" && t.hasAttribute("href");
1191
+ function Ue(e) {
1192
+ return e.tagName === "A" && e.hasAttribute("href");
2695
1193
  }
2696
- function ar(t, r) {
2697
- const { key: o, code: l } = t, f = r, b = f.getAttribute("role");
2698
- return (o === "Enter" || o === " " || o === "Spacebar" || l === "Space") && !(f instanceof HTMLInputElement && !pn(f, o) || f instanceof HTMLTextAreaElement || f.isContentEditable) && // Links should only trigger with Enter key
2699
- !((b === "link" || !b && vr(f)) && o !== "Enter");
1194
+ function Fe(e, r) {
1195
+ const { key: n, code: i } = e, o = r, f = o.getAttribute("role");
1196
+ return (n === "Enter" || n === " " || n === "Spacebar" || i === "Space") && !(o instanceof HTMLInputElement && !It(o, n) || o instanceof HTMLTextAreaElement || o.isContentEditable) && // Links should only trigger with Enter key
1197
+ !((f === "link" || !f && Ue(o)) && n !== "Enter");
2700
1198
  }
2701
- function ha(t) {
2702
- const { targetTouches: r } = t;
1199
+ function Ir(e) {
1200
+ const { targetTouches: r } = e;
2703
1201
  return r.length > 0 ? r[0] : null;
2704
1202
  }
2705
- function qr(t, r) {
2706
- const o = t.changedTouches;
2707
- for (let l = 0; l < o.length; l++) {
2708
- const f = o[l];
2709
- if (f.identifier === r)
2710
- return f;
1203
+ function $t(e, r) {
1204
+ const n = e.changedTouches;
1205
+ for (let i = 0; i < n.length; i++) {
1206
+ const o = n[i];
1207
+ if (o.identifier === r)
1208
+ return o;
2711
1209
  }
2712
1210
  return null;
2713
1211
  }
2714
- function Te(t, r) {
1212
+ function N(e, r) {
2715
1213
  return {
2716
- currentTarget: t,
1214
+ currentTarget: e,
2717
1215
  shiftKey: r.shiftKey,
2718
1216
  ctrlKey: r.ctrlKey,
2719
1217
  metaKey: r.metaKey,
2720
1218
  altKey: r.altKey
2721
1219
  };
2722
1220
  }
2723
- function ba(t) {
2724
- let r = t.width / 2 || t.radiusX || 0, o = t.height / 2 || t.radiusY || 0;
1221
+ function Wr(e) {
1222
+ let r = e.width / 2 || e.radiusX || 0, n = e.height / 2 || e.radiusY || 0;
2725
1223
  return {
2726
- top: t.clientY - o,
2727
- right: t.clientX + r,
2728
- bottom: t.clientY + o,
2729
- left: t.clientX - r
1224
+ top: e.clientY - n,
1225
+ right: e.clientX + r,
1226
+ bottom: e.clientY + n,
1227
+ left: e.clientX - r
2730
1228
  };
2731
1229
  }
2732
- function ma(t, r) {
2733
- return !(t.left > r.right || r.left > t.right || t.top > r.bottom || r.top > t.bottom);
1230
+ function Nr(e, r) {
1231
+ return !(e.left > r.right || r.left > e.right || e.top > r.bottom || r.top > e.bottom);
2734
1232
  }
2735
- function qe(t, r) {
2736
- let o = r.getBoundingClientRect(), l = ba(t);
2737
- return ma(o, l);
1233
+ function Q(e, r) {
1234
+ let n = r.getBoundingClientRect(), i = Wr(e);
1235
+ return Nr(n, i);
2738
1236
  }
2739
- function or(t) {
2740
- return !(t instanceof HTMLElement) || !t.hasAttribute("draggable");
1237
+ function De(e) {
1238
+ return !(e instanceof HTMLElement) || !e.hasAttribute("draggable");
2741
1239
  }
2742
- function Xr(t, r) {
2743
- return t instanceof HTMLInputElement ? !pn(t, r) : t instanceof HTMLButtonElement ? t.type !== "submit" && t.type !== "reset" : !vr(t);
1240
+ function Pt(e, r) {
1241
+ return e instanceof HTMLInputElement ? !It(e, r) : e instanceof HTMLButtonElement ? e.type !== "submit" && e.type !== "reset" : !Ue(e);
2744
1242
  }
2745
- const Ea = /* @__PURE__ */ new Set([
1243
+ const Ur = /* @__PURE__ */ new Set([
2746
1244
  "checkbox",
2747
1245
  "radio",
2748
1246
  "range",
@@ -2753,10 +1251,10 @@ const Ea = /* @__PURE__ */ new Set([
2753
1251
  "submit",
2754
1252
  "reset"
2755
1253
  ]);
2756
- function pn(t, r) {
2757
- return t.type === "checkbox" || t.type === "radio" ? r === " " : Ea.has(t.type);
1254
+ function It(e, r) {
1255
+ return e.type === "checkbox" || e.type === "radio" ? r === " " : Ur.has(e.type);
2758
1256
  }
2759
- class _a {
1257
+ class Vr {
2760
1258
  isDefaultPrevented() {
2761
1259
  return this.nativeEvent.defaultPrevented;
2762
1260
  }
@@ -2771,44 +1269,44 @@ class _a {
2771
1269
  }
2772
1270
  persist() {
2773
1271
  }
2774
- constructor(r, o) {
2775
- this.nativeEvent = o, this.target = o.target, this.currentTarget = o.currentTarget, this.relatedTarget = o.relatedTarget, this.bubbles = o.bubbles, this.cancelable = o.cancelable, this.defaultPrevented = o.defaultPrevented, this.eventPhase = o.eventPhase, this.isTrusted = o.isTrusted, this.timeStamp = o.timeStamp, this.type = r;
1272
+ constructor(r, n) {
1273
+ this.nativeEvent = n, this.target = n.target, this.currentTarget = n.currentTarget, this.relatedTarget = n.relatedTarget, this.bubbles = n.bubbles, this.cancelable = n.cancelable, this.defaultPrevented = n.defaultPrevented, this.eventPhase = n.eventPhase, this.isTrusted = n.isTrusted, this.timeStamp = n.timeStamp, this.type = r;
2776
1274
  }
2777
1275
  }
2778
- function vn(t) {
2779
- let r = U.useRef({
1276
+ function Wt(e) {
1277
+ let r = Y({
2780
1278
  isFocused: !1,
2781
1279
  observer: null
2782
1280
  });
2783
- dr(() => {
2784
- const l = r.current;
1281
+ We(() => {
1282
+ const i = r.current;
2785
1283
  return () => {
2786
- l.observer && (l.observer.disconnect(), l.observer = null);
1284
+ i.observer && (i.observer.disconnect(), i.observer = null);
2787
1285
  };
2788
1286
  }, []);
2789
- let o = Ie((l) => {
2790
- t == null || t(l);
1287
+ let n = B((i) => {
1288
+ e == null || e(i);
2791
1289
  });
2792
- return U.useCallback((l) => {
2793
- if (l.target instanceof HTMLButtonElement || l.target instanceof HTMLInputElement || l.target instanceof HTMLTextAreaElement || l.target instanceof HTMLSelectElement) {
1290
+ return U((i) => {
1291
+ if (i.target instanceof HTMLButtonElement || i.target instanceof HTMLInputElement || i.target instanceof HTMLTextAreaElement || i.target instanceof HTMLSelectElement) {
2794
1292
  r.current.isFocused = !0;
2795
- let f = l.target, b = (v) => {
2796
- r.current.isFocused = !1, f.disabled && o(new _a("blur", v)), r.current.observer && (r.current.observer.disconnect(), r.current.observer = null);
1293
+ let o = i.target, f = (u) => {
1294
+ r.current.isFocused = !1, o.disabled && n(new Vr("blur", u)), r.current.observer && (r.current.observer.disconnect(), r.current.observer = null);
2797
1295
  };
2798
- f.addEventListener("focusout", b, {
1296
+ o.addEventListener("focusout", f, {
2799
1297
  once: !0
2800
1298
  }), r.current.observer = new MutationObserver(() => {
2801
- if (r.current.isFocused && f.disabled) {
1299
+ if (r.current.isFocused && o.disabled) {
2802
1300
  r.current.observer.disconnect();
2803
- let v = f === document.activeElement ? null : document.activeElement;
2804
- f.dispatchEvent(new FocusEvent("blur", {
2805
- relatedTarget: v
2806
- })), f.dispatchEvent(new FocusEvent("focusout", {
1301
+ let u = o === document.activeElement ? null : document.activeElement;
1302
+ o.dispatchEvent(new FocusEvent("blur", {
1303
+ relatedTarget: u
1304
+ })), o.dispatchEvent(new FocusEvent("focusout", {
2807
1305
  bubbles: !0,
2808
- relatedTarget: v
1306
+ relatedTarget: u
2809
1307
  }));
2810
1308
  }
2811
- }), r.current.observer.observe(f, {
1309
+ }), r.current.observer.observe(o, {
2812
1310
  attributes: !0,
2813
1311
  attributeFilter: [
2814
1312
  "disabled"
@@ -2816,81 +1314,81 @@ function vn(t) {
2816
1314
  });
2817
1315
  }
2818
1316
  }, [
2819
- o
1317
+ n
2820
1318
  ]);
2821
1319
  }
2822
- function Pa(t) {
2823
- let { isDisabled: r, onFocus: o, onBlur: l, onFocusChange: f } = t;
2824
- const b = U.useCallback((T) => {
2825
- if (T.target === T.currentTarget)
2826
- return l && l(T), f && f(!1), !0;
1320
+ function Yr(e) {
1321
+ let { isDisabled: r, onFocus: n, onBlur: i, onFocusChange: o } = e;
1322
+ const f = U((v) => {
1323
+ if (v.target === v.currentTarget)
1324
+ return i && i(v), o && o(!1), !0;
2827
1325
  }, [
2828
- l,
2829
- f
2830
- ]), v = vn(b), C = U.useCallback((T) => {
2831
- T.target === T.currentTarget && document.activeElement === T.target && (o && o(T), f && f(!0), v(T));
1326
+ i,
1327
+ o
1328
+ ]), u = Wt(f), h = U((v) => {
1329
+ v.target === v.currentTarget && document.activeElement === v.target && (n && n(v), o && o(!0), u(v));
2832
1330
  }, [
2833
- f,
2834
1331
  o,
2835
- v
1332
+ n,
1333
+ u
2836
1334
  ]);
2837
1335
  return {
2838
1336
  focusProps: {
2839
- onFocus: !r && (o || f || l) ? C : void 0,
2840
- onBlur: !r && (l || f) ? b : void 0
1337
+ onFocus: !r && (n || o || i) ? h : void 0,
1338
+ onBlur: !r && (i || o) ? f : void 0
2841
1339
  }
2842
1340
  };
2843
1341
  }
2844
- let lt = null, Ta = /* @__PURE__ */ new Set(), Jr = !1, Ke = !1, fr = !1;
2845
- function yr(t, r) {
2846
- for (let o of Ta)
2847
- o(t, r);
1342
+ let ce = null, Hr = /* @__PURE__ */ new Set(), Et = !1, q = !1, je = !1;
1343
+ function Ve(e, r) {
1344
+ for (let n of Hr)
1345
+ n(e, r);
2848
1346
  }
2849
- function $a(t) {
2850
- return !(t.metaKey || !st() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
1347
+ function Br(e) {
1348
+ return !(e.metaKey || !le() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
2851
1349
  }
2852
- function Qr(t) {
2853
- Ke = !0, $a(t) && (lt = "keyboard", yr("keyboard", t));
1350
+ function Tt(e) {
1351
+ q = !0, Br(e) && (ce = "keyboard", Ve("keyboard", e));
2854
1352
  }
2855
- function Xe(t) {
2856
- lt = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (Ke = !0, yr("pointer", t));
1353
+ function ee(e) {
1354
+ ce = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (q = !0, Ve("pointer", e));
2857
1355
  }
2858
- function wa(t) {
2859
- lr(t) && (Ke = !0, lt = "virtual");
1356
+ function Gr(e) {
1357
+ Ke(e) && (q = !0, ce = "virtual");
2860
1358
  }
2861
- function Ra(t) {
2862
- t.target === window || t.target === document || (!Ke && !fr && (lt = "virtual", yr("virtual", t)), Ke = !1, fr = !1);
1359
+ function zr(e) {
1360
+ e.target === window || e.target === document || (!q && !je && (ce = "virtual", Ve("virtual", e)), q = !1, je = !1);
2863
1361
  }
2864
- function Sa() {
2865
- Ke = !1, fr = !0;
1362
+ function qr() {
1363
+ q = !1, je = !0;
2866
1364
  }
2867
- function Zr() {
2868
- if (typeof window > "u" || Jr)
1365
+ function wt() {
1366
+ if (typeof window > "u" || Et)
2869
1367
  return;
2870
- let t = HTMLElement.prototype.focus;
1368
+ let e = HTMLElement.prototype.focus;
2871
1369
  HTMLElement.prototype.focus = function() {
2872
- Ke = !0, t.apply(this, arguments);
2873
- }, document.addEventListener("keydown", Qr, !0), document.addEventListener("keyup", Qr, !0), document.addEventListener("click", wa, !0), window.addEventListener("focus", Ra, !0), window.addEventListener("blur", Sa, !1), typeof PointerEvent < "u" ? (document.addEventListener("pointerdown", Xe, !0), document.addEventListener("pointermove", Xe, !0), document.addEventListener("pointerup", Xe, !0)) : (document.addEventListener("mousedown", Xe, !0), document.addEventListener("mousemove", Xe, !0), document.addEventListener("mouseup", Xe, !0)), Jr = !0;
1370
+ q = !0, e.apply(this, arguments);
1371
+ }, document.addEventListener("keydown", Tt, !0), document.addEventListener("keyup", Tt, !0), document.addEventListener("click", Gr, !0), window.addEventListener("focus", zr, !0), window.addEventListener("blur", qr, !1), typeof PointerEvent < "u" ? (document.addEventListener("pointerdown", ee, !0), document.addEventListener("pointermove", ee, !0), document.addEventListener("pointerup", ee, !0)) : (document.addEventListener("mousedown", ee, !0), document.addEventListener("mousemove", ee, !0), document.addEventListener("mouseup", ee, !0)), Et = !0;
2874
1372
  }
2875
- typeof document < "u" && (document.readyState !== "loading" ? Zr() : document.addEventListener("DOMContentLoaded", Zr));
2876
- function Ca() {
2877
- return lt;
1373
+ typeof document < "u" && (document.readyState !== "loading" ? wt() : document.addEventListener("DOMContentLoaded", wt));
1374
+ function Jr() {
1375
+ return ce;
2878
1376
  }
2879
- function Oa(t) {
2880
- let { isDisabled: r, onBlurWithin: o, onFocusWithin: l, onFocusWithinChange: f } = t, b = U.useRef({
1377
+ function Xr(e) {
1378
+ let { isDisabled: r, onBlurWithin: n, onFocusWithin: i, onFocusWithinChange: o } = e, f = Y({
2881
1379
  isFocusWithin: !1
2882
- }), v = U.useCallback((W) => {
2883
- b.current.isFocusWithin && !W.currentTarget.contains(W.relatedTarget) && (b.current.isFocusWithin = !1, o && o(W), f && f(!1));
1380
+ }), u = U((T) => {
1381
+ f.current.isFocusWithin && !T.currentTarget.contains(T.relatedTarget) && (f.current.isFocusWithin = !1, n && n(T), o && o(!1));
2884
1382
  }, [
1383
+ n,
2885
1384
  o,
2886
- f,
2887
- b
2888
- ]), C = vn(v), T = U.useCallback((W) => {
2889
- !b.current.isFocusWithin && document.activeElement === W.target && (l && l(W), f && f(!0), b.current.isFocusWithin = !0, C(W));
1385
+ f
1386
+ ]), h = Wt(u), v = U((T) => {
1387
+ !f.current.isFocusWithin && document.activeElement === T.target && (i && i(T), o && o(!0), f.current.isFocusWithin = !0, h(T));
2890
1388
  }, [
2891
- l,
2892
- f,
2893
- C
1389
+ i,
1390
+ o,
1391
+ h
2894
1392
  ]);
2895
1393
  return r ? {
2896
1394
  focusWithinProps: {
@@ -2899,23 +1397,23 @@ function Oa(t) {
2899
1397
  }
2900
1398
  } : {
2901
1399
  focusWithinProps: {
2902
- onFocus: T,
2903
- onBlur: v
1400
+ onFocus: v,
1401
+ onBlur: u
2904
1402
  }
2905
1403
  };
2906
1404
  }
2907
- function en(t) {
2908
- if (!t)
1405
+ function St(e) {
1406
+ if (!e)
2909
1407
  return;
2910
1408
  let r = !0;
2911
- return (o) => {
2912
- let l = {
2913
- ...o,
1409
+ return (n) => {
1410
+ let i = {
1411
+ ...n,
2914
1412
  preventDefault() {
2915
- o.preventDefault();
1413
+ n.preventDefault();
2916
1414
  },
2917
1415
  isDefaultPrevented() {
2918
- return o.isDefaultPrevented();
1416
+ return n.isDefaultPrevented();
2919
1417
  },
2920
1418
  stopPropagation() {
2921
1419
  console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.");
@@ -2924,41 +1422,41 @@ function en(t) {
2924
1422
  r = !1;
2925
1423
  }
2926
1424
  };
2927
- t(l), r && o.stopPropagation();
1425
+ e(i), r && n.stopPropagation();
2928
1426
  };
2929
1427
  }
2930
- function ka(t) {
1428
+ function Zr(e) {
2931
1429
  return {
2932
- keyboardProps: t.isDisabled ? {} : {
2933
- onKeyDown: en(t.onKeyDown),
2934
- onKeyUp: en(t.onKeyUp)
1430
+ keyboardProps: e.isDisabled ? {} : {
1431
+ onKeyDown: St(e.onKeyDown),
1432
+ onKeyUp: St(e.onKeyUp)
2935
1433
  }
2936
1434
  };
2937
1435
  }
2938
- function xa(t) {
2939
- if (Ca() === "virtual") {
1436
+ function Qr(e) {
1437
+ if (Jr() === "virtual") {
2940
1438
  let r = document.activeElement;
2941
- ln(() => {
2942
- document.activeElement === r && document.contains(t) && Ne(t);
1439
+ Mt(() => {
1440
+ document.activeElement === r && document.contains(e) && G(e);
2943
1441
  });
2944
1442
  } else
2945
- Ne(t);
1443
+ G(e);
2946
1444
  }
2947
- function Da(t, r) {
2948
- return r.some((o) => o.contains(t));
1445
+ function en(e, r) {
1446
+ return r.some((n) => n.contains(e));
2949
1447
  }
2950
- class gr {
1448
+ class Ye {
2951
1449
  get size() {
2952
1450
  return this.fastMap.size;
2953
1451
  }
2954
1452
  getTreeNode(r) {
2955
1453
  return this.fastMap.get(r);
2956
1454
  }
2957
- addTreeNode(r, o, l) {
2958
- let f = this.fastMap.get(o ?? null), b = new tn({
1455
+ addTreeNode(r, n, i) {
1456
+ let o = this.fastMap.get(n ?? null), f = new _t({
2959
1457
  scopeRef: r
2960
1458
  });
2961
- f.addChild(b), b.parent = f, this.fastMap.set(r, b), l && (b.nodeToRestore = l);
1459
+ o.addChild(f), f.parent = o, this.fastMap.set(r, f), i && (f.nodeToRestore = i);
2962
1460
  }
2963
1461
  addNode(r) {
2964
1462
  this.fastMap.set(r.scopeRef, r);
@@ -2966,31 +1464,31 @@ class gr {
2966
1464
  removeTreeNode(r) {
2967
1465
  if (r === null)
2968
1466
  return;
2969
- let o = this.fastMap.get(r), l = o.parent;
2970
- for (let b of this.traverse())
2971
- b !== o && o.nodeToRestore && b.nodeToRestore && o.scopeRef.current && Da(b.nodeToRestore, o.scopeRef.current) && (b.nodeToRestore = o.nodeToRestore);
2972
- let f = o.children;
2973
- l.removeChild(o), f.size > 0 && f.forEach((b) => l.addChild(b)), this.fastMap.delete(o.scopeRef);
1467
+ let n = this.fastMap.get(r), i = n.parent;
1468
+ for (let f of this.traverse())
1469
+ f !== n && n.nodeToRestore && f.nodeToRestore && n.scopeRef.current && en(f.nodeToRestore, n.scopeRef.current) && (f.nodeToRestore = n.nodeToRestore);
1470
+ let o = n.children;
1471
+ i.removeChild(n), o.size > 0 && o.forEach((f) => i.addChild(f)), this.fastMap.delete(n.scopeRef);
2974
1472
  }
2975
1473
  // Pre Order Depth First
2976
1474
  *traverse(r = this.root) {
2977
1475
  if (r.scopeRef != null && (yield r), r.children.size > 0)
2978
- for (let o of r.children)
2979
- yield* this.traverse(o);
1476
+ for (let n of r.children)
1477
+ yield* this.traverse(n);
2980
1478
  }
2981
1479
  clone() {
2982
- let r = new gr();
2983
- for (let o of this.traverse())
2984
- r.addTreeNode(o.scopeRef, o.parent.scopeRef, o.nodeToRestore);
1480
+ let r = new Ye();
1481
+ for (let n of this.traverse())
1482
+ r.addTreeNode(n.scopeRef, n.parent.scopeRef, n.nodeToRestore);
2985
1483
  return r;
2986
1484
  }
2987
1485
  constructor() {
2988
- this.fastMap = /* @__PURE__ */ new Map(), this.root = new tn({
1486
+ this.fastMap = /* @__PURE__ */ new Map(), this.root = new _t({
2989
1487
  scopeRef: null
2990
1488
  }), this.fastMap.set(null, this.root);
2991
1489
  }
2992
1490
  }
2993
- class tn {
1491
+ class _t {
2994
1492
  addChild(r) {
2995
1493
  this.children.add(r), r.parent = this;
2996
1494
  }
@@ -3001,61 +1499,61 @@ class tn {
3001
1499
  this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = r.scopeRef;
3002
1500
  }
3003
1501
  }
3004
- new gr();
3005
- let Fa = /* @__PURE__ */ At.createContext(null);
3006
- function Aa(t) {
3007
- let r = U.useContext(Fa) || {};
3008
- cn(r, t);
3009
- let { ref: o, ...l } = r;
3010
- return l;
3011
- }
3012
- function La(t, r) {
3013
- let { focusProps: o } = Pa(t), { keyboardProps: l } = ka(t), f = We(o, l), b = Aa(r), v = t.isDisabled ? {} : b, C = U.useRef(t.autoFocus);
3014
- return U.useEffect(() => {
3015
- C.current && r.current && xa(r.current), C.current = !1;
1502
+ new Ye();
1503
+ let tn = /* @__PURE__ */ ne.createContext(null);
1504
+ function rn(e) {
1505
+ let r = Ct(tn) || {};
1506
+ Kt(r, e);
1507
+ let { ref: n, ...i } = r;
1508
+ return i;
1509
+ }
1510
+ function nn(e, r) {
1511
+ let { focusProps: n } = Yr(e), { keyboardProps: i } = Zr(e), o = z(n, i), f = rn(r), u = e.isDisabled ? {} : f, h = Y(e.autoFocus);
1512
+ return Pe(() => {
1513
+ h.current && r.current && Qr(r.current), h.current = !1;
3016
1514
  }, [
3017
1515
  r
3018
1516
  ]), {
3019
- focusableProps: We({
3020
- ...f,
3021
- tabIndex: t.excludeFromTabOrder && !t.isDisabled ? -1 : void 0
3022
- }, v)
1517
+ focusableProps: z({
1518
+ ...o,
1519
+ tabIndex: e.excludeFromTabOrder && !e.isDisabled ? -1 : void 0
1520
+ }, u)
3023
1521
  };
3024
1522
  }
3025
- function ja(t, r, o) {
3026
- let { isDisabled: l = !1, isRequired: f = !1, isReadOnly: b = !1, value: v, name: C, children: T, "aria-label": W, "aria-labelledby": I, validationState: re = "valid", isInvalid: ce } = t, fe = (K) => {
3027
- K.stopPropagation(), r.setSelected(K.target.checked);
3028
- }, ve = T != null, ye = W != null || I != null;
3029
- !ve && !ye && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
3030
- let { pressProps: ne, isPressed: ae } = ga({
3031
- isDisabled: l
3032
- }), { focusableProps: L } = La(t, o), X = We(ne, L), oe = Zn(t, {
1523
+ function an(e, r, n) {
1524
+ let { isDisabled: i = !1, isRequired: o = !1, isReadOnly: f = !1, value: u, name: h, children: v, "aria-label": T, "aria-labelledby": w, validationState: F = "valid", isInvalid: L } = e, V = (M) => {
1525
+ M.stopPropagation(), r.setSelected(M.target.checked);
1526
+ }, H = v != null, j = T != null || w != null;
1527
+ !H && !j && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
1528
+ let { pressProps: A, isPressed: C } = jr({
1529
+ isDisabled: i
1530
+ }), { focusableProps: P } = nn(e, n), O = z(A, P), I = Pr(e, {
3033
1531
  labelable: !0
3034
1532
  });
3035
- return la(o, r.isSelected, r.setSelected), {
3036
- inputProps: We(oe, {
3037
- "aria-invalid": ce || re === "invalid" || void 0,
3038
- "aria-errormessage": t["aria-errormessage"],
3039
- "aria-controls": t["aria-controls"],
3040
- "aria-readonly": b || void 0,
3041
- "aria-required": f || void 0,
3042
- onChange: fe,
3043
- disabled: l,
3044
- ...v == null ? {} : {
3045
- value: v
1533
+ return kr(n, r.isSelected, r.setSelected), {
1534
+ inputProps: z(I, {
1535
+ "aria-invalid": L || F === "invalid" || void 0,
1536
+ "aria-errormessage": e["aria-errormessage"],
1537
+ "aria-controls": e["aria-controls"],
1538
+ "aria-readonly": f || void 0,
1539
+ "aria-required": o || void 0,
1540
+ onChange: V,
1541
+ disabled: i,
1542
+ ...u == null ? {} : {
1543
+ value: u
3046
1544
  },
3047
- name: C,
1545
+ name: h,
3048
1546
  type: "checkbox",
3049
- ...X
1547
+ ...O
3050
1548
  }),
3051
1549
  isSelected: r.isSelected,
3052
- isPressed: ae,
3053
- isDisabled: l,
3054
- isReadOnly: b,
3055
- isInvalid: ce || re === "invalid"
1550
+ isPressed: C,
1551
+ isDisabled: i,
1552
+ isReadOnly: f,
1553
+ isInvalid: L || F === "invalid"
3056
1554
  };
3057
1555
  }
3058
- const rn = {
1556
+ const Rt = {
3059
1557
  border: 0,
3060
1558
  clip: "rect(0 0 0 0)",
3061
1559
  clipPath: "inset(50%)",
@@ -3067,79 +1565,79 @@ const rn = {
3067
1565
  width: "1px",
3068
1566
  whiteSpace: "nowrap"
3069
1567
  };
3070
- function Ma(t = {}) {
3071
- let { style: r, isFocusable: o } = t, [l, f] = U.useState(!1), { focusWithinProps: b } = Oa({
3072
- isDisabled: !o,
3073
- onFocusWithinChange: (C) => f(C)
3074
- }), v = U.useMemo(() => l ? r : r ? {
3075
- ...rn,
1568
+ function on(e = {}) {
1569
+ let { style: r, isFocusable: n } = e, [i, o] = Ie(!1), { focusWithinProps: f } = Xr({
1570
+ isDisabled: !n,
1571
+ onFocusWithinChange: (h) => o(h)
1572
+ }), u = Ot(() => i ? r : r ? {
1573
+ ...Rt,
3076
1574
  ...r
3077
- } : rn, [
3078
- l
1575
+ } : Rt, [
1576
+ i
3079
1577
  ]);
3080
1578
  return {
3081
1579
  visuallyHiddenProps: {
3082
- ...b,
3083
- style: v
1580
+ ...f,
1581
+ style: u
3084
1582
  }
3085
1583
  };
3086
1584
  }
3087
- function Ia(t) {
3088
- let { children: r, elementType: o = "div", isFocusable: l, style: f, ...b } = t, { visuallyHiddenProps: v } = Ma(t);
3089
- return /* @__PURE__ */ At.createElement(o, We(b, v), r);
1585
+ function sn(e) {
1586
+ let { children: r, elementType: n = "div", isFocusable: i, style: o, ...f } = e, { visuallyHiddenProps: u } = on(e);
1587
+ return /* @__PURE__ */ ne.createElement(n, z(f, u), r);
3090
1588
  }
3091
- function Na(t, r, o) {
3092
- let { inputProps: l, isSelected: f, isPressed: b, isDisabled: v, isReadOnly: C } = ja(t, r, o);
1589
+ function ln(e, r, n) {
1590
+ let { inputProps: i, isSelected: o, isPressed: f, isDisabled: u, isReadOnly: h } = an(e, r, n);
3093
1591
  return {
3094
1592
  inputProps: {
3095
- ...l,
1593
+ ...i,
3096
1594
  role: "switch",
3097
- checked: f
1595
+ checked: o
3098
1596
  },
3099
- isSelected: f,
3100
- isPressed: b,
3101
- isDisabled: v,
3102
- isReadOnly: C
1597
+ isSelected: o,
1598
+ isPressed: f,
1599
+ isDisabled: u,
1600
+ isReadOnly: h
3103
1601
  };
3104
1602
  }
3105
- const nn = {
1603
+ const xt = {
3106
1604
  Primary: "#e26014",
3107
1605
  Grey: "#dddddd"
3108
1606
  };
3109
- function Wa(t, r, o) {
3110
- const l = t !== void 0, [f, b] = U.useState(t || r);
3111
- let v = l ? t : f;
3112
- return [v, (T) => {
3113
- o && (Object.is(v, T) || o(T)), l || b(T);
1607
+ function un(e, r, n) {
1608
+ const i = e !== void 0, [o, f] = Ie(e || r);
1609
+ let u = i ? e : o;
1610
+ return [u, (v) => {
1611
+ n && (Object.is(u, v) || n(v)), i || f(v);
3114
1612
  }];
3115
1613
  }
3116
- Ka.defaultProps = {
1614
+ cn.defaultProps = {
3117
1615
  defaultOn: !1,
3118
1616
  isDisabled: !1
3119
1617
  };
3120
- function Ka(t) {
3121
- let r = U.useRef(null), [o, l] = Wa(
3122
- t.isOn,
3123
- t.defaultOn,
3124
- t.onChange
3125
- ), f = {
3126
- isSelected: o,
3127
- setSelected: l,
3128
- toggle: () => l(!o)
3129
- }, { inputProps: b } = Na(t, f, r);
3130
- return /* @__PURE__ */ ot.jsxs(
1618
+ function cn(e) {
1619
+ let r = Y(null), [n, i] = un(
1620
+ e.isOn,
1621
+ e.defaultOn,
1622
+ e.onChange
1623
+ ), o = {
1624
+ isSelected: n,
1625
+ setSelected: i,
1626
+ toggle: () => i(!n)
1627
+ }, { inputProps: f } = ln(e, o, r);
1628
+ return /* @__PURE__ */ se.jsxs(
3131
1629
  "label",
3132
1630
  {
3133
- "data-on": o || void 0,
3134
- "data-disabled": t.isDisabled || void 0,
1631
+ "data-on": n || void 0,
1632
+ "data-disabled": e.isDisabled || void 0,
3135
1633
  style: {
3136
1634
  display: "flex",
3137
1635
  alignItems: "center",
3138
- opacity: t.isDisabled ? 0.4 : 1
1636
+ opacity: e.isDisabled ? 0.4 : 1
3139
1637
  },
3140
1638
  children: [
3141
- /* @__PURE__ */ ot.jsx(Ia, { children: /* @__PURE__ */ ot.jsx("input", { ...b, ref: r }) }),
3142
- /* @__PURE__ */ ot.jsx(
1639
+ /* @__PURE__ */ se.jsx(sn, { children: /* @__PURE__ */ se.jsx("input", { ...f, ref: r }) }),
1640
+ /* @__PURE__ */ se.jsx(
3143
1641
  "div",
3144
1642
  {
3145
1643
  style: {
@@ -3147,10 +1645,10 @@ function Ka(t) {
3147
1645
  width: 50,
3148
1646
  height: 26,
3149
1647
  borderRadius: 50,
3150
- backgroundColor: f.isSelected ? nn.Primary : nn.Grey,
3151
- cursor: t.isDisabled ? "not-allowed" : "pointer"
1648
+ backgroundColor: o.isSelected ? xt.Primary : xt.Grey,
1649
+ cursor: e.isDisabled ? "not-allowed" : "pointer"
3152
1650
  },
3153
- children: /* @__PURE__ */ ot.jsx(
1651
+ children: /* @__PURE__ */ se.jsx(
3154
1652
  "div",
3155
1653
  {
3156
1654
  style: {
@@ -3160,7 +1658,7 @@ function Ka(t) {
3160
1658
  borderRadius: 22,
3161
1659
  backgroundColor: "white",
3162
1660
  top: 2,
3163
- left: f.isSelected ? 26 : 2,
1661
+ left: o.isSelected ? 26 : 2,
3164
1662
  transition: "left .2s ease"
3165
1663
  }
3166
1664
  }
@@ -3172,6 +1670,6 @@ function Ka(t) {
3172
1670
  );
3173
1671
  }
3174
1672
  export {
3175
- Ka as Switch
1673
+ cn as Switch
3176
1674
  };
3177
1675
  //# sourceMappingURL=proton-ui.es.js.map