@ptolemy2002/react-proxy-context 2.3.3 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +171 -171
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Fe, { createContext as vr, useRef as X, useImperativeHandle as pr, useCallback as
|
|
1
|
+
import Fe, { createContext as vr, useRef as X, useImperativeHandle as pr, useCallback as L, useContext as br, useSyncExternalStore as yr } from "react";
|
|
2
2
|
import { nanoid as mr } from "nanoid";
|
|
3
|
-
import
|
|
3
|
+
import V from "is-callable";
|
|
4
4
|
import Rr from "@ptolemy2002/react-force-rerender";
|
|
5
5
|
import Er from "@ptolemy2002/react-hook-result";
|
|
6
6
|
import { partialMemo as gr } from "@ptolemy2002/react-utils";
|
|
@@ -18,15 +18,15 @@ var De;
|
|
|
18
18
|
function hr() {
|
|
19
19
|
if (De) return J;
|
|
20
20
|
De = 1;
|
|
21
|
-
var
|
|
22
|
-
function
|
|
23
|
-
var
|
|
24
|
-
j !== void 0 && (
|
|
25
|
-
for (
|
|
26
|
-
if (i && i.defaultProps) for (
|
|
27
|
-
return { $$typeof:
|
|
21
|
+
var E = Fe, g = Symbol.for("react.element"), C = Symbol.for("react.fragment"), y = Object.prototype.hasOwnProperty, T = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, R = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
22
|
+
function l(i, s, j) {
|
|
23
|
+
var m, h = {}, x = null, A = null;
|
|
24
|
+
j !== void 0 && (x = "" + j), s.key !== void 0 && (x = "" + s.key), s.ref !== void 0 && (A = s.ref);
|
|
25
|
+
for (m in s) y.call(s, m) && !R.hasOwnProperty(m) && (h[m] = s[m]);
|
|
26
|
+
if (i && i.defaultProps) for (m in s = i.defaultProps, s) h[m] === void 0 && (h[m] = s[m]);
|
|
27
|
+
return { $$typeof: g, type: i, key: x, ref: A, props: h, _owner: T.current };
|
|
28
28
|
}
|
|
29
|
-
return J.Fragment = C, J.jsx =
|
|
29
|
+
return J.Fragment = C, J.jsx = l, J.jsxs = l, J;
|
|
30
30
|
}
|
|
31
31
|
var q = {};
|
|
32
32
|
/**
|
|
@@ -41,24 +41,24 @@ var q = {};
|
|
|
41
41
|
var Ae;
|
|
42
42
|
function _r() {
|
|
43
43
|
return Ae || (Ae = 1, process.env.NODE_ENV !== "production" && function() {
|
|
44
|
-
var
|
|
45
|
-
function
|
|
44
|
+
var E = Fe, g = Symbol.for("react.element"), C = Symbol.for("react.portal"), y = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), l = Symbol.for("react.provider"), i = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), m = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), M = Symbol.iterator, p = "@@iterator";
|
|
45
|
+
function P(e) {
|
|
46
46
|
if (e === null || typeof e != "object")
|
|
47
47
|
return null;
|
|
48
|
-
var r =
|
|
48
|
+
var r = M && e[M] || e[p];
|
|
49
49
|
return typeof r == "function" ? r : null;
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var d = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
52
52
|
function c(e) {
|
|
53
53
|
{
|
|
54
54
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
55
55
|
t[n - 1] = arguments[n];
|
|
56
|
-
|
|
56
|
+
w("error", e, t);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function w(e, r, t) {
|
|
60
60
|
{
|
|
61
|
-
var n =
|
|
61
|
+
var n = d.ReactDebugCurrentFrame, u = n.getStackAddendum();
|
|
62
62
|
u !== "" && (r += "%s", t = t.concat([u]));
|
|
63
63
|
var f = t.map(function(o) {
|
|
64
64
|
return String(o);
|
|
@@ -69,7 +69,7 @@ function _r() {
|
|
|
69
69
|
var D = !1, $ = !1, Ie = !1, $e = !1, We = !1, se;
|
|
70
70
|
se = Symbol.for("react.module.reference");
|
|
71
71
|
function Ye(e) {
|
|
72
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
72
|
+
return !!(typeof e == "string" || typeof e == "function" || e === y || e === R || We || e === T || e === j || e === m || $e || e === A || D || $ || Ie || typeof e == "object" && e !== null && (e.$$typeof === x || e.$$typeof === h || e.$$typeof === l || e.$$typeof === i || e.$$typeof === s || // This needs to include all possible module reference object
|
|
73
73
|
// types supported by any Flight configuration anywhere since
|
|
74
74
|
// we don't know which Flight build this will end up being used
|
|
75
75
|
// with.
|
|
@@ -93,17 +93,17 @@ function _r() {
|
|
|
93
93
|
if (typeof e == "string")
|
|
94
94
|
return e;
|
|
95
95
|
switch (e) {
|
|
96
|
-
case
|
|
96
|
+
case y:
|
|
97
97
|
return "Fragment";
|
|
98
98
|
case C:
|
|
99
99
|
return "Portal";
|
|
100
|
-
case
|
|
100
|
+
case R:
|
|
101
101
|
return "Profiler";
|
|
102
|
-
case
|
|
102
|
+
case T:
|
|
103
103
|
return "StrictMode";
|
|
104
104
|
case j:
|
|
105
105
|
return "Suspense";
|
|
106
|
-
case
|
|
106
|
+
case m:
|
|
107
107
|
return "SuspenseList";
|
|
108
108
|
}
|
|
109
109
|
if (typeof e == "object")
|
|
@@ -111,15 +111,15 @@ function _r() {
|
|
|
111
111
|
case i:
|
|
112
112
|
var r = e;
|
|
113
113
|
return ce(r) + ".Consumer";
|
|
114
|
-
case
|
|
114
|
+
case l:
|
|
115
115
|
var t = e;
|
|
116
116
|
return ce(t._context) + ".Provider";
|
|
117
117
|
case s:
|
|
118
118
|
return Le(e, e.render, "ForwardRef");
|
|
119
|
-
case
|
|
119
|
+
case h:
|
|
120
120
|
var n = e.displayName || null;
|
|
121
121
|
return n !== null ? n : k(e.type) || "Memo";
|
|
122
|
-
case
|
|
122
|
+
case x: {
|
|
123
123
|
var u = e, f = u._payload, o = u._init;
|
|
124
124
|
try {
|
|
125
125
|
return k(o(f));
|
|
@@ -130,13 +130,13 @@ function _r() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var
|
|
133
|
+
var F = Object.assign, U = 0, fe, le, de, ve, pe, be, ye;
|
|
134
134
|
function me() {
|
|
135
135
|
}
|
|
136
136
|
me.__reactDisabledLog = !0;
|
|
137
137
|
function Ve() {
|
|
138
138
|
{
|
|
139
|
-
if (
|
|
139
|
+
if (U === 0) {
|
|
140
140
|
fe = console.log, le = console.info, de = console.warn, ve = console.error, pe = console.group, be = console.groupCollapsed, ye = console.groupEnd;
|
|
141
141
|
var e = {
|
|
142
142
|
configurable: !0,
|
|
@@ -154,45 +154,45 @@ function _r() {
|
|
|
154
154
|
groupEnd: e
|
|
155
155
|
});
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
U++;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
function Me() {
|
|
161
161
|
{
|
|
162
|
-
if (
|
|
162
|
+
if (U--, U === 0) {
|
|
163
163
|
var e = {
|
|
164
164
|
configurable: !0,
|
|
165
165
|
enumerable: !0,
|
|
166
166
|
writable: !0
|
|
167
167
|
};
|
|
168
168
|
Object.defineProperties(console, {
|
|
169
|
-
log:
|
|
169
|
+
log: F({}, e, {
|
|
170
170
|
value: fe
|
|
171
171
|
}),
|
|
172
|
-
info:
|
|
172
|
+
info: F({}, e, {
|
|
173
173
|
value: le
|
|
174
174
|
}),
|
|
175
|
-
warn:
|
|
175
|
+
warn: F({}, e, {
|
|
176
176
|
value: de
|
|
177
177
|
}),
|
|
178
|
-
error:
|
|
178
|
+
error: F({}, e, {
|
|
179
179
|
value: ve
|
|
180
180
|
}),
|
|
181
|
-
group:
|
|
181
|
+
group: F({}, e, {
|
|
182
182
|
value: pe
|
|
183
183
|
}),
|
|
184
|
-
groupCollapsed:
|
|
184
|
+
groupCollapsed: F({}, e, {
|
|
185
185
|
value: be
|
|
186
186
|
}),
|
|
187
|
-
groupEnd:
|
|
187
|
+
groupEnd: F({}, e, {
|
|
188
188
|
value: ye
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
|
|
192
|
+
U < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
var Z =
|
|
195
|
+
var Z = d.ReactCurrentDispatcher, Q;
|
|
196
196
|
function K(e, r, t) {
|
|
197
197
|
{
|
|
198
198
|
if (Q === void 0)
|
|
@@ -237,50 +237,50 @@ function _r() {
|
|
|
237
237
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
238
238
|
try {
|
|
239
239
|
Reflect.construct(o, []);
|
|
240
|
-
} catch (
|
|
241
|
-
n =
|
|
240
|
+
} catch (S) {
|
|
241
|
+
n = S;
|
|
242
242
|
}
|
|
243
243
|
Reflect.construct(e, [], o);
|
|
244
244
|
} else {
|
|
245
245
|
try {
|
|
246
246
|
o.call();
|
|
247
|
-
} catch (
|
|
248
|
-
n =
|
|
247
|
+
} catch (S) {
|
|
248
|
+
n = S;
|
|
249
249
|
}
|
|
250
250
|
e.call(o.prototype);
|
|
251
251
|
}
|
|
252
252
|
} else {
|
|
253
253
|
try {
|
|
254
254
|
throw Error();
|
|
255
|
-
} catch (
|
|
256
|
-
n =
|
|
255
|
+
} catch (S) {
|
|
256
|
+
n = S;
|
|
257
257
|
}
|
|
258
258
|
e();
|
|
259
259
|
}
|
|
260
|
-
} catch (
|
|
261
|
-
if (
|
|
262
|
-
for (var a =
|
|
263
|
-
`),
|
|
264
|
-
`),
|
|
265
|
-
|
|
266
|
-
for (;
|
|
267
|
-
if (a[
|
|
268
|
-
if (
|
|
260
|
+
} catch (S) {
|
|
261
|
+
if (S && n && typeof S.stack == "string") {
|
|
262
|
+
for (var a = S.stack.split(`
|
|
263
|
+
`), _ = n.stack.split(`
|
|
264
|
+
`), v = a.length - 1, b = _.length - 1; v >= 1 && b >= 0 && a[v] !== _[b]; )
|
|
265
|
+
b--;
|
|
266
|
+
for (; v >= 1 && b >= 0; v--, b--)
|
|
267
|
+
if (a[v] !== _[b]) {
|
|
268
|
+
if (v !== 1 || b !== 1)
|
|
269
269
|
do
|
|
270
|
-
if (
|
|
270
|
+
if (v--, b--, b < 0 || a[v] !== _[b]) {
|
|
271
271
|
var O = `
|
|
272
|
-
` + a[
|
|
272
|
+
` + a[v].replace(" at new ", " at ");
|
|
273
273
|
return e.displayName && O.includes("<anonymous>") && (O = O.replace("<anonymous>", e.displayName)), typeof e == "function" && G.set(e, O), O;
|
|
274
274
|
}
|
|
275
|
-
while (
|
|
275
|
+
while (v >= 1 && b >= 0);
|
|
276
276
|
break;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
} finally {
|
|
280
280
|
ee = !1, Z.current = f, Me(), Error.prepareStackTrace = u;
|
|
281
281
|
}
|
|
282
|
-
var Y = e ? e.displayName || e.name : "",
|
|
283
|
-
return typeof e == "function" && G.set(e,
|
|
282
|
+
var Y = e ? e.displayName || e.name : "", I = Y ? K(Y) : "";
|
|
283
|
+
return typeof e == "function" && G.set(e, I), I;
|
|
284
284
|
}
|
|
285
285
|
function Ne(e, r, t) {
|
|
286
286
|
return Re(e, !1);
|
|
@@ -299,16 +299,16 @@ function _r() {
|
|
|
299
299
|
switch (e) {
|
|
300
300
|
case j:
|
|
301
301
|
return K("Suspense");
|
|
302
|
-
case
|
|
302
|
+
case m:
|
|
303
303
|
return K("SuspenseList");
|
|
304
304
|
}
|
|
305
305
|
if (typeof e == "object")
|
|
306
306
|
switch (e.$$typeof) {
|
|
307
307
|
case s:
|
|
308
308
|
return Ne(e.render);
|
|
309
|
-
case
|
|
309
|
+
case h:
|
|
310
310
|
return z(e.type, r, t);
|
|
311
|
-
case
|
|
311
|
+
case x: {
|
|
312
312
|
var n = e, u = n._payload, f = n._init;
|
|
313
313
|
try {
|
|
314
314
|
return z(f(u), r, t);
|
|
@@ -318,7 +318,7 @@ function _r() {
|
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var
|
|
321
|
+
var N = Object.prototype.hasOwnProperty, Ee = {}, ge = d.ReactDebugCurrentFrame;
|
|
322
322
|
function H(e) {
|
|
323
323
|
if (e) {
|
|
324
324
|
var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
|
|
@@ -328,18 +328,18 @@ function _r() {
|
|
|
328
328
|
}
|
|
329
329
|
function Je(e, r, t, n, u) {
|
|
330
330
|
{
|
|
331
|
-
var f = Function.call.bind(
|
|
331
|
+
var f = Function.call.bind(N);
|
|
332
332
|
for (var o in e)
|
|
333
333
|
if (f(e, o)) {
|
|
334
334
|
var a = void 0;
|
|
335
335
|
try {
|
|
336
336
|
if (typeof e[o] != "function") {
|
|
337
|
-
var
|
|
338
|
-
throw
|
|
337
|
+
var _ = Error((n || "React class") + ": " + t + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
338
|
+
throw _.name = "Invariant Violation", _;
|
|
339
339
|
}
|
|
340
340
|
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
341
|
-
} catch (
|
|
342
|
-
a =
|
|
341
|
+
} catch (v) {
|
|
342
|
+
a = v;
|
|
343
343
|
}
|
|
344
344
|
a && !(a instanceof Error) && (H(u), c("%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).", n || "React class", t, o, typeof a), H(null)), a instanceof Error && !(a.message in Ee) && (Ee[a.message] = !0, H(u), c("Failed %s type: %s", t, a.message), H(null));
|
|
345
345
|
}
|
|
@@ -369,7 +369,7 @@ function _r() {
|
|
|
369
369
|
if (Ge(e))
|
|
370
370
|
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ke(e)), he(e);
|
|
371
371
|
}
|
|
372
|
-
var
|
|
372
|
+
var B = d.ReactCurrentOwner, ze = {
|
|
373
373
|
key: !0,
|
|
374
374
|
ref: !0,
|
|
375
375
|
__self: !0,
|
|
@@ -377,7 +377,7 @@ function _r() {
|
|
|
377
377
|
}, Te, xe, te;
|
|
378
378
|
te = {};
|
|
379
379
|
function He(e) {
|
|
380
|
-
if (
|
|
380
|
+
if (N.call(e, "ref")) {
|
|
381
381
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
382
382
|
if (r && r.isReactWarning)
|
|
383
383
|
return !1;
|
|
@@ -385,7 +385,7 @@ function _r() {
|
|
|
385
385
|
return e.ref !== void 0;
|
|
386
386
|
}
|
|
387
387
|
function Xe(e) {
|
|
388
|
-
if (
|
|
388
|
+
if (N.call(e, "key")) {
|
|
389
389
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
390
390
|
if (r && r.isReactWarning)
|
|
391
391
|
return !1;
|
|
@@ -393,9 +393,9 @@ function _r() {
|
|
|
393
393
|
return e.key !== void 0;
|
|
394
394
|
}
|
|
395
395
|
function Ze(e, r) {
|
|
396
|
-
if (typeof e.ref == "string" &&
|
|
397
|
-
var t = k(
|
|
398
|
-
te[t] || (c('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', k(
|
|
396
|
+
if (typeof e.ref == "string" && B.current && r && B.current.stateNode !== r) {
|
|
397
|
+
var t = k(B.current.type);
|
|
398
|
+
te[t] || (c('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', k(B.current.type), e.ref), te[t] = !0);
|
|
399
399
|
}
|
|
400
400
|
}
|
|
401
401
|
function Qe(e, r) {
|
|
@@ -423,7 +423,7 @@ function _r() {
|
|
|
423
423
|
var rr = function(e, r, t, n, u, f, o) {
|
|
424
424
|
var a = {
|
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
|
-
$$typeof:
|
|
426
|
+
$$typeof: g,
|
|
427
427
|
// Built-in properties that belong on the element
|
|
428
428
|
type: e,
|
|
429
429
|
key: r,
|
|
@@ -451,23 +451,23 @@ function _r() {
|
|
|
451
451
|
};
|
|
452
452
|
function tr(e, r, t, n, u) {
|
|
453
453
|
{
|
|
454
|
-
var f, o = {}, a = null,
|
|
455
|
-
t !== void 0 && (_e(t), a = "" + t), Xe(r) && (_e(r.key), a = "" + r.key), He(r) && (
|
|
454
|
+
var f, o = {}, a = null, _ = null;
|
|
455
|
+
t !== void 0 && (_e(t), a = "" + t), Xe(r) && (_e(r.key), a = "" + r.key), He(r) && (_ = r.ref, Ze(r, u));
|
|
456
456
|
for (f in r)
|
|
457
|
-
|
|
457
|
+
N.call(r, f) && !ze.hasOwnProperty(f) && (o[f] = r[f]);
|
|
458
458
|
if (e && e.defaultProps) {
|
|
459
|
-
var
|
|
460
|
-
for (f in
|
|
461
|
-
o[f] === void 0 && (o[f] =
|
|
459
|
+
var v = e.defaultProps;
|
|
460
|
+
for (f in v)
|
|
461
|
+
o[f] === void 0 && (o[f] = v[f]);
|
|
462
462
|
}
|
|
463
|
-
if (a ||
|
|
464
|
-
var
|
|
465
|
-
a && Qe(o,
|
|
463
|
+
if (a || _) {
|
|
464
|
+
var b = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
465
|
+
a && Qe(o, b), _ && er(o, b);
|
|
466
466
|
}
|
|
467
|
-
return rr(e, a,
|
|
467
|
+
return rr(e, a, _, u, n, B.current, o);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
|
-
var ne =
|
|
470
|
+
var ne = d.ReactCurrentOwner, Se = d.ReactDebugCurrentFrame;
|
|
471
471
|
function W(e) {
|
|
472
472
|
if (e) {
|
|
473
473
|
var r = e._owner, t = z(e.type, e._source, r ? r.type : null);
|
|
@@ -478,7 +478,7 @@ function _r() {
|
|
|
478
478
|
var ae;
|
|
479
479
|
ae = !1;
|
|
480
480
|
function oe(e) {
|
|
481
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
481
|
+
return typeof e == "object" && e !== null && e.$$typeof === g;
|
|
482
482
|
}
|
|
483
483
|
function Pe() {
|
|
484
484
|
{
|
|
@@ -533,7 +533,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
533
533
|
else if (oe(e))
|
|
534
534
|
e._store && (e._store.validated = !0);
|
|
535
535
|
else if (e) {
|
|
536
|
-
var u =
|
|
536
|
+
var u = P(e);
|
|
537
537
|
if (typeof u == "function" && u !== e.entries)
|
|
538
538
|
for (var f = u.call(e), o; !(o = f.next()).done; )
|
|
539
539
|
oe(o.value) && Oe(o.value, r);
|
|
@@ -550,7 +550,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
550
550
|
t = r.propTypes;
|
|
551
551
|
else if (typeof r == "object" && (r.$$typeof === s || // Note: Memo only checks outer props here.
|
|
552
552
|
// Inner props are checked in the reconciler.
|
|
553
|
-
r.$$typeof ===
|
|
553
|
+
r.$$typeof === h))
|
|
554
554
|
t = r.propTypes;
|
|
555
555
|
else
|
|
556
556
|
return;
|
|
@@ -584,14 +584,14 @@ Check the top-level render call using <` + t + ">.");
|
|
|
584
584
|
if (!o) {
|
|
585
585
|
var a = "";
|
|
586
586
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
587
|
-
var
|
|
588
|
-
|
|
589
|
-
var
|
|
590
|
-
e === null ?
|
|
587
|
+
var _ = nr();
|
|
588
|
+
_ ? a += _ : a += Pe();
|
|
589
|
+
var v;
|
|
590
|
+
e === null ? v = "null" : re(e) ? v = "array" : e !== void 0 && e.$$typeof === g ? (v = "<" + (k(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : v = typeof e, c("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", v, a);
|
|
591
591
|
}
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
return
|
|
592
|
+
var b = tr(e, r, t, u, f);
|
|
593
|
+
if (b == null)
|
|
594
|
+
return b;
|
|
595
595
|
if (o) {
|
|
596
596
|
var O = r.children;
|
|
597
597
|
if (O !== void 0)
|
|
@@ -605,21 +605,21 @@ Check the top-level render call using <` + t + ">.");
|
|
|
605
605
|
else
|
|
606
606
|
Ce(O, e);
|
|
607
607
|
}
|
|
608
|
-
if (
|
|
609
|
-
var
|
|
608
|
+
if (N.call(r, "key")) {
|
|
609
|
+
var I = k(e), S = Object.keys(r).filter(function(dr) {
|
|
610
610
|
return dr !== "key";
|
|
611
|
-
}), ie =
|
|
612
|
-
if (!je[
|
|
613
|
-
var lr =
|
|
611
|
+
}), ie = S.length > 0 ? "{key: someKey, " + S.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
612
|
+
if (!je[I + ie]) {
|
|
613
|
+
var lr = S.length > 0 ? "{" + S.join(": ..., ") + ": ...}" : "{}";
|
|
614
614
|
c(`A props object containing a "key" prop is being spread into JSX:
|
|
615
615
|
let props = %s;
|
|
616
616
|
<%s {...props} />
|
|
617
617
|
React keys must be passed directly to JSX without using spread:
|
|
618
618
|
let props = %s;
|
|
619
|
-
<%s key={someKey} {...props} />`, ie,
|
|
619
|
+
<%s key={someKey} {...props} />`, ie, I, lr, I), je[I + ie] = !0;
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
return e ===
|
|
622
|
+
return e === y ? ir(b) : or(b), b;
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
function ur(e, r, t) {
|
|
@@ -629,108 +629,108 @@ React keys must be passed directly to JSX without using spread:
|
|
|
629
629
|
return ke(e, r, t, !1);
|
|
630
630
|
}
|
|
631
631
|
var cr = sr, fr = ur;
|
|
632
|
-
q.Fragment =
|
|
632
|
+
q.Fragment = y, q.jsx = cr, q.jsxs = fr;
|
|
633
633
|
}()), q;
|
|
634
634
|
}
|
|
635
635
|
process.env.NODE_ENV === "production" ? ue.exports = hr() : ue.exports = _r();
|
|
636
636
|
var Tr = ue.exports;
|
|
637
|
-
function kr(
|
|
637
|
+
function kr(E) {
|
|
638
638
|
if (typeof Proxy > "u") throw new Error("Proxy is not supported in this environment.");
|
|
639
|
-
const
|
|
639
|
+
const g = vr(
|
|
640
640
|
void 0
|
|
641
641
|
);
|
|
642
|
-
return
|
|
642
|
+
return g.name = E, g;
|
|
643
643
|
}
|
|
644
|
-
function xr(
|
|
645
|
-
if (Array.isArray(
|
|
646
|
-
const [
|
|
647
|
-
return (
|
|
648
|
-
if (
|
|
649
|
-
let
|
|
644
|
+
function xr(E) {
|
|
645
|
+
if (Array.isArray(E)) {
|
|
646
|
+
const [g, ...C] = E;
|
|
647
|
+
return (y, T, R) => {
|
|
648
|
+
if (y !== g) return !1;
|
|
649
|
+
let l = T, i = R;
|
|
650
650
|
for (const s of C)
|
|
651
|
-
|
|
652
|
-
return
|
|
651
|
+
l = l == null ? void 0 : l[s], i = i == null ? void 0 : i[s];
|
|
652
|
+
return l !== i;
|
|
653
653
|
};
|
|
654
654
|
}
|
|
655
|
-
return
|
|
655
|
+
return E;
|
|
656
656
|
}
|
|
657
|
-
function Dr(
|
|
657
|
+
function Dr(E) {
|
|
658
658
|
return gr(
|
|
659
659
|
({
|
|
660
|
-
children:
|
|
660
|
+
children: g,
|
|
661
661
|
value: C,
|
|
662
|
-
onChangeProp:
|
|
663
|
-
onChangeReinit:
|
|
664
|
-
proxyRef:
|
|
662
|
+
onChangeProp: y,
|
|
663
|
+
onChangeReinit: T,
|
|
664
|
+
proxyRef: R
|
|
665
665
|
}) => {
|
|
666
|
-
const
|
|
667
|
-
pr(
|
|
668
|
-
const
|
|
666
|
+
const l = X({}), i = X(), s = X({}), j = Rr();
|
|
667
|
+
pr(R, () => i.current, [i.current]);
|
|
668
|
+
const m = L((p, P, d) => {
|
|
669
669
|
const c = mr();
|
|
670
|
-
return
|
|
670
|
+
return l.current[c] = {
|
|
671
671
|
id: c,
|
|
672
|
-
deps:
|
|
673
|
-
propCallback:
|
|
674
|
-
reinitCallback:
|
|
672
|
+
deps: d,
|
|
673
|
+
propCallback: p,
|
|
674
|
+
reinitCallback: P
|
|
675
675
|
}, c;
|
|
676
|
-
}, []),
|
|
677
|
-
delete
|
|
678
|
-
}, []),
|
|
679
|
-
Object.values(
|
|
676
|
+
}, []), h = L((p) => {
|
|
677
|
+
delete l.current[p];
|
|
678
|
+
}, []), x = L((p, P, d) => {
|
|
679
|
+
Object.values(l.current).forEach((c) => {
|
|
680
680
|
var D;
|
|
681
|
-
const
|
|
682
|
-
(!
|
|
683
|
-
($) =>
|
|
684
|
-
)) && c.propCallback(
|
|
685
|
-
}),
|
|
686
|
-
}, [
|
|
687
|
-
Object.values(
|
|
688
|
-
|
|
689
|
-
}),
|
|
690
|
-
}, [
|
|
691
|
-
if (
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
get: function(
|
|
695
|
-
const
|
|
696
|
-
return
|
|
681
|
+
const w = (D = c.deps) == null ? void 0 : D.map(xr);
|
|
682
|
+
(!w || w.includes(p) && d !== P || w.some(
|
|
683
|
+
($) => V($) && $(p, P, d, i.current)
|
|
684
|
+
)) && c.propCallback(p, P, d);
|
|
685
|
+
}), V(y) && y(p, P, d);
|
|
686
|
+
}, [y]), A = L((p, P) => {
|
|
687
|
+
Object.values(l.current).forEach((d) => {
|
|
688
|
+
d.reinitCallback(p, P);
|
|
689
|
+
}), V(T) && T(p, P);
|
|
690
|
+
}, [T]), M = L((p) => {
|
|
691
|
+
if (p !== i.current) {
|
|
692
|
+
const P = i.current;
|
|
693
|
+
p !== null ? i.current = new Proxy(p, {
|
|
694
|
+
get: function(d, c) {
|
|
695
|
+
const w = Reflect.get(d, c, p);
|
|
696
|
+
return V(w) ? w.bind(i.current) : w;
|
|
697
697
|
},
|
|
698
|
-
set: function(
|
|
699
|
-
const D = c, $ =
|
|
700
|
-
return Reflect.set(
|
|
698
|
+
set: function(d, c, w) {
|
|
699
|
+
const D = c, $ = d[D];
|
|
700
|
+
return Reflect.set(d, D, w, p), w = d[D], x(D, w, $), !0;
|
|
701
701
|
}
|
|
702
|
-
}) : i.current =
|
|
702
|
+
}) : i.current = p, A(i.current, P), j();
|
|
703
703
|
}
|
|
704
704
|
return s.current.obj = i.current, i.current;
|
|
705
|
-
}, [
|
|
706
|
-
return i.current === void 0 && (i.current =
|
|
705
|
+
}, [y, T, x]);
|
|
706
|
+
return i.current === void 0 && (i.current = M(C)), s.current.obj = i.current, s.current.set = M, s.current.subscribe = m, s.current.unsubscribe = h, /* @__PURE__ */ Tr.jsx(E.Provider, { value: s.current, children: g });
|
|
707
707
|
},
|
|
708
708
|
["children", "onChangeProp", "onChangeReinit", "proxyRef"],
|
|
709
|
-
|
|
709
|
+
E.name + ".Provider"
|
|
710
710
|
);
|
|
711
711
|
}
|
|
712
|
-
function Ar(
|
|
713
|
-
const
|
|
714
|
-
if (
|
|
715
|
-
throw new Error(`No ${
|
|
716
|
-
const
|
|
717
|
-
const
|
|
718
|
-
(
|
|
719
|
-
|
|
712
|
+
function Ar(E, g = [], C, y, T = !0) {
|
|
713
|
+
const R = br(E);
|
|
714
|
+
if (R === void 0)
|
|
715
|
+
throw new Error(`No ${E.name} provider found.`);
|
|
716
|
+
const l = X({ value: R }), i = L((j) => {
|
|
717
|
+
const m = R.subscribe(
|
|
718
|
+
(h, x, A) => {
|
|
719
|
+
l.current = { value: R }, j(), V(C) && C(h, x, A);
|
|
720
720
|
},
|
|
721
|
-
(
|
|
722
|
-
|
|
721
|
+
(h, x) => {
|
|
722
|
+
T && (l.current = { value: R }, j()), V(y) && y(h, x);
|
|
723
723
|
},
|
|
724
|
-
|
|
724
|
+
g
|
|
725
725
|
);
|
|
726
|
-
return () =>
|
|
727
|
-
}),
|
|
728
|
-
|
|
729
|
-
() =>
|
|
730
|
-
() =>
|
|
726
|
+
return () => R.unsubscribe(m);
|
|
727
|
+
}, [g, T, C, y, R]), s = yr(
|
|
728
|
+
i,
|
|
729
|
+
() => l.current,
|
|
730
|
+
() => l.current
|
|
731
731
|
);
|
|
732
732
|
return new Er(
|
|
733
|
-
{ value:
|
|
733
|
+
{ value: s.value.obj, set: s.value.set },
|
|
734
734
|
["value", "set"]
|
|
735
735
|
);
|
|
736
736
|
}
|