@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.
- package/dist/proton-ui.es.js +988 -2490
- package/dist/proton-ui.es.js.map +1 -1
- package/dist/proton-ui.umd.js +10 -48
- package/dist/proton-ui.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/proton-ui.es.js
CHANGED
|
@@ -1,1507 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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
|
|
1515
|
-
function
|
|
1516
|
-
if (
|
|
1517
|
-
return
|
|
1518
|
-
|
|
1519
|
-
var
|
|
1520
|
-
function
|
|
1521
|
-
var
|
|
1522
|
-
|
|
1523
|
-
for (
|
|
1524
|
-
|
|
1525
|
-
if (
|
|
1526
|
-
for (
|
|
1527
|
-
|
|
1528
|
-
return { $$typeof: r, type:
|
|
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
|
|
28
|
+
return ie.Fragment = n, ie.jsx = u, ie.jsxs = u, ie;
|
|
1531
29
|
}
|
|
1532
|
-
var
|
|
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
|
|
1543
|
-
function
|
|
1544
|
-
return
|
|
1545
|
-
var
|
|
1546
|
-
function
|
|
1547
|
-
if (
|
|
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
|
|
1550
|
-
return typeof
|
|
47
|
+
var s = H && t[H] || t[j];
|
|
48
|
+
return typeof s == "function" ? s : null;
|
|
1551
49
|
}
|
|
1552
|
-
var
|
|
1553
|
-
function
|
|
50
|
+
var C = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
+
function P(t) {
|
|
1554
52
|
{
|
|
1555
|
-
for (var
|
|
1556
|
-
|
|
1557
|
-
|
|
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
|
|
58
|
+
function O(t, s, d) {
|
|
1561
59
|
{
|
|
1562
|
-
var
|
|
1563
|
-
|
|
1564
|
-
var
|
|
1565
|
-
return String(
|
|
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
|
-
|
|
65
|
+
E.unshift("Warning: " + s), Function.prototype.apply.call(console[t], console, E);
|
|
1568
66
|
}
|
|
1569
67
|
}
|
|
1570
|
-
var
|
|
1571
|
-
|
|
1572
|
-
function
|
|
1573
|
-
return !!(typeof
|
|
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
|
-
|
|
75
|
+
t.$$typeof === y || t.getModuleId !== void 0));
|
|
1578
76
|
}
|
|
1579
|
-
function
|
|
1580
|
-
var
|
|
1581
|
-
if (
|
|
1582
|
-
return
|
|
1583
|
-
var
|
|
1584
|
-
return
|
|
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
|
|
1587
|
-
return
|
|
84
|
+
function S(t) {
|
|
85
|
+
return t.displayName || "Context";
|
|
1588
86
|
}
|
|
1589
|
-
function
|
|
1590
|
-
if (
|
|
87
|
+
function l(t) {
|
|
88
|
+
if (t == null)
|
|
1591
89
|
return null;
|
|
1592
|
-
if (typeof
|
|
1593
|
-
return
|
|
1594
|
-
if (typeof
|
|
1595
|
-
return
|
|
1596
|
-
switch (
|
|
1597
|
-
case
|
|
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
|
|
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
|
|
103
|
+
case T:
|
|
1606
104
|
return "Suspense";
|
|
1607
|
-
case
|
|
105
|
+
case w:
|
|
1608
106
|
return "SuspenseList";
|
|
1609
107
|
}
|
|
1610
|
-
if (typeof
|
|
1611
|
-
switch (
|
|
1612
|
-
case
|
|
1613
|
-
var
|
|
1614
|
-
return
|
|
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
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
return
|
|
1620
|
-
case
|
|
1621
|
-
var
|
|
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
|
|
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
|
|
1635
|
-
function
|
|
132
|
+
var c = Object.assign, _ = 0, He, Be, Ge, ze, qe, Je, Xe;
|
|
133
|
+
function Ze() {
|
|
1636
134
|
}
|
|
1637
|
-
|
|
1638
|
-
function
|
|
135
|
+
Ze.__reactDisabledLog = !0;
|
|
136
|
+
function Nt() {
|
|
1639
137
|
{
|
|
1640
|
-
if (
|
|
1641
|
-
|
|
1642
|
-
var
|
|
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:
|
|
143
|
+
value: Ze,
|
|
1646
144
|
writable: !0
|
|
1647
145
|
};
|
|
1648
146
|
Object.defineProperties(console, {
|
|
1649
|
-
info:
|
|
1650
|
-
log:
|
|
1651
|
-
warn:
|
|
1652
|
-
error:
|
|
1653
|
-
group:
|
|
1654
|
-
groupCollapsed:
|
|
1655
|
-
groupEnd:
|
|
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
|
-
|
|
156
|
+
_++;
|
|
1659
157
|
}
|
|
1660
158
|
}
|
|
1661
|
-
function
|
|
159
|
+
function Ut() {
|
|
1662
160
|
{
|
|
1663
|
-
if (
|
|
1664
|
-
var
|
|
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:
|
|
1671
|
-
value:
|
|
168
|
+
log: c({}, t, {
|
|
169
|
+
value: He
|
|
1672
170
|
}),
|
|
1673
|
-
info:
|
|
1674
|
-
value:
|
|
171
|
+
info: c({}, t, {
|
|
172
|
+
value: Be
|
|
1675
173
|
}),
|
|
1676
|
-
warn:
|
|
1677
|
-
value:
|
|
174
|
+
warn: c({}, t, {
|
|
175
|
+
value: Ge
|
|
1678
176
|
}),
|
|
1679
|
-
error:
|
|
1680
|
-
value:
|
|
177
|
+
error: c({}, t, {
|
|
178
|
+
value: ze
|
|
1681
179
|
}),
|
|
1682
|
-
group:
|
|
1683
|
-
value:
|
|
180
|
+
group: c({}, t, {
|
|
181
|
+
value: qe
|
|
1684
182
|
}),
|
|
1685
|
-
groupCollapsed:
|
|
1686
|
-
value:
|
|
183
|
+
groupCollapsed: c({}, t, {
|
|
184
|
+
value: Je
|
|
1687
185
|
}),
|
|
1688
|
-
groupEnd:
|
|
1689
|
-
value:
|
|
186
|
+
groupEnd: c({}, t, {
|
|
187
|
+
value: Xe
|
|
1690
188
|
})
|
|
1691
189
|
});
|
|
1692
190
|
}
|
|
1693
|
-
|
|
191
|
+
_ < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1694
192
|
}
|
|
1695
193
|
}
|
|
1696
|
-
var
|
|
1697
|
-
function
|
|
194
|
+
var we = C.ReactCurrentDispatcher, Se;
|
|
195
|
+
function fe(t, s, d) {
|
|
1698
196
|
{
|
|
1699
|
-
if (
|
|
197
|
+
if (Se === void 0)
|
|
1700
198
|
try {
|
|
1701
199
|
throw Error();
|
|
1702
|
-
} catch (
|
|
1703
|
-
var
|
|
1704
|
-
|
|
200
|
+
} catch ($) {
|
|
201
|
+
var g = $.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
+
Se = g && g[1] || "";
|
|
1705
203
|
}
|
|
1706
204
|
return `
|
|
1707
|
-
` +
|
|
205
|
+
` + Se + t;
|
|
1708
206
|
}
|
|
1709
207
|
}
|
|
1710
|
-
var
|
|
208
|
+
var _e = !1, de;
|
|
1711
209
|
{
|
|
1712
|
-
var
|
|
1713
|
-
|
|
210
|
+
var Vt = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
+
de = new Vt();
|
|
1714
212
|
}
|
|
1715
|
-
function
|
|
1716
|
-
if (!
|
|
213
|
+
function Qe(t, s) {
|
|
214
|
+
if (!t || _e)
|
|
1717
215
|
return "";
|
|
1718
216
|
{
|
|
1719
|
-
var
|
|
1720
|
-
if (
|
|
1721
|
-
return
|
|
217
|
+
var d = de.get(t);
|
|
218
|
+
if (d !== void 0)
|
|
219
|
+
return d;
|
|
1722
220
|
}
|
|
1723
|
-
var
|
|
1724
|
-
|
|
1725
|
-
var
|
|
221
|
+
var g;
|
|
222
|
+
_e = !0;
|
|
223
|
+
var $ = Error.prepareStackTrace;
|
|
1726
224
|
Error.prepareStackTrace = void 0;
|
|
1727
|
-
var
|
|
1728
|
-
|
|
225
|
+
var E;
|
|
226
|
+
E = we.current, we.current = null, Nt();
|
|
1729
227
|
try {
|
|
1730
|
-
if (
|
|
1731
|
-
var
|
|
228
|
+
if (s) {
|
|
229
|
+
var m = function() {
|
|
1732
230
|
throw Error();
|
|
1733
231
|
};
|
|
1734
|
-
if (Object.defineProperty(
|
|
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(
|
|
1741
|
-
} catch (
|
|
1742
|
-
|
|
238
|
+
Reflect.construct(m, []);
|
|
239
|
+
} catch (W) {
|
|
240
|
+
g = W;
|
|
1743
241
|
}
|
|
1744
|
-
Reflect.construct(
|
|
242
|
+
Reflect.construct(t, [], m);
|
|
1745
243
|
} else {
|
|
1746
244
|
try {
|
|
1747
|
-
|
|
1748
|
-
} catch (
|
|
1749
|
-
|
|
245
|
+
m.call();
|
|
246
|
+
} catch (W) {
|
|
247
|
+
g = W;
|
|
1750
248
|
}
|
|
1751
|
-
|
|
249
|
+
t.call(m.prototype);
|
|
1752
250
|
}
|
|
1753
251
|
} else {
|
|
1754
252
|
try {
|
|
1755
253
|
throw Error();
|
|
1756
|
-
} catch (
|
|
1757
|
-
|
|
254
|
+
} catch (W) {
|
|
255
|
+
g = W;
|
|
1758
256
|
}
|
|
1759
|
-
|
|
1760
|
-
}
|
|
1761
|
-
} catch (
|
|
1762
|
-
if (
|
|
1763
|
-
for (var
|
|
1764
|
-
`),
|
|
1765
|
-
`),
|
|
1766
|
-
|
|
1767
|
-
for (;
|
|
1768
|
-
if (
|
|
1769
|
-
if (
|
|
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 (
|
|
1772
|
-
var
|
|
1773
|
-
` +
|
|
1774
|
-
return
|
|
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 (
|
|
274
|
+
while (R >= 1 && x >= 0);
|
|
1777
275
|
break;
|
|
1778
276
|
}
|
|
1779
277
|
}
|
|
1780
278
|
} finally {
|
|
1781
|
-
|
|
279
|
+
_e = !1, we.current = E, Ut(), Error.prepareStackTrace = $;
|
|
1782
280
|
}
|
|
1783
|
-
var
|
|
1784
|
-
return typeof
|
|
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
|
|
1787
|
-
return
|
|
284
|
+
function Yt(t, s, d) {
|
|
285
|
+
return Qe(t, !1);
|
|
1788
286
|
}
|
|
1789
|
-
function
|
|
1790
|
-
var
|
|
1791
|
-
return !!(
|
|
287
|
+
function Ht(t) {
|
|
288
|
+
var s = t.prototype;
|
|
289
|
+
return !!(s && s.isReactComponent);
|
|
1792
290
|
}
|
|
1793
|
-
function
|
|
1794
|
-
if (
|
|
291
|
+
function pe(t, s, d) {
|
|
292
|
+
if (t == null)
|
|
1795
293
|
return "";
|
|
1796
|
-
if (typeof
|
|
1797
|
-
return
|
|
1798
|
-
if (typeof
|
|
1799
|
-
return
|
|
1800
|
-
switch (
|
|
1801
|
-
case
|
|
1802
|
-
return
|
|
1803
|
-
case
|
|
1804
|
-
return
|
|
1805
|
-
}
|
|
1806
|
-
if (typeof
|
|
1807
|
-
switch (
|
|
1808
|
-
case
|
|
1809
|
-
return
|
|
1810
|
-
case
|
|
1811
|
-
return
|
|
1812
|
-
case
|
|
1813
|
-
var
|
|
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
|
|
313
|
+
return pe(E($), s, d);
|
|
1816
314
|
} catch {
|
|
1817
315
|
}
|
|
1818
316
|
}
|
|
1819
317
|
}
|
|
1820
318
|
return "";
|
|
1821
319
|
}
|
|
1822
|
-
var
|
|
1823
|
-
function
|
|
1824
|
-
if (
|
|
1825
|
-
var
|
|
1826
|
-
|
|
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
|
-
|
|
326
|
+
tt.setExtraStackFrame(null);
|
|
1829
327
|
}
|
|
1830
|
-
function
|
|
328
|
+
function Bt(t, s, d, g, $) {
|
|
1831
329
|
{
|
|
1832
|
-
var
|
|
1833
|
-
for (var
|
|
1834
|
-
if (
|
|
1835
|
-
var
|
|
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
|
|
1838
|
-
var
|
|
1839
|
-
throw
|
|
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
|
-
|
|
1842
|
-
} catch (
|
|
1843
|
-
|
|
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
|
-
|
|
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
|
|
1850
|
-
function
|
|
1851
|
-
return
|
|
347
|
+
var Gt = Array.isArray;
|
|
348
|
+
function Re(t) {
|
|
349
|
+
return Gt(t);
|
|
1852
350
|
}
|
|
1853
|
-
function
|
|
351
|
+
function zt(t) {
|
|
1854
352
|
{
|
|
1855
|
-
var
|
|
1856
|
-
return
|
|
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
|
|
357
|
+
function qt(t) {
|
|
1860
358
|
try {
|
|
1861
|
-
return
|
|
359
|
+
return rt(t), !1;
|
|
1862
360
|
} catch {
|
|
1863
361
|
return !0;
|
|
1864
362
|
}
|
|
1865
363
|
}
|
|
1866
|
-
function
|
|
1867
|
-
return "" +
|
|
364
|
+
function rt(t) {
|
|
365
|
+
return "" + t;
|
|
1868
366
|
}
|
|
1869
|
-
function
|
|
1870
|
-
if (
|
|
1871
|
-
return
|
|
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
|
|
371
|
+
var ae = C.ReactCurrentOwner, Jt = {
|
|
1874
372
|
key: !0,
|
|
1875
373
|
ref: !0,
|
|
1876
374
|
__self: !0,
|
|
1877
375
|
__source: !0
|
|
1878
|
-
},
|
|
1879
|
-
|
|
1880
|
-
function
|
|
1881
|
-
if (
|
|
1882
|
-
var
|
|
1883
|
-
if (
|
|
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
|
|
384
|
+
return t.ref !== void 0;
|
|
1887
385
|
}
|
|
1888
|
-
function
|
|
1889
|
-
if (
|
|
1890
|
-
var
|
|
1891
|
-
if (
|
|
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
|
|
392
|
+
return t.key !== void 0;
|
|
1895
393
|
}
|
|
1896
|
-
function
|
|
1897
|
-
if (typeof
|
|
1898
|
-
var
|
|
1899
|
-
|
|
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
|
|
400
|
+
function er(t, s) {
|
|
1903
401
|
{
|
|
1904
|
-
var
|
|
1905
|
-
|
|
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
|
-
|
|
1908
|
-
get:
|
|
405
|
+
d.isReactWarning = !0, Object.defineProperty(t, "key", {
|
|
406
|
+
get: d,
|
|
1909
407
|
configurable: !0
|
|
1910
408
|
});
|
|
1911
409
|
}
|
|
1912
410
|
}
|
|
1913
|
-
function
|
|
411
|
+
function tr(t, s) {
|
|
1914
412
|
{
|
|
1915
|
-
var
|
|
1916
|
-
|
|
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
|
-
|
|
1919
|
-
get:
|
|
416
|
+
d.isReactWarning = !0, Object.defineProperty(t, "ref", {
|
|
417
|
+
get: d,
|
|
1920
418
|
configurable: !0
|
|
1921
419
|
});
|
|
1922
420
|
}
|
|
1923
421
|
}
|
|
1924
|
-
var
|
|
1925
|
-
var
|
|
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:
|
|
1930
|
-
key:
|
|
1931
|
-
ref:
|
|
1932
|
-
props:
|
|
427
|
+
type: t,
|
|
428
|
+
key: s,
|
|
429
|
+
ref: d,
|
|
430
|
+
props: m,
|
|
1933
431
|
// Record the component responsible for creating this element.
|
|
1934
|
-
_owner:
|
|
432
|
+
_owner: E
|
|
1935
433
|
};
|
|
1936
|
-
return
|
|
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(
|
|
439
|
+
}), Object.defineProperty(b, "_self", {
|
|
1942
440
|
configurable: !1,
|
|
1943
441
|
enumerable: !1,
|
|
1944
442
|
writable: !1,
|
|
1945
|
-
value:
|
|
1946
|
-
}), Object.defineProperty(
|
|
443
|
+
value: g
|
|
444
|
+
}), Object.defineProperty(b, "_source", {
|
|
1947
445
|
configurable: !1,
|
|
1948
446
|
enumerable: !1,
|
|
1949
447
|
writable: !1,
|
|
1950
|
-
value:
|
|
1951
|
-
}), Object.freeze && (Object.freeze(
|
|
448
|
+
value: $
|
|
449
|
+
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
1952
450
|
};
|
|
1953
|
-
function
|
|
451
|
+
function nr(t, s, d, g, $) {
|
|
1954
452
|
{
|
|
1955
|
-
var
|
|
1956
|
-
|
|
1957
|
-
for (
|
|
1958
|
-
|
|
1959
|
-
if (
|
|
1960
|
-
var
|
|
1961
|
-
for (
|
|
1962
|
-
|
|
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 (
|
|
1965
|
-
var
|
|
1966
|
-
|
|
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
|
|
466
|
+
return rr(t, b, k, $, g, ae.current, m);
|
|
1969
467
|
}
|
|
1970
468
|
}
|
|
1971
|
-
var
|
|
1972
|
-
function
|
|
1973
|
-
if (
|
|
1974
|
-
var
|
|
1975
|
-
|
|
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
|
-
|
|
475
|
+
ot.setExtraStackFrame(null);
|
|
1978
476
|
}
|
|
1979
|
-
var
|
|
1980
|
-
|
|
1981
|
-
function
|
|
1982
|
-
return typeof
|
|
477
|
+
var Ce;
|
|
478
|
+
Ce = !1;
|
|
479
|
+
function ke(t) {
|
|
480
|
+
return typeof t == "object" && t !== null && t.$$typeof === r;
|
|
1983
481
|
}
|
|
1984
|
-
function
|
|
482
|
+
function st() {
|
|
1985
483
|
{
|
|
1986
|
-
if (
|
|
1987
|
-
var
|
|
1988
|
-
if (
|
|
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 \`` +
|
|
489
|
+
Check the render method of \`` + t + "`.";
|
|
1992
490
|
}
|
|
1993
491
|
return "";
|
|
1994
492
|
}
|
|
1995
493
|
}
|
|
1996
|
-
function
|
|
494
|
+
function ar(t) {
|
|
1997
495
|
{
|
|
1998
|
-
if (
|
|
1999
|
-
var
|
|
496
|
+
if (t !== void 0) {
|
|
497
|
+
var s = t.fileName.replace(/^.*[\\\/]/, ""), d = t.lineNumber;
|
|
2000
498
|
return `
|
|
2001
499
|
|
|
2002
|
-
Check your code at ` +
|
|
500
|
+
Check your code at ` + s + ":" + d + ".";
|
|
2003
501
|
}
|
|
2004
502
|
return "";
|
|
2005
503
|
}
|
|
2006
504
|
}
|
|
2007
|
-
var
|
|
2008
|
-
function
|
|
505
|
+
var lt = {};
|
|
506
|
+
function ir(t) {
|
|
2009
507
|
{
|
|
2010
|
-
var
|
|
2011
|
-
if (!
|
|
2012
|
-
var
|
|
2013
|
-
|
|
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 <` +
|
|
513
|
+
Check the top-level render call using <` + d + ">.");
|
|
2016
514
|
}
|
|
2017
|
-
return
|
|
515
|
+
return s;
|
|
2018
516
|
}
|
|
2019
517
|
}
|
|
2020
|
-
function
|
|
518
|
+
function ut(t, s) {
|
|
2021
519
|
{
|
|
2022
|
-
if (!
|
|
520
|
+
if (!t._store || t._store.validated || t.key != null)
|
|
2023
521
|
return;
|
|
2024
|
-
|
|
2025
|
-
var
|
|
2026
|
-
if (
|
|
522
|
+
t._store.validated = !0;
|
|
523
|
+
var d = ir(s);
|
|
524
|
+
if (lt[d])
|
|
2027
525
|
return;
|
|
2028
|
-
|
|
2029
|
-
var
|
|
2030
|
-
|
|
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
|
|
531
|
+
function ct(t, s) {
|
|
2034
532
|
{
|
|
2035
|
-
if (typeof
|
|
533
|
+
if (typeof t != "object")
|
|
2036
534
|
return;
|
|
2037
|
-
if (
|
|
2038
|
-
for (var
|
|
2039
|
-
var
|
|
2040
|
-
|
|
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 (
|
|
2043
|
-
|
|
2044
|
-
else if (
|
|
2045
|
-
var
|
|
2046
|
-
if (typeof
|
|
2047
|
-
for (var
|
|
2048
|
-
|
|
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
|
|
550
|
+
function or(t) {
|
|
2053
551
|
{
|
|
2054
|
-
var
|
|
2055
|
-
if (
|
|
552
|
+
var s = t.type;
|
|
553
|
+
if (s == null || typeof s == "string")
|
|
2056
554
|
return;
|
|
2057
|
-
var
|
|
2058
|
-
if (typeof
|
|
2059
|
-
|
|
2060
|
-
else if (typeof
|
|
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
|
-
|
|
2063
|
-
|
|
560
|
+
s.$$typeof === F))
|
|
561
|
+
d = s.propTypes;
|
|
2064
562
|
else
|
|
2065
563
|
return;
|
|
2066
|
-
if (
|
|
2067
|
-
var
|
|
2068
|
-
|
|
2069
|
-
} else if (
|
|
2070
|
-
|
|
2071
|
-
var
|
|
2072
|
-
|
|
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
|
|
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
|
|
575
|
+
function sr(t) {
|
|
2078
576
|
{
|
|
2079
|
-
for (var
|
|
2080
|
-
var
|
|
2081
|
-
if (
|
|
2082
|
-
|
|
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
|
-
|
|
584
|
+
t.ref !== null && (X(t), P("Invalid attribute `ref` supplied to `React.Fragment`."), X(null));
|
|
2087
585
|
}
|
|
2088
586
|
}
|
|
2089
|
-
function
|
|
587
|
+
function ft(t, s, d, g, $, E) {
|
|
2090
588
|
{
|
|
2091
|
-
var
|
|
2092
|
-
if (!
|
|
2093
|
-
var
|
|
2094
|
-
(
|
|
2095
|
-
var
|
|
2096
|
-
|
|
2097
|
-
var
|
|
2098
|
-
|
|
2099
|
-
}
|
|
2100
|
-
var
|
|
2101
|
-
if (
|
|
2102
|
-
return
|
|
2103
|
-
if (
|
|
2104
|
-
var
|
|
2105
|
-
if (
|
|
2106
|
-
if (
|
|
2107
|
-
if (
|
|
2108
|
-
for (var
|
|
2109
|
-
|
|
2110
|
-
Object.freeze && Object.freeze(
|
|
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
|
-
|
|
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
|
-
|
|
612
|
+
ct(K, t);
|
|
2115
613
|
}
|
|
2116
|
-
return
|
|
614
|
+
return t === i ? sr(x) : or(x), x;
|
|
2117
615
|
}
|
|
2118
616
|
}
|
|
2119
|
-
function
|
|
2120
|
-
return
|
|
617
|
+
function lr(t, s, d) {
|
|
618
|
+
return ft(t, s, d, !0);
|
|
2121
619
|
}
|
|
2122
|
-
function
|
|
2123
|
-
return
|
|
620
|
+
function ur(t, s, d) {
|
|
621
|
+
return ft(t, s, d, !1);
|
|
2124
622
|
}
|
|
2125
|
-
var
|
|
2126
|
-
|
|
2127
|
-
}()),
|
|
2128
|
-
}
|
|
2129
|
-
process.env.NODE_ENV === "production" ?
|
|
2130
|
-
var
|
|
2131
|
-
function
|
|
2132
|
-
var r,
|
|
2133
|
-
if (typeof
|
|
2134
|
-
|
|
2135
|
-
else if (typeof
|
|
2136
|
-
if (Array.isArray(
|
|
2137
|
-
for (r = 0; r <
|
|
2138
|
-
|
|
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
|
|
2141
|
-
|
|
2142
|
-
return
|
|
638
|
+
for (r in e)
|
|
639
|
+
e[r] && (i && (i += " "), i += r);
|
|
640
|
+
return i;
|
|
2143
641
|
}
|
|
2144
|
-
function
|
|
2145
|
-
for (var
|
|
2146
|
-
(
|
|
2147
|
-
return
|
|
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
|
|
647
|
+
const We = typeof document < "u" ? ne.useLayoutEffect : () => {
|
|
2150
648
|
};
|
|
2151
|
-
function
|
|
2152
|
-
const r =
|
|
2153
|
-
return
|
|
2154
|
-
r.current =
|
|
649
|
+
function B(e) {
|
|
650
|
+
const r = Y(null);
|
|
651
|
+
return We(() => {
|
|
652
|
+
r.current = e;
|
|
2155
653
|
}, [
|
|
2156
|
-
|
|
2157
|
-
]), U
|
|
2158
|
-
const
|
|
2159
|
-
return
|
|
654
|
+
e
|
|
655
|
+
]), U((...n) => {
|
|
656
|
+
const i = r.current;
|
|
657
|
+
return i(...n);
|
|
2160
658
|
}, []);
|
|
2161
659
|
}
|
|
2162
|
-
let
|
|
2163
|
-
function
|
|
2164
|
-
if (
|
|
2165
|
-
return
|
|
2166
|
-
let
|
|
2167
|
-
if (
|
|
2168
|
-
return
|
|
2169
|
-
let
|
|
2170
|
-
return
|
|
2171
|
-
}
|
|
2172
|
-
function
|
|
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
|
|
2175
|
-
typeof
|
|
672
|
+
for (let n of e)
|
|
673
|
+
typeof n == "function" && n(...r);
|
|
2176
674
|
};
|
|
2177
675
|
}
|
|
2178
|
-
function
|
|
676
|
+
function z(...e) {
|
|
2179
677
|
let r = {
|
|
2180
|
-
...
|
|
678
|
+
...e[0]
|
|
2181
679
|
};
|
|
2182
|
-
for (let
|
|
2183
|
-
let
|
|
2184
|
-
for (let
|
|
2185
|
-
let
|
|
2186
|
-
typeof
|
|
2187
|
-
|
|
2188
|
-
65 &&
|
|
2189
|
-
90 ? r[
|
|
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
|
|
692
|
+
const hr = /* @__PURE__ */ new Set([
|
|
2195
693
|
"id"
|
|
2196
|
-
]),
|
|
694
|
+
]), yr = /* @__PURE__ */ new Set([
|
|
2197
695
|
"aria-label",
|
|
2198
696
|
"aria-labelledby",
|
|
2199
697
|
"aria-describedby",
|
|
2200
698
|
"aria-details"
|
|
2201
|
-
]),
|
|
699
|
+
]), mr = /* @__PURE__ */ new Set([
|
|
2202
700
|
"href",
|
|
2203
701
|
"target",
|
|
2204
702
|
"rel",
|
|
2205
703
|
"download",
|
|
2206
704
|
"ping",
|
|
2207
705
|
"referrerPolicy"
|
|
2208
|
-
]),
|
|
2209
|
-
function
|
|
2210
|
-
let { labelable:
|
|
2211
|
-
for (const
|
|
2212
|
-
Object.prototype.hasOwnProperty.call(
|
|
2213
|
-
return
|
|
2214
|
-
}
|
|
2215
|
-
function
|
|
2216
|
-
if (
|
|
2217
|
-
|
|
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 =
|
|
2222
|
-
|
|
719
|
+
let r = Tr(e);
|
|
720
|
+
e.focus(), wr(r);
|
|
2223
721
|
}
|
|
2224
722
|
}
|
|
2225
|
-
let
|
|
2226
|
-
function
|
|
2227
|
-
if (
|
|
2228
|
-
|
|
723
|
+
let be = null;
|
|
724
|
+
function Er() {
|
|
725
|
+
if (be == null) {
|
|
726
|
+
be = !1;
|
|
2229
727
|
try {
|
|
2230
|
-
var
|
|
2231
|
-
|
|
728
|
+
var e = document.createElement("div");
|
|
729
|
+
e.focus({
|
|
2232
730
|
get preventScroll() {
|
|
2233
|
-
return
|
|
731
|
+
return be = !0, !0;
|
|
2234
732
|
}
|
|
2235
733
|
});
|
|
2236
734
|
} catch {
|
|
2237
735
|
}
|
|
2238
736
|
}
|
|
2239
|
-
return
|
|
737
|
+
return be;
|
|
2240
738
|
}
|
|
2241
|
-
function
|
|
2242
|
-
for (var r =
|
|
2243
|
-
(r.offsetHeight < r.scrollHeight || r.offsetWidth < r.scrollWidth) &&
|
|
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
|
|
2249
|
-
element:
|
|
2250
|
-
scrollTop:
|
|
2251
|
-
scrollLeft:
|
|
2252
|
-
}),
|
|
746
|
+
return i instanceof HTMLElement && n.push({
|
|
747
|
+
element: i,
|
|
748
|
+
scrollTop: i.scrollTop,
|
|
749
|
+
scrollLeft: i.scrollLeft
|
|
750
|
+
}), n;
|
|
2253
751
|
}
|
|
2254
|
-
function
|
|
2255
|
-
for (let { element: r, scrollTop:
|
|
2256
|
-
r.scrollTop =
|
|
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
|
|
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((
|
|
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
|
|
760
|
+
function Ne(e) {
|
|
2263
761
|
var r;
|
|
2264
|
-
return typeof window < "u" && window.navigator != null ?
|
|
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
|
|
2267
|
-
return
|
|
764
|
+
function le() {
|
|
765
|
+
return Ne(/^Mac/i);
|
|
2268
766
|
}
|
|
2269
|
-
function
|
|
2270
|
-
return
|
|
767
|
+
function Sr() {
|
|
768
|
+
return Ne(/^iPhone/i);
|
|
2271
769
|
}
|
|
2272
|
-
function
|
|
2273
|
-
return
|
|
2274
|
-
|
|
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
|
|
2277
|
-
return
|
|
774
|
+
function Dt() {
|
|
775
|
+
return Sr() || Ft();
|
|
2278
776
|
}
|
|
2279
|
-
function
|
|
2280
|
-
return
|
|
777
|
+
function _r() {
|
|
778
|
+
return Ee(/AppleWebKit/i) && !Rr();
|
|
2281
779
|
}
|
|
2282
|
-
function
|
|
2283
|
-
return
|
|
780
|
+
function Rr() {
|
|
781
|
+
return Ee(/Chrome/i);
|
|
2284
782
|
}
|
|
2285
|
-
function
|
|
2286
|
-
return
|
|
783
|
+
function Lt() {
|
|
784
|
+
return Ee(/Android/i);
|
|
2287
785
|
}
|
|
2288
|
-
function
|
|
2289
|
-
return
|
|
786
|
+
function xr() {
|
|
787
|
+
return Ee(/Firefox/i);
|
|
2290
788
|
}
|
|
2291
|
-
function
|
|
2292
|
-
var
|
|
2293
|
-
let { metaKey:
|
|
2294
|
-
|
|
2295
|
-
let
|
|
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:
|
|
2298
|
-
ctrlKey:
|
|
2299
|
-
altKey:
|
|
2300
|
-
shiftKey:
|
|
795
|
+
metaKey: f,
|
|
796
|
+
ctrlKey: u,
|
|
797
|
+
altKey: h,
|
|
798
|
+
shiftKey: v
|
|
2301
799
|
}) : new MouseEvent("click", {
|
|
2302
|
-
metaKey:
|
|
2303
|
-
ctrlKey:
|
|
2304
|
-
altKey:
|
|
2305
|
-
shiftKey:
|
|
800
|
+
metaKey: f,
|
|
801
|
+
ctrlKey: u,
|
|
802
|
+
altKey: h,
|
|
803
|
+
shiftKey: v,
|
|
2306
804
|
bubbles: !0,
|
|
2307
805
|
cancelable: !0
|
|
2308
806
|
});
|
|
2309
|
-
|
|
807
|
+
ue.isOpening = n, G(e), e.dispatchEvent(T), ue.isOpening = !1;
|
|
2310
808
|
}
|
|
2311
|
-
|
|
2312
|
-
let
|
|
2313
|
-
function
|
|
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
|
|
2317
|
-
let
|
|
2318
|
-
|
|
2319
|
-
}, r = (
|
|
2320
|
-
let
|
|
2321
|
-
if (
|
|
2322
|
-
for (let
|
|
2323
|
-
|
|
2324
|
-
|
|
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",
|
|
825
|
+
document.body.addEventListener("transitionrun", e), document.body.addEventListener("transitionend", r);
|
|
2328
826
|
}
|
|
2329
|
-
typeof document < "u" && (document.readyState !== "loading" ?
|
|
2330
|
-
function
|
|
827
|
+
typeof document < "u" && (document.readyState !== "loading" ? bt() : document.addEventListener("DOMContentLoaded", bt));
|
|
828
|
+
function Mt(e) {
|
|
2331
829
|
requestAnimationFrame(() => {
|
|
2332
|
-
|
|
830
|
+
te.size === 0 ? e() : Me.add(e);
|
|
2333
831
|
});
|
|
2334
832
|
}
|
|
2335
|
-
function
|
|
2336
|
-
let
|
|
2337
|
-
let
|
|
2338
|
-
|
|
2339
|
-
} :
|
|
2340
|
-
|
|
2341
|
-
type:
|
|
2342
|
-
eventTarget:
|
|
2343
|
-
fn:
|
|
2344
|
-
options:
|
|
2345
|
-
}),
|
|
2346
|
-
}, []),
|
|
2347
|
-
var
|
|
2348
|
-
let
|
|
2349
|
-
|
|
2350
|
-
}, []),
|
|
2351
|
-
|
|
2352
|
-
o
|
|
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
|
-
|
|
853
|
+
n
|
|
2356
854
|
]);
|
|
2357
|
-
return
|
|
2358
|
-
|
|
855
|
+
return Pe(() => i, [
|
|
856
|
+
i
|
|
2359
857
|
]), {
|
|
2360
858
|
addGlobalListener: r,
|
|
2361
|
-
removeGlobalListener:
|
|
2362
|
-
removeAllGlobalListeners:
|
|
859
|
+
removeGlobalListener: n,
|
|
860
|
+
removeAllGlobalListeners: i
|
|
2363
861
|
};
|
|
2364
862
|
}
|
|
2365
|
-
function
|
|
2366
|
-
|
|
2367
|
-
if (
|
|
2368
|
-
return
|
|
2369
|
-
|
|
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
|
|
2374
|
-
return
|
|
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
|
|
2377
|
-
return !
|
|
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
|
|
2380
|
-
let
|
|
2381
|
-
|
|
877
|
+
function kr(e, r, n) {
|
|
878
|
+
let i = Y(r), o = B(() => {
|
|
879
|
+
n && n(i.current);
|
|
2382
880
|
});
|
|
2383
|
-
|
|
2384
|
-
var
|
|
2385
|
-
let
|
|
2386
|
-
return
|
|
2387
|
-
|
|
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
|
-
|
|
2391
|
-
|
|
888
|
+
e,
|
|
889
|
+
o
|
|
2392
890
|
]);
|
|
2393
891
|
}
|
|
2394
|
-
function
|
|
2395
|
-
return r.get ? r.get.call(
|
|
892
|
+
function Fr(e, r) {
|
|
893
|
+
return r.get ? r.get.call(e) : r.value;
|
|
2396
894
|
}
|
|
2397
|
-
function
|
|
2398
|
-
if (!r.has(
|
|
2399
|
-
throw new TypeError("attempted to " +
|
|
2400
|
-
return r.get(
|
|
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
|
|
2403
|
-
var
|
|
2404
|
-
return
|
|
900
|
+
function Dr(e, r) {
|
|
901
|
+
var n = At(e, r, "get");
|
|
902
|
+
return Fr(e, n);
|
|
2405
903
|
}
|
|
2406
|
-
function
|
|
2407
|
-
if (r.has(
|
|
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
|
|
2411
|
-
|
|
908
|
+
function Mr(e, r, n) {
|
|
909
|
+
Lr(e, r), r.set(e, n);
|
|
2412
910
|
}
|
|
2413
|
-
function
|
|
911
|
+
function Kr(e, r, n) {
|
|
2414
912
|
if (r.set)
|
|
2415
|
-
r.set.call(
|
|
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 =
|
|
917
|
+
r.value = n;
|
|
2420
918
|
}
|
|
2421
919
|
}
|
|
2422
|
-
function
|
|
2423
|
-
var
|
|
2424
|
-
return
|
|
920
|
+
function ht(e, r, n) {
|
|
921
|
+
var i = At(e, r, "set");
|
|
922
|
+
return Kr(e, i, n), n;
|
|
2425
923
|
}
|
|
2426
|
-
let
|
|
2427
|
-
function
|
|
2428
|
-
|
|
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
|
|
2431
|
-
if (
|
|
2432
|
-
if (
|
|
928
|
+
function he(e) {
|
|
929
|
+
if (Dt()) {
|
|
930
|
+
if (re !== "disabled")
|
|
2433
931
|
return;
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
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 ((
|
|
2440
|
-
let r =
|
|
2441
|
-
|
|
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
|
|
2445
|
-
|
|
2446
|
-
function
|
|
2447
|
-
let r =
|
|
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:
|
|
2450
|
-
|
|
947
|
+
let { register: n, ...i } = r;
|
|
948
|
+
e = z(i, e), n();
|
|
2451
949
|
}
|
|
2452
|
-
return
|
|
950
|
+
return Kt(r, e.ref), e;
|
|
2453
951
|
}
|
|
2454
|
-
var
|
|
2455
|
-
class
|
|
952
|
+
var ye = /* @__PURE__ */ new WeakMap();
|
|
953
|
+
class me {
|
|
2456
954
|
continuePropagation() {
|
|
2457
|
-
|
|
955
|
+
ht(this, ye, !1);
|
|
2458
956
|
}
|
|
2459
957
|
get shouldStopPropagation() {
|
|
2460
|
-
return
|
|
958
|
+
return Dr(this, ye);
|
|
2461
959
|
}
|
|
2462
|
-
constructor(r,
|
|
2463
|
-
|
|
960
|
+
constructor(r, n, i) {
|
|
961
|
+
Mr(this, ye, {
|
|
2464
962
|
writable: !0,
|
|
2465
963
|
value: void 0
|
|
2466
|
-
}),
|
|
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
|
|
2470
|
-
function
|
|
967
|
+
const mt = Symbol("linkClicked");
|
|
968
|
+
function jr(e) {
|
|
2471
969
|
let {
|
|
2472
970
|
onPress: r,
|
|
2473
|
-
onPressChange:
|
|
2474
|
-
onPressStart:
|
|
2475
|
-
onPressEnd:
|
|
2476
|
-
onPressUp:
|
|
2477
|
-
isDisabled:
|
|
2478
|
-
isPressed:
|
|
2479
|
-
preventFocusOnPress:
|
|
2480
|
-
shouldCancelOnPointerExit:
|
|
2481
|
-
allowTextSelectionOnPress:
|
|
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:
|
|
2484
|
-
...
|
|
2485
|
-
} =
|
|
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:
|
|
2496
|
-
let
|
|
2497
|
-
if (
|
|
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
|
|
2500
|
-
if (
|
|
2501
|
-
let
|
|
2502
|
-
|
|
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
|
|
2505
|
-
}),
|
|
2506
|
-
let
|
|
2507
|
-
if (!
|
|
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
|
-
|
|
2510
|
-
let
|
|
2511
|
-
if (
|
|
2512
|
-
let
|
|
2513
|
-
|
|
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 (
|
|
2516
|
-
let
|
|
2517
|
-
r(
|
|
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
|
|
2520
|
-
}),
|
|
2521
|
-
let
|
|
2522
|
-
if (!
|
|
2523
|
-
if (
|
|
2524
|
-
|
|
2525
|
-
let
|
|
2526
|
-
return
|
|
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
|
-
}),
|
|
2531
|
-
let
|
|
2532
|
-
|
|
2533
|
-
}),
|
|
2534
|
-
|
|
2535
|
-
}),
|
|
2536
|
-
let
|
|
2537
|
-
onKeyDown(
|
|
2538
|
-
if (
|
|
2539
|
-
|
|
2540
|
-
let
|
|
2541
|
-
!
|
|
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
|
-
|
|
1041
|
+
p.key === "Meta" && (a.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
2544
1042
|
},
|
|
2545
|
-
onKeyUp(
|
|
2546
|
-
|
|
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(
|
|
2549
|
-
if (!(
|
|
2550
|
-
let
|
|
2551
|
-
if (
|
|
2552
|
-
!
|
|
2553
|
-
let
|
|
2554
|
-
|
|
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
|
-
|
|
2557
|
-
}
|
|
2558
|
-
}
|
|
2559
|
-
},
|
|
2560
|
-
var
|
|
2561
|
-
if (
|
|
2562
|
-
var
|
|
2563
|
-
|
|
2564
|
-
let
|
|
2565
|
-
|
|
2566
|
-
} else if (
|
|
2567
|
-
let
|
|
2568
|
-
|
|
2569
|
-
for (let
|
|
2570
|
-
|
|
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
|
-
|
|
2575
|
-
if (
|
|
1072
|
+
y.onPointerDown = (c) => {
|
|
1073
|
+
if (c.button !== 0 || !c.currentTarget.contains(c.target))
|
|
2576
1074
|
return;
|
|
2577
|
-
if (
|
|
2578
|
-
|
|
1075
|
+
if (Cr(c.nativeEvent)) {
|
|
1076
|
+
a.pointerType = "virtual";
|
|
2579
1077
|
return;
|
|
2580
1078
|
}
|
|
2581
|
-
|
|
2582
|
-
let
|
|
2583
|
-
|
|
2584
|
-
},
|
|
2585
|
-
|
|
2586
|
-
},
|
|
2587
|
-
!
|
|
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
|
|
2590
|
-
|
|
2591
|
-
},
|
|
2592
|
-
|
|
2593
|
-
},
|
|
2594
|
-
|
|
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
|
-
|
|
2597
|
-
|
|
1094
|
+
y.onDragStart = (c) => {
|
|
1095
|
+
c.currentTarget.contains(c.target) && M(c);
|
|
2598
1096
|
};
|
|
2599
1097
|
} else {
|
|
2600
|
-
|
|
2601
|
-
if (
|
|
1098
|
+
y.onMouseDown = (l) => {
|
|
1099
|
+
if (l.button !== 0 || !l.currentTarget.contains(l.target))
|
|
2602
1100
|
return;
|
|
2603
|
-
if (
|
|
2604
|
-
|
|
1101
|
+
if (De(l.currentTarget) && l.preventDefault(), a.ignoreEmulatedMouseEvents) {
|
|
1102
|
+
l.stopPropagation();
|
|
2605
1103
|
return;
|
|
2606
1104
|
}
|
|
2607
|
-
|
|
2608
|
-
},
|
|
2609
|
-
if (!
|
|
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
|
|
2612
|
-
|
|
2613
|
-
},
|
|
2614
|
-
if (!
|
|
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
|
|
2617
|
-
|
|
2618
|
-
},
|
|
2619
|
-
|
|
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
|
|
2622
|
-
if (
|
|
2623
|
-
if (
|
|
2624
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2631
|
-
if (!
|
|
1128
|
+
y.onTouchStart = (l) => {
|
|
1129
|
+
if (!l.currentTarget.contains(l.target))
|
|
2632
1130
|
return;
|
|
2633
|
-
let
|
|
2634
|
-
if (!
|
|
1131
|
+
let c = Ir(l.nativeEvent);
|
|
1132
|
+
if (!c)
|
|
2635
1133
|
return;
|
|
2636
|
-
|
|
2637
|
-
},
|
|
2638
|
-
if (!
|
|
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 (!
|
|
2641
|
-
|
|
1138
|
+
if (!a.isPressed) {
|
|
1139
|
+
l.stopPropagation();
|
|
2642
1140
|
return;
|
|
2643
1141
|
}
|
|
2644
|
-
let
|
|
2645
|
-
|
|
2646
|
-
},
|
|
2647
|
-
if (!
|
|
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 (!
|
|
2650
|
-
|
|
1147
|
+
if (!a.isPressed) {
|
|
1148
|
+
l.stopPropagation();
|
|
2651
1149
|
return;
|
|
2652
1150
|
}
|
|
2653
|
-
let
|
|
2654
|
-
|
|
2655
|
-
},
|
|
2656
|
-
|
|
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
|
|
2659
|
-
|
|
2660
|
-
currentTarget:
|
|
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
|
-
|
|
2668
|
-
|
|
1165
|
+
y.onDragStart = (l) => {
|
|
1166
|
+
l.currentTarget.contains(l.target) && M(l);
|
|
2669
1167
|
};
|
|
2670
1168
|
}
|
|
2671
|
-
return
|
|
1169
|
+
return y;
|
|
2672
1170
|
}, [
|
|
2673
|
-
|
|
1171
|
+
A,
|
|
1172
|
+
u,
|
|
2674
1173
|
v,
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
oe
|
|
1174
|
+
C,
|
|
1175
|
+
w,
|
|
1176
|
+
M,
|
|
1177
|
+
J,
|
|
1178
|
+
O,
|
|
1179
|
+
P,
|
|
1180
|
+
I
|
|
2683
1181
|
]);
|
|
2684
|
-
return
|
|
2685
|
-
|
|
1182
|
+
return Pe(() => () => {
|
|
1183
|
+
w || he(j.current.target);
|
|
2686
1184
|
}, [
|
|
2687
|
-
|
|
1185
|
+
w
|
|
2688
1186
|
]), {
|
|
2689
|
-
isPressed:
|
|
2690
|
-
pressProps:
|
|
1187
|
+
isPressed: h || V,
|
|
1188
|
+
pressProps: z(L, Te)
|
|
2691
1189
|
};
|
|
2692
1190
|
}
|
|
2693
|
-
function
|
|
2694
|
-
return
|
|
1191
|
+
function Ue(e) {
|
|
1192
|
+
return e.tagName === "A" && e.hasAttribute("href");
|
|
2695
1193
|
}
|
|
2696
|
-
function
|
|
2697
|
-
const { key:
|
|
2698
|
-
return (
|
|
2699
|
-
!((
|
|
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
|
|
2702
|
-
const { targetTouches: r } =
|
|
1199
|
+
function Ir(e) {
|
|
1200
|
+
const { targetTouches: r } = e;
|
|
2703
1201
|
return r.length > 0 ? r[0] : null;
|
|
2704
1202
|
}
|
|
2705
|
-
function
|
|
2706
|
-
const
|
|
2707
|
-
for (let
|
|
2708
|
-
const
|
|
2709
|
-
if (
|
|
2710
|
-
return
|
|
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
|
|
1212
|
+
function N(e, r) {
|
|
2715
1213
|
return {
|
|
2716
|
-
currentTarget:
|
|
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
|
|
2724
|
-
let r =
|
|
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:
|
|
2727
|
-
right:
|
|
2728
|
-
bottom:
|
|
2729
|
-
left:
|
|
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
|
|
2733
|
-
return !(
|
|
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
|
|
2736
|
-
let
|
|
2737
|
-
return
|
|
1233
|
+
function Q(e, r) {
|
|
1234
|
+
let n = r.getBoundingClientRect(), i = Wr(e);
|
|
1235
|
+
return Nr(n, i);
|
|
2738
1236
|
}
|
|
2739
|
-
function
|
|
2740
|
-
return !(
|
|
1237
|
+
function De(e) {
|
|
1238
|
+
return !(e instanceof HTMLElement) || !e.hasAttribute("draggable");
|
|
2741
1239
|
}
|
|
2742
|
-
function
|
|
2743
|
-
return
|
|
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
|
|
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
|
|
2757
|
-
return
|
|
1254
|
+
function It(e, r) {
|
|
1255
|
+
return e.type === "checkbox" || e.type === "radio" ? r === " " : Ur.has(e.type);
|
|
2758
1256
|
}
|
|
2759
|
-
class
|
|
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,
|
|
2775
|
-
this.nativeEvent =
|
|
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
|
|
2779
|
-
let r =
|
|
1276
|
+
function Wt(e) {
|
|
1277
|
+
let r = Y({
|
|
2780
1278
|
isFocused: !1,
|
|
2781
1279
|
observer: null
|
|
2782
1280
|
});
|
|
2783
|
-
|
|
2784
|
-
const
|
|
1281
|
+
We(() => {
|
|
1282
|
+
const i = r.current;
|
|
2785
1283
|
return () => {
|
|
2786
|
-
|
|
1284
|
+
i.observer && (i.observer.disconnect(), i.observer = null);
|
|
2787
1285
|
};
|
|
2788
1286
|
}, []);
|
|
2789
|
-
let
|
|
2790
|
-
|
|
1287
|
+
let n = B((i) => {
|
|
1288
|
+
e == null || e(i);
|
|
2791
1289
|
});
|
|
2792
|
-
return U
|
|
2793
|
-
if (
|
|
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
|
|
2796
|
-
r.current.isFocused = !1,
|
|
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
|
-
|
|
1296
|
+
o.addEventListener("focusout", f, {
|
|
2799
1297
|
once: !0
|
|
2800
1298
|
}), r.current.observer = new MutationObserver(() => {
|
|
2801
|
-
if (r.current.isFocused &&
|
|
1299
|
+
if (r.current.isFocused && o.disabled) {
|
|
2802
1300
|
r.current.observer.disconnect();
|
|
2803
|
-
let
|
|
2804
|
-
|
|
2805
|
-
relatedTarget:
|
|
2806
|
-
})),
|
|
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:
|
|
1306
|
+
relatedTarget: u
|
|
2809
1307
|
}));
|
|
2810
1308
|
}
|
|
2811
|
-
}), r.current.observer.observe(
|
|
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
|
-
|
|
1317
|
+
n
|
|
2820
1318
|
]);
|
|
2821
1319
|
}
|
|
2822
|
-
function
|
|
2823
|
-
let { isDisabled: r, onFocus:
|
|
2824
|
-
const
|
|
2825
|
-
if (
|
|
2826
|
-
return
|
|
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
|
-
|
|
2829
|
-
|
|
2830
|
-
]),
|
|
2831
|
-
|
|
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
|
-
|
|
1332
|
+
n,
|
|
1333
|
+
u
|
|
2836
1334
|
]);
|
|
2837
1335
|
return {
|
|
2838
1336
|
focusProps: {
|
|
2839
|
-
onFocus: !r && (
|
|
2840
|
-
onBlur: !r && (
|
|
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
|
|
2845
|
-
function
|
|
2846
|
-
for (let
|
|
2847
|
-
|
|
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
|
|
2850
|
-
return !(
|
|
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
|
|
2853
|
-
|
|
1350
|
+
function Tt(e) {
|
|
1351
|
+
q = !0, Br(e) && (ce = "keyboard", Ve("keyboard", e));
|
|
2854
1352
|
}
|
|
2855
|
-
function
|
|
2856
|
-
|
|
1353
|
+
function ee(e) {
|
|
1354
|
+
ce = "pointer", (e.type === "mousedown" || e.type === "pointerdown") && (q = !0, Ve("pointer", e));
|
|
2857
1355
|
}
|
|
2858
|
-
function
|
|
2859
|
-
|
|
1356
|
+
function Gr(e) {
|
|
1357
|
+
Ke(e) && (q = !0, ce = "virtual");
|
|
2860
1358
|
}
|
|
2861
|
-
function
|
|
2862
|
-
|
|
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
|
|
2865
|
-
|
|
1362
|
+
function qr() {
|
|
1363
|
+
q = !1, je = !0;
|
|
2866
1364
|
}
|
|
2867
|
-
function
|
|
2868
|
-
if (typeof window > "u" ||
|
|
1365
|
+
function wt() {
|
|
1366
|
+
if (typeof window > "u" || Et)
|
|
2869
1367
|
return;
|
|
2870
|
-
let
|
|
1368
|
+
let e = HTMLElement.prototype.focus;
|
|
2871
1369
|
HTMLElement.prototype.focus = function() {
|
|
2872
|
-
|
|
2873
|
-
}, document.addEventListener("keydown",
|
|
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" ?
|
|
2876
|
-
function
|
|
2877
|
-
return
|
|
1373
|
+
typeof document < "u" && (document.readyState !== "loading" ? wt() : document.addEventListener("DOMContentLoaded", wt));
|
|
1374
|
+
function Jr() {
|
|
1375
|
+
return ce;
|
|
2878
1376
|
}
|
|
2879
|
-
function
|
|
2880
|
-
let { isDisabled: r, onBlurWithin:
|
|
1377
|
+
function Xr(e) {
|
|
1378
|
+
let { isDisabled: r, onBlurWithin: n, onFocusWithin: i, onFocusWithinChange: o } = e, f = Y({
|
|
2881
1379
|
isFocusWithin: !1
|
|
2882
|
-
}),
|
|
2883
|
-
|
|
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
|
-
|
|
2888
|
-
|
|
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
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
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:
|
|
2903
|
-
onBlur:
|
|
1400
|
+
onFocus: v,
|
|
1401
|
+
onBlur: u
|
|
2904
1402
|
}
|
|
2905
1403
|
};
|
|
2906
1404
|
}
|
|
2907
|
-
function
|
|
2908
|
-
if (!
|
|
1405
|
+
function St(e) {
|
|
1406
|
+
if (!e)
|
|
2909
1407
|
return;
|
|
2910
1408
|
let r = !0;
|
|
2911
|
-
return (
|
|
2912
|
-
let
|
|
2913
|
-
...
|
|
1409
|
+
return (n) => {
|
|
1410
|
+
let i = {
|
|
1411
|
+
...n,
|
|
2914
1412
|
preventDefault() {
|
|
2915
|
-
|
|
1413
|
+
n.preventDefault();
|
|
2916
1414
|
},
|
|
2917
1415
|
isDefaultPrevented() {
|
|
2918
|
-
return
|
|
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
|
-
|
|
1425
|
+
e(i), r && n.stopPropagation();
|
|
2928
1426
|
};
|
|
2929
1427
|
}
|
|
2930
|
-
function
|
|
1428
|
+
function Zr(e) {
|
|
2931
1429
|
return {
|
|
2932
|
-
keyboardProps:
|
|
2933
|
-
onKeyDown:
|
|
2934
|
-
onKeyUp:
|
|
1430
|
+
keyboardProps: e.isDisabled ? {} : {
|
|
1431
|
+
onKeyDown: St(e.onKeyDown),
|
|
1432
|
+
onKeyUp: St(e.onKeyUp)
|
|
2935
1433
|
}
|
|
2936
1434
|
};
|
|
2937
1435
|
}
|
|
2938
|
-
function
|
|
2939
|
-
if (
|
|
1436
|
+
function Qr(e) {
|
|
1437
|
+
if (Jr() === "virtual") {
|
|
2940
1438
|
let r = document.activeElement;
|
|
2941
|
-
|
|
2942
|
-
document.activeElement === r && document.contains(
|
|
1439
|
+
Mt(() => {
|
|
1440
|
+
document.activeElement === r && document.contains(e) && G(e);
|
|
2943
1441
|
});
|
|
2944
1442
|
} else
|
|
2945
|
-
|
|
1443
|
+
G(e);
|
|
2946
1444
|
}
|
|
2947
|
-
function
|
|
2948
|
-
return r.some((
|
|
1445
|
+
function en(e, r) {
|
|
1446
|
+
return r.some((n) => n.contains(e));
|
|
2949
1447
|
}
|
|
2950
|
-
class
|
|
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,
|
|
2958
|
-
let
|
|
1455
|
+
addTreeNode(r, n, i) {
|
|
1456
|
+
let o = this.fastMap.get(n ?? null), f = new _t({
|
|
2959
1457
|
scopeRef: r
|
|
2960
1458
|
});
|
|
2961
|
-
|
|
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
|
|
2970
|
-
for (let
|
|
2971
|
-
|
|
2972
|
-
let
|
|
2973
|
-
|
|
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
|
|
2979
|
-
yield* this.traverse(
|
|
1476
|
+
for (let n of r.children)
|
|
1477
|
+
yield* this.traverse(n);
|
|
2980
1478
|
}
|
|
2981
1479
|
clone() {
|
|
2982
|
-
let r = new
|
|
2983
|
-
for (let
|
|
2984
|
-
r.addTreeNode(
|
|
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
|
|
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
|
|
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
|
|
3005
|
-
let
|
|
3006
|
-
function
|
|
3007
|
-
let r =
|
|
3008
|
-
|
|
3009
|
-
let { ref:
|
|
3010
|
-
return
|
|
3011
|
-
}
|
|
3012
|
-
function
|
|
3013
|
-
let { focusProps:
|
|
3014
|
-
return
|
|
3015
|
-
|
|
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:
|
|
3020
|
-
...
|
|
3021
|
-
tabIndex:
|
|
3022
|
-
},
|
|
1517
|
+
focusableProps: z({
|
|
1518
|
+
...o,
|
|
1519
|
+
tabIndex: e.excludeFromTabOrder && !e.isDisabled ? -1 : void 0
|
|
1520
|
+
}, u)
|
|
3023
1521
|
};
|
|
3024
1522
|
}
|
|
3025
|
-
function
|
|
3026
|
-
let { isDisabled:
|
|
3027
|
-
|
|
3028
|
-
},
|
|
3029
|
-
!
|
|
3030
|
-
let { pressProps:
|
|
3031
|
-
isDisabled:
|
|
3032
|
-
}), { focusableProps:
|
|
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
|
|
3036
|
-
inputProps:
|
|
3037
|
-
"aria-invalid":
|
|
3038
|
-
"aria-errormessage":
|
|
3039
|
-
"aria-controls":
|
|
3040
|
-
"aria-readonly":
|
|
3041
|
-
"aria-required":
|
|
3042
|
-
onChange:
|
|
3043
|
-
disabled:
|
|
3044
|
-
...
|
|
3045
|
-
value:
|
|
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:
|
|
1545
|
+
name: h,
|
|
3048
1546
|
type: "checkbox",
|
|
3049
|
-
...
|
|
1547
|
+
...O
|
|
3050
1548
|
}),
|
|
3051
1549
|
isSelected: r.isSelected,
|
|
3052
|
-
isPressed:
|
|
3053
|
-
isDisabled:
|
|
3054
|
-
isReadOnly:
|
|
3055
|
-
isInvalid:
|
|
1550
|
+
isPressed: C,
|
|
1551
|
+
isDisabled: i,
|
|
1552
|
+
isReadOnly: f,
|
|
1553
|
+
isInvalid: L || F === "invalid"
|
|
3056
1554
|
};
|
|
3057
1555
|
}
|
|
3058
|
-
const
|
|
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
|
|
3071
|
-
let { style: r, isFocusable:
|
|
3072
|
-
isDisabled: !
|
|
3073
|
-
onFocusWithinChange: (
|
|
3074
|
-
}),
|
|
3075
|
-
...
|
|
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
|
-
} :
|
|
3078
|
-
|
|
1575
|
+
} : Rt, [
|
|
1576
|
+
i
|
|
3079
1577
|
]);
|
|
3080
1578
|
return {
|
|
3081
1579
|
visuallyHiddenProps: {
|
|
3082
|
-
...
|
|
3083
|
-
style:
|
|
1580
|
+
...f,
|
|
1581
|
+
style: u
|
|
3084
1582
|
}
|
|
3085
1583
|
};
|
|
3086
1584
|
}
|
|
3087
|
-
function
|
|
3088
|
-
let { children: r, elementType:
|
|
3089
|
-
return /* @__PURE__ */
|
|
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
|
|
3092
|
-
let { inputProps:
|
|
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
|
-
...
|
|
1593
|
+
...i,
|
|
3096
1594
|
role: "switch",
|
|
3097
|
-
checked:
|
|
1595
|
+
checked: o
|
|
3098
1596
|
},
|
|
3099
|
-
isSelected:
|
|
3100
|
-
isPressed:
|
|
3101
|
-
isDisabled:
|
|
3102
|
-
isReadOnly:
|
|
1597
|
+
isSelected: o,
|
|
1598
|
+
isPressed: f,
|
|
1599
|
+
isDisabled: u,
|
|
1600
|
+
isReadOnly: h
|
|
3103
1601
|
};
|
|
3104
1602
|
}
|
|
3105
|
-
const
|
|
1603
|
+
const xt = {
|
|
3106
1604
|
Primary: "#e26014",
|
|
3107
1605
|
Grey: "#dddddd"
|
|
3108
1606
|
};
|
|
3109
|
-
function
|
|
3110
|
-
const
|
|
3111
|
-
let
|
|
3112
|
-
return [
|
|
3113
|
-
|
|
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
|
-
|
|
1614
|
+
cn.defaultProps = {
|
|
3117
1615
|
defaultOn: !1,
|
|
3118
1616
|
isDisabled: !1
|
|
3119
1617
|
};
|
|
3120
|
-
function
|
|
3121
|
-
let r =
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
),
|
|
3126
|
-
isSelected:
|
|
3127
|
-
setSelected:
|
|
3128
|
-
toggle: () =>
|
|
3129
|
-
}, { inputProps:
|
|
3130
|
-
return /* @__PURE__ */
|
|
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":
|
|
3134
|
-
"data-disabled":
|
|
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:
|
|
1636
|
+
opacity: e.isDisabled ? 0.4 : 1
|
|
3139
1637
|
},
|
|
3140
1638
|
children: [
|
|
3141
|
-
/* @__PURE__ */
|
|
3142
|
-
/* @__PURE__ */
|
|
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:
|
|
3151
|
-
cursor:
|
|
1648
|
+
backgroundColor: o.isSelected ? xt.Primary : xt.Grey,
|
|
1649
|
+
cursor: e.isDisabled ? "not-allowed" : "pointer"
|
|
3152
1650
|
},
|
|
3153
|
-
children: /* @__PURE__ */
|
|
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:
|
|
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
|
-
|
|
1673
|
+
cn as Switch
|
|
3176
1674
|
};
|
|
3177
1675
|
//# sourceMappingURL=proton-ui.es.js.map
|