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