@bigbinary/neeto-time-zones 0.5.0 → 0.5.1
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 +7 -7
- package/dist/{index-3103b741.js → index-8bd145b1.js} +1352 -60
- package/dist/index-9da7f148.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +2 -2
- package/dist/react.cjs.js +4 -11
- package/dist/react.es.js +556 -384
- package/dist/style.css +1 -1
- package/package.json +30 -10
- package/dist/index-72a4a60c.cjs +0 -1
package/dist/react.es.js
CHANGED
|
@@ -1,83 +1,8 @@
|
|
|
1
|
-
import { e as Plugin } from "./index-
|
|
1
|
+
import { e as Plugin } from "./index-8bd145b1.js";
|
|
2
2
|
var react = { exports: {} };
|
|
3
3
|
var react_production_min = {};
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(c) Sindre Sorhus
|
|
7
|
-
@license MIT
|
|
8
|
-
*/
|
|
9
|
-
var objectAssign;
|
|
10
|
-
var hasRequiredObjectAssign;
|
|
11
|
-
function requireObjectAssign() {
|
|
12
|
-
if (hasRequiredObjectAssign)
|
|
13
|
-
return objectAssign;
|
|
14
|
-
hasRequiredObjectAssign = 1;
|
|
15
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
16
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
17
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
18
|
-
function toObject(val) {
|
|
19
|
-
if (val === null || val === void 0) {
|
|
20
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
21
|
-
}
|
|
22
|
-
return Object(val);
|
|
23
|
-
}
|
|
24
|
-
function shouldUseNative() {
|
|
25
|
-
try {
|
|
26
|
-
if (!Object.assign) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
var test1 = new String("abc");
|
|
30
|
-
test1[5] = "de";
|
|
31
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
var test2 = {};
|
|
35
|
-
for (var i = 0; i < 10; i++) {
|
|
36
|
-
test2["_" + String.fromCharCode(i)] = i;
|
|
37
|
-
}
|
|
38
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
|
39
|
-
return test2[n];
|
|
40
|
-
});
|
|
41
|
-
if (order2.join("") !== "0123456789") {
|
|
42
|
-
return false;
|
|
43
|
-
}
|
|
44
|
-
var test3 = {};
|
|
45
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
46
|
-
test3[letter] = letter;
|
|
47
|
-
});
|
|
48
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
49
|
-
return false;
|
|
50
|
-
}
|
|
51
|
-
return true;
|
|
52
|
-
} catch (err) {
|
|
53
|
-
return false;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
57
|
-
var from;
|
|
58
|
-
var to = toObject(target);
|
|
59
|
-
var symbols;
|
|
60
|
-
for (var s = 1; s < arguments.length; s++) {
|
|
61
|
-
from = Object(arguments[s]);
|
|
62
|
-
for (var key in from) {
|
|
63
|
-
if (hasOwnProperty.call(from, key)) {
|
|
64
|
-
to[key] = from[key];
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
if (getOwnPropertySymbols) {
|
|
68
|
-
symbols = getOwnPropertySymbols(from);
|
|
69
|
-
for (var i = 0; i < symbols.length; i++) {
|
|
70
|
-
if (propIsEnumerable.call(from, symbols[i])) {
|
|
71
|
-
to[symbols[i]] = from[symbols[i]];
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return to;
|
|
77
|
-
};
|
|
78
|
-
return objectAssign;
|
|
79
|
-
}
|
|
80
|
-
/** @license React v17.0.2
|
|
4
|
+
/**
|
|
5
|
+
* @license React
|
|
81
6
|
* react.production.min.js
|
|
82
7
|
*
|
|
83
8
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -90,97 +15,71 @@ function requireReact_production_min() {
|
|
|
90
15
|
if (hasRequiredReact_production_min)
|
|
91
16
|
return react_production_min;
|
|
92
17
|
hasRequiredReact_production_min = 1;
|
|
93
|
-
var l =
|
|
94
|
-
|
|
95
|
-
react_production_min.StrictMode = 60108;
|
|
96
|
-
react_production_min.Profiler = 60114;
|
|
97
|
-
var q = 60109, r = 60110, t = 60112;
|
|
98
|
-
react_production_min.Suspense = 60113;
|
|
99
|
-
var u = 60115, v = 60116;
|
|
100
|
-
if ("function" === typeof Symbol && Symbol.for) {
|
|
101
|
-
var w = Symbol.for;
|
|
102
|
-
n = w("react.element");
|
|
103
|
-
p = w("react.portal");
|
|
104
|
-
react_production_min.Fragment = w("react.fragment");
|
|
105
|
-
react_production_min.StrictMode = w("react.strict_mode");
|
|
106
|
-
react_production_min.Profiler = w("react.profiler");
|
|
107
|
-
q = w("react.provider");
|
|
108
|
-
r = w("react.context");
|
|
109
|
-
t = w("react.forward_ref");
|
|
110
|
-
react_production_min.Suspense = w("react.suspense");
|
|
111
|
-
u = w("react.memo");
|
|
112
|
-
v = w("react.lazy");
|
|
113
|
-
}
|
|
114
|
-
var x = "function" === typeof Symbol && Symbol.iterator;
|
|
115
|
-
function y(a) {
|
|
18
|
+
var l = Symbol.for("react.element"), n = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), q = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), u = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), x = Symbol.for("react.memo"), y = Symbol.for("react.lazy"), z = Symbol.iterator;
|
|
19
|
+
function A(a) {
|
|
116
20
|
if (null === a || "object" !== typeof a)
|
|
117
21
|
return null;
|
|
118
|
-
a =
|
|
22
|
+
a = z && a[z] || a["@@iterator"];
|
|
119
23
|
return "function" === typeof a ? a : null;
|
|
120
24
|
}
|
|
121
|
-
function
|
|
122
|
-
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++)
|
|
123
|
-
b += "&args[]=" + encodeURIComponent(arguments[c]);
|
|
124
|
-
return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
125
|
-
}
|
|
126
|
-
var A = { isMounted: function() {
|
|
25
|
+
var B = { isMounted: function() {
|
|
127
26
|
return false;
|
|
128
27
|
}, enqueueForceUpdate: function() {
|
|
129
28
|
}, enqueueReplaceState: function() {
|
|
130
29
|
}, enqueueSetState: function() {
|
|
131
|
-
} },
|
|
132
|
-
function
|
|
30
|
+
} }, C = Object.assign, D = {};
|
|
31
|
+
function E(a, b, e) {
|
|
133
32
|
this.props = a;
|
|
134
33
|
this.context = b;
|
|
135
|
-
this.refs =
|
|
136
|
-
this.updater =
|
|
34
|
+
this.refs = D;
|
|
35
|
+
this.updater = e || B;
|
|
137
36
|
}
|
|
138
|
-
|
|
139
|
-
|
|
37
|
+
E.prototype.isReactComponent = {};
|
|
38
|
+
E.prototype.setState = function(a, b) {
|
|
140
39
|
if ("object" !== typeof a && "function" !== typeof a && null != a)
|
|
141
|
-
throw Error(
|
|
40
|
+
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
142
41
|
this.updater.enqueueSetState(this, a, b, "setState");
|
|
143
42
|
};
|
|
144
|
-
|
|
43
|
+
E.prototype.forceUpdate = function(a) {
|
|
145
44
|
this.updater.enqueueForceUpdate(this, a, "forceUpdate");
|
|
146
45
|
};
|
|
147
|
-
function
|
|
46
|
+
function F() {
|
|
148
47
|
}
|
|
149
|
-
|
|
150
|
-
function
|
|
48
|
+
F.prototype = E.prototype;
|
|
49
|
+
function G(a, b, e) {
|
|
151
50
|
this.props = a;
|
|
152
51
|
this.context = b;
|
|
153
|
-
this.refs =
|
|
154
|
-
this.updater =
|
|
52
|
+
this.refs = D;
|
|
53
|
+
this.updater = e || B;
|
|
155
54
|
}
|
|
156
|
-
var
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
var
|
|
161
|
-
function
|
|
162
|
-
var
|
|
55
|
+
var H = G.prototype = new F();
|
|
56
|
+
H.constructor = G;
|
|
57
|
+
C(H, E.prototype);
|
|
58
|
+
H.isPureReactComponent = true;
|
|
59
|
+
var I = Array.isArray, J = Object.prototype.hasOwnProperty, K = { current: null }, L = { key: true, ref: true, __self: true, __source: true };
|
|
60
|
+
function M(a, b, e) {
|
|
61
|
+
var d, c = {}, k = null, h2 = null;
|
|
163
62
|
if (null != b)
|
|
164
|
-
for (
|
|
165
|
-
|
|
63
|
+
for (d in void 0 !== b.ref && (h2 = b.ref), void 0 !== b.key && (k = "" + b.key), b)
|
|
64
|
+
J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
|
|
166
65
|
var g = arguments.length - 2;
|
|
167
66
|
if (1 === g)
|
|
168
|
-
|
|
67
|
+
c.children = e;
|
|
169
68
|
else if (1 < g) {
|
|
170
69
|
for (var f = Array(g), m = 0; m < g; m++)
|
|
171
70
|
f[m] = arguments[m + 2];
|
|
172
|
-
|
|
71
|
+
c.children = f;
|
|
173
72
|
}
|
|
174
73
|
if (a && a.defaultProps)
|
|
175
|
-
for (
|
|
176
|
-
void 0 === d
|
|
177
|
-
return { $$typeof:
|
|
74
|
+
for (d in g = a.defaultProps, g)
|
|
75
|
+
void 0 === c[d] && (c[d] = g[d]);
|
|
76
|
+
return { $$typeof: l, type: a, key: k, ref: h2, props: c, _owner: K.current };
|
|
178
77
|
}
|
|
179
|
-
function
|
|
180
|
-
return { $$typeof:
|
|
78
|
+
function N(a, b) {
|
|
79
|
+
return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
|
|
181
80
|
}
|
|
182
|
-
function
|
|
183
|
-
return "object" === typeof a && null !== a && a.$$typeof ===
|
|
81
|
+
function O(a) {
|
|
82
|
+
return "object" === typeof a && null !== a && a.$$typeof === l;
|
|
184
83
|
}
|
|
185
84
|
function escape(a) {
|
|
186
85
|
var b = { "=": "=0", ":": "=2" };
|
|
@@ -188,11 +87,11 @@ function requireReact_production_min() {
|
|
|
188
87
|
return b[a2];
|
|
189
88
|
});
|
|
190
89
|
}
|
|
191
|
-
var
|
|
192
|
-
function
|
|
90
|
+
var P = /\/+/g;
|
|
91
|
+
function Q(a, b) {
|
|
193
92
|
return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
|
|
194
93
|
}
|
|
195
|
-
function
|
|
94
|
+
function R(a, b, e, d, c) {
|
|
196
95
|
var k = typeof a;
|
|
197
96
|
if ("undefined" === k || "boolean" === k)
|
|
198
97
|
a = null;
|
|
@@ -207,124 +106,114 @@ function requireReact_production_min() {
|
|
|
207
106
|
break;
|
|
208
107
|
case "object":
|
|
209
108
|
switch (a.$$typeof) {
|
|
109
|
+
case l:
|
|
210
110
|
case n:
|
|
211
|
-
case p:
|
|
212
111
|
h2 = true;
|
|
213
112
|
}
|
|
214
113
|
}
|
|
215
114
|
if (h2)
|
|
216
|
-
return h2 = a,
|
|
115
|
+
return h2 = a, c = c(h2), a = "" === d ? "." + Q(h2, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
|
|
217
116
|
return a2;
|
|
218
|
-
})) : null !=
|
|
117
|
+
})) : null != c && (O(c) && (c = N(c, e + (!c.key || h2 && h2.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
|
|
219
118
|
h2 = 0;
|
|
220
|
-
|
|
221
|
-
if (
|
|
119
|
+
d = "" === d ? "." : d + ":";
|
|
120
|
+
if (I(a))
|
|
222
121
|
for (var g = 0; g < a.length; g++) {
|
|
223
122
|
k = a[g];
|
|
224
|
-
var f =
|
|
225
|
-
h2 +=
|
|
123
|
+
var f = d + Q(k, g);
|
|
124
|
+
h2 += R(k, b, e, f, c);
|
|
226
125
|
}
|
|
227
|
-
else if (f =
|
|
126
|
+
else if (f = A(a), "function" === typeof f)
|
|
228
127
|
for (a = f.call(a), g = 0; !(k = a.next()).done; )
|
|
229
|
-
k = k.value, f =
|
|
128
|
+
k = k.value, f = d + Q(k, g++), h2 += R(k, b, e, f, c);
|
|
230
129
|
else if ("object" === k)
|
|
231
|
-
throw b = "
|
|
130
|
+
throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
|
|
232
131
|
return h2;
|
|
233
132
|
}
|
|
234
|
-
function
|
|
133
|
+
function S(a, b, e) {
|
|
235
134
|
if (null == a)
|
|
236
135
|
return a;
|
|
237
|
-
var
|
|
238
|
-
|
|
239
|
-
return b.call(
|
|
136
|
+
var d = [], c = 0;
|
|
137
|
+
R(a, d, "", "", function(a2) {
|
|
138
|
+
return b.call(e, a2, c++);
|
|
240
139
|
});
|
|
241
|
-
return
|
|
140
|
+
return d;
|
|
242
141
|
}
|
|
243
|
-
function
|
|
142
|
+
function T(a) {
|
|
244
143
|
if (-1 === a._status) {
|
|
245
144
|
var b = a._result;
|
|
246
145
|
b = b();
|
|
247
|
-
a._status = 0;
|
|
248
|
-
a._result = b;
|
|
249
146
|
b.then(function(b2) {
|
|
250
|
-
0 === a._status
|
|
147
|
+
if (0 === a._status || -1 === a._status)
|
|
148
|
+
a._status = 1, a._result = b2;
|
|
251
149
|
}, function(b2) {
|
|
252
|
-
0 === a._status
|
|
150
|
+
if (0 === a._status || -1 === a._status)
|
|
151
|
+
a._status = 2, a._result = b2;
|
|
253
152
|
});
|
|
153
|
+
-1 === a._status && (a._status = 0, a._result = b);
|
|
254
154
|
}
|
|
255
155
|
if (1 === a._status)
|
|
256
|
-
return a._result;
|
|
156
|
+
return a._result.default;
|
|
257
157
|
throw a._result;
|
|
258
158
|
}
|
|
259
|
-
var
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
if (null === a)
|
|
263
|
-
throw Error(z(321));
|
|
264
|
-
return a;
|
|
265
|
-
}
|
|
266
|
-
var T = { ReactCurrentDispatcher: R, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: G, IsSomeRendererActing: { current: false }, assign: l };
|
|
267
|
-
react_production_min.Children = { map: P, forEach: function(a, b, c) {
|
|
268
|
-
P(a, function() {
|
|
159
|
+
var U = { current: null }, V = { transition: null }, W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
|
|
160
|
+
react_production_min.Children = { map: S, forEach: function(a, b, e) {
|
|
161
|
+
S(a, function() {
|
|
269
162
|
b.apply(this, arguments);
|
|
270
|
-
},
|
|
163
|
+
}, e);
|
|
271
164
|
}, count: function(a) {
|
|
272
165
|
var b = 0;
|
|
273
|
-
|
|
166
|
+
S(a, function() {
|
|
274
167
|
b++;
|
|
275
168
|
});
|
|
276
169
|
return b;
|
|
277
170
|
}, toArray: function(a) {
|
|
278
|
-
return
|
|
171
|
+
return S(a, function(a2) {
|
|
279
172
|
return a2;
|
|
280
173
|
}) || [];
|
|
281
174
|
}, only: function(a) {
|
|
282
|
-
if (!
|
|
283
|
-
throw Error(
|
|
175
|
+
if (!O(a))
|
|
176
|
+
throw Error("React.Children.only expected to receive a single React element child.");
|
|
284
177
|
return a;
|
|
285
178
|
} };
|
|
286
|
-
react_production_min.Component =
|
|
287
|
-
react_production_min.
|
|
288
|
-
react_production_min.
|
|
289
|
-
react_production_min.
|
|
179
|
+
react_production_min.Component = E;
|
|
180
|
+
react_production_min.Fragment = p;
|
|
181
|
+
react_production_min.Profiler = r;
|
|
182
|
+
react_production_min.PureComponent = G;
|
|
183
|
+
react_production_min.StrictMode = q;
|
|
184
|
+
react_production_min.Suspense = w;
|
|
185
|
+
react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
|
|
186
|
+
react_production_min.cloneElement = function(a, b, e) {
|
|
290
187
|
if (null === a || void 0 === a)
|
|
291
|
-
throw Error(
|
|
292
|
-
var
|
|
188
|
+
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
|
|
189
|
+
var d = C({}, a.props), c = a.key, k = a.ref, h2 = a._owner;
|
|
293
190
|
if (null != b) {
|
|
294
|
-
void 0 !== b.ref && (k = b.ref, h2 =
|
|
295
|
-
void 0 !== b.key && (
|
|
191
|
+
void 0 !== b.ref && (k = b.ref, h2 = K.current);
|
|
192
|
+
void 0 !== b.key && (c = "" + b.key);
|
|
296
193
|
if (a.type && a.type.defaultProps)
|
|
297
194
|
var g = a.type.defaultProps;
|
|
298
195
|
for (f in b)
|
|
299
|
-
|
|
196
|
+
J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
|
|
300
197
|
}
|
|
301
198
|
var f = arguments.length - 2;
|
|
302
199
|
if (1 === f)
|
|
303
|
-
|
|
200
|
+
d.children = e;
|
|
304
201
|
else if (1 < f) {
|
|
305
202
|
g = Array(f);
|
|
306
203
|
for (var m = 0; m < f; m++)
|
|
307
204
|
g[m] = arguments[m + 2];
|
|
308
|
-
|
|
205
|
+
d.children = g;
|
|
309
206
|
}
|
|
310
|
-
return {
|
|
311
|
-
$$typeof: n,
|
|
312
|
-
type: a.type,
|
|
313
|
-
key: d,
|
|
314
|
-
ref: k,
|
|
315
|
-
props: e,
|
|
316
|
-
_owner: h2
|
|
317
|
-
};
|
|
207
|
+
return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h2 };
|
|
318
208
|
};
|
|
319
|
-
react_production_min.createContext = function(a
|
|
320
|
-
|
|
321
|
-
a = { $$typeof:
|
|
322
|
-
a.Provider = { $$typeof: q, _context: a };
|
|
209
|
+
react_production_min.createContext = function(a) {
|
|
210
|
+
a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
|
|
211
|
+
a.Provider = { $$typeof: t, _context: a };
|
|
323
212
|
return a.Consumer = a;
|
|
324
213
|
};
|
|
325
|
-
react_production_min.createElement =
|
|
214
|
+
react_production_min.createElement = M;
|
|
326
215
|
react_production_min.createFactory = function(a) {
|
|
327
|
-
var b =
|
|
216
|
+
var b = M.bind(null, a);
|
|
328
217
|
b.type = a;
|
|
329
218
|
return b;
|
|
330
219
|
};
|
|
@@ -332,49 +221,77 @@ function requireReact_production_min() {
|
|
|
332
221
|
return { current: null };
|
|
333
222
|
};
|
|
334
223
|
react_production_min.forwardRef = function(a) {
|
|
335
|
-
return { $$typeof:
|
|
224
|
+
return { $$typeof: v, render: a };
|
|
336
225
|
};
|
|
337
|
-
react_production_min.isValidElement =
|
|
226
|
+
react_production_min.isValidElement = O;
|
|
338
227
|
react_production_min.lazy = function(a) {
|
|
339
|
-
return { $$typeof:
|
|
228
|
+
return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
|
|
340
229
|
};
|
|
341
230
|
react_production_min.memo = function(a, b) {
|
|
342
|
-
return { $$typeof:
|
|
231
|
+
return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
|
|
232
|
+
};
|
|
233
|
+
react_production_min.startTransition = function(a) {
|
|
234
|
+
var b = V.transition;
|
|
235
|
+
V.transition = {};
|
|
236
|
+
try {
|
|
237
|
+
a();
|
|
238
|
+
} finally {
|
|
239
|
+
V.transition = b;
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
react_production_min.unstable_act = function() {
|
|
243
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
343
244
|
};
|
|
344
245
|
react_production_min.useCallback = function(a, b) {
|
|
345
|
-
return
|
|
246
|
+
return U.current.useCallback(a, b);
|
|
346
247
|
};
|
|
347
|
-
react_production_min.useContext = function(a
|
|
348
|
-
return
|
|
248
|
+
react_production_min.useContext = function(a) {
|
|
249
|
+
return U.current.useContext(a);
|
|
349
250
|
};
|
|
350
251
|
react_production_min.useDebugValue = function() {
|
|
351
252
|
};
|
|
253
|
+
react_production_min.useDeferredValue = function(a) {
|
|
254
|
+
return U.current.useDeferredValue(a);
|
|
255
|
+
};
|
|
352
256
|
react_production_min.useEffect = function(a, b) {
|
|
353
|
-
return
|
|
257
|
+
return U.current.useEffect(a, b);
|
|
354
258
|
};
|
|
355
|
-
react_production_min.
|
|
356
|
-
return
|
|
259
|
+
react_production_min.useId = function() {
|
|
260
|
+
return U.current.useId();
|
|
261
|
+
};
|
|
262
|
+
react_production_min.useImperativeHandle = function(a, b, e) {
|
|
263
|
+
return U.current.useImperativeHandle(a, b, e);
|
|
264
|
+
};
|
|
265
|
+
react_production_min.useInsertionEffect = function(a, b) {
|
|
266
|
+
return U.current.useInsertionEffect(a, b);
|
|
357
267
|
};
|
|
358
268
|
react_production_min.useLayoutEffect = function(a, b) {
|
|
359
|
-
return
|
|
269
|
+
return U.current.useLayoutEffect(a, b);
|
|
360
270
|
};
|
|
361
271
|
react_production_min.useMemo = function(a, b) {
|
|
362
|
-
return
|
|
272
|
+
return U.current.useMemo(a, b);
|
|
363
273
|
};
|
|
364
|
-
react_production_min.useReducer = function(a, b,
|
|
365
|
-
return
|
|
274
|
+
react_production_min.useReducer = function(a, b, e) {
|
|
275
|
+
return U.current.useReducer(a, b, e);
|
|
366
276
|
};
|
|
367
277
|
react_production_min.useRef = function(a) {
|
|
368
|
-
return
|
|
278
|
+
return U.current.useRef(a);
|
|
369
279
|
};
|
|
370
280
|
react_production_min.useState = function(a) {
|
|
371
|
-
return
|
|
281
|
+
return U.current.useState(a);
|
|
282
|
+
};
|
|
283
|
+
react_production_min.useSyncExternalStore = function(a, b, e) {
|
|
284
|
+
return U.current.useSyncExternalStore(a, b, e);
|
|
372
285
|
};
|
|
373
|
-
react_production_min.
|
|
286
|
+
react_production_min.useTransition = function() {
|
|
287
|
+
return U.current.useTransition();
|
|
288
|
+
};
|
|
289
|
+
react_production_min.version = "18.2.0";
|
|
374
290
|
return react_production_min;
|
|
375
291
|
}
|
|
376
|
-
var react_development = {};
|
|
377
|
-
/**
|
|
292
|
+
var react_development = { exports: {} };
|
|
293
|
+
/**
|
|
294
|
+
* @license React
|
|
378
295
|
* react.development.js
|
|
379
296
|
*
|
|
380
297
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -382,57 +299,33 @@ var react_development = {};
|
|
|
382
299
|
* This source code is licensed under the MIT license found in the
|
|
383
300
|
* LICENSE file in the root directory of this source tree.
|
|
384
301
|
*/
|
|
302
|
+
react_development.exports;
|
|
385
303
|
var hasRequiredReact_development;
|
|
386
304
|
function requireReact_development() {
|
|
387
305
|
if (hasRequiredReact_development)
|
|
388
|
-
return react_development;
|
|
306
|
+
return react_development.exports;
|
|
389
307
|
hasRequiredReact_development = 1;
|
|
390
|
-
(function(exports) {
|
|
308
|
+
(function(module, exports) {
|
|
391
309
|
if (process.env.NODE_ENV !== "production") {
|
|
392
310
|
(function() {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
var
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
var
|
|
401
|
-
var
|
|
402
|
-
var
|
|
403
|
-
|
|
404
|
-
var
|
|
405
|
-
var
|
|
406
|
-
var
|
|
407
|
-
var
|
|
408
|
-
var
|
|
409
|
-
var
|
|
410
|
-
var
|
|
411
|
-
var REACT_LEGACY_HIDDEN_TYPE = 60131;
|
|
412
|
-
if (typeof Symbol === "function" && Symbol.for) {
|
|
413
|
-
var symbolFor = Symbol.for;
|
|
414
|
-
REACT_ELEMENT_TYPE = symbolFor("react.element");
|
|
415
|
-
REACT_PORTAL_TYPE = symbolFor("react.portal");
|
|
416
|
-
exports.Fragment = symbolFor("react.fragment");
|
|
417
|
-
exports.StrictMode = symbolFor("react.strict_mode");
|
|
418
|
-
exports.Profiler = symbolFor("react.profiler");
|
|
419
|
-
REACT_PROVIDER_TYPE = symbolFor("react.provider");
|
|
420
|
-
REACT_CONTEXT_TYPE = symbolFor("react.context");
|
|
421
|
-
REACT_FORWARD_REF_TYPE = symbolFor("react.forward_ref");
|
|
422
|
-
exports.Suspense = symbolFor("react.suspense");
|
|
423
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor("react.suspense_list");
|
|
424
|
-
REACT_MEMO_TYPE = symbolFor("react.memo");
|
|
425
|
-
REACT_LAZY_TYPE = symbolFor("react.lazy");
|
|
426
|
-
REACT_BLOCK_TYPE = symbolFor("react.block");
|
|
427
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor("react.server.block");
|
|
428
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor("react.fundamental");
|
|
429
|
-
symbolFor("react.scope");
|
|
430
|
-
symbolFor("react.opaque.id");
|
|
431
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor("react.debug_trace_mode");
|
|
432
|
-
symbolFor("react.offscreen");
|
|
433
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor("react.legacy_hidden");
|
|
434
|
-
}
|
|
435
|
-
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
311
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
312
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
313
|
+
}
|
|
314
|
+
var ReactVersion = "18.2.0";
|
|
315
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
316
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
317
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
318
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
319
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
320
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
321
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
322
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
323
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
324
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
325
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
326
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
327
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
328
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
436
329
|
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
437
330
|
function getIteratorFn(maybeIterable) {
|
|
438
331
|
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
@@ -452,7 +345,13 @@ function requireReact_development() {
|
|
|
452
345
|
current: null
|
|
453
346
|
};
|
|
454
347
|
var ReactCurrentBatchConfig = {
|
|
455
|
-
transition:
|
|
348
|
+
transition: null
|
|
349
|
+
};
|
|
350
|
+
var ReactCurrentActQueue = {
|
|
351
|
+
current: null,
|
|
352
|
+
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
353
|
+
isBatchingLegacy: false,
|
|
354
|
+
didScheduleLegacyUpdate: false
|
|
456
355
|
};
|
|
457
356
|
var ReactCurrentOwner = {
|
|
458
357
|
/**
|
|
@@ -487,34 +386,38 @@ function requireReact_development() {
|
|
|
487
386
|
return stack;
|
|
488
387
|
};
|
|
489
388
|
}
|
|
490
|
-
var
|
|
491
|
-
|
|
492
|
-
|
|
389
|
+
var enableScopeAPI = false;
|
|
390
|
+
var enableCacheElement = false;
|
|
391
|
+
var enableTransitionTracing = false;
|
|
392
|
+
var enableLegacyHidden = false;
|
|
393
|
+
var enableDebugTracing = false;
|
|
493
394
|
var ReactSharedInternals = {
|
|
494
395
|
ReactCurrentDispatcher,
|
|
495
396
|
ReactCurrentBatchConfig,
|
|
496
|
-
ReactCurrentOwner
|
|
497
|
-
IsSomeRendererActing,
|
|
498
|
-
// Used by renderers to avoid bundling object-assign twice in UMD bundles:
|
|
499
|
-
assign: _assign
|
|
397
|
+
ReactCurrentOwner
|
|
500
398
|
};
|
|
501
399
|
{
|
|
502
400
|
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
401
|
+
ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
|
|
503
402
|
}
|
|
504
403
|
function warn(format) {
|
|
505
404
|
{
|
|
506
|
-
|
|
507
|
-
args
|
|
405
|
+
{
|
|
406
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
407
|
+
args[_key - 1] = arguments[_key];
|
|
408
|
+
}
|
|
409
|
+
printWarning("warn", format, args);
|
|
508
410
|
}
|
|
509
|
-
printWarning("warn", format, args);
|
|
510
411
|
}
|
|
511
412
|
}
|
|
512
413
|
function error(format) {
|
|
513
414
|
{
|
|
514
|
-
|
|
515
|
-
args
|
|
415
|
+
{
|
|
416
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
417
|
+
args[_key2 - 1] = arguments[_key2];
|
|
418
|
+
}
|
|
419
|
+
printWarning("error", format, args);
|
|
516
420
|
}
|
|
517
|
-
printWarning("error", format, args);
|
|
518
421
|
}
|
|
519
422
|
}
|
|
520
423
|
function printWarning(level, format, args) {
|
|
@@ -526,7 +429,7 @@ function requireReact_development() {
|
|
|
526
429
|
args = args.concat([stack]);
|
|
527
430
|
}
|
|
528
431
|
var argsWithFormat = args.map(function(item) {
|
|
529
|
-
return
|
|
432
|
+
return String(item);
|
|
530
433
|
});
|
|
531
434
|
argsWithFormat.unshift("Warning: " + format);
|
|
532
435
|
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
@@ -606,6 +509,7 @@ function requireReact_development() {
|
|
|
606
509
|
warnNoop(publicInstance, "setState");
|
|
607
510
|
}
|
|
608
511
|
};
|
|
512
|
+
var assign = Object.assign;
|
|
609
513
|
var emptyObject = {};
|
|
610
514
|
{
|
|
611
515
|
Object.freeze(emptyObject);
|
|
@@ -618,10 +522,8 @@ function requireReact_development() {
|
|
|
618
522
|
}
|
|
619
523
|
Component.prototype.isReactComponent = {};
|
|
620
524
|
Component.prototype.setState = function(partialState, callback) {
|
|
621
|
-
if (
|
|
622
|
-
|
|
623
|
-
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
624
|
-
}
|
|
525
|
+
if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
|
|
526
|
+
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
625
527
|
}
|
|
626
528
|
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
627
529
|
};
|
|
@@ -658,7 +560,7 @@ function requireReact_development() {
|
|
|
658
560
|
}
|
|
659
561
|
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
660
562
|
pureComponentPrototype.constructor = PureComponent;
|
|
661
|
-
|
|
563
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
662
564
|
pureComponentPrototype.isPureReactComponent = true;
|
|
663
565
|
function createRef() {
|
|
664
566
|
var refObject = {
|
|
@@ -669,20 +571,56 @@ function requireReact_development() {
|
|
|
669
571
|
}
|
|
670
572
|
return refObject;
|
|
671
573
|
}
|
|
574
|
+
var isArrayImpl = Array.isArray;
|
|
575
|
+
function isArray(a) {
|
|
576
|
+
return isArrayImpl(a);
|
|
577
|
+
}
|
|
578
|
+
function typeName(value) {
|
|
579
|
+
{
|
|
580
|
+
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
581
|
+
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
582
|
+
return type;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
function willCoercionThrow(value) {
|
|
586
|
+
{
|
|
587
|
+
try {
|
|
588
|
+
testStringCoercion(value);
|
|
589
|
+
return false;
|
|
590
|
+
} catch (e) {
|
|
591
|
+
return true;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
function testStringCoercion(value) {
|
|
596
|
+
return "" + value;
|
|
597
|
+
}
|
|
598
|
+
function checkKeyStringCoercion(value) {
|
|
599
|
+
{
|
|
600
|
+
if (willCoercionThrow(value)) {
|
|
601
|
+
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
602
|
+
return testStringCoercion(value);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
672
606
|
function getWrappedName(outerType, innerType, wrapperName) {
|
|
607
|
+
var displayName = outerType.displayName;
|
|
608
|
+
if (displayName) {
|
|
609
|
+
return displayName;
|
|
610
|
+
}
|
|
673
611
|
var functionName = innerType.displayName || innerType.name || "";
|
|
674
|
-
return
|
|
612
|
+
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
675
613
|
}
|
|
676
614
|
function getContextName(type) {
|
|
677
615
|
return type.displayName || "Context";
|
|
678
616
|
}
|
|
679
|
-
function
|
|
617
|
+
function getComponentNameFromType(type) {
|
|
680
618
|
if (type == null) {
|
|
681
619
|
return null;
|
|
682
620
|
}
|
|
683
621
|
{
|
|
684
622
|
if (typeof type.tag === "number") {
|
|
685
|
-
error("Received an unexpected object in
|
|
623
|
+
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
686
624
|
}
|
|
687
625
|
}
|
|
688
626
|
if (typeof type === "function") {
|
|
@@ -692,15 +630,15 @@ function requireReact_development() {
|
|
|
692
630
|
return type;
|
|
693
631
|
}
|
|
694
632
|
switch (type) {
|
|
695
|
-
case
|
|
633
|
+
case REACT_FRAGMENT_TYPE:
|
|
696
634
|
return "Fragment";
|
|
697
635
|
case REACT_PORTAL_TYPE:
|
|
698
636
|
return "Portal";
|
|
699
|
-
case
|
|
637
|
+
case REACT_PROFILER_TYPE:
|
|
700
638
|
return "Profiler";
|
|
701
|
-
case
|
|
639
|
+
case REACT_STRICT_MODE_TYPE:
|
|
702
640
|
return "StrictMode";
|
|
703
|
-
case
|
|
641
|
+
case REACT_SUSPENSE_TYPE:
|
|
704
642
|
return "Suspense";
|
|
705
643
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
706
644
|
return "SuspenseList";
|
|
@@ -716,15 +654,17 @@ function requireReact_development() {
|
|
|
716
654
|
case REACT_FORWARD_REF_TYPE:
|
|
717
655
|
return getWrappedName(type, type.render, "ForwardRef");
|
|
718
656
|
case REACT_MEMO_TYPE:
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
657
|
+
var outerName = type.displayName || null;
|
|
658
|
+
if (outerName !== null) {
|
|
659
|
+
return outerName;
|
|
660
|
+
}
|
|
661
|
+
return getComponentNameFromType(type.type) || "Memo";
|
|
722
662
|
case REACT_LAZY_TYPE: {
|
|
723
663
|
var lazyComponent = type;
|
|
724
664
|
var payload = lazyComponent._payload;
|
|
725
665
|
var init = lazyComponent._init;
|
|
726
666
|
try {
|
|
727
|
-
return
|
|
667
|
+
return getComponentNameFromType(init(payload));
|
|
728
668
|
} catch (x) {
|
|
729
669
|
return null;
|
|
730
670
|
}
|
|
@@ -799,7 +739,7 @@ function requireReact_development() {
|
|
|
799
739
|
function warnIfStringRefCannotBeAutoConverted(config) {
|
|
800
740
|
{
|
|
801
741
|
if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
|
|
802
|
-
var componentName =
|
|
742
|
+
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
803
743
|
if (!didWarnAboutStringRefs[componentName]) {
|
|
804
744
|
error('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', componentName, config.ref);
|
|
805
745
|
didWarnAboutStringRefs[componentName] = true;
|
|
@@ -861,6 +801,9 @@ function requireReact_development() {
|
|
|
861
801
|
}
|
|
862
802
|
}
|
|
863
803
|
if (hasValidKey(config)) {
|
|
804
|
+
{
|
|
805
|
+
checkKeyStringCoercion(config.key);
|
|
806
|
+
}
|
|
864
807
|
key = "" + config.key;
|
|
865
808
|
}
|
|
866
809
|
self = config.__self === void 0 ? null : config.__self;
|
|
@@ -912,13 +855,11 @@ function requireReact_development() {
|
|
|
912
855
|
return newElement;
|
|
913
856
|
}
|
|
914
857
|
function cloneElement(element, config, children) {
|
|
915
|
-
if (
|
|
916
|
-
|
|
917
|
-
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
918
|
-
}
|
|
858
|
+
if (element === null || element === void 0) {
|
|
859
|
+
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
919
860
|
}
|
|
920
861
|
var propName;
|
|
921
|
-
var props =
|
|
862
|
+
var props = assign({}, element.props);
|
|
922
863
|
var key = element.key;
|
|
923
864
|
var ref = element.ref;
|
|
924
865
|
var self = element._self;
|
|
@@ -930,6 +871,9 @@ function requireReact_development() {
|
|
|
930
871
|
owner = ReactCurrentOwner.current;
|
|
931
872
|
}
|
|
932
873
|
if (hasValidKey(config)) {
|
|
874
|
+
{
|
|
875
|
+
checkKeyStringCoercion(config.key);
|
|
876
|
+
}
|
|
933
877
|
key = "" + config.key;
|
|
934
878
|
}
|
|
935
879
|
var defaultProps;
|
|
@@ -981,6 +925,9 @@ function requireReact_development() {
|
|
|
981
925
|
}
|
|
982
926
|
function getElementKey(element, index) {
|
|
983
927
|
if (typeof element === "object" && element !== null && element.key != null) {
|
|
928
|
+
{
|
|
929
|
+
checkKeyStringCoercion(element.key);
|
|
930
|
+
}
|
|
984
931
|
return escape("" + element.key);
|
|
985
932
|
}
|
|
986
933
|
return index.toString(36);
|
|
@@ -1011,7 +958,7 @@ function requireReact_development() {
|
|
|
1011
958
|
var _child = children;
|
|
1012
959
|
var mappedChild = callback(_child);
|
|
1013
960
|
var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
|
|
1014
|
-
if (
|
|
961
|
+
if (isArray(mappedChild)) {
|
|
1015
962
|
var escapedChildKey = "";
|
|
1016
963
|
if (childKey != null) {
|
|
1017
964
|
escapedChildKey = escapeUserProvidedKey(childKey) + "/";
|
|
@@ -1021,6 +968,11 @@ function requireReact_development() {
|
|
|
1021
968
|
});
|
|
1022
969
|
} else if (mappedChild != null) {
|
|
1023
970
|
if (isValidElement(mappedChild)) {
|
|
971
|
+
{
|
|
972
|
+
if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
|
|
973
|
+
checkKeyStringCoercion(mappedChild.key);
|
|
974
|
+
}
|
|
975
|
+
}
|
|
1024
976
|
mappedChild = cloneAndReplaceKey(
|
|
1025
977
|
mappedChild,
|
|
1026
978
|
// Keep both the (mapped) and old keys if they differ, just as
|
|
@@ -1028,6 +980,7 @@ function requireReact_development() {
|
|
|
1028
980
|
escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
1029
981
|
(mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
|
|
1030
982
|
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
983
|
+
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
1031
984
|
escapeUserProvidedKey("" + mappedChild.key) + "/"
|
|
1032
985
|
) : "") + childKey
|
|
1033
986
|
);
|
|
@@ -1040,7 +993,7 @@ function requireReact_development() {
|
|
|
1040
993
|
var nextName;
|
|
1041
994
|
var subtreeCount = 0;
|
|
1042
995
|
var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
1043
|
-
if (
|
|
996
|
+
if (isArray(children)) {
|
|
1044
997
|
for (var i = 0; i < children.length; i++) {
|
|
1045
998
|
child = children[i];
|
|
1046
999
|
nextName = nextNamePrefix + getElementKey(child, i);
|
|
@@ -1067,12 +1020,8 @@ function requireReact_development() {
|
|
|
1067
1020
|
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
1068
1021
|
}
|
|
1069
1022
|
} else if (type === "object") {
|
|
1070
|
-
var childrenString =
|
|
1071
|
-
{
|
|
1072
|
-
{
|
|
1073
|
-
throw Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1023
|
+
var childrenString = String(children);
|
|
1024
|
+
throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
|
|
1076
1025
|
}
|
|
1077
1026
|
}
|
|
1078
1027
|
return subtreeCount;
|
|
@@ -1107,25 +1056,13 @@ function requireReact_development() {
|
|
|
1107
1056
|
}
|
|
1108
1057
|
function onlyChild(children) {
|
|
1109
1058
|
if (!isValidElement(children)) {
|
|
1110
|
-
|
|
1111
|
-
throw Error("React.Children.only expected to receive a single React element child.");
|
|
1112
|
-
}
|
|
1059
|
+
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
1113
1060
|
}
|
|
1114
1061
|
return children;
|
|
1115
1062
|
}
|
|
1116
|
-
function createContext(defaultValue
|
|
1117
|
-
if (calculateChangedBits === void 0) {
|
|
1118
|
-
calculateChangedBits = null;
|
|
1119
|
-
} else {
|
|
1120
|
-
{
|
|
1121
|
-
if (calculateChangedBits !== null && typeof calculateChangedBits !== "function") {
|
|
1122
|
-
error("createContext: Expected the optional second argument to be a function. Instead received: %s", calculateChangedBits);
|
|
1123
|
-
}
|
|
1124
|
-
}
|
|
1125
|
-
}
|
|
1063
|
+
function createContext(defaultValue) {
|
|
1126
1064
|
var context = {
|
|
1127
1065
|
$$typeof: REACT_CONTEXT_TYPE,
|
|
1128
|
-
_calculateChangedBits: calculateChangedBits,
|
|
1129
1066
|
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1130
1067
|
// some renderers as primary and others as secondary. We only expect
|
|
1131
1068
|
// there to be two concurrent renderers at most: React Native (primary) and
|
|
@@ -1138,7 +1075,10 @@ function requireReact_development() {
|
|
|
1138
1075
|
_threadCount: 0,
|
|
1139
1076
|
// These are circular
|
|
1140
1077
|
Provider: null,
|
|
1141
|
-
Consumer: null
|
|
1078
|
+
Consumer: null,
|
|
1079
|
+
// Add these to use same hidden class in VM as ServerContext
|
|
1080
|
+
_defaultValue: null,
|
|
1081
|
+
_globalName: null
|
|
1142
1082
|
};
|
|
1143
1083
|
context.Provider = {
|
|
1144
1084
|
$$typeof: REACT_PROVIDER_TYPE,
|
|
@@ -1150,8 +1090,7 @@ function requireReact_development() {
|
|
|
1150
1090
|
{
|
|
1151
1091
|
var Consumer = {
|
|
1152
1092
|
$$typeof: REACT_CONTEXT_TYPE,
|
|
1153
|
-
_context: context
|
|
1154
|
-
_calculateChangedBits: context._calculateChangedBits
|
|
1093
|
+
_context: context
|
|
1155
1094
|
};
|
|
1156
1095
|
Object.defineProperties(Consumer, {
|
|
1157
1096
|
Provider: {
|
|
@@ -1227,31 +1166,38 @@ function requireReact_development() {
|
|
|
1227
1166
|
if (payload._status === Uninitialized) {
|
|
1228
1167
|
var ctor = payload._result;
|
|
1229
1168
|
var thenable = ctor();
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
pending._result = thenable;
|
|
1233
|
-
thenable.then(function(moduleObject) {
|
|
1234
|
-
if (payload._status === Pending) {
|
|
1235
|
-
var defaultExport = moduleObject.default;
|
|
1236
|
-
{
|
|
1237
|
-
if (defaultExport === void 0) {
|
|
1238
|
-
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
|
|
1239
|
-
}
|
|
1240
|
-
}
|
|
1169
|
+
thenable.then(function(moduleObject2) {
|
|
1170
|
+
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1241
1171
|
var resolved = payload;
|
|
1242
1172
|
resolved._status = Resolved;
|
|
1243
|
-
resolved._result =
|
|
1173
|
+
resolved._result = moduleObject2;
|
|
1244
1174
|
}
|
|
1245
1175
|
}, function(error2) {
|
|
1246
|
-
if (payload._status === Pending) {
|
|
1176
|
+
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1247
1177
|
var rejected = payload;
|
|
1248
1178
|
rejected._status = Rejected;
|
|
1249
1179
|
rejected._result = error2;
|
|
1250
1180
|
}
|
|
1251
1181
|
});
|
|
1182
|
+
if (payload._status === Uninitialized) {
|
|
1183
|
+
var pending = payload;
|
|
1184
|
+
pending._status = Pending;
|
|
1185
|
+
pending._result = thenable;
|
|
1186
|
+
}
|
|
1252
1187
|
}
|
|
1253
1188
|
if (payload._status === Resolved) {
|
|
1254
|
-
|
|
1189
|
+
var moduleObject = payload._result;
|
|
1190
|
+
{
|
|
1191
|
+
if (moduleObject === void 0) {
|
|
1192
|
+
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
{
|
|
1196
|
+
if (!("default" in moduleObject)) {
|
|
1197
|
+
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
return moduleObject.default;
|
|
1255
1201
|
} else {
|
|
1256
1202
|
throw payload._result;
|
|
1257
1203
|
}
|
|
@@ -1259,7 +1205,7 @@ function requireReact_development() {
|
|
|
1259
1205
|
function lazy(ctor) {
|
|
1260
1206
|
var payload = {
|
|
1261
1207
|
// We use these fields to store the result.
|
|
1262
|
-
_status:
|
|
1208
|
+
_status: Uninitialized,
|
|
1263
1209
|
_result: ctor
|
|
1264
1210
|
};
|
|
1265
1211
|
var lazyType = {
|
|
@@ -1332,7 +1278,7 @@ function requireReact_development() {
|
|
|
1332
1278
|
},
|
|
1333
1279
|
set: function(name) {
|
|
1334
1280
|
ownName = name;
|
|
1335
|
-
if (render.
|
|
1281
|
+
if (!render.name && !render.displayName) {
|
|
1336
1282
|
render.displayName = name;
|
|
1337
1283
|
}
|
|
1338
1284
|
}
|
|
@@ -1340,16 +1286,23 @@ function requireReact_development() {
|
|
|
1340
1286
|
}
|
|
1341
1287
|
return elementType;
|
|
1342
1288
|
}
|
|
1343
|
-
var
|
|
1289
|
+
var REACT_MODULE_REFERENCE;
|
|
1290
|
+
{
|
|
1291
|
+
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
1292
|
+
}
|
|
1344
1293
|
function isValidElementType(type) {
|
|
1345
1294
|
if (typeof type === "string" || typeof type === "function") {
|
|
1346
1295
|
return true;
|
|
1347
1296
|
}
|
|
1348
|
-
if (type ===
|
|
1297
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
1349
1298
|
return true;
|
|
1350
1299
|
}
|
|
1351
1300
|
if (typeof type === "object" && type !== null) {
|
|
1352
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
|
1301
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
1302
|
+
// types supported by any Flight configuration anywhere since
|
|
1303
|
+
// we don't know which Flight build this will end up being used
|
|
1304
|
+
// with.
|
|
1305
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
1353
1306
|
return true;
|
|
1354
1307
|
}
|
|
1355
1308
|
}
|
|
@@ -1376,7 +1329,7 @@ function requireReact_development() {
|
|
|
1376
1329
|
},
|
|
1377
1330
|
set: function(name) {
|
|
1378
1331
|
ownName = name;
|
|
1379
|
-
if (type.
|
|
1332
|
+
if (!type.name && !type.displayName) {
|
|
1380
1333
|
type.displayName = name;
|
|
1381
1334
|
}
|
|
1382
1335
|
}
|
|
@@ -1386,19 +1339,16 @@ function requireReact_development() {
|
|
|
1386
1339
|
}
|
|
1387
1340
|
function resolveDispatcher() {
|
|
1388
1341
|
var dispatcher = ReactCurrentDispatcher.current;
|
|
1389
|
-
|
|
1390
|
-
{
|
|
1391
|
-
|
|
1342
|
+
{
|
|
1343
|
+
if (dispatcher === null) {
|
|
1344
|
+
error("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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
|
|
1392
1345
|
}
|
|
1393
1346
|
}
|
|
1394
1347
|
return dispatcher;
|
|
1395
1348
|
}
|
|
1396
|
-
function useContext(Context
|
|
1349
|
+
function useContext(Context) {
|
|
1397
1350
|
var dispatcher = resolveDispatcher();
|
|
1398
1351
|
{
|
|
1399
|
-
if (unstable_observedBits !== void 0) {
|
|
1400
|
-
error("useContext() second argument is reserved for future use in React. Passing it is not supported. You passed: %s.%s", unstable_observedBits, typeof unstable_observedBits === "number" && Array.isArray(arguments[2]) ? "\n\nDid you call array.map(useContext)? Calling Hooks inside a loop is not supported. Learn more at https://reactjs.org/link/rules-of-hooks" : "");
|
|
1401
|
-
}
|
|
1402
1352
|
if (Context._context !== void 0) {
|
|
1403
1353
|
var realContext = Context._context;
|
|
1404
1354
|
if (realContext.Consumer === Context) {
|
|
@@ -1408,7 +1358,7 @@ function requireReact_development() {
|
|
|
1408
1358
|
}
|
|
1409
1359
|
}
|
|
1410
1360
|
}
|
|
1411
|
-
return dispatcher.useContext(Context
|
|
1361
|
+
return dispatcher.useContext(Context);
|
|
1412
1362
|
}
|
|
1413
1363
|
function useState(initialState) {
|
|
1414
1364
|
var dispatcher = resolveDispatcher();
|
|
@@ -1426,6 +1376,10 @@ function requireReact_development() {
|
|
|
1426
1376
|
var dispatcher = resolveDispatcher();
|
|
1427
1377
|
return dispatcher.useEffect(create, deps);
|
|
1428
1378
|
}
|
|
1379
|
+
function useInsertionEffect(create, deps) {
|
|
1380
|
+
var dispatcher = resolveDispatcher();
|
|
1381
|
+
return dispatcher.useInsertionEffect(create, deps);
|
|
1382
|
+
}
|
|
1429
1383
|
function useLayoutEffect(create, deps) {
|
|
1430
1384
|
var dispatcher = resolveDispatcher();
|
|
1431
1385
|
return dispatcher.useLayoutEffect(create, deps);
|
|
@@ -1448,6 +1402,22 @@ function requireReact_development() {
|
|
|
1448
1402
|
return dispatcher.useDebugValue(value, formatterFn);
|
|
1449
1403
|
}
|
|
1450
1404
|
}
|
|
1405
|
+
function useTransition() {
|
|
1406
|
+
var dispatcher = resolveDispatcher();
|
|
1407
|
+
return dispatcher.useTransition();
|
|
1408
|
+
}
|
|
1409
|
+
function useDeferredValue(value) {
|
|
1410
|
+
var dispatcher = resolveDispatcher();
|
|
1411
|
+
return dispatcher.useDeferredValue(value);
|
|
1412
|
+
}
|
|
1413
|
+
function useId() {
|
|
1414
|
+
var dispatcher = resolveDispatcher();
|
|
1415
|
+
return dispatcher.useId();
|
|
1416
|
+
}
|
|
1417
|
+
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
1418
|
+
var dispatcher = resolveDispatcher();
|
|
1419
|
+
return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
1420
|
+
}
|
|
1451
1421
|
var disabledDepth = 0;
|
|
1452
1422
|
var prevLog;
|
|
1453
1423
|
var prevInfo;
|
|
@@ -1498,25 +1468,25 @@ function requireReact_development() {
|
|
|
1498
1468
|
writable: true
|
|
1499
1469
|
};
|
|
1500
1470
|
Object.defineProperties(console, {
|
|
1501
|
-
log:
|
|
1471
|
+
log: assign({}, props, {
|
|
1502
1472
|
value: prevLog
|
|
1503
1473
|
}),
|
|
1504
|
-
info:
|
|
1474
|
+
info: assign({}, props, {
|
|
1505
1475
|
value: prevInfo
|
|
1506
1476
|
}),
|
|
1507
|
-
warn:
|
|
1477
|
+
warn: assign({}, props, {
|
|
1508
1478
|
value: prevWarn
|
|
1509
1479
|
}),
|
|
1510
|
-
error:
|
|
1480
|
+
error: assign({}, props, {
|
|
1511
1481
|
value: prevError
|
|
1512
1482
|
}),
|
|
1513
|
-
group:
|
|
1483
|
+
group: assign({}, props, {
|
|
1514
1484
|
value: prevGroup
|
|
1515
1485
|
}),
|
|
1516
|
-
groupCollapsed:
|
|
1486
|
+
groupCollapsed: assign({}, props, {
|
|
1517
1487
|
value: prevGroupCollapsed
|
|
1518
1488
|
}),
|
|
1519
|
-
groupEnd:
|
|
1489
|
+
groupEnd: assign({}, props, {
|
|
1520
1490
|
value: prevGroupEnd
|
|
1521
1491
|
})
|
|
1522
1492
|
});
|
|
@@ -1617,6 +1587,9 @@ function requireReact_development() {
|
|
|
1617
1587
|
c--;
|
|
1618
1588
|
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
1619
1589
|
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
1590
|
+
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
1591
|
+
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
1592
|
+
}
|
|
1620
1593
|
{
|
|
1621
1594
|
if (typeof fn === "function") {
|
|
1622
1595
|
componentFrameCache.set(fn, _frame);
|
|
@@ -1669,7 +1642,7 @@ function requireReact_development() {
|
|
|
1669
1642
|
return describeBuiltInComponentFrame(type);
|
|
1670
1643
|
}
|
|
1671
1644
|
switch (type) {
|
|
1672
|
-
case
|
|
1645
|
+
case REACT_SUSPENSE_TYPE:
|
|
1673
1646
|
return describeBuiltInComponentFrame("Suspense");
|
|
1674
1647
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
1675
1648
|
return describeBuiltInComponentFrame("SuspenseList");
|
|
@@ -1680,8 +1653,6 @@ function requireReact_development() {
|
|
|
1680
1653
|
return describeFunctionComponentFrame(type.render);
|
|
1681
1654
|
case REACT_MEMO_TYPE:
|
|
1682
1655
|
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
1683
|
-
case REACT_BLOCK_TYPE:
|
|
1684
|
-
return describeFunctionComponentFrame(type._render);
|
|
1685
1656
|
case REACT_LAZY_TYPE: {
|
|
1686
1657
|
var lazyComponent = type;
|
|
1687
1658
|
var payload = lazyComponent._payload;
|
|
@@ -1710,7 +1681,7 @@ function requireReact_development() {
|
|
|
1710
1681
|
}
|
|
1711
1682
|
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
1712
1683
|
{
|
|
1713
|
-
var has = Function.call.bind(
|
|
1684
|
+
var has = Function.call.bind(hasOwnProperty);
|
|
1714
1685
|
for (var typeSpecName in typeSpecs) {
|
|
1715
1686
|
if (has(typeSpecs, typeSpecName)) {
|
|
1716
1687
|
var error$1 = void 0;
|
|
@@ -1756,7 +1727,7 @@ function requireReact_development() {
|
|
|
1756
1727
|
}
|
|
1757
1728
|
function getDeclarationErrorAddendum() {
|
|
1758
1729
|
if (ReactCurrentOwner.current) {
|
|
1759
|
-
var name =
|
|
1730
|
+
var name = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
1760
1731
|
if (name) {
|
|
1761
1732
|
return "\n\nCheck the render method of `" + name + "`.";
|
|
1762
1733
|
}
|
|
@@ -1800,7 +1771,7 @@ function requireReact_development() {
|
|
|
1800
1771
|
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
1801
1772
|
var childOwner = "";
|
|
1802
1773
|
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
1803
|
-
childOwner = " It was passed a child from " +
|
|
1774
|
+
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
1804
1775
|
}
|
|
1805
1776
|
{
|
|
1806
1777
|
setCurrentlyValidatingElement$1(element);
|
|
@@ -1812,7 +1783,7 @@ function requireReact_development() {
|
|
|
1812
1783
|
if (typeof node !== "object") {
|
|
1813
1784
|
return;
|
|
1814
1785
|
}
|
|
1815
|
-
if (
|
|
1786
|
+
if (isArray(node)) {
|
|
1816
1787
|
for (var i = 0; i < node.length; i++) {
|
|
1817
1788
|
var child = node[i];
|
|
1818
1789
|
if (isValidElement(child)) {
|
|
@@ -1855,11 +1826,11 @@ function requireReact_development() {
|
|
|
1855
1826
|
return;
|
|
1856
1827
|
}
|
|
1857
1828
|
if (propTypes) {
|
|
1858
|
-
var name =
|
|
1829
|
+
var name = getComponentNameFromType(type);
|
|
1859
1830
|
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
1860
1831
|
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
1861
1832
|
propTypesMisspellWarningShown = true;
|
|
1862
|
-
var _name =
|
|
1833
|
+
var _name = getComponentNameFromType(type);
|
|
1863
1834
|
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
1864
1835
|
}
|
|
1865
1836
|
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
@@ -1902,10 +1873,10 @@ function requireReact_development() {
|
|
|
1902
1873
|
var typeString;
|
|
1903
1874
|
if (type === null) {
|
|
1904
1875
|
typeString = "null";
|
|
1905
|
-
} else if (
|
|
1876
|
+
} else if (isArray(type)) {
|
|
1906
1877
|
typeString = "array";
|
|
1907
1878
|
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
1908
|
-
typeString = "<" + (
|
|
1879
|
+
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
1909
1880
|
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
1910
1881
|
} else {
|
|
1911
1882
|
typeString = typeof type;
|
|
@@ -1923,7 +1894,7 @@ function requireReact_development() {
|
|
|
1923
1894
|
validateChildKeys(arguments[i], type);
|
|
1924
1895
|
}
|
|
1925
1896
|
}
|
|
1926
|
-
if (type ===
|
|
1897
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
1927
1898
|
validateFragmentProps(element);
|
|
1928
1899
|
} else {
|
|
1929
1900
|
validatePropTypes(element);
|
|
@@ -1960,12 +1931,194 @@ function requireReact_development() {
|
|
|
1960
1931
|
validatePropTypes(newElement);
|
|
1961
1932
|
return newElement;
|
|
1962
1933
|
}
|
|
1963
|
-
{
|
|
1934
|
+
function startTransition(scope, options) {
|
|
1935
|
+
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
1936
|
+
ReactCurrentBatchConfig.transition = {};
|
|
1937
|
+
var currentTransition = ReactCurrentBatchConfig.transition;
|
|
1938
|
+
{
|
|
1939
|
+
ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1940
|
+
}
|
|
1964
1941
|
try {
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1942
|
+
scope();
|
|
1943
|
+
} finally {
|
|
1944
|
+
ReactCurrentBatchConfig.transition = prevTransition;
|
|
1945
|
+
{
|
|
1946
|
+
if (prevTransition === null && currentTransition._updatedFibers) {
|
|
1947
|
+
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
1948
|
+
if (updatedFibersCount > 10) {
|
|
1949
|
+
warn("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.");
|
|
1950
|
+
}
|
|
1951
|
+
currentTransition._updatedFibers.clear();
|
|
1952
|
+
}
|
|
1953
|
+
}
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
var didWarnAboutMessageChannel = false;
|
|
1957
|
+
var enqueueTaskImpl = null;
|
|
1958
|
+
function enqueueTask(task) {
|
|
1959
|
+
if (enqueueTaskImpl === null) {
|
|
1960
|
+
try {
|
|
1961
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
1962
|
+
var nodeRequire = module && module[requireString];
|
|
1963
|
+
enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate;
|
|
1964
|
+
} catch (_err) {
|
|
1965
|
+
enqueueTaskImpl = function(callback) {
|
|
1966
|
+
{
|
|
1967
|
+
if (didWarnAboutMessageChannel === false) {
|
|
1968
|
+
didWarnAboutMessageChannel = true;
|
|
1969
|
+
if (typeof MessageChannel === "undefined") {
|
|
1970
|
+
error("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.");
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
var channel = new MessageChannel();
|
|
1975
|
+
channel.port1.onmessage = callback;
|
|
1976
|
+
channel.port2.postMessage(void 0);
|
|
1977
|
+
};
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
return enqueueTaskImpl(task);
|
|
1981
|
+
}
|
|
1982
|
+
var actScopeDepth = 0;
|
|
1983
|
+
var didWarnNoAwaitAct = false;
|
|
1984
|
+
function act(callback) {
|
|
1985
|
+
{
|
|
1986
|
+
var prevActScopeDepth = actScopeDepth;
|
|
1987
|
+
actScopeDepth++;
|
|
1988
|
+
if (ReactCurrentActQueue.current === null) {
|
|
1989
|
+
ReactCurrentActQueue.current = [];
|
|
1990
|
+
}
|
|
1991
|
+
var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
|
|
1992
|
+
var result;
|
|
1993
|
+
try {
|
|
1994
|
+
ReactCurrentActQueue.isBatchingLegacy = true;
|
|
1995
|
+
result = callback();
|
|
1996
|
+
if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
|
|
1997
|
+
var queue = ReactCurrentActQueue.current;
|
|
1998
|
+
if (queue !== null) {
|
|
1999
|
+
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
|
|
2000
|
+
flushActQueue(queue);
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
} catch (error2) {
|
|
2004
|
+
popActScope(prevActScopeDepth);
|
|
2005
|
+
throw error2;
|
|
2006
|
+
} finally {
|
|
2007
|
+
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
|
|
2008
|
+
}
|
|
2009
|
+
if (result !== null && typeof result === "object" && typeof result.then === "function") {
|
|
2010
|
+
var thenableResult = result;
|
|
2011
|
+
var wasAwaited = false;
|
|
2012
|
+
var thenable = {
|
|
2013
|
+
then: function(resolve, reject) {
|
|
2014
|
+
wasAwaited = true;
|
|
2015
|
+
thenableResult.then(function(returnValue2) {
|
|
2016
|
+
popActScope(prevActScopeDepth);
|
|
2017
|
+
if (actScopeDepth === 0) {
|
|
2018
|
+
recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
|
|
2019
|
+
} else {
|
|
2020
|
+
resolve(returnValue2);
|
|
2021
|
+
}
|
|
2022
|
+
}, function(error2) {
|
|
2023
|
+
popActScope(prevActScopeDepth);
|
|
2024
|
+
reject(error2);
|
|
2025
|
+
});
|
|
2026
|
+
}
|
|
2027
|
+
};
|
|
2028
|
+
{
|
|
2029
|
+
if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
|
|
2030
|
+
Promise.resolve().then(function() {
|
|
2031
|
+
}).then(function() {
|
|
2032
|
+
if (!wasAwaited) {
|
|
2033
|
+
didWarnNoAwaitAct = true;
|
|
2034
|
+
error("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 () => ...);");
|
|
2035
|
+
}
|
|
2036
|
+
});
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
return thenable;
|
|
2040
|
+
} else {
|
|
2041
|
+
var returnValue = result;
|
|
2042
|
+
popActScope(prevActScopeDepth);
|
|
2043
|
+
if (actScopeDepth === 0) {
|
|
2044
|
+
var _queue = ReactCurrentActQueue.current;
|
|
2045
|
+
if (_queue !== null) {
|
|
2046
|
+
flushActQueue(_queue);
|
|
2047
|
+
ReactCurrentActQueue.current = null;
|
|
2048
|
+
}
|
|
2049
|
+
var _thenable = {
|
|
2050
|
+
then: function(resolve, reject) {
|
|
2051
|
+
if (ReactCurrentActQueue.current === null) {
|
|
2052
|
+
ReactCurrentActQueue.current = [];
|
|
2053
|
+
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2054
|
+
} else {
|
|
2055
|
+
resolve(returnValue);
|
|
2056
|
+
}
|
|
2057
|
+
}
|
|
2058
|
+
};
|
|
2059
|
+
return _thenable;
|
|
2060
|
+
} else {
|
|
2061
|
+
var _thenable2 = {
|
|
2062
|
+
then: function(resolve, reject) {
|
|
2063
|
+
resolve(returnValue);
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
return _thenable2;
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
function popActScope(prevActScopeDepth) {
|
|
2072
|
+
{
|
|
2073
|
+
if (prevActScopeDepth !== actScopeDepth - 1) {
|
|
2074
|
+
error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
2075
|
+
}
|
|
2076
|
+
actScopeDepth = prevActScopeDepth;
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
2080
|
+
{
|
|
2081
|
+
var queue = ReactCurrentActQueue.current;
|
|
2082
|
+
if (queue !== null) {
|
|
2083
|
+
try {
|
|
2084
|
+
flushActQueue(queue);
|
|
2085
|
+
enqueueTask(function() {
|
|
2086
|
+
if (queue.length === 0) {
|
|
2087
|
+
ReactCurrentActQueue.current = null;
|
|
2088
|
+
resolve(returnValue);
|
|
2089
|
+
} else {
|
|
2090
|
+
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2091
|
+
}
|
|
2092
|
+
});
|
|
2093
|
+
} catch (error2) {
|
|
2094
|
+
reject(error2);
|
|
2095
|
+
}
|
|
2096
|
+
} else {
|
|
2097
|
+
resolve(returnValue);
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
var isFlushing = false;
|
|
2102
|
+
function flushActQueue(queue) {
|
|
2103
|
+
{
|
|
2104
|
+
if (!isFlushing) {
|
|
2105
|
+
isFlushing = true;
|
|
2106
|
+
var i = 0;
|
|
2107
|
+
try {
|
|
2108
|
+
for (; i < queue.length; i++) {
|
|
2109
|
+
var callback = queue[i];
|
|
2110
|
+
do {
|
|
2111
|
+
callback = callback(true);
|
|
2112
|
+
} while (callback !== null);
|
|
2113
|
+
}
|
|
2114
|
+
queue.length = 0;
|
|
2115
|
+
} catch (error2) {
|
|
2116
|
+
queue = queue.slice(i + 1);
|
|
2117
|
+
throw error2;
|
|
2118
|
+
} finally {
|
|
2119
|
+
isFlushing = false;
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
1969
2122
|
}
|
|
1970
2123
|
}
|
|
1971
2124
|
var createElement$1 = createElementWithValidation;
|
|
@@ -1980,7 +2133,11 @@ function requireReact_development() {
|
|
|
1980
2133
|
};
|
|
1981
2134
|
exports.Children = Children;
|
|
1982
2135
|
exports.Component = Component;
|
|
2136
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
2137
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
1983
2138
|
exports.PureComponent = PureComponent;
|
|
2139
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2140
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
1984
2141
|
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
1985
2142
|
exports.cloneElement = cloneElement$1;
|
|
1986
2143
|
exports.createContext = createContext;
|
|
@@ -1991,21 +2148,31 @@ function requireReact_development() {
|
|
|
1991
2148
|
exports.isValidElement = isValidElement;
|
|
1992
2149
|
exports.lazy = lazy;
|
|
1993
2150
|
exports.memo = memo;
|
|
2151
|
+
exports.startTransition = startTransition;
|
|
2152
|
+
exports.unstable_act = act;
|
|
1994
2153
|
exports.useCallback = useCallback;
|
|
1995
2154
|
exports.useContext = useContext;
|
|
1996
2155
|
exports.useDebugValue = useDebugValue;
|
|
2156
|
+
exports.useDeferredValue = useDeferredValue;
|
|
1997
2157
|
exports.useEffect = useEffect;
|
|
2158
|
+
exports.useId = useId;
|
|
1998
2159
|
exports.useImperativeHandle = useImperativeHandle;
|
|
2160
|
+
exports.useInsertionEffect = useInsertionEffect;
|
|
1999
2161
|
exports.useLayoutEffect = useLayoutEffect;
|
|
2000
2162
|
exports.useMemo = useMemo;
|
|
2001
2163
|
exports.useReducer = useReducer;
|
|
2002
2164
|
exports.useRef = useRef;
|
|
2003
2165
|
exports.useState = useState;
|
|
2166
|
+
exports.useSyncExternalStore = useSyncExternalStore;
|
|
2167
|
+
exports.useTransition = useTransition;
|
|
2004
2168
|
exports.version = ReactVersion;
|
|
2169
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
2170
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2171
|
+
}
|
|
2005
2172
|
})();
|
|
2006
2173
|
}
|
|
2007
|
-
})(react_development);
|
|
2008
|
-
return react_development;
|
|
2174
|
+
})(react_development, react_development.exports);
|
|
2175
|
+
return react_development.exports;
|
|
2009
2176
|
}
|
|
2010
2177
|
if (process.env.NODE_ENV === "production") {
|
|
2011
2178
|
react.exports = requireReact_production_min();
|
|
@@ -2020,7 +2187,12 @@ function NeetoTimezoneSelector(options = {}) {
|
|
|
2020
2187
|
new Plugin(node, options);
|
|
2021
2188
|
}
|
|
2022
2189
|
}, []);
|
|
2023
|
-
return /* @__PURE__ */ h(
|
|
2190
|
+
return /* @__PURE__ */ h(
|
|
2191
|
+
"div",
|
|
2192
|
+
{
|
|
2193
|
+
...{ id, ref }
|
|
2194
|
+
}
|
|
2195
|
+
);
|
|
2024
2196
|
}
|
|
2025
2197
|
export {
|
|
2026
2198
|
NeetoTimezoneSelector as default
|