@wrdagency/react-islands 0.1.1 → 0.1.2
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1622 -2992
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1622 -2992
- package/dist/index.mjs.map +1 -1
- package/dist/server.js +1600 -2970
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +1624 -2994
- package/dist/server.mjs.map +1 -1
- package/package.json +3 -3
- package/src/index.tsx +3 -1
package/dist/index.mjs
CHANGED
|
@@ -38,300 +38,457 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
38
38
|
mod
|
|
39
39
|
));
|
|
40
40
|
|
|
41
|
-
// node_modules/react/cjs/react.production.
|
|
42
|
-
var
|
|
43
|
-
"node_modules/react/cjs/react.production.
|
|
41
|
+
// node_modules/react/cjs/react.production.js
|
|
42
|
+
var require_react_production = __commonJS({
|
|
43
|
+
"node_modules/react/cjs/react.production.js"(exports) {
|
|
44
44
|
"use strict";
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
52
|
-
var
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
function
|
|
58
|
-
if (null ===
|
|
45
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
46
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
47
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
48
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
49
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
50
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
51
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
52
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
53
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
54
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
55
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
56
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
57
|
+
function getIteratorFn(maybeIterable) {
|
|
58
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
59
59
|
return null;
|
|
60
|
-
|
|
61
|
-
return "function" === typeof
|
|
60
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
61
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
62
62
|
}
|
|
63
|
-
var
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
63
|
+
var ReactNoopUpdateQueue = {
|
|
64
|
+
isMounted: function() {
|
|
65
|
+
return false;
|
|
66
|
+
},
|
|
67
|
+
enqueueForceUpdate: function() {
|
|
68
|
+
},
|
|
69
|
+
enqueueReplaceState: function() {
|
|
70
|
+
},
|
|
71
|
+
enqueueSetState: function() {
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var assign = Object.assign;
|
|
75
|
+
var emptyObject = {};
|
|
76
|
+
function Component(props, context, updater) {
|
|
77
|
+
this.props = props;
|
|
78
|
+
this.context = context;
|
|
79
|
+
this.refs = emptyObject;
|
|
80
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
76
81
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
if ("object" !== typeof
|
|
80
|
-
throw Error(
|
|
81
|
-
|
|
82
|
+
Component.prototype.isReactComponent = {};
|
|
83
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
84
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
85
|
+
throw Error(
|
|
86
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
87
|
+
);
|
|
88
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
82
89
|
};
|
|
83
|
-
|
|
84
|
-
this.updater.enqueueForceUpdate(this,
|
|
90
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
91
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
85
92
|
};
|
|
86
|
-
function
|
|
93
|
+
function ComponentDummy() {
|
|
87
94
|
}
|
|
88
|
-
|
|
89
|
-
function
|
|
90
|
-
this.props =
|
|
91
|
-
this.context =
|
|
92
|
-
this.refs =
|
|
93
|
-
this.updater =
|
|
95
|
+
ComponentDummy.prototype = Component.prototype;
|
|
96
|
+
function PureComponent(props, context, updater) {
|
|
97
|
+
this.props = props;
|
|
98
|
+
this.context = context;
|
|
99
|
+
this.refs = emptyObject;
|
|
100
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
94
101
|
}
|
|
95
|
-
var
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
var
|
|
100
|
-
var
|
|
101
|
-
var
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
else if (1 < g) {
|
|
112
|
-
for (var f = Array(g), m = 0; m < g; m++)
|
|
113
|
-
f[m] = arguments[m + 2];
|
|
114
|
-
c.children = f;
|
|
115
|
-
}
|
|
116
|
-
if (a && a.defaultProps)
|
|
117
|
-
for (d in g = a.defaultProps, g)
|
|
118
|
-
void 0 === c[d] && (c[d] = g[d]);
|
|
119
|
-
return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
|
|
102
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
103
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
104
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
105
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
106
|
+
var isArrayImpl = Array.isArray;
|
|
107
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
|
|
108
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
109
|
+
function ReactElement(type, key, self, source, owner, props) {
|
|
110
|
+
self = props.ref;
|
|
111
|
+
return {
|
|
112
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
113
|
+
type,
|
|
114
|
+
key,
|
|
115
|
+
ref: void 0 !== self ? self : null,
|
|
116
|
+
props
|
|
117
|
+
};
|
|
120
118
|
}
|
|
121
|
-
function
|
|
122
|
-
return
|
|
119
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
120
|
+
return ReactElement(
|
|
121
|
+
oldElement.type,
|
|
122
|
+
newKey,
|
|
123
|
+
void 0,
|
|
124
|
+
void 0,
|
|
125
|
+
void 0,
|
|
126
|
+
oldElement.props
|
|
127
|
+
);
|
|
123
128
|
}
|
|
124
|
-
function
|
|
125
|
-
return "object" === typeof
|
|
129
|
+
function isValidElement(object) {
|
|
130
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
126
131
|
}
|
|
127
|
-
function escape(
|
|
128
|
-
var
|
|
129
|
-
return "$" +
|
|
130
|
-
return
|
|
132
|
+
function escape(key) {
|
|
133
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
134
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
135
|
+
return escaperLookup[match];
|
|
131
136
|
});
|
|
132
137
|
}
|
|
133
|
-
var
|
|
134
|
-
function
|
|
135
|
-
return "object" === typeof
|
|
138
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
139
|
+
function getElementKey(element, index) {
|
|
140
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
141
|
+
}
|
|
142
|
+
function noop$1() {
|
|
136
143
|
}
|
|
137
|
-
function
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
+
function resolveThenable(thenable) {
|
|
145
|
+
switch (thenable.status) {
|
|
146
|
+
case "fulfilled":
|
|
147
|
+
return thenable.value;
|
|
148
|
+
case "rejected":
|
|
149
|
+
throw thenable.reason;
|
|
150
|
+
default:
|
|
151
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
152
|
+
function(fulfilledValue) {
|
|
153
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
154
|
+
},
|
|
155
|
+
function(error) {
|
|
156
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
157
|
+
}
|
|
158
|
+
)), thenable.status) {
|
|
159
|
+
case "fulfilled":
|
|
160
|
+
return thenable.value;
|
|
161
|
+
case "rejected":
|
|
162
|
+
throw thenable.reason;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
throw thenable;
|
|
166
|
+
}
|
|
167
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
168
|
+
var type = typeof children;
|
|
169
|
+
if ("undefined" === type || "boolean" === type)
|
|
170
|
+
children = null;
|
|
171
|
+
var invokeCallback = false;
|
|
172
|
+
if (null === children)
|
|
173
|
+
invokeCallback = true;
|
|
144
174
|
else
|
|
145
|
-
switch (
|
|
175
|
+
switch (type) {
|
|
176
|
+
case "bigint":
|
|
146
177
|
case "string":
|
|
147
178
|
case "number":
|
|
148
|
-
|
|
179
|
+
invokeCallback = true;
|
|
149
180
|
break;
|
|
150
181
|
case "object":
|
|
151
|
-
switch (
|
|
152
|
-
case
|
|
153
|
-
case
|
|
154
|
-
|
|
182
|
+
switch (children.$$typeof) {
|
|
183
|
+
case REACT_ELEMENT_TYPE:
|
|
184
|
+
case REACT_PORTAL_TYPE:
|
|
185
|
+
invokeCallback = true;
|
|
186
|
+
break;
|
|
187
|
+
case REACT_LAZY_TYPE:
|
|
188
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
189
|
+
invokeCallback(children._payload),
|
|
190
|
+
array,
|
|
191
|
+
escapedPrefix,
|
|
192
|
+
nameSoFar,
|
|
193
|
+
callback
|
|
194
|
+
);
|
|
155
195
|
}
|
|
156
196
|
}
|
|
157
|
-
if (
|
|
158
|
-
return
|
|
159
|
-
return
|
|
160
|
-
})) : null !=
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
for (
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
197
|
+
if (invokeCallback)
|
|
198
|
+
return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
199
|
+
return c;
|
|
200
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
201
|
+
callback,
|
|
202
|
+
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
203
|
+
userProvidedKeyEscapeRegex,
|
|
204
|
+
"$&/"
|
|
205
|
+
) + "/") + invokeCallback
|
|
206
|
+
)), array.push(callback)), 1;
|
|
207
|
+
invokeCallback = 0;
|
|
208
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
209
|
+
if (isArrayImpl(children))
|
|
210
|
+
for (var i = 0; i < children.length; i++)
|
|
211
|
+
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
212
|
+
nameSoFar,
|
|
213
|
+
array,
|
|
214
|
+
escapedPrefix,
|
|
215
|
+
type,
|
|
216
|
+
callback
|
|
217
|
+
);
|
|
218
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
219
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
220
|
+
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
221
|
+
nameSoFar,
|
|
222
|
+
array,
|
|
223
|
+
escapedPrefix,
|
|
224
|
+
type,
|
|
225
|
+
callback
|
|
226
|
+
);
|
|
227
|
+
else if ("object" === type) {
|
|
228
|
+
if ("function" === typeof children.then)
|
|
229
|
+
return mapIntoArray(
|
|
230
|
+
resolveThenable(children),
|
|
231
|
+
array,
|
|
232
|
+
escapedPrefix,
|
|
233
|
+
nameSoFar,
|
|
234
|
+
callback
|
|
235
|
+
);
|
|
236
|
+
array = String(children);
|
|
237
|
+
throw Error(
|
|
238
|
+
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
return invokeCallback;
|
|
175
242
|
}
|
|
176
|
-
function
|
|
177
|
-
if (null ==
|
|
178
|
-
return
|
|
179
|
-
var
|
|
180
|
-
|
|
181
|
-
return
|
|
243
|
+
function mapChildren(children, func, context) {
|
|
244
|
+
if (null == children)
|
|
245
|
+
return children;
|
|
246
|
+
var result = [], count = 0;
|
|
247
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
248
|
+
return func.call(context, child, count++);
|
|
182
249
|
});
|
|
183
|
-
return
|
|
250
|
+
return result;
|
|
251
|
+
}
|
|
252
|
+
function lazyInitializer(payload) {
|
|
253
|
+
if (-1 === payload._status) {
|
|
254
|
+
var ctor = payload._result;
|
|
255
|
+
ctor = ctor();
|
|
256
|
+
ctor.then(
|
|
257
|
+
function(moduleObject) {
|
|
258
|
+
if (0 === payload._status || -1 === payload._status)
|
|
259
|
+
payload._status = 1, payload._result = moduleObject;
|
|
260
|
+
},
|
|
261
|
+
function(error) {
|
|
262
|
+
if (0 === payload._status || -1 === payload._status)
|
|
263
|
+
payload._status = 2, payload._result = error;
|
|
264
|
+
}
|
|
265
|
+
);
|
|
266
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
267
|
+
}
|
|
268
|
+
if (1 === payload._status)
|
|
269
|
+
return payload._result.default;
|
|
270
|
+
throw payload._result;
|
|
184
271
|
}
|
|
185
|
-
function
|
|
186
|
-
if (
|
|
187
|
-
var
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}, function(b2) {
|
|
193
|
-
if (0 === a._status || -1 === a._status)
|
|
194
|
-
a._status = 2, a._result = b2;
|
|
272
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
273
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
274
|
+
var event = new window.ErrorEvent("error", {
|
|
275
|
+
bubbles: true,
|
|
276
|
+
cancelable: true,
|
|
277
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
278
|
+
error
|
|
195
279
|
});
|
|
196
|
-
|
|
280
|
+
if (!window.dispatchEvent(event))
|
|
281
|
+
return;
|
|
282
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
283
|
+
process.emit("uncaughtException", error);
|
|
284
|
+
return;
|
|
197
285
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
286
|
+
console.error(error);
|
|
287
|
+
};
|
|
288
|
+
function noop() {
|
|
201
289
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
exports.cloneElement = function(a, b, e) {
|
|
232
|
-
if (null === a || void 0 === a)
|
|
233
|
-
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
|
|
234
|
-
var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
|
|
235
|
-
if (null != b) {
|
|
236
|
-
void 0 !== b.ref && (k = b.ref, h = K.current);
|
|
237
|
-
void 0 !== b.key && (c = "" + b.key);
|
|
238
|
-
if (a.type && a.type.defaultProps)
|
|
239
|
-
var g = a.type.defaultProps;
|
|
240
|
-
for (f in b)
|
|
241
|
-
J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
|
|
290
|
+
exports.Children = {
|
|
291
|
+
map: mapChildren,
|
|
292
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
293
|
+
mapChildren(
|
|
294
|
+
children,
|
|
295
|
+
function() {
|
|
296
|
+
forEachFunc.apply(this, arguments);
|
|
297
|
+
},
|
|
298
|
+
forEachContext
|
|
299
|
+
);
|
|
300
|
+
},
|
|
301
|
+
count: function(children) {
|
|
302
|
+
var n = 0;
|
|
303
|
+
mapChildren(children, function() {
|
|
304
|
+
n++;
|
|
305
|
+
});
|
|
306
|
+
return n;
|
|
307
|
+
},
|
|
308
|
+
toArray: function(children) {
|
|
309
|
+
return mapChildren(children, function(child) {
|
|
310
|
+
return child;
|
|
311
|
+
}) || [];
|
|
312
|
+
},
|
|
313
|
+
only: function(children) {
|
|
314
|
+
if (!isValidElement(children))
|
|
315
|
+
throw Error(
|
|
316
|
+
"React.Children.only expected to receive a single React element child."
|
|
317
|
+
);
|
|
318
|
+
return children;
|
|
242
319
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
320
|
+
};
|
|
321
|
+
exports.Component = Component;
|
|
322
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
323
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
324
|
+
exports.PureComponent = PureComponent;
|
|
325
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
326
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
327
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
328
|
+
exports.__COMPILER_RUNTIME = {
|
|
329
|
+
__proto__: null,
|
|
330
|
+
c: function(size) {
|
|
331
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
exports.cache = function(fn) {
|
|
335
|
+
return function() {
|
|
336
|
+
return fn.apply(null, arguments);
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
exports.cloneElement = function(element, config, children) {
|
|
340
|
+
if (null === element || void 0 === element)
|
|
341
|
+
throw Error(
|
|
342
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
343
|
+
);
|
|
344
|
+
var props = assign({}, element.props), key = element.key, owner = void 0;
|
|
345
|
+
if (null != config)
|
|
346
|
+
for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
|
|
347
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
348
|
+
var propName = arguments.length - 2;
|
|
349
|
+
if (1 === propName)
|
|
350
|
+
props.children = children;
|
|
351
|
+
else if (1 < propName) {
|
|
352
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
353
|
+
childArray[i] = arguments[i + 2];
|
|
354
|
+
props.children = childArray;
|
|
251
355
|
}
|
|
252
|
-
return
|
|
356
|
+
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
|
253
357
|
};
|
|
254
|
-
exports.createContext = function(
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
358
|
+
exports.createContext = function(defaultValue) {
|
|
359
|
+
defaultValue = {
|
|
360
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
361
|
+
_currentValue: defaultValue,
|
|
362
|
+
_currentValue2: defaultValue,
|
|
363
|
+
_threadCount: 0,
|
|
364
|
+
Provider: null,
|
|
365
|
+
Consumer: null
|
|
366
|
+
};
|
|
367
|
+
defaultValue.Provider = defaultValue;
|
|
368
|
+
defaultValue.Consumer = {
|
|
369
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
370
|
+
_context: defaultValue
|
|
371
|
+
};
|
|
372
|
+
return defaultValue;
|
|
258
373
|
};
|
|
259
|
-
exports.createElement =
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
374
|
+
exports.createElement = function(type, config, children) {
|
|
375
|
+
var propName, props = {}, key = null;
|
|
376
|
+
if (null != config)
|
|
377
|
+
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
378
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
379
|
+
var childrenLength = arguments.length - 2;
|
|
380
|
+
if (1 === childrenLength)
|
|
381
|
+
props.children = children;
|
|
382
|
+
else if (1 < childrenLength) {
|
|
383
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
384
|
+
childArray[i] = arguments[i + 2];
|
|
385
|
+
props.children = childArray;
|
|
386
|
+
}
|
|
387
|
+
if (type && type.defaultProps)
|
|
388
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
389
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
390
|
+
return ReactElement(type, key, void 0, void 0, null, props);
|
|
264
391
|
};
|
|
265
392
|
exports.createRef = function() {
|
|
266
393
|
return { current: null };
|
|
267
394
|
};
|
|
268
|
-
exports.forwardRef = function(
|
|
269
|
-
return { $$typeof:
|
|
395
|
+
exports.forwardRef = function(render) {
|
|
396
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
270
397
|
};
|
|
271
|
-
exports.isValidElement =
|
|
272
|
-
exports.lazy = function(
|
|
273
|
-
return {
|
|
398
|
+
exports.isValidElement = isValidElement;
|
|
399
|
+
exports.lazy = function(ctor) {
|
|
400
|
+
return {
|
|
401
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
402
|
+
_payload: { _status: -1, _result: ctor },
|
|
403
|
+
_init: lazyInitializer
|
|
404
|
+
};
|
|
274
405
|
};
|
|
275
|
-
exports.memo = function(
|
|
276
|
-
return {
|
|
406
|
+
exports.memo = function(type, compare) {
|
|
407
|
+
return {
|
|
408
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
409
|
+
type,
|
|
410
|
+
compare: void 0 === compare ? null : compare
|
|
411
|
+
};
|
|
277
412
|
};
|
|
278
|
-
exports.startTransition = function(
|
|
279
|
-
var
|
|
280
|
-
|
|
413
|
+
exports.startTransition = function(scope) {
|
|
414
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
415
|
+
ReactSharedInternals.T = currentTransition;
|
|
281
416
|
try {
|
|
282
|
-
|
|
417
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
418
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
419
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
420
|
+
} catch (error) {
|
|
421
|
+
reportGlobalError(error);
|
|
283
422
|
} finally {
|
|
284
|
-
|
|
423
|
+
ReactSharedInternals.T = prevTransition;
|
|
285
424
|
}
|
|
286
425
|
};
|
|
287
|
-
exports.
|
|
288
|
-
|
|
426
|
+
exports.unstable_useCacheRefresh = function() {
|
|
427
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
428
|
+
};
|
|
429
|
+
exports.use = function(usable) {
|
|
430
|
+
return ReactSharedInternals.H.use(usable);
|
|
289
431
|
};
|
|
290
|
-
exports.
|
|
291
|
-
return
|
|
432
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
433
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
292
434
|
};
|
|
293
|
-
exports.
|
|
294
|
-
return
|
|
435
|
+
exports.useCallback = function(callback, deps) {
|
|
436
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
437
|
+
};
|
|
438
|
+
exports.useContext = function(Context) {
|
|
439
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
295
440
|
};
|
|
296
441
|
exports.useDebugValue = function() {
|
|
297
442
|
};
|
|
298
|
-
exports.useDeferredValue = function(
|
|
299
|
-
return
|
|
443
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
444
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
300
445
|
};
|
|
301
|
-
exports.useEffect = function(
|
|
302
|
-
|
|
446
|
+
exports.useEffect = function(create, createDeps, update) {
|
|
447
|
+
var dispatcher = ReactSharedInternals.H;
|
|
448
|
+
if ("function" === typeof update)
|
|
449
|
+
throw Error(
|
|
450
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
451
|
+
);
|
|
452
|
+
return dispatcher.useEffect(create, createDeps);
|
|
303
453
|
};
|
|
304
454
|
exports.useId = function() {
|
|
305
|
-
return
|
|
455
|
+
return ReactSharedInternals.H.useId();
|
|
456
|
+
};
|
|
457
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
458
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
306
459
|
};
|
|
307
|
-
exports.
|
|
308
|
-
return
|
|
460
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
461
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
309
462
|
};
|
|
310
|
-
exports.
|
|
311
|
-
return
|
|
463
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
464
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
312
465
|
};
|
|
313
|
-
exports.
|
|
314
|
-
return
|
|
466
|
+
exports.useMemo = function(create, deps) {
|
|
467
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
315
468
|
};
|
|
316
|
-
exports.
|
|
317
|
-
return
|
|
469
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
470
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
318
471
|
};
|
|
319
|
-
exports.useReducer = function(
|
|
320
|
-
return
|
|
472
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
473
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
321
474
|
};
|
|
322
|
-
exports.useRef = function(
|
|
323
|
-
return
|
|
475
|
+
exports.useRef = function(initialValue) {
|
|
476
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
324
477
|
};
|
|
325
|
-
exports.useState = function(
|
|
326
|
-
return
|
|
478
|
+
exports.useState = function(initialState) {
|
|
479
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
327
480
|
};
|
|
328
|
-
exports.useSyncExternalStore = function(
|
|
329
|
-
return
|
|
481
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
482
|
+
return ReactSharedInternals.H.useSyncExternalStore(
|
|
483
|
+
subscribe,
|
|
484
|
+
getSnapshot,
|
|
485
|
+
getServerSnapshot
|
|
486
|
+
);
|
|
330
487
|
};
|
|
331
488
|
exports.useTransition = function() {
|
|
332
|
-
return
|
|
489
|
+
return ReactSharedInternals.H.useTransition();
|
|
333
490
|
};
|
|
334
|
-
exports.version = "
|
|
491
|
+
exports.version = "19.1.0";
|
|
335
492
|
}
|
|
336
493
|
});
|
|
337
494
|
|
|
@@ -339,2790 +496,1263 @@ var require_react_production_min = __commonJS({
|
|
|
339
496
|
var require_react_development = __commonJS({
|
|
340
497
|
"node_modules/react/cjs/react.development.js"(exports, module) {
|
|
341
498
|
"use strict";
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
352
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
353
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
354
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
355
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
356
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
357
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
358
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
359
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
360
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
361
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
362
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
363
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
364
|
-
function getIteratorFn(maybeIterable) {
|
|
365
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
366
|
-
return null;
|
|
367
|
-
}
|
|
368
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
369
|
-
if (typeof maybeIterator === "function") {
|
|
370
|
-
return maybeIterator;
|
|
499
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
500
|
+
function defineDeprecationWarning(methodName, info) {
|
|
501
|
+
Object.defineProperty(Component.prototype, methodName, {
|
|
502
|
+
get: function() {
|
|
503
|
+
console.warn(
|
|
504
|
+
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
505
|
+
info[0],
|
|
506
|
+
info[1]
|
|
507
|
+
);
|
|
371
508
|
}
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
function getIteratorFn(maybeIterable) {
|
|
512
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
372
513
|
return null;
|
|
514
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
515
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
516
|
+
}
|
|
517
|
+
function warnNoop(publicInstance, callerName) {
|
|
518
|
+
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
519
|
+
var warningKey = publicInstance + "." + callerName;
|
|
520
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
|
521
|
+
"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.",
|
|
522
|
+
callerName,
|
|
523
|
+
publicInstance
|
|
524
|
+
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
525
|
+
}
|
|
526
|
+
function Component(props, context, updater) {
|
|
527
|
+
this.props = props;
|
|
528
|
+
this.context = context;
|
|
529
|
+
this.refs = emptyObject;
|
|
530
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
531
|
+
}
|
|
532
|
+
function ComponentDummy() {
|
|
533
|
+
}
|
|
534
|
+
function PureComponent(props, context, updater) {
|
|
535
|
+
this.props = props;
|
|
536
|
+
this.context = context;
|
|
537
|
+
this.refs = emptyObject;
|
|
538
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
539
|
+
}
|
|
540
|
+
function testStringCoercion(value) {
|
|
541
|
+
return "" + value;
|
|
542
|
+
}
|
|
543
|
+
function checkKeyStringCoercion(value) {
|
|
544
|
+
try {
|
|
545
|
+
testStringCoercion(value);
|
|
546
|
+
var JSCompiler_inline_result = false;
|
|
547
|
+
} catch (e) {
|
|
548
|
+
JSCompiler_inline_result = true;
|
|
549
|
+
}
|
|
550
|
+
if (JSCompiler_inline_result) {
|
|
551
|
+
JSCompiler_inline_result = console;
|
|
552
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
553
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
554
|
+
JSCompiler_temp_const.call(
|
|
555
|
+
JSCompiler_inline_result,
|
|
556
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
557
|
+
JSCompiler_inline_result$jscomp$0
|
|
558
|
+
);
|
|
559
|
+
return testStringCoercion(value);
|
|
373
560
|
}
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
}
|
|
420
|
-
return stack;
|
|
421
|
-
};
|
|
422
|
-
}
|
|
423
|
-
var enableScopeAPI = false;
|
|
424
|
-
var enableCacheElement = false;
|
|
425
|
-
var enableTransitionTracing = false;
|
|
426
|
-
var enableLegacyHidden = false;
|
|
427
|
-
var enableDebugTracing = false;
|
|
428
|
-
var ReactSharedInternals = {
|
|
429
|
-
ReactCurrentDispatcher,
|
|
430
|
-
ReactCurrentBatchConfig,
|
|
431
|
-
ReactCurrentOwner
|
|
432
|
-
};
|
|
433
|
-
{
|
|
434
|
-
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
435
|
-
ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
|
|
436
|
-
}
|
|
437
|
-
function warn(format) {
|
|
438
|
-
{
|
|
439
|
-
{
|
|
440
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
441
|
-
args[_key - 1] = arguments[_key];
|
|
442
|
-
}
|
|
443
|
-
printWarning("warn", format, args);
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
function error(format) {
|
|
448
|
-
{
|
|
449
|
-
{
|
|
450
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
451
|
-
args[_key2 - 1] = arguments[_key2];
|
|
561
|
+
}
|
|
562
|
+
function getComponentNameFromType(type) {
|
|
563
|
+
if (null == type)
|
|
564
|
+
return null;
|
|
565
|
+
if ("function" === typeof type)
|
|
566
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
567
|
+
if ("string" === typeof type)
|
|
568
|
+
return type;
|
|
569
|
+
switch (type) {
|
|
570
|
+
case REACT_FRAGMENT_TYPE:
|
|
571
|
+
return "Fragment";
|
|
572
|
+
case REACT_PROFILER_TYPE:
|
|
573
|
+
return "Profiler";
|
|
574
|
+
case REACT_STRICT_MODE_TYPE:
|
|
575
|
+
return "StrictMode";
|
|
576
|
+
case REACT_SUSPENSE_TYPE:
|
|
577
|
+
return "Suspense";
|
|
578
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
579
|
+
return "SuspenseList";
|
|
580
|
+
case REACT_ACTIVITY_TYPE:
|
|
581
|
+
return "Activity";
|
|
582
|
+
}
|
|
583
|
+
if ("object" === typeof type)
|
|
584
|
+
switch ("number" === typeof type.tag && console.error(
|
|
585
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
586
|
+
), type.$$typeof) {
|
|
587
|
+
case REACT_PORTAL_TYPE:
|
|
588
|
+
return "Portal";
|
|
589
|
+
case REACT_CONTEXT_TYPE:
|
|
590
|
+
return (type.displayName || "Context") + ".Provider";
|
|
591
|
+
case REACT_CONSUMER_TYPE:
|
|
592
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
593
|
+
case REACT_FORWARD_REF_TYPE:
|
|
594
|
+
var innerType = type.render;
|
|
595
|
+
type = type.displayName;
|
|
596
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
597
|
+
return type;
|
|
598
|
+
case REACT_MEMO_TYPE:
|
|
599
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
600
|
+
case REACT_LAZY_TYPE:
|
|
601
|
+
innerType = type._payload;
|
|
602
|
+
type = type._init;
|
|
603
|
+
try {
|
|
604
|
+
return getComponentNameFromType(type(innerType));
|
|
605
|
+
} catch (x) {
|
|
452
606
|
}
|
|
453
|
-
printWarning("error", format, args);
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
function printWarning(level, format, args) {
|
|
458
|
-
{
|
|
459
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
460
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
461
|
-
if (stack !== "") {
|
|
462
|
-
format += "%s";
|
|
463
|
-
args = args.concat([stack]);
|
|
464
|
-
}
|
|
465
|
-
var argsWithFormat = args.map(function(item) {
|
|
466
|
-
return String(item);
|
|
467
|
-
});
|
|
468
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
469
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
var didWarnStateUpdateForUnmountedComponent = {};
|
|
473
|
-
function warnNoop(publicInstance, callerName) {
|
|
474
|
-
{
|
|
475
|
-
var _constructor = publicInstance.constructor;
|
|
476
|
-
var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
|
|
477
|
-
var warningKey = componentName + "." + callerName;
|
|
478
|
-
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
479
|
-
return;
|
|
480
|
-
}
|
|
481
|
-
error("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.", callerName, componentName);
|
|
482
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
483
607
|
}
|
|
608
|
+
return null;
|
|
609
|
+
}
|
|
610
|
+
function getTaskName(type) {
|
|
611
|
+
if (type === REACT_FRAGMENT_TYPE)
|
|
612
|
+
return "<>";
|
|
613
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
614
|
+
return "<...>";
|
|
615
|
+
try {
|
|
616
|
+
var name = getComponentNameFromType(type);
|
|
617
|
+
return name ? "<" + name + ">" : "<...>";
|
|
618
|
+
} catch (x) {
|
|
619
|
+
return "<...>";
|
|
484
620
|
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
621
|
+
}
|
|
622
|
+
function getOwner() {
|
|
623
|
+
var dispatcher = ReactSharedInternals.A;
|
|
624
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
625
|
+
}
|
|
626
|
+
function UnknownOwner() {
|
|
627
|
+
return Error("react-stack-top-frame");
|
|
628
|
+
}
|
|
629
|
+
function hasValidKey(config) {
|
|
630
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
631
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
632
|
+
if (getter && getter.isReactWarning)
|
|
494
633
|
return false;
|
|
495
|
-
},
|
|
496
|
-
/**
|
|
497
|
-
* Forces an update. This should only be invoked when it is known with
|
|
498
|
-
* certainty that we are **not** in a DOM transaction.
|
|
499
|
-
*
|
|
500
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
501
|
-
* component's state has changed but `setState` was not called.
|
|
502
|
-
*
|
|
503
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
504
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
505
|
-
*
|
|
506
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
507
|
-
* @param {?function} callback Called after component is updated.
|
|
508
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
509
|
-
* @internal
|
|
510
|
-
*/
|
|
511
|
-
enqueueForceUpdate: function(publicInstance, callback, callerName) {
|
|
512
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
513
|
-
},
|
|
514
|
-
/**
|
|
515
|
-
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
516
|
-
* You should treat `this.state` as immutable.
|
|
517
|
-
*
|
|
518
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
519
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
520
|
-
*
|
|
521
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
522
|
-
* @param {object} completeState Next state.
|
|
523
|
-
* @param {?function} callback Called after component is updated.
|
|
524
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
525
|
-
* @internal
|
|
526
|
-
*/
|
|
527
|
-
enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
|
|
528
|
-
warnNoop(publicInstance, "replaceState");
|
|
529
|
-
},
|
|
530
|
-
/**
|
|
531
|
-
* Sets a subset of the state. This only exists because _pendingState is
|
|
532
|
-
* internal. This provides a merging strategy that is not available to deep
|
|
533
|
-
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
534
|
-
* during the merge.
|
|
535
|
-
*
|
|
536
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
537
|
-
* @param {object} partialState Next partial state to be merged with state.
|
|
538
|
-
* @param {?function} callback Called after component is updated.
|
|
539
|
-
* @param {?string} Name of the calling function in the public API.
|
|
540
|
-
* @internal
|
|
541
|
-
*/
|
|
542
|
-
enqueueSetState: function(publicInstance, partialState, callback, callerName) {
|
|
543
|
-
warnNoop(publicInstance, "setState");
|
|
544
|
-
}
|
|
545
|
-
};
|
|
546
|
-
var assign = Object.assign;
|
|
547
|
-
var emptyObject = {};
|
|
548
|
-
{
|
|
549
|
-
Object.freeze(emptyObject);
|
|
550
|
-
}
|
|
551
|
-
function Component(props, context, updater) {
|
|
552
|
-
this.props = props;
|
|
553
|
-
this.context = context;
|
|
554
|
-
this.refs = emptyObject;
|
|
555
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
556
634
|
}
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
635
|
+
return void 0 !== config.key;
|
|
636
|
+
}
|
|
637
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
638
|
+
function warnAboutAccessingKey() {
|
|
639
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
640
|
+
"%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://react.dev/link/special-props)",
|
|
641
|
+
displayName
|
|
642
|
+
));
|
|
643
|
+
}
|
|
644
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
645
|
+
Object.defineProperty(props, "key", {
|
|
646
|
+
get: warnAboutAccessingKey,
|
|
647
|
+
configurable: true
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
651
|
+
var componentName = getComponentNameFromType(this.type);
|
|
652
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
653
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
654
|
+
));
|
|
655
|
+
componentName = this.props.ref;
|
|
656
|
+
return void 0 !== componentName ? componentName : null;
|
|
657
|
+
}
|
|
658
|
+
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
659
|
+
self = props.ref;
|
|
660
|
+
type = {
|
|
661
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
662
|
+
type,
|
|
663
|
+
key,
|
|
664
|
+
props,
|
|
665
|
+
_owner: owner
|
|
566
666
|
};
|
|
567
|
-
{
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
667
|
+
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
668
|
+
enumerable: false,
|
|
669
|
+
get: elementRefGetterWithDeprecationWarning
|
|
670
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
671
|
+
type._store = {};
|
|
672
|
+
Object.defineProperty(type._store, "validated", {
|
|
673
|
+
configurable: false,
|
|
674
|
+
enumerable: false,
|
|
675
|
+
writable: true,
|
|
676
|
+
value: 0
|
|
677
|
+
});
|
|
678
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
679
|
+
configurable: false,
|
|
680
|
+
enumerable: false,
|
|
681
|
+
writable: true,
|
|
682
|
+
value: null
|
|
683
|
+
});
|
|
684
|
+
Object.defineProperty(type, "_debugStack", {
|
|
685
|
+
configurable: false,
|
|
686
|
+
enumerable: false,
|
|
687
|
+
writable: true,
|
|
688
|
+
value: debugStack
|
|
689
|
+
});
|
|
690
|
+
Object.defineProperty(type, "_debugTask", {
|
|
691
|
+
configurable: false,
|
|
692
|
+
enumerable: false,
|
|
693
|
+
writable: true,
|
|
694
|
+
value: debugTask
|
|
695
|
+
});
|
|
696
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
697
|
+
return type;
|
|
698
|
+
}
|
|
699
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
700
|
+
newKey = ReactElement(
|
|
701
|
+
oldElement.type,
|
|
702
|
+
newKey,
|
|
703
|
+
void 0,
|
|
704
|
+
void 0,
|
|
705
|
+
oldElement._owner,
|
|
706
|
+
oldElement.props,
|
|
707
|
+
oldElement._debugStack,
|
|
708
|
+
oldElement._debugTask
|
|
709
|
+
);
|
|
710
|
+
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
711
|
+
return newKey;
|
|
712
|
+
}
|
|
713
|
+
function isValidElement(object) {
|
|
714
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
715
|
+
}
|
|
716
|
+
function escape(key) {
|
|
717
|
+
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
718
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
719
|
+
return escaperLookup[match];
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
function getElementKey(element, index) {
|
|
723
|
+
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
724
|
+
}
|
|
725
|
+
function noop$1() {
|
|
726
|
+
}
|
|
727
|
+
function resolveThenable(thenable) {
|
|
728
|
+
switch (thenable.status) {
|
|
729
|
+
case "fulfilled":
|
|
730
|
+
return thenable.value;
|
|
731
|
+
case "rejected":
|
|
732
|
+
throw thenable.reason;
|
|
733
|
+
default:
|
|
734
|
+
switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
|
|
735
|
+
function(fulfilledValue) {
|
|
736
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
737
|
+
},
|
|
738
|
+
function(error) {
|
|
739
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
577
740
|
}
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
741
|
+
)), thenable.status) {
|
|
742
|
+
case "fulfilled":
|
|
743
|
+
return thenable.value;
|
|
744
|
+
case "rejected":
|
|
745
|
+
throw thenable.reason;
|
|
583
746
|
}
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
function ComponentDummy() {
|
|
587
747
|
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
748
|
+
throw thenable;
|
|
749
|
+
}
|
|
750
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
751
|
+
var type = typeof children;
|
|
752
|
+
if ("undefined" === type || "boolean" === type)
|
|
753
|
+
children = null;
|
|
754
|
+
var invokeCallback = false;
|
|
755
|
+
if (null === children)
|
|
756
|
+
invokeCallback = true;
|
|
757
|
+
else
|
|
758
|
+
switch (type) {
|
|
759
|
+
case "bigint":
|
|
760
|
+
case "string":
|
|
761
|
+
case "number":
|
|
762
|
+
invokeCallback = true;
|
|
763
|
+
break;
|
|
764
|
+
case "object":
|
|
765
|
+
switch (children.$$typeof) {
|
|
766
|
+
case REACT_ELEMENT_TYPE:
|
|
767
|
+
case REACT_PORTAL_TYPE:
|
|
768
|
+
invokeCallback = true;
|
|
769
|
+
break;
|
|
770
|
+
case REACT_LAZY_TYPE:
|
|
771
|
+
return invokeCallback = children._init, mapIntoArray(
|
|
772
|
+
invokeCallback(children._payload),
|
|
773
|
+
array,
|
|
774
|
+
escapedPrefix,
|
|
775
|
+
nameSoFar,
|
|
776
|
+
callback
|
|
777
|
+
);
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
if (invokeCallback) {
|
|
781
|
+
invokeCallback = children;
|
|
782
|
+
callback = callback(invokeCallback);
|
|
783
|
+
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
784
|
+
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
785
|
+
return c;
|
|
786
|
+
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
787
|
+
callback,
|
|
788
|
+
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
789
|
+
userProvidedKeyEscapeRegex,
|
|
790
|
+
"$&/"
|
|
791
|
+
) + "/") + childKey
|
|
792
|
+
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
793
|
+
return 1;
|
|
794
|
+
}
|
|
795
|
+
invokeCallback = 0;
|
|
796
|
+
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
797
|
+
if (isArrayImpl(children))
|
|
798
|
+
for (var i = 0; i < children.length; i++)
|
|
799
|
+
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
800
|
+
nameSoFar,
|
|
801
|
+
array,
|
|
802
|
+
escapedPrefix,
|
|
803
|
+
type,
|
|
804
|
+
callback
|
|
805
|
+
);
|
|
806
|
+
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
807
|
+
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
808
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
809
|
+
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
810
|
+
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
811
|
+
nameSoFar,
|
|
812
|
+
array,
|
|
813
|
+
escapedPrefix,
|
|
814
|
+
type,
|
|
815
|
+
callback
|
|
816
|
+
);
|
|
817
|
+
else if ("object" === type) {
|
|
818
|
+
if ("function" === typeof children.then)
|
|
819
|
+
return mapIntoArray(
|
|
820
|
+
resolveThenable(children),
|
|
821
|
+
array,
|
|
822
|
+
escapedPrefix,
|
|
823
|
+
nameSoFar,
|
|
824
|
+
callback
|
|
825
|
+
);
|
|
826
|
+
array = String(children);
|
|
827
|
+
throw Error(
|
|
828
|
+
"Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
|
|
829
|
+
);
|
|
611
830
|
}
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
831
|
+
return invokeCallback;
|
|
832
|
+
}
|
|
833
|
+
function mapChildren(children, func, context) {
|
|
834
|
+
if (null == children)
|
|
835
|
+
return children;
|
|
836
|
+
var result = [], count = 0;
|
|
837
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
838
|
+
return func.call(context, child, count++);
|
|
839
|
+
});
|
|
840
|
+
return result;
|
|
841
|
+
}
|
|
842
|
+
function lazyInitializer(payload) {
|
|
843
|
+
if (-1 === payload._status) {
|
|
844
|
+
var ctor = payload._result;
|
|
845
|
+
ctor = ctor();
|
|
846
|
+
ctor.then(
|
|
847
|
+
function(moduleObject) {
|
|
848
|
+
if (0 === payload._status || -1 === payload._status)
|
|
849
|
+
payload._status = 1, payload._result = moduleObject;
|
|
850
|
+
},
|
|
851
|
+
function(error) {
|
|
852
|
+
if (0 === payload._status || -1 === payload._status)
|
|
853
|
+
payload._status = 2, payload._result = error;
|
|
854
|
+
}
|
|
855
|
+
);
|
|
856
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
857
|
+
}
|
|
858
|
+
if (1 === payload._status)
|
|
859
|
+
return ctor = payload._result, void 0 === ctor && console.error(
|
|
860
|
+
"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?",
|
|
861
|
+
ctor
|
|
862
|
+
), "default" in ctor || console.error(
|
|
863
|
+
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
864
|
+
ctor
|
|
865
|
+
), ctor.default;
|
|
866
|
+
throw payload._result;
|
|
867
|
+
}
|
|
868
|
+
function resolveDispatcher() {
|
|
869
|
+
var dispatcher = ReactSharedInternals.H;
|
|
870
|
+
null === dispatcher && console.error(
|
|
871
|
+
"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://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
872
|
+
);
|
|
873
|
+
return dispatcher;
|
|
874
|
+
}
|
|
875
|
+
function noop() {
|
|
876
|
+
}
|
|
877
|
+
function enqueueTask(task) {
|
|
878
|
+
if (null === enqueueTaskImpl)
|
|
879
|
+
try {
|
|
880
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
881
|
+
enqueueTaskImpl = (module && module[requireString]).call(
|
|
882
|
+
module,
|
|
883
|
+
"timers"
|
|
884
|
+
).setImmediate;
|
|
885
|
+
} catch (_err) {
|
|
886
|
+
enqueueTaskImpl = function(callback) {
|
|
887
|
+
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
888
|
+
"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."
|
|
889
|
+
));
|
|
890
|
+
var channel = new MessageChannel();
|
|
891
|
+
channel.port1.onmessage = callback;
|
|
892
|
+
channel.port2.postMessage(void 0);
|
|
893
|
+
};
|
|
617
894
|
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
895
|
+
return enqueueTaskImpl(task);
|
|
896
|
+
}
|
|
897
|
+
function aggregateErrors(errors) {
|
|
898
|
+
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
899
|
+
}
|
|
900
|
+
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
901
|
+
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
|
902
|
+
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
903
|
+
);
|
|
904
|
+
actScopeDepth = prevActScopeDepth;
|
|
905
|
+
}
|
|
906
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
907
|
+
var queue = ReactSharedInternals.actQueue;
|
|
908
|
+
if (null !== queue)
|
|
909
|
+
if (0 !== queue.length)
|
|
621
910
|
try {
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
911
|
+
flushActQueue(queue);
|
|
912
|
+
enqueueTask(function() {
|
|
913
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
914
|
+
});
|
|
915
|
+
return;
|
|
916
|
+
} catch (error) {
|
|
917
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
626
918
|
}
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
919
|
+
else
|
|
920
|
+
ReactSharedInternals.actQueue = null;
|
|
921
|
+
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
922
|
+
}
|
|
923
|
+
function flushActQueue(queue) {
|
|
924
|
+
if (!isFlushing) {
|
|
925
|
+
isFlushing = true;
|
|
926
|
+
var i = 0;
|
|
927
|
+
try {
|
|
928
|
+
for (; i < queue.length; i++) {
|
|
929
|
+
var callback = queue[i];
|
|
930
|
+
do {
|
|
931
|
+
ReactSharedInternals.didUsePromise = false;
|
|
932
|
+
var continuation = callback(false);
|
|
933
|
+
if (null !== continuation) {
|
|
934
|
+
if (ReactSharedInternals.didUsePromise) {
|
|
935
|
+
queue[i] = callback;
|
|
936
|
+
queue.splice(0, i);
|
|
937
|
+
return;
|
|
938
|
+
}
|
|
939
|
+
callback = continuation;
|
|
940
|
+
} else
|
|
941
|
+
break;
|
|
942
|
+
} while (1);
|
|
637
943
|
}
|
|
944
|
+
queue.length = 0;
|
|
945
|
+
} catch (error) {
|
|
946
|
+
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
947
|
+
} finally {
|
|
948
|
+
isFlushing = false;
|
|
638
949
|
}
|
|
639
950
|
}
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
return
|
|
951
|
+
}
|
|
952
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
953
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
954
|
+
Symbol.for("react.provider");
|
|
955
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
956
|
+
isMounted: function() {
|
|
957
|
+
return false;
|
|
958
|
+
},
|
|
959
|
+
enqueueForceUpdate: function(publicInstance) {
|
|
960
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
961
|
+
},
|
|
962
|
+
enqueueReplaceState: function(publicInstance) {
|
|
963
|
+
warnNoop(publicInstance, "replaceState");
|
|
964
|
+
},
|
|
965
|
+
enqueueSetState: function(publicInstance) {
|
|
966
|
+
warnNoop(publicInstance, "setState");
|
|
967
|
+
}
|
|
968
|
+
}, assign = Object.assign, emptyObject = {};
|
|
969
|
+
Object.freeze(emptyObject);
|
|
970
|
+
Component.prototype.isReactComponent = {};
|
|
971
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
972
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
973
|
+
throw Error(
|
|
974
|
+
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
975
|
+
);
|
|
976
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
977
|
+
};
|
|
978
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
979
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
980
|
+
};
|
|
981
|
+
var deprecatedAPIs = {
|
|
982
|
+
isMounted: [
|
|
983
|
+
"isMounted",
|
|
984
|
+
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
985
|
+
],
|
|
986
|
+
replaceState: [
|
|
987
|
+
"replaceState",
|
|
988
|
+
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
989
|
+
]
|
|
990
|
+
}, fnName;
|
|
991
|
+
for (fnName in deprecatedAPIs)
|
|
992
|
+
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
993
|
+
ComponentDummy.prototype = Component.prototype;
|
|
994
|
+
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
995
|
+
deprecatedAPIs.constructor = PureComponent;
|
|
996
|
+
assign(deprecatedAPIs, Component.prototype);
|
|
997
|
+
deprecatedAPIs.isPureReactComponent = true;
|
|
998
|
+
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
999
|
+
H: null,
|
|
1000
|
+
A: null,
|
|
1001
|
+
T: null,
|
|
1002
|
+
S: null,
|
|
1003
|
+
V: null,
|
|
1004
|
+
actQueue: null,
|
|
1005
|
+
isBatchingLegacy: false,
|
|
1006
|
+
didScheduleLegacyUpdate: false,
|
|
1007
|
+
didUsePromise: false,
|
|
1008
|
+
thrownErrors: [],
|
|
1009
|
+
getCurrentStack: null,
|
|
1010
|
+
recentlyCreatedOwnerStacks: 0
|
|
1011
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
1012
|
+
return null;
|
|
1013
|
+
};
|
|
1014
|
+
deprecatedAPIs = {
|
|
1015
|
+
"react-stack-bottom-frame": function(callStackForError) {
|
|
1016
|
+
return callStackForError();
|
|
1017
|
+
}
|
|
1018
|
+
};
|
|
1019
|
+
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1020
|
+
var didWarnAboutElementRef = {};
|
|
1021
|
+
var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
|
|
1022
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1023
|
+
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1024
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
1025
|
+
var event = new window.ErrorEvent("error", {
|
|
1026
|
+
bubbles: true,
|
|
1027
|
+
cancelable: true,
|
|
1028
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
1029
|
+
error
|
|
1030
|
+
});
|
|
1031
|
+
if (!window.dispatchEvent(event))
|
|
1032
|
+
return;
|
|
1033
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1034
|
+
process.emit("uncaughtException", error);
|
|
1035
|
+
return;
|
|
1036
|
+
}
|
|
1037
|
+
console.error(error);
|
|
1038
|
+
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
1039
|
+
queueMicrotask(function() {
|
|
1040
|
+
return queueMicrotask(callback);
|
|
1041
|
+
});
|
|
1042
|
+
} : enqueueTask;
|
|
1043
|
+
deprecatedAPIs = Object.freeze({
|
|
1044
|
+
__proto__: null,
|
|
1045
|
+
c: function(size) {
|
|
1046
|
+
return resolveDispatcher().useMemoCache(size);
|
|
647
1047
|
}
|
|
648
|
-
|
|
649
|
-
|
|
1048
|
+
});
|
|
1049
|
+
exports.Children = {
|
|
1050
|
+
map: mapChildren,
|
|
1051
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
1052
|
+
mapChildren(
|
|
1053
|
+
children,
|
|
1054
|
+
function() {
|
|
1055
|
+
forEachFunc.apply(this, arguments);
|
|
1056
|
+
},
|
|
1057
|
+
forEachContext
|
|
1058
|
+
);
|
|
1059
|
+
},
|
|
1060
|
+
count: function(children) {
|
|
1061
|
+
var n = 0;
|
|
1062
|
+
mapChildren(children, function() {
|
|
1063
|
+
n++;
|
|
1064
|
+
});
|
|
1065
|
+
return n;
|
|
1066
|
+
},
|
|
1067
|
+
toArray: function(children) {
|
|
1068
|
+
return mapChildren(children, function(child) {
|
|
1069
|
+
return child;
|
|
1070
|
+
}) || [];
|
|
1071
|
+
},
|
|
1072
|
+
only: function(children) {
|
|
1073
|
+
if (!isValidElement(children))
|
|
1074
|
+
throw Error(
|
|
1075
|
+
"React.Children.only expected to receive a single React element child."
|
|
1076
|
+
);
|
|
1077
|
+
return children;
|
|
650
1078
|
}
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
1079
|
+
};
|
|
1080
|
+
exports.Component = Component;
|
|
1081
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1082
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
1083
|
+
exports.PureComponent = PureComponent;
|
|
1084
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1085
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
1086
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
1087
|
+
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1088
|
+
exports.act = function(callback) {
|
|
1089
|
+
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
1090
|
+
actScopeDepth++;
|
|
1091
|
+
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
1092
|
+
try {
|
|
1093
|
+
var result = callback();
|
|
1094
|
+
} catch (error) {
|
|
1095
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
1096
|
+
}
|
|
1097
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1098
|
+
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1099
|
+
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
1100
|
+
var thenable = result;
|
|
1101
|
+
queueSeveralMicrotasks(function() {
|
|
1102
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1103
|
+
"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 () => ...);"
|
|
1104
|
+
));
|
|
1105
|
+
});
|
|
1106
|
+
return {
|
|
1107
|
+
then: function(resolve, reject) {
|
|
1108
|
+
didAwaitActCall = true;
|
|
1109
|
+
thenable.then(
|
|
1110
|
+
function(returnValue) {
|
|
1111
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1112
|
+
if (0 === prevActScopeDepth) {
|
|
1113
|
+
try {
|
|
1114
|
+
flushActQueue(queue), enqueueTask(function() {
|
|
1115
|
+
return recursivelyFlushAsyncActWork(
|
|
1116
|
+
returnValue,
|
|
1117
|
+
resolve,
|
|
1118
|
+
reject
|
|
1119
|
+
);
|
|
1120
|
+
});
|
|
1121
|
+
} catch (error$0) {
|
|
1122
|
+
ReactSharedInternals.thrownErrors.push(error$0);
|
|
1123
|
+
}
|
|
1124
|
+
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
1125
|
+
var _thrownError = aggregateErrors(
|
|
1126
|
+
ReactSharedInternals.thrownErrors
|
|
1127
|
+
);
|
|
1128
|
+
ReactSharedInternals.thrownErrors.length = 0;
|
|
1129
|
+
reject(_thrownError);
|
|
1130
|
+
}
|
|
1131
|
+
} else
|
|
1132
|
+
resolve(returnValue);
|
|
1133
|
+
},
|
|
1134
|
+
function(error) {
|
|
1135
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1136
|
+
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
1137
|
+
ReactSharedInternals.thrownErrors
|
|
1138
|
+
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
1139
|
+
}
|
|
1140
|
+
);
|
|
658
1141
|
}
|
|
1142
|
+
};
|
|
1143
|
+
}
|
|
1144
|
+
var returnValue$jscomp$0 = result;
|
|
1145
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
1146
|
+
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
1147
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1148
|
+
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
|
|
1149
|
+
));
|
|
1150
|
+
}), ReactSharedInternals.actQueue = null);
|
|
1151
|
+
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1152
|
+
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1153
|
+
return {
|
|
1154
|
+
then: function(resolve, reject) {
|
|
1155
|
+
didAwaitActCall = true;
|
|
1156
|
+
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
1157
|
+
return recursivelyFlushAsyncActWork(
|
|
1158
|
+
returnValue$jscomp$0,
|
|
1159
|
+
resolve,
|
|
1160
|
+
reject
|
|
1161
|
+
);
|
|
1162
|
+
})) : resolve(returnValue$jscomp$0);
|
|
659
1163
|
}
|
|
660
|
-
|
|
661
|
-
|
|
1164
|
+
};
|
|
1165
|
+
};
|
|
1166
|
+
exports.cache = function(fn) {
|
|
1167
|
+
return function() {
|
|
1168
|
+
return fn.apply(null, arguments);
|
|
1169
|
+
};
|
|
1170
|
+
};
|
|
1171
|
+
exports.captureOwnerStack = function() {
|
|
1172
|
+
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1173
|
+
return null === getCurrentStack ? null : getCurrentStack();
|
|
1174
|
+
};
|
|
1175
|
+
exports.cloneElement = function(element, config, children) {
|
|
1176
|
+
if (null === element || void 0 === element)
|
|
1177
|
+
throw Error(
|
|
1178
|
+
"The argument must be a React element, but you passed " + element + "."
|
|
1179
|
+
);
|
|
1180
|
+
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
1181
|
+
if (null != config) {
|
|
1182
|
+
var JSCompiler_inline_result;
|
|
1183
|
+
a: {
|
|
1184
|
+
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1185
|
+
config,
|
|
1186
|
+
"ref"
|
|
1187
|
+
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
1188
|
+
JSCompiler_inline_result = false;
|
|
1189
|
+
break a;
|
|
1190
|
+
}
|
|
1191
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1192
|
+
}
|
|
1193
|
+
JSCompiler_inline_result && (owner = getOwner());
|
|
1194
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
1195
|
+
for (propName in config)
|
|
1196
|
+
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1197
|
+
}
|
|
1198
|
+
var propName = arguments.length - 2;
|
|
1199
|
+
if (1 === propName)
|
|
1200
|
+
props.children = children;
|
|
1201
|
+
else if (1 < propName) {
|
|
1202
|
+
JSCompiler_inline_result = Array(propName);
|
|
1203
|
+
for (var i = 0; i < propName; i++)
|
|
1204
|
+
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1205
|
+
props.children = JSCompiler_inline_result;
|
|
1206
|
+
}
|
|
1207
|
+
props = ReactElement(
|
|
1208
|
+
element.type,
|
|
1209
|
+
key,
|
|
1210
|
+
void 0,
|
|
1211
|
+
void 0,
|
|
1212
|
+
owner,
|
|
1213
|
+
props,
|
|
1214
|
+
element._debugStack,
|
|
1215
|
+
element._debugTask
|
|
1216
|
+
);
|
|
1217
|
+
for (key = 2; key < arguments.length; key++)
|
|
1218
|
+
owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
|
1219
|
+
return props;
|
|
1220
|
+
};
|
|
1221
|
+
exports.createContext = function(defaultValue) {
|
|
1222
|
+
defaultValue = {
|
|
1223
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1224
|
+
_currentValue: defaultValue,
|
|
1225
|
+
_currentValue2: defaultValue,
|
|
1226
|
+
_threadCount: 0,
|
|
1227
|
+
Provider: null,
|
|
1228
|
+
Consumer: null
|
|
1229
|
+
};
|
|
1230
|
+
defaultValue.Provider = defaultValue;
|
|
1231
|
+
defaultValue.Consumer = {
|
|
1232
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
1233
|
+
_context: defaultValue
|
|
1234
|
+
};
|
|
1235
|
+
defaultValue._currentRenderer = null;
|
|
1236
|
+
defaultValue._currentRenderer2 = null;
|
|
1237
|
+
return defaultValue;
|
|
1238
|
+
};
|
|
1239
|
+
exports.createElement = function(type, config, children) {
|
|
1240
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
1241
|
+
var node = arguments[i];
|
|
1242
|
+
isValidElement(node) && node._store && (node._store.validated = 1);
|
|
1243
|
+
}
|
|
1244
|
+
i = {};
|
|
1245
|
+
node = null;
|
|
1246
|
+
if (null != config)
|
|
1247
|
+
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
1248
|
+
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
|
1249
|
+
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
|
|
1250
|
+
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
1251
|
+
var childrenLength = arguments.length - 2;
|
|
1252
|
+
if (1 === childrenLength)
|
|
1253
|
+
i.children = children;
|
|
1254
|
+
else if (1 < childrenLength) {
|
|
1255
|
+
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
1256
|
+
childArray[_i] = arguments[_i + 2];
|
|
1257
|
+
Object.freeze && Object.freeze(childArray);
|
|
1258
|
+
i.children = childArray;
|
|
1259
|
+
}
|
|
1260
|
+
if (type && type.defaultProps)
|
|
1261
|
+
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
1262
|
+
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1263
|
+
node && defineKeyPropWarningGetter(
|
|
1264
|
+
i,
|
|
1265
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1266
|
+
);
|
|
1267
|
+
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1268
|
+
return ReactElement(
|
|
1269
|
+
type,
|
|
1270
|
+
node,
|
|
1271
|
+
void 0,
|
|
1272
|
+
void 0,
|
|
1273
|
+
getOwner(),
|
|
1274
|
+
i,
|
|
1275
|
+
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1276
|
+
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1277
|
+
);
|
|
1278
|
+
};
|
|
1279
|
+
exports.createRef = function() {
|
|
1280
|
+
var refObject = { current: null };
|
|
1281
|
+
Object.seal(refObject);
|
|
1282
|
+
return refObject;
|
|
1283
|
+
};
|
|
1284
|
+
exports.forwardRef = function(render) {
|
|
1285
|
+
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
1286
|
+
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1287
|
+
) : "function" !== typeof render ? console.error(
|
|
1288
|
+
"forwardRef requires a render function but was given %s.",
|
|
1289
|
+
null === render ? "null" : typeof render
|
|
1290
|
+
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
1291
|
+
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1292
|
+
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1293
|
+
);
|
|
1294
|
+
null != render && null != render.defaultProps && console.error(
|
|
1295
|
+
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1296
|
+
);
|
|
1297
|
+
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
1298
|
+
Object.defineProperty(elementType, "displayName", {
|
|
1299
|
+
enumerable: false,
|
|
1300
|
+
configurable: true,
|
|
1301
|
+
get: function() {
|
|
1302
|
+
return ownName;
|
|
1303
|
+
},
|
|
1304
|
+
set: function(name) {
|
|
1305
|
+
ownName = name;
|
|
1306
|
+
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
662
1307
|
}
|
|
663
|
-
|
|
664
|
-
|
|
1308
|
+
});
|
|
1309
|
+
return elementType;
|
|
1310
|
+
};
|
|
1311
|
+
exports.isValidElement = isValidElement;
|
|
1312
|
+
exports.lazy = function(ctor) {
|
|
1313
|
+
return {
|
|
1314
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1315
|
+
_payload: { _status: -1, _result: ctor },
|
|
1316
|
+
_init: lazyInitializer
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1319
|
+
exports.memo = function(type, compare) {
|
|
1320
|
+
null == type && console.error(
|
|
1321
|
+
"memo: The first argument must be a component. Instead received: %s",
|
|
1322
|
+
null === type ? "null" : typeof type
|
|
1323
|
+
);
|
|
1324
|
+
compare = {
|
|
1325
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
1326
|
+
type,
|
|
1327
|
+
compare: void 0 === compare ? null : compare
|
|
1328
|
+
};
|
|
1329
|
+
var ownName;
|
|
1330
|
+
Object.defineProperty(compare, "displayName", {
|
|
1331
|
+
enumerable: false,
|
|
1332
|
+
configurable: true,
|
|
1333
|
+
get: function() {
|
|
1334
|
+
return ownName;
|
|
1335
|
+
},
|
|
1336
|
+
set: function(name) {
|
|
1337
|
+
ownName = name;
|
|
1338
|
+
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
665
1339
|
}
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
1340
|
+
});
|
|
1341
|
+
return compare;
|
|
1342
|
+
};
|
|
1343
|
+
exports.startTransition = function(scope) {
|
|
1344
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
1345
|
+
ReactSharedInternals.T = currentTransition;
|
|
1346
|
+
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1347
|
+
try {
|
|
1348
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
1349
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1350
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
1351
|
+
} catch (error) {
|
|
1352
|
+
reportGlobalError(error);
|
|
1353
|
+
} finally {
|
|
1354
|
+
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
|
1355
|
+
"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."
|
|
1356
|
+
)), ReactSharedInternals.T = prevTransition;
|
|
1357
|
+
}
|
|
1358
|
+
};
|
|
1359
|
+
exports.unstable_useCacheRefresh = function() {
|
|
1360
|
+
return resolveDispatcher().useCacheRefresh();
|
|
1361
|
+
};
|
|
1362
|
+
exports.use = function(usable) {
|
|
1363
|
+
return resolveDispatcher().use(usable);
|
|
1364
|
+
};
|
|
1365
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
1366
|
+
return resolveDispatcher().useActionState(
|
|
1367
|
+
action,
|
|
1368
|
+
initialState,
|
|
1369
|
+
permalink
|
|
1370
|
+
);
|
|
1371
|
+
};
|
|
1372
|
+
exports.useCallback = function(callback, deps) {
|
|
1373
|
+
return resolveDispatcher().useCallback(callback, deps);
|
|
1374
|
+
};
|
|
1375
|
+
exports.useContext = function(Context) {
|
|
1376
|
+
var dispatcher = resolveDispatcher();
|
|
1377
|
+
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
1378
|
+
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1379
|
+
);
|
|
1380
|
+
return dispatcher.useContext(Context);
|
|
1381
|
+
};
|
|
1382
|
+
exports.useDebugValue = function(value, formatterFn) {
|
|
1383
|
+
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1384
|
+
};
|
|
1385
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
1386
|
+
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1387
|
+
};
|
|
1388
|
+
exports.useEffect = function(create, createDeps, update) {
|
|
1389
|
+
null == create && console.warn(
|
|
1390
|
+
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1391
|
+
);
|
|
1392
|
+
var dispatcher = resolveDispatcher();
|
|
1393
|
+
if ("function" === typeof update)
|
|
1394
|
+
throw Error(
|
|
1395
|
+
"useEffect CRUD overload is not enabled in this build of React."
|
|
1396
|
+
);
|
|
1397
|
+
return dispatcher.useEffect(create, createDeps);
|
|
1398
|
+
};
|
|
1399
|
+
exports.useId = function() {
|
|
1400
|
+
return resolveDispatcher().useId();
|
|
1401
|
+
};
|
|
1402
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
1403
|
+
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1404
|
+
};
|
|
1405
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
1406
|
+
null == create && console.warn(
|
|
1407
|
+
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1408
|
+
);
|
|
1409
|
+
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1410
|
+
};
|
|
1411
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
1412
|
+
null == create && console.warn(
|
|
1413
|
+
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1414
|
+
);
|
|
1415
|
+
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1416
|
+
};
|
|
1417
|
+
exports.useMemo = function(create, deps) {
|
|
1418
|
+
return resolveDispatcher().useMemo(create, deps);
|
|
1419
|
+
};
|
|
1420
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
1421
|
+
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1422
|
+
};
|
|
1423
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
1424
|
+
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1425
|
+
};
|
|
1426
|
+
exports.useRef = function(initialValue) {
|
|
1427
|
+
return resolveDispatcher().useRef(initialValue);
|
|
1428
|
+
};
|
|
1429
|
+
exports.useState = function(initialState) {
|
|
1430
|
+
return resolveDispatcher().useState(initialState);
|
|
1431
|
+
};
|
|
1432
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1433
|
+
return resolveDispatcher().useSyncExternalStore(
|
|
1434
|
+
subscribe,
|
|
1435
|
+
getSnapshot,
|
|
1436
|
+
getServerSnapshot
|
|
1437
|
+
);
|
|
1438
|
+
};
|
|
1439
|
+
exports.useTransition = function() {
|
|
1440
|
+
return resolveDispatcher().useTransition();
|
|
1441
|
+
};
|
|
1442
|
+
exports.version = "19.1.0";
|
|
1443
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1444
|
+
}();
|
|
1445
|
+
}
|
|
1446
|
+
});
|
|
1447
|
+
|
|
1448
|
+
// node_modules/react/index.js
|
|
1449
|
+
var require_react = __commonJS({
|
|
1450
|
+
"node_modules/react/index.js"(exports, module) {
|
|
1451
|
+
"use strict";
|
|
1452
|
+
if (process.env.NODE_ENV === "production") {
|
|
1453
|
+
module.exports = require_react_production();
|
|
1454
|
+
} else {
|
|
1455
|
+
module.exports = require_react_development();
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
});
|
|
1459
|
+
|
|
1460
|
+
// node_modules/react/cjs/react-jsx-runtime.production.js
|
|
1461
|
+
var require_react_jsx_runtime_production = __commonJS({
|
|
1462
|
+
"node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
|
|
1463
|
+
"use strict";
|
|
1464
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
1465
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
1466
|
+
function jsxProd(type, config, maybeKey) {
|
|
1467
|
+
var key = null;
|
|
1468
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
1469
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
1470
|
+
if ("key" in config) {
|
|
1471
|
+
maybeKey = {};
|
|
1472
|
+
for (var propName in config)
|
|
1473
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1474
|
+
} else
|
|
1475
|
+
maybeKey = config;
|
|
1476
|
+
config = maybeKey.ref;
|
|
1477
|
+
return {
|
|
1478
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1479
|
+
type,
|
|
1480
|
+
key,
|
|
1481
|
+
ref: void 0 !== config ? config : null,
|
|
1482
|
+
props: maybeKey
|
|
1483
|
+
};
|
|
1484
|
+
}
|
|
1485
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1486
|
+
exports.jsx = jsxProd;
|
|
1487
|
+
exports.jsxs = jsxProd;
|
|
1488
|
+
}
|
|
1489
|
+
});
|
|
1490
|
+
|
|
1491
|
+
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
1492
|
+
var require_react_jsx_runtime_development = __commonJS({
|
|
1493
|
+
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
1494
|
+
"use strict";
|
|
1495
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
1496
|
+
function getComponentNameFromType(type) {
|
|
1497
|
+
if (null == type)
|
|
1498
|
+
return null;
|
|
1499
|
+
if ("function" === typeof type)
|
|
1500
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
1501
|
+
if ("string" === typeof type)
|
|
1502
|
+
return type;
|
|
1503
|
+
switch (type) {
|
|
1504
|
+
case REACT_FRAGMENT_TYPE:
|
|
1505
|
+
return "Fragment";
|
|
1506
|
+
case REACT_PROFILER_TYPE:
|
|
1507
|
+
return "Profiler";
|
|
1508
|
+
case REACT_STRICT_MODE_TYPE:
|
|
1509
|
+
return "StrictMode";
|
|
1510
|
+
case REACT_SUSPENSE_TYPE:
|
|
1511
|
+
return "Suspense";
|
|
1512
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
1513
|
+
return "SuspenseList";
|
|
1514
|
+
case REACT_ACTIVITY_TYPE:
|
|
1515
|
+
return "Activity";
|
|
1516
|
+
}
|
|
1517
|
+
if ("object" === typeof type)
|
|
1518
|
+
switch ("number" === typeof type.tag && console.error(
|
|
1519
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1520
|
+
), type.$$typeof) {
|
|
669
1521
|
case REACT_PORTAL_TYPE:
|
|
670
1522
|
return "Portal";
|
|
671
|
-
case
|
|
672
|
-
return "
|
|
673
|
-
case
|
|
674
|
-
return "
|
|
675
|
-
case
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
case REACT_FORWARD_REF_TYPE:
|
|
689
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
690
|
-
case REACT_MEMO_TYPE:
|
|
691
|
-
var outerName = type.displayName || null;
|
|
692
|
-
if (outerName !== null) {
|
|
693
|
-
return outerName;
|
|
694
|
-
}
|
|
695
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
696
|
-
case REACT_LAZY_TYPE: {
|
|
697
|
-
var lazyComponent = type;
|
|
698
|
-
var payload = lazyComponent._payload;
|
|
699
|
-
var init = lazyComponent._init;
|
|
700
|
-
try {
|
|
701
|
-
return getComponentNameFromType(init(payload));
|
|
702
|
-
} catch (x) {
|
|
703
|
-
return null;
|
|
704
|
-
}
|
|
705
|
-
}
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
return null;
|
|
709
|
-
}
|
|
710
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
711
|
-
var RESERVED_PROPS = {
|
|
712
|
-
key: true,
|
|
713
|
-
ref: true,
|
|
714
|
-
__self: true,
|
|
715
|
-
__source: true
|
|
716
|
-
};
|
|
717
|
-
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
|
|
718
|
-
{
|
|
719
|
-
didWarnAboutStringRefs = {};
|
|
720
|
-
}
|
|
721
|
-
function hasValidRef(config) {
|
|
722
|
-
{
|
|
723
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
724
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
725
|
-
if (getter && getter.isReactWarning) {
|
|
726
|
-
return false;
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
return config.ref !== void 0;
|
|
731
|
-
}
|
|
732
|
-
function hasValidKey(config) {
|
|
733
|
-
{
|
|
734
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
735
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
736
|
-
if (getter && getter.isReactWarning) {
|
|
737
|
-
return false;
|
|
1523
|
+
case REACT_CONTEXT_TYPE:
|
|
1524
|
+
return (type.displayName || "Context") + ".Provider";
|
|
1525
|
+
case REACT_CONSUMER_TYPE:
|
|
1526
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
1527
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1528
|
+
var innerType = type.render;
|
|
1529
|
+
type = type.displayName;
|
|
1530
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1531
|
+
return type;
|
|
1532
|
+
case REACT_MEMO_TYPE:
|
|
1533
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1534
|
+
case REACT_LAZY_TYPE:
|
|
1535
|
+
innerType = type._payload;
|
|
1536
|
+
type = type._init;
|
|
1537
|
+
try {
|
|
1538
|
+
return getComponentNameFromType(type(innerType));
|
|
1539
|
+
} catch (x) {
|
|
738
1540
|
}
|
|
739
|
-
}
|
|
740
1541
|
}
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
1542
|
+
return null;
|
|
1543
|
+
}
|
|
1544
|
+
function testStringCoercion(value) {
|
|
1545
|
+
return "" + value;
|
|
1546
|
+
}
|
|
1547
|
+
function checkKeyStringCoercion(value) {
|
|
1548
|
+
try {
|
|
1549
|
+
testStringCoercion(value);
|
|
1550
|
+
var JSCompiler_inline_result = false;
|
|
1551
|
+
} catch (e) {
|
|
1552
|
+
JSCompiler_inline_result = true;
|
|
1553
|
+
}
|
|
1554
|
+
if (JSCompiler_inline_result) {
|
|
1555
|
+
JSCompiler_inline_result = console;
|
|
1556
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
1557
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1558
|
+
JSCompiler_temp_const.call(
|
|
1559
|
+
JSCompiler_inline_result,
|
|
1560
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1561
|
+
JSCompiler_inline_result$jscomp$0
|
|
1562
|
+
);
|
|
1563
|
+
return testStringCoercion(value);
|
|
757
1564
|
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
get: warnAboutAccessingRef,
|
|
770
|
-
configurable: true
|
|
771
|
-
});
|
|
1565
|
+
}
|
|
1566
|
+
function getTaskName(type) {
|
|
1567
|
+
if (type === REACT_FRAGMENT_TYPE)
|
|
1568
|
+
return "<>";
|
|
1569
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
1570
|
+
return "<...>";
|
|
1571
|
+
try {
|
|
1572
|
+
var name = getComponentNameFromType(type);
|
|
1573
|
+
return name ? "<" + name + ">" : "<...>";
|
|
1574
|
+
} catch (x) {
|
|
1575
|
+
return "<...>";
|
|
772
1576
|
}
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
1577
|
+
}
|
|
1578
|
+
function getOwner() {
|
|
1579
|
+
var dispatcher = ReactSharedInternals.A;
|
|
1580
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
1581
|
+
}
|
|
1582
|
+
function UnknownOwner() {
|
|
1583
|
+
return Error("react-stack-top-frame");
|
|
1584
|
+
}
|
|
1585
|
+
function hasValidKey(config) {
|
|
1586
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
1587
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1588
|
+
if (getter && getter.isReactWarning)
|
|
1589
|
+
return false;
|
|
783
1590
|
}
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
});
|
|
816
|
-
if (Object.freeze) {
|
|
817
|
-
Object.freeze(element.props);
|
|
818
|
-
Object.freeze(element);
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
return element;
|
|
1591
|
+
return void 0 !== config.key;
|
|
1592
|
+
}
|
|
1593
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
1594
|
+
function warnAboutAccessingKey() {
|
|
1595
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
1596
|
+
"%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://react.dev/link/special-props)",
|
|
1597
|
+
displayName
|
|
1598
|
+
));
|
|
1599
|
+
}
|
|
1600
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
1601
|
+
Object.defineProperty(props, "key", {
|
|
1602
|
+
get: warnAboutAccessingKey,
|
|
1603
|
+
configurable: true
|
|
1604
|
+
});
|
|
1605
|
+
}
|
|
1606
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
1607
|
+
var componentName = getComponentNameFromType(this.type);
|
|
1608
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
1609
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
1610
|
+
));
|
|
1611
|
+
componentName = this.props.ref;
|
|
1612
|
+
return void 0 !== componentName ? componentName : null;
|
|
1613
|
+
}
|
|
1614
|
+
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
1615
|
+
self = props.ref;
|
|
1616
|
+
type = {
|
|
1617
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1618
|
+
type,
|
|
1619
|
+
key,
|
|
1620
|
+
props,
|
|
1621
|
+
_owner: owner
|
|
822
1622
|
};
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
{
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
}
|
|
874
|
-
{
|
|
875
|
-
if (key || ref) {
|
|
876
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
877
|
-
if (key) {
|
|
878
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
879
|
-
}
|
|
880
|
-
if (ref) {
|
|
881
|
-
defineRefPropWarningGetter(props, displayName);
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
}
|
|
885
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
886
|
-
}
|
|
887
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
888
|
-
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
889
|
-
return newElement;
|
|
890
|
-
}
|
|
891
|
-
function cloneElement(element, config, children) {
|
|
892
|
-
if (element === null || element === void 0) {
|
|
893
|
-
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
894
|
-
}
|
|
895
|
-
var propName;
|
|
896
|
-
var props = assign({}, element.props);
|
|
897
|
-
var key = element.key;
|
|
898
|
-
var ref = element.ref;
|
|
899
|
-
var self = element._self;
|
|
900
|
-
var source = element._source;
|
|
901
|
-
var owner = element._owner;
|
|
902
|
-
if (config != null) {
|
|
903
|
-
if (hasValidRef(config)) {
|
|
904
|
-
ref = config.ref;
|
|
905
|
-
owner = ReactCurrentOwner.current;
|
|
906
|
-
}
|
|
907
|
-
if (hasValidKey(config)) {
|
|
908
|
-
{
|
|
909
|
-
checkKeyStringCoercion(config.key);
|
|
910
|
-
}
|
|
911
|
-
key = "" + config.key;
|
|
912
|
-
}
|
|
913
|
-
var defaultProps;
|
|
914
|
-
if (element.type && element.type.defaultProps) {
|
|
915
|
-
defaultProps = element.type.defaultProps;
|
|
916
|
-
}
|
|
917
|
-
for (propName in config) {
|
|
918
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
919
|
-
if (config[propName] === void 0 && defaultProps !== void 0) {
|
|
920
|
-
props[propName] = defaultProps[propName];
|
|
921
|
-
} else {
|
|
922
|
-
props[propName] = config[propName];
|
|
923
|
-
}
|
|
924
|
-
}
|
|
925
|
-
}
|
|
926
|
-
}
|
|
927
|
-
var childrenLength = arguments.length - 2;
|
|
928
|
-
if (childrenLength === 1) {
|
|
929
|
-
props.children = children;
|
|
930
|
-
} else if (childrenLength > 1) {
|
|
931
|
-
var childArray = Array(childrenLength);
|
|
932
|
-
for (var i = 0; i < childrenLength; i++) {
|
|
933
|
-
childArray[i] = arguments[i + 2];
|
|
934
|
-
}
|
|
935
|
-
props.children = childArray;
|
|
936
|
-
}
|
|
937
|
-
return ReactElement(element.type, key, ref, self, source, owner, props);
|
|
938
|
-
}
|
|
939
|
-
function isValidElement(object) {
|
|
940
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
941
|
-
}
|
|
942
|
-
var SEPARATOR = ".";
|
|
943
|
-
var SUBSEPARATOR = ":";
|
|
944
|
-
function escape(key) {
|
|
945
|
-
var escapeRegex = /[=:]/g;
|
|
946
|
-
var escaperLookup = {
|
|
947
|
-
"=": "=0",
|
|
948
|
-
":": "=2"
|
|
949
|
-
};
|
|
950
|
-
var escapedString = key.replace(escapeRegex, function(match) {
|
|
951
|
-
return escaperLookup[match];
|
|
952
|
-
});
|
|
953
|
-
return "$" + escapedString;
|
|
954
|
-
}
|
|
955
|
-
var didWarnAboutMaps = false;
|
|
956
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
957
|
-
function escapeUserProvidedKey(text) {
|
|
958
|
-
return text.replace(userProvidedKeyEscapeRegex, "$&/");
|
|
959
|
-
}
|
|
960
|
-
function getElementKey(element, index) {
|
|
961
|
-
if (typeof element === "object" && element !== null && element.key != null) {
|
|
962
|
-
{
|
|
963
|
-
checkKeyStringCoercion(element.key);
|
|
964
|
-
}
|
|
965
|
-
return escape("" + element.key);
|
|
966
|
-
}
|
|
967
|
-
return index.toString(36);
|
|
968
|
-
}
|
|
969
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
970
|
-
var type = typeof children;
|
|
971
|
-
if (type === "undefined" || type === "boolean") {
|
|
972
|
-
children = null;
|
|
973
|
-
}
|
|
974
|
-
var invokeCallback = false;
|
|
975
|
-
if (children === null) {
|
|
976
|
-
invokeCallback = true;
|
|
977
|
-
} else {
|
|
978
|
-
switch (type) {
|
|
979
|
-
case "string":
|
|
980
|
-
case "number":
|
|
981
|
-
invokeCallback = true;
|
|
982
|
-
break;
|
|
983
|
-
case "object":
|
|
984
|
-
switch (children.$$typeof) {
|
|
985
|
-
case REACT_ELEMENT_TYPE:
|
|
986
|
-
case REACT_PORTAL_TYPE:
|
|
987
|
-
invokeCallback = true;
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
if (invokeCallback) {
|
|
992
|
-
var _child = children;
|
|
993
|
-
var mappedChild = callback(_child);
|
|
994
|
-
var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
|
|
995
|
-
if (isArray(mappedChild)) {
|
|
996
|
-
var escapedChildKey = "";
|
|
997
|
-
if (childKey != null) {
|
|
998
|
-
escapedChildKey = escapeUserProvidedKey(childKey) + "/";
|
|
999
|
-
}
|
|
1000
|
-
mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
|
|
1001
|
-
return c;
|
|
1002
|
-
});
|
|
1003
|
-
} else if (mappedChild != null) {
|
|
1004
|
-
if (isValidElement(mappedChild)) {
|
|
1005
|
-
{
|
|
1006
|
-
if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
|
|
1007
|
-
checkKeyStringCoercion(mappedChild.key);
|
|
1008
|
-
}
|
|
1009
|
-
}
|
|
1010
|
-
mappedChild = cloneAndReplaceKey(
|
|
1011
|
-
mappedChild,
|
|
1012
|
-
// Keep both the (mapped) and old keys if they differ, just as
|
|
1013
|
-
// traverseAllChildren used to do for objects as children
|
|
1014
|
-
escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
1015
|
-
(mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
|
|
1016
|
-
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
1017
|
-
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
1018
|
-
escapeUserProvidedKey("" + mappedChild.key) + "/"
|
|
1019
|
-
) : "") + childKey
|
|
1020
|
-
);
|
|
1021
|
-
}
|
|
1022
|
-
array.push(mappedChild);
|
|
1023
|
-
}
|
|
1024
|
-
return 1;
|
|
1025
|
-
}
|
|
1026
|
-
var child;
|
|
1027
|
-
var nextName;
|
|
1028
|
-
var subtreeCount = 0;
|
|
1029
|
-
var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
1030
|
-
if (isArray(children)) {
|
|
1031
|
-
for (var i = 0; i < children.length; i++) {
|
|
1032
|
-
child = children[i];
|
|
1033
|
-
nextName = nextNamePrefix + getElementKey(child, i);
|
|
1034
|
-
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
1035
|
-
}
|
|
1036
|
-
} else {
|
|
1037
|
-
var iteratorFn = getIteratorFn(children);
|
|
1038
|
-
if (typeof iteratorFn === "function") {
|
|
1039
|
-
var iterableChildren = children;
|
|
1040
|
-
{
|
|
1041
|
-
if (iteratorFn === iterableChildren.entries) {
|
|
1042
|
-
if (!didWarnAboutMaps) {
|
|
1043
|
-
warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
|
|
1044
|
-
}
|
|
1045
|
-
didWarnAboutMaps = true;
|
|
1046
|
-
}
|
|
1047
|
-
}
|
|
1048
|
-
var iterator = iteratorFn.call(iterableChildren);
|
|
1049
|
-
var step;
|
|
1050
|
-
var ii = 0;
|
|
1051
|
-
while (!(step = iterator.next()).done) {
|
|
1052
|
-
child = step.value;
|
|
1053
|
-
nextName = nextNamePrefix + getElementKey(child, ii++);
|
|
1054
|
-
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
1055
|
-
}
|
|
1056
|
-
} else if (type === "object") {
|
|
1057
|
-
var childrenString = String(children);
|
|
1058
|
-
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.");
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
1061
|
-
return subtreeCount;
|
|
1062
|
-
}
|
|
1063
|
-
function mapChildren(children, func, context) {
|
|
1064
|
-
if (children == null) {
|
|
1065
|
-
return children;
|
|
1066
|
-
}
|
|
1067
|
-
var result = [];
|
|
1068
|
-
var count = 0;
|
|
1069
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
1070
|
-
return func.call(context, child, count++);
|
|
1071
|
-
});
|
|
1072
|
-
return result;
|
|
1073
|
-
}
|
|
1074
|
-
function countChildren(children) {
|
|
1075
|
-
var n = 0;
|
|
1076
|
-
mapChildren(children, function() {
|
|
1077
|
-
n++;
|
|
1623
|
+
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
1624
|
+
enumerable: false,
|
|
1625
|
+
get: elementRefGetterWithDeprecationWarning
|
|
1626
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
1627
|
+
type._store = {};
|
|
1628
|
+
Object.defineProperty(type._store, "validated", {
|
|
1629
|
+
configurable: false,
|
|
1630
|
+
enumerable: false,
|
|
1631
|
+
writable: true,
|
|
1632
|
+
value: 0
|
|
1633
|
+
});
|
|
1634
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
1635
|
+
configurable: false,
|
|
1636
|
+
enumerable: false,
|
|
1637
|
+
writable: true,
|
|
1638
|
+
value: null
|
|
1639
|
+
});
|
|
1640
|
+
Object.defineProperty(type, "_debugStack", {
|
|
1641
|
+
configurable: false,
|
|
1642
|
+
enumerable: false,
|
|
1643
|
+
writable: true,
|
|
1644
|
+
value: debugStack
|
|
1645
|
+
});
|
|
1646
|
+
Object.defineProperty(type, "_debugTask", {
|
|
1647
|
+
configurable: false,
|
|
1648
|
+
enumerable: false,
|
|
1649
|
+
writable: true,
|
|
1650
|
+
value: debugTask
|
|
1651
|
+
});
|
|
1652
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1653
|
+
return type;
|
|
1654
|
+
}
|
|
1655
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
|
|
1656
|
+
var children = config.children;
|
|
1657
|
+
if (void 0 !== children)
|
|
1658
|
+
if (isStaticChildren)
|
|
1659
|
+
if (isArrayImpl(children)) {
|
|
1660
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
1661
|
+
validateChildKeys(children[isStaticChildren]);
|
|
1662
|
+
Object.freeze && Object.freeze(children);
|
|
1663
|
+
} else
|
|
1664
|
+
console.error(
|
|
1665
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1666
|
+
);
|
|
1667
|
+
else
|
|
1668
|
+
validateChildKeys(children);
|
|
1669
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
1670
|
+
children = getComponentNameFromType(type);
|
|
1671
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
1672
|
+
return "key" !== k;
|
|
1078
1673
|
});
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
},
|
|
1162
|
-
set: function(_threadCount) {
|
|
1163
|
-
context._threadCount = _threadCount;
|
|
1164
|
-
}
|
|
1165
|
-
},
|
|
1166
|
-
Consumer: {
|
|
1167
|
-
get: function() {
|
|
1168
|
-
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
|
1169
|
-
hasWarnedAboutUsingNestedContextConsumers = true;
|
|
1170
|
-
error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
|
|
1171
|
-
}
|
|
1172
|
-
return context.Consumer;
|
|
1173
|
-
}
|
|
1174
|
-
},
|
|
1175
|
-
displayName: {
|
|
1176
|
-
get: function() {
|
|
1177
|
-
return context.displayName;
|
|
1178
|
-
},
|
|
1179
|
-
set: function(displayName) {
|
|
1180
|
-
if (!hasWarnedAboutDisplayNameOnConsumer) {
|
|
1181
|
-
warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
|
|
1182
|
-
hasWarnedAboutDisplayNameOnConsumer = true;
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
}
|
|
1186
|
-
});
|
|
1187
|
-
context.Consumer = Consumer;
|
|
1188
|
-
}
|
|
1189
|
-
{
|
|
1190
|
-
context._currentRenderer = null;
|
|
1191
|
-
context._currentRenderer2 = null;
|
|
1192
|
-
}
|
|
1193
|
-
return context;
|
|
1194
|
-
}
|
|
1195
|
-
var Uninitialized = -1;
|
|
1196
|
-
var Pending = 0;
|
|
1197
|
-
var Resolved = 1;
|
|
1198
|
-
var Rejected = 2;
|
|
1199
|
-
function lazyInitializer(payload) {
|
|
1200
|
-
if (payload._status === Uninitialized) {
|
|
1201
|
-
var ctor = payload._result;
|
|
1202
|
-
var thenable = ctor();
|
|
1203
|
-
thenable.then(function(moduleObject2) {
|
|
1204
|
-
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1205
|
-
var resolved = payload;
|
|
1206
|
-
resolved._status = Resolved;
|
|
1207
|
-
resolved._result = moduleObject2;
|
|
1208
|
-
}
|
|
1209
|
-
}, function(error2) {
|
|
1210
|
-
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1211
|
-
var rejected = payload;
|
|
1212
|
-
rejected._status = Rejected;
|
|
1213
|
-
rejected._result = error2;
|
|
1214
|
-
}
|
|
1215
|
-
});
|
|
1216
|
-
if (payload._status === Uninitialized) {
|
|
1217
|
-
var pending = payload;
|
|
1218
|
-
pending._status = Pending;
|
|
1219
|
-
pending._result = thenable;
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
if (payload._status === Resolved) {
|
|
1223
|
-
var moduleObject = payload._result;
|
|
1224
|
-
{
|
|
1225
|
-
if (moduleObject === void 0) {
|
|
1226
|
-
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);
|
|
1227
|
-
}
|
|
1228
|
-
}
|
|
1229
|
-
{
|
|
1230
|
-
if (!("default" in moduleObject)) {
|
|
1231
|
-
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);
|
|
1232
|
-
}
|
|
1233
|
-
}
|
|
1234
|
-
return moduleObject.default;
|
|
1235
|
-
} else {
|
|
1236
|
-
throw payload._result;
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
function lazy(ctor) {
|
|
1240
|
-
var payload = {
|
|
1241
|
-
// We use these fields to store the result.
|
|
1242
|
-
_status: Uninitialized,
|
|
1243
|
-
_result: ctor
|
|
1244
|
-
};
|
|
1245
|
-
var lazyType = {
|
|
1246
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1247
|
-
_payload: payload,
|
|
1248
|
-
_init: lazyInitializer
|
|
1249
|
-
};
|
|
1250
|
-
{
|
|
1251
|
-
var defaultProps;
|
|
1252
|
-
var propTypes;
|
|
1253
|
-
Object.defineProperties(lazyType, {
|
|
1254
|
-
defaultProps: {
|
|
1255
|
-
configurable: true,
|
|
1256
|
-
get: function() {
|
|
1257
|
-
return defaultProps;
|
|
1258
|
-
},
|
|
1259
|
-
set: function(newDefaultProps) {
|
|
1260
|
-
error("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.");
|
|
1261
|
-
defaultProps = newDefaultProps;
|
|
1262
|
-
Object.defineProperty(lazyType, "defaultProps", {
|
|
1263
|
-
enumerable: true
|
|
1264
|
-
});
|
|
1265
|
-
}
|
|
1266
|
-
},
|
|
1267
|
-
propTypes: {
|
|
1268
|
-
configurable: true,
|
|
1269
|
-
get: function() {
|
|
1270
|
-
return propTypes;
|
|
1271
|
-
},
|
|
1272
|
-
set: function(newPropTypes) {
|
|
1273
|
-
error("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.");
|
|
1274
|
-
propTypes = newPropTypes;
|
|
1275
|
-
Object.defineProperty(lazyType, "propTypes", {
|
|
1276
|
-
enumerable: true
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
});
|
|
1281
|
-
}
|
|
1282
|
-
return lazyType;
|
|
1283
|
-
}
|
|
1284
|
-
function forwardRef(render) {
|
|
1285
|
-
{
|
|
1286
|
-
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
1287
|
-
error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
|
|
1288
|
-
} else if (typeof render !== "function") {
|
|
1289
|
-
error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
|
|
1290
|
-
} else {
|
|
1291
|
-
if (render.length !== 0 && render.length !== 2) {
|
|
1292
|
-
error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
if (render != null) {
|
|
1296
|
-
if (render.defaultProps != null || render.propTypes != null) {
|
|
1297
|
-
error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
}
|
|
1301
|
-
var elementType = {
|
|
1302
|
-
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1303
|
-
render
|
|
1304
|
-
};
|
|
1305
|
-
{
|
|
1306
|
-
var ownName;
|
|
1307
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1308
|
-
enumerable: false,
|
|
1309
|
-
configurable: true,
|
|
1310
|
-
get: function() {
|
|
1311
|
-
return ownName;
|
|
1312
|
-
},
|
|
1313
|
-
set: function(name) {
|
|
1314
|
-
ownName = name;
|
|
1315
|
-
if (!render.name && !render.displayName) {
|
|
1316
|
-
render.displayName = name;
|
|
1317
|
-
}
|
|
1318
|
-
}
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
|
-
return elementType;
|
|
1322
|
-
}
|
|
1323
|
-
var REACT_MODULE_REFERENCE;
|
|
1324
|
-
{
|
|
1325
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
1326
|
-
}
|
|
1327
|
-
function isValidElementType(type) {
|
|
1328
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
1329
|
-
return true;
|
|
1330
|
-
}
|
|
1331
|
-
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) {
|
|
1332
|
-
return true;
|
|
1333
|
-
}
|
|
1334
|
-
if (typeof type === "object" && type !== null) {
|
|
1335
|
-
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
|
|
1336
|
-
// types supported by any Flight configuration anywhere since
|
|
1337
|
-
// we don't know which Flight build this will end up being used
|
|
1338
|
-
// with.
|
|
1339
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
1340
|
-
return true;
|
|
1341
|
-
}
|
|
1342
|
-
}
|
|
1343
|
-
return false;
|
|
1344
|
-
}
|
|
1345
|
-
function memo(type, compare) {
|
|
1346
|
-
{
|
|
1347
|
-
if (!isValidElementType(type)) {
|
|
1348
|
-
error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
var elementType = {
|
|
1352
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1353
|
-
type,
|
|
1354
|
-
compare: compare === void 0 ? null : compare
|
|
1355
|
-
};
|
|
1356
|
-
{
|
|
1357
|
-
var ownName;
|
|
1358
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1359
|
-
enumerable: false,
|
|
1360
|
-
configurable: true,
|
|
1361
|
-
get: function() {
|
|
1362
|
-
return ownName;
|
|
1363
|
-
},
|
|
1364
|
-
set: function(name) {
|
|
1365
|
-
ownName = name;
|
|
1366
|
-
if (!type.name && !type.displayName) {
|
|
1367
|
-
type.displayName = name;
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
});
|
|
1371
|
-
}
|
|
1372
|
-
return elementType;
|
|
1373
|
-
}
|
|
1374
|
-
function resolveDispatcher() {
|
|
1375
|
-
var dispatcher = ReactCurrentDispatcher.current;
|
|
1376
|
-
{
|
|
1377
|
-
if (dispatcher === null) {
|
|
1378
|
-
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.");
|
|
1379
|
-
}
|
|
1380
|
-
}
|
|
1381
|
-
return dispatcher;
|
|
1382
|
-
}
|
|
1383
|
-
function useContext(Context) {
|
|
1384
|
-
var dispatcher = resolveDispatcher();
|
|
1385
|
-
{
|
|
1386
|
-
if (Context._context !== void 0) {
|
|
1387
|
-
var realContext = Context._context;
|
|
1388
|
-
if (realContext.Consumer === Context) {
|
|
1389
|
-
error("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?");
|
|
1390
|
-
} else if (realContext.Provider === Context) {
|
|
1391
|
-
error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
}
|
|
1395
|
-
return dispatcher.useContext(Context);
|
|
1396
|
-
}
|
|
1397
|
-
function useState(initialState) {
|
|
1398
|
-
var dispatcher = resolveDispatcher();
|
|
1399
|
-
return dispatcher.useState(initialState);
|
|
1400
|
-
}
|
|
1401
|
-
function useReducer(reducer, initialArg, init) {
|
|
1402
|
-
var dispatcher = resolveDispatcher();
|
|
1403
|
-
return dispatcher.useReducer(reducer, initialArg, init);
|
|
1404
|
-
}
|
|
1405
|
-
function useRef2(initialValue) {
|
|
1406
|
-
var dispatcher = resolveDispatcher();
|
|
1407
|
-
return dispatcher.useRef(initialValue);
|
|
1408
|
-
}
|
|
1409
|
-
function useEffect2(create, deps) {
|
|
1410
|
-
var dispatcher = resolveDispatcher();
|
|
1411
|
-
return dispatcher.useEffect(create, deps);
|
|
1412
|
-
}
|
|
1413
|
-
function useInsertionEffect(create, deps) {
|
|
1414
|
-
var dispatcher = resolveDispatcher();
|
|
1415
|
-
return dispatcher.useInsertionEffect(create, deps);
|
|
1416
|
-
}
|
|
1417
|
-
function useLayoutEffect(create, deps) {
|
|
1418
|
-
var dispatcher = resolveDispatcher();
|
|
1419
|
-
return dispatcher.useLayoutEffect(create, deps);
|
|
1420
|
-
}
|
|
1421
|
-
function useCallback(callback, deps) {
|
|
1422
|
-
var dispatcher = resolveDispatcher();
|
|
1423
|
-
return dispatcher.useCallback(callback, deps);
|
|
1424
|
-
}
|
|
1425
|
-
function useMemo(create, deps) {
|
|
1426
|
-
var dispatcher = resolveDispatcher();
|
|
1427
|
-
return dispatcher.useMemo(create, deps);
|
|
1428
|
-
}
|
|
1429
|
-
function useImperativeHandle(ref, create, deps) {
|
|
1430
|
-
var dispatcher = resolveDispatcher();
|
|
1431
|
-
return dispatcher.useImperativeHandle(ref, create, deps);
|
|
1432
|
-
}
|
|
1433
|
-
function useDebugValue(value, formatterFn) {
|
|
1434
|
-
{
|
|
1435
|
-
var dispatcher = resolveDispatcher();
|
|
1436
|
-
return dispatcher.useDebugValue(value, formatterFn);
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
function useTransition() {
|
|
1440
|
-
var dispatcher = resolveDispatcher();
|
|
1441
|
-
return dispatcher.useTransition();
|
|
1442
|
-
}
|
|
1443
|
-
function useDeferredValue(value) {
|
|
1444
|
-
var dispatcher = resolveDispatcher();
|
|
1445
|
-
return dispatcher.useDeferredValue(value);
|
|
1446
|
-
}
|
|
1447
|
-
function useId() {
|
|
1448
|
-
var dispatcher = resolveDispatcher();
|
|
1449
|
-
return dispatcher.useId();
|
|
1450
|
-
}
|
|
1451
|
-
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
1452
|
-
var dispatcher = resolveDispatcher();
|
|
1453
|
-
return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
1454
|
-
}
|
|
1455
|
-
var disabledDepth = 0;
|
|
1456
|
-
var prevLog;
|
|
1457
|
-
var prevInfo;
|
|
1458
|
-
var prevWarn;
|
|
1459
|
-
var prevError;
|
|
1460
|
-
var prevGroup;
|
|
1461
|
-
var prevGroupCollapsed;
|
|
1462
|
-
var prevGroupEnd;
|
|
1463
|
-
function disabledLog() {
|
|
1464
|
-
}
|
|
1465
|
-
disabledLog.__reactDisabledLog = true;
|
|
1466
|
-
function disableLogs() {
|
|
1467
|
-
{
|
|
1468
|
-
if (disabledDepth === 0) {
|
|
1469
|
-
prevLog = console.log;
|
|
1470
|
-
prevInfo = console.info;
|
|
1471
|
-
prevWarn = console.warn;
|
|
1472
|
-
prevError = console.error;
|
|
1473
|
-
prevGroup = console.group;
|
|
1474
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
1475
|
-
prevGroupEnd = console.groupEnd;
|
|
1476
|
-
var props = {
|
|
1477
|
-
configurable: true,
|
|
1478
|
-
enumerable: true,
|
|
1479
|
-
value: disabledLog,
|
|
1480
|
-
writable: true
|
|
1481
|
-
};
|
|
1482
|
-
Object.defineProperties(console, {
|
|
1483
|
-
info: props,
|
|
1484
|
-
log: props,
|
|
1485
|
-
warn: props,
|
|
1486
|
-
error: props,
|
|
1487
|
-
group: props,
|
|
1488
|
-
groupCollapsed: props,
|
|
1489
|
-
groupEnd: props
|
|
1490
|
-
});
|
|
1491
|
-
}
|
|
1492
|
-
disabledDepth++;
|
|
1493
|
-
}
|
|
1494
|
-
}
|
|
1495
|
-
function reenableLogs() {
|
|
1496
|
-
{
|
|
1497
|
-
disabledDepth--;
|
|
1498
|
-
if (disabledDepth === 0) {
|
|
1499
|
-
var props = {
|
|
1500
|
-
configurable: true,
|
|
1501
|
-
enumerable: true,
|
|
1502
|
-
writable: true
|
|
1503
|
-
};
|
|
1504
|
-
Object.defineProperties(console, {
|
|
1505
|
-
log: assign({}, props, {
|
|
1506
|
-
value: prevLog
|
|
1507
|
-
}),
|
|
1508
|
-
info: assign({}, props, {
|
|
1509
|
-
value: prevInfo
|
|
1510
|
-
}),
|
|
1511
|
-
warn: assign({}, props, {
|
|
1512
|
-
value: prevWarn
|
|
1513
|
-
}),
|
|
1514
|
-
error: assign({}, props, {
|
|
1515
|
-
value: prevError
|
|
1516
|
-
}),
|
|
1517
|
-
group: assign({}, props, {
|
|
1518
|
-
value: prevGroup
|
|
1519
|
-
}),
|
|
1520
|
-
groupCollapsed: assign({}, props, {
|
|
1521
|
-
value: prevGroupCollapsed
|
|
1522
|
-
}),
|
|
1523
|
-
groupEnd: assign({}, props, {
|
|
1524
|
-
value: prevGroupEnd
|
|
1525
|
-
})
|
|
1526
|
-
});
|
|
1527
|
-
}
|
|
1528
|
-
if (disabledDepth < 0) {
|
|
1529
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1530
|
-
}
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
|
|
1534
|
-
var prefix;
|
|
1535
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
1536
|
-
{
|
|
1537
|
-
if (prefix === void 0) {
|
|
1538
|
-
try {
|
|
1539
|
-
throw Error();
|
|
1540
|
-
} catch (x) {
|
|
1541
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
1542
|
-
prefix = match && match[1] || "";
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
return "\n" + prefix + name;
|
|
1546
|
-
}
|
|
1547
|
-
}
|
|
1548
|
-
var reentry = false;
|
|
1549
|
-
var componentFrameCache;
|
|
1550
|
-
{
|
|
1551
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
1552
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
1553
|
-
}
|
|
1554
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
1555
|
-
if (!fn || reentry) {
|
|
1556
|
-
return "";
|
|
1557
|
-
}
|
|
1558
|
-
{
|
|
1559
|
-
var frame = componentFrameCache.get(fn);
|
|
1560
|
-
if (frame !== void 0) {
|
|
1561
|
-
return frame;
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
var control;
|
|
1565
|
-
reentry = true;
|
|
1566
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
1567
|
-
Error.prepareStackTrace = void 0;
|
|
1568
|
-
var previousDispatcher;
|
|
1569
|
-
{
|
|
1570
|
-
previousDispatcher = ReactCurrentDispatcher$1.current;
|
|
1571
|
-
ReactCurrentDispatcher$1.current = null;
|
|
1572
|
-
disableLogs();
|
|
1573
|
-
}
|
|
1574
|
-
try {
|
|
1575
|
-
if (construct) {
|
|
1576
|
-
var Fake = function() {
|
|
1577
|
-
throw Error();
|
|
1578
|
-
};
|
|
1579
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
1580
|
-
set: function() {
|
|
1581
|
-
throw Error();
|
|
1582
|
-
}
|
|
1583
|
-
});
|
|
1584
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
1585
|
-
try {
|
|
1586
|
-
Reflect.construct(Fake, []);
|
|
1587
|
-
} catch (x) {
|
|
1588
|
-
control = x;
|
|
1589
|
-
}
|
|
1590
|
-
Reflect.construct(fn, [], Fake);
|
|
1591
|
-
} else {
|
|
1592
|
-
try {
|
|
1593
|
-
Fake.call();
|
|
1594
|
-
} catch (x) {
|
|
1595
|
-
control = x;
|
|
1596
|
-
}
|
|
1597
|
-
fn.call(Fake.prototype);
|
|
1598
|
-
}
|
|
1599
|
-
} else {
|
|
1600
|
-
try {
|
|
1601
|
-
throw Error();
|
|
1602
|
-
} catch (x) {
|
|
1603
|
-
control = x;
|
|
1604
|
-
}
|
|
1605
|
-
fn();
|
|
1606
|
-
}
|
|
1607
|
-
} catch (sample) {
|
|
1608
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
1609
|
-
var sampleLines = sample.stack.split("\n");
|
|
1610
|
-
var controlLines = control.stack.split("\n");
|
|
1611
|
-
var s = sampleLines.length - 1;
|
|
1612
|
-
var c = controlLines.length - 1;
|
|
1613
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
1614
|
-
c--;
|
|
1615
|
-
}
|
|
1616
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
1617
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
1618
|
-
if (s !== 1 || c !== 1) {
|
|
1619
|
-
do {
|
|
1620
|
-
s--;
|
|
1621
|
-
c--;
|
|
1622
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
1623
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
1624
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
1625
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
1626
|
-
}
|
|
1627
|
-
{
|
|
1628
|
-
if (typeof fn === "function") {
|
|
1629
|
-
componentFrameCache.set(fn, _frame);
|
|
1630
|
-
}
|
|
1631
|
-
}
|
|
1632
|
-
return _frame;
|
|
1633
|
-
}
|
|
1634
|
-
} while (s >= 1 && c >= 0);
|
|
1635
|
-
}
|
|
1636
|
-
break;
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
} finally {
|
|
1641
|
-
reentry = false;
|
|
1642
|
-
{
|
|
1643
|
-
ReactCurrentDispatcher$1.current = previousDispatcher;
|
|
1644
|
-
reenableLogs();
|
|
1645
|
-
}
|
|
1646
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
1647
|
-
}
|
|
1648
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
1649
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
1650
|
-
{
|
|
1651
|
-
if (typeof fn === "function") {
|
|
1652
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
1653
|
-
}
|
|
1654
|
-
}
|
|
1655
|
-
return syntheticFrame;
|
|
1656
|
-
}
|
|
1657
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
1658
|
-
{
|
|
1659
|
-
return describeNativeComponentFrame(fn, false);
|
|
1660
|
-
}
|
|
1661
|
-
}
|
|
1662
|
-
function shouldConstruct(Component2) {
|
|
1663
|
-
var prototype = Component2.prototype;
|
|
1664
|
-
return !!(prototype && prototype.isReactComponent);
|
|
1665
|
-
}
|
|
1666
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
1667
|
-
if (type == null) {
|
|
1668
|
-
return "";
|
|
1669
|
-
}
|
|
1670
|
-
if (typeof type === "function") {
|
|
1671
|
-
{
|
|
1672
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
if (typeof type === "string") {
|
|
1676
|
-
return describeBuiltInComponentFrame(type);
|
|
1677
|
-
}
|
|
1678
|
-
switch (type) {
|
|
1679
|
-
case REACT_SUSPENSE_TYPE:
|
|
1680
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
1681
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1682
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
1683
|
-
}
|
|
1684
|
-
if (typeof type === "object") {
|
|
1685
|
-
switch (type.$$typeof) {
|
|
1686
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1687
|
-
return describeFunctionComponentFrame(type.render);
|
|
1688
|
-
case REACT_MEMO_TYPE:
|
|
1689
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
1690
|
-
case REACT_LAZY_TYPE: {
|
|
1691
|
-
var lazyComponent = type;
|
|
1692
|
-
var payload = lazyComponent._payload;
|
|
1693
|
-
var init = lazyComponent._init;
|
|
1694
|
-
try {
|
|
1695
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
1696
|
-
} catch (x) {
|
|
1697
|
-
}
|
|
1698
|
-
}
|
|
1699
|
-
}
|
|
1700
|
-
}
|
|
1701
|
-
return "";
|
|
1702
|
-
}
|
|
1703
|
-
var loggedTypeFailures = {};
|
|
1704
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1705
|
-
function setCurrentlyValidatingElement(element) {
|
|
1706
|
-
{
|
|
1707
|
-
if (element) {
|
|
1708
|
-
var owner = element._owner;
|
|
1709
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1710
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
1711
|
-
} else {
|
|
1712
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
1713
|
-
}
|
|
1714
|
-
}
|
|
1715
|
-
}
|
|
1716
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
1717
|
-
{
|
|
1718
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
1719
|
-
for (var typeSpecName in typeSpecs) {
|
|
1720
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
1721
|
-
var error$1 = void 0;
|
|
1722
|
-
try {
|
|
1723
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
1724
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1725
|
-
err.name = "Invariant Violation";
|
|
1726
|
-
throw err;
|
|
1727
|
-
}
|
|
1728
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1729
|
-
} catch (ex) {
|
|
1730
|
-
error$1 = ex;
|
|
1731
|
-
}
|
|
1732
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
1733
|
-
setCurrentlyValidatingElement(element);
|
|
1734
|
-
error("%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).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
1735
|
-
setCurrentlyValidatingElement(null);
|
|
1736
|
-
}
|
|
1737
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
1738
|
-
loggedTypeFailures[error$1.message] = true;
|
|
1739
|
-
setCurrentlyValidatingElement(element);
|
|
1740
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
1741
|
-
setCurrentlyValidatingElement(null);
|
|
1742
|
-
}
|
|
1743
|
-
}
|
|
1744
|
-
}
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1747
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
1748
|
-
{
|
|
1749
|
-
if (element) {
|
|
1750
|
-
var owner = element._owner;
|
|
1751
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1752
|
-
setExtraStackFrame(stack);
|
|
1753
|
-
} else {
|
|
1754
|
-
setExtraStackFrame(null);
|
|
1755
|
-
}
|
|
1756
|
-
}
|
|
1757
|
-
}
|
|
1758
|
-
var propTypesMisspellWarningShown;
|
|
1759
|
-
{
|
|
1760
|
-
propTypesMisspellWarningShown = false;
|
|
1761
|
-
}
|
|
1762
|
-
function getDeclarationErrorAddendum() {
|
|
1763
|
-
if (ReactCurrentOwner.current) {
|
|
1764
|
-
var name = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
1765
|
-
if (name) {
|
|
1766
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
1767
|
-
}
|
|
1768
|
-
}
|
|
1769
|
-
return "";
|
|
1770
|
-
}
|
|
1771
|
-
function getSourceInfoErrorAddendum(source) {
|
|
1772
|
-
if (source !== void 0) {
|
|
1773
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
1774
|
-
var lineNumber = source.lineNumber;
|
|
1775
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
1776
|
-
}
|
|
1777
|
-
return "";
|
|
1778
|
-
}
|
|
1779
|
-
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
1780
|
-
if (elementProps !== null && elementProps !== void 0) {
|
|
1781
|
-
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
1782
|
-
}
|
|
1783
|
-
return "";
|
|
1784
|
-
}
|
|
1785
|
-
var ownerHasKeyUseWarning = {};
|
|
1786
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
1787
|
-
var info = getDeclarationErrorAddendum();
|
|
1788
|
-
if (!info) {
|
|
1789
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
1790
|
-
if (parentName) {
|
|
1791
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
1792
|
-
}
|
|
1793
|
-
}
|
|
1794
|
-
return info;
|
|
1795
|
-
}
|
|
1796
|
-
function validateExplicitKey(element, parentType) {
|
|
1797
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
1798
|
-
return;
|
|
1799
|
-
}
|
|
1800
|
-
element._store.validated = true;
|
|
1801
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
1802
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
1803
|
-
return;
|
|
1804
|
-
}
|
|
1805
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
1806
|
-
var childOwner = "";
|
|
1807
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
1808
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
1809
|
-
}
|
|
1810
|
-
{
|
|
1811
|
-
setCurrentlyValidatingElement$1(element);
|
|
1812
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
1813
|
-
setCurrentlyValidatingElement$1(null);
|
|
1814
|
-
}
|
|
1815
|
-
}
|
|
1816
|
-
function validateChildKeys(node, parentType) {
|
|
1817
|
-
if (typeof node !== "object") {
|
|
1818
|
-
return;
|
|
1819
|
-
}
|
|
1820
|
-
if (isArray(node)) {
|
|
1821
|
-
for (var i = 0; i < node.length; i++) {
|
|
1822
|
-
var child = node[i];
|
|
1823
|
-
if (isValidElement(child)) {
|
|
1824
|
-
validateExplicitKey(child, parentType);
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
} else if (isValidElement(node)) {
|
|
1828
|
-
if (node._store) {
|
|
1829
|
-
node._store.validated = true;
|
|
1830
|
-
}
|
|
1831
|
-
} else if (node) {
|
|
1832
|
-
var iteratorFn = getIteratorFn(node);
|
|
1833
|
-
if (typeof iteratorFn === "function") {
|
|
1834
|
-
if (iteratorFn !== node.entries) {
|
|
1835
|
-
var iterator = iteratorFn.call(node);
|
|
1836
|
-
var step;
|
|
1837
|
-
while (!(step = iterator.next()).done) {
|
|
1838
|
-
if (isValidElement(step.value)) {
|
|
1839
|
-
validateExplicitKey(step.value, parentType);
|
|
1840
|
-
}
|
|
1841
|
-
}
|
|
1842
|
-
}
|
|
1843
|
-
}
|
|
1844
|
-
}
|
|
1845
|
-
}
|
|
1846
|
-
function validatePropTypes(element) {
|
|
1847
|
-
{
|
|
1848
|
-
var type = element.type;
|
|
1849
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
1850
|
-
return;
|
|
1851
|
-
}
|
|
1852
|
-
var propTypes;
|
|
1853
|
-
if (typeof type === "function") {
|
|
1854
|
-
propTypes = type.propTypes;
|
|
1855
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
1856
|
-
// Inner props are checked in the reconciler.
|
|
1857
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
1858
|
-
propTypes = type.propTypes;
|
|
1859
|
-
} else {
|
|
1860
|
-
return;
|
|
1861
|
-
}
|
|
1862
|
-
if (propTypes) {
|
|
1863
|
-
var name = getComponentNameFromType(type);
|
|
1864
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
1865
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
1866
|
-
propTypesMisspellWarningShown = true;
|
|
1867
|
-
var _name = getComponentNameFromType(type);
|
|
1868
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
1869
|
-
}
|
|
1870
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
1871
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
}
|
|
1875
|
-
function validateFragmentProps(fragment) {
|
|
1876
|
-
{
|
|
1877
|
-
var keys = Object.keys(fragment.props);
|
|
1878
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1879
|
-
var key = keys[i];
|
|
1880
|
-
if (key !== "children" && key !== "key") {
|
|
1881
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1882
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
1883
|
-
setCurrentlyValidatingElement$1(null);
|
|
1884
|
-
break;
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
|
-
if (fragment.ref !== null) {
|
|
1888
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1889
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
1890
|
-
setCurrentlyValidatingElement$1(null);
|
|
1891
|
-
}
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
function createElementWithValidation(type, props, children) {
|
|
1895
|
-
var validType = isValidElementType(type);
|
|
1896
|
-
if (!validType) {
|
|
1897
|
-
var info = "";
|
|
1898
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
1899
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
1900
|
-
}
|
|
1901
|
-
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
1902
|
-
if (sourceInfo) {
|
|
1903
|
-
info += sourceInfo;
|
|
1904
|
-
} else {
|
|
1905
|
-
info += getDeclarationErrorAddendum();
|
|
1906
|
-
}
|
|
1907
|
-
var typeString;
|
|
1908
|
-
if (type === null) {
|
|
1909
|
-
typeString = "null";
|
|
1910
|
-
} else if (isArray(type)) {
|
|
1911
|
-
typeString = "array";
|
|
1912
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
1913
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
1914
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
1915
|
-
} else {
|
|
1916
|
-
typeString = typeof type;
|
|
1917
|
-
}
|
|
1918
|
-
{
|
|
1919
|
-
error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
1920
|
-
}
|
|
1921
|
-
}
|
|
1922
|
-
var element = createElement.apply(this, arguments);
|
|
1923
|
-
if (element == null) {
|
|
1924
|
-
return element;
|
|
1925
|
-
}
|
|
1926
|
-
if (validType) {
|
|
1927
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1928
|
-
validateChildKeys(arguments[i], type);
|
|
1929
|
-
}
|
|
1930
|
-
}
|
|
1931
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
1932
|
-
validateFragmentProps(element);
|
|
1933
|
-
} else {
|
|
1934
|
-
validatePropTypes(element);
|
|
1935
|
-
}
|
|
1936
|
-
return element;
|
|
1937
|
-
}
|
|
1938
|
-
var didWarnAboutDeprecatedCreateFactory = false;
|
|
1939
|
-
function createFactoryWithValidation(type) {
|
|
1940
|
-
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
1941
|
-
validatedFactory.type = type;
|
|
1942
|
-
{
|
|
1943
|
-
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
1944
|
-
didWarnAboutDeprecatedCreateFactory = true;
|
|
1945
|
-
warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
|
|
1946
|
-
}
|
|
1947
|
-
Object.defineProperty(validatedFactory, "type", {
|
|
1948
|
-
enumerable: false,
|
|
1949
|
-
get: function() {
|
|
1950
|
-
warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
|
|
1951
|
-
Object.defineProperty(this, "type", {
|
|
1952
|
-
value: type
|
|
1953
|
-
});
|
|
1954
|
-
return type;
|
|
1955
|
-
}
|
|
1956
|
-
});
|
|
1957
|
-
}
|
|
1958
|
-
return validatedFactory;
|
|
1959
|
-
}
|
|
1960
|
-
function cloneElementWithValidation(element, props, children) {
|
|
1961
|
-
var newElement = cloneElement.apply(this, arguments);
|
|
1962
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1963
|
-
validateChildKeys(arguments[i], newElement.type);
|
|
1964
|
-
}
|
|
1965
|
-
validatePropTypes(newElement);
|
|
1966
|
-
return newElement;
|
|
1967
|
-
}
|
|
1968
|
-
function startTransition(scope, options) {
|
|
1969
|
-
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
1970
|
-
ReactCurrentBatchConfig.transition = {};
|
|
1971
|
-
var currentTransition = ReactCurrentBatchConfig.transition;
|
|
1972
|
-
{
|
|
1973
|
-
ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1974
|
-
}
|
|
1975
|
-
try {
|
|
1976
|
-
scope();
|
|
1977
|
-
} finally {
|
|
1978
|
-
ReactCurrentBatchConfig.transition = prevTransition;
|
|
1979
|
-
{
|
|
1980
|
-
if (prevTransition === null && currentTransition._updatedFibers) {
|
|
1981
|
-
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
1982
|
-
if (updatedFibersCount > 10) {
|
|
1983
|
-
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.");
|
|
1984
|
-
}
|
|
1985
|
-
currentTransition._updatedFibers.clear();
|
|
1986
|
-
}
|
|
1987
|
-
}
|
|
1988
|
-
}
|
|
1989
|
-
}
|
|
1990
|
-
var didWarnAboutMessageChannel = false;
|
|
1991
|
-
var enqueueTaskImpl = null;
|
|
1992
|
-
function enqueueTask(task) {
|
|
1993
|
-
if (enqueueTaskImpl === null) {
|
|
1994
|
-
try {
|
|
1995
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
1996
|
-
var nodeRequire = module && module[requireString];
|
|
1997
|
-
enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate;
|
|
1998
|
-
} catch (_err) {
|
|
1999
|
-
enqueueTaskImpl = function(callback) {
|
|
2000
|
-
{
|
|
2001
|
-
if (didWarnAboutMessageChannel === false) {
|
|
2002
|
-
didWarnAboutMessageChannel = true;
|
|
2003
|
-
if (typeof MessageChannel === "undefined") {
|
|
2004
|
-
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.");
|
|
2005
|
-
}
|
|
2006
|
-
}
|
|
2007
|
-
}
|
|
2008
|
-
var channel = new MessageChannel();
|
|
2009
|
-
channel.port1.onmessage = callback;
|
|
2010
|
-
channel.port2.postMessage(void 0);
|
|
2011
|
-
};
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
return enqueueTaskImpl(task);
|
|
2015
|
-
}
|
|
2016
|
-
var actScopeDepth = 0;
|
|
2017
|
-
var didWarnNoAwaitAct = false;
|
|
2018
|
-
function act(callback) {
|
|
2019
|
-
{
|
|
2020
|
-
var prevActScopeDepth = actScopeDepth;
|
|
2021
|
-
actScopeDepth++;
|
|
2022
|
-
if (ReactCurrentActQueue.current === null) {
|
|
2023
|
-
ReactCurrentActQueue.current = [];
|
|
2024
|
-
}
|
|
2025
|
-
var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
|
|
2026
|
-
var result;
|
|
2027
|
-
try {
|
|
2028
|
-
ReactCurrentActQueue.isBatchingLegacy = true;
|
|
2029
|
-
result = callback();
|
|
2030
|
-
if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
|
|
2031
|
-
var queue = ReactCurrentActQueue.current;
|
|
2032
|
-
if (queue !== null) {
|
|
2033
|
-
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
|
|
2034
|
-
flushActQueue(queue);
|
|
2035
|
-
}
|
|
2036
|
-
}
|
|
2037
|
-
} catch (error2) {
|
|
2038
|
-
popActScope(prevActScopeDepth);
|
|
2039
|
-
throw error2;
|
|
2040
|
-
} finally {
|
|
2041
|
-
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
|
|
2042
|
-
}
|
|
2043
|
-
if (result !== null && typeof result === "object" && typeof result.then === "function") {
|
|
2044
|
-
var thenableResult = result;
|
|
2045
|
-
var wasAwaited = false;
|
|
2046
|
-
var thenable = {
|
|
2047
|
-
then: function(resolve, reject) {
|
|
2048
|
-
wasAwaited = true;
|
|
2049
|
-
thenableResult.then(function(returnValue2) {
|
|
2050
|
-
popActScope(prevActScopeDepth);
|
|
2051
|
-
if (actScopeDepth === 0) {
|
|
2052
|
-
recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
|
|
2053
|
-
} else {
|
|
2054
|
-
resolve(returnValue2);
|
|
2055
|
-
}
|
|
2056
|
-
}, function(error2) {
|
|
2057
|
-
popActScope(prevActScopeDepth);
|
|
2058
|
-
reject(error2);
|
|
2059
|
-
});
|
|
2060
|
-
}
|
|
2061
|
-
};
|
|
2062
|
-
{
|
|
2063
|
-
if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
|
|
2064
|
-
Promise.resolve().then(function() {
|
|
2065
|
-
}).then(function() {
|
|
2066
|
-
if (!wasAwaited) {
|
|
2067
|
-
didWarnNoAwaitAct = true;
|
|
2068
|
-
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 () => ...);");
|
|
2069
|
-
}
|
|
2070
|
-
});
|
|
2071
|
-
}
|
|
2072
|
-
}
|
|
2073
|
-
return thenable;
|
|
2074
|
-
} else {
|
|
2075
|
-
var returnValue = result;
|
|
2076
|
-
popActScope(prevActScopeDepth);
|
|
2077
|
-
if (actScopeDepth === 0) {
|
|
2078
|
-
var _queue = ReactCurrentActQueue.current;
|
|
2079
|
-
if (_queue !== null) {
|
|
2080
|
-
flushActQueue(_queue);
|
|
2081
|
-
ReactCurrentActQueue.current = null;
|
|
2082
|
-
}
|
|
2083
|
-
var _thenable = {
|
|
2084
|
-
then: function(resolve, reject) {
|
|
2085
|
-
if (ReactCurrentActQueue.current === null) {
|
|
2086
|
-
ReactCurrentActQueue.current = [];
|
|
2087
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2088
|
-
} else {
|
|
2089
|
-
resolve(returnValue);
|
|
2090
|
-
}
|
|
2091
|
-
}
|
|
2092
|
-
};
|
|
2093
|
-
return _thenable;
|
|
2094
|
-
} else {
|
|
2095
|
-
var _thenable2 = {
|
|
2096
|
-
then: function(resolve, reject) {
|
|
2097
|
-
resolve(returnValue);
|
|
2098
|
-
}
|
|
2099
|
-
};
|
|
2100
|
-
return _thenable2;
|
|
2101
|
-
}
|
|
2102
|
-
}
|
|
2103
|
-
}
|
|
2104
|
-
}
|
|
2105
|
-
function popActScope(prevActScopeDepth) {
|
|
2106
|
-
{
|
|
2107
|
-
if (prevActScopeDepth !== actScopeDepth - 1) {
|
|
2108
|
-
error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
2109
|
-
}
|
|
2110
|
-
actScopeDepth = prevActScopeDepth;
|
|
2111
|
-
}
|
|
2112
|
-
}
|
|
2113
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
2114
|
-
{
|
|
2115
|
-
var queue = ReactCurrentActQueue.current;
|
|
2116
|
-
if (queue !== null) {
|
|
2117
|
-
try {
|
|
2118
|
-
flushActQueue(queue);
|
|
2119
|
-
enqueueTask(function() {
|
|
2120
|
-
if (queue.length === 0) {
|
|
2121
|
-
ReactCurrentActQueue.current = null;
|
|
2122
|
-
resolve(returnValue);
|
|
2123
|
-
} else {
|
|
2124
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2125
|
-
}
|
|
2126
|
-
});
|
|
2127
|
-
} catch (error2) {
|
|
2128
|
-
reject(error2);
|
|
2129
|
-
}
|
|
2130
|
-
} else {
|
|
2131
|
-
resolve(returnValue);
|
|
2132
|
-
}
|
|
2133
|
-
}
|
|
2134
|
-
}
|
|
2135
|
-
var isFlushing = false;
|
|
2136
|
-
function flushActQueue(queue) {
|
|
2137
|
-
{
|
|
2138
|
-
if (!isFlushing) {
|
|
2139
|
-
isFlushing = true;
|
|
2140
|
-
var i = 0;
|
|
2141
|
-
try {
|
|
2142
|
-
for (; i < queue.length; i++) {
|
|
2143
|
-
var callback = queue[i];
|
|
2144
|
-
do {
|
|
2145
|
-
callback = callback(true);
|
|
2146
|
-
} while (callback !== null);
|
|
2147
|
-
}
|
|
2148
|
-
queue.length = 0;
|
|
2149
|
-
} catch (error2) {
|
|
2150
|
-
queue = queue.slice(i + 1);
|
|
2151
|
-
throw error2;
|
|
2152
|
-
} finally {
|
|
2153
|
-
isFlushing = false;
|
|
2154
|
-
}
|
|
2155
|
-
}
|
|
2156
|
-
}
|
|
2157
|
-
}
|
|
2158
|
-
var createElement$1 = createElementWithValidation;
|
|
2159
|
-
var cloneElement$1 = cloneElementWithValidation;
|
|
2160
|
-
var createFactory = createFactoryWithValidation;
|
|
2161
|
-
var Children = {
|
|
2162
|
-
map: mapChildren,
|
|
2163
|
-
forEach: forEachChildren,
|
|
2164
|
-
count: countChildren,
|
|
2165
|
-
toArray,
|
|
2166
|
-
only: onlyChild
|
|
2167
|
-
};
|
|
2168
|
-
exports.Children = Children;
|
|
2169
|
-
exports.Component = Component;
|
|
2170
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
2171
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
2172
|
-
exports.PureComponent = PureComponent;
|
|
2173
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2174
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
2175
|
-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
2176
|
-
exports.cloneElement = cloneElement$1;
|
|
2177
|
-
exports.createContext = createContext;
|
|
2178
|
-
exports.createElement = createElement$1;
|
|
2179
|
-
exports.createFactory = createFactory;
|
|
2180
|
-
exports.createRef = createRef;
|
|
2181
|
-
exports.forwardRef = forwardRef;
|
|
2182
|
-
exports.isValidElement = isValidElement;
|
|
2183
|
-
exports.lazy = lazy;
|
|
2184
|
-
exports.memo = memo;
|
|
2185
|
-
exports.startTransition = startTransition;
|
|
2186
|
-
exports.unstable_act = act;
|
|
2187
|
-
exports.useCallback = useCallback;
|
|
2188
|
-
exports.useContext = useContext;
|
|
2189
|
-
exports.useDebugValue = useDebugValue;
|
|
2190
|
-
exports.useDeferredValue = useDeferredValue;
|
|
2191
|
-
exports.useEffect = useEffect2;
|
|
2192
|
-
exports.useId = useId;
|
|
2193
|
-
exports.useImperativeHandle = useImperativeHandle;
|
|
2194
|
-
exports.useInsertionEffect = useInsertionEffect;
|
|
2195
|
-
exports.useLayoutEffect = useLayoutEffect;
|
|
2196
|
-
exports.useMemo = useMemo;
|
|
2197
|
-
exports.useReducer = useReducer;
|
|
2198
|
-
exports.useRef = useRef2;
|
|
2199
|
-
exports.useState = useState;
|
|
2200
|
-
exports.useSyncExternalStore = useSyncExternalStore;
|
|
2201
|
-
exports.useTransition = useTransition;
|
|
2202
|
-
exports.version = ReactVersion;
|
|
2203
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
2204
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2205
|
-
}
|
|
2206
|
-
})();
|
|
2207
|
-
}
|
|
2208
|
-
}
|
|
2209
|
-
});
|
|
2210
|
-
|
|
2211
|
-
// node_modules/react/index.js
|
|
2212
|
-
var require_react = __commonJS({
|
|
2213
|
-
"node_modules/react/index.js"(exports, module) {
|
|
2214
|
-
"use strict";
|
|
2215
|
-
if (process.env.NODE_ENV === "production") {
|
|
2216
|
-
module.exports = require_react_production_min();
|
|
2217
|
-
} else {
|
|
2218
|
-
module.exports = require_react_development();
|
|
2219
|
-
}
|
|
2220
|
-
}
|
|
2221
|
-
});
|
|
2222
|
-
|
|
2223
|
-
// node_modules/react/cjs/react-jsx-runtime.production.min.js
|
|
2224
|
-
var require_react_jsx_runtime_production_min = __commonJS({
|
|
2225
|
-
"node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports) {
|
|
2226
|
-
"use strict";
|
|
2227
|
-
var f = require_react();
|
|
2228
|
-
var k = Symbol.for("react.element");
|
|
2229
|
-
var l = Symbol.for("react.fragment");
|
|
2230
|
-
var m = Object.prototype.hasOwnProperty;
|
|
2231
|
-
var n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
|
|
2232
|
-
var p = { key: true, ref: true, __self: true, __source: true };
|
|
2233
|
-
function q(c, a, g) {
|
|
2234
|
-
var b, d = {}, e = null, h = null;
|
|
2235
|
-
void 0 !== g && (e = "" + g);
|
|
2236
|
-
void 0 !== a.key && (e = "" + a.key);
|
|
2237
|
-
void 0 !== a.ref && (h = a.ref);
|
|
2238
|
-
for (b in a)
|
|
2239
|
-
m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
2240
|
-
if (c && c.defaultProps)
|
|
2241
|
-
for (b in a = c.defaultProps, a)
|
|
2242
|
-
void 0 === d[b] && (d[b] = a[b]);
|
|
2243
|
-
return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
2244
|
-
}
|
|
2245
|
-
exports.Fragment = l;
|
|
2246
|
-
exports.jsx = q;
|
|
2247
|
-
exports.jsxs = q;
|
|
2248
|
-
}
|
|
2249
|
-
});
|
|
2250
|
-
|
|
2251
|
-
// node_modules/react/cjs/react-jsx-runtime.development.js
|
|
2252
|
-
var require_react_jsx_runtime_development = __commonJS({
|
|
2253
|
-
"node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
2254
|
-
"use strict";
|
|
2255
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2256
|
-
(function() {
|
|
2257
|
-
"use strict";
|
|
2258
|
-
var React = require_react();
|
|
2259
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
2260
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
2261
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
2262
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
2263
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
2264
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
2265
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
2266
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
2267
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
2268
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
2269
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
2270
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
2271
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
2272
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
2273
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
2274
|
-
function getIteratorFn(maybeIterable) {
|
|
2275
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
2276
|
-
return null;
|
|
2277
|
-
}
|
|
2278
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
2279
|
-
if (typeof maybeIterator === "function") {
|
|
2280
|
-
return maybeIterator;
|
|
2281
|
-
}
|
|
2282
|
-
return null;
|
|
2283
|
-
}
|
|
2284
|
-
var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2285
|
-
function error(format) {
|
|
2286
|
-
{
|
|
2287
|
-
{
|
|
2288
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
2289
|
-
args[_key2 - 1] = arguments[_key2];
|
|
2290
|
-
}
|
|
2291
|
-
printWarning("error", format, args);
|
|
2292
|
-
}
|
|
2293
|
-
}
|
|
2294
|
-
}
|
|
2295
|
-
function printWarning(level, format, args) {
|
|
2296
|
-
{
|
|
2297
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2298
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
2299
|
-
if (stack !== "") {
|
|
2300
|
-
format += "%s";
|
|
2301
|
-
args = args.concat([stack]);
|
|
2302
|
-
}
|
|
2303
|
-
var argsWithFormat = args.map(function(item) {
|
|
2304
|
-
return String(item);
|
|
2305
|
-
});
|
|
2306
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
2307
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
2308
|
-
}
|
|
2309
|
-
}
|
|
2310
|
-
var enableScopeAPI = false;
|
|
2311
|
-
var enableCacheElement = false;
|
|
2312
|
-
var enableTransitionTracing = false;
|
|
2313
|
-
var enableLegacyHidden = false;
|
|
2314
|
-
var enableDebugTracing = false;
|
|
2315
|
-
var REACT_MODULE_REFERENCE;
|
|
2316
|
-
{
|
|
2317
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
2318
|
-
}
|
|
2319
|
-
function isValidElementType(type) {
|
|
2320
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
2321
|
-
return true;
|
|
2322
|
-
}
|
|
2323
|
-
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) {
|
|
2324
|
-
return true;
|
|
2325
|
-
}
|
|
2326
|
-
if (typeof type === "object" && type !== null) {
|
|
2327
|
-
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
|
|
2328
|
-
// types supported by any Flight configuration anywhere since
|
|
2329
|
-
// we don't know which Flight build this will end up being used
|
|
2330
|
-
// with.
|
|
2331
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
2332
|
-
return true;
|
|
2333
|
-
}
|
|
2334
|
-
}
|
|
2335
|
-
return false;
|
|
2336
|
-
}
|
|
2337
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
2338
|
-
var displayName = outerType.displayName;
|
|
2339
|
-
if (displayName) {
|
|
2340
|
-
return displayName;
|
|
2341
|
-
}
|
|
2342
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
2343
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
2344
|
-
}
|
|
2345
|
-
function getContextName(type) {
|
|
2346
|
-
return type.displayName || "Context";
|
|
2347
|
-
}
|
|
2348
|
-
function getComponentNameFromType(type) {
|
|
2349
|
-
if (type == null) {
|
|
2350
|
-
return null;
|
|
2351
|
-
}
|
|
2352
|
-
{
|
|
2353
|
-
if (typeof type.tag === "number") {
|
|
2354
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
2355
|
-
}
|
|
2356
|
-
}
|
|
2357
|
-
if (typeof type === "function") {
|
|
2358
|
-
return type.displayName || type.name || null;
|
|
2359
|
-
}
|
|
2360
|
-
if (typeof type === "string") {
|
|
2361
|
-
return type;
|
|
2362
|
-
}
|
|
2363
|
-
switch (type) {
|
|
2364
|
-
case REACT_FRAGMENT_TYPE:
|
|
2365
|
-
return "Fragment";
|
|
2366
|
-
case REACT_PORTAL_TYPE:
|
|
2367
|
-
return "Portal";
|
|
2368
|
-
case REACT_PROFILER_TYPE:
|
|
2369
|
-
return "Profiler";
|
|
2370
|
-
case REACT_STRICT_MODE_TYPE:
|
|
2371
|
-
return "StrictMode";
|
|
2372
|
-
case REACT_SUSPENSE_TYPE:
|
|
2373
|
-
return "Suspense";
|
|
2374
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
2375
|
-
return "SuspenseList";
|
|
2376
|
-
}
|
|
2377
|
-
if (typeof type === "object") {
|
|
2378
|
-
switch (type.$$typeof) {
|
|
2379
|
-
case REACT_CONTEXT_TYPE:
|
|
2380
|
-
var context = type;
|
|
2381
|
-
return getContextName(context) + ".Consumer";
|
|
2382
|
-
case REACT_PROVIDER_TYPE:
|
|
2383
|
-
var provider = type;
|
|
2384
|
-
return getContextName(provider._context) + ".Provider";
|
|
2385
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2386
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
2387
|
-
case REACT_MEMO_TYPE:
|
|
2388
|
-
var outerName = type.displayName || null;
|
|
2389
|
-
if (outerName !== null) {
|
|
2390
|
-
return outerName;
|
|
2391
|
-
}
|
|
2392
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
2393
|
-
case REACT_LAZY_TYPE: {
|
|
2394
|
-
var lazyComponent = type;
|
|
2395
|
-
var payload = lazyComponent._payload;
|
|
2396
|
-
var init = lazyComponent._init;
|
|
2397
|
-
try {
|
|
2398
|
-
return getComponentNameFromType(init(payload));
|
|
2399
|
-
} catch (x) {
|
|
2400
|
-
return null;
|
|
2401
|
-
}
|
|
2402
|
-
}
|
|
2403
|
-
}
|
|
2404
|
-
}
|
|
2405
|
-
return null;
|
|
2406
|
-
}
|
|
2407
|
-
var assign = Object.assign;
|
|
2408
|
-
var disabledDepth = 0;
|
|
2409
|
-
var prevLog;
|
|
2410
|
-
var prevInfo;
|
|
2411
|
-
var prevWarn;
|
|
2412
|
-
var prevError;
|
|
2413
|
-
var prevGroup;
|
|
2414
|
-
var prevGroupCollapsed;
|
|
2415
|
-
var prevGroupEnd;
|
|
2416
|
-
function disabledLog() {
|
|
2417
|
-
}
|
|
2418
|
-
disabledLog.__reactDisabledLog = true;
|
|
2419
|
-
function disableLogs() {
|
|
2420
|
-
{
|
|
2421
|
-
if (disabledDepth === 0) {
|
|
2422
|
-
prevLog = console.log;
|
|
2423
|
-
prevInfo = console.info;
|
|
2424
|
-
prevWarn = console.warn;
|
|
2425
|
-
prevError = console.error;
|
|
2426
|
-
prevGroup = console.group;
|
|
2427
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
2428
|
-
prevGroupEnd = console.groupEnd;
|
|
2429
|
-
var props = {
|
|
2430
|
-
configurable: true,
|
|
2431
|
-
enumerable: true,
|
|
2432
|
-
value: disabledLog,
|
|
2433
|
-
writable: true
|
|
2434
|
-
};
|
|
2435
|
-
Object.defineProperties(console, {
|
|
2436
|
-
info: props,
|
|
2437
|
-
log: props,
|
|
2438
|
-
warn: props,
|
|
2439
|
-
error: props,
|
|
2440
|
-
group: props,
|
|
2441
|
-
groupCollapsed: props,
|
|
2442
|
-
groupEnd: props
|
|
2443
|
-
});
|
|
2444
|
-
}
|
|
2445
|
-
disabledDepth++;
|
|
2446
|
-
}
|
|
2447
|
-
}
|
|
2448
|
-
function reenableLogs() {
|
|
2449
|
-
{
|
|
2450
|
-
disabledDepth--;
|
|
2451
|
-
if (disabledDepth === 0) {
|
|
2452
|
-
var props = {
|
|
2453
|
-
configurable: true,
|
|
2454
|
-
enumerable: true,
|
|
2455
|
-
writable: true
|
|
2456
|
-
};
|
|
2457
|
-
Object.defineProperties(console, {
|
|
2458
|
-
log: assign({}, props, {
|
|
2459
|
-
value: prevLog
|
|
2460
|
-
}),
|
|
2461
|
-
info: assign({}, props, {
|
|
2462
|
-
value: prevInfo
|
|
2463
|
-
}),
|
|
2464
|
-
warn: assign({}, props, {
|
|
2465
|
-
value: prevWarn
|
|
2466
|
-
}),
|
|
2467
|
-
error: assign({}, props, {
|
|
2468
|
-
value: prevError
|
|
2469
|
-
}),
|
|
2470
|
-
group: assign({}, props, {
|
|
2471
|
-
value: prevGroup
|
|
2472
|
-
}),
|
|
2473
|
-
groupCollapsed: assign({}, props, {
|
|
2474
|
-
value: prevGroupCollapsed
|
|
2475
|
-
}),
|
|
2476
|
-
groupEnd: assign({}, props, {
|
|
2477
|
-
value: prevGroupEnd
|
|
2478
|
-
})
|
|
2479
|
-
});
|
|
2480
|
-
}
|
|
2481
|
-
if (disabledDepth < 0) {
|
|
2482
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
2483
|
-
}
|
|
2484
|
-
}
|
|
2485
|
-
}
|
|
2486
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
2487
|
-
var prefix;
|
|
2488
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
2489
|
-
{
|
|
2490
|
-
if (prefix === void 0) {
|
|
2491
|
-
try {
|
|
2492
|
-
throw Error();
|
|
2493
|
-
} catch (x) {
|
|
2494
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
2495
|
-
prefix = match && match[1] || "";
|
|
2496
|
-
}
|
|
2497
|
-
}
|
|
2498
|
-
return "\n" + prefix + name;
|
|
2499
|
-
}
|
|
2500
|
-
}
|
|
2501
|
-
var reentry = false;
|
|
2502
|
-
var componentFrameCache;
|
|
2503
|
-
{
|
|
2504
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
2505
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
2506
|
-
}
|
|
2507
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
2508
|
-
if (!fn || reentry) {
|
|
2509
|
-
return "";
|
|
2510
|
-
}
|
|
2511
|
-
{
|
|
2512
|
-
var frame = componentFrameCache.get(fn);
|
|
2513
|
-
if (frame !== void 0) {
|
|
2514
|
-
return frame;
|
|
2515
|
-
}
|
|
2516
|
-
}
|
|
2517
|
-
var control;
|
|
2518
|
-
reentry = true;
|
|
2519
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
2520
|
-
Error.prepareStackTrace = void 0;
|
|
2521
|
-
var previousDispatcher;
|
|
2522
|
-
{
|
|
2523
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
2524
|
-
ReactCurrentDispatcher.current = null;
|
|
2525
|
-
disableLogs();
|
|
2526
|
-
}
|
|
2527
|
-
try {
|
|
2528
|
-
if (construct) {
|
|
2529
|
-
var Fake = function() {
|
|
2530
|
-
throw Error();
|
|
2531
|
-
};
|
|
2532
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
2533
|
-
set: function() {
|
|
2534
|
-
throw Error();
|
|
2535
|
-
}
|
|
2536
|
-
});
|
|
2537
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
2538
|
-
try {
|
|
2539
|
-
Reflect.construct(Fake, []);
|
|
2540
|
-
} catch (x) {
|
|
2541
|
-
control = x;
|
|
2542
|
-
}
|
|
2543
|
-
Reflect.construct(fn, [], Fake);
|
|
2544
|
-
} else {
|
|
2545
|
-
try {
|
|
2546
|
-
Fake.call();
|
|
2547
|
-
} catch (x) {
|
|
2548
|
-
control = x;
|
|
2549
|
-
}
|
|
2550
|
-
fn.call(Fake.prototype);
|
|
2551
|
-
}
|
|
2552
|
-
} else {
|
|
2553
|
-
try {
|
|
2554
|
-
throw Error();
|
|
2555
|
-
} catch (x) {
|
|
2556
|
-
control = x;
|
|
2557
|
-
}
|
|
2558
|
-
fn();
|
|
2559
|
-
}
|
|
2560
|
-
} catch (sample) {
|
|
2561
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
2562
|
-
var sampleLines = sample.stack.split("\n");
|
|
2563
|
-
var controlLines = control.stack.split("\n");
|
|
2564
|
-
var s = sampleLines.length - 1;
|
|
2565
|
-
var c = controlLines.length - 1;
|
|
2566
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
2567
|
-
c--;
|
|
2568
|
-
}
|
|
2569
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
2570
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
2571
|
-
if (s !== 1 || c !== 1) {
|
|
2572
|
-
do {
|
|
2573
|
-
s--;
|
|
2574
|
-
c--;
|
|
2575
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
2576
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
2577
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
2578
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
2579
|
-
}
|
|
2580
|
-
{
|
|
2581
|
-
if (typeof fn === "function") {
|
|
2582
|
-
componentFrameCache.set(fn, _frame);
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
return _frame;
|
|
2586
|
-
}
|
|
2587
|
-
} while (s >= 1 && c >= 0);
|
|
2588
|
-
}
|
|
2589
|
-
break;
|
|
2590
|
-
}
|
|
2591
|
-
}
|
|
2592
|
-
}
|
|
2593
|
-
} finally {
|
|
2594
|
-
reentry = false;
|
|
2595
|
-
{
|
|
2596
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
2597
|
-
reenableLogs();
|
|
2598
|
-
}
|
|
2599
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
2600
|
-
}
|
|
2601
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
2602
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
2603
|
-
{
|
|
2604
|
-
if (typeof fn === "function") {
|
|
2605
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
2606
|
-
}
|
|
2607
|
-
}
|
|
2608
|
-
return syntheticFrame;
|
|
2609
|
-
}
|
|
2610
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
2611
|
-
{
|
|
2612
|
-
return describeNativeComponentFrame(fn, false);
|
|
2613
|
-
}
|
|
2614
|
-
}
|
|
2615
|
-
function shouldConstruct(Component) {
|
|
2616
|
-
var prototype = Component.prototype;
|
|
2617
|
-
return !!(prototype && prototype.isReactComponent);
|
|
2618
|
-
}
|
|
2619
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
2620
|
-
if (type == null) {
|
|
2621
|
-
return "";
|
|
2622
|
-
}
|
|
2623
|
-
if (typeof type === "function") {
|
|
2624
|
-
{
|
|
2625
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
2626
|
-
}
|
|
2627
|
-
}
|
|
2628
|
-
if (typeof type === "string") {
|
|
2629
|
-
return describeBuiltInComponentFrame(type);
|
|
2630
|
-
}
|
|
2631
|
-
switch (type) {
|
|
2632
|
-
case REACT_SUSPENSE_TYPE:
|
|
2633
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
2634
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
2635
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
2636
|
-
}
|
|
2637
|
-
if (typeof type === "object") {
|
|
2638
|
-
switch (type.$$typeof) {
|
|
2639
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2640
|
-
return describeFunctionComponentFrame(type.render);
|
|
2641
|
-
case REACT_MEMO_TYPE:
|
|
2642
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
2643
|
-
case REACT_LAZY_TYPE: {
|
|
2644
|
-
var lazyComponent = type;
|
|
2645
|
-
var payload = lazyComponent._payload;
|
|
2646
|
-
var init = lazyComponent._init;
|
|
2647
|
-
try {
|
|
2648
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
2649
|
-
} catch (x) {
|
|
2650
|
-
}
|
|
2651
|
-
}
|
|
2652
|
-
}
|
|
2653
|
-
}
|
|
2654
|
-
return "";
|
|
2655
|
-
}
|
|
2656
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
2657
|
-
var loggedTypeFailures = {};
|
|
2658
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2659
|
-
function setCurrentlyValidatingElement(element) {
|
|
2660
|
-
{
|
|
2661
|
-
if (element) {
|
|
2662
|
-
var owner = element._owner;
|
|
2663
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
2664
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
2665
|
-
} else {
|
|
2666
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
2667
|
-
}
|
|
2668
|
-
}
|
|
2669
|
-
}
|
|
2670
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
2671
|
-
{
|
|
2672
|
-
var has = Function.call.bind(hasOwnProperty);
|
|
2673
|
-
for (var typeSpecName in typeSpecs) {
|
|
2674
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
2675
|
-
var error$1 = void 0;
|
|
2676
|
-
try {
|
|
2677
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
2678
|
-
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
2679
|
-
err.name = "Invariant Violation";
|
|
2680
|
-
throw err;
|
|
2681
|
-
}
|
|
2682
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2683
|
-
} catch (ex) {
|
|
2684
|
-
error$1 = ex;
|
|
2685
|
-
}
|
|
2686
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
2687
|
-
setCurrentlyValidatingElement(element);
|
|
2688
|
-
error("%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).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
2689
|
-
setCurrentlyValidatingElement(null);
|
|
2690
|
-
}
|
|
2691
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
2692
|
-
loggedTypeFailures[error$1.message] = true;
|
|
2693
|
-
setCurrentlyValidatingElement(element);
|
|
2694
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
2695
|
-
setCurrentlyValidatingElement(null);
|
|
2696
|
-
}
|
|
2697
|
-
}
|
|
2698
|
-
}
|
|
2699
|
-
}
|
|
2700
|
-
}
|
|
2701
|
-
var isArrayImpl = Array.isArray;
|
|
2702
|
-
function isArray(a) {
|
|
2703
|
-
return isArrayImpl(a);
|
|
2704
|
-
}
|
|
2705
|
-
function typeName(value) {
|
|
2706
|
-
{
|
|
2707
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
2708
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
2709
|
-
return type;
|
|
2710
|
-
}
|
|
2711
|
-
}
|
|
2712
|
-
function willCoercionThrow(value) {
|
|
2713
|
-
{
|
|
2714
|
-
try {
|
|
2715
|
-
testStringCoercion(value);
|
|
2716
|
-
return false;
|
|
2717
|
-
} catch (e) {
|
|
2718
|
-
return true;
|
|
2719
|
-
}
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
function testStringCoercion(value) {
|
|
2723
|
-
return "" + value;
|
|
2724
|
-
}
|
|
2725
|
-
function checkKeyStringCoercion(value) {
|
|
2726
|
-
{
|
|
2727
|
-
if (willCoercionThrow(value)) {
|
|
2728
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
2729
|
-
return testStringCoercion(value);
|
|
2730
|
-
}
|
|
2731
|
-
}
|
|
2732
|
-
}
|
|
2733
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
2734
|
-
var RESERVED_PROPS = {
|
|
2735
|
-
key: true,
|
|
2736
|
-
ref: true,
|
|
2737
|
-
__self: true,
|
|
2738
|
-
__source: true
|
|
2739
|
-
};
|
|
2740
|
-
var specialPropKeyWarningShown;
|
|
2741
|
-
var specialPropRefWarningShown;
|
|
2742
|
-
var didWarnAboutStringRefs;
|
|
2743
|
-
{
|
|
2744
|
-
didWarnAboutStringRefs = {};
|
|
2745
|
-
}
|
|
2746
|
-
function hasValidRef(config) {
|
|
2747
|
-
{
|
|
2748
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
2749
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
2750
|
-
if (getter && getter.isReactWarning) {
|
|
2751
|
-
return false;
|
|
2752
|
-
}
|
|
2753
|
-
}
|
|
2754
|
-
}
|
|
2755
|
-
return config.ref !== void 0;
|
|
2756
|
-
}
|
|
2757
|
-
function hasValidKey(config) {
|
|
2758
|
-
{
|
|
2759
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
2760
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
2761
|
-
if (getter && getter.isReactWarning) {
|
|
2762
|
-
return false;
|
|
2763
|
-
}
|
|
2764
|
-
}
|
|
2765
|
-
}
|
|
2766
|
-
return config.key !== void 0;
|
|
2767
|
-
}
|
|
2768
|
-
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
|
2769
|
-
{
|
|
2770
|
-
if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
2771
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
2772
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
2773
|
-
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', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
|
|
2774
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
2775
|
-
}
|
|
2776
|
-
}
|
|
2777
|
-
}
|
|
2778
|
-
}
|
|
2779
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
2780
|
-
{
|
|
2781
|
-
var warnAboutAccessingKey = function() {
|
|
2782
|
-
if (!specialPropKeyWarningShown) {
|
|
2783
|
-
specialPropKeyWarningShown = true;
|
|
2784
|
-
error("%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)", displayName);
|
|
2785
|
-
}
|
|
2786
|
-
};
|
|
2787
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
2788
|
-
Object.defineProperty(props, "key", {
|
|
2789
|
-
get: warnAboutAccessingKey,
|
|
2790
|
-
configurable: true
|
|
2791
|
-
});
|
|
2792
|
-
}
|
|
2793
|
-
}
|
|
2794
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
2795
|
-
{
|
|
2796
|
-
var warnAboutAccessingRef = function() {
|
|
2797
|
-
if (!specialPropRefWarningShown) {
|
|
2798
|
-
specialPropRefWarningShown = true;
|
|
2799
|
-
error("%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)", displayName);
|
|
2800
|
-
}
|
|
2801
|
-
};
|
|
2802
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
2803
|
-
Object.defineProperty(props, "ref", {
|
|
2804
|
-
get: warnAboutAccessingRef,
|
|
2805
|
-
configurable: true
|
|
2806
|
-
});
|
|
2807
|
-
}
|
|
2808
|
-
}
|
|
2809
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
2810
|
-
var element = {
|
|
2811
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
2812
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
2813
|
-
// Built-in properties that belong on the element
|
|
2814
|
-
type,
|
|
2815
|
-
key,
|
|
2816
|
-
ref,
|
|
2817
|
-
props,
|
|
2818
|
-
// Record the component responsible for creating this element.
|
|
2819
|
-
_owner: owner
|
|
2820
|
-
};
|
|
2821
|
-
{
|
|
2822
|
-
element._store = {};
|
|
2823
|
-
Object.defineProperty(element._store, "validated", {
|
|
2824
|
-
configurable: false,
|
|
2825
|
-
enumerable: false,
|
|
2826
|
-
writable: true,
|
|
2827
|
-
value: false
|
|
2828
|
-
});
|
|
2829
|
-
Object.defineProperty(element, "_self", {
|
|
2830
|
-
configurable: false,
|
|
2831
|
-
enumerable: false,
|
|
2832
|
-
writable: false,
|
|
2833
|
-
value: self
|
|
2834
|
-
});
|
|
2835
|
-
Object.defineProperty(element, "_source", {
|
|
2836
|
-
configurable: false,
|
|
2837
|
-
enumerable: false,
|
|
2838
|
-
writable: false,
|
|
2839
|
-
value: source
|
|
2840
|
-
});
|
|
2841
|
-
if (Object.freeze) {
|
|
2842
|
-
Object.freeze(element.props);
|
|
2843
|
-
Object.freeze(element);
|
|
2844
|
-
}
|
|
2845
|
-
}
|
|
2846
|
-
return element;
|
|
2847
|
-
};
|
|
2848
|
-
function jsxDEV(type, config, maybeKey, source, self) {
|
|
2849
|
-
{
|
|
2850
|
-
var propName;
|
|
2851
|
-
var props = {};
|
|
2852
|
-
var key = null;
|
|
2853
|
-
var ref = null;
|
|
2854
|
-
if (maybeKey !== void 0) {
|
|
2855
|
-
{
|
|
2856
|
-
checkKeyStringCoercion(maybeKey);
|
|
2857
|
-
}
|
|
2858
|
-
key = "" + maybeKey;
|
|
2859
|
-
}
|
|
2860
|
-
if (hasValidKey(config)) {
|
|
2861
|
-
{
|
|
2862
|
-
checkKeyStringCoercion(config.key);
|
|
2863
|
-
}
|
|
2864
|
-
key = "" + config.key;
|
|
2865
|
-
}
|
|
2866
|
-
if (hasValidRef(config)) {
|
|
2867
|
-
ref = config.ref;
|
|
2868
|
-
warnIfStringRefCannotBeAutoConverted(config, self);
|
|
2869
|
-
}
|
|
2870
|
-
for (propName in config) {
|
|
2871
|
-
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
2872
|
-
props[propName] = config[propName];
|
|
2873
|
-
}
|
|
2874
|
-
}
|
|
2875
|
-
if (type && type.defaultProps) {
|
|
2876
|
-
var defaultProps = type.defaultProps;
|
|
2877
|
-
for (propName in defaultProps) {
|
|
2878
|
-
if (props[propName] === void 0) {
|
|
2879
|
-
props[propName] = defaultProps[propName];
|
|
2880
|
-
}
|
|
2881
|
-
}
|
|
2882
|
-
}
|
|
2883
|
-
if (key || ref) {
|
|
2884
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
2885
|
-
if (key) {
|
|
2886
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
2887
|
-
}
|
|
2888
|
-
if (ref) {
|
|
2889
|
-
defineRefPropWarningGetter(props, displayName);
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
2893
|
-
}
|
|
2894
|
-
}
|
|
2895
|
-
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
2896
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2897
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
2898
|
-
{
|
|
2899
|
-
if (element) {
|
|
2900
|
-
var owner = element._owner;
|
|
2901
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
2902
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
2903
|
-
} else {
|
|
2904
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
2905
|
-
}
|
|
2906
|
-
}
|
|
2907
|
-
}
|
|
2908
|
-
var propTypesMisspellWarningShown;
|
|
2909
|
-
{
|
|
2910
|
-
propTypesMisspellWarningShown = false;
|
|
2911
|
-
}
|
|
2912
|
-
function isValidElement(object) {
|
|
2913
|
-
{
|
|
2914
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
2915
|
-
}
|
|
2916
|
-
}
|
|
2917
|
-
function getDeclarationErrorAddendum() {
|
|
2918
|
-
{
|
|
2919
|
-
if (ReactCurrentOwner$1.current) {
|
|
2920
|
-
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
2921
|
-
if (name) {
|
|
2922
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
2923
|
-
}
|
|
2924
|
-
}
|
|
2925
|
-
return "";
|
|
2926
|
-
}
|
|
2927
|
-
}
|
|
2928
|
-
function getSourceInfoErrorAddendum(source) {
|
|
2929
|
-
{
|
|
2930
|
-
if (source !== void 0) {
|
|
2931
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
2932
|
-
var lineNumber = source.lineNumber;
|
|
2933
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
2934
|
-
}
|
|
2935
|
-
return "";
|
|
2936
|
-
}
|
|
2937
|
-
}
|
|
2938
|
-
var ownerHasKeyUseWarning = {};
|
|
2939
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
2940
|
-
{
|
|
2941
|
-
var info = getDeclarationErrorAddendum();
|
|
2942
|
-
if (!info) {
|
|
2943
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
2944
|
-
if (parentName) {
|
|
2945
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
2946
|
-
}
|
|
2947
|
-
}
|
|
2948
|
-
return info;
|
|
2949
|
-
}
|
|
2950
|
-
}
|
|
2951
|
-
function validateExplicitKey(element, parentType) {
|
|
2952
|
-
{
|
|
2953
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
2954
|
-
return;
|
|
2955
|
-
}
|
|
2956
|
-
element._store.validated = true;
|
|
2957
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
2958
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
2959
|
-
return;
|
|
2960
|
-
}
|
|
2961
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
2962
|
-
var childOwner = "";
|
|
2963
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
2964
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
2965
|
-
}
|
|
2966
|
-
setCurrentlyValidatingElement$1(element);
|
|
2967
|
-
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
2968
|
-
setCurrentlyValidatingElement$1(null);
|
|
2969
|
-
}
|
|
2970
|
-
}
|
|
2971
|
-
function validateChildKeys(node, parentType) {
|
|
2972
|
-
{
|
|
2973
|
-
if (typeof node !== "object") {
|
|
2974
|
-
return;
|
|
2975
|
-
}
|
|
2976
|
-
if (isArray(node)) {
|
|
2977
|
-
for (var i = 0; i < node.length; i++) {
|
|
2978
|
-
var child = node[i];
|
|
2979
|
-
if (isValidElement(child)) {
|
|
2980
|
-
validateExplicitKey(child, parentType);
|
|
2981
|
-
}
|
|
2982
|
-
}
|
|
2983
|
-
} else if (isValidElement(node)) {
|
|
2984
|
-
if (node._store) {
|
|
2985
|
-
node._store.validated = true;
|
|
2986
|
-
}
|
|
2987
|
-
} else if (node) {
|
|
2988
|
-
var iteratorFn = getIteratorFn(node);
|
|
2989
|
-
if (typeof iteratorFn === "function") {
|
|
2990
|
-
if (iteratorFn !== node.entries) {
|
|
2991
|
-
var iterator = iteratorFn.call(node);
|
|
2992
|
-
var step;
|
|
2993
|
-
while (!(step = iterator.next()).done) {
|
|
2994
|
-
if (isValidElement(step.value)) {
|
|
2995
|
-
validateExplicitKey(step.value, parentType);
|
|
2996
|
-
}
|
|
2997
|
-
}
|
|
2998
|
-
}
|
|
2999
|
-
}
|
|
3000
|
-
}
|
|
3001
|
-
}
|
|
3002
|
-
}
|
|
3003
|
-
function validatePropTypes(element) {
|
|
3004
|
-
{
|
|
3005
|
-
var type = element.type;
|
|
3006
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
3007
|
-
return;
|
|
3008
|
-
}
|
|
3009
|
-
var propTypes;
|
|
3010
|
-
if (typeof type === "function") {
|
|
3011
|
-
propTypes = type.propTypes;
|
|
3012
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
3013
|
-
// Inner props are checked in the reconciler.
|
|
3014
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
3015
|
-
propTypes = type.propTypes;
|
|
3016
|
-
} else {
|
|
3017
|
-
return;
|
|
3018
|
-
}
|
|
3019
|
-
if (propTypes) {
|
|
3020
|
-
var name = getComponentNameFromType(type);
|
|
3021
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
3022
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
3023
|
-
propTypesMisspellWarningShown = true;
|
|
3024
|
-
var _name = getComponentNameFromType(type);
|
|
3025
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
3026
|
-
}
|
|
3027
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
3028
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
3029
|
-
}
|
|
3030
|
-
}
|
|
3031
|
-
}
|
|
3032
|
-
function validateFragmentProps(fragment) {
|
|
3033
|
-
{
|
|
3034
|
-
var keys = Object.keys(fragment.props);
|
|
3035
|
-
for (var i = 0; i < keys.length; i++) {
|
|
3036
|
-
var key = keys[i];
|
|
3037
|
-
if (key !== "children" && key !== "key") {
|
|
3038
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
3039
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
3040
|
-
setCurrentlyValidatingElement$1(null);
|
|
3041
|
-
break;
|
|
3042
|
-
}
|
|
3043
|
-
}
|
|
3044
|
-
if (fragment.ref !== null) {
|
|
3045
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
3046
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
3047
|
-
setCurrentlyValidatingElement$1(null);
|
|
3048
|
-
}
|
|
3049
|
-
}
|
|
3050
|
-
}
|
|
3051
|
-
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
3052
|
-
{
|
|
3053
|
-
var validType = isValidElementType(type);
|
|
3054
|
-
if (!validType) {
|
|
3055
|
-
var info = "";
|
|
3056
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
3057
|
-
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
3058
|
-
}
|
|
3059
|
-
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
3060
|
-
if (sourceInfo) {
|
|
3061
|
-
info += sourceInfo;
|
|
3062
|
-
} else {
|
|
3063
|
-
info += getDeclarationErrorAddendum();
|
|
3064
|
-
}
|
|
3065
|
-
var typeString;
|
|
3066
|
-
if (type === null) {
|
|
3067
|
-
typeString = "null";
|
|
3068
|
-
} else if (isArray(type)) {
|
|
3069
|
-
typeString = "array";
|
|
3070
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
3071
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
3072
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
3073
|
-
} else {
|
|
3074
|
-
typeString = typeof type;
|
|
3075
|
-
}
|
|
3076
|
-
error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
3077
|
-
}
|
|
3078
|
-
var element = jsxDEV(type, props, key, source, self);
|
|
3079
|
-
if (element == null) {
|
|
3080
|
-
return element;
|
|
3081
|
-
}
|
|
3082
|
-
if (validType) {
|
|
3083
|
-
var children = props.children;
|
|
3084
|
-
if (children !== void 0) {
|
|
3085
|
-
if (isStaticChildren) {
|
|
3086
|
-
if (isArray(children)) {
|
|
3087
|
-
for (var i = 0; i < children.length; i++) {
|
|
3088
|
-
validateChildKeys(children[i], type);
|
|
3089
|
-
}
|
|
3090
|
-
if (Object.freeze) {
|
|
3091
|
-
Object.freeze(children);
|
|
3092
|
-
}
|
|
3093
|
-
} else {
|
|
3094
|
-
error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
3095
|
-
}
|
|
3096
|
-
} else {
|
|
3097
|
-
validateChildKeys(children, type);
|
|
3098
|
-
}
|
|
3099
|
-
}
|
|
3100
|
-
}
|
|
3101
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
3102
|
-
validateFragmentProps(element);
|
|
3103
|
-
} else {
|
|
3104
|
-
validatePropTypes(element);
|
|
3105
|
-
}
|
|
3106
|
-
return element;
|
|
3107
|
-
}
|
|
3108
|
-
}
|
|
3109
|
-
function jsxWithValidationStatic(type, props, key) {
|
|
3110
|
-
{
|
|
3111
|
-
return jsxWithValidation(type, props, key, true);
|
|
3112
|
-
}
|
|
3113
|
-
}
|
|
3114
|
-
function jsxWithValidationDynamic(type, props, key) {
|
|
3115
|
-
{
|
|
3116
|
-
return jsxWithValidation(type, props, key, false);
|
|
3117
|
-
}
|
|
3118
|
-
}
|
|
3119
|
-
var jsx2 = jsxWithValidationDynamic;
|
|
3120
|
-
var jsxs = jsxWithValidationStatic;
|
|
3121
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
3122
|
-
exports.jsx = jsx2;
|
|
3123
|
-
exports.jsxs = jsxs;
|
|
3124
|
-
})();
|
|
3125
|
-
}
|
|
1674
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1675
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1676
|
+
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
1677
|
+
isStaticChildren,
|
|
1678
|
+
children,
|
|
1679
|
+
keys,
|
|
1680
|
+
children
|
|
1681
|
+
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
1682
|
+
}
|
|
1683
|
+
children = null;
|
|
1684
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1685
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1686
|
+
if ("key" in config) {
|
|
1687
|
+
maybeKey = {};
|
|
1688
|
+
for (var propName in config)
|
|
1689
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1690
|
+
} else
|
|
1691
|
+
maybeKey = config;
|
|
1692
|
+
children && defineKeyPropWarningGetter(
|
|
1693
|
+
maybeKey,
|
|
1694
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1695
|
+
);
|
|
1696
|
+
return ReactElement(
|
|
1697
|
+
type,
|
|
1698
|
+
children,
|
|
1699
|
+
self,
|
|
1700
|
+
source,
|
|
1701
|
+
getOwner(),
|
|
1702
|
+
maybeKey,
|
|
1703
|
+
debugStack,
|
|
1704
|
+
debugTask
|
|
1705
|
+
);
|
|
1706
|
+
}
|
|
1707
|
+
function validateChildKeys(node) {
|
|
1708
|
+
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
|
1709
|
+
}
|
|
1710
|
+
var React = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
1711
|
+
Symbol.for("react.provider");
|
|
1712
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
1713
|
+
return null;
|
|
1714
|
+
};
|
|
1715
|
+
React = {
|
|
1716
|
+
"react-stack-bottom-frame": function(callStackForError) {
|
|
1717
|
+
return callStackForError();
|
|
1718
|
+
}
|
|
1719
|
+
};
|
|
1720
|
+
var specialPropKeyWarningShown;
|
|
1721
|
+
var didWarnAboutElementRef = {};
|
|
1722
|
+
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
|
|
1723
|
+
React,
|
|
1724
|
+
UnknownOwner
|
|
1725
|
+
)();
|
|
1726
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1727
|
+
var didWarnAboutKeySpread = {};
|
|
1728
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1729
|
+
exports.jsx = function(type, config, maybeKey, source, self) {
|
|
1730
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1731
|
+
return jsxDEVImpl(
|
|
1732
|
+
type,
|
|
1733
|
+
config,
|
|
1734
|
+
maybeKey,
|
|
1735
|
+
false,
|
|
1736
|
+
source,
|
|
1737
|
+
self,
|
|
1738
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1739
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1740
|
+
);
|
|
1741
|
+
};
|
|
1742
|
+
exports.jsxs = function(type, config, maybeKey, source, self) {
|
|
1743
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1744
|
+
return jsxDEVImpl(
|
|
1745
|
+
type,
|
|
1746
|
+
config,
|
|
1747
|
+
maybeKey,
|
|
1748
|
+
true,
|
|
1749
|
+
source,
|
|
1750
|
+
self,
|
|
1751
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1752
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1753
|
+
);
|
|
1754
|
+
};
|
|
1755
|
+
}();
|
|
3126
1756
|
}
|
|
3127
1757
|
});
|
|
3128
1758
|
|
|
@@ -3131,7 +1761,7 @@ var require_jsx_runtime = __commonJS({
|
|
|
3131
1761
|
"node_modules/react/jsx-runtime.js"(exports, module) {
|
|
3132
1762
|
"use strict";
|
|
3133
1763
|
if (process.env.NODE_ENV === "production") {
|
|
3134
|
-
module.exports =
|
|
1764
|
+
module.exports = require_react_jsx_runtime_production();
|
|
3135
1765
|
} else {
|
|
3136
1766
|
module.exports = require_react_jsx_runtime_development();
|
|
3137
1767
|
}
|
|
@@ -3233,12 +1863,12 @@ export {
|
|
|
3233
1863
|
};
|
|
3234
1864
|
/*! Bundled license information:
|
|
3235
1865
|
|
|
3236
|
-
react/cjs/react.production.
|
|
1866
|
+
react/cjs/react.production.js:
|
|
3237
1867
|
(**
|
|
3238
1868
|
* @license React
|
|
3239
|
-
* react.production.
|
|
1869
|
+
* react.production.js
|
|
3240
1870
|
*
|
|
3241
|
-
* Copyright (c)
|
|
1871
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3242
1872
|
*
|
|
3243
1873
|
* This source code is licensed under the MIT license found in the
|
|
3244
1874
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -3249,18 +1879,18 @@ react/cjs/react.development.js:
|
|
|
3249
1879
|
* @license React
|
|
3250
1880
|
* react.development.js
|
|
3251
1881
|
*
|
|
3252
|
-
* Copyright (c)
|
|
1882
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3253
1883
|
*
|
|
3254
1884
|
* This source code is licensed under the MIT license found in the
|
|
3255
1885
|
* LICENSE file in the root directory of this source tree.
|
|
3256
1886
|
*)
|
|
3257
1887
|
|
|
3258
|
-
react/cjs/react-jsx-runtime.production.
|
|
1888
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
3259
1889
|
(**
|
|
3260
1890
|
* @license React
|
|
3261
|
-
* react-jsx-runtime.production.
|
|
1891
|
+
* react-jsx-runtime.production.js
|
|
3262
1892
|
*
|
|
3263
|
-
* Copyright (c)
|
|
1893
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3264
1894
|
*
|
|
3265
1895
|
* This source code is licensed under the MIT license found in the
|
|
3266
1896
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -3271,7 +1901,7 @@ react/cjs/react-jsx-runtime.development.js:
|
|
|
3271
1901
|
* @license React
|
|
3272
1902
|
* react-jsx-runtime.development.js
|
|
3273
1903
|
*
|
|
3274
|
-
* Copyright (c)
|
|
1904
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3275
1905
|
*
|
|
3276
1906
|
* This source code is licensed under the MIT license found in the
|
|
3277
1907
|
* LICENSE file in the root directory of this source tree.
|