@justeattakeaway/pie-link 0.2.0 → 0.3.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 +34 -9
- package/dist/index.d.ts +30 -5
- package/dist/index.js +91 -67
- package/dist/react.d.ts +30 -5
- package/dist/react.js +46 -1565
- package/package.json +1 -1
- package/src/defs.ts +19 -4
- package/src/index.ts +48 -11
- package/src/link.scss +27 -0
package/dist/react.js
CHANGED
|
@@ -1,1595 +1,76 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as L from "react";
|
|
2
|
+
import { PieLink as g } from "./index.js";
|
|
3
|
+
import { buttonTypes as O, iconPlacements as S, sizes as T, tags as _, variants as z } from "./index.js";
|
|
3
4
|
import "lit";
|
|
5
|
+
import "lit/static-html.js";
|
|
4
6
|
import "lit/decorators.js";
|
|
5
|
-
import "lit/directives/if-defined.js";
|
|
6
7
|
import "lit/decorators/property.js";
|
|
7
|
-
function Nr(g, c) {
|
|
8
|
-
for (var U = 0; U < c.length; U++) {
|
|
9
|
-
const k = c[U];
|
|
10
|
-
if (typeof k != "string" && !Array.isArray(k)) {
|
|
11
|
-
for (const A in k)
|
|
12
|
-
if (A !== "default" && !(A in g)) {
|
|
13
|
-
const T = Object.getOwnPropertyDescriptor(k, A);
|
|
14
|
-
T && Object.defineProperty(g, A, T.get ? T : {
|
|
15
|
-
enumerable: !0,
|
|
16
|
-
get: () => k[A]
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
return Object.freeze(Object.defineProperty(g, Symbol.toStringTag, { value: "Module" }));
|
|
22
|
-
}
|
|
23
|
-
function Fr(g) {
|
|
24
|
-
return g && g.__esModule && Object.prototype.hasOwnProperty.call(g, "default") ? g.default : g;
|
|
25
|
-
}
|
|
26
|
-
var Ve = { exports: {} }, p = {};
|
|
27
|
-
/**
|
|
28
|
-
* @license React
|
|
29
|
-
* react.production.min.js
|
|
30
|
-
*
|
|
31
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
-
*
|
|
33
|
-
* This source code is licensed under the MIT license found in the
|
|
34
|
-
* LICENSE file in the root directory of this source tree.
|
|
35
|
-
*/
|
|
36
|
-
var Ct;
|
|
37
|
-
function xr() {
|
|
38
|
-
if (Ct)
|
|
39
|
-
return p;
|
|
40
|
-
Ct = 1;
|
|
41
|
-
var g = Symbol.for("react.element"), c = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), V = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), B = Symbol.for("react.suspense"), N = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), H = Symbol.iterator;
|
|
42
|
-
function J(r) {
|
|
43
|
-
return r === null || typeof r != "object" ? null : (r = H && r[H] || r["@@iterator"], typeof r == "function" ? r : null);
|
|
44
|
-
}
|
|
45
|
-
var D = { isMounted: function() {
|
|
46
|
-
return !1;
|
|
47
|
-
}, enqueueForceUpdate: function() {
|
|
48
|
-
}, enqueueReplaceState: function() {
|
|
49
|
-
}, enqueueSetState: function() {
|
|
50
|
-
} }, P = Object.assign, G = {};
|
|
51
|
-
function Y(r, u, d) {
|
|
52
|
-
this.props = r, this.context = u, this.refs = G, this.updater = d || D;
|
|
53
|
-
}
|
|
54
|
-
Y.prototype.isReactComponent = {}, Y.prototype.setState = function(r, u) {
|
|
55
|
-
if (typeof r != "object" && typeof r != "function" && r != null)
|
|
56
|
-
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
57
|
-
this.updater.enqueueSetState(this, r, u, "setState");
|
|
58
|
-
}, Y.prototype.forceUpdate = function(r) {
|
|
59
|
-
this.updater.enqueueForceUpdate(this, r, "forceUpdate");
|
|
60
|
-
};
|
|
61
|
-
function F() {
|
|
62
|
-
}
|
|
63
|
-
F.prototype = Y.prototype;
|
|
64
|
-
function W(r, u, d) {
|
|
65
|
-
this.props = r, this.context = u, this.refs = G, this.updater = d || D;
|
|
66
|
-
}
|
|
67
|
-
var K = W.prototype = new F();
|
|
68
|
-
K.constructor = W, P(K, Y.prototype), K.isPureReactComponent = !0;
|
|
69
|
-
var Q = Array.isArray, j = Object.prototype.hasOwnProperty, z = { current: null }, X = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
70
|
-
function te(r, u, d) {
|
|
71
|
-
var h, v = {}, _ = null, S = null;
|
|
72
|
-
if (u != null)
|
|
73
|
-
for (h in u.ref !== void 0 && (S = u.ref), u.key !== void 0 && (_ = "" + u.key), u)
|
|
74
|
-
j.call(u, h) && !X.hasOwnProperty(h) && (v[h] = u[h]);
|
|
75
|
-
var b = arguments.length - 2;
|
|
76
|
-
if (b === 1)
|
|
77
|
-
v.children = d;
|
|
78
|
-
else if (1 < b) {
|
|
79
|
-
for (var E = Array(b), x = 0; x < b; x++)
|
|
80
|
-
E[x] = arguments[x + 2];
|
|
81
|
-
v.children = E;
|
|
82
|
-
}
|
|
83
|
-
if (r && r.defaultProps)
|
|
84
|
-
for (h in b = r.defaultProps, b)
|
|
85
|
-
v[h] === void 0 && (v[h] = b[h]);
|
|
86
|
-
return { $$typeof: g, type: r, key: _, ref: S, props: v, _owner: z.current };
|
|
87
|
-
}
|
|
88
|
-
function pe(r, u) {
|
|
89
|
-
return { $$typeof: g, type: r.type, key: u, ref: r.ref, props: r.props, _owner: r._owner };
|
|
90
|
-
}
|
|
91
|
-
function ie(r) {
|
|
92
|
-
return typeof r == "object" && r !== null && r.$$typeof === g;
|
|
93
|
-
}
|
|
94
|
-
function ke(r) {
|
|
95
|
-
var u = { "=": "=0", ":": "=2" };
|
|
96
|
-
return "$" + r.replace(/[=:]/g, function(d) {
|
|
97
|
-
return u[d];
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
var ve = /\/+/g;
|
|
101
|
-
function se(r, u) {
|
|
102
|
-
return typeof r == "object" && r !== null && r.key != null ? ke("" + r.key) : u.toString(36);
|
|
103
|
-
}
|
|
104
|
-
function ne(r, u, d, h, v) {
|
|
105
|
-
var _ = typeof r;
|
|
106
|
-
(_ === "undefined" || _ === "boolean") && (r = null);
|
|
107
|
-
var S = !1;
|
|
108
|
-
if (r === null)
|
|
109
|
-
S = !0;
|
|
110
|
-
else
|
|
111
|
-
switch (_) {
|
|
112
|
-
case "string":
|
|
113
|
-
case "number":
|
|
114
|
-
S = !0;
|
|
115
|
-
break;
|
|
116
|
-
case "object":
|
|
117
|
-
switch (r.$$typeof) {
|
|
118
|
-
case g:
|
|
119
|
-
case c:
|
|
120
|
-
S = !0;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
if (S)
|
|
124
|
-
return S = r, v = v(S), r = h === "" ? "." + se(S, 0) : h, Q(v) ? (d = "", r != null && (d = r.replace(ve, "$&/") + "/"), ne(v, u, d, "", function(x) {
|
|
125
|
-
return x;
|
|
126
|
-
})) : v != null && (ie(v) && (v = pe(v, d + (!v.key || S && S.key === v.key ? "" : ("" + v.key).replace(ve, "$&/") + "/") + r)), u.push(v)), 1;
|
|
127
|
-
if (S = 0, h = h === "" ? "." : h + ":", Q(r))
|
|
128
|
-
for (var b = 0; b < r.length; b++) {
|
|
129
|
-
_ = r[b];
|
|
130
|
-
var E = h + se(_, b);
|
|
131
|
-
S += ne(_, u, d, E, v);
|
|
132
|
-
}
|
|
133
|
-
else if (E = J(r), typeof E == "function")
|
|
134
|
-
for (r = E.call(r), b = 0; !(_ = r.next()).done; )
|
|
135
|
-
_ = _.value, E = h + se(_, b++), S += ne(_, u, d, E, v);
|
|
136
|
-
else if (_ === "object")
|
|
137
|
-
throw u = String(r), Error("Objects are not valid as a React child (found: " + (u === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : u) + "). If you meant to render a collection of children, use an array instead.");
|
|
138
|
-
return S;
|
|
139
|
-
}
|
|
140
|
-
function q(r, u, d) {
|
|
141
|
-
if (r == null)
|
|
142
|
-
return r;
|
|
143
|
-
var h = [], v = 0;
|
|
144
|
-
return ne(r, h, "", "", function(_) {
|
|
145
|
-
return u.call(d, _, v++);
|
|
146
|
-
}), h;
|
|
147
|
-
}
|
|
148
|
-
function Z(r) {
|
|
149
|
-
if (r._status === -1) {
|
|
150
|
-
var u = r._result;
|
|
151
|
-
u = u(), u.then(function(d) {
|
|
152
|
-
(r._status === 0 || r._status === -1) && (r._status = 1, r._result = d);
|
|
153
|
-
}, function(d) {
|
|
154
|
-
(r._status === 0 || r._status === -1) && (r._status = 2, r._result = d);
|
|
155
|
-
}), r._status === -1 && (r._status = 0, r._result = u);
|
|
156
|
-
}
|
|
157
|
-
if (r._status === 1)
|
|
158
|
-
return r._result.default;
|
|
159
|
-
throw r._result;
|
|
160
|
-
}
|
|
161
|
-
var f = { current: null }, re = { transition: null }, ye = { ReactCurrentDispatcher: f, ReactCurrentBatchConfig: re, ReactCurrentOwner: z };
|
|
162
|
-
return p.Children = { map: q, forEach: function(r, u, d) {
|
|
163
|
-
q(r, function() {
|
|
164
|
-
u.apply(this, arguments);
|
|
165
|
-
}, d);
|
|
166
|
-
}, count: function(r) {
|
|
167
|
-
var u = 0;
|
|
168
|
-
return q(r, function() {
|
|
169
|
-
u++;
|
|
170
|
-
}), u;
|
|
171
|
-
}, toArray: function(r) {
|
|
172
|
-
return q(r, function(u) {
|
|
173
|
-
return u;
|
|
174
|
-
}) || [];
|
|
175
|
-
}, only: function(r) {
|
|
176
|
-
if (!ie(r))
|
|
177
|
-
throw Error("React.Children.only expected to receive a single React element child.");
|
|
178
|
-
return r;
|
|
179
|
-
} }, p.Component = Y, p.Fragment = U, p.Profiler = A, p.PureComponent = W, p.StrictMode = k, p.Suspense = B, p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye, p.cloneElement = function(r, u, d) {
|
|
180
|
-
if (r == null)
|
|
181
|
-
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + r + ".");
|
|
182
|
-
var h = P({}, r.props), v = r.key, _ = r.ref, S = r._owner;
|
|
183
|
-
if (u != null) {
|
|
184
|
-
if (u.ref !== void 0 && (_ = u.ref, S = z.current), u.key !== void 0 && (v = "" + u.key), r.type && r.type.defaultProps)
|
|
185
|
-
var b = r.type.defaultProps;
|
|
186
|
-
for (E in u)
|
|
187
|
-
j.call(u, E) && !X.hasOwnProperty(E) && (h[E] = u[E] === void 0 && b !== void 0 ? b[E] : u[E]);
|
|
188
|
-
}
|
|
189
|
-
var E = arguments.length - 2;
|
|
190
|
-
if (E === 1)
|
|
191
|
-
h.children = d;
|
|
192
|
-
else if (1 < E) {
|
|
193
|
-
b = Array(E);
|
|
194
|
-
for (var x = 0; x < E; x++)
|
|
195
|
-
b[x] = arguments[x + 2];
|
|
196
|
-
h.children = b;
|
|
197
|
-
}
|
|
198
|
-
return { $$typeof: g, type: r.type, key: v, ref: _, props: h, _owner: S };
|
|
199
|
-
}, p.createContext = function(r) {
|
|
200
|
-
return r = { $$typeof: V, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: T, _context: r }, r.Consumer = r;
|
|
201
|
-
}, p.createElement = te, p.createFactory = function(r) {
|
|
202
|
-
var u = te.bind(null, r);
|
|
203
|
-
return u.type = r, u;
|
|
204
|
-
}, p.createRef = function() {
|
|
205
|
-
return { current: null };
|
|
206
|
-
}, p.forwardRef = function(r) {
|
|
207
|
-
return { $$typeof: I, render: r };
|
|
208
|
-
}, p.isValidElement = ie, p.lazy = function(r) {
|
|
209
|
-
return { $$typeof: L, _payload: { _status: -1, _result: r }, _init: Z };
|
|
210
|
-
}, p.memo = function(r, u) {
|
|
211
|
-
return { $$typeof: N, type: r, compare: u === void 0 ? null : u };
|
|
212
|
-
}, p.startTransition = function(r) {
|
|
213
|
-
var u = re.transition;
|
|
214
|
-
re.transition = {};
|
|
215
|
-
try {
|
|
216
|
-
r();
|
|
217
|
-
} finally {
|
|
218
|
-
re.transition = u;
|
|
219
|
-
}
|
|
220
|
-
}, p.unstable_act = function() {
|
|
221
|
-
throw Error("act(...) is not supported in production builds of React.");
|
|
222
|
-
}, p.useCallback = function(r, u) {
|
|
223
|
-
return f.current.useCallback(r, u);
|
|
224
|
-
}, p.useContext = function(r) {
|
|
225
|
-
return f.current.useContext(r);
|
|
226
|
-
}, p.useDebugValue = function() {
|
|
227
|
-
}, p.useDeferredValue = function(r) {
|
|
228
|
-
return f.current.useDeferredValue(r);
|
|
229
|
-
}, p.useEffect = function(r, u) {
|
|
230
|
-
return f.current.useEffect(r, u);
|
|
231
|
-
}, p.useId = function() {
|
|
232
|
-
return f.current.useId();
|
|
233
|
-
}, p.useImperativeHandle = function(r, u, d) {
|
|
234
|
-
return f.current.useImperativeHandle(r, u, d);
|
|
235
|
-
}, p.useInsertionEffect = function(r, u) {
|
|
236
|
-
return f.current.useInsertionEffect(r, u);
|
|
237
|
-
}, p.useLayoutEffect = function(r, u) {
|
|
238
|
-
return f.current.useLayoutEffect(r, u);
|
|
239
|
-
}, p.useMemo = function(r, u) {
|
|
240
|
-
return f.current.useMemo(r, u);
|
|
241
|
-
}, p.useReducer = function(r, u, d) {
|
|
242
|
-
return f.current.useReducer(r, u, d);
|
|
243
|
-
}, p.useRef = function(r) {
|
|
244
|
-
return f.current.useRef(r);
|
|
245
|
-
}, p.useState = function(r) {
|
|
246
|
-
return f.current.useState(r);
|
|
247
|
-
}, p.useSyncExternalStore = function(r, u, d) {
|
|
248
|
-
return f.current.useSyncExternalStore(r, u, d);
|
|
249
|
-
}, p.useTransition = function() {
|
|
250
|
-
return f.current.useTransition();
|
|
251
|
-
}, p.version = "18.2.0", p;
|
|
252
|
-
}
|
|
253
|
-
var de = { exports: {} };
|
|
254
|
-
/**
|
|
255
|
-
* @license React
|
|
256
|
-
* react.development.js
|
|
257
|
-
*
|
|
258
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
259
|
-
*
|
|
260
|
-
* This source code is licensed under the MIT license found in the
|
|
261
|
-
* LICENSE file in the root directory of this source tree.
|
|
262
|
-
*/
|
|
263
|
-
de.exports;
|
|
264
|
-
var St;
|
|
265
|
-
function Mr() {
|
|
266
|
-
return St || (St = 1, function(g, c) {
|
|
267
|
-
process.env.NODE_ENV !== "production" && function() {
|
|
268
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
269
|
-
var U = "18.2.0", k = Symbol.for("react.element"), A = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), B = Symbol.for("react.provider"), N = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), J = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), Y = Symbol.iterator, F = "@@iterator";
|
|
270
|
-
function W(e) {
|
|
271
|
-
if (e === null || typeof e != "object")
|
|
272
|
-
return null;
|
|
273
|
-
var t = Y && e[Y] || e[F];
|
|
274
|
-
return typeof t == "function" ? t : null;
|
|
275
|
-
}
|
|
276
|
-
var K = {
|
|
277
|
-
/**
|
|
278
|
-
* @internal
|
|
279
|
-
* @type {ReactComponent}
|
|
280
|
-
*/
|
|
281
|
-
current: null
|
|
282
|
-
}, Q = {
|
|
283
|
-
transition: null
|
|
284
|
-
}, j = {
|
|
285
|
-
current: null,
|
|
286
|
-
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
287
|
-
isBatchingLegacy: !1,
|
|
288
|
-
didScheduleLegacyUpdate: !1
|
|
289
|
-
}, z = {
|
|
290
|
-
/**
|
|
291
|
-
* @internal
|
|
292
|
-
* @type {ReactComponent}
|
|
293
|
-
*/
|
|
294
|
-
current: null
|
|
295
|
-
}, X = {}, te = null;
|
|
296
|
-
function pe(e) {
|
|
297
|
-
te = e;
|
|
298
|
-
}
|
|
299
|
-
X.setExtraStackFrame = function(e) {
|
|
300
|
-
te = e;
|
|
301
|
-
}, X.getCurrentStack = null, X.getStackAddendum = function() {
|
|
302
|
-
var e = "";
|
|
303
|
-
te && (e += te);
|
|
304
|
-
var t = X.getCurrentStack;
|
|
305
|
-
return t && (e += t() || ""), e;
|
|
306
|
-
};
|
|
307
|
-
var ie = !1, ke = !1, ve = !1, se = !1, ne = !1, q = {
|
|
308
|
-
ReactCurrentDispatcher: K,
|
|
309
|
-
ReactCurrentBatchConfig: Q,
|
|
310
|
-
ReactCurrentOwner: z
|
|
311
|
-
};
|
|
312
|
-
q.ReactDebugCurrentFrame = X, q.ReactCurrentActQueue = j;
|
|
313
|
-
function Z(e) {
|
|
314
|
-
{
|
|
315
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
|
|
316
|
-
n[a - 1] = arguments[a];
|
|
317
|
-
re("warn", e, n);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
function f(e) {
|
|
321
|
-
{
|
|
322
|
-
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
|
|
323
|
-
n[a - 1] = arguments[a];
|
|
324
|
-
re("error", e, n);
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
function re(e, t, n) {
|
|
328
|
-
{
|
|
329
|
-
var a = q.ReactDebugCurrentFrame, o = a.getStackAddendum();
|
|
330
|
-
o !== "" && (t += "%s", n = n.concat([o]));
|
|
331
|
-
var s = n.map(function(i) {
|
|
332
|
-
return String(i);
|
|
333
|
-
});
|
|
334
|
-
s.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, s);
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
var ye = {};
|
|
338
|
-
function r(e, t) {
|
|
339
|
-
{
|
|
340
|
-
var n = e.constructor, a = n && (n.displayName || n.name) || "ReactClass", o = a + "." + t;
|
|
341
|
-
if (ye[o])
|
|
342
|
-
return;
|
|
343
|
-
f("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.", t, a), ye[o] = !0;
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
var u = {
|
|
347
|
-
/**
|
|
348
|
-
* Checks whether or not this composite component is mounted.
|
|
349
|
-
* @param {ReactClass} publicInstance The instance we want to test.
|
|
350
|
-
* @return {boolean} True if mounted, false otherwise.
|
|
351
|
-
* @protected
|
|
352
|
-
* @final
|
|
353
|
-
*/
|
|
354
|
-
isMounted: function(e) {
|
|
355
|
-
return !1;
|
|
356
|
-
},
|
|
357
|
-
/**
|
|
358
|
-
* Forces an update. This should only be invoked when it is known with
|
|
359
|
-
* certainty that we are **not** in a DOM transaction.
|
|
360
|
-
*
|
|
361
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
362
|
-
* component's state has changed but `setState` was not called.
|
|
363
|
-
*
|
|
364
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
365
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
366
|
-
*
|
|
367
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
368
|
-
* @param {?function} callback Called after component is updated.
|
|
369
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
370
|
-
* @internal
|
|
371
|
-
*/
|
|
372
|
-
enqueueForceUpdate: function(e, t, n) {
|
|
373
|
-
r(e, "forceUpdate");
|
|
374
|
-
},
|
|
375
|
-
/**
|
|
376
|
-
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
377
|
-
* You should treat `this.state` as immutable.
|
|
378
|
-
*
|
|
379
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
380
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
381
|
-
*
|
|
382
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
383
|
-
* @param {object} completeState Next state.
|
|
384
|
-
* @param {?function} callback Called after component is updated.
|
|
385
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
386
|
-
* @internal
|
|
387
|
-
*/
|
|
388
|
-
enqueueReplaceState: function(e, t, n, a) {
|
|
389
|
-
r(e, "replaceState");
|
|
390
|
-
},
|
|
391
|
-
/**
|
|
392
|
-
* Sets a subset of the state. This only exists because _pendingState is
|
|
393
|
-
* internal. This provides a merging strategy that is not available to deep
|
|
394
|
-
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
395
|
-
* during the merge.
|
|
396
|
-
*
|
|
397
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
398
|
-
* @param {object} partialState Next partial state to be merged with state.
|
|
399
|
-
* @param {?function} callback Called after component is updated.
|
|
400
|
-
* @param {?string} Name of the calling function in the public API.
|
|
401
|
-
* @internal
|
|
402
|
-
*/
|
|
403
|
-
enqueueSetState: function(e, t, n, a) {
|
|
404
|
-
r(e, "setState");
|
|
405
|
-
}
|
|
406
|
-
}, d = Object.assign, h = {};
|
|
407
|
-
Object.freeze(h);
|
|
408
|
-
function v(e, t, n) {
|
|
409
|
-
this.props = e, this.context = t, this.refs = h, this.updater = n || u;
|
|
410
|
-
}
|
|
411
|
-
v.prototype.isReactComponent = {}, v.prototype.setState = function(e, t) {
|
|
412
|
-
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
413
|
-
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
414
|
-
this.updater.enqueueSetState(this, e, t, "setState");
|
|
415
|
-
}, v.prototype.forceUpdate = function(e) {
|
|
416
|
-
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
417
|
-
};
|
|
418
|
-
{
|
|
419
|
-
var _ = {
|
|
420
|
-
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
421
|
-
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
422
|
-
}, S = function(e, t) {
|
|
423
|
-
Object.defineProperty(v.prototype, e, {
|
|
424
|
-
get: function() {
|
|
425
|
-
Z("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
|
|
426
|
-
}
|
|
427
|
-
});
|
|
428
|
-
};
|
|
429
|
-
for (var b in _)
|
|
430
|
-
_.hasOwnProperty(b) && S(b, _[b]);
|
|
431
|
-
}
|
|
432
|
-
function E() {
|
|
433
|
-
}
|
|
434
|
-
E.prototype = v.prototype;
|
|
435
|
-
function x(e, t, n) {
|
|
436
|
-
this.props = e, this.context = t, this.refs = h, this.updater = n || u;
|
|
437
|
-
}
|
|
438
|
-
var Te = x.prototype = new E();
|
|
439
|
-
Te.constructor = x, d(Te, v.prototype), Te.isPureReactComponent = !0;
|
|
440
|
-
function Tt() {
|
|
441
|
-
var e = {
|
|
442
|
-
current: null
|
|
443
|
-
};
|
|
444
|
-
return Object.seal(e), e;
|
|
445
|
-
}
|
|
446
|
-
var Pt = Array.isArray;
|
|
447
|
-
function he(e) {
|
|
448
|
-
return Pt(e);
|
|
449
|
-
}
|
|
450
|
-
function jt(e) {
|
|
451
|
-
{
|
|
452
|
-
var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
453
|
-
return n;
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
function At(e) {
|
|
457
|
-
try {
|
|
458
|
-
return We(e), !1;
|
|
459
|
-
} catch {
|
|
460
|
-
return !0;
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
function We(e) {
|
|
464
|
-
return "" + e;
|
|
465
|
-
}
|
|
466
|
-
function me(e) {
|
|
467
|
-
if (At(e))
|
|
468
|
-
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", jt(e)), We(e);
|
|
469
|
-
}
|
|
470
|
-
function Dt(e, t, n) {
|
|
471
|
-
var a = e.displayName;
|
|
472
|
-
if (a)
|
|
473
|
-
return a;
|
|
474
|
-
var o = t.displayName || t.name || "";
|
|
475
|
-
return o !== "" ? n + "(" + o + ")" : n;
|
|
476
|
-
}
|
|
477
|
-
function Ye(e) {
|
|
478
|
-
return e.displayName || "Context";
|
|
479
|
-
}
|
|
480
|
-
function ee(e) {
|
|
481
|
-
if (e == null)
|
|
482
|
-
return null;
|
|
483
|
-
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
484
|
-
return e.displayName || e.name || null;
|
|
485
|
-
if (typeof e == "string")
|
|
486
|
-
return e;
|
|
487
|
-
switch (e) {
|
|
488
|
-
case T:
|
|
489
|
-
return "Fragment";
|
|
490
|
-
case A:
|
|
491
|
-
return "Portal";
|
|
492
|
-
case I:
|
|
493
|
-
return "Profiler";
|
|
494
|
-
case V:
|
|
495
|
-
return "StrictMode";
|
|
496
|
-
case H:
|
|
497
|
-
return "Suspense";
|
|
498
|
-
case J:
|
|
499
|
-
return "SuspenseList";
|
|
500
|
-
}
|
|
501
|
-
if (typeof e == "object")
|
|
502
|
-
switch (e.$$typeof) {
|
|
503
|
-
case N:
|
|
504
|
-
var t = e;
|
|
505
|
-
return Ye(t) + ".Consumer";
|
|
506
|
-
case B:
|
|
507
|
-
var n = e;
|
|
508
|
-
return Ye(n._context) + ".Provider";
|
|
509
|
-
case L:
|
|
510
|
-
return Dt(e, e.render, "ForwardRef");
|
|
511
|
-
case D:
|
|
512
|
-
var a = e.displayName || null;
|
|
513
|
-
return a !== null ? a : ee(e.type) || "Memo";
|
|
514
|
-
case P: {
|
|
515
|
-
var o = e, s = o._payload, i = o._init;
|
|
516
|
-
try {
|
|
517
|
-
return ee(i(s));
|
|
518
|
-
} catch {
|
|
519
|
-
return null;
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
return null;
|
|
524
|
-
}
|
|
525
|
-
var ce = Object.prototype.hasOwnProperty, ze = {
|
|
526
|
-
key: !0,
|
|
527
|
-
ref: !0,
|
|
528
|
-
__self: !0,
|
|
529
|
-
__source: !0
|
|
530
|
-
}, Be, He, Pe;
|
|
531
|
-
Pe = {};
|
|
532
|
-
function qe(e) {
|
|
533
|
-
if (ce.call(e, "ref")) {
|
|
534
|
-
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
535
|
-
if (t && t.isReactWarning)
|
|
536
|
-
return !1;
|
|
537
|
-
}
|
|
538
|
-
return e.ref !== void 0;
|
|
539
|
-
}
|
|
540
|
-
function Ge(e) {
|
|
541
|
-
if (ce.call(e, "key")) {
|
|
542
|
-
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
543
|
-
if (t && t.isReactWarning)
|
|
544
|
-
return !1;
|
|
545
|
-
}
|
|
546
|
-
return e.key !== void 0;
|
|
547
|
-
}
|
|
548
|
-
function $t(e, t) {
|
|
549
|
-
var n = function() {
|
|
550
|
-
Be || (Be = !0, f("%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)", t));
|
|
551
|
-
};
|
|
552
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
553
|
-
get: n,
|
|
554
|
-
configurable: !0
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
function It(e, t) {
|
|
558
|
-
var n = function() {
|
|
559
|
-
He || (He = !0, f("%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)", t));
|
|
560
|
-
};
|
|
561
|
-
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
562
|
-
get: n,
|
|
563
|
-
configurable: !0
|
|
564
|
-
});
|
|
565
|
-
}
|
|
566
|
-
function Lt(e) {
|
|
567
|
-
if (typeof e.ref == "string" && z.current && e.__self && z.current.stateNode !== e.__self) {
|
|
568
|
-
var t = ee(z.current.type);
|
|
569
|
-
Pe[t] || (f('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', t, e.ref), Pe[t] = !0);
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
var je = function(e, t, n, a, o, s, i) {
|
|
573
|
-
var l = {
|
|
574
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
575
|
-
$$typeof: k,
|
|
576
|
-
// Built-in properties that belong on the element
|
|
577
|
-
type: e,
|
|
578
|
-
key: t,
|
|
579
|
-
ref: n,
|
|
580
|
-
props: i,
|
|
581
|
-
// Record the component responsible for creating this element.
|
|
582
|
-
_owner: s
|
|
583
|
-
};
|
|
584
|
-
return l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
585
|
-
configurable: !1,
|
|
586
|
-
enumerable: !1,
|
|
587
|
-
writable: !0,
|
|
588
|
-
value: !1
|
|
589
|
-
}), Object.defineProperty(l, "_self", {
|
|
590
|
-
configurable: !1,
|
|
591
|
-
enumerable: !1,
|
|
592
|
-
writable: !1,
|
|
593
|
-
value: a
|
|
594
|
-
}), Object.defineProperty(l, "_source", {
|
|
595
|
-
configurable: !1,
|
|
596
|
-
enumerable: !1,
|
|
597
|
-
writable: !1,
|
|
598
|
-
value: o
|
|
599
|
-
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
600
|
-
};
|
|
601
|
-
function Nt(e, t, n) {
|
|
602
|
-
var a, o = {}, s = null, i = null, l = null, y = null;
|
|
603
|
-
if (t != null) {
|
|
604
|
-
qe(t) && (i = t.ref, Lt(t)), Ge(t) && (me(t.key), s = "" + t.key), l = t.__self === void 0 ? null : t.__self, y = t.__source === void 0 ? null : t.__source;
|
|
605
|
-
for (a in t)
|
|
606
|
-
ce.call(t, a) && !ze.hasOwnProperty(a) && (o[a] = t[a]);
|
|
607
|
-
}
|
|
608
|
-
var m = arguments.length - 2;
|
|
609
|
-
if (m === 1)
|
|
610
|
-
o.children = n;
|
|
611
|
-
else if (m > 1) {
|
|
612
|
-
for (var R = Array(m), w = 0; w < m; w++)
|
|
613
|
-
R[w] = arguments[w + 2];
|
|
614
|
-
Object.freeze && Object.freeze(R), o.children = R;
|
|
615
|
-
}
|
|
616
|
-
if (e && e.defaultProps) {
|
|
617
|
-
var C = e.defaultProps;
|
|
618
|
-
for (a in C)
|
|
619
|
-
o[a] === void 0 && (o[a] = C[a]);
|
|
620
|
-
}
|
|
621
|
-
if (s || i) {
|
|
622
|
-
var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
623
|
-
s && $t(o, O), i && It(o, O);
|
|
624
|
-
}
|
|
625
|
-
return je(e, s, i, l, y, z.current, o);
|
|
626
|
-
}
|
|
627
|
-
function Ft(e, t) {
|
|
628
|
-
var n = je(e.type, t, e.ref, e._self, e._source, e._owner, e.props);
|
|
629
|
-
return n;
|
|
630
|
-
}
|
|
631
|
-
function xt(e, t, n) {
|
|
632
|
-
if (e == null)
|
|
633
|
-
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
634
|
-
var a, o = d({}, e.props), s = e.key, i = e.ref, l = e._self, y = e._source, m = e._owner;
|
|
635
|
-
if (t != null) {
|
|
636
|
-
qe(t) && (i = t.ref, m = z.current), Ge(t) && (me(t.key), s = "" + t.key);
|
|
637
|
-
var R;
|
|
638
|
-
e.type && e.type.defaultProps && (R = e.type.defaultProps);
|
|
639
|
-
for (a in t)
|
|
640
|
-
ce.call(t, a) && !ze.hasOwnProperty(a) && (t[a] === void 0 && R !== void 0 ? o[a] = R[a] : o[a] = t[a]);
|
|
641
|
-
}
|
|
642
|
-
var w = arguments.length - 2;
|
|
643
|
-
if (w === 1)
|
|
644
|
-
o.children = n;
|
|
645
|
-
else if (w > 1) {
|
|
646
|
-
for (var C = Array(w), O = 0; O < w; O++)
|
|
647
|
-
C[O] = arguments[O + 2];
|
|
648
|
-
o.children = C;
|
|
649
|
-
}
|
|
650
|
-
return je(e.type, s, i, l, y, m, o);
|
|
651
|
-
}
|
|
652
|
-
function ae(e) {
|
|
653
|
-
return typeof e == "object" && e !== null && e.$$typeof === k;
|
|
654
|
-
}
|
|
655
|
-
var Ke = ".", Mt = ":";
|
|
656
|
-
function Ut(e) {
|
|
657
|
-
var t = /[=:]/g, n = {
|
|
658
|
-
"=": "=0",
|
|
659
|
-
":": "=2"
|
|
660
|
-
}, a = e.replace(t, function(o) {
|
|
661
|
-
return n[o];
|
|
662
|
-
});
|
|
663
|
-
return "$" + a;
|
|
664
|
-
}
|
|
665
|
-
var Qe = !1, Vt = /\/+/g;
|
|
666
|
-
function Je(e) {
|
|
667
|
-
return e.replace(Vt, "$&/");
|
|
668
|
-
}
|
|
669
|
-
function Ae(e, t) {
|
|
670
|
-
return typeof e == "object" && e !== null && e.key != null ? (me(e.key), Ut("" + e.key)) : t.toString(36);
|
|
671
|
-
}
|
|
672
|
-
function ge(e, t, n, a, o) {
|
|
673
|
-
var s = typeof e;
|
|
674
|
-
(s === "undefined" || s === "boolean") && (e = null);
|
|
675
|
-
var i = !1;
|
|
676
|
-
if (e === null)
|
|
677
|
-
i = !0;
|
|
678
|
-
else
|
|
679
|
-
switch (s) {
|
|
680
|
-
case "string":
|
|
681
|
-
case "number":
|
|
682
|
-
i = !0;
|
|
683
|
-
break;
|
|
684
|
-
case "object":
|
|
685
|
-
switch (e.$$typeof) {
|
|
686
|
-
case k:
|
|
687
|
-
case A:
|
|
688
|
-
i = !0;
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
if (i) {
|
|
692
|
-
var l = e, y = o(l), m = a === "" ? Ke + Ae(l, 0) : a;
|
|
693
|
-
if (he(y)) {
|
|
694
|
-
var R = "";
|
|
695
|
-
m != null && (R = Je(m) + "/"), ge(y, t, R, "", function(Ir) {
|
|
696
|
-
return Ir;
|
|
697
|
-
});
|
|
698
|
-
} else
|
|
699
|
-
y != null && (ae(y) && (y.key && (!l || l.key !== y.key) && me(y.key), y = Ft(
|
|
700
|
-
y,
|
|
701
|
-
// Keep both the (mapped) and old keys if they differ, just as
|
|
702
|
-
// traverseAllChildren used to do for objects as children
|
|
703
|
-
n + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
704
|
-
(y.key && (!l || l.key !== y.key) ? (
|
|
705
|
-
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
706
|
-
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
707
|
-
Je("" + y.key) + "/"
|
|
708
|
-
) : "") + m
|
|
709
|
-
)), t.push(y));
|
|
710
|
-
return 1;
|
|
711
|
-
}
|
|
712
|
-
var w, C, O = 0, $ = a === "" ? Ke : a + Mt;
|
|
713
|
-
if (he(e))
|
|
714
|
-
for (var Oe = 0; Oe < e.length; Oe++)
|
|
715
|
-
w = e[Oe], C = $ + Ae(w, Oe), O += ge(w, t, n, C, o);
|
|
716
|
-
else {
|
|
717
|
-
var Ue = W(e);
|
|
718
|
-
if (typeof Ue == "function") {
|
|
719
|
-
var Et = e;
|
|
720
|
-
Ue === Et.entries && (Qe || Z("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Qe = !0);
|
|
721
|
-
for (var Dr = Ue.call(Et), Rt, $r = 0; !(Rt = Dr.next()).done; )
|
|
722
|
-
w = Rt.value, C = $ + Ae(w, $r++), O += ge(w, t, n, C, o);
|
|
723
|
-
} else if (s === "object") {
|
|
724
|
-
var wt = String(e);
|
|
725
|
-
throw new Error("Objects are not valid as a React child (found: " + (wt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : wt) + "). If you meant to render a collection of children, use an array instead.");
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
return O;
|
|
729
|
-
}
|
|
730
|
-
function _e(e, t, n) {
|
|
731
|
-
if (e == null)
|
|
732
|
-
return e;
|
|
733
|
-
var a = [], o = 0;
|
|
734
|
-
return ge(e, a, "", "", function(s) {
|
|
735
|
-
return t.call(n, s, o++);
|
|
736
|
-
}), a;
|
|
737
|
-
}
|
|
738
|
-
function Wt(e) {
|
|
739
|
-
var t = 0;
|
|
740
|
-
return _e(e, function() {
|
|
741
|
-
t++;
|
|
742
|
-
}), t;
|
|
743
|
-
}
|
|
744
|
-
function Yt(e, t, n) {
|
|
745
|
-
_e(e, function() {
|
|
746
|
-
t.apply(this, arguments);
|
|
747
|
-
}, n);
|
|
748
|
-
}
|
|
749
|
-
function zt(e) {
|
|
750
|
-
return _e(e, function(t) {
|
|
751
|
-
return t;
|
|
752
|
-
}) || [];
|
|
753
|
-
}
|
|
754
|
-
function Bt(e) {
|
|
755
|
-
if (!ae(e))
|
|
756
|
-
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
757
|
-
return e;
|
|
758
|
-
}
|
|
759
|
-
function Ht(e) {
|
|
760
|
-
var t = {
|
|
761
|
-
$$typeof: N,
|
|
762
|
-
// As a workaround to support multiple concurrent renderers, we categorize
|
|
763
|
-
// some renderers as primary and others as secondary. We only expect
|
|
764
|
-
// there to be two concurrent renderers at most: React Native (primary) and
|
|
765
|
-
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
766
|
-
// Secondary renderers store their context values on separate fields.
|
|
767
|
-
_currentValue: e,
|
|
768
|
-
_currentValue2: e,
|
|
769
|
-
// Used to track how many concurrent renderers this context currently
|
|
770
|
-
// supports within in a single renderer. Such as parallel server rendering.
|
|
771
|
-
_threadCount: 0,
|
|
772
|
-
// These are circular
|
|
773
|
-
Provider: null,
|
|
774
|
-
Consumer: null,
|
|
775
|
-
// Add these to use same hidden class in VM as ServerContext
|
|
776
|
-
_defaultValue: null,
|
|
777
|
-
_globalName: null
|
|
778
|
-
};
|
|
779
|
-
t.Provider = {
|
|
780
|
-
$$typeof: B,
|
|
781
|
-
_context: t
|
|
782
|
-
};
|
|
783
|
-
var n = !1, a = !1, o = !1;
|
|
784
|
-
{
|
|
785
|
-
var s = {
|
|
786
|
-
$$typeof: N,
|
|
787
|
-
_context: t
|
|
788
|
-
};
|
|
789
|
-
Object.defineProperties(s, {
|
|
790
|
-
Provider: {
|
|
791
|
-
get: function() {
|
|
792
|
-
return a || (a = !0, f("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), t.Provider;
|
|
793
|
-
},
|
|
794
|
-
set: function(i) {
|
|
795
|
-
t.Provider = i;
|
|
796
|
-
}
|
|
797
|
-
},
|
|
798
|
-
_currentValue: {
|
|
799
|
-
get: function() {
|
|
800
|
-
return t._currentValue;
|
|
801
|
-
},
|
|
802
|
-
set: function(i) {
|
|
803
|
-
t._currentValue = i;
|
|
804
|
-
}
|
|
805
|
-
},
|
|
806
|
-
_currentValue2: {
|
|
807
|
-
get: function() {
|
|
808
|
-
return t._currentValue2;
|
|
809
|
-
},
|
|
810
|
-
set: function(i) {
|
|
811
|
-
t._currentValue2 = i;
|
|
812
|
-
}
|
|
813
|
-
},
|
|
814
|
-
_threadCount: {
|
|
815
|
-
get: function() {
|
|
816
|
-
return t._threadCount;
|
|
817
|
-
},
|
|
818
|
-
set: function(i) {
|
|
819
|
-
t._threadCount = i;
|
|
820
|
-
}
|
|
821
|
-
},
|
|
822
|
-
Consumer: {
|
|
823
|
-
get: function() {
|
|
824
|
-
return n || (n = !0, f("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), t.Consumer;
|
|
825
|
-
}
|
|
826
|
-
},
|
|
827
|
-
displayName: {
|
|
828
|
-
get: function() {
|
|
829
|
-
return t.displayName;
|
|
830
|
-
},
|
|
831
|
-
set: function(i) {
|
|
832
|
-
o || (Z("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", i), o = !0);
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
}), t.Consumer = s;
|
|
836
|
-
}
|
|
837
|
-
return t._currentRenderer = null, t._currentRenderer2 = null, t;
|
|
838
|
-
}
|
|
839
|
-
var fe = -1, De = 0, Xe = 1, qt = 2;
|
|
840
|
-
function Gt(e) {
|
|
841
|
-
if (e._status === fe) {
|
|
842
|
-
var t = e._result, n = t();
|
|
843
|
-
if (n.then(function(s) {
|
|
844
|
-
if (e._status === De || e._status === fe) {
|
|
845
|
-
var i = e;
|
|
846
|
-
i._status = Xe, i._result = s;
|
|
847
|
-
}
|
|
848
|
-
}, function(s) {
|
|
849
|
-
if (e._status === De || e._status === fe) {
|
|
850
|
-
var i = e;
|
|
851
|
-
i._status = qt, i._result = s;
|
|
852
|
-
}
|
|
853
|
-
}), e._status === fe) {
|
|
854
|
-
var a = e;
|
|
855
|
-
a._status = De, a._result = n;
|
|
856
|
-
}
|
|
857
|
-
}
|
|
858
|
-
if (e._status === Xe) {
|
|
859
|
-
var o = e._result;
|
|
860
|
-
return o === void 0 && f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
861
|
-
|
|
862
|
-
Your code should look like:
|
|
863
|
-
const MyComponent = lazy(() => import('./MyComponent'))
|
|
864
|
-
|
|
865
|
-
Did you accidentally put curly braces around the import?`, o), "default" in o || f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
866
|
-
|
|
867
|
-
Your code should look like:
|
|
868
|
-
const MyComponent = lazy(() => import('./MyComponent'))`, o), o.default;
|
|
869
|
-
} else
|
|
870
|
-
throw e._result;
|
|
871
|
-
}
|
|
872
|
-
function Kt(e) {
|
|
873
|
-
var t = {
|
|
874
|
-
// We use these fields to store the result.
|
|
875
|
-
_status: fe,
|
|
876
|
-
_result: e
|
|
877
|
-
}, n = {
|
|
878
|
-
$$typeof: P,
|
|
879
|
-
_payload: t,
|
|
880
|
-
_init: Gt
|
|
881
|
-
};
|
|
882
|
-
{
|
|
883
|
-
var a, o;
|
|
884
|
-
Object.defineProperties(n, {
|
|
885
|
-
defaultProps: {
|
|
886
|
-
configurable: !0,
|
|
887
|
-
get: function() {
|
|
888
|
-
return a;
|
|
889
|
-
},
|
|
890
|
-
set: function(s) {
|
|
891
|
-
f("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."), a = s, Object.defineProperty(n, "defaultProps", {
|
|
892
|
-
enumerable: !0
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
},
|
|
896
|
-
propTypes: {
|
|
897
|
-
configurable: !0,
|
|
898
|
-
get: function() {
|
|
899
|
-
return o;
|
|
900
|
-
},
|
|
901
|
-
set: function(s) {
|
|
902
|
-
f("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."), o = s, Object.defineProperty(n, "propTypes", {
|
|
903
|
-
enumerable: !0
|
|
904
|
-
});
|
|
905
|
-
}
|
|
906
|
-
}
|
|
907
|
-
});
|
|
908
|
-
}
|
|
909
|
-
return n;
|
|
910
|
-
}
|
|
911
|
-
function Qt(e) {
|
|
912
|
-
e != null && e.$$typeof === D ? f("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? f("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && f("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) && f("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
913
|
-
var t = {
|
|
914
|
-
$$typeof: L,
|
|
915
|
-
render: e
|
|
916
|
-
};
|
|
917
|
-
{
|
|
918
|
-
var n;
|
|
919
|
-
Object.defineProperty(t, "displayName", {
|
|
920
|
-
enumerable: !1,
|
|
921
|
-
configurable: !0,
|
|
922
|
-
get: function() {
|
|
923
|
-
return n;
|
|
924
|
-
},
|
|
925
|
-
set: function(a) {
|
|
926
|
-
n = a, !e.name && !e.displayName && (e.displayName = a);
|
|
927
|
-
}
|
|
928
|
-
});
|
|
929
|
-
}
|
|
930
|
-
return t;
|
|
931
|
-
}
|
|
932
|
-
var Ze;
|
|
933
|
-
Ze = Symbol.for("react.module.reference");
|
|
934
|
-
function et(e) {
|
|
935
|
-
return !!(typeof e == "string" || typeof e == "function" || e === T || e === I || ne || e === V || e === H || e === J || se || e === G || ie || ke || ve || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === D || e.$$typeof === B || e.$$typeof === N || e.$$typeof === L || // This needs to include all possible module reference object
|
|
936
|
-
// types supported by any Flight configuration anywhere since
|
|
937
|
-
// we don't know which Flight build this will end up being used
|
|
938
|
-
// with.
|
|
939
|
-
e.$$typeof === Ze || e.getModuleId !== void 0));
|
|
940
|
-
}
|
|
941
|
-
function Jt(e, t) {
|
|
942
|
-
et(e) || f("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
|
|
943
|
-
var n = {
|
|
944
|
-
$$typeof: D,
|
|
945
|
-
type: e,
|
|
946
|
-
compare: t === void 0 ? null : t
|
|
947
|
-
};
|
|
948
|
-
{
|
|
949
|
-
var a;
|
|
950
|
-
Object.defineProperty(n, "displayName", {
|
|
951
|
-
enumerable: !1,
|
|
952
|
-
configurable: !0,
|
|
953
|
-
get: function() {
|
|
954
|
-
return a;
|
|
955
|
-
},
|
|
956
|
-
set: function(o) {
|
|
957
|
-
a = o, !e.name && !e.displayName && (e.displayName = o);
|
|
958
|
-
}
|
|
959
|
-
});
|
|
960
|
-
}
|
|
961
|
-
return n;
|
|
962
|
-
}
|
|
963
|
-
function M() {
|
|
964
|
-
var e = K.current;
|
|
965
|
-
return e === null && f(`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:
|
|
966
|
-
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
967
|
-
2. You might be breaking the Rules of Hooks
|
|
968
|
-
3. You might have more than one copy of React in the same app
|
|
969
|
-
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
|
|
970
|
-
}
|
|
971
|
-
function Xt(e) {
|
|
972
|
-
var t = M();
|
|
973
|
-
if (e._context !== void 0) {
|
|
974
|
-
var n = e._context;
|
|
975
|
-
n.Consumer === e ? f("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?") : n.Provider === e && f("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
976
|
-
}
|
|
977
|
-
return t.useContext(e);
|
|
978
|
-
}
|
|
979
|
-
function Zt(e) {
|
|
980
|
-
var t = M();
|
|
981
|
-
return t.useState(e);
|
|
982
|
-
}
|
|
983
|
-
function er(e, t, n) {
|
|
984
|
-
var a = M();
|
|
985
|
-
return a.useReducer(e, t, n);
|
|
986
|
-
}
|
|
987
|
-
function tr(e) {
|
|
988
|
-
var t = M();
|
|
989
|
-
return t.useRef(e);
|
|
990
|
-
}
|
|
991
|
-
function rr(e, t) {
|
|
992
|
-
var n = M();
|
|
993
|
-
return n.useEffect(e, t);
|
|
994
|
-
}
|
|
995
|
-
function nr(e, t) {
|
|
996
|
-
var n = M();
|
|
997
|
-
return n.useInsertionEffect(e, t);
|
|
998
|
-
}
|
|
999
|
-
function ar(e, t) {
|
|
1000
|
-
var n = M();
|
|
1001
|
-
return n.useLayoutEffect(e, t);
|
|
1002
|
-
}
|
|
1003
|
-
function or(e, t) {
|
|
1004
|
-
var n = M();
|
|
1005
|
-
return n.useCallback(e, t);
|
|
1006
|
-
}
|
|
1007
|
-
function ur(e, t) {
|
|
1008
|
-
var n = M();
|
|
1009
|
-
return n.useMemo(e, t);
|
|
1010
|
-
}
|
|
1011
|
-
function ir(e, t, n) {
|
|
1012
|
-
var a = M();
|
|
1013
|
-
return a.useImperativeHandle(e, t, n);
|
|
1014
|
-
}
|
|
1015
|
-
function sr(e, t) {
|
|
1016
|
-
{
|
|
1017
|
-
var n = M();
|
|
1018
|
-
return n.useDebugValue(e, t);
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
function cr() {
|
|
1022
|
-
var e = M();
|
|
1023
|
-
return e.useTransition();
|
|
1024
|
-
}
|
|
1025
|
-
function fr(e) {
|
|
1026
|
-
var t = M();
|
|
1027
|
-
return t.useDeferredValue(e);
|
|
1028
|
-
}
|
|
1029
|
-
function lr() {
|
|
1030
|
-
var e = M();
|
|
1031
|
-
return e.useId();
|
|
1032
|
-
}
|
|
1033
|
-
function dr(e, t, n) {
|
|
1034
|
-
var a = M();
|
|
1035
|
-
return a.useSyncExternalStore(e, t, n);
|
|
1036
|
-
}
|
|
1037
|
-
var le = 0, tt, rt, nt, at, ot, ut, it;
|
|
1038
|
-
function st() {
|
|
1039
|
-
}
|
|
1040
|
-
st.__reactDisabledLog = !0;
|
|
1041
|
-
function pr() {
|
|
1042
|
-
{
|
|
1043
|
-
if (le === 0) {
|
|
1044
|
-
tt = console.log, rt = console.info, nt = console.warn, at = console.error, ot = console.group, ut = console.groupCollapsed, it = console.groupEnd;
|
|
1045
|
-
var e = {
|
|
1046
|
-
configurable: !0,
|
|
1047
|
-
enumerable: !0,
|
|
1048
|
-
value: st,
|
|
1049
|
-
writable: !0
|
|
1050
|
-
};
|
|
1051
|
-
Object.defineProperties(console, {
|
|
1052
|
-
info: e,
|
|
1053
|
-
log: e,
|
|
1054
|
-
warn: e,
|
|
1055
|
-
error: e,
|
|
1056
|
-
group: e,
|
|
1057
|
-
groupCollapsed: e,
|
|
1058
|
-
groupEnd: e
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
le++;
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
function vr() {
|
|
1065
|
-
{
|
|
1066
|
-
if (le--, le === 0) {
|
|
1067
|
-
var e = {
|
|
1068
|
-
configurable: !0,
|
|
1069
|
-
enumerable: !0,
|
|
1070
|
-
writable: !0
|
|
1071
|
-
};
|
|
1072
|
-
Object.defineProperties(console, {
|
|
1073
|
-
log: d({}, e, {
|
|
1074
|
-
value: tt
|
|
1075
|
-
}),
|
|
1076
|
-
info: d({}, e, {
|
|
1077
|
-
value: rt
|
|
1078
|
-
}),
|
|
1079
|
-
warn: d({}, e, {
|
|
1080
|
-
value: nt
|
|
1081
|
-
}),
|
|
1082
|
-
error: d({}, e, {
|
|
1083
|
-
value: at
|
|
1084
|
-
}),
|
|
1085
|
-
group: d({}, e, {
|
|
1086
|
-
value: ot
|
|
1087
|
-
}),
|
|
1088
|
-
groupCollapsed: d({}, e, {
|
|
1089
|
-
value: ut
|
|
1090
|
-
}),
|
|
1091
|
-
groupEnd: d({}, e, {
|
|
1092
|
-
value: it
|
|
1093
|
-
})
|
|
1094
|
-
});
|
|
1095
|
-
}
|
|
1096
|
-
le < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1097
|
-
}
|
|
1098
|
-
}
|
|
1099
|
-
var $e = q.ReactCurrentDispatcher, Ie;
|
|
1100
|
-
function be(e, t, n) {
|
|
1101
|
-
{
|
|
1102
|
-
if (Ie === void 0)
|
|
1103
|
-
try {
|
|
1104
|
-
throw Error();
|
|
1105
|
-
} catch (o) {
|
|
1106
|
-
var a = o.stack.trim().match(/\n( *(at )?)/);
|
|
1107
|
-
Ie = a && a[1] || "";
|
|
1108
|
-
}
|
|
1109
|
-
return `
|
|
1110
|
-
` + Ie + e;
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
var Le = !1, Ee;
|
|
1114
|
-
{
|
|
1115
|
-
var yr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1116
|
-
Ee = new yr();
|
|
1117
|
-
}
|
|
1118
|
-
function ct(e, t) {
|
|
1119
|
-
if (!e || Le)
|
|
1120
|
-
return "";
|
|
1121
|
-
{
|
|
1122
|
-
var n = Ee.get(e);
|
|
1123
|
-
if (n !== void 0)
|
|
1124
|
-
return n;
|
|
1125
|
-
}
|
|
1126
|
-
var a;
|
|
1127
|
-
Le = !0;
|
|
1128
|
-
var o = Error.prepareStackTrace;
|
|
1129
|
-
Error.prepareStackTrace = void 0;
|
|
1130
|
-
var s;
|
|
1131
|
-
s = $e.current, $e.current = null, pr();
|
|
1132
|
-
try {
|
|
1133
|
-
if (t) {
|
|
1134
|
-
var i = function() {
|
|
1135
|
-
throw Error();
|
|
1136
|
-
};
|
|
1137
|
-
if (Object.defineProperty(i.prototype, "props", {
|
|
1138
|
-
set: function() {
|
|
1139
|
-
throw Error();
|
|
1140
|
-
}
|
|
1141
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1142
|
-
try {
|
|
1143
|
-
Reflect.construct(i, []);
|
|
1144
|
-
} catch ($) {
|
|
1145
|
-
a = $;
|
|
1146
|
-
}
|
|
1147
|
-
Reflect.construct(e, [], i);
|
|
1148
|
-
} else {
|
|
1149
|
-
try {
|
|
1150
|
-
i.call();
|
|
1151
|
-
} catch ($) {
|
|
1152
|
-
a = $;
|
|
1153
|
-
}
|
|
1154
|
-
e.call(i.prototype);
|
|
1155
|
-
}
|
|
1156
|
-
} else {
|
|
1157
|
-
try {
|
|
1158
|
-
throw Error();
|
|
1159
|
-
} catch ($) {
|
|
1160
|
-
a = $;
|
|
1161
|
-
}
|
|
1162
|
-
e();
|
|
1163
|
-
}
|
|
1164
|
-
} catch ($) {
|
|
1165
|
-
if ($ && a && typeof $.stack == "string") {
|
|
1166
|
-
for (var l = $.stack.split(`
|
|
1167
|
-
`), y = a.stack.split(`
|
|
1168
|
-
`), m = l.length - 1, R = y.length - 1; m >= 1 && R >= 0 && l[m] !== y[R]; )
|
|
1169
|
-
R--;
|
|
1170
|
-
for (; m >= 1 && R >= 0; m--, R--)
|
|
1171
|
-
if (l[m] !== y[R]) {
|
|
1172
|
-
if (m !== 1 || R !== 1)
|
|
1173
|
-
do
|
|
1174
|
-
if (m--, R--, R < 0 || l[m] !== y[R]) {
|
|
1175
|
-
var w = `
|
|
1176
|
-
` + l[m].replace(" at new ", " at ");
|
|
1177
|
-
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && Ee.set(e, w), w;
|
|
1178
|
-
}
|
|
1179
|
-
while (m >= 1 && R >= 0);
|
|
1180
|
-
break;
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
} finally {
|
|
1184
|
-
Le = !1, $e.current = s, vr(), Error.prepareStackTrace = o;
|
|
1185
|
-
}
|
|
1186
|
-
var C = e ? e.displayName || e.name : "", O = C ? be(C) : "";
|
|
1187
|
-
return typeof e == "function" && Ee.set(e, O), O;
|
|
1188
|
-
}
|
|
1189
|
-
function hr(e, t, n) {
|
|
1190
|
-
return ct(e, !1);
|
|
1191
|
-
}
|
|
1192
|
-
function mr(e) {
|
|
1193
|
-
var t = e.prototype;
|
|
1194
|
-
return !!(t && t.isReactComponent);
|
|
1195
|
-
}
|
|
1196
|
-
function Re(e, t, n) {
|
|
1197
|
-
if (e == null)
|
|
1198
|
-
return "";
|
|
1199
|
-
if (typeof e == "function")
|
|
1200
|
-
return ct(e, mr(e));
|
|
1201
|
-
if (typeof e == "string")
|
|
1202
|
-
return be(e);
|
|
1203
|
-
switch (e) {
|
|
1204
|
-
case H:
|
|
1205
|
-
return be("Suspense");
|
|
1206
|
-
case J:
|
|
1207
|
-
return be("SuspenseList");
|
|
1208
|
-
}
|
|
1209
|
-
if (typeof e == "object")
|
|
1210
|
-
switch (e.$$typeof) {
|
|
1211
|
-
case L:
|
|
1212
|
-
return hr(e.render);
|
|
1213
|
-
case D:
|
|
1214
|
-
return Re(e.type, t, n);
|
|
1215
|
-
case P: {
|
|
1216
|
-
var a = e, o = a._payload, s = a._init;
|
|
1217
|
-
try {
|
|
1218
|
-
return Re(s(o), t, n);
|
|
1219
|
-
} catch {
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
}
|
|
1223
|
-
return "";
|
|
1224
|
-
}
|
|
1225
|
-
var ft = {}, lt = q.ReactDebugCurrentFrame;
|
|
1226
|
-
function we(e) {
|
|
1227
|
-
if (e) {
|
|
1228
|
-
var t = e._owner, n = Re(e.type, e._source, t ? t.type : null);
|
|
1229
|
-
lt.setExtraStackFrame(n);
|
|
1230
|
-
} else
|
|
1231
|
-
lt.setExtraStackFrame(null);
|
|
1232
|
-
}
|
|
1233
|
-
function gr(e, t, n, a, o) {
|
|
1234
|
-
{
|
|
1235
|
-
var s = Function.call.bind(ce);
|
|
1236
|
-
for (var i in e)
|
|
1237
|
-
if (s(e, i)) {
|
|
1238
|
-
var l = void 0;
|
|
1239
|
-
try {
|
|
1240
|
-
if (typeof e[i] != "function") {
|
|
1241
|
-
var y = Error((a || "React class") + ": " + n + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1242
|
-
throw y.name = "Invariant Violation", y;
|
|
1243
|
-
}
|
|
1244
|
-
l = e[i](t, i, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1245
|
-
} catch (m) {
|
|
1246
|
-
l = m;
|
|
1247
|
-
}
|
|
1248
|
-
l && !(l instanceof Error) && (we(o), f("%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).", a || "React class", n, i, typeof l), we(null)), l instanceof Error && !(l.message in ft) && (ft[l.message] = !0, we(o), f("Failed %s type: %s", n, l.message), we(null));
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
}
|
|
1252
|
-
function oe(e) {
|
|
1253
|
-
if (e) {
|
|
1254
|
-
var t = e._owner, n = Re(e.type, e._source, t ? t.type : null);
|
|
1255
|
-
pe(n);
|
|
1256
|
-
} else
|
|
1257
|
-
pe(null);
|
|
1258
|
-
}
|
|
1259
|
-
var Ne;
|
|
1260
|
-
Ne = !1;
|
|
1261
|
-
function dt() {
|
|
1262
|
-
if (z.current) {
|
|
1263
|
-
var e = ee(z.current.type);
|
|
1264
|
-
if (e)
|
|
1265
|
-
return `
|
|
1266
|
-
|
|
1267
|
-
Check the render method of \`` + e + "`.";
|
|
1268
|
-
}
|
|
1269
|
-
return "";
|
|
1270
|
-
}
|
|
1271
|
-
function _r(e) {
|
|
1272
|
-
if (e !== void 0) {
|
|
1273
|
-
var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
1274
|
-
return `
|
|
1275
|
-
|
|
1276
|
-
Check your code at ` + t + ":" + n + ".";
|
|
1277
|
-
}
|
|
1278
|
-
return "";
|
|
1279
|
-
}
|
|
1280
|
-
function br(e) {
|
|
1281
|
-
return e != null ? _r(e.__source) : "";
|
|
1282
|
-
}
|
|
1283
|
-
var pt = {};
|
|
1284
|
-
function Er(e) {
|
|
1285
|
-
var t = dt();
|
|
1286
|
-
if (!t) {
|
|
1287
|
-
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
1288
|
-
n && (t = `
|
|
1289
|
-
|
|
1290
|
-
Check the top-level render call using <` + n + ">.");
|
|
1291
|
-
}
|
|
1292
|
-
return t;
|
|
1293
|
-
}
|
|
1294
|
-
function vt(e, t) {
|
|
1295
|
-
if (!(!e._store || e._store.validated || e.key != null)) {
|
|
1296
|
-
e._store.validated = !0;
|
|
1297
|
-
var n = Er(t);
|
|
1298
|
-
if (!pt[n]) {
|
|
1299
|
-
pt[n] = !0;
|
|
1300
|
-
var a = "";
|
|
1301
|
-
e && e._owner && e._owner !== z.current && (a = " It was passed a child from " + ee(e._owner.type) + "."), oe(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), oe(null);
|
|
1302
|
-
}
|
|
1303
|
-
}
|
|
1304
|
-
}
|
|
1305
|
-
function yt(e, t) {
|
|
1306
|
-
if (typeof e == "object") {
|
|
1307
|
-
if (he(e))
|
|
1308
|
-
for (var n = 0; n < e.length; n++) {
|
|
1309
|
-
var a = e[n];
|
|
1310
|
-
ae(a) && vt(a, t);
|
|
1311
|
-
}
|
|
1312
|
-
else if (ae(e))
|
|
1313
|
-
e._store && (e._store.validated = !0);
|
|
1314
|
-
else if (e) {
|
|
1315
|
-
var o = W(e);
|
|
1316
|
-
if (typeof o == "function" && o !== e.entries)
|
|
1317
|
-
for (var s = o.call(e), i; !(i = s.next()).done; )
|
|
1318
|
-
ae(i.value) && vt(i.value, t);
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
}
|
|
1322
|
-
function ht(e) {
|
|
1323
|
-
{
|
|
1324
|
-
var t = e.type;
|
|
1325
|
-
if (t == null || typeof t == "string")
|
|
1326
|
-
return;
|
|
1327
|
-
var n;
|
|
1328
|
-
if (typeof t == "function")
|
|
1329
|
-
n = t.propTypes;
|
|
1330
|
-
else if (typeof t == "object" && (t.$$typeof === L || // Note: Memo only checks outer props here.
|
|
1331
|
-
// Inner props are checked in the reconciler.
|
|
1332
|
-
t.$$typeof === D))
|
|
1333
|
-
n = t.propTypes;
|
|
1334
|
-
else
|
|
1335
|
-
return;
|
|
1336
|
-
if (n) {
|
|
1337
|
-
var a = ee(t);
|
|
1338
|
-
gr(n, e.props, "prop", a, e);
|
|
1339
|
-
} else if (t.PropTypes !== void 0 && !Ne) {
|
|
1340
|
-
Ne = !0;
|
|
1341
|
-
var o = ee(t);
|
|
1342
|
-
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
1343
|
-
}
|
|
1344
|
-
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
function Rr(e) {
|
|
1348
|
-
{
|
|
1349
|
-
for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
|
|
1350
|
-
var a = t[n];
|
|
1351
|
-
if (a !== "children" && a !== "key") {
|
|
1352
|
-
oe(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), oe(null);
|
|
1353
|
-
break;
|
|
1354
|
-
}
|
|
1355
|
-
}
|
|
1356
|
-
e.ref !== null && (oe(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), oe(null));
|
|
1357
|
-
}
|
|
1358
|
-
}
|
|
1359
|
-
function mt(e, t, n) {
|
|
1360
|
-
var a = et(e);
|
|
1361
|
-
if (!a) {
|
|
1362
|
-
var o = "";
|
|
1363
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1364
|
-
var s = br(t);
|
|
1365
|
-
s ? o += s : o += dt();
|
|
1366
|
-
var i;
|
|
1367
|
-
e === null ? i = "null" : he(e) ? i = "array" : e !== void 0 && e.$$typeof === k ? (i = "<" + (ee(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : i = typeof e, f("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", i, o);
|
|
1368
|
-
}
|
|
1369
|
-
var l = Nt.apply(this, arguments);
|
|
1370
|
-
if (l == null)
|
|
1371
|
-
return l;
|
|
1372
|
-
if (a)
|
|
1373
|
-
for (var y = 2; y < arguments.length; y++)
|
|
1374
|
-
yt(arguments[y], e);
|
|
1375
|
-
return e === T ? Rr(l) : ht(l), l;
|
|
1376
|
-
}
|
|
1377
|
-
var gt = !1;
|
|
1378
|
-
function wr(e) {
|
|
1379
|
-
var t = mt.bind(null, e);
|
|
1380
|
-
return t.type = e, gt || (gt = !0, Z("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(t, "type", {
|
|
1381
|
-
enumerable: !1,
|
|
1382
|
-
get: function() {
|
|
1383
|
-
return Z("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
|
|
1384
|
-
value: e
|
|
1385
|
-
}), e;
|
|
1386
|
-
}
|
|
1387
|
-
}), t;
|
|
1388
|
-
}
|
|
1389
|
-
function Cr(e, t, n) {
|
|
1390
|
-
for (var a = xt.apply(this, arguments), o = 2; o < arguments.length; o++)
|
|
1391
|
-
yt(arguments[o], a.type);
|
|
1392
|
-
return ht(a), a;
|
|
1393
|
-
}
|
|
1394
|
-
function Sr(e, t) {
|
|
1395
|
-
var n = Q.transition;
|
|
1396
|
-
Q.transition = {};
|
|
1397
|
-
var a = Q.transition;
|
|
1398
|
-
Q.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1399
|
-
try {
|
|
1400
|
-
e();
|
|
1401
|
-
} finally {
|
|
1402
|
-
if (Q.transition = n, n === null && a._updatedFibers) {
|
|
1403
|
-
var o = a._updatedFibers.size;
|
|
1404
|
-
o > 10 && Z("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."), a._updatedFibers.clear();
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
}
|
|
1408
|
-
var _t = !1, Ce = null;
|
|
1409
|
-
function Or(e) {
|
|
1410
|
-
if (Ce === null)
|
|
1411
|
-
try {
|
|
1412
|
-
var t = ("require" + Math.random()).slice(0, 7), n = g && g[t];
|
|
1413
|
-
Ce = n.call(g, "timers").setImmediate;
|
|
1414
|
-
} catch {
|
|
1415
|
-
Ce = function(o) {
|
|
1416
|
-
_t === !1 && (_t = !0, typeof MessageChannel > "u" && f("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."));
|
|
1417
|
-
var s = new MessageChannel();
|
|
1418
|
-
s.port1.onmessage = o, s.port2.postMessage(void 0);
|
|
1419
|
-
};
|
|
1420
|
-
}
|
|
1421
|
-
return Ce(e);
|
|
1422
|
-
}
|
|
1423
|
-
var ue = 0, bt = !1;
|
|
1424
|
-
function kr(e) {
|
|
1425
|
-
{
|
|
1426
|
-
var t = ue;
|
|
1427
|
-
ue++, j.current === null && (j.current = []);
|
|
1428
|
-
var n = j.isBatchingLegacy, a;
|
|
1429
|
-
try {
|
|
1430
|
-
if (j.isBatchingLegacy = !0, a = e(), !n && j.didScheduleLegacyUpdate) {
|
|
1431
|
-
var o = j.current;
|
|
1432
|
-
o !== null && (j.didScheduleLegacyUpdate = !1, Me(o));
|
|
1433
|
-
}
|
|
1434
|
-
} catch (C) {
|
|
1435
|
-
throw Se(t), C;
|
|
1436
|
-
} finally {
|
|
1437
|
-
j.isBatchingLegacy = n;
|
|
1438
|
-
}
|
|
1439
|
-
if (a !== null && typeof a == "object" && typeof a.then == "function") {
|
|
1440
|
-
var s = a, i = !1, l = {
|
|
1441
|
-
then: function(C, O) {
|
|
1442
|
-
i = !0, s.then(function($) {
|
|
1443
|
-
Se(t), ue === 0 ? Fe($, C, O) : C($);
|
|
1444
|
-
}, function($) {
|
|
1445
|
-
Se(t), O($);
|
|
1446
|
-
});
|
|
1447
|
-
}
|
|
1448
|
-
};
|
|
1449
|
-
return !bt && typeof Promise < "u" && Promise.resolve().then(function() {
|
|
1450
|
-
}).then(function() {
|
|
1451
|
-
i || (bt = !0, f("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 () => ...);"));
|
|
1452
|
-
}), l;
|
|
1453
|
-
} else {
|
|
1454
|
-
var y = a;
|
|
1455
|
-
if (Se(t), ue === 0) {
|
|
1456
|
-
var m = j.current;
|
|
1457
|
-
m !== null && (Me(m), j.current = null);
|
|
1458
|
-
var R = {
|
|
1459
|
-
then: function(C, O) {
|
|
1460
|
-
j.current === null ? (j.current = [], Fe(y, C, O)) : C(y);
|
|
1461
|
-
}
|
|
1462
|
-
};
|
|
1463
|
-
return R;
|
|
1464
|
-
} else {
|
|
1465
|
-
var w = {
|
|
1466
|
-
then: function(C, O) {
|
|
1467
|
-
C(y);
|
|
1468
|
-
}
|
|
1469
|
-
};
|
|
1470
|
-
return w;
|
|
1471
|
-
}
|
|
1472
|
-
}
|
|
1473
|
-
}
|
|
1474
|
-
}
|
|
1475
|
-
function Se(e) {
|
|
1476
|
-
e !== ue - 1 && f("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), ue = e;
|
|
1477
|
-
}
|
|
1478
|
-
function Fe(e, t, n) {
|
|
1479
|
-
{
|
|
1480
|
-
var a = j.current;
|
|
1481
|
-
if (a !== null)
|
|
1482
|
-
try {
|
|
1483
|
-
Me(a), Or(function() {
|
|
1484
|
-
a.length === 0 ? (j.current = null, t(e)) : Fe(e, t, n);
|
|
1485
|
-
});
|
|
1486
|
-
} catch (o) {
|
|
1487
|
-
n(o);
|
|
1488
|
-
}
|
|
1489
|
-
else
|
|
1490
|
-
t(e);
|
|
1491
|
-
}
|
|
1492
|
-
}
|
|
1493
|
-
var xe = !1;
|
|
1494
|
-
function Me(e) {
|
|
1495
|
-
if (!xe) {
|
|
1496
|
-
xe = !0;
|
|
1497
|
-
var t = 0;
|
|
1498
|
-
try {
|
|
1499
|
-
for (; t < e.length; t++) {
|
|
1500
|
-
var n = e[t];
|
|
1501
|
-
do
|
|
1502
|
-
n = n(!0);
|
|
1503
|
-
while (n !== null);
|
|
1504
|
-
}
|
|
1505
|
-
e.length = 0;
|
|
1506
|
-
} catch (a) {
|
|
1507
|
-
throw e = e.slice(t + 1), a;
|
|
1508
|
-
} finally {
|
|
1509
|
-
xe = !1;
|
|
1510
|
-
}
|
|
1511
|
-
}
|
|
1512
|
-
}
|
|
1513
|
-
var Tr = mt, Pr = Cr, jr = wr, Ar = {
|
|
1514
|
-
map: _e,
|
|
1515
|
-
forEach: Yt,
|
|
1516
|
-
count: Wt,
|
|
1517
|
-
toArray: zt,
|
|
1518
|
-
only: Bt
|
|
1519
|
-
};
|
|
1520
|
-
c.Children = Ar, c.Component = v, c.Fragment = T, c.Profiler = I, c.PureComponent = x, c.StrictMode = V, c.Suspense = H, c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = q, c.cloneElement = Pr, c.createContext = Ht, c.createElement = Tr, c.createFactory = jr, c.createRef = Tt, c.forwardRef = Qt, c.isValidElement = ae, c.lazy = Kt, c.memo = Jt, c.startTransition = Sr, c.unstable_act = kr, c.useCallback = or, c.useContext = Xt, c.useDebugValue = sr, c.useDeferredValue = fr, c.useEffect = rr, c.useId = lr, c.useImperativeHandle = ir, c.useInsertionEffect = nr, c.useLayoutEffect = ar, c.useMemo = ur, c.useReducer = er, c.useRef = tr, c.useState = Zt, c.useSyncExternalStore = dr, c.useTransition = cr, c.version = U, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1521
|
-
}();
|
|
1522
|
-
}(de, de.exports)), de.exports;
|
|
1523
|
-
}
|
|
1524
|
-
process.env.NODE_ENV === "production" ? Ve.exports = xr() : Ve.exports = Mr();
|
|
1525
|
-
var kt = Ve.exports;
|
|
1526
|
-
const Ur = /* @__PURE__ */ Fr(kt), Vr = /* @__PURE__ */ Nr({
|
|
1527
|
-
__proto__: null,
|
|
1528
|
-
default: Ur
|
|
1529
|
-
}, [kt]);
|
|
1530
8
|
/**
|
|
1531
9
|
* @license
|
|
1532
10
|
* Copyright 2018 Google LLC
|
|
1533
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1534
12
|
*/
|
|
1535
|
-
const
|
|
1536
|
-
const
|
|
1537
|
-
|
|
1538
|
-
let
|
|
1539
|
-
|
|
1540
|
-
let
|
|
1541
|
-
|
|
1542
|
-
})(
|
|
13
|
+
const E = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), w = /* @__PURE__ */ new WeakMap(), P = (m, l, p, d, h) => {
|
|
14
|
+
const n = h == null ? void 0 : h[l];
|
|
15
|
+
n === void 0 || p === d ? p == null && l in HTMLElement.prototype ? m.removeAttribute(l) : m[l] = p : ((s, t, u) => {
|
|
16
|
+
let o = w.get(s);
|
|
17
|
+
o === void 0 && w.set(s, o = /* @__PURE__ */ new Map());
|
|
18
|
+
let a = o.get(t);
|
|
19
|
+
u !== void 0 ? a === void 0 ? (o.set(t, a = { handleEvent: u }), s.addEventListener(t, a)) : a.handleEvent = u : a !== void 0 && (o.delete(t), s.removeEventListener(t, a));
|
|
20
|
+
})(m, n, p);
|
|
1543
21
|
};
|
|
1544
|
-
function
|
|
1545
|
-
let
|
|
1546
|
-
if (
|
|
1547
|
-
const
|
|
1548
|
-
({ tagName:
|
|
22
|
+
function b(m = window.React, l, p, d, h) {
|
|
23
|
+
let n, s, t;
|
|
24
|
+
if (l === void 0) {
|
|
25
|
+
const r = m;
|
|
26
|
+
({ tagName: s, elementClass: t, events: d, displayName: h } = r), n = r.react;
|
|
1549
27
|
} else
|
|
1550
|
-
|
|
1551
|
-
const
|
|
1552
|
-
class
|
|
28
|
+
n = m, t = p, s = l;
|
|
29
|
+
const u = n.Component, o = n.createElement, a = new Set(Object.keys(d ?? {}));
|
|
30
|
+
class f extends u {
|
|
1553
31
|
constructor() {
|
|
1554
32
|
super(...arguments), this.o = null;
|
|
1555
33
|
}
|
|
1556
|
-
t(
|
|
34
|
+
t(e) {
|
|
1557
35
|
if (this.o !== null)
|
|
1558
|
-
for (const
|
|
1559
|
-
|
|
36
|
+
for (const v in this.i)
|
|
37
|
+
P(this.o, v, this.props[v], e ? e[v] : void 0, d);
|
|
1560
38
|
}
|
|
1561
39
|
componentDidMount() {
|
|
1562
40
|
this.t();
|
|
1563
41
|
}
|
|
1564
|
-
componentDidUpdate(
|
|
1565
|
-
this.t(
|
|
42
|
+
componentDidUpdate(e) {
|
|
43
|
+
this.t(e);
|
|
1566
44
|
}
|
|
1567
45
|
render() {
|
|
1568
|
-
const { _$Gl:
|
|
1569
|
-
this.h !==
|
|
1570
|
-
|
|
1571
|
-
typeof
|
|
1572
|
-
})(
|
|
46
|
+
const { _$Gl: e, ...v } = this.props;
|
|
47
|
+
this.h !== e && (this.u = (i) => {
|
|
48
|
+
e !== null && ((c, k) => {
|
|
49
|
+
typeof c == "function" ? c(k) : c.current = k;
|
|
50
|
+
})(e, i), this.o = i, this.h = e;
|
|
1573
51
|
}), this.i = {};
|
|
1574
|
-
const
|
|
1575
|
-
for (const [
|
|
1576
|
-
|
|
1577
|
-
return
|
|
52
|
+
const y = { ref: this.u };
|
|
53
|
+
for (const [i, c] of Object.entries(v))
|
|
54
|
+
E.has(i) ? y[i === "className" ? "class" : i] = c : a.has(i) || i in t.prototype ? this.i[i] = c : y[i] = c;
|
|
55
|
+
return o(s, y);
|
|
1578
56
|
}
|
|
1579
57
|
}
|
|
1580
|
-
|
|
1581
|
-
const
|
|
1582
|
-
return
|
|
58
|
+
f.displayName = h ?? t.name;
|
|
59
|
+
const N = n.forwardRef((r, e) => o(f, { ...r, _$Gl: e }, r == null ? void 0 : r.children));
|
|
60
|
+
return N.displayName = f.displayName, N;
|
|
1583
61
|
}
|
|
1584
|
-
const
|
|
62
|
+
const j = b({
|
|
1585
63
|
displayName: "PieLink",
|
|
1586
|
-
elementClass:
|
|
1587
|
-
react:
|
|
64
|
+
elementClass: g,
|
|
65
|
+
react: L,
|
|
1588
66
|
tagName: "pie-link",
|
|
1589
67
|
events: {}
|
|
1590
68
|
});
|
|
1591
69
|
export {
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
70
|
+
j as PieLink,
|
|
71
|
+
O as buttonTypes,
|
|
72
|
+
S as iconPlacements,
|
|
73
|
+
T as sizes,
|
|
74
|
+
_ as tags,
|
|
75
|
+
z as variants
|
|
1595
76
|
};
|