qpp-design-system 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +881 -270
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +881 -270
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +6 -1
- package/dist/styles/qpp-theme.css +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -91,50 +91,41 @@ var classnames = { exports: {} };
|
|
|
91
91
|
var classnamesExports = classnames.exports;
|
|
92
92
|
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
93
93
|
var jsxRuntime = { exports: {} };
|
|
94
|
-
var
|
|
94
|
+
var reactJsxRuntime_production_min = {};
|
|
95
95
|
/**
|
|
96
96
|
* @license React
|
|
97
|
-
* react-jsx-runtime.production.js
|
|
97
|
+
* react-jsx-runtime.production.min.js
|
|
98
98
|
*
|
|
99
|
-
* Copyright (c)
|
|
99
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
100
100
|
*
|
|
101
101
|
* This source code is licensed under the MIT license found in the
|
|
102
102
|
* LICENSE file in the root directory of this source tree.
|
|
103
103
|
*/
|
|
104
|
-
var
|
|
105
|
-
function
|
|
106
|
-
if (
|
|
107
|
-
|
|
108
|
-
var
|
|
109
|
-
function
|
|
110
|
-
var
|
|
111
|
-
void 0 !==
|
|
112
|
-
void 0 !==
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
key,
|
|
123
|
-
ref: void 0 !== config2 ? config2 : null,
|
|
124
|
-
props: maybeKey
|
|
125
|
-
};
|
|
126
|
-
}
|
|
127
|
-
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
128
|
-
reactJsxRuntime_production.jsx = jsxProd;
|
|
129
|
-
reactJsxRuntime_production.jsxs = jsxProd;
|
|
130
|
-
return reactJsxRuntime_production;
|
|
104
|
+
var hasRequiredReactJsxRuntime_production_min;
|
|
105
|
+
function requireReactJsxRuntime_production_min() {
|
|
106
|
+
if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
|
|
107
|
+
hasRequiredReactJsxRuntime_production_min = 1;
|
|
108
|
+
var f = $73SJx$react, k = Symbol.for("react.element"), l = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, p = { key: true, ref: true, __self: true, __source: true };
|
|
109
|
+
function q(c, a, g) {
|
|
110
|
+
var b, d = {}, e = null, h = null;
|
|
111
|
+
void 0 !== g && (e = "" + g);
|
|
112
|
+
void 0 !== a.key && (e = "" + a.key);
|
|
113
|
+
void 0 !== a.ref && (h = a.ref);
|
|
114
|
+
for (b in a) m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
|
|
115
|
+
if (c && c.defaultProps) for (b in a = c.defaultProps, a) void 0 === d[b] && (d[b] = a[b]);
|
|
116
|
+
return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
|
|
117
|
+
}
|
|
118
|
+
reactJsxRuntime_production_min.Fragment = l;
|
|
119
|
+
reactJsxRuntime_production_min.jsx = q;
|
|
120
|
+
reactJsxRuntime_production_min.jsxs = q;
|
|
121
|
+
return reactJsxRuntime_production_min;
|
|
131
122
|
}
|
|
132
123
|
var reactJsxRuntime_development = {};
|
|
133
124
|
/**
|
|
134
125
|
* @license React
|
|
135
126
|
* react-jsx-runtime.development.js
|
|
136
127
|
*
|
|
137
|
-
* Copyright (c)
|
|
128
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
138
129
|
*
|
|
139
130
|
* This source code is licensed under the MIT license found in the
|
|
140
131
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -143,260 +134,880 @@ var hasRequiredReactJsxRuntime_development;
|
|
|
143
134
|
function requireReactJsxRuntime_development() {
|
|
144
135
|
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
145
136
|
hasRequiredReactJsxRuntime_development = 1;
|
|
146
|
-
|
|
147
|
-
function
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
137
|
+
if (process.env.NODE_ENV !== "production") {
|
|
138
|
+
(function() {
|
|
139
|
+
var React2 = $73SJx$react;
|
|
140
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
141
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
142
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
143
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
144
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
145
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
146
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
147
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
148
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
149
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
150
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
151
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
152
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
153
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
154
|
+
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
155
|
+
function getIteratorFn(maybeIterable) {
|
|
156
|
+
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
160
|
+
if (typeof maybeIterator === "function") {
|
|
161
|
+
return maybeIterator;
|
|
162
|
+
}
|
|
163
|
+
return null;
|
|
164
|
+
}
|
|
165
|
+
var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
166
|
+
function error(format2) {
|
|
167
|
+
{
|
|
168
|
+
{
|
|
169
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
170
|
+
args[_key2 - 1] = arguments[_key2];
|
|
171
|
+
}
|
|
172
|
+
printWarning("error", format2, args);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
function printWarning(level, format2, args) {
|
|
177
|
+
{
|
|
178
|
+
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
179
|
+
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
180
|
+
if (stack !== "") {
|
|
181
|
+
format2 += "%s";
|
|
182
|
+
args = args.concat([stack]);
|
|
183
|
+
}
|
|
184
|
+
var argsWithFormat = args.map(function(item) {
|
|
185
|
+
return String(item);
|
|
186
|
+
});
|
|
187
|
+
argsWithFormat.unshift("Warning: " + format2);
|
|
188
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
var enableScopeAPI = false;
|
|
192
|
+
var enableCacheElement = false;
|
|
193
|
+
var enableTransitionTracing = false;
|
|
194
|
+
var enableLegacyHidden = false;
|
|
195
|
+
var enableDebugTracing = false;
|
|
196
|
+
var REACT_MODULE_REFERENCE;
|
|
197
|
+
{
|
|
198
|
+
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
199
|
+
}
|
|
200
|
+
function isValidElementType(type) {
|
|
201
|
+
if (typeof type === "string" || typeof type === "function") {
|
|
202
|
+
return true;
|
|
203
|
+
}
|
|
204
|
+
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) {
|
|
205
|
+
return true;
|
|
206
|
+
}
|
|
207
|
+
if (typeof type === "object" && type !== null) {
|
|
208
|
+
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
|
|
209
|
+
// types supported by any Flight configuration anywhere since
|
|
210
|
+
// we don't know which Flight build this will end up being used
|
|
211
|
+
// with.
|
|
212
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
213
|
+
return true;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
return false;
|
|
217
|
+
}
|
|
218
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
219
|
+
var displayName = outerType.displayName;
|
|
220
|
+
if (displayName) {
|
|
221
|
+
return displayName;
|
|
222
|
+
}
|
|
223
|
+
var functionName = innerType.displayName || innerType.name || "";
|
|
224
|
+
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
225
|
+
}
|
|
226
|
+
function getContextName(type) {
|
|
227
|
+
return type.displayName || "Context";
|
|
228
|
+
}
|
|
229
|
+
function getComponentNameFromType(type) {
|
|
230
|
+
if (type == null) {
|
|
231
|
+
return null;
|
|
232
|
+
}
|
|
233
|
+
{
|
|
234
|
+
if (typeof type.tag === "number") {
|
|
235
|
+
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
if (typeof type === "function") {
|
|
239
|
+
return type.displayName || type.name || null;
|
|
240
|
+
}
|
|
241
|
+
if (typeof type === "string") {
|
|
242
|
+
return type;
|
|
243
|
+
}
|
|
244
|
+
switch (type) {
|
|
245
|
+
case REACT_FRAGMENT_TYPE:
|
|
246
|
+
return "Fragment";
|
|
170
247
|
case REACT_PORTAL_TYPE:
|
|
171
248
|
return "Portal";
|
|
172
|
-
case
|
|
173
|
-
return
|
|
174
|
-
case
|
|
175
|
-
return
|
|
176
|
-
case
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
249
|
+
case REACT_PROFILER_TYPE:
|
|
250
|
+
return "Profiler";
|
|
251
|
+
case REACT_STRICT_MODE_TYPE:
|
|
252
|
+
return "StrictMode";
|
|
253
|
+
case REACT_SUSPENSE_TYPE:
|
|
254
|
+
return "Suspense";
|
|
255
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
256
|
+
return "SuspenseList";
|
|
257
|
+
}
|
|
258
|
+
if (typeof type === "object") {
|
|
259
|
+
switch (type.$$typeof) {
|
|
260
|
+
case REACT_CONTEXT_TYPE:
|
|
261
|
+
var context = type;
|
|
262
|
+
return getContextName(context) + ".Consumer";
|
|
263
|
+
case REACT_PROVIDER_TYPE:
|
|
264
|
+
var provider = type;
|
|
265
|
+
return getContextName(provider._context) + ".Provider";
|
|
266
|
+
case REACT_FORWARD_REF_TYPE:
|
|
267
|
+
return getWrappedName(type, type.render, "ForwardRef");
|
|
268
|
+
case REACT_MEMO_TYPE:
|
|
269
|
+
var outerName = type.displayName || null;
|
|
270
|
+
if (outerName !== null) {
|
|
271
|
+
return outerName;
|
|
272
|
+
}
|
|
273
|
+
return getComponentNameFromType(type.type) || "Memo";
|
|
274
|
+
case REACT_LAZY_TYPE: {
|
|
275
|
+
var lazyComponent = type;
|
|
276
|
+
var payload = lazyComponent._payload;
|
|
277
|
+
var init = lazyComponent._init;
|
|
278
|
+
try {
|
|
279
|
+
return getComponentNameFromType(init(payload));
|
|
280
|
+
} catch (x) {
|
|
281
|
+
return null;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
return null;
|
|
287
|
+
}
|
|
288
|
+
var assign = Object.assign;
|
|
289
|
+
var disabledDepth = 0;
|
|
290
|
+
var prevLog;
|
|
291
|
+
var prevInfo;
|
|
292
|
+
var prevWarn;
|
|
293
|
+
var prevError;
|
|
294
|
+
var prevGroup;
|
|
295
|
+
var prevGroupCollapsed;
|
|
296
|
+
var prevGroupEnd;
|
|
297
|
+
function disabledLog() {
|
|
298
|
+
}
|
|
299
|
+
disabledLog.__reactDisabledLog = true;
|
|
300
|
+
function disableLogs() {
|
|
301
|
+
{
|
|
302
|
+
if (disabledDepth === 0) {
|
|
303
|
+
prevLog = console.log;
|
|
304
|
+
prevInfo = console.info;
|
|
305
|
+
prevWarn = console.warn;
|
|
306
|
+
prevError = console.error;
|
|
307
|
+
prevGroup = console.group;
|
|
308
|
+
prevGroupCollapsed = console.groupCollapsed;
|
|
309
|
+
prevGroupEnd = console.groupEnd;
|
|
310
|
+
var props = {
|
|
311
|
+
configurable: true,
|
|
312
|
+
enumerable: true,
|
|
313
|
+
value: disabledLog,
|
|
314
|
+
writable: true
|
|
315
|
+
};
|
|
316
|
+
Object.defineProperties(console, {
|
|
317
|
+
info: props,
|
|
318
|
+
log: props,
|
|
319
|
+
warn: props,
|
|
320
|
+
error: props,
|
|
321
|
+
group: props,
|
|
322
|
+
groupCollapsed: props,
|
|
323
|
+
groupEnd: props
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
disabledDepth++;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
function reenableLogs() {
|
|
330
|
+
{
|
|
331
|
+
disabledDepth--;
|
|
332
|
+
if (disabledDepth === 0) {
|
|
333
|
+
var props = {
|
|
334
|
+
configurable: true,
|
|
335
|
+
enumerable: true,
|
|
336
|
+
writable: true
|
|
337
|
+
};
|
|
338
|
+
Object.defineProperties(console, {
|
|
339
|
+
log: assign({}, props, {
|
|
340
|
+
value: prevLog
|
|
341
|
+
}),
|
|
342
|
+
info: assign({}, props, {
|
|
343
|
+
value: prevInfo
|
|
344
|
+
}),
|
|
345
|
+
warn: assign({}, props, {
|
|
346
|
+
value: prevWarn
|
|
347
|
+
}),
|
|
348
|
+
error: assign({}, props, {
|
|
349
|
+
value: prevError
|
|
350
|
+
}),
|
|
351
|
+
group: assign({}, props, {
|
|
352
|
+
value: prevGroup
|
|
353
|
+
}),
|
|
354
|
+
groupCollapsed: assign({}, props, {
|
|
355
|
+
value: prevGroupCollapsed
|
|
356
|
+
}),
|
|
357
|
+
groupEnd: assign({}, props, {
|
|
358
|
+
value: prevGroupEnd
|
|
359
|
+
})
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
if (disabledDepth < 0) {
|
|
363
|
+
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
368
|
+
var prefix;
|
|
369
|
+
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
370
|
+
{
|
|
371
|
+
if (prefix === void 0) {
|
|
186
372
|
try {
|
|
187
|
-
|
|
373
|
+
throw Error();
|
|
188
374
|
} catch (x) {
|
|
375
|
+
var match2 = x.stack.trim().match(/\n( *(at )?)/);
|
|
376
|
+
prefix = match2 && match2[1] || "";
|
|
189
377
|
}
|
|
378
|
+
}
|
|
379
|
+
return "\n" + prefix + name;
|
|
190
380
|
}
|
|
191
|
-
return null;
|
|
192
|
-
}
|
|
193
|
-
function testStringCoercion(value) {
|
|
194
|
-
return "" + value;
|
|
195
|
-
}
|
|
196
|
-
function checkKeyStringCoercion(value) {
|
|
197
|
-
try {
|
|
198
|
-
testStringCoercion(value);
|
|
199
|
-
var JSCompiler_inline_result = false;
|
|
200
|
-
} catch (e) {
|
|
201
|
-
JSCompiler_inline_result = true;
|
|
202
|
-
}
|
|
203
|
-
if (JSCompiler_inline_result) {
|
|
204
|
-
JSCompiler_inline_result = console;
|
|
205
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
206
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
207
|
-
JSCompiler_temp_const.call(
|
|
208
|
-
JSCompiler_inline_result,
|
|
209
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
210
|
-
JSCompiler_inline_result$jscomp$0
|
|
211
|
-
);
|
|
212
|
-
return testStringCoercion(value);
|
|
213
381
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
try {
|
|
220
|
-
var name = getComponentNameFromType(type);
|
|
221
|
-
return name ? "<" + name + ">" : "<...>";
|
|
222
|
-
} catch (x) {
|
|
223
|
-
return "<...>";
|
|
382
|
+
var reentry = false;
|
|
383
|
+
var componentFrameCache;
|
|
384
|
+
{
|
|
385
|
+
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
386
|
+
componentFrameCache = new PossiblyWeakMap();
|
|
224
387
|
}
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
var
|
|
236
|
-
|
|
388
|
+
function describeNativeComponentFrame(fn2, construct) {
|
|
389
|
+
if (!fn2 || reentry) {
|
|
390
|
+
return "";
|
|
391
|
+
}
|
|
392
|
+
{
|
|
393
|
+
var frame = componentFrameCache.get(fn2);
|
|
394
|
+
if (frame !== void 0) {
|
|
395
|
+
return frame;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
var control;
|
|
399
|
+
reentry = true;
|
|
400
|
+
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
401
|
+
Error.prepareStackTrace = void 0;
|
|
402
|
+
var previousDispatcher;
|
|
403
|
+
{
|
|
404
|
+
previousDispatcher = ReactCurrentDispatcher.current;
|
|
405
|
+
ReactCurrentDispatcher.current = null;
|
|
406
|
+
disableLogs();
|
|
407
|
+
}
|
|
408
|
+
try {
|
|
409
|
+
if (construct) {
|
|
410
|
+
var Fake = function() {
|
|
411
|
+
throw Error();
|
|
412
|
+
};
|
|
413
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
414
|
+
set: function() {
|
|
415
|
+
throw Error();
|
|
416
|
+
}
|
|
417
|
+
});
|
|
418
|
+
if (typeof Reflect === "object" && Reflect.construct) {
|
|
419
|
+
try {
|
|
420
|
+
Reflect.construct(Fake, []);
|
|
421
|
+
} catch (x) {
|
|
422
|
+
control = x;
|
|
423
|
+
}
|
|
424
|
+
Reflect.construct(fn2, [], Fake);
|
|
425
|
+
} else {
|
|
426
|
+
try {
|
|
427
|
+
Fake.call();
|
|
428
|
+
} catch (x) {
|
|
429
|
+
control = x;
|
|
430
|
+
}
|
|
431
|
+
fn2.call(Fake.prototype);
|
|
432
|
+
}
|
|
433
|
+
} else {
|
|
434
|
+
try {
|
|
435
|
+
throw Error();
|
|
436
|
+
} catch (x) {
|
|
437
|
+
control = x;
|
|
438
|
+
}
|
|
439
|
+
fn2();
|
|
440
|
+
}
|
|
441
|
+
} catch (sample) {
|
|
442
|
+
if (sample && control && typeof sample.stack === "string") {
|
|
443
|
+
var sampleLines = sample.stack.split("\n");
|
|
444
|
+
var controlLines = control.stack.split("\n");
|
|
445
|
+
var s = sampleLines.length - 1;
|
|
446
|
+
var c = controlLines.length - 1;
|
|
447
|
+
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
448
|
+
c--;
|
|
449
|
+
}
|
|
450
|
+
for (; s >= 1 && c >= 0; s--, c--) {
|
|
451
|
+
if (sampleLines[s] !== controlLines[c]) {
|
|
452
|
+
if (s !== 1 || c !== 1) {
|
|
453
|
+
do {
|
|
454
|
+
s--;
|
|
455
|
+
c--;
|
|
456
|
+
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
457
|
+
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
458
|
+
if (fn2.displayName && _frame.includes("<anonymous>")) {
|
|
459
|
+
_frame = _frame.replace("<anonymous>", fn2.displayName);
|
|
460
|
+
}
|
|
461
|
+
{
|
|
462
|
+
if (typeof fn2 === "function") {
|
|
463
|
+
componentFrameCache.set(fn2, _frame);
|
|
464
|
+
}
|
|
465
|
+
}
|
|
466
|
+
return _frame;
|
|
467
|
+
}
|
|
468
|
+
} while (s >= 1 && c >= 0);
|
|
469
|
+
}
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
} finally {
|
|
475
|
+
reentry = false;
|
|
476
|
+
{
|
|
477
|
+
ReactCurrentDispatcher.current = previousDispatcher;
|
|
478
|
+
reenableLogs();
|
|
479
|
+
}
|
|
480
|
+
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
481
|
+
}
|
|
482
|
+
var name = fn2 ? fn2.displayName || fn2.name : "";
|
|
483
|
+
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
484
|
+
{
|
|
485
|
+
if (typeof fn2 === "function") {
|
|
486
|
+
componentFrameCache.set(fn2, syntheticFrame);
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
return syntheticFrame;
|
|
237
490
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
243
|
-
"%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)",
|
|
244
|
-
displayName
|
|
245
|
-
));
|
|
491
|
+
function describeFunctionComponentFrame(fn2, source, ownerFn) {
|
|
492
|
+
{
|
|
493
|
+
return describeNativeComponentFrame(fn2, false);
|
|
494
|
+
}
|
|
246
495
|
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
496
|
+
function shouldConstruct(Component) {
|
|
497
|
+
var prototype = Component.prototype;
|
|
498
|
+
return !!(prototype && prototype.isReactComponent);
|
|
499
|
+
}
|
|
500
|
+
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
501
|
+
if (type == null) {
|
|
502
|
+
return "";
|
|
503
|
+
}
|
|
504
|
+
if (typeof type === "function") {
|
|
505
|
+
{
|
|
506
|
+
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
if (typeof type === "string") {
|
|
510
|
+
return describeBuiltInComponentFrame(type);
|
|
511
|
+
}
|
|
512
|
+
switch (type) {
|
|
513
|
+
case REACT_SUSPENSE_TYPE:
|
|
514
|
+
return describeBuiltInComponentFrame("Suspense");
|
|
515
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
516
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
|
517
|
+
}
|
|
518
|
+
if (typeof type === "object") {
|
|
519
|
+
switch (type.$$typeof) {
|
|
520
|
+
case REACT_FORWARD_REF_TYPE:
|
|
521
|
+
return describeFunctionComponentFrame(type.render);
|
|
522
|
+
case REACT_MEMO_TYPE:
|
|
523
|
+
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
524
|
+
case REACT_LAZY_TYPE: {
|
|
525
|
+
var lazyComponent = type;
|
|
526
|
+
var payload = lazyComponent._payload;
|
|
527
|
+
var init = lazyComponent._init;
|
|
528
|
+
try {
|
|
529
|
+
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
530
|
+
} catch (x) {
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
return "";
|
|
536
|
+
}
|
|
537
|
+
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
538
|
+
var loggedTypeFailures = {};
|
|
539
|
+
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
540
|
+
function setCurrentlyValidatingElement(element) {
|
|
541
|
+
{
|
|
542
|
+
if (element) {
|
|
543
|
+
var owner = element._owner;
|
|
544
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
545
|
+
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
546
|
+
} else {
|
|
547
|
+
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
552
|
+
{
|
|
553
|
+
var has2 = Function.call.bind(hasOwnProperty2);
|
|
554
|
+
for (var typeSpecName in typeSpecs) {
|
|
555
|
+
if (has2(typeSpecs, typeSpecName)) {
|
|
556
|
+
var error$1 = void 0;
|
|
557
|
+
try {
|
|
558
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
559
|
+
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`.");
|
|
560
|
+
err.name = "Invariant Violation";
|
|
561
|
+
throw err;
|
|
562
|
+
}
|
|
563
|
+
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
564
|
+
} catch (ex) {
|
|
565
|
+
error$1 = ex;
|
|
566
|
+
}
|
|
567
|
+
if (error$1 && !(error$1 instanceof Error)) {
|
|
568
|
+
setCurrentlyValidatingElement(element);
|
|
569
|
+
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);
|
|
570
|
+
setCurrentlyValidatingElement(null);
|
|
571
|
+
}
|
|
572
|
+
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
573
|
+
loggedTypeFailures[error$1.message] = true;
|
|
574
|
+
setCurrentlyValidatingElement(element);
|
|
575
|
+
error("Failed %s type: %s", location, error$1.message);
|
|
576
|
+
setCurrentlyValidatingElement(null);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
var isArrayImpl = Array.isArray;
|
|
583
|
+
function isArray2(a) {
|
|
584
|
+
return isArrayImpl(a);
|
|
585
|
+
}
|
|
586
|
+
function typeName(value) {
|
|
587
|
+
{
|
|
588
|
+
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
589
|
+
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
590
|
+
return type;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
function willCoercionThrow(value) {
|
|
594
|
+
{
|
|
595
|
+
try {
|
|
596
|
+
testStringCoercion(value);
|
|
597
|
+
return false;
|
|
598
|
+
} catch (e) {
|
|
599
|
+
return true;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
function testStringCoercion(value) {
|
|
604
|
+
return "" + value;
|
|
605
|
+
}
|
|
606
|
+
function checkKeyStringCoercion(value) {
|
|
607
|
+
{
|
|
608
|
+
if (willCoercionThrow(value)) {
|
|
609
|
+
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
610
|
+
return testStringCoercion(value);
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
615
|
+
var RESERVED_PROPS = {
|
|
616
|
+
key: true,
|
|
617
|
+
ref: true,
|
|
618
|
+
__self: true,
|
|
619
|
+
__source: true
|
|
269
620
|
};
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
configurable: false,
|
|
283
|
-
enumerable: false,
|
|
284
|
-
writable: true,
|
|
285
|
-
value: null
|
|
286
|
-
});
|
|
287
|
-
Object.defineProperty(type, "_debugStack", {
|
|
288
|
-
configurable: false,
|
|
289
|
-
enumerable: false,
|
|
290
|
-
writable: true,
|
|
291
|
-
value: debugStack
|
|
292
|
-
});
|
|
293
|
-
Object.defineProperty(type, "_debugTask", {
|
|
294
|
-
configurable: false,
|
|
295
|
-
enumerable: false,
|
|
296
|
-
writable: true,
|
|
297
|
-
value: debugTask
|
|
298
|
-
});
|
|
299
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
300
|
-
return type;
|
|
301
|
-
}
|
|
302
|
-
function jsxDEVImpl(type, config2, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
303
|
-
var children = config2.children;
|
|
304
|
-
if (void 0 !== children)
|
|
305
|
-
if (isStaticChildren)
|
|
306
|
-
if (isArrayImpl(children)) {
|
|
307
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
308
|
-
validateChildKeys(children[isStaticChildren]);
|
|
309
|
-
Object.freeze && Object.freeze(children);
|
|
310
|
-
} else
|
|
311
|
-
console.error(
|
|
312
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
313
|
-
);
|
|
314
|
-
else validateChildKeys(children);
|
|
315
|
-
if (hasOwnProperty2.call(config2, "key")) {
|
|
316
|
-
children = getComponentNameFromType(type);
|
|
317
|
-
var keys = Object.keys(config2).filter(function(k) {
|
|
318
|
-
return "key" !== k;
|
|
319
|
-
});
|
|
320
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
321
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
322
|
-
'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} />',
|
|
323
|
-
isStaticChildren,
|
|
324
|
-
children,
|
|
325
|
-
keys,
|
|
326
|
-
children
|
|
327
|
-
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
328
|
-
}
|
|
329
|
-
children = null;
|
|
330
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
331
|
-
hasValidKey(config2) && (checkKeyStringCoercion(config2.key), children = "" + config2.key);
|
|
332
|
-
if ("key" in config2) {
|
|
333
|
-
maybeKey = {};
|
|
334
|
-
for (var propName in config2)
|
|
335
|
-
"key" !== propName && (maybeKey[propName] = config2[propName]);
|
|
336
|
-
} else maybeKey = config2;
|
|
337
|
-
children && defineKeyPropWarningGetter(
|
|
338
|
-
maybeKey,
|
|
339
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
340
|
-
);
|
|
341
|
-
return ReactElement(
|
|
342
|
-
type,
|
|
343
|
-
children,
|
|
344
|
-
maybeKey,
|
|
345
|
-
getOwner(),
|
|
346
|
-
debugStack,
|
|
347
|
-
debugTask
|
|
348
|
-
);
|
|
349
|
-
}
|
|
350
|
-
function validateChildKeys(node) {
|
|
351
|
-
isValidElement2(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement2(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
352
|
-
}
|
|
353
|
-
function isValidElement2(object) {
|
|
354
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
355
|
-
}
|
|
356
|
-
var React2 = $73SJx$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"), 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 = React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty2 = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
357
|
-
return null;
|
|
358
|
-
};
|
|
359
|
-
React2 = {
|
|
360
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
361
|
-
return callStackForError();
|
|
621
|
+
var specialPropKeyWarningShown;
|
|
622
|
+
var specialPropRefWarningShown;
|
|
623
|
+
function hasValidRef(config2) {
|
|
624
|
+
{
|
|
625
|
+
if (hasOwnProperty2.call(config2, "ref")) {
|
|
626
|
+
var getter = Object.getOwnPropertyDescriptor(config2, "ref").get;
|
|
627
|
+
if (getter && getter.isReactWarning) {
|
|
628
|
+
return false;
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
return config2.ref !== void 0;
|
|
362
633
|
}
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
634
|
+
function hasValidKey(config2) {
|
|
635
|
+
{
|
|
636
|
+
if (hasOwnProperty2.call(config2, "key")) {
|
|
637
|
+
var getter = Object.getOwnPropertyDescriptor(config2, "key").get;
|
|
638
|
+
if (getter && getter.isReactWarning) {
|
|
639
|
+
return false;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
return config2.key !== void 0;
|
|
644
|
+
}
|
|
645
|
+
function warnIfStringRefCannotBeAutoConverted(config2, self2) {
|
|
646
|
+
{
|
|
647
|
+
if (typeof config2.ref === "string" && ReactCurrentOwner.current && self2) ;
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
651
|
+
{
|
|
652
|
+
var warnAboutAccessingKey = function() {
|
|
653
|
+
if (!specialPropKeyWarningShown) {
|
|
654
|
+
specialPropKeyWarningShown = true;
|
|
655
|
+
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
656
|
+
}
|
|
657
|
+
};
|
|
658
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
659
|
+
Object.defineProperty(props, "key", {
|
|
660
|
+
get: warnAboutAccessingKey,
|
|
661
|
+
configurable: true
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
function defineRefPropWarningGetter(props, displayName) {
|
|
666
|
+
{
|
|
667
|
+
var warnAboutAccessingRef = function() {
|
|
668
|
+
if (!specialPropRefWarningShown) {
|
|
669
|
+
specialPropRefWarningShown = true;
|
|
670
|
+
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
warnAboutAccessingRef.isReactWarning = true;
|
|
674
|
+
Object.defineProperty(props, "ref", {
|
|
675
|
+
get: warnAboutAccessingRef,
|
|
676
|
+
configurable: true
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
var ReactElement = function(type, key, ref, self2, source, owner, props) {
|
|
681
|
+
var element = {
|
|
682
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
683
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
684
|
+
// Built-in properties that belong on the element
|
|
685
|
+
type,
|
|
686
|
+
key,
|
|
687
|
+
ref,
|
|
688
|
+
props,
|
|
689
|
+
// Record the component responsible for creating this element.
|
|
690
|
+
_owner: owner
|
|
691
|
+
};
|
|
692
|
+
{
|
|
693
|
+
element._store = {};
|
|
694
|
+
Object.defineProperty(element._store, "validated", {
|
|
695
|
+
configurable: false,
|
|
696
|
+
enumerable: false,
|
|
697
|
+
writable: true,
|
|
698
|
+
value: false
|
|
699
|
+
});
|
|
700
|
+
Object.defineProperty(element, "_self", {
|
|
701
|
+
configurable: false,
|
|
702
|
+
enumerable: false,
|
|
703
|
+
writable: false,
|
|
704
|
+
value: self2
|
|
705
|
+
});
|
|
706
|
+
Object.defineProperty(element, "_source", {
|
|
707
|
+
configurable: false,
|
|
708
|
+
enumerable: false,
|
|
709
|
+
writable: false,
|
|
710
|
+
value: source
|
|
711
|
+
});
|
|
712
|
+
if (Object.freeze) {
|
|
713
|
+
Object.freeze(element.props);
|
|
714
|
+
Object.freeze(element);
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
return element;
|
|
718
|
+
};
|
|
719
|
+
function jsxDEV(type, config2, maybeKey, source, self2) {
|
|
720
|
+
{
|
|
721
|
+
var propName;
|
|
722
|
+
var props = {};
|
|
723
|
+
var key = null;
|
|
724
|
+
var ref = null;
|
|
725
|
+
if (maybeKey !== void 0) {
|
|
726
|
+
{
|
|
727
|
+
checkKeyStringCoercion(maybeKey);
|
|
728
|
+
}
|
|
729
|
+
key = "" + maybeKey;
|
|
730
|
+
}
|
|
731
|
+
if (hasValidKey(config2)) {
|
|
732
|
+
{
|
|
733
|
+
checkKeyStringCoercion(config2.key);
|
|
734
|
+
}
|
|
735
|
+
key = "" + config2.key;
|
|
736
|
+
}
|
|
737
|
+
if (hasValidRef(config2)) {
|
|
738
|
+
ref = config2.ref;
|
|
739
|
+
warnIfStringRefCannotBeAutoConverted(config2, self2);
|
|
740
|
+
}
|
|
741
|
+
for (propName in config2) {
|
|
742
|
+
if (hasOwnProperty2.call(config2, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
743
|
+
props[propName] = config2[propName];
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
if (type && type.defaultProps) {
|
|
747
|
+
var defaultProps2 = type.defaultProps;
|
|
748
|
+
for (propName in defaultProps2) {
|
|
749
|
+
if (props[propName] === void 0) {
|
|
750
|
+
props[propName] = defaultProps2[propName];
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
if (key || ref) {
|
|
755
|
+
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
756
|
+
if (key) {
|
|
757
|
+
defineKeyPropWarningGetter(props, displayName);
|
|
758
|
+
}
|
|
759
|
+
if (ref) {
|
|
760
|
+
defineRefPropWarningGetter(props, displayName);
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
|
|
767
|
+
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
768
|
+
function setCurrentlyValidatingElement$1(element) {
|
|
769
|
+
{
|
|
770
|
+
if (element) {
|
|
771
|
+
var owner = element._owner;
|
|
772
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
773
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
774
|
+
} else {
|
|
775
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
var propTypesMisspellWarningShown;
|
|
780
|
+
{
|
|
781
|
+
propTypesMisspellWarningShown = false;
|
|
782
|
+
}
|
|
783
|
+
function isValidElement2(object) {
|
|
784
|
+
{
|
|
785
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
function getDeclarationErrorAddendum() {
|
|
789
|
+
{
|
|
790
|
+
if (ReactCurrentOwner$1.current) {
|
|
791
|
+
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
792
|
+
if (name) {
|
|
793
|
+
return "\n\nCheck the render method of `" + name + "`.";
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
return "";
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
function getSourceInfoErrorAddendum(source) {
|
|
800
|
+
{
|
|
801
|
+
return "";
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
var ownerHasKeyUseWarning = {};
|
|
805
|
+
function getCurrentComponentErrorInfo(parentType) {
|
|
806
|
+
{
|
|
807
|
+
var info = getDeclarationErrorAddendum();
|
|
808
|
+
if (!info) {
|
|
809
|
+
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
810
|
+
if (parentName) {
|
|
811
|
+
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
return info;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
function validateExplicitKey(element, parentType) {
|
|
818
|
+
{
|
|
819
|
+
if (!element._store || element._store.validated || element.key != null) {
|
|
820
|
+
return;
|
|
821
|
+
}
|
|
822
|
+
element._store.validated = true;
|
|
823
|
+
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
824
|
+
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
825
|
+
return;
|
|
826
|
+
}
|
|
827
|
+
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
828
|
+
var childOwner = "";
|
|
829
|
+
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
830
|
+
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
831
|
+
}
|
|
832
|
+
setCurrentlyValidatingElement$1(element);
|
|
833
|
+
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);
|
|
834
|
+
setCurrentlyValidatingElement$1(null);
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
function validateChildKeys(node, parentType) {
|
|
838
|
+
{
|
|
839
|
+
if (typeof node !== "object") {
|
|
840
|
+
return;
|
|
841
|
+
}
|
|
842
|
+
if (isArray2(node)) {
|
|
843
|
+
for (var i = 0; i < node.length; i++) {
|
|
844
|
+
var child = node[i];
|
|
845
|
+
if (isValidElement2(child)) {
|
|
846
|
+
validateExplicitKey(child, parentType);
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
} else if (isValidElement2(node)) {
|
|
850
|
+
if (node._store) {
|
|
851
|
+
node._store.validated = true;
|
|
852
|
+
}
|
|
853
|
+
} else if (node) {
|
|
854
|
+
var iteratorFn = getIteratorFn(node);
|
|
855
|
+
if (typeof iteratorFn === "function") {
|
|
856
|
+
if (iteratorFn !== node.entries) {
|
|
857
|
+
var iterator = iteratorFn.call(node);
|
|
858
|
+
var step;
|
|
859
|
+
while (!(step = iterator.next()).done) {
|
|
860
|
+
if (isValidElement2(step.value)) {
|
|
861
|
+
validateExplicitKey(step.value, parentType);
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
function validatePropTypes(element) {
|
|
870
|
+
{
|
|
871
|
+
var type = element.type;
|
|
872
|
+
if (type === null || type === void 0 || typeof type === "string") {
|
|
873
|
+
return;
|
|
874
|
+
}
|
|
875
|
+
var propTypes2;
|
|
876
|
+
if (typeof type === "function") {
|
|
877
|
+
propTypes2 = type.propTypes;
|
|
878
|
+
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
879
|
+
// Inner props are checked in the reconciler.
|
|
880
|
+
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
881
|
+
propTypes2 = type.propTypes;
|
|
882
|
+
} else {
|
|
883
|
+
return;
|
|
884
|
+
}
|
|
885
|
+
if (propTypes2) {
|
|
886
|
+
var name = getComponentNameFromType(type);
|
|
887
|
+
checkPropTypes(propTypes2, element.props, "prop", name, element);
|
|
888
|
+
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
889
|
+
propTypesMisspellWarningShown = true;
|
|
890
|
+
var _name = getComponentNameFromType(type);
|
|
891
|
+
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
892
|
+
}
|
|
893
|
+
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
894
|
+
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
function validateFragmentProps(fragment) {
|
|
899
|
+
{
|
|
900
|
+
var keys = Object.keys(fragment.props);
|
|
901
|
+
for (var i = 0; i < keys.length; i++) {
|
|
902
|
+
var key = keys[i];
|
|
903
|
+
if (key !== "children" && key !== "key") {
|
|
904
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
905
|
+
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
906
|
+
setCurrentlyValidatingElement$1(null);
|
|
907
|
+
break;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
if (fragment.ref !== null) {
|
|
911
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
912
|
+
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
913
|
+
setCurrentlyValidatingElement$1(null);
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
var didWarnAboutKeySpread = {};
|
|
918
|
+
function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
|
|
919
|
+
{
|
|
920
|
+
var validType = isValidElementType(type);
|
|
921
|
+
if (!validType) {
|
|
922
|
+
var info = "";
|
|
923
|
+
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
924
|
+
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.";
|
|
925
|
+
}
|
|
926
|
+
var sourceInfo = getSourceInfoErrorAddendum();
|
|
927
|
+
if (sourceInfo) {
|
|
928
|
+
info += sourceInfo;
|
|
929
|
+
} else {
|
|
930
|
+
info += getDeclarationErrorAddendum();
|
|
931
|
+
}
|
|
932
|
+
var typeString;
|
|
933
|
+
if (type === null) {
|
|
934
|
+
typeString = "null";
|
|
935
|
+
} else if (isArray2(type)) {
|
|
936
|
+
typeString = "array";
|
|
937
|
+
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
938
|
+
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
939
|
+
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
940
|
+
} else {
|
|
941
|
+
typeString = typeof type;
|
|
942
|
+
}
|
|
943
|
+
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);
|
|
944
|
+
}
|
|
945
|
+
var element = jsxDEV(type, props, key, source, self2);
|
|
946
|
+
if (element == null) {
|
|
947
|
+
return element;
|
|
948
|
+
}
|
|
949
|
+
if (validType) {
|
|
950
|
+
var children = props.children;
|
|
951
|
+
if (children !== void 0) {
|
|
952
|
+
if (isStaticChildren) {
|
|
953
|
+
if (isArray2(children)) {
|
|
954
|
+
for (var i = 0; i < children.length; i++) {
|
|
955
|
+
validateChildKeys(children[i], type);
|
|
956
|
+
}
|
|
957
|
+
if (Object.freeze) {
|
|
958
|
+
Object.freeze(children);
|
|
959
|
+
}
|
|
960
|
+
} else {
|
|
961
|
+
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.");
|
|
962
|
+
}
|
|
963
|
+
} else {
|
|
964
|
+
validateChildKeys(children, type);
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
{
|
|
969
|
+
if (hasOwnProperty2.call(props, "key")) {
|
|
970
|
+
var componentName = getComponentNameFromType(type);
|
|
971
|
+
var keys = Object.keys(props).filter(function(k) {
|
|
972
|
+
return k !== "key";
|
|
973
|
+
});
|
|
974
|
+
var beforeExample = keys.length > 0 ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
975
|
+
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
976
|
+
var afterExample = keys.length > 0 ? "{" + keys.join(": ..., ") + ": ...}" : "{}";
|
|
977
|
+
error('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} />', beforeExample, componentName, afterExample, componentName);
|
|
978
|
+
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
983
|
+
validateFragmentProps(element);
|
|
984
|
+
} else {
|
|
985
|
+
validatePropTypes(element);
|
|
986
|
+
}
|
|
987
|
+
return element;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
function jsxWithValidationStatic(type, props, key) {
|
|
991
|
+
{
|
|
992
|
+
return jsxWithValidation(type, props, key, true);
|
|
993
|
+
}
|
|
994
|
+
}
|
|
995
|
+
function jsxWithValidationDynamic(type, props, key) {
|
|
996
|
+
{
|
|
997
|
+
return jsxWithValidation(type, props, key, false);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
var jsx = jsxWithValidationDynamic;
|
|
1001
|
+
var jsxs = jsxWithValidationStatic;
|
|
1002
|
+
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
1003
|
+
reactJsxRuntime_development.jsx = jsx;
|
|
1004
|
+
reactJsxRuntime_development.jsxs = jsxs;
|
|
1005
|
+
})();
|
|
1006
|
+
}
|
|
396
1007
|
return reactJsxRuntime_development;
|
|
397
1008
|
}
|
|
398
1009
|
if (process.env.NODE_ENV === "production") {
|
|
399
|
-
jsxRuntime.exports =
|
|
1010
|
+
jsxRuntime.exports = requireReactJsxRuntime_production_min();
|
|
400
1011
|
} else {
|
|
401
1012
|
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
402
1013
|
}
|