@protonradio/proton-ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/proton-ui.es.js +2548 -0
- package/dist/proton-ui.umd.js +39 -0
- package/package.json +54 -0
|
@@ -0,0 +1,2548 @@
|
|
|
1
|
+
function Mn(t) {
|
|
2
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
3
|
+
}
|
|
4
|
+
var lt = { exports: {} }, _ = {};
|
|
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 tr;
|
|
15
|
+
function An() {
|
|
16
|
+
if (tr)
|
|
17
|
+
return _;
|
|
18
|
+
tr = 1;
|
|
19
|
+
var t = Symbol.for("react.element"), r = Symbol.for("react.portal"), a = Symbol.for("react.fragment"), u = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), y = Symbol.for("react.provider"), p = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), M = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), ae = Symbol.iterator;
|
|
20
|
+
function oe(o) {
|
|
21
|
+
return o === null || typeof o != "object" ? null : (o = ae && o[ae] || o["@@iterator"], typeof o == "function" ? o : null);
|
|
22
|
+
}
|
|
23
|
+
var ee = { isMounted: function() {
|
|
24
|
+
return !1;
|
|
25
|
+
}, enqueueForceUpdate: function() {
|
|
26
|
+
}, enqueueReplaceState: function() {
|
|
27
|
+
}, enqueueSetState: function() {
|
|
28
|
+
} }, ne = Object.assign, te = {};
|
|
29
|
+
function B(o, v, P) {
|
|
30
|
+
this.props = o, this.context = v, this.refs = te, this.updater = P || ee;
|
|
31
|
+
}
|
|
32
|
+
B.prototype.isReactComponent = {}, B.prototype.setState = function(o, v) {
|
|
33
|
+
if (typeof o != "object" && typeof o != "function" && o != 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, o, v, "setState");
|
|
36
|
+
}, B.prototype.forceUpdate = function(o) {
|
|
37
|
+
this.updater.enqueueForceUpdate(this, o, "forceUpdate");
|
|
38
|
+
};
|
|
39
|
+
function re() {
|
|
40
|
+
}
|
|
41
|
+
re.prototype = B.prototype;
|
|
42
|
+
function z(o, v, P) {
|
|
43
|
+
this.props = o, this.context = v, this.refs = te, this.updater = P || ee;
|
|
44
|
+
}
|
|
45
|
+
var W = z.prototype = new re();
|
|
46
|
+
W.constructor = z, ne(W, B.prototype), W.isPureReactComponent = !0;
|
|
47
|
+
var G = Array.isArray, k = Object.prototype.hasOwnProperty, q = { current: null }, ie = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
48
|
+
function s(o, v, P) {
|
|
49
|
+
var L, S = {}, A = null, V = null;
|
|
50
|
+
if (v != null)
|
|
51
|
+
for (L in v.ref !== void 0 && (V = v.ref), v.key !== void 0 && (A = "" + v.key), v)
|
|
52
|
+
k.call(v, L) && !ie.hasOwnProperty(L) && (S[L] = v[L]);
|
|
53
|
+
var I = arguments.length - 2;
|
|
54
|
+
if (I === 1)
|
|
55
|
+
S.children = P;
|
|
56
|
+
else if (1 < I) {
|
|
57
|
+
for (var j = Array(I), J = 0; J < I; J++)
|
|
58
|
+
j[J] = arguments[J + 2];
|
|
59
|
+
S.children = j;
|
|
60
|
+
}
|
|
61
|
+
if (o && o.defaultProps)
|
|
62
|
+
for (L in I = o.defaultProps, I)
|
|
63
|
+
S[L] === void 0 && (S[L] = I[L]);
|
|
64
|
+
return { $$typeof: t, type: o, key: A, ref: V, props: S, _owner: q.current };
|
|
65
|
+
}
|
|
66
|
+
function w(o, v) {
|
|
67
|
+
return { $$typeof: t, type: o.type, key: v, ref: o.ref, props: o.props, _owner: o._owner };
|
|
68
|
+
}
|
|
69
|
+
function X(o) {
|
|
70
|
+
return typeof o == "object" && o !== null && o.$$typeof === t;
|
|
71
|
+
}
|
|
72
|
+
function h(o) {
|
|
73
|
+
var v = { "=": "=0", ":": "=2" };
|
|
74
|
+
return "$" + o.replace(/[=:]/g, function(P) {
|
|
75
|
+
return v[P];
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
var F = /\/+/g;
|
|
79
|
+
function f(o, v) {
|
|
80
|
+
return typeof o == "object" && o !== null && o.key != null ? h("" + o.key) : v.toString(36);
|
|
81
|
+
}
|
|
82
|
+
function g(o, v, P, L, S) {
|
|
83
|
+
var A = typeof o;
|
|
84
|
+
(A === "undefined" || A === "boolean") && (o = null);
|
|
85
|
+
var V = !1;
|
|
86
|
+
if (o === null)
|
|
87
|
+
V = !0;
|
|
88
|
+
else
|
|
89
|
+
switch (A) {
|
|
90
|
+
case "string":
|
|
91
|
+
case "number":
|
|
92
|
+
V = !0;
|
|
93
|
+
break;
|
|
94
|
+
case "object":
|
|
95
|
+
switch (o.$$typeof) {
|
|
96
|
+
case t:
|
|
97
|
+
case r:
|
|
98
|
+
V = !0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if (V)
|
|
102
|
+
return V = o, S = S(V), o = L === "" ? "." + f(V, 0) : L, G(S) ? (P = "", o != null && (P = o.replace(F, "$&/") + "/"), g(S, v, P, "", function(J) {
|
|
103
|
+
return J;
|
|
104
|
+
})) : S != null && (X(S) && (S = w(S, P + (!S.key || V && V.key === S.key ? "" : ("" + S.key).replace(F, "$&/") + "/") + o)), v.push(S)), 1;
|
|
105
|
+
if (V = 0, L = L === "" ? "." : L + ":", G(o))
|
|
106
|
+
for (var I = 0; I < o.length; I++) {
|
|
107
|
+
A = o[I];
|
|
108
|
+
var j = L + f(A, I);
|
|
109
|
+
V += g(A, v, P, j, S);
|
|
110
|
+
}
|
|
111
|
+
else if (j = oe(o), typeof j == "function")
|
|
112
|
+
for (o = j.call(o), I = 0; !(A = o.next()).done; )
|
|
113
|
+
A = A.value, j = L + f(A, I++), V += g(A, v, P, j, S);
|
|
114
|
+
else if (A === "object")
|
|
115
|
+
throw v = String(o), Error("Objects are not valid as a React child (found: " + (v === "[object Object]" ? "object with keys {" + Object.keys(o).join(", ") + "}" : v) + "). If you meant to render a collection of children, use an array instead.");
|
|
116
|
+
return V;
|
|
117
|
+
}
|
|
118
|
+
function O(o, v, P) {
|
|
119
|
+
if (o == null)
|
|
120
|
+
return o;
|
|
121
|
+
var L = [], S = 0;
|
|
122
|
+
return g(o, L, "", "", function(A) {
|
|
123
|
+
return v.call(P, A, S++);
|
|
124
|
+
}), L;
|
|
125
|
+
}
|
|
126
|
+
function le(o) {
|
|
127
|
+
if (o._status === -1) {
|
|
128
|
+
var v = o._result;
|
|
129
|
+
v = v(), v.then(function(P) {
|
|
130
|
+
(o._status === 0 || o._status === -1) && (o._status = 1, o._result = P);
|
|
131
|
+
}, function(P) {
|
|
132
|
+
(o._status === 0 || o._status === -1) && (o._status = 2, o._result = P);
|
|
133
|
+
}), o._status === -1 && (o._status = 0, o._result = v);
|
|
134
|
+
}
|
|
135
|
+
if (o._status === 1)
|
|
136
|
+
return o._result.default;
|
|
137
|
+
throw o._result;
|
|
138
|
+
}
|
|
139
|
+
var $ = { current: null }, fe = { transition: null }, Oe = { ReactCurrentDispatcher: $, ReactCurrentBatchConfig: fe, ReactCurrentOwner: q };
|
|
140
|
+
return _.Children = { map: O, forEach: function(o, v, P) {
|
|
141
|
+
O(o, function() {
|
|
142
|
+
v.apply(this, arguments);
|
|
143
|
+
}, P);
|
|
144
|
+
}, count: function(o) {
|
|
145
|
+
var v = 0;
|
|
146
|
+
return O(o, function() {
|
|
147
|
+
v++;
|
|
148
|
+
}), v;
|
|
149
|
+
}, toArray: function(o) {
|
|
150
|
+
return O(o, function(v) {
|
|
151
|
+
return v;
|
|
152
|
+
}) || [];
|
|
153
|
+
}, only: function(o) {
|
|
154
|
+
if (!X(o))
|
|
155
|
+
throw Error("React.Children.only expected to receive a single React element child.");
|
|
156
|
+
return o;
|
|
157
|
+
} }, _.Component = B, _.Fragment = a, _.Profiler = c, _.PureComponent = z, _.StrictMode = u, _.Suspense = T, _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Oe, _.cloneElement = function(o, v, P) {
|
|
158
|
+
if (o == null)
|
|
159
|
+
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + o + ".");
|
|
160
|
+
var L = ne({}, o.props), S = o.key, A = o.ref, V = o._owner;
|
|
161
|
+
if (v != null) {
|
|
162
|
+
if (v.ref !== void 0 && (A = v.ref, V = q.current), v.key !== void 0 && (S = "" + v.key), o.type && o.type.defaultProps)
|
|
163
|
+
var I = o.type.defaultProps;
|
|
164
|
+
for (j in v)
|
|
165
|
+
k.call(v, j) && !ie.hasOwnProperty(j) && (L[j] = v[j] === void 0 && I !== void 0 ? I[j] : v[j]);
|
|
166
|
+
}
|
|
167
|
+
var j = arguments.length - 2;
|
|
168
|
+
if (j === 1)
|
|
169
|
+
L.children = P;
|
|
170
|
+
else if (1 < j) {
|
|
171
|
+
I = Array(j);
|
|
172
|
+
for (var J = 0; J < j; J++)
|
|
173
|
+
I[J] = arguments[J + 2];
|
|
174
|
+
L.children = I;
|
|
175
|
+
}
|
|
176
|
+
return { $$typeof: t, type: o.type, key: S, ref: A, props: L, _owner: V };
|
|
177
|
+
}, _.createContext = function(o) {
|
|
178
|
+
return o = { $$typeof: p, _currentValue: o, _currentValue2: o, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, o.Provider = { $$typeof: y, _context: o }, o.Consumer = o;
|
|
179
|
+
}, _.createElement = s, _.createFactory = function(o) {
|
|
180
|
+
var v = s.bind(null, o);
|
|
181
|
+
return v.type = o, v;
|
|
182
|
+
}, _.createRef = function() {
|
|
183
|
+
return { current: null };
|
|
184
|
+
}, _.forwardRef = function(o) {
|
|
185
|
+
return { $$typeof: C, render: o };
|
|
186
|
+
}, _.isValidElement = X, _.lazy = function(o) {
|
|
187
|
+
return { $$typeof: Y, _payload: { _status: -1, _result: o }, _init: le };
|
|
188
|
+
}, _.memo = function(o, v) {
|
|
189
|
+
return { $$typeof: M, type: o, compare: v === void 0 ? null : v };
|
|
190
|
+
}, _.startTransition = function(o) {
|
|
191
|
+
var v = fe.transition;
|
|
192
|
+
fe.transition = {};
|
|
193
|
+
try {
|
|
194
|
+
o();
|
|
195
|
+
} finally {
|
|
196
|
+
fe.transition = v;
|
|
197
|
+
}
|
|
198
|
+
}, _.unstable_act = function() {
|
|
199
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
200
|
+
}, _.useCallback = function(o, v) {
|
|
201
|
+
return $.current.useCallback(o, v);
|
|
202
|
+
}, _.useContext = function(o) {
|
|
203
|
+
return $.current.useContext(o);
|
|
204
|
+
}, _.useDebugValue = function() {
|
|
205
|
+
}, _.useDeferredValue = function(o) {
|
|
206
|
+
return $.current.useDeferredValue(o);
|
|
207
|
+
}, _.useEffect = function(o, v) {
|
|
208
|
+
return $.current.useEffect(o, v);
|
|
209
|
+
}, _.useId = function() {
|
|
210
|
+
return $.current.useId();
|
|
211
|
+
}, _.useImperativeHandle = function(o, v, P) {
|
|
212
|
+
return $.current.useImperativeHandle(o, v, P);
|
|
213
|
+
}, _.useInsertionEffect = function(o, v) {
|
|
214
|
+
return $.current.useInsertionEffect(o, v);
|
|
215
|
+
}, _.useLayoutEffect = function(o, v) {
|
|
216
|
+
return $.current.useLayoutEffect(o, v);
|
|
217
|
+
}, _.useMemo = function(o, v) {
|
|
218
|
+
return $.current.useMemo(o, v);
|
|
219
|
+
}, _.useReducer = function(o, v, P) {
|
|
220
|
+
return $.current.useReducer(o, v, P);
|
|
221
|
+
}, _.useRef = function(o) {
|
|
222
|
+
return $.current.useRef(o);
|
|
223
|
+
}, _.useState = function(o) {
|
|
224
|
+
return $.current.useState(o);
|
|
225
|
+
}, _.useSyncExternalStore = function(o, v, P) {
|
|
226
|
+
return $.current.useSyncExternalStore(o, v, P);
|
|
227
|
+
}, _.useTransition = function() {
|
|
228
|
+
return $.current.useTransition();
|
|
229
|
+
}, _.version = "18.2.0", _;
|
|
230
|
+
}
|
|
231
|
+
var Se = { 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
|
+
Se.exports;
|
|
242
|
+
var rr;
|
|
243
|
+
function In() {
|
|
244
|
+
return rr || (rr = 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 a = "18.2.0", u = Symbol.for("react.element"), c = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), p = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), M = Symbol.for("react.context"), Y = Symbol.for("react.forward_ref"), ae = Symbol.for("react.suspense"), oe = Symbol.for("react.suspense_list"), ee = Symbol.for("react.memo"), ne = Symbol.for("react.lazy"), te = Symbol.for("react.offscreen"), B = Symbol.iterator, re = "@@iterator";
|
|
248
|
+
function z(e) {
|
|
249
|
+
if (e === null || typeof e != "object")
|
|
250
|
+
return null;
|
|
251
|
+
var n = B && e[B] || e[re];
|
|
252
|
+
return typeof n == "function" ? n : null;
|
|
253
|
+
}
|
|
254
|
+
var W = {
|
|
255
|
+
/**
|
|
256
|
+
* @internal
|
|
257
|
+
* @type {ReactComponent}
|
|
258
|
+
*/
|
|
259
|
+
current: null
|
|
260
|
+
}, G = {
|
|
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
|
+
}, q = {
|
|
268
|
+
/**
|
|
269
|
+
* @internal
|
|
270
|
+
* @type {ReactComponent}
|
|
271
|
+
*/
|
|
272
|
+
current: null
|
|
273
|
+
}, ie = {}, s = null;
|
|
274
|
+
function w(e) {
|
|
275
|
+
s = e;
|
|
276
|
+
}
|
|
277
|
+
ie.setExtraStackFrame = function(e) {
|
|
278
|
+
s = e;
|
|
279
|
+
}, ie.getCurrentStack = null, ie.getStackAddendum = function() {
|
|
280
|
+
var e = "";
|
|
281
|
+
s && (e += s);
|
|
282
|
+
var n = ie.getCurrentStack;
|
|
283
|
+
return n && (e += n() || ""), e;
|
|
284
|
+
};
|
|
285
|
+
var X = !1, h = !1, F = !1, f = !1, g = !1, O = {
|
|
286
|
+
ReactCurrentDispatcher: W,
|
|
287
|
+
ReactCurrentBatchConfig: G,
|
|
288
|
+
ReactCurrentOwner: q
|
|
289
|
+
};
|
|
290
|
+
O.ReactDebugCurrentFrame = ie, O.ReactCurrentActQueue = k;
|
|
291
|
+
function le(e) {
|
|
292
|
+
{
|
|
293
|
+
for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), l = 1; l < n; l++)
|
|
294
|
+
i[l - 1] = arguments[l];
|
|
295
|
+
fe("warn", e, i);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
function $(e) {
|
|
299
|
+
{
|
|
300
|
+
for (var n = arguments.length, i = new Array(n > 1 ? n - 1 : 0), l = 1; l < n; l++)
|
|
301
|
+
i[l - 1] = arguments[l];
|
|
302
|
+
fe("error", e, i);
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
function fe(e, n, i) {
|
|
306
|
+
{
|
|
307
|
+
var l = O.ReactDebugCurrentFrame, d = l.getStackAddendum();
|
|
308
|
+
d !== "" && (n += "%s", i = i.concat([d]));
|
|
309
|
+
var m = i.map(function(b) {
|
|
310
|
+
return String(b);
|
|
311
|
+
});
|
|
312
|
+
m.unshift("Warning: " + n), Function.prototype.apply.call(console[e], console, m);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
var Oe = {};
|
|
316
|
+
function o(e, n) {
|
|
317
|
+
{
|
|
318
|
+
var i = e.constructor, l = i && (i.displayName || i.name) || "ReactClass", d = l + "." + n;
|
|
319
|
+
if (Oe[d])
|
|
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, l), Oe[d] = !0;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
var v = {
|
|
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, i) {
|
|
351
|
+
o(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, i, l) {
|
|
367
|
+
o(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, i, l) {
|
|
382
|
+
o(e, "setState");
|
|
383
|
+
}
|
|
384
|
+
}, P = Object.assign, L = {};
|
|
385
|
+
Object.freeze(L);
|
|
386
|
+
function S(e, n, i) {
|
|
387
|
+
this.props = e, this.context = n, this.refs = L, this.updater = i || v;
|
|
388
|
+
}
|
|
389
|
+
S.prototype.isReactComponent = {}, S.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
|
+
}, S.prototype.forceUpdate = function(e) {
|
|
394
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
395
|
+
};
|
|
396
|
+
{
|
|
397
|
+
var A = {
|
|
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
|
+
}, V = function(e, n) {
|
|
401
|
+
Object.defineProperty(S.prototype, e, {
|
|
402
|
+
get: function() {
|
|
403
|
+
le("%s(...) is deprecated in plain JavaScript React classes. %s", n[0], n[1]);
|
|
404
|
+
}
|
|
405
|
+
});
|
|
406
|
+
};
|
|
407
|
+
for (var I in A)
|
|
408
|
+
A.hasOwnProperty(I) && V(I, A[I]);
|
|
409
|
+
}
|
|
410
|
+
function j() {
|
|
411
|
+
}
|
|
412
|
+
j.prototype = S.prototype;
|
|
413
|
+
function J(e, n, i) {
|
|
414
|
+
this.props = e, this.context = n, this.refs = L, this.updater = i || v;
|
|
415
|
+
}
|
|
416
|
+
var Ge = J.prototype = new j();
|
|
417
|
+
Ge.constructor = J, P(Ge, S.prototype), Ge.isPureReactComponent = !0;
|
|
418
|
+
function Rr() {
|
|
419
|
+
var e = {
|
|
420
|
+
current: null
|
|
421
|
+
};
|
|
422
|
+
return Object.seal(e), e;
|
|
423
|
+
}
|
|
424
|
+
var Cr = Array.isArray;
|
|
425
|
+
function Le(e) {
|
|
426
|
+
return Cr(e);
|
|
427
|
+
}
|
|
428
|
+
function kr(e) {
|
|
429
|
+
{
|
|
430
|
+
var n = typeof Symbol == "function" && Symbol.toStringTag, i = n && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
431
|
+
return i;
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
function Or(e) {
|
|
435
|
+
try {
|
|
436
|
+
return mt(e), !1;
|
|
437
|
+
} catch {
|
|
438
|
+
return !0;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
function mt(e) {
|
|
442
|
+
return "" + e;
|
|
443
|
+
}
|
|
444
|
+
function xe(e) {
|
|
445
|
+
if (Or(e))
|
|
446
|
+
return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", kr(e)), mt(e);
|
|
447
|
+
}
|
|
448
|
+
function Lr(e, n, i) {
|
|
449
|
+
var l = e.displayName;
|
|
450
|
+
if (l)
|
|
451
|
+
return l;
|
|
452
|
+
var d = n.displayName || n.name || "";
|
|
453
|
+
return d !== "" ? i + "(" + d + ")" : i;
|
|
454
|
+
}
|
|
455
|
+
function $t(e) {
|
|
456
|
+
return e.displayName || "Context";
|
|
457
|
+
}
|
|
458
|
+
function ce(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 y:
|
|
467
|
+
return "Fragment";
|
|
468
|
+
case c:
|
|
469
|
+
return "Portal";
|
|
470
|
+
case C:
|
|
471
|
+
return "Profiler";
|
|
472
|
+
case p:
|
|
473
|
+
return "StrictMode";
|
|
474
|
+
case ae:
|
|
475
|
+
return "Suspense";
|
|
476
|
+
case oe:
|
|
477
|
+
return "SuspenseList";
|
|
478
|
+
}
|
|
479
|
+
if (typeof e == "object")
|
|
480
|
+
switch (e.$$typeof) {
|
|
481
|
+
case M:
|
|
482
|
+
var n = e;
|
|
483
|
+
return $t(n) + ".Consumer";
|
|
484
|
+
case T:
|
|
485
|
+
var i = e;
|
|
486
|
+
return $t(i._context) + ".Provider";
|
|
487
|
+
case Y:
|
|
488
|
+
return Lr(e, e.render, "ForwardRef");
|
|
489
|
+
case ee:
|
|
490
|
+
var l = e.displayName || null;
|
|
491
|
+
return l !== null ? l : ce(e.type) || "Memo";
|
|
492
|
+
case ne: {
|
|
493
|
+
var d = e, m = d._payload, b = d._init;
|
|
494
|
+
try {
|
|
495
|
+
return ce(b(m));
|
|
496
|
+
} catch {
|
|
497
|
+
return null;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
return null;
|
|
502
|
+
}
|
|
503
|
+
var Te = Object.prototype.hasOwnProperty, Et = {
|
|
504
|
+
key: !0,
|
|
505
|
+
ref: !0,
|
|
506
|
+
__self: !0,
|
|
507
|
+
__source: !0
|
|
508
|
+
}, Pt, Tt, qe;
|
|
509
|
+
qe = {};
|
|
510
|
+
function _t(e) {
|
|
511
|
+
if (Te.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 wt(e) {
|
|
519
|
+
if (Te.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 xr(e, n) {
|
|
527
|
+
var i = function() {
|
|
528
|
+
Pt || (Pt = !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
|
+
i.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
531
|
+
get: i,
|
|
532
|
+
configurable: !0
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
function Dr(e, n) {
|
|
536
|
+
var i = function() {
|
|
537
|
+
Tt || (Tt = !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
|
+
i.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
540
|
+
get: i,
|
|
541
|
+
configurable: !0
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
function Fr(e) {
|
|
545
|
+
if (typeof e.ref == "string" && q.current && e.__self && q.current.stateNode !== e.__self) {
|
|
546
|
+
var n = ce(q.current.type);
|
|
547
|
+
qe[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), qe[n] = !0);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
var Xe = function(e, n, i, l, d, m, b) {
|
|
551
|
+
var E = {
|
|
552
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
553
|
+
$$typeof: u,
|
|
554
|
+
// Built-in properties that belong on the element
|
|
555
|
+
type: e,
|
|
556
|
+
key: n,
|
|
557
|
+
ref: i,
|
|
558
|
+
props: b,
|
|
559
|
+
// Record the component responsible for creating this element.
|
|
560
|
+
_owner: m
|
|
561
|
+
};
|
|
562
|
+
return E._store = {}, Object.defineProperty(E._store, "validated", {
|
|
563
|
+
configurable: !1,
|
|
564
|
+
enumerable: !1,
|
|
565
|
+
writable: !0,
|
|
566
|
+
value: !1
|
|
567
|
+
}), Object.defineProperty(E, "_self", {
|
|
568
|
+
configurable: !1,
|
|
569
|
+
enumerable: !1,
|
|
570
|
+
writable: !1,
|
|
571
|
+
value: l
|
|
572
|
+
}), Object.defineProperty(E, "_source", {
|
|
573
|
+
configurable: !1,
|
|
574
|
+
enumerable: !1,
|
|
575
|
+
writable: !1,
|
|
576
|
+
value: d
|
|
577
|
+
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
|
578
|
+
};
|
|
579
|
+
function Mr(e, n, i) {
|
|
580
|
+
var l, d = {}, m = null, b = null, E = null, R = null;
|
|
581
|
+
if (n != null) {
|
|
582
|
+
_t(n) && (b = n.ref, Fr(n)), wt(n) && (xe(n.key), m = "" + n.key), E = n.__self === void 0 ? null : n.__self, R = n.__source === void 0 ? null : n.__source;
|
|
583
|
+
for (l in n)
|
|
584
|
+
Te.call(n, l) && !Et.hasOwnProperty(l) && (d[l] = n[l]);
|
|
585
|
+
}
|
|
586
|
+
var D = arguments.length - 2;
|
|
587
|
+
if (D === 1)
|
|
588
|
+
d.children = i;
|
|
589
|
+
else if (D > 1) {
|
|
590
|
+
for (var K = Array(D), N = 0; N < D; N++)
|
|
591
|
+
K[N] = arguments[N + 2];
|
|
592
|
+
Object.freeze && Object.freeze(K), d.children = K;
|
|
593
|
+
}
|
|
594
|
+
if (e && e.defaultProps) {
|
|
595
|
+
var U = e.defaultProps;
|
|
596
|
+
for (l in U)
|
|
597
|
+
d[l] === void 0 && (d[l] = U[l]);
|
|
598
|
+
}
|
|
599
|
+
if (m || b) {
|
|
600
|
+
var H = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
601
|
+
m && xr(d, H), b && Dr(d, H);
|
|
602
|
+
}
|
|
603
|
+
return Xe(e, m, b, E, R, q.current, d);
|
|
604
|
+
}
|
|
605
|
+
function Ar(e, n) {
|
|
606
|
+
var i = Xe(e.type, n, e.ref, e._self, e._source, e._owner, e.props);
|
|
607
|
+
return i;
|
|
608
|
+
}
|
|
609
|
+
function Ir(e, n, i) {
|
|
610
|
+
if (e == null)
|
|
611
|
+
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
612
|
+
var l, d = P({}, e.props), m = e.key, b = e.ref, E = e._self, R = e._source, D = e._owner;
|
|
613
|
+
if (n != null) {
|
|
614
|
+
_t(n) && (b = n.ref, D = q.current), wt(n) && (xe(n.key), m = "" + n.key);
|
|
615
|
+
var K;
|
|
616
|
+
e.type && e.type.defaultProps && (K = e.type.defaultProps);
|
|
617
|
+
for (l in n)
|
|
618
|
+
Te.call(n, l) && !Et.hasOwnProperty(l) && (n[l] === void 0 && K !== void 0 ? d[l] = K[l] : d[l] = n[l]);
|
|
619
|
+
}
|
|
620
|
+
var N = arguments.length - 2;
|
|
621
|
+
if (N === 1)
|
|
622
|
+
d.children = i;
|
|
623
|
+
else if (N > 1) {
|
|
624
|
+
for (var U = Array(N), H = 0; H < N; H++)
|
|
625
|
+
U[H] = arguments[H + 2];
|
|
626
|
+
d.children = U;
|
|
627
|
+
}
|
|
628
|
+
return Xe(e.type, m, b, E, R, D, d);
|
|
629
|
+
}
|
|
630
|
+
function ge(e) {
|
|
631
|
+
return typeof e == "object" && e !== null && e.$$typeof === u;
|
|
632
|
+
}
|
|
633
|
+
var St = ".", jr = ":";
|
|
634
|
+
function Kr(e) {
|
|
635
|
+
var n = /[=:]/g, i = {
|
|
636
|
+
"=": "=0",
|
|
637
|
+
":": "=2"
|
|
638
|
+
}, l = e.replace(n, function(d) {
|
|
639
|
+
return i[d];
|
|
640
|
+
});
|
|
641
|
+
return "$" + l;
|
|
642
|
+
}
|
|
643
|
+
var Rt = !1, Nr = /\/+/g;
|
|
644
|
+
function Ct(e) {
|
|
645
|
+
return e.replace(Nr, "$&/");
|
|
646
|
+
}
|
|
647
|
+
function Qe(e, n) {
|
|
648
|
+
return typeof e == "object" && e !== null && e.key != null ? (xe(e.key), Kr("" + e.key)) : n.toString(36);
|
|
649
|
+
}
|
|
650
|
+
function De(e, n, i, l, d) {
|
|
651
|
+
var m = typeof e;
|
|
652
|
+
(m === "undefined" || m === "boolean") && (e = null);
|
|
653
|
+
var b = !1;
|
|
654
|
+
if (e === null)
|
|
655
|
+
b = !0;
|
|
656
|
+
else
|
|
657
|
+
switch (m) {
|
|
658
|
+
case "string":
|
|
659
|
+
case "number":
|
|
660
|
+
b = !0;
|
|
661
|
+
break;
|
|
662
|
+
case "object":
|
|
663
|
+
switch (e.$$typeof) {
|
|
664
|
+
case u:
|
|
665
|
+
case c:
|
|
666
|
+
b = !0;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
if (b) {
|
|
670
|
+
var E = e, R = d(E), D = l === "" ? St + Qe(E, 0) : l;
|
|
671
|
+
if (Le(R)) {
|
|
672
|
+
var K = "";
|
|
673
|
+
D != null && (K = Ct(D) + "/"), De(R, n, K, "", function(Fn) {
|
|
674
|
+
return Fn;
|
|
675
|
+
});
|
|
676
|
+
} else
|
|
677
|
+
R != null && (ge(R) && (R.key && (!E || E.key !== R.key) && xe(R.key), R = Ar(
|
|
678
|
+
R,
|
|
679
|
+
// Keep both the (mapped) and old keys if they differ, just as
|
|
680
|
+
// traverseAllChildren used to do for objects as children
|
|
681
|
+
i + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
682
|
+
(R.key && (!E || E.key !== R.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
|
+
Ct("" + R.key) + "/"
|
|
686
|
+
) : "") + D
|
|
687
|
+
)), n.push(R));
|
|
688
|
+
return 1;
|
|
689
|
+
}
|
|
690
|
+
var N, U, H = 0, Q = l === "" ? St : l + jr;
|
|
691
|
+
if (Le(e))
|
|
692
|
+
for (var Ue = 0; Ue < e.length; Ue++)
|
|
693
|
+
N = e[Ue], U = Q + Qe(N, Ue), H += De(N, n, i, U, d);
|
|
694
|
+
else {
|
|
695
|
+
var it = z(e);
|
|
696
|
+
if (typeof it == "function") {
|
|
697
|
+
var Jt = e;
|
|
698
|
+
it === Jt.entries && (Rt || le("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Rt = !0);
|
|
699
|
+
for (var xn = it.call(Jt), Zt, Dn = 0; !(Zt = xn.next()).done; )
|
|
700
|
+
N = Zt.value, U = Q + Qe(N, Dn++), H += De(N, n, i, U, d);
|
|
701
|
+
} else if (m === "object") {
|
|
702
|
+
var er = String(e);
|
|
703
|
+
throw new Error("Objects are not valid as a React child (found: " + (er === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : er) + "). If you meant to render a collection of children, use an array instead.");
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
return H;
|
|
707
|
+
}
|
|
708
|
+
function Fe(e, n, i) {
|
|
709
|
+
if (e == null)
|
|
710
|
+
return e;
|
|
711
|
+
var l = [], d = 0;
|
|
712
|
+
return De(e, l, "", "", function(m) {
|
|
713
|
+
return n.call(i, m, d++);
|
|
714
|
+
}), l;
|
|
715
|
+
}
|
|
716
|
+
function Ur(e) {
|
|
717
|
+
var n = 0;
|
|
718
|
+
return Fe(e, function() {
|
|
719
|
+
n++;
|
|
720
|
+
}), n;
|
|
721
|
+
}
|
|
722
|
+
function Wr(e, n, i) {
|
|
723
|
+
Fe(e, function() {
|
|
724
|
+
n.apply(this, arguments);
|
|
725
|
+
}, i);
|
|
726
|
+
}
|
|
727
|
+
function Vr(e) {
|
|
728
|
+
return Fe(e, function(n) {
|
|
729
|
+
return n;
|
|
730
|
+
}) || [];
|
|
731
|
+
}
|
|
732
|
+
function Hr(e) {
|
|
733
|
+
if (!ge(e))
|
|
734
|
+
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
735
|
+
return e;
|
|
736
|
+
}
|
|
737
|
+
function Br(e) {
|
|
738
|
+
var n = {
|
|
739
|
+
$$typeof: M,
|
|
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 i = !1, l = !1, d = !1;
|
|
762
|
+
{
|
|
763
|
+
var m = {
|
|
764
|
+
$$typeof: M,
|
|
765
|
+
_context: n
|
|
766
|
+
};
|
|
767
|
+
Object.defineProperties(m, {
|
|
768
|
+
Provider: {
|
|
769
|
+
get: function() {
|
|
770
|
+
return l || (l = !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(b) {
|
|
773
|
+
n.Provider = b;
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
_currentValue: {
|
|
777
|
+
get: function() {
|
|
778
|
+
return n._currentValue;
|
|
779
|
+
},
|
|
780
|
+
set: function(b) {
|
|
781
|
+
n._currentValue = b;
|
|
782
|
+
}
|
|
783
|
+
},
|
|
784
|
+
_currentValue2: {
|
|
785
|
+
get: function() {
|
|
786
|
+
return n._currentValue2;
|
|
787
|
+
},
|
|
788
|
+
set: function(b) {
|
|
789
|
+
n._currentValue2 = b;
|
|
790
|
+
}
|
|
791
|
+
},
|
|
792
|
+
_threadCount: {
|
|
793
|
+
get: function() {
|
|
794
|
+
return n._threadCount;
|
|
795
|
+
},
|
|
796
|
+
set: function(b) {
|
|
797
|
+
n._threadCount = b;
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
Consumer: {
|
|
801
|
+
get: function() {
|
|
802
|
+
return i || (i = !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(b) {
|
|
810
|
+
d || (le("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", b), d = !0);
|
|
811
|
+
}
|
|
812
|
+
}
|
|
813
|
+
}), n.Consumer = m;
|
|
814
|
+
}
|
|
815
|
+
return n._currentRenderer = null, n._currentRenderer2 = null, n;
|
|
816
|
+
}
|
|
817
|
+
var _e = -1, Je = 0, kt = 1, Yr = 2;
|
|
818
|
+
function zr(e) {
|
|
819
|
+
if (e._status === _e) {
|
|
820
|
+
var n = e._result, i = n();
|
|
821
|
+
if (i.then(function(m) {
|
|
822
|
+
if (e._status === Je || e._status === _e) {
|
|
823
|
+
var b = e;
|
|
824
|
+
b._status = kt, b._result = m;
|
|
825
|
+
}
|
|
826
|
+
}, function(m) {
|
|
827
|
+
if (e._status === Je || e._status === _e) {
|
|
828
|
+
var b = e;
|
|
829
|
+
b._status = Yr, b._result = m;
|
|
830
|
+
}
|
|
831
|
+
}), e._status === _e) {
|
|
832
|
+
var l = e;
|
|
833
|
+
l._status = Je, l._result = i;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
if (e._status === kt) {
|
|
837
|
+
var d = e._result;
|
|
838
|
+
return d === 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?`, d), "default" in d || $(`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'))`, d), d.default;
|
|
847
|
+
} else
|
|
848
|
+
throw e._result;
|
|
849
|
+
}
|
|
850
|
+
function Gr(e) {
|
|
851
|
+
var n = {
|
|
852
|
+
// We use these fields to store the result.
|
|
853
|
+
_status: _e,
|
|
854
|
+
_result: e
|
|
855
|
+
}, i = {
|
|
856
|
+
$$typeof: ne,
|
|
857
|
+
_payload: n,
|
|
858
|
+
_init: zr
|
|
859
|
+
};
|
|
860
|
+
{
|
|
861
|
+
var l, d;
|
|
862
|
+
Object.defineProperties(i, {
|
|
863
|
+
defaultProps: {
|
|
864
|
+
configurable: !0,
|
|
865
|
+
get: function() {
|
|
866
|
+
return l;
|
|
867
|
+
},
|
|
868
|
+
set: function(m) {
|
|
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."), l = m, Object.defineProperty(i, "defaultProps", {
|
|
870
|
+
enumerable: !0
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
propTypes: {
|
|
875
|
+
configurable: !0,
|
|
876
|
+
get: function() {
|
|
877
|
+
return d;
|
|
878
|
+
},
|
|
879
|
+
set: function(m) {
|
|
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."), d = m, Object.defineProperty(i, "propTypes", {
|
|
881
|
+
enumerable: !0
|
|
882
|
+
});
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
return i;
|
|
888
|
+
}
|
|
889
|
+
function qr(e) {
|
|
890
|
+
e != null && e.$$typeof === ee ? $("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: Y,
|
|
893
|
+
render: e
|
|
894
|
+
};
|
|
895
|
+
{
|
|
896
|
+
var i;
|
|
897
|
+
Object.defineProperty(n, "displayName", {
|
|
898
|
+
enumerable: !1,
|
|
899
|
+
configurable: !0,
|
|
900
|
+
get: function() {
|
|
901
|
+
return i;
|
|
902
|
+
},
|
|
903
|
+
set: function(l) {
|
|
904
|
+
i = l, !e.name && !e.displayName && (e.displayName = l);
|
|
905
|
+
}
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
return n;
|
|
909
|
+
}
|
|
910
|
+
var Ot;
|
|
911
|
+
Ot = Symbol.for("react.module.reference");
|
|
912
|
+
function Lt(e) {
|
|
913
|
+
return !!(typeof e == "string" || typeof e == "function" || e === y || e === C || g || e === p || e === ae || e === oe || f || e === te || X || h || F || typeof e == "object" && e !== null && (e.$$typeof === ne || e.$$typeof === ee || e.$$typeof === T || e.$$typeof === M || e.$$typeof === Y || // 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 === Ot || e.getModuleId !== void 0));
|
|
918
|
+
}
|
|
919
|
+
function Xr(e, n) {
|
|
920
|
+
Lt(e) || $("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
|
|
921
|
+
var i = {
|
|
922
|
+
$$typeof: ee,
|
|
923
|
+
type: e,
|
|
924
|
+
compare: n === void 0 ? null : n
|
|
925
|
+
};
|
|
926
|
+
{
|
|
927
|
+
var l;
|
|
928
|
+
Object.defineProperty(i, "displayName", {
|
|
929
|
+
enumerable: !1,
|
|
930
|
+
configurable: !0,
|
|
931
|
+
get: function() {
|
|
932
|
+
return l;
|
|
933
|
+
},
|
|
934
|
+
set: function(d) {
|
|
935
|
+
l = d, !e.name && !e.displayName && (e.displayName = d);
|
|
936
|
+
}
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
return i;
|
|
940
|
+
}
|
|
941
|
+
function Z() {
|
|
942
|
+
var e = W.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 Qr(e) {
|
|
950
|
+
var n = Z();
|
|
951
|
+
if (e._context !== void 0) {
|
|
952
|
+
var i = e._context;
|
|
953
|
+
i.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?") : i.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 Jr(e) {
|
|
958
|
+
var n = Z();
|
|
959
|
+
return n.useState(e);
|
|
960
|
+
}
|
|
961
|
+
function Zr(e, n, i) {
|
|
962
|
+
var l = Z();
|
|
963
|
+
return l.useReducer(e, n, i);
|
|
964
|
+
}
|
|
965
|
+
function en(e) {
|
|
966
|
+
var n = Z();
|
|
967
|
+
return n.useRef(e);
|
|
968
|
+
}
|
|
969
|
+
function tn(e, n) {
|
|
970
|
+
var i = Z();
|
|
971
|
+
return i.useEffect(e, n);
|
|
972
|
+
}
|
|
973
|
+
function rn(e, n) {
|
|
974
|
+
var i = Z();
|
|
975
|
+
return i.useInsertionEffect(e, n);
|
|
976
|
+
}
|
|
977
|
+
function nn(e, n) {
|
|
978
|
+
var i = Z();
|
|
979
|
+
return i.useLayoutEffect(e, n);
|
|
980
|
+
}
|
|
981
|
+
function an(e, n) {
|
|
982
|
+
var i = Z();
|
|
983
|
+
return i.useCallback(e, n);
|
|
984
|
+
}
|
|
985
|
+
function on(e, n) {
|
|
986
|
+
var i = Z();
|
|
987
|
+
return i.useMemo(e, n);
|
|
988
|
+
}
|
|
989
|
+
function sn(e, n, i) {
|
|
990
|
+
var l = Z();
|
|
991
|
+
return l.useImperativeHandle(e, n, i);
|
|
992
|
+
}
|
|
993
|
+
function un(e, n) {
|
|
994
|
+
{
|
|
995
|
+
var i = Z();
|
|
996
|
+
return i.useDebugValue(e, n);
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
function ln() {
|
|
1000
|
+
var e = Z();
|
|
1001
|
+
return e.useTransition();
|
|
1002
|
+
}
|
|
1003
|
+
function cn(e) {
|
|
1004
|
+
var n = Z();
|
|
1005
|
+
return n.useDeferredValue(e);
|
|
1006
|
+
}
|
|
1007
|
+
function fn() {
|
|
1008
|
+
var e = Z();
|
|
1009
|
+
return e.useId();
|
|
1010
|
+
}
|
|
1011
|
+
function dn(e, n, i) {
|
|
1012
|
+
var l = Z();
|
|
1013
|
+
return l.useSyncExternalStore(e, n, i);
|
|
1014
|
+
}
|
|
1015
|
+
var we = 0, xt, Dt, Ft, Mt, At, It, jt;
|
|
1016
|
+
function Kt() {
|
|
1017
|
+
}
|
|
1018
|
+
Kt.__reactDisabledLog = !0;
|
|
1019
|
+
function pn() {
|
|
1020
|
+
{
|
|
1021
|
+
if (we === 0) {
|
|
1022
|
+
xt = console.log, Dt = console.info, Ft = console.warn, Mt = console.error, At = console.group, It = console.groupCollapsed, jt = console.groupEnd;
|
|
1023
|
+
var e = {
|
|
1024
|
+
configurable: !0,
|
|
1025
|
+
enumerable: !0,
|
|
1026
|
+
value: Kt,
|
|
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
|
+
we++;
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
function vn() {
|
|
1043
|
+
{
|
|
1044
|
+
if (we--, we === 0) {
|
|
1045
|
+
var e = {
|
|
1046
|
+
configurable: !0,
|
|
1047
|
+
enumerable: !0,
|
|
1048
|
+
writable: !0
|
|
1049
|
+
};
|
|
1050
|
+
Object.defineProperties(console, {
|
|
1051
|
+
log: P({}, e, {
|
|
1052
|
+
value: xt
|
|
1053
|
+
}),
|
|
1054
|
+
info: P({}, e, {
|
|
1055
|
+
value: Dt
|
|
1056
|
+
}),
|
|
1057
|
+
warn: P({}, e, {
|
|
1058
|
+
value: Ft
|
|
1059
|
+
}),
|
|
1060
|
+
error: P({}, e, {
|
|
1061
|
+
value: Mt
|
|
1062
|
+
}),
|
|
1063
|
+
group: P({}, e, {
|
|
1064
|
+
value: At
|
|
1065
|
+
}),
|
|
1066
|
+
groupCollapsed: P({}, e, {
|
|
1067
|
+
value: It
|
|
1068
|
+
}),
|
|
1069
|
+
groupEnd: P({}, e, {
|
|
1070
|
+
value: jt
|
|
1071
|
+
})
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
we < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
var Ze = O.ReactCurrentDispatcher, et;
|
|
1078
|
+
function Me(e, n, i) {
|
|
1079
|
+
{
|
|
1080
|
+
if (et === void 0)
|
|
1081
|
+
try {
|
|
1082
|
+
throw Error();
|
|
1083
|
+
} catch (d) {
|
|
1084
|
+
var l = d.stack.trim().match(/\n( *(at )?)/);
|
|
1085
|
+
et = l && l[1] || "";
|
|
1086
|
+
}
|
|
1087
|
+
return `
|
|
1088
|
+
` + et + e;
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
var tt = !1, Ae;
|
|
1092
|
+
{
|
|
1093
|
+
var yn = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1094
|
+
Ae = new yn();
|
|
1095
|
+
}
|
|
1096
|
+
function Nt(e, n) {
|
|
1097
|
+
if (!e || tt)
|
|
1098
|
+
return "";
|
|
1099
|
+
{
|
|
1100
|
+
var i = Ae.get(e);
|
|
1101
|
+
if (i !== void 0)
|
|
1102
|
+
return i;
|
|
1103
|
+
}
|
|
1104
|
+
var l;
|
|
1105
|
+
tt = !0;
|
|
1106
|
+
var d = Error.prepareStackTrace;
|
|
1107
|
+
Error.prepareStackTrace = void 0;
|
|
1108
|
+
var m;
|
|
1109
|
+
m = Ze.current, Ze.current = null, pn();
|
|
1110
|
+
try {
|
|
1111
|
+
if (n) {
|
|
1112
|
+
var b = function() {
|
|
1113
|
+
throw Error();
|
|
1114
|
+
};
|
|
1115
|
+
if (Object.defineProperty(b.prototype, "props", {
|
|
1116
|
+
set: function() {
|
|
1117
|
+
throw Error();
|
|
1118
|
+
}
|
|
1119
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1120
|
+
try {
|
|
1121
|
+
Reflect.construct(b, []);
|
|
1122
|
+
} catch (Q) {
|
|
1123
|
+
l = Q;
|
|
1124
|
+
}
|
|
1125
|
+
Reflect.construct(e, [], b);
|
|
1126
|
+
} else {
|
|
1127
|
+
try {
|
|
1128
|
+
b.call();
|
|
1129
|
+
} catch (Q) {
|
|
1130
|
+
l = Q;
|
|
1131
|
+
}
|
|
1132
|
+
e.call(b.prototype);
|
|
1133
|
+
}
|
|
1134
|
+
} else {
|
|
1135
|
+
try {
|
|
1136
|
+
throw Error();
|
|
1137
|
+
} catch (Q) {
|
|
1138
|
+
l = Q;
|
|
1139
|
+
}
|
|
1140
|
+
e();
|
|
1141
|
+
}
|
|
1142
|
+
} catch (Q) {
|
|
1143
|
+
if (Q && l && typeof Q.stack == "string") {
|
|
1144
|
+
for (var E = Q.stack.split(`
|
|
1145
|
+
`), R = l.stack.split(`
|
|
1146
|
+
`), D = E.length - 1, K = R.length - 1; D >= 1 && K >= 0 && E[D] !== R[K]; )
|
|
1147
|
+
K--;
|
|
1148
|
+
for (; D >= 1 && K >= 0; D--, K--)
|
|
1149
|
+
if (E[D] !== R[K]) {
|
|
1150
|
+
if (D !== 1 || K !== 1)
|
|
1151
|
+
do
|
|
1152
|
+
if (D--, K--, K < 0 || E[D] !== R[K]) {
|
|
1153
|
+
var N = `
|
|
1154
|
+
` + E[D].replace(" at new ", " at ");
|
|
1155
|
+
return e.displayName && N.includes("<anonymous>") && (N = N.replace("<anonymous>", e.displayName)), typeof e == "function" && Ae.set(e, N), N;
|
|
1156
|
+
}
|
|
1157
|
+
while (D >= 1 && K >= 0);
|
|
1158
|
+
break;
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
} finally {
|
|
1162
|
+
tt = !1, Ze.current = m, vn(), Error.prepareStackTrace = d;
|
|
1163
|
+
}
|
|
1164
|
+
var U = e ? e.displayName || e.name : "", H = U ? Me(U) : "";
|
|
1165
|
+
return typeof e == "function" && Ae.set(e, H), H;
|
|
1166
|
+
}
|
|
1167
|
+
function gn(e, n, i) {
|
|
1168
|
+
return Nt(e, !1);
|
|
1169
|
+
}
|
|
1170
|
+
function hn(e) {
|
|
1171
|
+
var n = e.prototype;
|
|
1172
|
+
return !!(n && n.isReactComponent);
|
|
1173
|
+
}
|
|
1174
|
+
function Ie(e, n, i) {
|
|
1175
|
+
if (e == null)
|
|
1176
|
+
return "";
|
|
1177
|
+
if (typeof e == "function")
|
|
1178
|
+
return Nt(e, hn(e));
|
|
1179
|
+
if (typeof e == "string")
|
|
1180
|
+
return Me(e);
|
|
1181
|
+
switch (e) {
|
|
1182
|
+
case ae:
|
|
1183
|
+
return Me("Suspense");
|
|
1184
|
+
case oe:
|
|
1185
|
+
return Me("SuspenseList");
|
|
1186
|
+
}
|
|
1187
|
+
if (typeof e == "object")
|
|
1188
|
+
switch (e.$$typeof) {
|
|
1189
|
+
case Y:
|
|
1190
|
+
return gn(e.render);
|
|
1191
|
+
case ee:
|
|
1192
|
+
return Ie(e.type, n, i);
|
|
1193
|
+
case ne: {
|
|
1194
|
+
var l = e, d = l._payload, m = l._init;
|
|
1195
|
+
try {
|
|
1196
|
+
return Ie(m(d), n, i);
|
|
1197
|
+
} catch {
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
return "";
|
|
1202
|
+
}
|
|
1203
|
+
var Ut = {}, Wt = O.ReactDebugCurrentFrame;
|
|
1204
|
+
function je(e) {
|
|
1205
|
+
if (e) {
|
|
1206
|
+
var n = e._owner, i = Ie(e.type, e._source, n ? n.type : null);
|
|
1207
|
+
Wt.setExtraStackFrame(i);
|
|
1208
|
+
} else
|
|
1209
|
+
Wt.setExtraStackFrame(null);
|
|
1210
|
+
}
|
|
1211
|
+
function bn(e, n, i, l, d) {
|
|
1212
|
+
{
|
|
1213
|
+
var m = Function.call.bind(Te);
|
|
1214
|
+
for (var b in e)
|
|
1215
|
+
if (m(e, b)) {
|
|
1216
|
+
var E = void 0;
|
|
1217
|
+
try {
|
|
1218
|
+
if (typeof e[b] != "function") {
|
|
1219
|
+
var R = Error((l || "React class") + ": " + i + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1220
|
+
throw R.name = "Invariant Violation", R;
|
|
1221
|
+
}
|
|
1222
|
+
E = e[b](n, b, l, i, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1223
|
+
} catch (D) {
|
|
1224
|
+
E = D;
|
|
1225
|
+
}
|
|
1226
|
+
E && !(E instanceof Error) && (je(d), $("%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).", l || "React class", i, b, typeof E), je(null)), E instanceof Error && !(E.message in Ut) && (Ut[E.message] = !0, je(d), $("Failed %s type: %s", i, E.message), je(null));
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
function he(e) {
|
|
1231
|
+
if (e) {
|
|
1232
|
+
var n = e._owner, i = Ie(e.type, e._source, n ? n.type : null);
|
|
1233
|
+
w(i);
|
|
1234
|
+
} else
|
|
1235
|
+
w(null);
|
|
1236
|
+
}
|
|
1237
|
+
var rt;
|
|
1238
|
+
rt = !1;
|
|
1239
|
+
function Vt() {
|
|
1240
|
+
if (q.current) {
|
|
1241
|
+
var e = ce(q.current.type);
|
|
1242
|
+
if (e)
|
|
1243
|
+
return `
|
|
1244
|
+
|
|
1245
|
+
Check the render method of \`` + e + "`.";
|
|
1246
|
+
}
|
|
1247
|
+
return "";
|
|
1248
|
+
}
|
|
1249
|
+
function mn(e) {
|
|
1250
|
+
if (e !== void 0) {
|
|
1251
|
+
var n = e.fileName.replace(/^.*[\\\/]/, ""), i = e.lineNumber;
|
|
1252
|
+
return `
|
|
1253
|
+
|
|
1254
|
+
Check your code at ` + n + ":" + i + ".";
|
|
1255
|
+
}
|
|
1256
|
+
return "";
|
|
1257
|
+
}
|
|
1258
|
+
function $n(e) {
|
|
1259
|
+
return e != null ? mn(e.__source) : "";
|
|
1260
|
+
}
|
|
1261
|
+
var Ht = {};
|
|
1262
|
+
function En(e) {
|
|
1263
|
+
var n = Vt();
|
|
1264
|
+
if (!n) {
|
|
1265
|
+
var i = typeof e == "string" ? e : e.displayName || e.name;
|
|
1266
|
+
i && (n = `
|
|
1267
|
+
|
|
1268
|
+
Check the top-level render call using <` + i + ">.");
|
|
1269
|
+
}
|
|
1270
|
+
return n;
|
|
1271
|
+
}
|
|
1272
|
+
function Bt(e, n) {
|
|
1273
|
+
if (!(!e._store || e._store.validated || e.key != null)) {
|
|
1274
|
+
e._store.validated = !0;
|
|
1275
|
+
var i = En(n);
|
|
1276
|
+
if (!Ht[i]) {
|
|
1277
|
+
Ht[i] = !0;
|
|
1278
|
+
var l = "";
|
|
1279
|
+
e && e._owner && e._owner !== q.current && (l = " It was passed a child from " + ce(e._owner.type) + "."), he(e), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', i, l), he(null);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
function Yt(e, n) {
|
|
1284
|
+
if (typeof e == "object") {
|
|
1285
|
+
if (Le(e))
|
|
1286
|
+
for (var i = 0; i < e.length; i++) {
|
|
1287
|
+
var l = e[i];
|
|
1288
|
+
ge(l) && Bt(l, n);
|
|
1289
|
+
}
|
|
1290
|
+
else if (ge(e))
|
|
1291
|
+
e._store && (e._store.validated = !0);
|
|
1292
|
+
else if (e) {
|
|
1293
|
+
var d = z(e);
|
|
1294
|
+
if (typeof d == "function" && d !== e.entries)
|
|
1295
|
+
for (var m = d.call(e), b; !(b = m.next()).done; )
|
|
1296
|
+
ge(b.value) && Bt(b.value, n);
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
function zt(e) {
|
|
1301
|
+
{
|
|
1302
|
+
var n = e.type;
|
|
1303
|
+
if (n == null || typeof n == "string")
|
|
1304
|
+
return;
|
|
1305
|
+
var i;
|
|
1306
|
+
if (typeof n == "function")
|
|
1307
|
+
i = n.propTypes;
|
|
1308
|
+
else if (typeof n == "object" && (n.$$typeof === Y || // Note: Memo only checks outer props here.
|
|
1309
|
+
// Inner props are checked in the reconciler.
|
|
1310
|
+
n.$$typeof === ee))
|
|
1311
|
+
i = n.propTypes;
|
|
1312
|
+
else
|
|
1313
|
+
return;
|
|
1314
|
+
if (i) {
|
|
1315
|
+
var l = ce(n);
|
|
1316
|
+
bn(i, e.props, "prop", l, e);
|
|
1317
|
+
} else if (n.PropTypes !== void 0 && !rt) {
|
|
1318
|
+
rt = !0;
|
|
1319
|
+
var d = ce(n);
|
|
1320
|
+
$("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", d || "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 Pn(e) {
|
|
1326
|
+
{
|
|
1327
|
+
for (var n = Object.keys(e.props), i = 0; i < n.length; i++) {
|
|
1328
|
+
var l = n[i];
|
|
1329
|
+
if (l !== "children" && l !== "key") {
|
|
1330
|
+
he(e), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", l), he(null);
|
|
1331
|
+
break;
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
e.ref !== null && (he(e), $("Invalid attribute `ref` supplied to `React.Fragment`."), he(null));
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
function Gt(e, n, i) {
|
|
1338
|
+
var l = Lt(e);
|
|
1339
|
+
if (!l) {
|
|
1340
|
+
var d = "";
|
|
1341
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (d += " 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 m = $n(n);
|
|
1343
|
+
m ? d += m : d += Vt();
|
|
1344
|
+
var b;
|
|
1345
|
+
e === null ? b = "null" : Le(e) ? b = "array" : e !== void 0 && e.$$typeof === u ? (b = "<" + (ce(e.type) || "Unknown") + " />", d = " Did you accidentally export a JSX literal instead of a component?") : b = 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", b, d);
|
|
1346
|
+
}
|
|
1347
|
+
var E = Mr.apply(this, arguments);
|
|
1348
|
+
if (E == null)
|
|
1349
|
+
return E;
|
|
1350
|
+
if (l)
|
|
1351
|
+
for (var R = 2; R < arguments.length; R++)
|
|
1352
|
+
Yt(arguments[R], e);
|
|
1353
|
+
return e === y ? Pn(E) : zt(E), E;
|
|
1354
|
+
}
|
|
1355
|
+
var qt = !1;
|
|
1356
|
+
function Tn(e) {
|
|
1357
|
+
var n = Gt.bind(null, e);
|
|
1358
|
+
return n.type = e, qt || (qt = !0, le("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 le("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 _n(e, n, i) {
|
|
1368
|
+
for (var l = Ir.apply(this, arguments), d = 2; d < arguments.length; d++)
|
|
1369
|
+
Yt(arguments[d], l.type);
|
|
1370
|
+
return zt(l), l;
|
|
1371
|
+
}
|
|
1372
|
+
function wn(e, n) {
|
|
1373
|
+
var i = G.transition;
|
|
1374
|
+
G.transition = {};
|
|
1375
|
+
var l = G.transition;
|
|
1376
|
+
G.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1377
|
+
try {
|
|
1378
|
+
e();
|
|
1379
|
+
} finally {
|
|
1380
|
+
if (G.transition = i, i === null && l._updatedFibers) {
|
|
1381
|
+
var d = l._updatedFibers.size;
|
|
1382
|
+
d > 10 && le("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."), l._updatedFibers.clear();
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
var Xt = !1, Ke = null;
|
|
1387
|
+
function Sn(e) {
|
|
1388
|
+
if (Ke === null)
|
|
1389
|
+
try {
|
|
1390
|
+
var n = ("require" + Math.random()).slice(0, 7), i = t && t[n];
|
|
1391
|
+
Ke = i.call(t, "timers").setImmediate;
|
|
1392
|
+
} catch {
|
|
1393
|
+
Ke = function(d) {
|
|
1394
|
+
Xt === !1 && (Xt = !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 m = new MessageChannel();
|
|
1396
|
+
m.port1.onmessage = d, m.port2.postMessage(void 0);
|
|
1397
|
+
};
|
|
1398
|
+
}
|
|
1399
|
+
return Ke(e);
|
|
1400
|
+
}
|
|
1401
|
+
var be = 0, Qt = !1;
|
|
1402
|
+
function Rn(e) {
|
|
1403
|
+
{
|
|
1404
|
+
var n = be;
|
|
1405
|
+
be++, k.current === null && (k.current = []);
|
|
1406
|
+
var i = k.isBatchingLegacy, l;
|
|
1407
|
+
try {
|
|
1408
|
+
if (k.isBatchingLegacy = !0, l = e(), !i && k.didScheduleLegacyUpdate) {
|
|
1409
|
+
var d = k.current;
|
|
1410
|
+
d !== null && (k.didScheduleLegacyUpdate = !1, ot(d));
|
|
1411
|
+
}
|
|
1412
|
+
} catch (U) {
|
|
1413
|
+
throw Ne(n), U;
|
|
1414
|
+
} finally {
|
|
1415
|
+
k.isBatchingLegacy = i;
|
|
1416
|
+
}
|
|
1417
|
+
if (l !== null && typeof l == "object" && typeof l.then == "function") {
|
|
1418
|
+
var m = l, b = !1, E = {
|
|
1419
|
+
then: function(U, H) {
|
|
1420
|
+
b = !0, m.then(function(Q) {
|
|
1421
|
+
Ne(n), be === 0 ? nt(Q, U, H) : U(Q);
|
|
1422
|
+
}, function(Q) {
|
|
1423
|
+
Ne(n), H(Q);
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
};
|
|
1427
|
+
return !Qt && typeof Promise < "u" && Promise.resolve().then(function() {
|
|
1428
|
+
}).then(function() {
|
|
1429
|
+
b || (Qt = !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
|
+
}), E;
|
|
1431
|
+
} else {
|
|
1432
|
+
var R = l;
|
|
1433
|
+
if (Ne(n), be === 0) {
|
|
1434
|
+
var D = k.current;
|
|
1435
|
+
D !== null && (ot(D), k.current = null);
|
|
1436
|
+
var K = {
|
|
1437
|
+
then: function(U, H) {
|
|
1438
|
+
k.current === null ? (k.current = [], nt(R, U, H)) : U(R);
|
|
1439
|
+
}
|
|
1440
|
+
};
|
|
1441
|
+
return K;
|
|
1442
|
+
} else {
|
|
1443
|
+
var N = {
|
|
1444
|
+
then: function(U, H) {
|
|
1445
|
+
U(R);
|
|
1446
|
+
}
|
|
1447
|
+
};
|
|
1448
|
+
return N;
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
}
|
|
1453
|
+
function Ne(e) {
|
|
1454
|
+
e !== be - 1 && $("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), be = e;
|
|
1455
|
+
}
|
|
1456
|
+
function nt(e, n, i) {
|
|
1457
|
+
{
|
|
1458
|
+
var l = k.current;
|
|
1459
|
+
if (l !== null)
|
|
1460
|
+
try {
|
|
1461
|
+
ot(l), Sn(function() {
|
|
1462
|
+
l.length === 0 ? (k.current = null, n(e)) : nt(e, n, i);
|
|
1463
|
+
});
|
|
1464
|
+
} catch (d) {
|
|
1465
|
+
i(d);
|
|
1466
|
+
}
|
|
1467
|
+
else
|
|
1468
|
+
n(e);
|
|
1469
|
+
}
|
|
1470
|
+
}
|
|
1471
|
+
var at = !1;
|
|
1472
|
+
function ot(e) {
|
|
1473
|
+
if (!at) {
|
|
1474
|
+
at = !0;
|
|
1475
|
+
var n = 0;
|
|
1476
|
+
try {
|
|
1477
|
+
for (; n < e.length; n++) {
|
|
1478
|
+
var i = e[n];
|
|
1479
|
+
do
|
|
1480
|
+
i = i(!0);
|
|
1481
|
+
while (i !== null);
|
|
1482
|
+
}
|
|
1483
|
+
e.length = 0;
|
|
1484
|
+
} catch (l) {
|
|
1485
|
+
throw e = e.slice(n + 1), l;
|
|
1486
|
+
} finally {
|
|
1487
|
+
at = !1;
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
var Cn = Gt, kn = _n, On = Tn, Ln = {
|
|
1492
|
+
map: Fe,
|
|
1493
|
+
forEach: Wr,
|
|
1494
|
+
count: Ur,
|
|
1495
|
+
toArray: Vr,
|
|
1496
|
+
only: Hr
|
|
1497
|
+
};
|
|
1498
|
+
r.Children = Ln, r.Component = S, r.Fragment = y, r.Profiler = C, r.PureComponent = J, r.StrictMode = p, r.Suspense = ae, r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = O, r.cloneElement = kn, r.createContext = Br, r.createElement = Cn, r.createFactory = On, r.createRef = Rr, r.forwardRef = qr, r.isValidElement = ge, r.lazy = Gr, r.memo = Xr, r.startTransition = wn, r.unstable_act = Rn, r.useCallback = an, r.useContext = Qr, r.useDebugValue = un, r.useDeferredValue = cn, r.useEffect = tn, r.useId = fn, r.useImperativeHandle = sn, r.useInsertionEffect = rn, r.useLayoutEffect = nn, r.useMemo = on, r.useReducer = Zr, r.useRef = en, r.useState = Jr, r.useSyncExternalStore = dn, r.useTransition = ln, r.version = a, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1499
|
+
}();
|
|
1500
|
+
}(Se, Se.exports)), Se.exports;
|
|
1501
|
+
}
|
|
1502
|
+
process.env.NODE_ENV === "production" ? lt.exports = An() : lt.exports = In();
|
|
1503
|
+
var x = lt.exports;
|
|
1504
|
+
const ue = /* @__PURE__ */ Mn(x);
|
|
1505
|
+
function hr(t) {
|
|
1506
|
+
var r, a, u = "";
|
|
1507
|
+
if (typeof t == "string" || typeof t == "number")
|
|
1508
|
+
u += t;
|
|
1509
|
+
else if (typeof t == "object")
|
|
1510
|
+
if (Array.isArray(t))
|
|
1511
|
+
for (r = 0; r < t.length; r++)
|
|
1512
|
+
t[r] && (a = hr(t[r])) && (u && (u += " "), u += a);
|
|
1513
|
+
else
|
|
1514
|
+
for (r in t)
|
|
1515
|
+
t[r] && (u && (u += " "), u += r);
|
|
1516
|
+
return u;
|
|
1517
|
+
}
|
|
1518
|
+
function jn() {
|
|
1519
|
+
for (var t, r, a = 0, u = ""; a < arguments.length; )
|
|
1520
|
+
(t = arguments[a++]) && (r = hr(t)) && (u && (u += " "), u += r);
|
|
1521
|
+
return u;
|
|
1522
|
+
}
|
|
1523
|
+
const vt = typeof document < "u" ? ue.useLayoutEffect : () => {
|
|
1524
|
+
};
|
|
1525
|
+
function de(t) {
|
|
1526
|
+
const r = x.useRef(null);
|
|
1527
|
+
return vt(() => {
|
|
1528
|
+
r.current = t;
|
|
1529
|
+
}, [
|
|
1530
|
+
t
|
|
1531
|
+
]), x.useCallback((...a) => {
|
|
1532
|
+
const u = r.current;
|
|
1533
|
+
return u(...a);
|
|
1534
|
+
}, []);
|
|
1535
|
+
}
|
|
1536
|
+
let nr = /* @__PURE__ */ new Map();
|
|
1537
|
+
function Kn(t, r) {
|
|
1538
|
+
if (t === r)
|
|
1539
|
+
return t;
|
|
1540
|
+
let a = nr.get(t);
|
|
1541
|
+
if (a)
|
|
1542
|
+
return a(r), r;
|
|
1543
|
+
let u = nr.get(r);
|
|
1544
|
+
return u ? (u(t), t) : r;
|
|
1545
|
+
}
|
|
1546
|
+
function Nn(...t) {
|
|
1547
|
+
return (...r) => {
|
|
1548
|
+
for (let a of t)
|
|
1549
|
+
typeof a == "function" && a(...r);
|
|
1550
|
+
};
|
|
1551
|
+
}
|
|
1552
|
+
function ve(...t) {
|
|
1553
|
+
let r = {
|
|
1554
|
+
...t[0]
|
|
1555
|
+
};
|
|
1556
|
+
for (let a = 1; a < t.length; a++) {
|
|
1557
|
+
let u = t[a];
|
|
1558
|
+
for (let c in u) {
|
|
1559
|
+
let y = r[c], p = u[c];
|
|
1560
|
+
typeof y == "function" && typeof p == "function" && // This is a lot faster than a regex.
|
|
1561
|
+
c[0] === "o" && c[1] === "n" && c.charCodeAt(2) >= /* 'A' */
|
|
1562
|
+
65 && c.charCodeAt(2) <= /* 'Z' */
|
|
1563
|
+
90 ? r[c] = Nn(y, p) : (c === "className" || c === "UNSAFE_className") && typeof y == "string" && typeof p == "string" ? r[c] = jn(y, p) : c === "id" && y && p ? r.id = Kn(y, p) : r[c] = p !== void 0 ? p : y;
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
return r;
|
|
1567
|
+
}
|
|
1568
|
+
const Un = /* @__PURE__ */ new Set([
|
|
1569
|
+
"id"
|
|
1570
|
+
]), Wn = /* @__PURE__ */ new Set([
|
|
1571
|
+
"aria-label",
|
|
1572
|
+
"aria-labelledby",
|
|
1573
|
+
"aria-describedby",
|
|
1574
|
+
"aria-details"
|
|
1575
|
+
]), Vn = /* @__PURE__ */ new Set([
|
|
1576
|
+
"href",
|
|
1577
|
+
"target",
|
|
1578
|
+
"rel",
|
|
1579
|
+
"download",
|
|
1580
|
+
"ping",
|
|
1581
|
+
"referrerPolicy"
|
|
1582
|
+
]), Hn = /^(data-.*)$/;
|
|
1583
|
+
function Bn(t, r = {}) {
|
|
1584
|
+
let { labelable: a, isLink: u, propNames: c } = r, y = {};
|
|
1585
|
+
for (const p in t)
|
|
1586
|
+
Object.prototype.hasOwnProperty.call(t, p) && (Un.has(p) || a && Wn.has(p) || u && Vn.has(p) || c != null && c.has(p) || Hn.test(p)) && (y[p] = t[p]);
|
|
1587
|
+
return y;
|
|
1588
|
+
}
|
|
1589
|
+
function pe(t) {
|
|
1590
|
+
if (Yn())
|
|
1591
|
+
t.focus({
|
|
1592
|
+
preventScroll: !0
|
|
1593
|
+
});
|
|
1594
|
+
else {
|
|
1595
|
+
let r = zn(t);
|
|
1596
|
+
t.focus(), Gn(r);
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
let We = null;
|
|
1600
|
+
function Yn() {
|
|
1601
|
+
if (We == null) {
|
|
1602
|
+
We = !1;
|
|
1603
|
+
try {
|
|
1604
|
+
var t = document.createElement("div");
|
|
1605
|
+
t.focus({
|
|
1606
|
+
get preventScroll() {
|
|
1607
|
+
return We = !0, !0;
|
|
1608
|
+
}
|
|
1609
|
+
});
|
|
1610
|
+
} catch {
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
return We;
|
|
1614
|
+
}
|
|
1615
|
+
function zn(t) {
|
|
1616
|
+
for (var r = t.parentNode, a = [], u = document.scrollingElement || document.documentElement; r instanceof HTMLElement && r !== u; )
|
|
1617
|
+
(r.offsetHeight < r.scrollHeight || r.offsetWidth < r.scrollWidth) && a.push({
|
|
1618
|
+
element: r,
|
|
1619
|
+
scrollTop: r.scrollTop,
|
|
1620
|
+
scrollLeft: r.scrollLeft
|
|
1621
|
+
}), r = r.parentNode;
|
|
1622
|
+
return u instanceof HTMLElement && a.push({
|
|
1623
|
+
element: u,
|
|
1624
|
+
scrollTop: u.scrollTop,
|
|
1625
|
+
scrollLeft: u.scrollLeft
|
|
1626
|
+
}), a;
|
|
1627
|
+
}
|
|
1628
|
+
function Gn(t) {
|
|
1629
|
+
for (let { element: r, scrollTop: a, scrollLeft: u } of t)
|
|
1630
|
+
r.scrollTop = a, r.scrollLeft = u;
|
|
1631
|
+
}
|
|
1632
|
+
function ze(t) {
|
|
1633
|
+
var r;
|
|
1634
|
+
return typeof window > "u" || window.navigator == null ? !1 : ((r = window.navigator.userAgentData) === null || r === void 0 ? void 0 : r.brands.some((a) => t.test(a.brand))) || t.test(window.navigator.userAgent);
|
|
1635
|
+
}
|
|
1636
|
+
function yt(t) {
|
|
1637
|
+
var r;
|
|
1638
|
+
return typeof window < "u" && window.navigator != null ? t.test(((r = window.navigator.userAgentData) === null || r === void 0 ? void 0 : r.platform) || window.navigator.platform) : !1;
|
|
1639
|
+
}
|
|
1640
|
+
function Re() {
|
|
1641
|
+
return yt(/^Mac/i);
|
|
1642
|
+
}
|
|
1643
|
+
function qn() {
|
|
1644
|
+
return yt(/^iPhone/i);
|
|
1645
|
+
}
|
|
1646
|
+
function br() {
|
|
1647
|
+
return yt(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
1648
|
+
Re() && navigator.maxTouchPoints > 1;
|
|
1649
|
+
}
|
|
1650
|
+
function mr() {
|
|
1651
|
+
return qn() || br();
|
|
1652
|
+
}
|
|
1653
|
+
function Xn() {
|
|
1654
|
+
return ze(/AppleWebKit/i) && !Qn();
|
|
1655
|
+
}
|
|
1656
|
+
function Qn() {
|
|
1657
|
+
return ze(/Chrome/i);
|
|
1658
|
+
}
|
|
1659
|
+
function $r() {
|
|
1660
|
+
return ze(/Android/i);
|
|
1661
|
+
}
|
|
1662
|
+
function Jn() {
|
|
1663
|
+
return ze(/Firefox/i);
|
|
1664
|
+
}
|
|
1665
|
+
function Ce(t, r, a = !0) {
|
|
1666
|
+
var u, c;
|
|
1667
|
+
let { metaKey: y, ctrlKey: p, altKey: C, shiftKey: T } = r;
|
|
1668
|
+
Jn() && (!((u = window.event) === null || u === void 0 || (c = u.type) === null || c === void 0) && c.startsWith("key")) && t.target === "_blank" && (Re() ? y = !0 : p = !0);
|
|
1669
|
+
let M = Xn() && Re() && !br() ? new KeyboardEvent("keydown", {
|
|
1670
|
+
keyIdentifier: "Enter",
|
|
1671
|
+
metaKey: y,
|
|
1672
|
+
ctrlKey: p,
|
|
1673
|
+
altKey: C,
|
|
1674
|
+
shiftKey: T
|
|
1675
|
+
}) : new MouseEvent("click", {
|
|
1676
|
+
metaKey: y,
|
|
1677
|
+
ctrlKey: p,
|
|
1678
|
+
altKey: C,
|
|
1679
|
+
shiftKey: T,
|
|
1680
|
+
bubbles: !0,
|
|
1681
|
+
cancelable: !0
|
|
1682
|
+
});
|
|
1683
|
+
Ce.isOpening = a, pe(t), t.dispatchEvent(M), Ce.isOpening = !1;
|
|
1684
|
+
}
|
|
1685
|
+
Ce.isOpening = !1;
|
|
1686
|
+
let Ee = /* @__PURE__ */ new Map(), ct = /* @__PURE__ */ new Set();
|
|
1687
|
+
function ar() {
|
|
1688
|
+
if (typeof window > "u")
|
|
1689
|
+
return;
|
|
1690
|
+
let t = (a) => {
|
|
1691
|
+
let u = Ee.get(a.target);
|
|
1692
|
+
u || (u = /* @__PURE__ */ new Set(), Ee.set(a.target, u), a.target.addEventListener("transitioncancel", r)), u.add(a.propertyName);
|
|
1693
|
+
}, r = (a) => {
|
|
1694
|
+
let u = Ee.get(a.target);
|
|
1695
|
+
if (u && (u.delete(a.propertyName), u.size === 0 && (a.target.removeEventListener("transitioncancel", r), Ee.delete(a.target)), Ee.size === 0)) {
|
|
1696
|
+
for (let c of ct)
|
|
1697
|
+
c();
|
|
1698
|
+
ct.clear();
|
|
1699
|
+
}
|
|
1700
|
+
};
|
|
1701
|
+
document.body.addEventListener("transitionrun", t), document.body.addEventListener("transitionend", r);
|
|
1702
|
+
}
|
|
1703
|
+
typeof document < "u" && (document.readyState !== "loading" ? ar() : document.addEventListener("DOMContentLoaded", ar));
|
|
1704
|
+
function Er(t) {
|
|
1705
|
+
requestAnimationFrame(() => {
|
|
1706
|
+
Ee.size === 0 ? t() : ct.add(t);
|
|
1707
|
+
});
|
|
1708
|
+
}
|
|
1709
|
+
function Zn() {
|
|
1710
|
+
let t = x.useRef(/* @__PURE__ */ new Map()), r = x.useCallback((c, y, p, C) => {
|
|
1711
|
+
let T = C != null && C.once ? (...M) => {
|
|
1712
|
+
t.current.delete(p), p(...M);
|
|
1713
|
+
} : p;
|
|
1714
|
+
t.current.set(p, {
|
|
1715
|
+
type: y,
|
|
1716
|
+
eventTarget: c,
|
|
1717
|
+
fn: T,
|
|
1718
|
+
options: C
|
|
1719
|
+
}), c.addEventListener(y, p, C);
|
|
1720
|
+
}, []), a = x.useCallback((c, y, p, C) => {
|
|
1721
|
+
var T;
|
|
1722
|
+
let M = ((T = t.current.get(p)) === null || T === void 0 ? void 0 : T.fn) || p;
|
|
1723
|
+
c.removeEventListener(y, M, C), t.current.delete(p);
|
|
1724
|
+
}, []), u = x.useCallback(() => {
|
|
1725
|
+
t.current.forEach((c, y) => {
|
|
1726
|
+
a(c.eventTarget, c.type, y, c.options);
|
|
1727
|
+
});
|
|
1728
|
+
}, [
|
|
1729
|
+
a
|
|
1730
|
+
]);
|
|
1731
|
+
return x.useEffect(() => u, [
|
|
1732
|
+
u
|
|
1733
|
+
]), {
|
|
1734
|
+
addGlobalListener: r,
|
|
1735
|
+
removeGlobalListener: a,
|
|
1736
|
+
removeAllGlobalListeners: u
|
|
1737
|
+
};
|
|
1738
|
+
}
|
|
1739
|
+
function Pr(t, r) {
|
|
1740
|
+
vt(() => {
|
|
1741
|
+
if (t && t.ref && r)
|
|
1742
|
+
return t.ref.current = r.current, () => {
|
|
1743
|
+
t.ref.current = null;
|
|
1744
|
+
};
|
|
1745
|
+
});
|
|
1746
|
+
}
|
|
1747
|
+
function ft(t) {
|
|
1748
|
+
return t.mozInputSource === 0 && t.isTrusted ? !0 : $r() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
|
|
1749
|
+
}
|
|
1750
|
+
function ea(t) {
|
|
1751
|
+
return !$r() && t.width === 0 && t.height === 0 || t.width === 1 && t.height === 1 && t.pressure === 0 && t.detail === 0 && t.pointerType === "mouse";
|
|
1752
|
+
}
|
|
1753
|
+
function ta(t, r, a) {
|
|
1754
|
+
let u = x.useRef(r), c = de(() => {
|
|
1755
|
+
a && a(u.current);
|
|
1756
|
+
});
|
|
1757
|
+
x.useEffect(() => {
|
|
1758
|
+
var y;
|
|
1759
|
+
let p = t == null || (y = t.current) === null || y === void 0 ? void 0 : y.form;
|
|
1760
|
+
return p == null || p.addEventListener("reset", c), () => {
|
|
1761
|
+
p == null || p.removeEventListener("reset", c);
|
|
1762
|
+
};
|
|
1763
|
+
}, [
|
|
1764
|
+
t,
|
|
1765
|
+
c
|
|
1766
|
+
]);
|
|
1767
|
+
}
|
|
1768
|
+
function ra(t, r) {
|
|
1769
|
+
return r.get ? r.get.call(t) : r.value;
|
|
1770
|
+
}
|
|
1771
|
+
function Tr(t, r, a) {
|
|
1772
|
+
if (!r.has(t))
|
|
1773
|
+
throw new TypeError("attempted to " + a + " private field on non-instance");
|
|
1774
|
+
return r.get(t);
|
|
1775
|
+
}
|
|
1776
|
+
function na(t, r) {
|
|
1777
|
+
var a = Tr(t, r, "get");
|
|
1778
|
+
return ra(t, a);
|
|
1779
|
+
}
|
|
1780
|
+
function aa(t, r) {
|
|
1781
|
+
if (r.has(t))
|
|
1782
|
+
throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
1783
|
+
}
|
|
1784
|
+
function oa(t, r, a) {
|
|
1785
|
+
aa(t, r), r.set(t, a);
|
|
1786
|
+
}
|
|
1787
|
+
function ia(t, r, a) {
|
|
1788
|
+
if (r.set)
|
|
1789
|
+
r.set.call(t, a);
|
|
1790
|
+
else {
|
|
1791
|
+
if (!r.writable)
|
|
1792
|
+
throw new TypeError("attempted to set read only private field");
|
|
1793
|
+
r.value = a;
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
function or(t, r, a) {
|
|
1797
|
+
var u = Tr(t, r, "set");
|
|
1798
|
+
return ia(t, u, a), a;
|
|
1799
|
+
}
|
|
1800
|
+
let Pe = "default", dt = "", Ye = /* @__PURE__ */ new WeakMap();
|
|
1801
|
+
function ir(t) {
|
|
1802
|
+
mr() ? (Pe === "default" && (dt = document.documentElement.style.webkitUserSelect, document.documentElement.style.webkitUserSelect = "none"), Pe = "disabled") : (t instanceof HTMLElement || t instanceof SVGElement) && (Ye.set(t, t.style.userSelect), t.style.userSelect = "none");
|
|
1803
|
+
}
|
|
1804
|
+
function Ve(t) {
|
|
1805
|
+
if (mr()) {
|
|
1806
|
+
if (Pe !== "disabled")
|
|
1807
|
+
return;
|
|
1808
|
+
Pe = "restoring", setTimeout(() => {
|
|
1809
|
+
Er(() => {
|
|
1810
|
+
Pe === "restoring" && (document.documentElement.style.webkitUserSelect === "none" && (document.documentElement.style.webkitUserSelect = dt || ""), dt = "", Pe = "default");
|
|
1811
|
+
});
|
|
1812
|
+
}, 300);
|
|
1813
|
+
} else if ((t instanceof HTMLElement || t instanceof SVGElement) && t && Ye.has(t)) {
|
|
1814
|
+
let r = Ye.get(t);
|
|
1815
|
+
t.style.userSelect === "none" && (t.style.userSelect = r), t.getAttribute("style") === "" && t.removeAttribute("style"), Ye.delete(t);
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
const _r = ue.createContext(null);
|
|
1819
|
+
_r.displayName = "PressResponderContext";
|
|
1820
|
+
function sa(t) {
|
|
1821
|
+
let r = x.useContext(_r);
|
|
1822
|
+
if (r) {
|
|
1823
|
+
let { register: a, ...u } = r;
|
|
1824
|
+
t = ve(u, t), a();
|
|
1825
|
+
}
|
|
1826
|
+
return Pr(r, t.ref), t;
|
|
1827
|
+
}
|
|
1828
|
+
var He = /* @__PURE__ */ new WeakMap();
|
|
1829
|
+
class Be {
|
|
1830
|
+
continuePropagation() {
|
|
1831
|
+
or(this, He, !1);
|
|
1832
|
+
}
|
|
1833
|
+
get shouldStopPropagation() {
|
|
1834
|
+
return na(this, He);
|
|
1835
|
+
}
|
|
1836
|
+
constructor(r, a, u) {
|
|
1837
|
+
oa(this, He, {
|
|
1838
|
+
writable: !0,
|
|
1839
|
+
value: void 0
|
|
1840
|
+
}), or(this, He, !0), this.type = r, this.pointerType = a, this.target = u.currentTarget, this.shiftKey = u.shiftKey, this.metaKey = u.metaKey, this.ctrlKey = u.ctrlKey, this.altKey = u.altKey;
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
const sr = Symbol("linkClicked");
|
|
1844
|
+
function ua(t) {
|
|
1845
|
+
let {
|
|
1846
|
+
onPress: r,
|
|
1847
|
+
onPressChange: a,
|
|
1848
|
+
onPressStart: u,
|
|
1849
|
+
onPressEnd: c,
|
|
1850
|
+
onPressUp: y,
|
|
1851
|
+
isDisabled: p,
|
|
1852
|
+
isPressed: C,
|
|
1853
|
+
preventFocusOnPress: T,
|
|
1854
|
+
shouldCancelOnPointerExit: M,
|
|
1855
|
+
allowTextSelectionOnPress: Y,
|
|
1856
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1857
|
+
ref: ae,
|
|
1858
|
+
...oe
|
|
1859
|
+
} = sa(t), [ee, ne] = x.useState(!1), te = x.useRef({
|
|
1860
|
+
isPressed: !1,
|
|
1861
|
+
ignoreEmulatedMouseEvents: !1,
|
|
1862
|
+
ignoreClickAfterPress: !1,
|
|
1863
|
+
didFirePressStart: !1,
|
|
1864
|
+
isTriggeringEvent: !1,
|
|
1865
|
+
activePointerId: null,
|
|
1866
|
+
target: null,
|
|
1867
|
+
isOverTarget: !1,
|
|
1868
|
+
pointerType: null
|
|
1869
|
+
}), { addGlobalListener: B, removeAllGlobalListeners: re } = Zn(), z = de((s, w) => {
|
|
1870
|
+
let X = te.current;
|
|
1871
|
+
if (p || X.didFirePressStart)
|
|
1872
|
+
return;
|
|
1873
|
+
let h = !0;
|
|
1874
|
+
if (X.isTriggeringEvent = !0, u) {
|
|
1875
|
+
let F = new Be("pressstart", w, s);
|
|
1876
|
+
u(F), h = F.shouldStopPropagation;
|
|
1877
|
+
}
|
|
1878
|
+
return a && a(!0), X.isTriggeringEvent = !1, X.didFirePressStart = !0, ne(!0), h;
|
|
1879
|
+
}), W = de((s, w, X = !0) => {
|
|
1880
|
+
let h = te.current;
|
|
1881
|
+
if (!h.didFirePressStart)
|
|
1882
|
+
return;
|
|
1883
|
+
h.ignoreClickAfterPress = !0, h.didFirePressStart = !1, h.isTriggeringEvent = !0;
|
|
1884
|
+
let F = !0;
|
|
1885
|
+
if (c) {
|
|
1886
|
+
let f = new Be("pressend", w, s);
|
|
1887
|
+
c(f), F = f.shouldStopPropagation;
|
|
1888
|
+
}
|
|
1889
|
+
if (a && a(!1), ne(!1), r && X && !p) {
|
|
1890
|
+
let f = new Be("press", w, s);
|
|
1891
|
+
r(f), F && (F = f.shouldStopPropagation);
|
|
1892
|
+
}
|
|
1893
|
+
return h.isTriggeringEvent = !1, F;
|
|
1894
|
+
}), G = de((s, w) => {
|
|
1895
|
+
let X = te.current;
|
|
1896
|
+
if (!p) {
|
|
1897
|
+
if (y) {
|
|
1898
|
+
X.isTriggeringEvent = !0;
|
|
1899
|
+
let h = new Be("pressup", w, s);
|
|
1900
|
+
return y(h), X.isTriggeringEvent = !1, h.shouldStopPropagation;
|
|
1901
|
+
}
|
|
1902
|
+
return !0;
|
|
1903
|
+
}
|
|
1904
|
+
}), k = de((s) => {
|
|
1905
|
+
let w = te.current;
|
|
1906
|
+
w.isPressed && (w.isOverTarget && W(se(w.target, s), w.pointerType, !1), w.isPressed = !1, w.isOverTarget = !1, w.activePointerId = null, w.pointerType = null, re(), Y || Ve(w.target));
|
|
1907
|
+
}), q = de((s) => {
|
|
1908
|
+
M && k(s);
|
|
1909
|
+
}), ie = x.useMemo(() => {
|
|
1910
|
+
let s = te.current, w = {
|
|
1911
|
+
onKeyDown(h) {
|
|
1912
|
+
if (st(h.nativeEvent, h.currentTarget) && h.currentTarget.contains(h.target)) {
|
|
1913
|
+
lr(h.target, h.key) && h.preventDefault();
|
|
1914
|
+
let F = !0;
|
|
1915
|
+
!s.isPressed && !h.repeat && (s.target = h.currentTarget, s.isPressed = !0, F = z(h, "keyboard"), B(document, "keyup", X, !1)), F && h.stopPropagation(), h.metaKey && Re() && s.metaKeyEvents.set(h.key, h.nativeEvent);
|
|
1916
|
+
} else
|
|
1917
|
+
h.key === "Meta" && (s.metaKeyEvents = /* @__PURE__ */ new Map());
|
|
1918
|
+
},
|
|
1919
|
+
onKeyUp(h) {
|
|
1920
|
+
st(h.nativeEvent, h.currentTarget) && !h.repeat && h.currentTarget.contains(h.target) && G(se(s.target, h), "keyboard");
|
|
1921
|
+
},
|
|
1922
|
+
onClick(h) {
|
|
1923
|
+
if (!(h && !h.currentTarget.contains(h.target)) && h && h.button === 0 && !s.isTriggeringEvent && !Ce.isOpening) {
|
|
1924
|
+
let F = !0;
|
|
1925
|
+
if (p && h.preventDefault(), !s.ignoreClickAfterPress && !s.ignoreEmulatedMouseEvents && !s.isPressed && (s.pointerType === "virtual" || ft(h.nativeEvent))) {
|
|
1926
|
+
!p && !T && pe(h.currentTarget);
|
|
1927
|
+
let f = z(h, "virtual"), g = G(h, "virtual"), O = W(h, "virtual");
|
|
1928
|
+
F = f && g && O;
|
|
1929
|
+
}
|
|
1930
|
+
s.ignoreEmulatedMouseEvents = !1, s.ignoreClickAfterPress = !1, F && h.stopPropagation();
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
}, X = (h) => {
|
|
1934
|
+
var F;
|
|
1935
|
+
if (s.isPressed && st(h, s.target)) {
|
|
1936
|
+
var f;
|
|
1937
|
+
lr(h.target, h.key) && h.preventDefault();
|
|
1938
|
+
let g = h.target, O = W(se(s.target, h), "keyboard", s.target.contains(g));
|
|
1939
|
+
re(), O && h.stopPropagation(), h.key !== "Enter" && gt(s.target) && s.target.contains(g) && !h[sr] && (h[sr] = !0, Ce(s.target, h, !1)), s.isPressed = !1, (f = s.metaKeyEvents) === null || f === void 0 || f.delete(h.key);
|
|
1940
|
+
} else if (h.key === "Meta" && (!((F = s.metaKeyEvents) === null || F === void 0) && F.size)) {
|
|
1941
|
+
let g = s.metaKeyEvents;
|
|
1942
|
+
s.metaKeyEvents = null;
|
|
1943
|
+
for (let O of g.values())
|
|
1944
|
+
s.target.dispatchEvent(new KeyboardEvent("keyup", O));
|
|
1945
|
+
}
|
|
1946
|
+
};
|
|
1947
|
+
if (typeof PointerEvent < "u") {
|
|
1948
|
+
w.onPointerDown = (g) => {
|
|
1949
|
+
if (g.button !== 0 || !g.currentTarget.contains(g.target))
|
|
1950
|
+
return;
|
|
1951
|
+
if (ea(g.nativeEvent)) {
|
|
1952
|
+
s.pointerType = "virtual";
|
|
1953
|
+
return;
|
|
1954
|
+
}
|
|
1955
|
+
ut(g.currentTarget) && g.preventDefault(), s.pointerType = g.pointerType;
|
|
1956
|
+
let O = !0;
|
|
1957
|
+
s.isPressed || (s.isPressed = !0, s.isOverTarget = !0, s.activePointerId = g.pointerId, s.target = g.currentTarget, !p && !T && pe(g.currentTarget), Y || ir(s.target), O = z(g, s.pointerType), B(document, "pointermove", h, !1), B(document, "pointerup", F, !1), B(document, "pointercancel", f, !1)), O && g.stopPropagation();
|
|
1958
|
+
}, w.onMouseDown = (g) => {
|
|
1959
|
+
g.currentTarget.contains(g.target) && g.button === 0 && (ut(g.currentTarget) && g.preventDefault(), g.stopPropagation());
|
|
1960
|
+
}, w.onPointerUp = (g) => {
|
|
1961
|
+
!g.currentTarget.contains(g.target) || s.pointerType === "virtual" || g.button === 0 && me(g, g.currentTarget) && G(g, s.pointerType || g.pointerType);
|
|
1962
|
+
};
|
|
1963
|
+
let h = (g) => {
|
|
1964
|
+
g.pointerId === s.activePointerId && (me(g, s.target) ? s.isOverTarget || (s.isOverTarget = !0, z(se(s.target, g), s.pointerType)) : s.isOverTarget && (s.isOverTarget = !1, W(se(s.target, g), s.pointerType, !1), q(g)));
|
|
1965
|
+
}, F = (g) => {
|
|
1966
|
+
g.pointerId === s.activePointerId && s.isPressed && g.button === 0 && (me(g, s.target) ? W(se(s.target, g), s.pointerType) : s.isOverTarget && W(se(s.target, g), s.pointerType, !1), s.isPressed = !1, s.isOverTarget = !1, s.activePointerId = null, s.pointerType = null, re(), Y || Ve(s.target));
|
|
1967
|
+
}, f = (g) => {
|
|
1968
|
+
k(g);
|
|
1969
|
+
};
|
|
1970
|
+
w.onDragStart = (g) => {
|
|
1971
|
+
g.currentTarget.contains(g.target) && k(g);
|
|
1972
|
+
};
|
|
1973
|
+
} else {
|
|
1974
|
+
w.onMouseDown = (f) => {
|
|
1975
|
+
if (f.button !== 0 || !f.currentTarget.contains(f.target))
|
|
1976
|
+
return;
|
|
1977
|
+
if (ut(f.currentTarget) && f.preventDefault(), s.ignoreEmulatedMouseEvents) {
|
|
1978
|
+
f.stopPropagation();
|
|
1979
|
+
return;
|
|
1980
|
+
}
|
|
1981
|
+
s.isPressed = !0, s.isOverTarget = !0, s.target = f.currentTarget, s.pointerType = ft(f.nativeEvent) ? "virtual" : "mouse", !p && !T && pe(f.currentTarget), z(f, s.pointerType) && f.stopPropagation(), B(document, "mouseup", h, !1);
|
|
1982
|
+
}, w.onMouseEnter = (f) => {
|
|
1983
|
+
if (!f.currentTarget.contains(f.target))
|
|
1984
|
+
return;
|
|
1985
|
+
let g = !0;
|
|
1986
|
+
s.isPressed && !s.ignoreEmulatedMouseEvents && (s.isOverTarget = !0, g = z(f, s.pointerType)), g && f.stopPropagation();
|
|
1987
|
+
}, w.onMouseLeave = (f) => {
|
|
1988
|
+
if (!f.currentTarget.contains(f.target))
|
|
1989
|
+
return;
|
|
1990
|
+
let g = !0;
|
|
1991
|
+
s.isPressed && !s.ignoreEmulatedMouseEvents && (s.isOverTarget = !1, g = W(f, s.pointerType, !1), q(f)), g && f.stopPropagation();
|
|
1992
|
+
}, w.onMouseUp = (f) => {
|
|
1993
|
+
f.currentTarget.contains(f.target) && !s.ignoreEmulatedMouseEvents && f.button === 0 && G(f, s.pointerType || "mouse");
|
|
1994
|
+
};
|
|
1995
|
+
let h = (f) => {
|
|
1996
|
+
if (f.button === 0) {
|
|
1997
|
+
if (s.isPressed = !1, re(), s.ignoreEmulatedMouseEvents) {
|
|
1998
|
+
s.ignoreEmulatedMouseEvents = !1;
|
|
1999
|
+
return;
|
|
2000
|
+
}
|
|
2001
|
+
me(f, s.target) ? W(se(s.target, f), s.pointerType) : s.isOverTarget && W(se(s.target, f), s.pointerType, !1), s.isOverTarget = !1;
|
|
2002
|
+
}
|
|
2003
|
+
};
|
|
2004
|
+
w.onTouchStart = (f) => {
|
|
2005
|
+
if (!f.currentTarget.contains(f.target))
|
|
2006
|
+
return;
|
|
2007
|
+
let g = la(f.nativeEvent);
|
|
2008
|
+
if (!g)
|
|
2009
|
+
return;
|
|
2010
|
+
s.activePointerId = g.identifier, s.ignoreEmulatedMouseEvents = !0, s.isOverTarget = !0, s.isPressed = !0, s.target = f.currentTarget, s.pointerType = "touch", !p && !T && pe(f.currentTarget), Y || ir(s.target), z(f, s.pointerType) && f.stopPropagation(), B(window, "scroll", F, !0);
|
|
2011
|
+
}, w.onTouchMove = (f) => {
|
|
2012
|
+
if (!f.currentTarget.contains(f.target))
|
|
2013
|
+
return;
|
|
2014
|
+
if (!s.isPressed) {
|
|
2015
|
+
f.stopPropagation();
|
|
2016
|
+
return;
|
|
2017
|
+
}
|
|
2018
|
+
let g = ur(f.nativeEvent, s.activePointerId), O = !0;
|
|
2019
|
+
g && me(g, f.currentTarget) ? s.isOverTarget || (s.isOverTarget = !0, O = z(f, s.pointerType)) : s.isOverTarget && (s.isOverTarget = !1, O = W(f, s.pointerType, !1), q(f)), O && f.stopPropagation();
|
|
2020
|
+
}, w.onTouchEnd = (f) => {
|
|
2021
|
+
if (!f.currentTarget.contains(f.target))
|
|
2022
|
+
return;
|
|
2023
|
+
if (!s.isPressed) {
|
|
2024
|
+
f.stopPropagation();
|
|
2025
|
+
return;
|
|
2026
|
+
}
|
|
2027
|
+
let g = ur(f.nativeEvent, s.activePointerId), O = !0;
|
|
2028
|
+
g && me(g, f.currentTarget) ? (G(f, s.pointerType), O = W(f, s.pointerType)) : s.isOverTarget && (O = W(f, s.pointerType, !1)), O && f.stopPropagation(), s.isPressed = !1, s.activePointerId = null, s.isOverTarget = !1, s.ignoreEmulatedMouseEvents = !0, Y || Ve(s.target), re();
|
|
2029
|
+
}, w.onTouchCancel = (f) => {
|
|
2030
|
+
f.currentTarget.contains(f.target) && (f.stopPropagation(), s.isPressed && k(f));
|
|
2031
|
+
};
|
|
2032
|
+
let F = (f) => {
|
|
2033
|
+
s.isPressed && f.target.contains(s.target) && k({
|
|
2034
|
+
currentTarget: s.target,
|
|
2035
|
+
shiftKey: !1,
|
|
2036
|
+
ctrlKey: !1,
|
|
2037
|
+
metaKey: !1,
|
|
2038
|
+
altKey: !1
|
|
2039
|
+
});
|
|
2040
|
+
};
|
|
2041
|
+
w.onDragStart = (f) => {
|
|
2042
|
+
f.currentTarget.contains(f.target) && k(f);
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2045
|
+
return w;
|
|
2046
|
+
}, [
|
|
2047
|
+
B,
|
|
2048
|
+
p,
|
|
2049
|
+
T,
|
|
2050
|
+
re,
|
|
2051
|
+
Y,
|
|
2052
|
+
k,
|
|
2053
|
+
q,
|
|
2054
|
+
W,
|
|
2055
|
+
z,
|
|
2056
|
+
G
|
|
2057
|
+
]);
|
|
2058
|
+
return x.useEffect(() => () => {
|
|
2059
|
+
Y || Ve(te.current.target);
|
|
2060
|
+
}, [
|
|
2061
|
+
Y
|
|
2062
|
+
]), {
|
|
2063
|
+
isPressed: C || ee,
|
|
2064
|
+
pressProps: ve(oe, ie)
|
|
2065
|
+
};
|
|
2066
|
+
}
|
|
2067
|
+
function gt(t) {
|
|
2068
|
+
return t.tagName === "A" && t.hasAttribute("href");
|
|
2069
|
+
}
|
|
2070
|
+
function st(t, r) {
|
|
2071
|
+
const { key: a, code: u } = t, c = r, y = c.getAttribute("role");
|
|
2072
|
+
return (a === "Enter" || a === " " || a === "Spacebar" || u === "Space") && !(c instanceof HTMLInputElement && !wr(c, a) || c instanceof HTMLTextAreaElement || c.isContentEditable) && // Links should only trigger with Enter key
|
|
2073
|
+
!((y === "link" || !y && gt(c)) && a !== "Enter");
|
|
2074
|
+
}
|
|
2075
|
+
function la(t) {
|
|
2076
|
+
const { targetTouches: r } = t;
|
|
2077
|
+
return r.length > 0 ? r[0] : null;
|
|
2078
|
+
}
|
|
2079
|
+
function ur(t, r) {
|
|
2080
|
+
const a = t.changedTouches;
|
|
2081
|
+
for (let u = 0; u < a.length; u++) {
|
|
2082
|
+
const c = a[u];
|
|
2083
|
+
if (c.identifier === r)
|
|
2084
|
+
return c;
|
|
2085
|
+
}
|
|
2086
|
+
return null;
|
|
2087
|
+
}
|
|
2088
|
+
function se(t, r) {
|
|
2089
|
+
return {
|
|
2090
|
+
currentTarget: t,
|
|
2091
|
+
shiftKey: r.shiftKey,
|
|
2092
|
+
ctrlKey: r.ctrlKey,
|
|
2093
|
+
metaKey: r.metaKey,
|
|
2094
|
+
altKey: r.altKey
|
|
2095
|
+
};
|
|
2096
|
+
}
|
|
2097
|
+
function ca(t) {
|
|
2098
|
+
let r = t.width / 2 || t.radiusX || 0, a = t.height / 2 || t.radiusY || 0;
|
|
2099
|
+
return {
|
|
2100
|
+
top: t.clientY - a,
|
|
2101
|
+
right: t.clientX + r,
|
|
2102
|
+
bottom: t.clientY + a,
|
|
2103
|
+
left: t.clientX - r
|
|
2104
|
+
};
|
|
2105
|
+
}
|
|
2106
|
+
function fa(t, r) {
|
|
2107
|
+
return !(t.left > r.right || r.left > t.right || t.top > r.bottom || r.top > t.bottom);
|
|
2108
|
+
}
|
|
2109
|
+
function me(t, r) {
|
|
2110
|
+
let a = r.getBoundingClientRect(), u = ca(t);
|
|
2111
|
+
return fa(a, u);
|
|
2112
|
+
}
|
|
2113
|
+
function ut(t) {
|
|
2114
|
+
return !(t instanceof HTMLElement) || !t.hasAttribute("draggable");
|
|
2115
|
+
}
|
|
2116
|
+
function lr(t, r) {
|
|
2117
|
+
return t instanceof HTMLInputElement ? !wr(t, r) : t instanceof HTMLButtonElement ? t.type !== "submit" && t.type !== "reset" : !gt(t);
|
|
2118
|
+
}
|
|
2119
|
+
const da = /* @__PURE__ */ new Set([
|
|
2120
|
+
"checkbox",
|
|
2121
|
+
"radio",
|
|
2122
|
+
"range",
|
|
2123
|
+
"color",
|
|
2124
|
+
"file",
|
|
2125
|
+
"image",
|
|
2126
|
+
"button",
|
|
2127
|
+
"submit",
|
|
2128
|
+
"reset"
|
|
2129
|
+
]);
|
|
2130
|
+
function wr(t, r) {
|
|
2131
|
+
return t.type === "checkbox" || t.type === "radio" ? r === " " : da.has(t.type);
|
|
2132
|
+
}
|
|
2133
|
+
class pa {
|
|
2134
|
+
isDefaultPrevented() {
|
|
2135
|
+
return this.nativeEvent.defaultPrevented;
|
|
2136
|
+
}
|
|
2137
|
+
preventDefault() {
|
|
2138
|
+
this.defaultPrevented = !0, this.nativeEvent.preventDefault();
|
|
2139
|
+
}
|
|
2140
|
+
stopPropagation() {
|
|
2141
|
+
this.nativeEvent.stopPropagation(), this.isPropagationStopped = () => !0;
|
|
2142
|
+
}
|
|
2143
|
+
isPropagationStopped() {
|
|
2144
|
+
return !1;
|
|
2145
|
+
}
|
|
2146
|
+
persist() {
|
|
2147
|
+
}
|
|
2148
|
+
constructor(r, a) {
|
|
2149
|
+
this.nativeEvent = a, this.target = a.target, this.currentTarget = a.currentTarget, this.relatedTarget = a.relatedTarget, this.bubbles = a.bubbles, this.cancelable = a.cancelable, this.defaultPrevented = a.defaultPrevented, this.eventPhase = a.eventPhase, this.isTrusted = a.isTrusted, this.timeStamp = a.timeStamp, this.type = r;
|
|
2150
|
+
}
|
|
2151
|
+
}
|
|
2152
|
+
function Sr(t) {
|
|
2153
|
+
let r = x.useRef({
|
|
2154
|
+
isFocused: !1,
|
|
2155
|
+
observer: null
|
|
2156
|
+
});
|
|
2157
|
+
vt(() => {
|
|
2158
|
+
const u = r.current;
|
|
2159
|
+
return () => {
|
|
2160
|
+
u.observer && (u.observer.disconnect(), u.observer = null);
|
|
2161
|
+
};
|
|
2162
|
+
}, []);
|
|
2163
|
+
let a = de((u) => {
|
|
2164
|
+
t == null || t(u);
|
|
2165
|
+
});
|
|
2166
|
+
return x.useCallback((u) => {
|
|
2167
|
+
if (u.target instanceof HTMLButtonElement || u.target instanceof HTMLInputElement || u.target instanceof HTMLTextAreaElement || u.target instanceof HTMLSelectElement) {
|
|
2168
|
+
r.current.isFocused = !0;
|
|
2169
|
+
let c = u.target, y = (p) => {
|
|
2170
|
+
r.current.isFocused = !1, c.disabled && a(new pa("blur", p)), r.current.observer && (r.current.observer.disconnect(), r.current.observer = null);
|
|
2171
|
+
};
|
|
2172
|
+
c.addEventListener("focusout", y, {
|
|
2173
|
+
once: !0
|
|
2174
|
+
}), r.current.observer = new MutationObserver(() => {
|
|
2175
|
+
if (r.current.isFocused && c.disabled) {
|
|
2176
|
+
r.current.observer.disconnect();
|
|
2177
|
+
let p = c === document.activeElement ? null : document.activeElement;
|
|
2178
|
+
c.dispatchEvent(new FocusEvent("blur", {
|
|
2179
|
+
relatedTarget: p
|
|
2180
|
+
})), c.dispatchEvent(new FocusEvent("focusout", {
|
|
2181
|
+
bubbles: !0,
|
|
2182
|
+
relatedTarget: p
|
|
2183
|
+
}));
|
|
2184
|
+
}
|
|
2185
|
+
}), r.current.observer.observe(c, {
|
|
2186
|
+
attributes: !0,
|
|
2187
|
+
attributeFilter: [
|
|
2188
|
+
"disabled"
|
|
2189
|
+
]
|
|
2190
|
+
});
|
|
2191
|
+
}
|
|
2192
|
+
}, [
|
|
2193
|
+
a
|
|
2194
|
+
]);
|
|
2195
|
+
}
|
|
2196
|
+
function va(t) {
|
|
2197
|
+
let { isDisabled: r, onFocus: a, onBlur: u, onFocusChange: c } = t;
|
|
2198
|
+
const y = x.useCallback((T) => {
|
|
2199
|
+
if (T.target === T.currentTarget)
|
|
2200
|
+
return u && u(T), c && c(!1), !0;
|
|
2201
|
+
}, [
|
|
2202
|
+
u,
|
|
2203
|
+
c
|
|
2204
|
+
]), p = Sr(y), C = x.useCallback((T) => {
|
|
2205
|
+
T.target === T.currentTarget && document.activeElement === T.target && (a && a(T), c && c(!0), p(T));
|
|
2206
|
+
}, [
|
|
2207
|
+
c,
|
|
2208
|
+
a,
|
|
2209
|
+
p
|
|
2210
|
+
]);
|
|
2211
|
+
return {
|
|
2212
|
+
focusProps: {
|
|
2213
|
+
onFocus: !r && (a || c || u) ? C : void 0,
|
|
2214
|
+
onBlur: !r && (u || c) ? y : void 0
|
|
2215
|
+
}
|
|
2216
|
+
};
|
|
2217
|
+
}
|
|
2218
|
+
let ke = null, ya = /* @__PURE__ */ new Set(), cr = !1, ye = !1, pt = !1;
|
|
2219
|
+
function ht(t, r) {
|
|
2220
|
+
for (let a of ya)
|
|
2221
|
+
a(t, r);
|
|
2222
|
+
}
|
|
2223
|
+
function ga(t) {
|
|
2224
|
+
return !(t.metaKey || !Re() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
|
|
2225
|
+
}
|
|
2226
|
+
function fr(t) {
|
|
2227
|
+
ye = !0, ga(t) && (ke = "keyboard", ht("keyboard", t));
|
|
2228
|
+
}
|
|
2229
|
+
function $e(t) {
|
|
2230
|
+
ke = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (ye = !0, ht("pointer", t));
|
|
2231
|
+
}
|
|
2232
|
+
function ha(t) {
|
|
2233
|
+
ft(t) && (ye = !0, ke = "virtual");
|
|
2234
|
+
}
|
|
2235
|
+
function ba(t) {
|
|
2236
|
+
t.target === window || t.target === document || (!ye && !pt && (ke = "virtual", ht("virtual", t)), ye = !1, pt = !1);
|
|
2237
|
+
}
|
|
2238
|
+
function ma() {
|
|
2239
|
+
ye = !1, pt = !0;
|
|
2240
|
+
}
|
|
2241
|
+
function dr() {
|
|
2242
|
+
if (typeof window > "u" || cr)
|
|
2243
|
+
return;
|
|
2244
|
+
let t = HTMLElement.prototype.focus;
|
|
2245
|
+
HTMLElement.prototype.focus = function() {
|
|
2246
|
+
ye = !0, t.apply(this, arguments);
|
|
2247
|
+
}, document.addEventListener("keydown", fr, !0), document.addEventListener("keyup", fr, !0), document.addEventListener("click", ha, !0), window.addEventListener("focus", ba, !0), window.addEventListener("blur", ma, !1), typeof PointerEvent < "u" ? (document.addEventListener("pointerdown", $e, !0), document.addEventListener("pointermove", $e, !0), document.addEventListener("pointerup", $e, !0)) : (document.addEventListener("mousedown", $e, !0), document.addEventListener("mousemove", $e, !0), document.addEventListener("mouseup", $e, !0)), cr = !0;
|
|
2248
|
+
}
|
|
2249
|
+
typeof document < "u" && (document.readyState !== "loading" ? dr() : document.addEventListener("DOMContentLoaded", dr));
|
|
2250
|
+
function $a() {
|
|
2251
|
+
return ke;
|
|
2252
|
+
}
|
|
2253
|
+
function Ea(t) {
|
|
2254
|
+
let { isDisabled: r, onBlurWithin: a, onFocusWithin: u, onFocusWithinChange: c } = t, y = x.useRef({
|
|
2255
|
+
isFocusWithin: !1
|
|
2256
|
+
}), p = x.useCallback((M) => {
|
|
2257
|
+
y.current.isFocusWithin && !M.currentTarget.contains(M.relatedTarget) && (y.current.isFocusWithin = !1, a && a(M), c && c(!1));
|
|
2258
|
+
}, [
|
|
2259
|
+
a,
|
|
2260
|
+
c,
|
|
2261
|
+
y
|
|
2262
|
+
]), C = Sr(p), T = x.useCallback((M) => {
|
|
2263
|
+
!y.current.isFocusWithin && document.activeElement === M.target && (u && u(M), c && c(!0), y.current.isFocusWithin = !0, C(M));
|
|
2264
|
+
}, [
|
|
2265
|
+
u,
|
|
2266
|
+
c,
|
|
2267
|
+
C
|
|
2268
|
+
]);
|
|
2269
|
+
return r ? {
|
|
2270
|
+
focusWithinProps: {
|
|
2271
|
+
onFocus: null,
|
|
2272
|
+
onBlur: null
|
|
2273
|
+
}
|
|
2274
|
+
} : {
|
|
2275
|
+
focusWithinProps: {
|
|
2276
|
+
onFocus: T,
|
|
2277
|
+
onBlur: p
|
|
2278
|
+
}
|
|
2279
|
+
};
|
|
2280
|
+
}
|
|
2281
|
+
function pr(t) {
|
|
2282
|
+
if (!t)
|
|
2283
|
+
return;
|
|
2284
|
+
let r = !0;
|
|
2285
|
+
return (a) => {
|
|
2286
|
+
let u = {
|
|
2287
|
+
...a,
|
|
2288
|
+
preventDefault() {
|
|
2289
|
+
a.preventDefault();
|
|
2290
|
+
},
|
|
2291
|
+
isDefaultPrevented() {
|
|
2292
|
+
return a.isDefaultPrevented();
|
|
2293
|
+
},
|
|
2294
|
+
stopPropagation() {
|
|
2295
|
+
console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.");
|
|
2296
|
+
},
|
|
2297
|
+
continuePropagation() {
|
|
2298
|
+
r = !1;
|
|
2299
|
+
}
|
|
2300
|
+
};
|
|
2301
|
+
t(u), r && a.stopPropagation();
|
|
2302
|
+
};
|
|
2303
|
+
}
|
|
2304
|
+
function Pa(t) {
|
|
2305
|
+
return {
|
|
2306
|
+
keyboardProps: t.isDisabled ? {} : {
|
|
2307
|
+
onKeyDown: pr(t.onKeyDown),
|
|
2308
|
+
onKeyUp: pr(t.onKeyUp)
|
|
2309
|
+
}
|
|
2310
|
+
};
|
|
2311
|
+
}
|
|
2312
|
+
function Ta(t) {
|
|
2313
|
+
if ($a() === "virtual") {
|
|
2314
|
+
let r = document.activeElement;
|
|
2315
|
+
Er(() => {
|
|
2316
|
+
document.activeElement === r && document.contains(t) && pe(t);
|
|
2317
|
+
});
|
|
2318
|
+
} else
|
|
2319
|
+
pe(t);
|
|
2320
|
+
}
|
|
2321
|
+
function _a(t, r) {
|
|
2322
|
+
return r.some((a) => a.contains(t));
|
|
2323
|
+
}
|
|
2324
|
+
class bt {
|
|
2325
|
+
get size() {
|
|
2326
|
+
return this.fastMap.size;
|
|
2327
|
+
}
|
|
2328
|
+
getTreeNode(r) {
|
|
2329
|
+
return this.fastMap.get(r);
|
|
2330
|
+
}
|
|
2331
|
+
addTreeNode(r, a, u) {
|
|
2332
|
+
let c = this.fastMap.get(a ?? null), y = new vr({
|
|
2333
|
+
scopeRef: r
|
|
2334
|
+
});
|
|
2335
|
+
c.addChild(y), y.parent = c, this.fastMap.set(r, y), u && (y.nodeToRestore = u);
|
|
2336
|
+
}
|
|
2337
|
+
addNode(r) {
|
|
2338
|
+
this.fastMap.set(r.scopeRef, r);
|
|
2339
|
+
}
|
|
2340
|
+
removeTreeNode(r) {
|
|
2341
|
+
if (r === null)
|
|
2342
|
+
return;
|
|
2343
|
+
let a = this.fastMap.get(r), u = a.parent;
|
|
2344
|
+
for (let y of this.traverse())
|
|
2345
|
+
y !== a && a.nodeToRestore && y.nodeToRestore && a.scopeRef.current && _a(y.nodeToRestore, a.scopeRef.current) && (y.nodeToRestore = a.nodeToRestore);
|
|
2346
|
+
let c = a.children;
|
|
2347
|
+
u.removeChild(a), c.size > 0 && c.forEach((y) => u.addChild(y)), this.fastMap.delete(a.scopeRef);
|
|
2348
|
+
}
|
|
2349
|
+
// Pre Order Depth First
|
|
2350
|
+
*traverse(r = this.root) {
|
|
2351
|
+
if (r.scopeRef != null && (yield r), r.children.size > 0)
|
|
2352
|
+
for (let a of r.children)
|
|
2353
|
+
yield* this.traverse(a);
|
|
2354
|
+
}
|
|
2355
|
+
clone() {
|
|
2356
|
+
let r = new bt();
|
|
2357
|
+
for (let a of this.traverse())
|
|
2358
|
+
r.addTreeNode(a.scopeRef, a.parent.scopeRef, a.nodeToRestore);
|
|
2359
|
+
return r;
|
|
2360
|
+
}
|
|
2361
|
+
constructor() {
|
|
2362
|
+
this.fastMap = /* @__PURE__ */ new Map(), this.root = new vr({
|
|
2363
|
+
scopeRef: null
|
|
2364
|
+
}), this.fastMap.set(null, this.root);
|
|
2365
|
+
}
|
|
2366
|
+
}
|
|
2367
|
+
class vr {
|
|
2368
|
+
addChild(r) {
|
|
2369
|
+
this.children.add(r), r.parent = this;
|
|
2370
|
+
}
|
|
2371
|
+
removeChild(r) {
|
|
2372
|
+
this.children.delete(r), r.parent = void 0;
|
|
2373
|
+
}
|
|
2374
|
+
constructor(r) {
|
|
2375
|
+
this.children = /* @__PURE__ */ new Set(), this.contain = !1, this.scopeRef = r.scopeRef;
|
|
2376
|
+
}
|
|
2377
|
+
}
|
|
2378
|
+
new bt();
|
|
2379
|
+
let wa = /* @__PURE__ */ ue.createContext(null);
|
|
2380
|
+
function Sa(t) {
|
|
2381
|
+
let r = x.useContext(wa) || {};
|
|
2382
|
+
Pr(r, t);
|
|
2383
|
+
let { ref: a, ...u } = r;
|
|
2384
|
+
return u;
|
|
2385
|
+
}
|
|
2386
|
+
function Ra(t, r) {
|
|
2387
|
+
let { focusProps: a } = va(t), { keyboardProps: u } = Pa(t), c = ve(a, u), y = Sa(r), p = t.isDisabled ? {} : y, C = x.useRef(t.autoFocus);
|
|
2388
|
+
return x.useEffect(() => {
|
|
2389
|
+
C.current && r.current && Ta(r.current), C.current = !1;
|
|
2390
|
+
}, [
|
|
2391
|
+
r
|
|
2392
|
+
]), {
|
|
2393
|
+
focusableProps: ve({
|
|
2394
|
+
...c,
|
|
2395
|
+
tabIndex: t.excludeFromTabOrder && !t.isDisabled ? -1 : void 0
|
|
2396
|
+
}, p)
|
|
2397
|
+
};
|
|
2398
|
+
}
|
|
2399
|
+
function Ca(t, r, a) {
|
|
2400
|
+
let { isDisabled: u = !1, isRequired: c = !1, isReadOnly: y = !1, value: p, name: C, children: T, "aria-label": M, "aria-labelledby": Y, validationState: ae = "valid", isInvalid: oe } = t, ee = (k) => {
|
|
2401
|
+
k.stopPropagation(), r.setSelected(k.target.checked);
|
|
2402
|
+
}, ne = T != null, te = M != null || Y != null;
|
|
2403
|
+
!ne && !te && console.warn("If you do not provide children, you must specify an aria-label for accessibility");
|
|
2404
|
+
let { pressProps: B, isPressed: re } = ua({
|
|
2405
|
+
isDisabled: u
|
|
2406
|
+
}), { focusableProps: z } = Ra(t, a), W = ve(B, z), G = Bn(t, {
|
|
2407
|
+
labelable: !0
|
|
2408
|
+
});
|
|
2409
|
+
return ta(a, r.isSelected, r.setSelected), {
|
|
2410
|
+
inputProps: ve(G, {
|
|
2411
|
+
"aria-invalid": oe || ae === "invalid" || void 0,
|
|
2412
|
+
"aria-errormessage": t["aria-errormessage"],
|
|
2413
|
+
"aria-controls": t["aria-controls"],
|
|
2414
|
+
"aria-readonly": y || void 0,
|
|
2415
|
+
"aria-required": c || void 0,
|
|
2416
|
+
onChange: ee,
|
|
2417
|
+
disabled: u,
|
|
2418
|
+
...p == null ? {} : {
|
|
2419
|
+
value: p
|
|
2420
|
+
},
|
|
2421
|
+
name: C,
|
|
2422
|
+
type: "checkbox",
|
|
2423
|
+
...W
|
|
2424
|
+
}),
|
|
2425
|
+
isSelected: r.isSelected,
|
|
2426
|
+
isPressed: re,
|
|
2427
|
+
isDisabled: u,
|
|
2428
|
+
isReadOnly: y,
|
|
2429
|
+
isInvalid: oe || ae === "invalid"
|
|
2430
|
+
};
|
|
2431
|
+
}
|
|
2432
|
+
const yr = {
|
|
2433
|
+
border: 0,
|
|
2434
|
+
clip: "rect(0 0 0 0)",
|
|
2435
|
+
clipPath: "inset(50%)",
|
|
2436
|
+
height: "1px",
|
|
2437
|
+
margin: "-1px",
|
|
2438
|
+
overflow: "hidden",
|
|
2439
|
+
padding: 0,
|
|
2440
|
+
position: "absolute",
|
|
2441
|
+
width: "1px",
|
|
2442
|
+
whiteSpace: "nowrap"
|
|
2443
|
+
};
|
|
2444
|
+
function ka(t = {}) {
|
|
2445
|
+
let { style: r, isFocusable: a } = t, [u, c] = x.useState(!1), { focusWithinProps: y } = Ea({
|
|
2446
|
+
isDisabled: !a,
|
|
2447
|
+
onFocusWithinChange: (C) => c(C)
|
|
2448
|
+
}), p = x.useMemo(() => u ? r : r ? {
|
|
2449
|
+
...yr,
|
|
2450
|
+
...r
|
|
2451
|
+
} : yr, [
|
|
2452
|
+
u
|
|
2453
|
+
]);
|
|
2454
|
+
return {
|
|
2455
|
+
visuallyHiddenProps: {
|
|
2456
|
+
...y,
|
|
2457
|
+
style: p
|
|
2458
|
+
}
|
|
2459
|
+
};
|
|
2460
|
+
}
|
|
2461
|
+
function Oa(t) {
|
|
2462
|
+
let { children: r, elementType: a = "div", isFocusable: u, style: c, ...y } = t, { visuallyHiddenProps: p } = ka(t);
|
|
2463
|
+
return /* @__PURE__ */ ue.createElement(a, ve(y, p), r);
|
|
2464
|
+
}
|
|
2465
|
+
function La(t, r, a) {
|
|
2466
|
+
let { inputProps: u, isSelected: c, isPressed: y, isDisabled: p, isReadOnly: C } = Ca(t, r, a);
|
|
2467
|
+
return {
|
|
2468
|
+
inputProps: {
|
|
2469
|
+
...u,
|
|
2470
|
+
role: "switch",
|
|
2471
|
+
checked: c
|
|
2472
|
+
},
|
|
2473
|
+
isSelected: c,
|
|
2474
|
+
isPressed: y,
|
|
2475
|
+
isDisabled: p,
|
|
2476
|
+
isReadOnly: C
|
|
2477
|
+
};
|
|
2478
|
+
}
|
|
2479
|
+
const gr = {
|
|
2480
|
+
Primary: "#e26014",
|
|
2481
|
+
Grey: "#dddddd"
|
|
2482
|
+
};
|
|
2483
|
+
function xa(t, r, a) {
|
|
2484
|
+
const u = t !== void 0, [c, y] = x.useState(t || r);
|
|
2485
|
+
let p = u ? t : c;
|
|
2486
|
+
return [p, (T) => {
|
|
2487
|
+
a && (Object.is(p, T) || a(T)), u || y(T);
|
|
2488
|
+
}];
|
|
2489
|
+
}
|
|
2490
|
+
Da.defaultProps = {
|
|
2491
|
+
defaultOn: !1,
|
|
2492
|
+
isDisabled: !1
|
|
2493
|
+
};
|
|
2494
|
+
function Da(t) {
|
|
2495
|
+
let r = x.useRef(null), [a, u] = xa(
|
|
2496
|
+
t.isOn,
|
|
2497
|
+
t.defaultOn,
|
|
2498
|
+
t.onChange
|
|
2499
|
+
), c = {
|
|
2500
|
+
isSelected: a,
|
|
2501
|
+
setSelected: u,
|
|
2502
|
+
toggle: () => u(!a)
|
|
2503
|
+
}, { inputProps: y } = La(t, c, r);
|
|
2504
|
+
return /* @__PURE__ */ ue.createElement(
|
|
2505
|
+
"label",
|
|
2506
|
+
{
|
|
2507
|
+
"data-on": a || void 0,
|
|
2508
|
+
"data-disabled": t.isDisabled || void 0,
|
|
2509
|
+
style: {
|
|
2510
|
+
display: "flex",
|
|
2511
|
+
alignItems: "center",
|
|
2512
|
+
opacity: t.isDisabled ? 0.4 : 1
|
|
2513
|
+
}
|
|
2514
|
+
},
|
|
2515
|
+
/* @__PURE__ */ ue.createElement(Oa, null, /* @__PURE__ */ ue.createElement("input", { ...y, ref: r })),
|
|
2516
|
+
/* @__PURE__ */ ue.createElement(
|
|
2517
|
+
"div",
|
|
2518
|
+
{
|
|
2519
|
+
style: {
|
|
2520
|
+
position: "relative",
|
|
2521
|
+
width: 50,
|
|
2522
|
+
height: 26,
|
|
2523
|
+
borderRadius: 50,
|
|
2524
|
+
backgroundColor: c.isSelected ? gr.Primary : gr.Grey,
|
|
2525
|
+
cursor: t.isDisabled ? "not-allowed" : "pointer"
|
|
2526
|
+
}
|
|
2527
|
+
},
|
|
2528
|
+
/* @__PURE__ */ ue.createElement(
|
|
2529
|
+
"div",
|
|
2530
|
+
{
|
|
2531
|
+
style: {
|
|
2532
|
+
position: "absolute",
|
|
2533
|
+
width: 22,
|
|
2534
|
+
height: 22,
|
|
2535
|
+
borderRadius: 22,
|
|
2536
|
+
backgroundColor: "white",
|
|
2537
|
+
top: 2,
|
|
2538
|
+
left: c.isSelected ? 26 : 2,
|
|
2539
|
+
transition: "left .2s ease"
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
)
|
|
2543
|
+
)
|
|
2544
|
+
);
|
|
2545
|
+
}
|
|
2546
|
+
export {
|
|
2547
|
+
Da as Switch
|
|
2548
|
+
};
|