@streamlayer/react 0.8.0 → 0.8.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/lib/cjs/index.js +249 -3050
- package/lib/esm/index.js +345 -3139
- package/package.json +1 -1
package/lib/esm/index.js
CHANGED
|
@@ -4,10 +4,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __getProtoOf = Object.getPrototypeOf;
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
|
|
8
|
+
get: (a, b2) => (typeof require !== "undefined" ? require : a)[b2]
|
|
9
|
+
}) : x2)(function(x2) {
|
|
10
|
+
if (typeof require !== "undefined")
|
|
11
|
+
return require.apply(this, arguments);
|
|
12
|
+
throw new Error('Dynamic require of "' + x2 + '" is not supported');
|
|
13
|
+
});
|
|
7
14
|
var __esm = (fn, res) => function __init() {
|
|
8
15
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
9
16
|
};
|
|
10
|
-
var __commonJS = (cb, mod) => function
|
|
17
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
11
18
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
19
|
};
|
|
13
20
|
var __export = (target, all) => {
|
|
@@ -239,3040 +246,261 @@ var init_process = __esm({
|
|
|
239
246
|
}
|
|
240
247
|
});
|
|
241
248
|
|
|
242
|
-
// node_modules/.pnpm/react@
|
|
243
|
-
var
|
|
244
|
-
"node_modules/.pnpm/react@
|
|
249
|
+
// node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
|
|
250
|
+
var require_react_is_development = __commonJS({
|
|
251
|
+
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
245
252
|
"use strict";
|
|
246
253
|
init_process();
|
|
247
254
|
if (true) {
|
|
248
255
|
(function() {
|
|
249
256
|
"use strict";
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
var
|
|
254
|
-
var
|
|
255
|
-
var
|
|
256
|
-
var
|
|
257
|
-
var
|
|
258
|
-
var
|
|
259
|
-
var
|
|
260
|
-
var
|
|
261
|
-
var
|
|
262
|
-
var
|
|
263
|
-
var
|
|
264
|
-
var
|
|
265
|
-
var
|
|
266
|
-
var
|
|
267
|
-
var
|
|
268
|
-
var
|
|
269
|
-
function
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}
|
|
273
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
274
|
-
if (typeof maybeIterator === "function") {
|
|
275
|
-
return maybeIterator;
|
|
276
|
-
}
|
|
277
|
-
return null;
|
|
278
|
-
}
|
|
279
|
-
var ReactCurrentDispatcher = {
|
|
280
|
-
/**
|
|
281
|
-
* @internal
|
|
282
|
-
* @type {ReactComponent}
|
|
283
|
-
*/
|
|
284
|
-
current: null
|
|
285
|
-
};
|
|
286
|
-
var ReactCurrentBatchConfig = {
|
|
287
|
-
transition: null
|
|
288
|
-
};
|
|
289
|
-
var ReactCurrentActQueue = {
|
|
290
|
-
current: null,
|
|
291
|
-
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
292
|
-
isBatchingLegacy: false,
|
|
293
|
-
didScheduleLegacyUpdate: false
|
|
294
|
-
};
|
|
295
|
-
var ReactCurrentOwner = {
|
|
296
|
-
/**
|
|
297
|
-
* @internal
|
|
298
|
-
* @type {ReactComponent}
|
|
299
|
-
*/
|
|
300
|
-
current: null
|
|
301
|
-
};
|
|
302
|
-
var ReactDebugCurrentFrame = {};
|
|
303
|
-
var currentExtraStackFrame = null;
|
|
304
|
-
function setExtraStackFrame(stack) {
|
|
305
|
-
{
|
|
306
|
-
currentExtraStackFrame = stack;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
{
|
|
310
|
-
ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
|
|
311
|
-
{
|
|
312
|
-
currentExtraStackFrame = stack;
|
|
313
|
-
}
|
|
314
|
-
};
|
|
315
|
-
ReactDebugCurrentFrame.getCurrentStack = null;
|
|
316
|
-
ReactDebugCurrentFrame.getStackAddendum = function() {
|
|
317
|
-
var stack = "";
|
|
318
|
-
if (currentExtraStackFrame) {
|
|
319
|
-
stack += currentExtraStackFrame;
|
|
320
|
-
}
|
|
321
|
-
var impl = ReactDebugCurrentFrame.getCurrentStack;
|
|
322
|
-
if (impl) {
|
|
323
|
-
stack += impl() || "";
|
|
324
|
-
}
|
|
325
|
-
return stack;
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
var enableScopeAPI = false;
|
|
329
|
-
var enableCacheElement = false;
|
|
330
|
-
var enableTransitionTracing = false;
|
|
331
|
-
var enableLegacyHidden = false;
|
|
332
|
-
var enableDebugTracing = false;
|
|
333
|
-
var ReactSharedInternals = {
|
|
334
|
-
ReactCurrentDispatcher,
|
|
335
|
-
ReactCurrentBatchConfig,
|
|
336
|
-
ReactCurrentOwner
|
|
337
|
-
};
|
|
338
|
-
{
|
|
339
|
-
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
340
|
-
ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
|
|
341
|
-
}
|
|
342
|
-
function warn(format4) {
|
|
343
|
-
{
|
|
344
|
-
{
|
|
345
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
346
|
-
args[_key - 1] = arguments[_key];
|
|
347
|
-
}
|
|
348
|
-
printWarning("warn", format4, args);
|
|
349
|
-
}
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
function error(format4) {
|
|
353
|
-
{
|
|
354
|
-
{
|
|
355
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
356
|
-
args[_key2 - 1] = arguments[_key2];
|
|
357
|
-
}
|
|
358
|
-
printWarning("error", format4, args);
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
function printWarning(level, format4, args) {
|
|
363
|
-
{
|
|
364
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
365
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
366
|
-
if (stack !== "") {
|
|
367
|
-
format4 += "%s";
|
|
368
|
-
args = args.concat([stack]);
|
|
369
|
-
}
|
|
370
|
-
var argsWithFormat = args.map(function(item) {
|
|
371
|
-
return String(item);
|
|
372
|
-
});
|
|
373
|
-
argsWithFormat.unshift("Warning: " + format4);
|
|
374
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
var didWarnStateUpdateForUnmountedComponent = {};
|
|
378
|
-
function warnNoop(publicInstance, callerName) {
|
|
379
|
-
{
|
|
380
|
-
var _constructor = publicInstance.constructor;
|
|
381
|
-
var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
|
|
382
|
-
var warningKey = componentName + "." + callerName;
|
|
383
|
-
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
384
|
-
return;
|
|
385
|
-
}
|
|
386
|
-
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);
|
|
387
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
var ReactNoopUpdateQueue = {
|
|
391
|
-
/**
|
|
392
|
-
* Checks whether or not this composite component is mounted.
|
|
393
|
-
* @param {ReactClass} publicInstance The instance we want to test.
|
|
394
|
-
* @return {boolean} True if mounted, false otherwise.
|
|
395
|
-
* @protected
|
|
396
|
-
* @final
|
|
397
|
-
*/
|
|
398
|
-
isMounted: function(publicInstance) {
|
|
399
|
-
return false;
|
|
400
|
-
},
|
|
401
|
-
/**
|
|
402
|
-
* Forces an update. This should only be invoked when it is known with
|
|
403
|
-
* certainty that we are **not** in a DOM transaction.
|
|
404
|
-
*
|
|
405
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
406
|
-
* component's state has changed but `setState` was not called.
|
|
407
|
-
*
|
|
408
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
409
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
410
|
-
*
|
|
411
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
412
|
-
* @param {?function} callback Called after component is updated.
|
|
413
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
414
|
-
* @internal
|
|
415
|
-
*/
|
|
416
|
-
enqueueForceUpdate: function(publicInstance, callback, callerName) {
|
|
417
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
418
|
-
},
|
|
419
|
-
/**
|
|
420
|
-
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
421
|
-
* You should treat `this.state` as immutable.
|
|
422
|
-
*
|
|
423
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
424
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
425
|
-
*
|
|
426
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
427
|
-
* @param {object} completeState Next state.
|
|
428
|
-
* @param {?function} callback Called after component is updated.
|
|
429
|
-
* @param {?string} callerName name of the calling function in the public API.
|
|
430
|
-
* @internal
|
|
431
|
-
*/
|
|
432
|
-
enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
|
|
433
|
-
warnNoop(publicInstance, "replaceState");
|
|
434
|
-
},
|
|
435
|
-
/**
|
|
436
|
-
* Sets a subset of the state. This only exists because _pendingState is
|
|
437
|
-
* internal. This provides a merging strategy that is not available to deep
|
|
438
|
-
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
439
|
-
* during the merge.
|
|
440
|
-
*
|
|
441
|
-
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
442
|
-
* @param {object} partialState Next partial state to be merged with state.
|
|
443
|
-
* @param {?function} callback Called after component is updated.
|
|
444
|
-
* @param {?string} Name of the calling function in the public API.
|
|
445
|
-
* @internal
|
|
446
|
-
*/
|
|
447
|
-
enqueueSetState: function(publicInstance, partialState, callback, callerName) {
|
|
448
|
-
warnNoop(publicInstance, "setState");
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
|
-
var assign2 = Object.assign;
|
|
452
|
-
var emptyObject = {};
|
|
453
|
-
{
|
|
454
|
-
Object.freeze(emptyObject);
|
|
455
|
-
}
|
|
456
|
-
function Component(props, context, updater) {
|
|
457
|
-
this.props = props;
|
|
458
|
-
this.context = context;
|
|
459
|
-
this.refs = emptyObject;
|
|
460
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
461
|
-
}
|
|
462
|
-
Component.prototype.isReactComponent = {};
|
|
463
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
464
|
-
if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
|
|
465
|
-
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
466
|
-
}
|
|
467
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
468
|
-
};
|
|
469
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
470
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
471
|
-
};
|
|
472
|
-
{
|
|
473
|
-
var deprecatedAPIs = {
|
|
474
|
-
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
475
|
-
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
476
|
-
};
|
|
477
|
-
var defineDeprecationWarning = function(methodName, info) {
|
|
478
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
479
|
-
get: function() {
|
|
480
|
-
warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
481
|
-
return void 0;
|
|
482
|
-
}
|
|
483
|
-
});
|
|
484
|
-
};
|
|
485
|
-
for (var fnName in deprecatedAPIs) {
|
|
486
|
-
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
487
|
-
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
function ComponentDummy() {
|
|
492
|
-
}
|
|
493
|
-
ComponentDummy.prototype = Component.prototype;
|
|
494
|
-
function PureComponent(props, context, updater) {
|
|
495
|
-
this.props = props;
|
|
496
|
-
this.context = context;
|
|
497
|
-
this.refs = emptyObject;
|
|
498
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
499
|
-
}
|
|
500
|
-
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
501
|
-
pureComponentPrototype.constructor = PureComponent;
|
|
502
|
-
assign2(pureComponentPrototype, Component.prototype);
|
|
503
|
-
pureComponentPrototype.isPureReactComponent = true;
|
|
504
|
-
function createRef() {
|
|
505
|
-
var refObject = {
|
|
506
|
-
current: null
|
|
507
|
-
};
|
|
508
|
-
{
|
|
509
|
-
Object.seal(refObject);
|
|
510
|
-
}
|
|
511
|
-
return refObject;
|
|
512
|
-
}
|
|
513
|
-
var isArrayImpl = Array.isArray;
|
|
514
|
-
function isArray2(a) {
|
|
515
|
-
return isArrayImpl(a);
|
|
516
|
-
}
|
|
517
|
-
function typeName(value) {
|
|
518
|
-
{
|
|
519
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
520
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
521
|
-
return type;
|
|
522
|
-
}
|
|
523
|
-
}
|
|
524
|
-
function willCoercionThrow(value) {
|
|
525
|
-
{
|
|
526
|
-
try {
|
|
527
|
-
testStringCoercion(value);
|
|
528
|
-
return false;
|
|
529
|
-
} catch (e) {
|
|
530
|
-
return true;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
function testStringCoercion(value) {
|
|
535
|
-
return "" + value;
|
|
536
|
-
}
|
|
537
|
-
function checkKeyStringCoercion(value) {
|
|
538
|
-
{
|
|
539
|
-
if (willCoercionThrow(value)) {
|
|
540
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
541
|
-
return testStringCoercion(value);
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
546
|
-
var displayName = outerType.displayName;
|
|
547
|
-
if (displayName) {
|
|
548
|
-
return displayName;
|
|
549
|
-
}
|
|
550
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
551
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
552
|
-
}
|
|
553
|
-
function getContextName(type) {
|
|
554
|
-
return type.displayName || "Context";
|
|
555
|
-
}
|
|
556
|
-
function getComponentNameFromType(type) {
|
|
557
|
-
if (type == null) {
|
|
558
|
-
return null;
|
|
559
|
-
}
|
|
560
|
-
{
|
|
561
|
-
if (typeof type.tag === "number") {
|
|
562
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
if (typeof type === "function") {
|
|
566
|
-
return type.displayName || type.name || null;
|
|
567
|
-
}
|
|
568
|
-
if (typeof type === "string") {
|
|
569
|
-
return type;
|
|
570
|
-
}
|
|
571
|
-
switch (type) {
|
|
572
|
-
case REACT_FRAGMENT_TYPE:
|
|
573
|
-
return "Fragment";
|
|
574
|
-
case REACT_PORTAL_TYPE:
|
|
575
|
-
return "Portal";
|
|
576
|
-
case REACT_PROFILER_TYPE:
|
|
577
|
-
return "Profiler";
|
|
578
|
-
case REACT_STRICT_MODE_TYPE:
|
|
579
|
-
return "StrictMode";
|
|
580
|
-
case REACT_SUSPENSE_TYPE:
|
|
581
|
-
return "Suspense";
|
|
582
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
583
|
-
return "SuspenseList";
|
|
584
|
-
}
|
|
585
|
-
if (typeof type === "object") {
|
|
586
|
-
switch (type.$$typeof) {
|
|
587
|
-
case REACT_CONTEXT_TYPE:
|
|
588
|
-
var context = type;
|
|
589
|
-
return getContextName(context) + ".Consumer";
|
|
590
|
-
case REACT_PROVIDER_TYPE:
|
|
591
|
-
var provider = type;
|
|
592
|
-
return getContextName(provider._context) + ".Provider";
|
|
593
|
-
case REACT_FORWARD_REF_TYPE:
|
|
594
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
595
|
-
case REACT_MEMO_TYPE:
|
|
596
|
-
var outerName = type.displayName || null;
|
|
597
|
-
if (outerName !== null) {
|
|
598
|
-
return outerName;
|
|
599
|
-
}
|
|
600
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
601
|
-
case REACT_LAZY_TYPE: {
|
|
602
|
-
var lazyComponent = type;
|
|
603
|
-
var payload = lazyComponent._payload;
|
|
604
|
-
var init = lazyComponent._init;
|
|
605
|
-
try {
|
|
606
|
-
return getComponentNameFromType(init(payload));
|
|
607
|
-
} catch (x2) {
|
|
608
|
-
return null;
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
return null;
|
|
614
|
-
}
|
|
615
|
-
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
616
|
-
var RESERVED_PROPS = {
|
|
617
|
-
key: true,
|
|
618
|
-
ref: true,
|
|
619
|
-
__self: true,
|
|
620
|
-
__source: true
|
|
621
|
-
};
|
|
622
|
-
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
|
|
623
|
-
{
|
|
624
|
-
didWarnAboutStringRefs = {};
|
|
625
|
-
}
|
|
626
|
-
function hasValidRef(config3) {
|
|
627
|
-
{
|
|
628
|
-
if (hasOwnProperty3.call(config3, "ref")) {
|
|
629
|
-
var getter = Object.getOwnPropertyDescriptor(config3, "ref").get;
|
|
630
|
-
if (getter && getter.isReactWarning) {
|
|
631
|
-
return false;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
return config3.ref !== void 0;
|
|
636
|
-
}
|
|
637
|
-
function hasValidKey(config3) {
|
|
638
|
-
{
|
|
639
|
-
if (hasOwnProperty3.call(config3, "key")) {
|
|
640
|
-
var getter = Object.getOwnPropertyDescriptor(config3, "key").get;
|
|
641
|
-
if (getter && getter.isReactWarning) {
|
|
642
|
-
return false;
|
|
643
|
-
}
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
return config3.key !== void 0;
|
|
647
|
-
}
|
|
648
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
649
|
-
var warnAboutAccessingKey = function() {
|
|
650
|
-
{
|
|
651
|
-
if (!specialPropKeyWarningShown) {
|
|
652
|
-
specialPropKeyWarningShown = true;
|
|
653
|
-
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);
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
};
|
|
657
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
658
|
-
Object.defineProperty(props, "key", {
|
|
659
|
-
get: warnAboutAccessingKey,
|
|
660
|
-
configurable: true
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
664
|
-
var warnAboutAccessingRef = function() {
|
|
665
|
-
{
|
|
666
|
-
if (!specialPropRefWarningShown) {
|
|
667
|
-
specialPropRefWarningShown = true;
|
|
668
|
-
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);
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
673
|
-
Object.defineProperty(props, "ref", {
|
|
674
|
-
get: warnAboutAccessingRef,
|
|
675
|
-
configurable: true
|
|
676
|
-
});
|
|
677
|
-
}
|
|
678
|
-
function warnIfStringRefCannotBeAutoConverted(config3) {
|
|
679
|
-
{
|
|
680
|
-
if (typeof config3.ref === "string" && ReactCurrentOwner.current && config3.__self && ReactCurrentOwner.current.stateNode !== config3.__self) {
|
|
681
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
682
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
683
|
-
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config3.ref);
|
|
684
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
685
|
-
}
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
690
|
-
var element = {
|
|
691
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
692
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
693
|
-
// Built-in properties that belong on the element
|
|
694
|
-
type,
|
|
695
|
-
key,
|
|
696
|
-
ref,
|
|
697
|
-
props,
|
|
698
|
-
// Record the component responsible for creating this element.
|
|
699
|
-
_owner: owner
|
|
700
|
-
};
|
|
701
|
-
{
|
|
702
|
-
element._store = {};
|
|
703
|
-
Object.defineProperty(element._store, "validated", {
|
|
704
|
-
configurable: false,
|
|
705
|
-
enumerable: false,
|
|
706
|
-
writable: true,
|
|
707
|
-
value: false
|
|
708
|
-
});
|
|
709
|
-
Object.defineProperty(element, "_self", {
|
|
710
|
-
configurable: false,
|
|
711
|
-
enumerable: false,
|
|
712
|
-
writable: false,
|
|
713
|
-
value: self
|
|
714
|
-
});
|
|
715
|
-
Object.defineProperty(element, "_source", {
|
|
716
|
-
configurable: false,
|
|
717
|
-
enumerable: false,
|
|
718
|
-
writable: false,
|
|
719
|
-
value: source
|
|
720
|
-
});
|
|
721
|
-
if (Object.freeze) {
|
|
722
|
-
Object.freeze(element.props);
|
|
723
|
-
Object.freeze(element);
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
return element;
|
|
727
|
-
};
|
|
728
|
-
function createElement4(type, config3, children) {
|
|
729
|
-
var propName;
|
|
730
|
-
var props = {};
|
|
731
|
-
var key = null;
|
|
732
|
-
var ref = null;
|
|
733
|
-
var self = null;
|
|
734
|
-
var source = null;
|
|
735
|
-
if (config3 != null) {
|
|
736
|
-
if (hasValidRef(config3)) {
|
|
737
|
-
ref = config3.ref;
|
|
738
|
-
{
|
|
739
|
-
warnIfStringRefCannotBeAutoConverted(config3);
|
|
740
|
-
}
|
|
741
|
-
}
|
|
742
|
-
if (hasValidKey(config3)) {
|
|
743
|
-
{
|
|
744
|
-
checkKeyStringCoercion(config3.key);
|
|
745
|
-
}
|
|
746
|
-
key = "" + config3.key;
|
|
747
|
-
}
|
|
748
|
-
self = config3.__self === void 0 ? null : config3.__self;
|
|
749
|
-
source = config3.__source === void 0 ? null : config3.__source;
|
|
750
|
-
for (propName in config3) {
|
|
751
|
-
if (hasOwnProperty3.call(config3, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
752
|
-
props[propName] = config3[propName];
|
|
753
|
-
}
|
|
754
|
-
}
|
|
755
|
-
}
|
|
756
|
-
var childrenLength = arguments.length - 2;
|
|
757
|
-
if (childrenLength === 1) {
|
|
758
|
-
props.children = children;
|
|
759
|
-
} else if (childrenLength > 1) {
|
|
760
|
-
var childArray = Array(childrenLength);
|
|
761
|
-
for (var i = 0; i < childrenLength; i++) {
|
|
762
|
-
childArray[i] = arguments[i + 2];
|
|
763
|
-
}
|
|
764
|
-
{
|
|
765
|
-
if (Object.freeze) {
|
|
766
|
-
Object.freeze(childArray);
|
|
767
|
-
}
|
|
768
|
-
}
|
|
769
|
-
props.children = childArray;
|
|
770
|
-
}
|
|
771
|
-
if (type && type.defaultProps) {
|
|
772
|
-
var defaultProps2 = type.defaultProps;
|
|
773
|
-
for (propName in defaultProps2) {
|
|
774
|
-
if (props[propName] === void 0) {
|
|
775
|
-
props[propName] = defaultProps2[propName];
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
{
|
|
780
|
-
if (key || ref) {
|
|
781
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
782
|
-
if (key) {
|
|
783
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
784
|
-
}
|
|
785
|
-
if (ref) {
|
|
786
|
-
defineRefPropWarningGetter(props, displayName);
|
|
787
|
-
}
|
|
788
|
-
}
|
|
789
|
-
}
|
|
790
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
791
|
-
}
|
|
792
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
793
|
-
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
794
|
-
return newElement;
|
|
795
|
-
}
|
|
796
|
-
function cloneElement(element, config3, children) {
|
|
797
|
-
if (element === null || element === void 0) {
|
|
798
|
-
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
799
|
-
}
|
|
800
|
-
var propName;
|
|
801
|
-
var props = assign2({}, element.props);
|
|
802
|
-
var key = element.key;
|
|
803
|
-
var ref = element.ref;
|
|
804
|
-
var self = element._self;
|
|
805
|
-
var source = element._source;
|
|
806
|
-
var owner = element._owner;
|
|
807
|
-
if (config3 != null) {
|
|
808
|
-
if (hasValidRef(config3)) {
|
|
809
|
-
ref = config3.ref;
|
|
810
|
-
owner = ReactCurrentOwner.current;
|
|
811
|
-
}
|
|
812
|
-
if (hasValidKey(config3)) {
|
|
813
|
-
{
|
|
814
|
-
checkKeyStringCoercion(config3.key);
|
|
815
|
-
}
|
|
816
|
-
key = "" + config3.key;
|
|
817
|
-
}
|
|
818
|
-
var defaultProps2;
|
|
819
|
-
if (element.type && element.type.defaultProps) {
|
|
820
|
-
defaultProps2 = element.type.defaultProps;
|
|
821
|
-
}
|
|
822
|
-
for (propName in config3) {
|
|
823
|
-
if (hasOwnProperty3.call(config3, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
824
|
-
if (config3[propName] === void 0 && defaultProps2 !== void 0) {
|
|
825
|
-
props[propName] = defaultProps2[propName];
|
|
826
|
-
} else {
|
|
827
|
-
props[propName] = config3[propName];
|
|
828
|
-
}
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
var childrenLength = arguments.length - 2;
|
|
833
|
-
if (childrenLength === 1) {
|
|
834
|
-
props.children = children;
|
|
835
|
-
} else if (childrenLength > 1) {
|
|
836
|
-
var childArray = Array(childrenLength);
|
|
837
|
-
for (var i = 0; i < childrenLength; i++) {
|
|
838
|
-
childArray[i] = arguments[i + 2];
|
|
839
|
-
}
|
|
840
|
-
props.children = childArray;
|
|
841
|
-
}
|
|
842
|
-
return ReactElement(element.type, key, ref, self, source, owner, props);
|
|
843
|
-
}
|
|
844
|
-
function isValidElement(object) {
|
|
845
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
846
|
-
}
|
|
847
|
-
var SEPARATOR = ".";
|
|
848
|
-
var SUBSEPARATOR = ":";
|
|
849
|
-
function escape(key) {
|
|
850
|
-
var escapeRegex = /[=:]/g;
|
|
851
|
-
var escaperLookup = {
|
|
852
|
-
"=": "=0",
|
|
853
|
-
":": "=2"
|
|
854
|
-
};
|
|
855
|
-
var escapedString = key.replace(escapeRegex, function(match2) {
|
|
856
|
-
return escaperLookup[match2];
|
|
857
|
-
});
|
|
858
|
-
return "$" + escapedString;
|
|
859
|
-
}
|
|
860
|
-
var didWarnAboutMaps = false;
|
|
861
|
-
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
862
|
-
function escapeUserProvidedKey(text) {
|
|
863
|
-
return text.replace(userProvidedKeyEscapeRegex, "$&/");
|
|
864
|
-
}
|
|
865
|
-
function getElementKey(element, index) {
|
|
866
|
-
if (typeof element === "object" && element !== null && element.key != null) {
|
|
867
|
-
{
|
|
868
|
-
checkKeyStringCoercion(element.key);
|
|
869
|
-
}
|
|
870
|
-
return escape("" + element.key);
|
|
871
|
-
}
|
|
872
|
-
return index.toString(36);
|
|
873
|
-
}
|
|
874
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
875
|
-
var type = typeof children;
|
|
876
|
-
if (type === "undefined" || type === "boolean") {
|
|
877
|
-
children = null;
|
|
878
|
-
}
|
|
879
|
-
var invokeCallback = false;
|
|
880
|
-
if (children === null) {
|
|
881
|
-
invokeCallback = true;
|
|
882
|
-
} else {
|
|
883
|
-
switch (type) {
|
|
884
|
-
case "string":
|
|
885
|
-
case "number":
|
|
886
|
-
invokeCallback = true;
|
|
887
|
-
break;
|
|
888
|
-
case "object":
|
|
889
|
-
switch (children.$$typeof) {
|
|
890
|
-
case REACT_ELEMENT_TYPE:
|
|
891
|
-
case REACT_PORTAL_TYPE:
|
|
892
|
-
invokeCallback = true;
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
if (invokeCallback) {
|
|
897
|
-
var _child = children;
|
|
898
|
-
var mappedChild = callback(_child);
|
|
899
|
-
var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
|
|
900
|
-
if (isArray2(mappedChild)) {
|
|
901
|
-
var escapedChildKey = "";
|
|
902
|
-
if (childKey != null) {
|
|
903
|
-
escapedChildKey = escapeUserProvidedKey(childKey) + "/";
|
|
904
|
-
}
|
|
905
|
-
mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
|
|
906
|
-
return c;
|
|
907
|
-
});
|
|
908
|
-
} else if (mappedChild != null) {
|
|
909
|
-
if (isValidElement(mappedChild)) {
|
|
910
|
-
{
|
|
911
|
-
if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
|
|
912
|
-
checkKeyStringCoercion(mappedChild.key);
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
mappedChild = cloneAndReplaceKey(
|
|
916
|
-
mappedChild,
|
|
917
|
-
// Keep both the (mapped) and old keys if they differ, just as
|
|
918
|
-
// traverseAllChildren used to do for objects as children
|
|
919
|
-
escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
920
|
-
(mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
|
|
921
|
-
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
922
|
-
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
923
|
-
escapeUserProvidedKey("" + mappedChild.key) + "/"
|
|
924
|
-
) : "") + childKey
|
|
925
|
-
);
|
|
926
|
-
}
|
|
927
|
-
array.push(mappedChild);
|
|
928
|
-
}
|
|
929
|
-
return 1;
|
|
930
|
-
}
|
|
931
|
-
var child;
|
|
932
|
-
var nextName;
|
|
933
|
-
var subtreeCount = 0;
|
|
934
|
-
var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
935
|
-
if (isArray2(children)) {
|
|
936
|
-
for (var i = 0; i < children.length; i++) {
|
|
937
|
-
child = children[i];
|
|
938
|
-
nextName = nextNamePrefix + getElementKey(child, i);
|
|
939
|
-
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
940
|
-
}
|
|
941
|
-
} else {
|
|
942
|
-
var iteratorFn = getIteratorFn(children);
|
|
943
|
-
if (typeof iteratorFn === "function") {
|
|
944
|
-
var iterableChildren = children;
|
|
945
|
-
{
|
|
946
|
-
if (iteratorFn === iterableChildren.entries) {
|
|
947
|
-
if (!didWarnAboutMaps) {
|
|
948
|
-
warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
|
|
949
|
-
}
|
|
950
|
-
didWarnAboutMaps = true;
|
|
951
|
-
}
|
|
952
|
-
}
|
|
953
|
-
var iterator = iteratorFn.call(iterableChildren);
|
|
954
|
-
var step;
|
|
955
|
-
var ii = 0;
|
|
956
|
-
while (!(step = iterator.next()).done) {
|
|
957
|
-
child = step.value;
|
|
958
|
-
nextName = nextNamePrefix + getElementKey(child, ii++);
|
|
959
|
-
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
960
|
-
}
|
|
961
|
-
} else if (type === "object") {
|
|
962
|
-
var childrenString = String(children);
|
|
963
|
-
throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
return subtreeCount;
|
|
967
|
-
}
|
|
968
|
-
function mapChildren(children, func, context) {
|
|
969
|
-
if (children == null) {
|
|
970
|
-
return children;
|
|
971
|
-
}
|
|
972
|
-
var result2 = [];
|
|
973
|
-
var count = 0;
|
|
974
|
-
mapIntoArray(children, result2, "", "", function(child) {
|
|
975
|
-
return func.call(context, child, count++);
|
|
976
|
-
});
|
|
977
|
-
return result2;
|
|
978
|
-
}
|
|
979
|
-
function countChildren(children) {
|
|
980
|
-
var n = 0;
|
|
981
|
-
mapChildren(children, function() {
|
|
982
|
-
n++;
|
|
983
|
-
});
|
|
984
|
-
return n;
|
|
985
|
-
}
|
|
986
|
-
function forEachChildren(children, forEachFunc, forEachContext) {
|
|
987
|
-
mapChildren(children, function() {
|
|
988
|
-
forEachFunc.apply(this, arguments);
|
|
989
|
-
}, forEachContext);
|
|
990
|
-
}
|
|
991
|
-
function toArray(children) {
|
|
992
|
-
return mapChildren(children, function(child) {
|
|
993
|
-
return child;
|
|
994
|
-
}) || [];
|
|
257
|
+
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
258
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
259
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
260
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
261
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
262
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
263
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
264
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
265
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
266
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
267
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
268
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
269
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
270
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
271
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
272
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
273
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
274
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
275
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
276
|
+
function isValidElementType(type) {
|
|
277
|
+
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
278
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (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 || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
995
279
|
}
|
|
996
|
-
function
|
|
997
|
-
if (
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
context.Provider = {
|
|
1023
|
-
$$typeof: REACT_PROVIDER_TYPE,
|
|
1024
|
-
_context: context
|
|
1025
|
-
};
|
|
1026
|
-
var hasWarnedAboutUsingNestedContextConsumers = false;
|
|
1027
|
-
var hasWarnedAboutUsingConsumerProvider = false;
|
|
1028
|
-
var hasWarnedAboutDisplayNameOnConsumer = false;
|
|
1029
|
-
{
|
|
1030
|
-
var Consumer = {
|
|
1031
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1032
|
-
_context: context
|
|
1033
|
-
};
|
|
1034
|
-
Object.defineProperties(Consumer, {
|
|
1035
|
-
Provider: {
|
|
1036
|
-
get: function() {
|
|
1037
|
-
if (!hasWarnedAboutUsingConsumerProvider) {
|
|
1038
|
-
hasWarnedAboutUsingConsumerProvider = true;
|
|
1039
|
-
error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
|
|
1040
|
-
}
|
|
1041
|
-
return context.Provider;
|
|
1042
|
-
},
|
|
1043
|
-
set: function(_Provider) {
|
|
1044
|
-
context.Provider = _Provider;
|
|
1045
|
-
}
|
|
1046
|
-
},
|
|
1047
|
-
_currentValue: {
|
|
1048
|
-
get: function() {
|
|
1049
|
-
return context._currentValue;
|
|
1050
|
-
},
|
|
1051
|
-
set: function(_currentValue) {
|
|
1052
|
-
context._currentValue = _currentValue;
|
|
1053
|
-
}
|
|
1054
|
-
},
|
|
1055
|
-
_currentValue2: {
|
|
1056
|
-
get: function() {
|
|
1057
|
-
return context._currentValue2;
|
|
1058
|
-
},
|
|
1059
|
-
set: function(_currentValue2) {
|
|
1060
|
-
context._currentValue2 = _currentValue2;
|
|
1061
|
-
}
|
|
1062
|
-
},
|
|
1063
|
-
_threadCount: {
|
|
1064
|
-
get: function() {
|
|
1065
|
-
return context._threadCount;
|
|
1066
|
-
},
|
|
1067
|
-
set: function(_threadCount) {
|
|
1068
|
-
context._threadCount = _threadCount;
|
|
1069
|
-
}
|
|
1070
|
-
},
|
|
1071
|
-
Consumer: {
|
|
1072
|
-
get: function() {
|
|
1073
|
-
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
|
1074
|
-
hasWarnedAboutUsingNestedContextConsumers = true;
|
|
1075
|
-
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?");
|
|
1076
|
-
}
|
|
1077
|
-
return context.Consumer;
|
|
1078
|
-
}
|
|
1079
|
-
},
|
|
1080
|
-
displayName: {
|
|
1081
|
-
get: function() {
|
|
1082
|
-
return context.displayName;
|
|
1083
|
-
},
|
|
1084
|
-
set: function(displayName) {
|
|
1085
|
-
if (!hasWarnedAboutDisplayNameOnConsumer) {
|
|
1086
|
-
warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
|
|
1087
|
-
hasWarnedAboutDisplayNameOnConsumer = true;
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
});
|
|
1092
|
-
context.Consumer = Consumer;
|
|
1093
|
-
}
|
|
1094
|
-
{
|
|
1095
|
-
context._currentRenderer = null;
|
|
1096
|
-
context._currentRenderer2 = null;
|
|
1097
|
-
}
|
|
1098
|
-
return context;
|
|
1099
|
-
}
|
|
1100
|
-
var Uninitialized = -1;
|
|
1101
|
-
var Pending = 0;
|
|
1102
|
-
var Resolved = 1;
|
|
1103
|
-
var Rejected = 2;
|
|
1104
|
-
function lazyInitializer(payload) {
|
|
1105
|
-
if (payload._status === Uninitialized) {
|
|
1106
|
-
var ctor = payload._result;
|
|
1107
|
-
var thenable = ctor();
|
|
1108
|
-
thenable.then(function(moduleObject2) {
|
|
1109
|
-
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1110
|
-
var resolved = payload;
|
|
1111
|
-
resolved._status = Resolved;
|
|
1112
|
-
resolved._result = moduleObject2;
|
|
1113
|
-
}
|
|
1114
|
-
}, function(error2) {
|
|
1115
|
-
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
1116
|
-
var rejected = payload;
|
|
1117
|
-
rejected._status = Rejected;
|
|
1118
|
-
rejected._result = error2;
|
|
1119
|
-
}
|
|
1120
|
-
});
|
|
1121
|
-
if (payload._status === Uninitialized) {
|
|
1122
|
-
var pending = payload;
|
|
1123
|
-
pending._status = Pending;
|
|
1124
|
-
pending._result = thenable;
|
|
1125
|
-
}
|
|
1126
|
-
}
|
|
1127
|
-
if (payload._status === Resolved) {
|
|
1128
|
-
var moduleObject = payload._result;
|
|
1129
|
-
{
|
|
1130
|
-
if (moduleObject === void 0) {
|
|
1131
|
-
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);
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
{
|
|
1135
|
-
if (!("default" in moduleObject)) {
|
|
1136
|
-
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);
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
return moduleObject.default;
|
|
1140
|
-
} else {
|
|
1141
|
-
throw payload._result;
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
1144
|
-
function lazy(ctor) {
|
|
1145
|
-
var payload = {
|
|
1146
|
-
// We use these fields to store the result.
|
|
1147
|
-
_status: Uninitialized,
|
|
1148
|
-
_result: ctor
|
|
1149
|
-
};
|
|
1150
|
-
var lazyType = {
|
|
1151
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1152
|
-
_payload: payload,
|
|
1153
|
-
_init: lazyInitializer
|
|
1154
|
-
};
|
|
1155
|
-
{
|
|
1156
|
-
var defaultProps2;
|
|
1157
|
-
var propTypes;
|
|
1158
|
-
Object.defineProperties(lazyType, {
|
|
1159
|
-
defaultProps: {
|
|
1160
|
-
configurable: true,
|
|
1161
|
-
get: function() {
|
|
1162
|
-
return defaultProps2;
|
|
1163
|
-
},
|
|
1164
|
-
set: function(newDefaultProps) {
|
|
1165
|
-
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.");
|
|
1166
|
-
defaultProps2 = newDefaultProps;
|
|
1167
|
-
Object.defineProperty(lazyType, "defaultProps", {
|
|
1168
|
-
enumerable: true
|
|
1169
|
-
});
|
|
1170
|
-
}
|
|
1171
|
-
},
|
|
1172
|
-
propTypes: {
|
|
1173
|
-
configurable: true,
|
|
1174
|
-
get: function() {
|
|
1175
|
-
return propTypes;
|
|
1176
|
-
},
|
|
1177
|
-
set: function(newPropTypes) {
|
|
1178
|
-
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.");
|
|
1179
|
-
propTypes = newPropTypes;
|
|
1180
|
-
Object.defineProperty(lazyType, "propTypes", {
|
|
1181
|
-
enumerable: true
|
|
1182
|
-
});
|
|
1183
|
-
}
|
|
1184
|
-
}
|
|
1185
|
-
});
|
|
1186
|
-
}
|
|
1187
|
-
return lazyType;
|
|
1188
|
-
}
|
|
1189
|
-
function forwardRef3(render) {
|
|
1190
|
-
{
|
|
1191
|
-
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
1192
|
-
error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
|
|
1193
|
-
} else if (typeof render !== "function") {
|
|
1194
|
-
error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
|
|
1195
|
-
} else {
|
|
1196
|
-
if (render.length !== 0 && render.length !== 2) {
|
|
1197
|
-
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.");
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
if (render != null) {
|
|
1201
|
-
if (render.defaultProps != null || render.propTypes != null) {
|
|
1202
|
-
error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
var elementType = {
|
|
1207
|
-
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1208
|
-
render
|
|
1209
|
-
};
|
|
1210
|
-
{
|
|
1211
|
-
var ownName;
|
|
1212
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1213
|
-
enumerable: false,
|
|
1214
|
-
configurable: true,
|
|
1215
|
-
get: function() {
|
|
1216
|
-
return ownName;
|
|
1217
|
-
},
|
|
1218
|
-
set: function(name) {
|
|
1219
|
-
ownName = name;
|
|
1220
|
-
if (!render.name && !render.displayName) {
|
|
1221
|
-
render.displayName = name;
|
|
1222
|
-
}
|
|
1223
|
-
}
|
|
1224
|
-
});
|
|
1225
|
-
}
|
|
1226
|
-
return elementType;
|
|
1227
|
-
}
|
|
1228
|
-
var REACT_MODULE_REFERENCE;
|
|
1229
|
-
{
|
|
1230
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
1231
|
-
}
|
|
1232
|
-
function isValidElementType(type) {
|
|
1233
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
1234
|
-
return true;
|
|
1235
|
-
}
|
|
1236
|
-
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) {
|
|
1237
|
-
return true;
|
|
1238
|
-
}
|
|
1239
|
-
if (typeof type === "object" && type !== null) {
|
|
1240
|
-
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
|
|
1241
|
-
// types supported by any Flight configuration anywhere since
|
|
1242
|
-
// we don't know which Flight build this will end up being used
|
|
1243
|
-
// with.
|
|
1244
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
1245
|
-
return true;
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
return false;
|
|
1249
|
-
}
|
|
1250
|
-
function memo(type, compare) {
|
|
1251
|
-
{
|
|
1252
|
-
if (!isValidElementType(type)) {
|
|
1253
|
-
error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
|
|
1254
|
-
}
|
|
1255
|
-
}
|
|
1256
|
-
var elementType = {
|
|
1257
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1258
|
-
type,
|
|
1259
|
-
compare: compare === void 0 ? null : compare
|
|
1260
|
-
};
|
|
1261
|
-
{
|
|
1262
|
-
var ownName;
|
|
1263
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1264
|
-
enumerable: false,
|
|
1265
|
-
configurable: true,
|
|
1266
|
-
get: function() {
|
|
1267
|
-
return ownName;
|
|
1268
|
-
},
|
|
1269
|
-
set: function(name) {
|
|
1270
|
-
ownName = name;
|
|
1271
|
-
if (!type.name && !type.displayName) {
|
|
1272
|
-
type.displayName = name;
|
|
1273
|
-
}
|
|
1274
|
-
}
|
|
1275
|
-
});
|
|
1276
|
-
}
|
|
1277
|
-
return elementType;
|
|
1278
|
-
}
|
|
1279
|
-
function resolveDispatcher() {
|
|
1280
|
-
var dispatcher = ReactCurrentDispatcher.current;
|
|
1281
|
-
{
|
|
1282
|
-
if (dispatcher === null) {
|
|
1283
|
-
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.");
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
return dispatcher;
|
|
1287
|
-
}
|
|
1288
|
-
function useContext6(Context) {
|
|
1289
|
-
var dispatcher = resolveDispatcher();
|
|
1290
|
-
{
|
|
1291
|
-
if (Context._context !== void 0) {
|
|
1292
|
-
var realContext = Context._context;
|
|
1293
|
-
if (realContext.Consumer === Context) {
|
|
1294
|
-
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?");
|
|
1295
|
-
} else if (realContext.Provider === Context) {
|
|
1296
|
-
error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
1297
|
-
}
|
|
1298
|
-
}
|
|
1299
|
-
}
|
|
1300
|
-
return dispatcher.useContext(Context);
|
|
1301
|
-
}
|
|
1302
|
-
function useState6(initialState) {
|
|
1303
|
-
var dispatcher = resolveDispatcher();
|
|
1304
|
-
return dispatcher.useState(initialState);
|
|
1305
|
-
}
|
|
1306
|
-
function useReducer(reducer, initialArg, init) {
|
|
1307
|
-
var dispatcher = resolveDispatcher();
|
|
1308
|
-
return dispatcher.useReducer(reducer, initialArg, init);
|
|
1309
|
-
}
|
|
1310
|
-
function useRef4(initialValue) {
|
|
1311
|
-
var dispatcher = resolveDispatcher();
|
|
1312
|
-
return dispatcher.useRef(initialValue);
|
|
1313
|
-
}
|
|
1314
|
-
function useEffect5(create, deps) {
|
|
1315
|
-
var dispatcher = resolveDispatcher();
|
|
1316
|
-
return dispatcher.useEffect(create, deps);
|
|
1317
|
-
}
|
|
1318
|
-
function useInsertionEffect3(create, deps) {
|
|
1319
|
-
var dispatcher = resolveDispatcher();
|
|
1320
|
-
return dispatcher.useInsertionEffect(create, deps);
|
|
1321
|
-
}
|
|
1322
|
-
function useLayoutEffect2(create, deps) {
|
|
1323
|
-
var dispatcher = resolveDispatcher();
|
|
1324
|
-
return dispatcher.useLayoutEffect(create, deps);
|
|
1325
|
-
}
|
|
1326
|
-
function useCallback9(callback, deps) {
|
|
1327
|
-
var dispatcher = resolveDispatcher();
|
|
1328
|
-
return dispatcher.useCallback(callback, deps);
|
|
1329
|
-
}
|
|
1330
|
-
function useMemo4(create, deps) {
|
|
1331
|
-
var dispatcher = resolveDispatcher();
|
|
1332
|
-
return dispatcher.useMemo(create, deps);
|
|
1333
|
-
}
|
|
1334
|
-
function useImperativeHandle(ref, create, deps) {
|
|
1335
|
-
var dispatcher = resolveDispatcher();
|
|
1336
|
-
return dispatcher.useImperativeHandle(ref, create, deps);
|
|
1337
|
-
}
|
|
1338
|
-
function useDebugValue(value, formatterFn) {
|
|
1339
|
-
{
|
|
1340
|
-
var dispatcher = resolveDispatcher();
|
|
1341
|
-
return dispatcher.useDebugValue(value, formatterFn);
|
|
1342
|
-
}
|
|
1343
|
-
}
|
|
1344
|
-
function useTransition() {
|
|
1345
|
-
var dispatcher = resolveDispatcher();
|
|
1346
|
-
return dispatcher.useTransition();
|
|
1347
|
-
}
|
|
1348
|
-
function useDeferredValue(value) {
|
|
1349
|
-
var dispatcher = resolveDispatcher();
|
|
1350
|
-
return dispatcher.useDeferredValue(value);
|
|
1351
|
-
}
|
|
1352
|
-
function useId() {
|
|
1353
|
-
var dispatcher = resolveDispatcher();
|
|
1354
|
-
return dispatcher.useId();
|
|
1355
|
-
}
|
|
1356
|
-
function useSyncExternalStore2(subscribe2, getSnapshot, getServerSnapshot) {
|
|
1357
|
-
var dispatcher = resolveDispatcher();
|
|
1358
|
-
return dispatcher.useSyncExternalStore(subscribe2, getSnapshot, getServerSnapshot);
|
|
1359
|
-
}
|
|
1360
|
-
var disabledDepth = 0;
|
|
1361
|
-
var prevLog;
|
|
1362
|
-
var prevInfo;
|
|
1363
|
-
var prevWarn;
|
|
1364
|
-
var prevError;
|
|
1365
|
-
var prevGroup;
|
|
1366
|
-
var prevGroupCollapsed;
|
|
1367
|
-
var prevGroupEnd;
|
|
1368
|
-
function disabledLog() {
|
|
1369
|
-
}
|
|
1370
|
-
disabledLog.__reactDisabledLog = true;
|
|
1371
|
-
function disableLogs() {
|
|
1372
|
-
{
|
|
1373
|
-
if (disabledDepth === 0) {
|
|
1374
|
-
prevLog = console.log;
|
|
1375
|
-
prevInfo = console.info;
|
|
1376
|
-
prevWarn = console.warn;
|
|
1377
|
-
prevError = console.error;
|
|
1378
|
-
prevGroup = console.group;
|
|
1379
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
1380
|
-
prevGroupEnd = console.groupEnd;
|
|
1381
|
-
var props = {
|
|
1382
|
-
configurable: true,
|
|
1383
|
-
enumerable: true,
|
|
1384
|
-
value: disabledLog,
|
|
1385
|
-
writable: true
|
|
1386
|
-
};
|
|
1387
|
-
Object.defineProperties(console, {
|
|
1388
|
-
info: props,
|
|
1389
|
-
log: props,
|
|
1390
|
-
warn: props,
|
|
1391
|
-
error: props,
|
|
1392
|
-
group: props,
|
|
1393
|
-
groupCollapsed: props,
|
|
1394
|
-
groupEnd: props
|
|
1395
|
-
});
|
|
1396
|
-
}
|
|
1397
|
-
disabledDepth++;
|
|
1398
|
-
}
|
|
1399
|
-
}
|
|
1400
|
-
function reenableLogs() {
|
|
1401
|
-
{
|
|
1402
|
-
disabledDepth--;
|
|
1403
|
-
if (disabledDepth === 0) {
|
|
1404
|
-
var props = {
|
|
1405
|
-
configurable: true,
|
|
1406
|
-
enumerable: true,
|
|
1407
|
-
writable: true
|
|
1408
|
-
};
|
|
1409
|
-
Object.defineProperties(console, {
|
|
1410
|
-
log: assign2({}, props, {
|
|
1411
|
-
value: prevLog
|
|
1412
|
-
}),
|
|
1413
|
-
info: assign2({}, props, {
|
|
1414
|
-
value: prevInfo
|
|
1415
|
-
}),
|
|
1416
|
-
warn: assign2({}, props, {
|
|
1417
|
-
value: prevWarn
|
|
1418
|
-
}),
|
|
1419
|
-
error: assign2({}, props, {
|
|
1420
|
-
value: prevError
|
|
1421
|
-
}),
|
|
1422
|
-
group: assign2({}, props, {
|
|
1423
|
-
value: prevGroup
|
|
1424
|
-
}),
|
|
1425
|
-
groupCollapsed: assign2({}, props, {
|
|
1426
|
-
value: prevGroupCollapsed
|
|
1427
|
-
}),
|
|
1428
|
-
groupEnd: assign2({}, props, {
|
|
1429
|
-
value: prevGroupEnd
|
|
1430
|
-
})
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
if (disabledDepth < 0) {
|
|
1434
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
|
|
1439
|
-
var prefix2;
|
|
1440
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
1441
|
-
{
|
|
1442
|
-
if (prefix2 === void 0) {
|
|
1443
|
-
try {
|
|
1444
|
-
throw Error();
|
|
1445
|
-
} catch (x2) {
|
|
1446
|
-
var match2 = x2.stack.trim().match(/\n( *(at )?)/);
|
|
1447
|
-
prefix2 = match2 && match2[1] || "";
|
|
1448
|
-
}
|
|
1449
|
-
}
|
|
1450
|
-
return "\n" + prefix2 + name;
|
|
1451
|
-
}
|
|
1452
|
-
}
|
|
1453
|
-
var reentry = false;
|
|
1454
|
-
var componentFrameCache;
|
|
1455
|
-
{
|
|
1456
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
1457
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
1458
|
-
}
|
|
1459
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
1460
|
-
if (!fn || reentry) {
|
|
1461
|
-
return "";
|
|
1462
|
-
}
|
|
1463
|
-
{
|
|
1464
|
-
var frame = componentFrameCache.get(fn);
|
|
1465
|
-
if (frame !== void 0) {
|
|
1466
|
-
return frame;
|
|
1467
|
-
}
|
|
1468
|
-
}
|
|
1469
|
-
var control;
|
|
1470
|
-
reentry = true;
|
|
1471
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
1472
|
-
Error.prepareStackTrace = void 0;
|
|
1473
|
-
var previousDispatcher;
|
|
1474
|
-
{
|
|
1475
|
-
previousDispatcher = ReactCurrentDispatcher$1.current;
|
|
1476
|
-
ReactCurrentDispatcher$1.current = null;
|
|
1477
|
-
disableLogs();
|
|
1478
|
-
}
|
|
1479
|
-
try {
|
|
1480
|
-
if (construct) {
|
|
1481
|
-
var Fake = function() {
|
|
1482
|
-
throw Error();
|
|
1483
|
-
};
|
|
1484
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
1485
|
-
set: function() {
|
|
1486
|
-
throw Error();
|
|
1487
|
-
}
|
|
1488
|
-
});
|
|
1489
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
1490
|
-
try {
|
|
1491
|
-
Reflect.construct(Fake, []);
|
|
1492
|
-
} catch (x2) {
|
|
1493
|
-
control = x2;
|
|
1494
|
-
}
|
|
1495
|
-
Reflect.construct(fn, [], Fake);
|
|
1496
|
-
} else {
|
|
1497
|
-
try {
|
|
1498
|
-
Fake.call();
|
|
1499
|
-
} catch (x2) {
|
|
1500
|
-
control = x2;
|
|
1501
|
-
}
|
|
1502
|
-
fn.call(Fake.prototype);
|
|
1503
|
-
}
|
|
1504
|
-
} else {
|
|
1505
|
-
try {
|
|
1506
|
-
throw Error();
|
|
1507
|
-
} catch (x2) {
|
|
1508
|
-
control = x2;
|
|
1509
|
-
}
|
|
1510
|
-
fn();
|
|
1511
|
-
}
|
|
1512
|
-
} catch (sample) {
|
|
1513
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
1514
|
-
var sampleLines = sample.stack.split("\n");
|
|
1515
|
-
var controlLines = control.stack.split("\n");
|
|
1516
|
-
var s = sampleLines.length - 1;
|
|
1517
|
-
var c = controlLines.length - 1;
|
|
1518
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
1519
|
-
c--;
|
|
1520
|
-
}
|
|
1521
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
1522
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
1523
|
-
if (s !== 1 || c !== 1) {
|
|
1524
|
-
do {
|
|
1525
|
-
s--;
|
|
1526
|
-
c--;
|
|
1527
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
1528
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
1529
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
1530
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
1531
|
-
}
|
|
1532
|
-
{
|
|
1533
|
-
if (typeof fn === "function") {
|
|
1534
|
-
componentFrameCache.set(fn, _frame);
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1537
|
-
return _frame;
|
|
1538
|
-
}
|
|
1539
|
-
} while (s >= 1 && c >= 0);
|
|
1540
|
-
}
|
|
1541
|
-
break;
|
|
1542
|
-
}
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
} finally {
|
|
1546
|
-
reentry = false;
|
|
1547
|
-
{
|
|
1548
|
-
ReactCurrentDispatcher$1.current = previousDispatcher;
|
|
1549
|
-
reenableLogs();
|
|
1550
|
-
}
|
|
1551
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
1552
|
-
}
|
|
1553
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
1554
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
1555
|
-
{
|
|
1556
|
-
if (typeof fn === "function") {
|
|
1557
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
1558
|
-
}
|
|
1559
|
-
}
|
|
1560
|
-
return syntheticFrame;
|
|
1561
|
-
}
|
|
1562
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
1563
|
-
{
|
|
1564
|
-
return describeNativeComponentFrame(fn, false);
|
|
1565
|
-
}
|
|
1566
|
-
}
|
|
1567
|
-
function shouldConstruct(Component2) {
|
|
1568
|
-
var prototype = Component2.prototype;
|
|
1569
|
-
return !!(prototype && prototype.isReactComponent);
|
|
1570
|
-
}
|
|
1571
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
1572
|
-
if (type == null) {
|
|
1573
|
-
return "";
|
|
1574
|
-
}
|
|
1575
|
-
if (typeof type === "function") {
|
|
1576
|
-
{
|
|
1577
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
1578
|
-
}
|
|
1579
|
-
}
|
|
1580
|
-
if (typeof type === "string") {
|
|
1581
|
-
return describeBuiltInComponentFrame(type);
|
|
1582
|
-
}
|
|
1583
|
-
switch (type) {
|
|
1584
|
-
case REACT_SUSPENSE_TYPE:
|
|
1585
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
1586
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1587
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
1588
|
-
}
|
|
1589
|
-
if (typeof type === "object") {
|
|
1590
|
-
switch (type.$$typeof) {
|
|
1591
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1592
|
-
return describeFunctionComponentFrame(type.render);
|
|
1593
|
-
case REACT_MEMO_TYPE:
|
|
1594
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
1595
|
-
case REACT_LAZY_TYPE: {
|
|
1596
|
-
var lazyComponent = type;
|
|
1597
|
-
var payload = lazyComponent._payload;
|
|
1598
|
-
var init = lazyComponent._init;
|
|
1599
|
-
try {
|
|
1600
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
1601
|
-
} catch (x2) {
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
}
|
|
1606
|
-
return "";
|
|
1607
|
-
}
|
|
1608
|
-
var loggedTypeFailures = {};
|
|
1609
|
-
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1610
|
-
function setCurrentlyValidatingElement(element) {
|
|
1611
|
-
{
|
|
1612
|
-
if (element) {
|
|
1613
|
-
var owner = element._owner;
|
|
1614
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1615
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
1616
|
-
} else {
|
|
1617
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
1622
|
-
{
|
|
1623
|
-
var has = Function.call.bind(hasOwnProperty3);
|
|
1624
|
-
for (var typeSpecName in typeSpecs) {
|
|
1625
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
1626
|
-
var error$1 = void 0;
|
|
1627
|
-
try {
|
|
1628
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
1629
|
-
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`.");
|
|
1630
|
-
err.name = "Invariant Violation";
|
|
1631
|
-
throw err;
|
|
1632
|
-
}
|
|
1633
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1634
|
-
} catch (ex) {
|
|
1635
|
-
error$1 = ex;
|
|
1636
|
-
}
|
|
1637
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
1638
|
-
setCurrentlyValidatingElement(element);
|
|
1639
|
-
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);
|
|
1640
|
-
setCurrentlyValidatingElement(null);
|
|
1641
|
-
}
|
|
1642
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
1643
|
-
loggedTypeFailures[error$1.message] = true;
|
|
1644
|
-
setCurrentlyValidatingElement(element);
|
|
1645
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
1646
|
-
setCurrentlyValidatingElement(null);
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
function setCurrentlyValidatingElement$1(element) {
|
|
1653
|
-
{
|
|
1654
|
-
if (element) {
|
|
1655
|
-
var owner = element._owner;
|
|
1656
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
1657
|
-
setExtraStackFrame(stack);
|
|
1658
|
-
} else {
|
|
1659
|
-
setExtraStackFrame(null);
|
|
1660
|
-
}
|
|
1661
|
-
}
|
|
1662
|
-
}
|
|
1663
|
-
var propTypesMisspellWarningShown;
|
|
1664
|
-
{
|
|
1665
|
-
propTypesMisspellWarningShown = false;
|
|
1666
|
-
}
|
|
1667
|
-
function getDeclarationErrorAddendum() {
|
|
1668
|
-
if (ReactCurrentOwner.current) {
|
|
1669
|
-
var name = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
1670
|
-
if (name) {
|
|
1671
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
return "";
|
|
1675
|
-
}
|
|
1676
|
-
function getSourceInfoErrorAddendum(source) {
|
|
1677
|
-
if (source !== void 0) {
|
|
1678
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
1679
|
-
var lineNumber = source.lineNumber;
|
|
1680
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
1681
|
-
}
|
|
1682
|
-
return "";
|
|
1683
|
-
}
|
|
1684
|
-
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
1685
|
-
if (elementProps !== null && elementProps !== void 0) {
|
|
1686
|
-
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
1687
|
-
}
|
|
1688
|
-
return "";
|
|
1689
|
-
}
|
|
1690
|
-
var ownerHasKeyUseWarning = {};
|
|
1691
|
-
function getCurrentComponentErrorInfo(parentType) {
|
|
1692
|
-
var info = getDeclarationErrorAddendum();
|
|
1693
|
-
if (!info) {
|
|
1694
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
1695
|
-
if (parentName) {
|
|
1696
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
1697
|
-
}
|
|
1698
|
-
}
|
|
1699
|
-
return info;
|
|
1700
|
-
}
|
|
1701
|
-
function validateExplicitKey(element, parentType) {
|
|
1702
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
1703
|
-
return;
|
|
1704
|
-
}
|
|
1705
|
-
element._store.validated = true;
|
|
1706
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
1707
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
1708
|
-
return;
|
|
1709
|
-
}
|
|
1710
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
1711
|
-
var childOwner = "";
|
|
1712
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
1713
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
1714
|
-
}
|
|
1715
|
-
{
|
|
1716
|
-
setCurrentlyValidatingElement$1(element);
|
|
1717
|
-
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);
|
|
1718
|
-
setCurrentlyValidatingElement$1(null);
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
|
-
function validateChildKeys(node2, parentType) {
|
|
1722
|
-
if (typeof node2 !== "object") {
|
|
1723
|
-
return;
|
|
1724
|
-
}
|
|
1725
|
-
if (isArray2(node2)) {
|
|
1726
|
-
for (var i = 0; i < node2.length; i++) {
|
|
1727
|
-
var child = node2[i];
|
|
1728
|
-
if (isValidElement(child)) {
|
|
1729
|
-
validateExplicitKey(child, parentType);
|
|
1730
|
-
}
|
|
1731
|
-
}
|
|
1732
|
-
} else if (isValidElement(node2)) {
|
|
1733
|
-
if (node2._store) {
|
|
1734
|
-
node2._store.validated = true;
|
|
1735
|
-
}
|
|
1736
|
-
} else if (node2) {
|
|
1737
|
-
var iteratorFn = getIteratorFn(node2);
|
|
1738
|
-
if (typeof iteratorFn === "function") {
|
|
1739
|
-
if (iteratorFn !== node2.entries) {
|
|
1740
|
-
var iterator = iteratorFn.call(node2);
|
|
1741
|
-
var step;
|
|
1742
|
-
while (!(step = iterator.next()).done) {
|
|
1743
|
-
if (isValidElement(step.value)) {
|
|
1744
|
-
validateExplicitKey(step.value, parentType);
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1747
|
-
}
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
}
|
|
1751
|
-
function validatePropTypes(element) {
|
|
1752
|
-
{
|
|
1753
|
-
var type = element.type;
|
|
1754
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
1755
|
-
return;
|
|
1756
|
-
}
|
|
1757
|
-
var propTypes;
|
|
1758
|
-
if (typeof type === "function") {
|
|
1759
|
-
propTypes = type.propTypes;
|
|
1760
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
1761
|
-
// Inner props are checked in the reconciler.
|
|
1762
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
1763
|
-
propTypes = type.propTypes;
|
|
1764
|
-
} else {
|
|
1765
|
-
return;
|
|
1766
|
-
}
|
|
1767
|
-
if (propTypes) {
|
|
1768
|
-
var name = getComponentNameFromType(type);
|
|
1769
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
1770
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
1771
|
-
propTypesMisspellWarningShown = true;
|
|
1772
|
-
var _name = getComponentNameFromType(type);
|
|
1773
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
1774
|
-
}
|
|
1775
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
1776
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
function validateFragmentProps(fragment) {
|
|
1781
|
-
{
|
|
1782
|
-
var keys = Object.keys(fragment.props);
|
|
1783
|
-
for (var i = 0; i < keys.length; i++) {
|
|
1784
|
-
var key = keys[i];
|
|
1785
|
-
if (key !== "children" && key !== "key") {
|
|
1786
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1787
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
1788
|
-
setCurrentlyValidatingElement$1(null);
|
|
1789
|
-
break;
|
|
1790
|
-
}
|
|
1791
|
-
}
|
|
1792
|
-
if (fragment.ref !== null) {
|
|
1793
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
1794
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
1795
|
-
setCurrentlyValidatingElement$1(null);
|
|
1796
|
-
}
|
|
1797
|
-
}
|
|
1798
|
-
}
|
|
1799
|
-
function createElementWithValidation(type, props, children) {
|
|
1800
|
-
var validType = isValidElementType(type);
|
|
1801
|
-
if (!validType) {
|
|
1802
|
-
var info = "";
|
|
1803
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
1804
|
-
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.";
|
|
1805
|
-
}
|
|
1806
|
-
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
1807
|
-
if (sourceInfo) {
|
|
1808
|
-
info += sourceInfo;
|
|
1809
|
-
} else {
|
|
1810
|
-
info += getDeclarationErrorAddendum();
|
|
1811
|
-
}
|
|
1812
|
-
var typeString;
|
|
1813
|
-
if (type === null) {
|
|
1814
|
-
typeString = "null";
|
|
1815
|
-
} else if (isArray2(type)) {
|
|
1816
|
-
typeString = "array";
|
|
1817
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
1818
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
1819
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
1820
|
-
} else {
|
|
1821
|
-
typeString = typeof type;
|
|
1822
|
-
}
|
|
1823
|
-
{
|
|
1824
|
-
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);
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
var element = createElement4.apply(this, arguments);
|
|
1828
|
-
if (element == null) {
|
|
1829
|
-
return element;
|
|
1830
|
-
}
|
|
1831
|
-
if (validType) {
|
|
1832
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1833
|
-
validateChildKeys(arguments[i], type);
|
|
1834
|
-
}
|
|
1835
|
-
}
|
|
1836
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
1837
|
-
validateFragmentProps(element);
|
|
1838
|
-
} else {
|
|
1839
|
-
validatePropTypes(element);
|
|
1840
|
-
}
|
|
1841
|
-
return element;
|
|
1842
|
-
}
|
|
1843
|
-
var didWarnAboutDeprecatedCreateFactory = false;
|
|
1844
|
-
function createFactoryWithValidation(type) {
|
|
1845
|
-
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
1846
|
-
validatedFactory.type = type;
|
|
1847
|
-
{
|
|
1848
|
-
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
1849
|
-
didWarnAboutDeprecatedCreateFactory = true;
|
|
1850
|
-
warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
|
|
1851
|
-
}
|
|
1852
|
-
Object.defineProperty(validatedFactory, "type", {
|
|
1853
|
-
enumerable: false,
|
|
1854
|
-
get: function() {
|
|
1855
|
-
warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
|
|
1856
|
-
Object.defineProperty(this, "type", {
|
|
1857
|
-
value: type
|
|
1858
|
-
});
|
|
1859
|
-
return type;
|
|
1860
|
-
}
|
|
1861
|
-
});
|
|
1862
|
-
}
|
|
1863
|
-
return validatedFactory;
|
|
1864
|
-
}
|
|
1865
|
-
function cloneElementWithValidation(element, props, children) {
|
|
1866
|
-
var newElement = cloneElement.apply(this, arguments);
|
|
1867
|
-
for (var i = 2; i < arguments.length; i++) {
|
|
1868
|
-
validateChildKeys(arguments[i], newElement.type);
|
|
1869
|
-
}
|
|
1870
|
-
validatePropTypes(newElement);
|
|
1871
|
-
return newElement;
|
|
1872
|
-
}
|
|
1873
|
-
function startTransition(scope, options) {
|
|
1874
|
-
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
1875
|
-
ReactCurrentBatchConfig.transition = {};
|
|
1876
|
-
var currentTransition = ReactCurrentBatchConfig.transition;
|
|
1877
|
-
{
|
|
1878
|
-
ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1879
|
-
}
|
|
1880
|
-
try {
|
|
1881
|
-
scope();
|
|
1882
|
-
} finally {
|
|
1883
|
-
ReactCurrentBatchConfig.transition = prevTransition;
|
|
1884
|
-
{
|
|
1885
|
-
if (prevTransition === null && currentTransition._updatedFibers) {
|
|
1886
|
-
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
1887
|
-
if (updatedFibersCount > 10) {
|
|
1888
|
-
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.");
|
|
1889
|
-
}
|
|
1890
|
-
currentTransition._updatedFibers.clear();
|
|
1891
|
-
}
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
}
|
|
1895
|
-
var didWarnAboutMessageChannel = false;
|
|
1896
|
-
var enqueueTaskImpl = null;
|
|
1897
|
-
function enqueueTask(task2) {
|
|
1898
|
-
if (enqueueTaskImpl === null) {
|
|
1899
|
-
try {
|
|
1900
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
1901
|
-
var nodeRequire = module && module[requireString];
|
|
1902
|
-
enqueueTaskImpl = nodeRequire.call(module, "timers").setImmediate;
|
|
1903
|
-
} catch (_err) {
|
|
1904
|
-
enqueueTaskImpl = function(callback) {
|
|
1905
|
-
{
|
|
1906
|
-
if (didWarnAboutMessageChannel === false) {
|
|
1907
|
-
didWarnAboutMessageChannel = true;
|
|
1908
|
-
if (typeof MessageChannel === "undefined") {
|
|
1909
|
-
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.");
|
|
1910
|
-
}
|
|
1911
|
-
}
|
|
1912
|
-
}
|
|
1913
|
-
var channel = new MessageChannel();
|
|
1914
|
-
channel.port1.onmessage = callback;
|
|
1915
|
-
channel.port2.postMessage(void 0);
|
|
1916
|
-
};
|
|
1917
|
-
}
|
|
1918
|
-
}
|
|
1919
|
-
return enqueueTaskImpl(task2);
|
|
1920
|
-
}
|
|
1921
|
-
var actScopeDepth = 0;
|
|
1922
|
-
var didWarnNoAwaitAct = false;
|
|
1923
|
-
function act(callback) {
|
|
1924
|
-
{
|
|
1925
|
-
var prevActScopeDepth = actScopeDepth;
|
|
1926
|
-
actScopeDepth++;
|
|
1927
|
-
if (ReactCurrentActQueue.current === null) {
|
|
1928
|
-
ReactCurrentActQueue.current = [];
|
|
1929
|
-
}
|
|
1930
|
-
var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
|
|
1931
|
-
var result2;
|
|
1932
|
-
try {
|
|
1933
|
-
ReactCurrentActQueue.isBatchingLegacy = true;
|
|
1934
|
-
result2 = callback();
|
|
1935
|
-
if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
|
|
1936
|
-
var queue3 = ReactCurrentActQueue.current;
|
|
1937
|
-
if (queue3 !== null) {
|
|
1938
|
-
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
|
|
1939
|
-
flushActQueue(queue3);
|
|
1940
|
-
}
|
|
1941
|
-
}
|
|
1942
|
-
} catch (error2) {
|
|
1943
|
-
popActScope(prevActScopeDepth);
|
|
1944
|
-
throw error2;
|
|
1945
|
-
} finally {
|
|
1946
|
-
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
|
|
1947
|
-
}
|
|
1948
|
-
if (result2 !== null && typeof result2 === "object" && typeof result2.then === "function") {
|
|
1949
|
-
var thenableResult = result2;
|
|
1950
|
-
var wasAwaited = false;
|
|
1951
|
-
var thenable = {
|
|
1952
|
-
then: function(resolve, reject) {
|
|
1953
|
-
wasAwaited = true;
|
|
1954
|
-
thenableResult.then(function(returnValue2) {
|
|
1955
|
-
popActScope(prevActScopeDepth);
|
|
1956
|
-
if (actScopeDepth === 0) {
|
|
1957
|
-
recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
|
|
1958
|
-
} else {
|
|
1959
|
-
resolve(returnValue2);
|
|
1960
|
-
}
|
|
1961
|
-
}, function(error2) {
|
|
1962
|
-
popActScope(prevActScopeDepth);
|
|
1963
|
-
reject(error2);
|
|
1964
|
-
});
|
|
1965
|
-
}
|
|
1966
|
-
};
|
|
1967
|
-
{
|
|
1968
|
-
if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
|
|
1969
|
-
Promise.resolve().then(function() {
|
|
1970
|
-
}).then(function() {
|
|
1971
|
-
if (!wasAwaited) {
|
|
1972
|
-
didWarnNoAwaitAct = true;
|
|
1973
|
-
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 () => ...);");
|
|
1974
|
-
}
|
|
1975
|
-
});
|
|
1976
|
-
}
|
|
1977
|
-
}
|
|
1978
|
-
return thenable;
|
|
1979
|
-
} else {
|
|
1980
|
-
var returnValue = result2;
|
|
1981
|
-
popActScope(prevActScopeDepth);
|
|
1982
|
-
if (actScopeDepth === 0) {
|
|
1983
|
-
var _queue = ReactCurrentActQueue.current;
|
|
1984
|
-
if (_queue !== null) {
|
|
1985
|
-
flushActQueue(_queue);
|
|
1986
|
-
ReactCurrentActQueue.current = null;
|
|
1987
|
-
}
|
|
1988
|
-
var _thenable = {
|
|
1989
|
-
then: function(resolve, reject) {
|
|
1990
|
-
if (ReactCurrentActQueue.current === null) {
|
|
1991
|
-
ReactCurrentActQueue.current = [];
|
|
1992
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
1993
|
-
} else {
|
|
1994
|
-
resolve(returnValue);
|
|
1995
|
-
}
|
|
1996
|
-
}
|
|
1997
|
-
};
|
|
1998
|
-
return _thenable;
|
|
1999
|
-
} else {
|
|
2000
|
-
var _thenable2 = {
|
|
2001
|
-
then: function(resolve, reject) {
|
|
2002
|
-
resolve(returnValue);
|
|
2003
|
-
}
|
|
2004
|
-
};
|
|
2005
|
-
return _thenable2;
|
|
2006
|
-
}
|
|
2007
|
-
}
|
|
2008
|
-
}
|
|
2009
|
-
}
|
|
2010
|
-
function popActScope(prevActScopeDepth) {
|
|
2011
|
-
{
|
|
2012
|
-
if (prevActScopeDepth !== actScopeDepth - 1) {
|
|
2013
|
-
error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
2014
|
-
}
|
|
2015
|
-
actScopeDepth = prevActScopeDepth;
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
2019
|
-
{
|
|
2020
|
-
var queue3 = ReactCurrentActQueue.current;
|
|
2021
|
-
if (queue3 !== null) {
|
|
2022
|
-
try {
|
|
2023
|
-
flushActQueue(queue3);
|
|
2024
|
-
enqueueTask(function() {
|
|
2025
|
-
if (queue3.length === 0) {
|
|
2026
|
-
ReactCurrentActQueue.current = null;
|
|
2027
|
-
resolve(returnValue);
|
|
2028
|
-
} else {
|
|
2029
|
-
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2030
|
-
}
|
|
2031
|
-
});
|
|
2032
|
-
} catch (error2) {
|
|
2033
|
-
reject(error2);
|
|
2034
|
-
}
|
|
2035
|
-
} else {
|
|
2036
|
-
resolve(returnValue);
|
|
2037
|
-
}
|
|
2038
|
-
}
|
|
2039
|
-
}
|
|
2040
|
-
var isFlushing = false;
|
|
2041
|
-
function flushActQueue(queue3) {
|
|
2042
|
-
{
|
|
2043
|
-
if (!isFlushing) {
|
|
2044
|
-
isFlushing = true;
|
|
2045
|
-
var i = 0;
|
|
2046
|
-
try {
|
|
2047
|
-
for (; i < queue3.length; i++) {
|
|
2048
|
-
var callback = queue3[i];
|
|
2049
|
-
do {
|
|
2050
|
-
callback = callback(true);
|
|
2051
|
-
} while (callback !== null);
|
|
2052
|
-
}
|
|
2053
|
-
queue3.length = 0;
|
|
2054
|
-
} catch (error2) {
|
|
2055
|
-
queue3 = queue3.slice(i + 1);
|
|
2056
|
-
throw error2;
|
|
2057
|
-
} finally {
|
|
2058
|
-
isFlushing = false;
|
|
2059
|
-
}
|
|
2060
|
-
}
|
|
2061
|
-
}
|
|
2062
|
-
}
|
|
2063
|
-
var createElement$1 = createElementWithValidation;
|
|
2064
|
-
var cloneElement$1 = cloneElementWithValidation;
|
|
2065
|
-
var createFactory = createFactoryWithValidation;
|
|
2066
|
-
var Children = {
|
|
2067
|
-
map: mapChildren,
|
|
2068
|
-
forEach: forEachChildren,
|
|
2069
|
-
count: countChildren,
|
|
2070
|
-
toArray,
|
|
2071
|
-
only: onlyChild
|
|
2072
|
-
};
|
|
2073
|
-
exports.Children = Children;
|
|
2074
|
-
exports.Component = Component;
|
|
2075
|
-
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
2076
|
-
exports.Profiler = REACT_PROFILER_TYPE;
|
|
2077
|
-
exports.PureComponent = PureComponent;
|
|
2078
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2079
|
-
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
2080
|
-
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
2081
|
-
exports.cloneElement = cloneElement$1;
|
|
2082
|
-
exports.createContext = createContext3;
|
|
2083
|
-
exports.createElement = createElement$1;
|
|
2084
|
-
exports.createFactory = createFactory;
|
|
2085
|
-
exports.createRef = createRef;
|
|
2086
|
-
exports.forwardRef = forwardRef3;
|
|
2087
|
-
exports.isValidElement = isValidElement;
|
|
2088
|
-
exports.lazy = lazy;
|
|
2089
|
-
exports.memo = memo;
|
|
2090
|
-
exports.startTransition = startTransition;
|
|
2091
|
-
exports.unstable_act = act;
|
|
2092
|
-
exports.useCallback = useCallback9;
|
|
2093
|
-
exports.useContext = useContext6;
|
|
2094
|
-
exports.useDebugValue = useDebugValue;
|
|
2095
|
-
exports.useDeferredValue = useDeferredValue;
|
|
2096
|
-
exports.useEffect = useEffect5;
|
|
2097
|
-
exports.useId = useId;
|
|
2098
|
-
exports.useImperativeHandle = useImperativeHandle;
|
|
2099
|
-
exports.useInsertionEffect = useInsertionEffect3;
|
|
2100
|
-
exports.useLayoutEffect = useLayoutEffect2;
|
|
2101
|
-
exports.useMemo = useMemo4;
|
|
2102
|
-
exports.useReducer = useReducer;
|
|
2103
|
-
exports.useRef = useRef4;
|
|
2104
|
-
exports.useState = useState6;
|
|
2105
|
-
exports.useSyncExternalStore = useSyncExternalStore2;
|
|
2106
|
-
exports.useTransition = useTransition;
|
|
2107
|
-
exports.version = ReactVersion;
|
|
2108
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
2109
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
2110
|
-
}
|
|
2111
|
-
})();
|
|
2112
|
-
}
|
|
2113
|
-
}
|
|
2114
|
-
});
|
|
2115
|
-
|
|
2116
|
-
// node_modules/.pnpm/react@18.2.0/node_modules/react/index.js
|
|
2117
|
-
var require_react = __commonJS({
|
|
2118
|
-
"node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"(exports, module) {
|
|
2119
|
-
"use strict";
|
|
2120
|
-
init_process();
|
|
2121
|
-
if (false) {
|
|
2122
|
-
module.exports = null;
|
|
2123
|
-
} else {
|
|
2124
|
-
module.exports = require_react_development();
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
});
|
|
2128
|
-
|
|
2129
|
-
// node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js
|
|
2130
|
-
var require_react_is_development = __commonJS({
|
|
2131
|
-
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
2132
|
-
"use strict";
|
|
2133
|
-
init_process();
|
|
2134
|
-
if (true) {
|
|
2135
|
-
(function() {
|
|
2136
|
-
"use strict";
|
|
2137
|
-
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
2138
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
2139
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
2140
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
2141
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
2142
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
2143
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
2144
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
2145
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
2146
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
2147
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
2148
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
2149
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
2150
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
2151
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
2152
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
2153
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
2154
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
2155
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
2156
|
-
function isValidElementType(type) {
|
|
2157
|
-
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
2158
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (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 || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
2159
|
-
}
|
|
2160
|
-
function typeOf3(object) {
|
|
2161
|
-
if (typeof object === "object" && object !== null) {
|
|
2162
|
-
var $$typeof = object.$$typeof;
|
|
2163
|
-
switch ($$typeof) {
|
|
2164
|
-
case REACT_ELEMENT_TYPE:
|
|
2165
|
-
var type = object.type;
|
|
2166
|
-
switch (type) {
|
|
2167
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
2168
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
2169
|
-
case REACT_FRAGMENT_TYPE:
|
|
2170
|
-
case REACT_PROFILER_TYPE:
|
|
2171
|
-
case REACT_STRICT_MODE_TYPE:
|
|
2172
|
-
case REACT_SUSPENSE_TYPE:
|
|
2173
|
-
return type;
|
|
2174
|
-
default:
|
|
2175
|
-
var $$typeofType = type && type.$$typeof;
|
|
2176
|
-
switch ($$typeofType) {
|
|
2177
|
-
case REACT_CONTEXT_TYPE:
|
|
2178
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2179
|
-
case REACT_LAZY_TYPE:
|
|
2180
|
-
case REACT_MEMO_TYPE:
|
|
2181
|
-
case REACT_PROVIDER_TYPE:
|
|
2182
|
-
return $$typeofType;
|
|
2183
|
-
default:
|
|
2184
|
-
return $$typeof;
|
|
2185
|
-
}
|
|
2186
|
-
}
|
|
2187
|
-
case REACT_PORTAL_TYPE:
|
|
2188
|
-
return $$typeof;
|
|
2189
|
-
}
|
|
2190
|
-
}
|
|
2191
|
-
return void 0;
|
|
2192
|
-
}
|
|
2193
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
2194
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
2195
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
2196
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
2197
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
2198
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
2199
|
-
var Fragment6 = REACT_FRAGMENT_TYPE;
|
|
2200
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
2201
|
-
var Memo = REACT_MEMO_TYPE;
|
|
2202
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
2203
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
2204
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2205
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
2206
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
2207
|
-
function isAsyncMode(object) {
|
|
2208
|
-
{
|
|
2209
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
2210
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
2211
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
2212
|
-
}
|
|
2213
|
-
}
|
|
2214
|
-
return isConcurrentMode(object) || typeOf3(object) === REACT_ASYNC_MODE_TYPE;
|
|
2215
|
-
}
|
|
2216
|
-
function isConcurrentMode(object) {
|
|
2217
|
-
return typeOf3(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
2218
|
-
}
|
|
2219
|
-
function isContextConsumer(object) {
|
|
2220
|
-
return typeOf3(object) === REACT_CONTEXT_TYPE;
|
|
2221
|
-
}
|
|
2222
|
-
function isContextProvider(object) {
|
|
2223
|
-
return typeOf3(object) === REACT_PROVIDER_TYPE;
|
|
2224
|
-
}
|
|
2225
|
-
function isElement(object) {
|
|
2226
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
2227
|
-
}
|
|
2228
|
-
function isForwardRef(object) {
|
|
2229
|
-
return typeOf3(object) === REACT_FORWARD_REF_TYPE;
|
|
2230
|
-
}
|
|
2231
|
-
function isFragment(object) {
|
|
2232
|
-
return typeOf3(object) === REACT_FRAGMENT_TYPE;
|
|
2233
|
-
}
|
|
2234
|
-
function isLazy(object) {
|
|
2235
|
-
return typeOf3(object) === REACT_LAZY_TYPE;
|
|
2236
|
-
}
|
|
2237
|
-
function isMemo(object) {
|
|
2238
|
-
return typeOf3(object) === REACT_MEMO_TYPE;
|
|
2239
|
-
}
|
|
2240
|
-
function isPortal(object) {
|
|
2241
|
-
return typeOf3(object) === REACT_PORTAL_TYPE;
|
|
2242
|
-
}
|
|
2243
|
-
function isProfiler(object) {
|
|
2244
|
-
return typeOf3(object) === REACT_PROFILER_TYPE;
|
|
2245
|
-
}
|
|
2246
|
-
function isStrictMode(object) {
|
|
2247
|
-
return typeOf3(object) === REACT_STRICT_MODE_TYPE;
|
|
2248
|
-
}
|
|
2249
|
-
function isSuspense(object) {
|
|
2250
|
-
return typeOf3(object) === REACT_SUSPENSE_TYPE;
|
|
2251
|
-
}
|
|
2252
|
-
exports.AsyncMode = AsyncMode;
|
|
2253
|
-
exports.ConcurrentMode = ConcurrentMode;
|
|
2254
|
-
exports.ContextConsumer = ContextConsumer;
|
|
2255
|
-
exports.ContextProvider = ContextProvider;
|
|
2256
|
-
exports.Element = Element;
|
|
2257
|
-
exports.ForwardRef = ForwardRef;
|
|
2258
|
-
exports.Fragment = Fragment6;
|
|
2259
|
-
exports.Lazy = Lazy;
|
|
2260
|
-
exports.Memo = Memo;
|
|
2261
|
-
exports.Portal = Portal;
|
|
2262
|
-
exports.Profiler = Profiler;
|
|
2263
|
-
exports.StrictMode = StrictMode;
|
|
2264
|
-
exports.Suspense = Suspense;
|
|
2265
|
-
exports.isAsyncMode = isAsyncMode;
|
|
2266
|
-
exports.isConcurrentMode = isConcurrentMode;
|
|
2267
|
-
exports.isContextConsumer = isContextConsumer;
|
|
2268
|
-
exports.isContextProvider = isContextProvider;
|
|
2269
|
-
exports.isElement = isElement;
|
|
2270
|
-
exports.isForwardRef = isForwardRef;
|
|
2271
|
-
exports.isFragment = isFragment;
|
|
2272
|
-
exports.isLazy = isLazy;
|
|
2273
|
-
exports.isMemo = isMemo;
|
|
2274
|
-
exports.isPortal = isPortal;
|
|
2275
|
-
exports.isProfiler = isProfiler;
|
|
2276
|
-
exports.isStrictMode = isStrictMode;
|
|
2277
|
-
exports.isSuspense = isSuspense;
|
|
2278
|
-
exports.isValidElementType = isValidElementType;
|
|
2279
|
-
exports.typeOf = typeOf3;
|
|
2280
|
-
})();
|
|
2281
|
-
}
|
|
2282
|
-
}
|
|
2283
|
-
});
|
|
2284
|
-
|
|
2285
|
-
// node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js
|
|
2286
|
-
var require_react_is = __commonJS({
|
|
2287
|
-
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js"(exports, module) {
|
|
2288
|
-
"use strict";
|
|
2289
|
-
init_process();
|
|
2290
|
-
if (false) {
|
|
2291
|
-
module.exports = null;
|
|
2292
|
-
} else {
|
|
2293
|
-
module.exports = require_react_is_development();
|
|
2294
|
-
}
|
|
2295
|
-
}
|
|
2296
|
-
});
|
|
2297
|
-
|
|
2298
|
-
// node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
2299
|
-
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
2300
|
-
"node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
|
2301
|
-
"use strict";
|
|
2302
|
-
init_process();
|
|
2303
|
-
var reactIs = require_react_is();
|
|
2304
|
-
var REACT_STATICS = {
|
|
2305
|
-
childContextTypes: true,
|
|
2306
|
-
contextType: true,
|
|
2307
|
-
contextTypes: true,
|
|
2308
|
-
defaultProps: true,
|
|
2309
|
-
displayName: true,
|
|
2310
|
-
getDefaultProps: true,
|
|
2311
|
-
getDerivedStateFromError: true,
|
|
2312
|
-
getDerivedStateFromProps: true,
|
|
2313
|
-
mixins: true,
|
|
2314
|
-
propTypes: true,
|
|
2315
|
-
type: true
|
|
2316
|
-
};
|
|
2317
|
-
var KNOWN_STATICS = {
|
|
2318
|
-
name: true,
|
|
2319
|
-
length: true,
|
|
2320
|
-
prototype: true,
|
|
2321
|
-
caller: true,
|
|
2322
|
-
callee: true,
|
|
2323
|
-
arguments: true,
|
|
2324
|
-
arity: true
|
|
2325
|
-
};
|
|
2326
|
-
var FORWARD_REF_STATICS = {
|
|
2327
|
-
"$$typeof": true,
|
|
2328
|
-
render: true,
|
|
2329
|
-
defaultProps: true,
|
|
2330
|
-
displayName: true,
|
|
2331
|
-
propTypes: true
|
|
2332
|
-
};
|
|
2333
|
-
var MEMO_STATICS = {
|
|
2334
|
-
"$$typeof": true,
|
|
2335
|
-
compare: true,
|
|
2336
|
-
defaultProps: true,
|
|
2337
|
-
displayName: true,
|
|
2338
|
-
propTypes: true,
|
|
2339
|
-
type: true
|
|
2340
|
-
};
|
|
2341
|
-
var TYPE_STATICS = {};
|
|
2342
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
2343
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
2344
|
-
function getStatics(component) {
|
|
2345
|
-
if (reactIs.isMemo(component)) {
|
|
2346
|
-
return MEMO_STATICS;
|
|
2347
|
-
}
|
|
2348
|
-
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
|
2349
|
-
}
|
|
2350
|
-
var defineProperty = Object.defineProperty;
|
|
2351
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
2352
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
2353
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2354
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
|
2355
|
-
var objectPrototype = Object.prototype;
|
|
2356
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
2357
|
-
if (typeof sourceComponent !== "string") {
|
|
2358
|
-
if (objectPrototype) {
|
|
2359
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
2360
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
2361
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
2362
|
-
}
|
|
2363
|
-
}
|
|
2364
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
|
2365
|
-
if (getOwnPropertySymbols) {
|
|
2366
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
2367
|
-
}
|
|
2368
|
-
var targetStatics = getStatics(targetComponent);
|
|
2369
|
-
var sourceStatics = getStatics(sourceComponent);
|
|
2370
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
2371
|
-
var key = keys[i];
|
|
2372
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
2373
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
2374
|
-
try {
|
|
2375
|
-
defineProperty(targetComponent, key, descriptor);
|
|
2376
|
-
} catch (e) {
|
|
2377
|
-
}
|
|
2378
|
-
}
|
|
2379
|
-
}
|
|
2380
|
-
}
|
|
2381
|
-
return targetComponent;
|
|
2382
|
-
}
|
|
2383
|
-
module.exports = hoistNonReactStatics;
|
|
2384
|
-
}
|
|
2385
|
-
});
|
|
2386
|
-
|
|
2387
|
-
// node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.js
|
|
2388
|
-
var require_react_jsx_runtime_development = __commonJS({
|
|
2389
|
-
"node_modules/.pnpm/react@18.2.0/node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
|
|
2390
|
-
"use strict";
|
|
2391
|
-
init_process();
|
|
2392
|
-
if (true) {
|
|
2393
|
-
(function() {
|
|
2394
|
-
"use strict";
|
|
2395
|
-
var React17 = require_react();
|
|
2396
|
-
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
2397
|
-
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
2398
|
-
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
2399
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
2400
|
-
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
2401
|
-
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
2402
|
-
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
2403
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
2404
|
-
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
2405
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
2406
|
-
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
2407
|
-
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
2408
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
2409
|
-
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
2410
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
2411
|
-
function getIteratorFn(maybeIterable) {
|
|
2412
|
-
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
2413
|
-
return null;
|
|
2414
|
-
}
|
|
2415
|
-
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
2416
|
-
if (typeof maybeIterator === "function") {
|
|
2417
|
-
return maybeIterator;
|
|
2418
|
-
}
|
|
2419
|
-
return null;
|
|
2420
|
-
}
|
|
2421
|
-
var ReactSharedInternals = React17.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
2422
|
-
function error(format4) {
|
|
2423
|
-
{
|
|
2424
|
-
{
|
|
2425
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
2426
|
-
args[_key2 - 1] = arguments[_key2];
|
|
2427
|
-
}
|
|
2428
|
-
printWarning("error", format4, args);
|
|
2429
|
-
}
|
|
2430
|
-
}
|
|
2431
|
-
}
|
|
2432
|
-
function printWarning(level, format4, args) {
|
|
2433
|
-
{
|
|
2434
|
-
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2435
|
-
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
2436
|
-
if (stack !== "") {
|
|
2437
|
-
format4 += "%s";
|
|
2438
|
-
args = args.concat([stack]);
|
|
2439
|
-
}
|
|
2440
|
-
var argsWithFormat = args.map(function(item) {
|
|
2441
|
-
return String(item);
|
|
2442
|
-
});
|
|
2443
|
-
argsWithFormat.unshift("Warning: " + format4);
|
|
2444
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
2445
|
-
}
|
|
2446
|
-
}
|
|
2447
|
-
var enableScopeAPI = false;
|
|
2448
|
-
var enableCacheElement = false;
|
|
2449
|
-
var enableTransitionTracing = false;
|
|
2450
|
-
var enableLegacyHidden = false;
|
|
2451
|
-
var enableDebugTracing = false;
|
|
2452
|
-
var REACT_MODULE_REFERENCE;
|
|
2453
|
-
{
|
|
2454
|
-
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
2455
|
-
}
|
|
2456
|
-
function isValidElementType(type) {
|
|
2457
|
-
if (typeof type === "string" || typeof type === "function") {
|
|
2458
|
-
return true;
|
|
2459
|
-
}
|
|
2460
|
-
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) {
|
|
2461
|
-
return true;
|
|
2462
|
-
}
|
|
2463
|
-
if (typeof type === "object" && type !== null) {
|
|
2464
|
-
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
|
|
2465
|
-
// types supported by any Flight configuration anywhere since
|
|
2466
|
-
// we don't know which Flight build this will end up being used
|
|
2467
|
-
// with.
|
|
2468
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
2469
|
-
return true;
|
|
2470
|
-
}
|
|
2471
|
-
}
|
|
2472
|
-
return false;
|
|
2473
|
-
}
|
|
2474
|
-
function getWrappedName(outerType, innerType, wrapperName) {
|
|
2475
|
-
var displayName = outerType.displayName;
|
|
2476
|
-
if (displayName) {
|
|
2477
|
-
return displayName;
|
|
2478
|
-
}
|
|
2479
|
-
var functionName = innerType.displayName || innerType.name || "";
|
|
2480
|
-
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
2481
|
-
}
|
|
2482
|
-
function getContextName(type) {
|
|
2483
|
-
return type.displayName || "Context";
|
|
2484
|
-
}
|
|
2485
|
-
function getComponentNameFromType(type) {
|
|
2486
|
-
if (type == null) {
|
|
2487
|
-
return null;
|
|
2488
|
-
}
|
|
2489
|
-
{
|
|
2490
|
-
if (typeof type.tag === "number") {
|
|
2491
|
-
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
if (typeof type === "function") {
|
|
2495
|
-
return type.displayName || type.name || null;
|
|
2496
|
-
}
|
|
2497
|
-
if (typeof type === "string") {
|
|
2498
|
-
return type;
|
|
2499
|
-
}
|
|
2500
|
-
switch (type) {
|
|
2501
|
-
case REACT_FRAGMENT_TYPE:
|
|
2502
|
-
return "Fragment";
|
|
2503
|
-
case REACT_PORTAL_TYPE:
|
|
2504
|
-
return "Portal";
|
|
2505
|
-
case REACT_PROFILER_TYPE:
|
|
2506
|
-
return "Profiler";
|
|
2507
|
-
case REACT_STRICT_MODE_TYPE:
|
|
2508
|
-
return "StrictMode";
|
|
2509
|
-
case REACT_SUSPENSE_TYPE:
|
|
2510
|
-
return "Suspense";
|
|
2511
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
2512
|
-
return "SuspenseList";
|
|
2513
|
-
}
|
|
2514
|
-
if (typeof type === "object") {
|
|
2515
|
-
switch (type.$$typeof) {
|
|
2516
|
-
case REACT_CONTEXT_TYPE:
|
|
2517
|
-
var context = type;
|
|
2518
|
-
return getContextName(context) + ".Consumer";
|
|
2519
|
-
case REACT_PROVIDER_TYPE:
|
|
2520
|
-
var provider = type;
|
|
2521
|
-
return getContextName(provider._context) + ".Provider";
|
|
2522
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2523
|
-
return getWrappedName(type, type.render, "ForwardRef");
|
|
2524
|
-
case REACT_MEMO_TYPE:
|
|
2525
|
-
var outerName = type.displayName || null;
|
|
2526
|
-
if (outerName !== null) {
|
|
2527
|
-
return outerName;
|
|
2528
|
-
}
|
|
2529
|
-
return getComponentNameFromType(type.type) || "Memo";
|
|
2530
|
-
case REACT_LAZY_TYPE: {
|
|
2531
|
-
var lazyComponent = type;
|
|
2532
|
-
var payload = lazyComponent._payload;
|
|
2533
|
-
var init = lazyComponent._init;
|
|
2534
|
-
try {
|
|
2535
|
-
return getComponentNameFromType(init(payload));
|
|
2536
|
-
} catch (x2) {
|
|
2537
|
-
return null;
|
|
2538
|
-
}
|
|
2539
|
-
}
|
|
2540
|
-
}
|
|
2541
|
-
}
|
|
2542
|
-
return null;
|
|
2543
|
-
}
|
|
2544
|
-
var assign2 = Object.assign;
|
|
2545
|
-
var disabledDepth = 0;
|
|
2546
|
-
var prevLog;
|
|
2547
|
-
var prevInfo;
|
|
2548
|
-
var prevWarn;
|
|
2549
|
-
var prevError;
|
|
2550
|
-
var prevGroup;
|
|
2551
|
-
var prevGroupCollapsed;
|
|
2552
|
-
var prevGroupEnd;
|
|
2553
|
-
function disabledLog() {
|
|
2554
|
-
}
|
|
2555
|
-
disabledLog.__reactDisabledLog = true;
|
|
2556
|
-
function disableLogs() {
|
|
2557
|
-
{
|
|
2558
|
-
if (disabledDepth === 0) {
|
|
2559
|
-
prevLog = console.log;
|
|
2560
|
-
prevInfo = console.info;
|
|
2561
|
-
prevWarn = console.warn;
|
|
2562
|
-
prevError = console.error;
|
|
2563
|
-
prevGroup = console.group;
|
|
2564
|
-
prevGroupCollapsed = console.groupCollapsed;
|
|
2565
|
-
prevGroupEnd = console.groupEnd;
|
|
2566
|
-
var props = {
|
|
2567
|
-
configurable: true,
|
|
2568
|
-
enumerable: true,
|
|
2569
|
-
value: disabledLog,
|
|
2570
|
-
writable: true
|
|
2571
|
-
};
|
|
2572
|
-
Object.defineProperties(console, {
|
|
2573
|
-
info: props,
|
|
2574
|
-
log: props,
|
|
2575
|
-
warn: props,
|
|
2576
|
-
error: props,
|
|
2577
|
-
group: props,
|
|
2578
|
-
groupCollapsed: props,
|
|
2579
|
-
groupEnd: props
|
|
2580
|
-
});
|
|
2581
|
-
}
|
|
2582
|
-
disabledDepth++;
|
|
2583
|
-
}
|
|
2584
|
-
}
|
|
2585
|
-
function reenableLogs() {
|
|
2586
|
-
{
|
|
2587
|
-
disabledDepth--;
|
|
2588
|
-
if (disabledDepth === 0) {
|
|
2589
|
-
var props = {
|
|
2590
|
-
configurable: true,
|
|
2591
|
-
enumerable: true,
|
|
2592
|
-
writable: true
|
|
2593
|
-
};
|
|
2594
|
-
Object.defineProperties(console, {
|
|
2595
|
-
log: assign2({}, props, {
|
|
2596
|
-
value: prevLog
|
|
2597
|
-
}),
|
|
2598
|
-
info: assign2({}, props, {
|
|
2599
|
-
value: prevInfo
|
|
2600
|
-
}),
|
|
2601
|
-
warn: assign2({}, props, {
|
|
2602
|
-
value: prevWarn
|
|
2603
|
-
}),
|
|
2604
|
-
error: assign2({}, props, {
|
|
2605
|
-
value: prevError
|
|
2606
|
-
}),
|
|
2607
|
-
group: assign2({}, props, {
|
|
2608
|
-
value: prevGroup
|
|
2609
|
-
}),
|
|
2610
|
-
groupCollapsed: assign2({}, props, {
|
|
2611
|
-
value: prevGroupCollapsed
|
|
2612
|
-
}),
|
|
2613
|
-
groupEnd: assign2({}, props, {
|
|
2614
|
-
value: prevGroupEnd
|
|
2615
|
-
})
|
|
2616
|
-
});
|
|
2617
|
-
}
|
|
2618
|
-
if (disabledDepth < 0) {
|
|
2619
|
-
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
2620
|
-
}
|
|
2621
|
-
}
|
|
2622
|
-
}
|
|
2623
|
-
var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
|
|
2624
|
-
var prefix2;
|
|
2625
|
-
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
2626
|
-
{
|
|
2627
|
-
if (prefix2 === void 0) {
|
|
2628
|
-
try {
|
|
2629
|
-
throw Error();
|
|
2630
|
-
} catch (x2) {
|
|
2631
|
-
var match2 = x2.stack.trim().match(/\n( *(at )?)/);
|
|
2632
|
-
prefix2 = match2 && match2[1] || "";
|
|
2633
|
-
}
|
|
2634
|
-
}
|
|
2635
|
-
return "\n" + prefix2 + name;
|
|
2636
|
-
}
|
|
2637
|
-
}
|
|
2638
|
-
var reentry = false;
|
|
2639
|
-
var componentFrameCache;
|
|
2640
|
-
{
|
|
2641
|
-
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
2642
|
-
componentFrameCache = new PossiblyWeakMap();
|
|
2643
|
-
}
|
|
2644
|
-
function describeNativeComponentFrame(fn, construct) {
|
|
2645
|
-
if (!fn || reentry) {
|
|
2646
|
-
return "";
|
|
2647
|
-
}
|
|
2648
|
-
{
|
|
2649
|
-
var frame = componentFrameCache.get(fn);
|
|
2650
|
-
if (frame !== void 0) {
|
|
2651
|
-
return frame;
|
|
2652
|
-
}
|
|
2653
|
-
}
|
|
2654
|
-
var control;
|
|
2655
|
-
reentry = true;
|
|
2656
|
-
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
2657
|
-
Error.prepareStackTrace = void 0;
|
|
2658
|
-
var previousDispatcher;
|
|
2659
|
-
{
|
|
2660
|
-
previousDispatcher = ReactCurrentDispatcher.current;
|
|
2661
|
-
ReactCurrentDispatcher.current = null;
|
|
2662
|
-
disableLogs();
|
|
2663
|
-
}
|
|
2664
|
-
try {
|
|
2665
|
-
if (construct) {
|
|
2666
|
-
var Fake = function() {
|
|
2667
|
-
throw Error();
|
|
2668
|
-
};
|
|
2669
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
2670
|
-
set: function() {
|
|
2671
|
-
throw Error();
|
|
2672
|
-
}
|
|
2673
|
-
});
|
|
2674
|
-
if (typeof Reflect === "object" && Reflect.construct) {
|
|
2675
|
-
try {
|
|
2676
|
-
Reflect.construct(Fake, []);
|
|
2677
|
-
} catch (x2) {
|
|
2678
|
-
control = x2;
|
|
2679
|
-
}
|
|
2680
|
-
Reflect.construct(fn, [], Fake);
|
|
2681
|
-
} else {
|
|
2682
|
-
try {
|
|
2683
|
-
Fake.call();
|
|
2684
|
-
} catch (x2) {
|
|
2685
|
-
control = x2;
|
|
2686
|
-
}
|
|
2687
|
-
fn.call(Fake.prototype);
|
|
2688
|
-
}
|
|
2689
|
-
} else {
|
|
2690
|
-
try {
|
|
2691
|
-
throw Error();
|
|
2692
|
-
} catch (x2) {
|
|
2693
|
-
control = x2;
|
|
2694
|
-
}
|
|
2695
|
-
fn();
|
|
2696
|
-
}
|
|
2697
|
-
} catch (sample) {
|
|
2698
|
-
if (sample && control && typeof sample.stack === "string") {
|
|
2699
|
-
var sampleLines = sample.stack.split("\n");
|
|
2700
|
-
var controlLines = control.stack.split("\n");
|
|
2701
|
-
var s = sampleLines.length - 1;
|
|
2702
|
-
var c = controlLines.length - 1;
|
|
2703
|
-
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
2704
|
-
c--;
|
|
2705
|
-
}
|
|
2706
|
-
for (; s >= 1 && c >= 0; s--, c--) {
|
|
2707
|
-
if (sampleLines[s] !== controlLines[c]) {
|
|
2708
|
-
if (s !== 1 || c !== 1) {
|
|
2709
|
-
do {
|
|
2710
|
-
s--;
|
|
2711
|
-
c--;
|
|
2712
|
-
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
2713
|
-
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
2714
|
-
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
2715
|
-
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
2716
|
-
}
|
|
2717
|
-
{
|
|
2718
|
-
if (typeof fn === "function") {
|
|
2719
|
-
componentFrameCache.set(fn, _frame);
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
return _frame;
|
|
2723
|
-
}
|
|
2724
|
-
} while (s >= 1 && c >= 0);
|
|
2725
|
-
}
|
|
2726
|
-
break;
|
|
2727
|
-
}
|
|
2728
|
-
}
|
|
2729
|
-
}
|
|
2730
|
-
} finally {
|
|
2731
|
-
reentry = false;
|
|
2732
|
-
{
|
|
2733
|
-
ReactCurrentDispatcher.current = previousDispatcher;
|
|
2734
|
-
reenableLogs();
|
|
2735
|
-
}
|
|
2736
|
-
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
2737
|
-
}
|
|
2738
|
-
var name = fn ? fn.displayName || fn.name : "";
|
|
2739
|
-
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
2740
|
-
{
|
|
2741
|
-
if (typeof fn === "function") {
|
|
2742
|
-
componentFrameCache.set(fn, syntheticFrame);
|
|
2743
|
-
}
|
|
2744
|
-
}
|
|
2745
|
-
return syntheticFrame;
|
|
2746
|
-
}
|
|
2747
|
-
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
2748
|
-
{
|
|
2749
|
-
return describeNativeComponentFrame(fn, false);
|
|
2750
|
-
}
|
|
2751
|
-
}
|
|
2752
|
-
function shouldConstruct(Component) {
|
|
2753
|
-
var prototype = Component.prototype;
|
|
2754
|
-
return !!(prototype && prototype.isReactComponent);
|
|
2755
|
-
}
|
|
2756
|
-
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
2757
|
-
if (type == null) {
|
|
2758
|
-
return "";
|
|
2759
|
-
}
|
|
2760
|
-
if (typeof type === "function") {
|
|
2761
|
-
{
|
|
2762
|
-
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
2763
|
-
}
|
|
2764
|
-
}
|
|
2765
|
-
if (typeof type === "string") {
|
|
2766
|
-
return describeBuiltInComponentFrame(type);
|
|
2767
|
-
}
|
|
2768
|
-
switch (type) {
|
|
2769
|
-
case REACT_SUSPENSE_TYPE:
|
|
2770
|
-
return describeBuiltInComponentFrame("Suspense");
|
|
2771
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
2772
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
|
2773
|
-
}
|
|
2774
|
-
if (typeof type === "object") {
|
|
2775
|
-
switch (type.$$typeof) {
|
|
2776
|
-
case REACT_FORWARD_REF_TYPE:
|
|
2777
|
-
return describeFunctionComponentFrame(type.render);
|
|
2778
|
-
case REACT_MEMO_TYPE:
|
|
2779
|
-
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
2780
|
-
case REACT_LAZY_TYPE: {
|
|
2781
|
-
var lazyComponent = type;
|
|
2782
|
-
var payload = lazyComponent._payload;
|
|
2783
|
-
var init = lazyComponent._init;
|
|
2784
|
-
try {
|
|
2785
|
-
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
2786
|
-
} catch (x2) {
|
|
2787
|
-
}
|
|
2788
|
-
}
|
|
2789
|
-
}
|
|
2790
|
-
}
|
|
2791
|
-
return "";
|
|
2792
|
-
}
|
|
2793
|
-
var hasOwnProperty3 = Object.prototype.hasOwnProperty;
|
|
2794
|
-
var loggedTypeFailures = {};
|
|
2795
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2796
|
-
function setCurrentlyValidatingElement(element) {
|
|
2797
|
-
{
|
|
2798
|
-
if (element) {
|
|
2799
|
-
var owner = element._owner;
|
|
2800
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
2801
|
-
ReactDebugCurrentFrame.setExtraStackFrame(stack);
|
|
2802
|
-
} else {
|
|
2803
|
-
ReactDebugCurrentFrame.setExtraStackFrame(null);
|
|
2804
|
-
}
|
|
2805
|
-
}
|
|
2806
|
-
}
|
|
2807
|
-
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
2808
|
-
{
|
|
2809
|
-
var has = Function.call.bind(hasOwnProperty3);
|
|
2810
|
-
for (var typeSpecName in typeSpecs) {
|
|
2811
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
2812
|
-
var error$1 = void 0;
|
|
2813
|
-
try {
|
|
2814
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
2815
|
-
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`.");
|
|
2816
|
-
err.name = "Invariant Violation";
|
|
2817
|
-
throw err;
|
|
2818
|
-
}
|
|
2819
|
-
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2820
|
-
} catch (ex) {
|
|
2821
|
-
error$1 = ex;
|
|
2822
|
-
}
|
|
2823
|
-
if (error$1 && !(error$1 instanceof Error)) {
|
|
2824
|
-
setCurrentlyValidatingElement(element);
|
|
2825
|
-
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);
|
|
2826
|
-
setCurrentlyValidatingElement(null);
|
|
2827
|
-
}
|
|
2828
|
-
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
2829
|
-
loggedTypeFailures[error$1.message] = true;
|
|
2830
|
-
setCurrentlyValidatingElement(element);
|
|
2831
|
-
error("Failed %s type: %s", location, error$1.message);
|
|
2832
|
-
setCurrentlyValidatingElement(null);
|
|
2833
|
-
}
|
|
2834
|
-
}
|
|
2835
|
-
}
|
|
2836
|
-
}
|
|
2837
|
-
}
|
|
2838
|
-
var isArrayImpl = Array.isArray;
|
|
2839
|
-
function isArray2(a) {
|
|
2840
|
-
return isArrayImpl(a);
|
|
2841
|
-
}
|
|
2842
|
-
function typeName(value) {
|
|
2843
|
-
{
|
|
2844
|
-
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
2845
|
-
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
2846
|
-
return type;
|
|
2847
|
-
}
|
|
2848
|
-
}
|
|
2849
|
-
function willCoercionThrow(value) {
|
|
2850
|
-
{
|
|
2851
|
-
try {
|
|
2852
|
-
testStringCoercion(value);
|
|
2853
|
-
return false;
|
|
2854
|
-
} catch (e) {
|
|
2855
|
-
return true;
|
|
2856
|
-
}
|
|
2857
|
-
}
|
|
2858
|
-
}
|
|
2859
|
-
function testStringCoercion(value) {
|
|
2860
|
-
return "" + value;
|
|
2861
|
-
}
|
|
2862
|
-
function checkKeyStringCoercion(value) {
|
|
2863
|
-
{
|
|
2864
|
-
if (willCoercionThrow(value)) {
|
|
2865
|
-
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
2866
|
-
return testStringCoercion(value);
|
|
2867
|
-
}
|
|
2868
|
-
}
|
|
2869
|
-
}
|
|
2870
|
-
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
2871
|
-
var RESERVED_PROPS = {
|
|
2872
|
-
key: true,
|
|
2873
|
-
ref: true,
|
|
2874
|
-
__self: true,
|
|
2875
|
-
__source: true
|
|
2876
|
-
};
|
|
2877
|
-
var specialPropKeyWarningShown;
|
|
2878
|
-
var specialPropRefWarningShown;
|
|
2879
|
-
var didWarnAboutStringRefs;
|
|
2880
|
-
{
|
|
2881
|
-
didWarnAboutStringRefs = {};
|
|
2882
|
-
}
|
|
2883
|
-
function hasValidRef(config3) {
|
|
2884
|
-
{
|
|
2885
|
-
if (hasOwnProperty3.call(config3, "ref")) {
|
|
2886
|
-
var getter = Object.getOwnPropertyDescriptor(config3, "ref").get;
|
|
2887
|
-
if (getter && getter.isReactWarning) {
|
|
2888
|
-
return false;
|
|
2889
|
-
}
|
|
2890
|
-
}
|
|
2891
|
-
}
|
|
2892
|
-
return config3.ref !== void 0;
|
|
2893
|
-
}
|
|
2894
|
-
function hasValidKey(config3) {
|
|
2895
|
-
{
|
|
2896
|
-
if (hasOwnProperty3.call(config3, "key")) {
|
|
2897
|
-
var getter = Object.getOwnPropertyDescriptor(config3, "key").get;
|
|
2898
|
-
if (getter && getter.isReactWarning) {
|
|
2899
|
-
return false;
|
|
2900
|
-
}
|
|
2901
|
-
}
|
|
2902
|
-
}
|
|
2903
|
-
return config3.key !== void 0;
|
|
2904
|
-
}
|
|
2905
|
-
function warnIfStringRefCannotBeAutoConverted(config3, self) {
|
|
2906
|
-
{
|
|
2907
|
-
if (typeof config3.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
|
|
2908
|
-
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
2909
|
-
if (!didWarnAboutStringRefs[componentName]) {
|
|
2910
|
-
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), config3.ref);
|
|
2911
|
-
didWarnAboutStringRefs[componentName] = true;
|
|
2912
|
-
}
|
|
2913
|
-
}
|
|
2914
|
-
}
|
|
2915
|
-
}
|
|
2916
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
2917
|
-
{
|
|
2918
|
-
var warnAboutAccessingKey = function() {
|
|
2919
|
-
if (!specialPropKeyWarningShown) {
|
|
2920
|
-
specialPropKeyWarningShown = true;
|
|
2921
|
-
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);
|
|
2922
|
-
}
|
|
2923
|
-
};
|
|
2924
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
2925
|
-
Object.defineProperty(props, "key", {
|
|
2926
|
-
get: warnAboutAccessingKey,
|
|
2927
|
-
configurable: true
|
|
2928
|
-
});
|
|
2929
|
-
}
|
|
2930
|
-
}
|
|
2931
|
-
function defineRefPropWarningGetter(props, displayName) {
|
|
2932
|
-
{
|
|
2933
|
-
var warnAboutAccessingRef = function() {
|
|
2934
|
-
if (!specialPropRefWarningShown) {
|
|
2935
|
-
specialPropRefWarningShown = true;
|
|
2936
|
-
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);
|
|
2937
|
-
}
|
|
2938
|
-
};
|
|
2939
|
-
warnAboutAccessingRef.isReactWarning = true;
|
|
2940
|
-
Object.defineProperty(props, "ref", {
|
|
2941
|
-
get: warnAboutAccessingRef,
|
|
2942
|
-
configurable: true
|
|
2943
|
-
});
|
|
2944
|
-
}
|
|
2945
|
-
}
|
|
2946
|
-
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
2947
|
-
var element = {
|
|
2948
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
2949
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
2950
|
-
// Built-in properties that belong on the element
|
|
2951
|
-
type,
|
|
2952
|
-
key,
|
|
2953
|
-
ref,
|
|
2954
|
-
props,
|
|
2955
|
-
// Record the component responsible for creating this element.
|
|
2956
|
-
_owner: owner
|
|
2957
|
-
};
|
|
2958
|
-
{
|
|
2959
|
-
element._store = {};
|
|
2960
|
-
Object.defineProperty(element._store, "validated", {
|
|
2961
|
-
configurable: false,
|
|
2962
|
-
enumerable: false,
|
|
2963
|
-
writable: true,
|
|
2964
|
-
value: false
|
|
2965
|
-
});
|
|
2966
|
-
Object.defineProperty(element, "_self", {
|
|
2967
|
-
configurable: false,
|
|
2968
|
-
enumerable: false,
|
|
2969
|
-
writable: false,
|
|
2970
|
-
value: self
|
|
2971
|
-
});
|
|
2972
|
-
Object.defineProperty(element, "_source", {
|
|
2973
|
-
configurable: false,
|
|
2974
|
-
enumerable: false,
|
|
2975
|
-
writable: false,
|
|
2976
|
-
value: source
|
|
2977
|
-
});
|
|
2978
|
-
if (Object.freeze) {
|
|
2979
|
-
Object.freeze(element.props);
|
|
2980
|
-
Object.freeze(element);
|
|
2981
|
-
}
|
|
2982
|
-
}
|
|
2983
|
-
return element;
|
|
2984
|
-
};
|
|
2985
|
-
function jsxDEV(type, config3, maybeKey, source, self) {
|
|
2986
|
-
{
|
|
2987
|
-
var propName;
|
|
2988
|
-
var props = {};
|
|
2989
|
-
var key = null;
|
|
2990
|
-
var ref = null;
|
|
2991
|
-
if (maybeKey !== void 0) {
|
|
2992
|
-
{
|
|
2993
|
-
checkKeyStringCoercion(maybeKey);
|
|
2994
|
-
}
|
|
2995
|
-
key = "" + maybeKey;
|
|
2996
|
-
}
|
|
2997
|
-
if (hasValidKey(config3)) {
|
|
2998
|
-
{
|
|
2999
|
-
checkKeyStringCoercion(config3.key);
|
|
3000
|
-
}
|
|
3001
|
-
key = "" + config3.key;
|
|
3002
|
-
}
|
|
3003
|
-
if (hasValidRef(config3)) {
|
|
3004
|
-
ref = config3.ref;
|
|
3005
|
-
warnIfStringRefCannotBeAutoConverted(config3, self);
|
|
3006
|
-
}
|
|
3007
|
-
for (propName in config3) {
|
|
3008
|
-
if (hasOwnProperty3.call(config3, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
3009
|
-
props[propName] = config3[propName];
|
|
3010
|
-
}
|
|
3011
|
-
}
|
|
3012
|
-
if (type && type.defaultProps) {
|
|
3013
|
-
var defaultProps2 = type.defaultProps;
|
|
3014
|
-
for (propName in defaultProps2) {
|
|
3015
|
-
if (props[propName] === void 0) {
|
|
3016
|
-
props[propName] = defaultProps2[propName];
|
|
280
|
+
function typeOf3(object) {
|
|
281
|
+
if (typeof object === "object" && object !== null) {
|
|
282
|
+
var $$typeof = object.$$typeof;
|
|
283
|
+
switch ($$typeof) {
|
|
284
|
+
case REACT_ELEMENT_TYPE:
|
|
285
|
+
var type = object.type;
|
|
286
|
+
switch (type) {
|
|
287
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
288
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
289
|
+
case REACT_FRAGMENT_TYPE:
|
|
290
|
+
case REACT_PROFILER_TYPE:
|
|
291
|
+
case REACT_STRICT_MODE_TYPE:
|
|
292
|
+
case REACT_SUSPENSE_TYPE:
|
|
293
|
+
return type;
|
|
294
|
+
default:
|
|
295
|
+
var $$typeofType = type && type.$$typeof;
|
|
296
|
+
switch ($$typeofType) {
|
|
297
|
+
case REACT_CONTEXT_TYPE:
|
|
298
|
+
case REACT_FORWARD_REF_TYPE:
|
|
299
|
+
case REACT_LAZY_TYPE:
|
|
300
|
+
case REACT_MEMO_TYPE:
|
|
301
|
+
case REACT_PROVIDER_TYPE:
|
|
302
|
+
return $$typeofType;
|
|
303
|
+
default:
|
|
304
|
+
return $$typeof;
|
|
305
|
+
}
|
|
3017
306
|
}
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
if (key || ref) {
|
|
3021
|
-
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
3022
|
-
if (key) {
|
|
3023
|
-
defineKeyPropWarningGetter(props, displayName);
|
|
3024
|
-
}
|
|
3025
|
-
if (ref) {
|
|
3026
|
-
defineRefPropWarningGetter(props, displayName);
|
|
3027
|
-
}
|
|
307
|
+
case REACT_PORTAL_TYPE:
|
|
308
|
+
return $$typeof;
|
|
3028
309
|
}
|
|
3029
|
-
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
3030
310
|
}
|
|
311
|
+
return void 0;
|
|
3031
312
|
}
|
|
3032
|
-
var
|
|
3033
|
-
var
|
|
3034
|
-
|
|
313
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
314
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
315
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
316
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
317
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
318
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
319
|
+
var Fragment6 = REACT_FRAGMENT_TYPE;
|
|
320
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
321
|
+
var Memo = REACT_MEMO_TYPE;
|
|
322
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
323
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
324
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
325
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
326
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
327
|
+
function isAsyncMode(object) {
|
|
3035
328
|
{
|
|
3036
|
-
if (
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
3040
|
-
} else {
|
|
3041
|
-
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
329
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
330
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
331
|
+
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
3042
332
|
}
|
|
3043
333
|
}
|
|
334
|
+
return isConcurrentMode(object) || typeOf3(object) === REACT_ASYNC_MODE_TYPE;
|
|
3044
335
|
}
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
propTypesMisspellWarningShown = false;
|
|
336
|
+
function isConcurrentMode(object) {
|
|
337
|
+
return typeOf3(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
3048
338
|
}
|
|
3049
|
-
function
|
|
3050
|
-
|
|
3051
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
3052
|
-
}
|
|
339
|
+
function isContextConsumer(object) {
|
|
340
|
+
return typeOf3(object) === REACT_CONTEXT_TYPE;
|
|
3053
341
|
}
|
|
3054
|
-
function
|
|
3055
|
-
|
|
3056
|
-
if (ReactCurrentOwner$1.current) {
|
|
3057
|
-
var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
|
|
3058
|
-
if (name) {
|
|
3059
|
-
return "\n\nCheck the render method of `" + name + "`.";
|
|
3060
|
-
}
|
|
3061
|
-
}
|
|
3062
|
-
return "";
|
|
3063
|
-
}
|
|
342
|
+
function isContextProvider(object) {
|
|
343
|
+
return typeOf3(object) === REACT_PROVIDER_TYPE;
|
|
3064
344
|
}
|
|
3065
|
-
function
|
|
3066
|
-
|
|
3067
|
-
if (source !== void 0) {
|
|
3068
|
-
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
3069
|
-
var lineNumber = source.lineNumber;
|
|
3070
|
-
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
3071
|
-
}
|
|
3072
|
-
return "";
|
|
3073
|
-
}
|
|
345
|
+
function isElement(object) {
|
|
346
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
3074
347
|
}
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
{
|
|
3078
|
-
var info = getDeclarationErrorAddendum();
|
|
3079
|
-
if (!info) {
|
|
3080
|
-
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
3081
|
-
if (parentName) {
|
|
3082
|
-
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
3083
|
-
}
|
|
3084
|
-
}
|
|
3085
|
-
return info;
|
|
3086
|
-
}
|
|
348
|
+
function isForwardRef(object) {
|
|
349
|
+
return typeOf3(object) === REACT_FORWARD_REF_TYPE;
|
|
3087
350
|
}
|
|
3088
|
-
function
|
|
3089
|
-
|
|
3090
|
-
if (!element._store || element._store.validated || element.key != null) {
|
|
3091
|
-
return;
|
|
3092
|
-
}
|
|
3093
|
-
element._store.validated = true;
|
|
3094
|
-
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
3095
|
-
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
3096
|
-
return;
|
|
3097
|
-
}
|
|
3098
|
-
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
3099
|
-
var childOwner = "";
|
|
3100
|
-
if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
|
|
3101
|
-
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
3102
|
-
}
|
|
3103
|
-
setCurrentlyValidatingElement$1(element);
|
|
3104
|
-
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);
|
|
3105
|
-
setCurrentlyValidatingElement$1(null);
|
|
3106
|
-
}
|
|
351
|
+
function isFragment(object) {
|
|
352
|
+
return typeOf3(object) === REACT_FRAGMENT_TYPE;
|
|
3107
353
|
}
|
|
3108
|
-
function
|
|
3109
|
-
|
|
3110
|
-
if (typeof node2 !== "object") {
|
|
3111
|
-
return;
|
|
3112
|
-
}
|
|
3113
|
-
if (isArray2(node2)) {
|
|
3114
|
-
for (var i = 0; i < node2.length; i++) {
|
|
3115
|
-
var child = node2[i];
|
|
3116
|
-
if (isValidElement(child)) {
|
|
3117
|
-
validateExplicitKey(child, parentType);
|
|
3118
|
-
}
|
|
3119
|
-
}
|
|
3120
|
-
} else if (isValidElement(node2)) {
|
|
3121
|
-
if (node2._store) {
|
|
3122
|
-
node2._store.validated = true;
|
|
3123
|
-
}
|
|
3124
|
-
} else if (node2) {
|
|
3125
|
-
var iteratorFn = getIteratorFn(node2);
|
|
3126
|
-
if (typeof iteratorFn === "function") {
|
|
3127
|
-
if (iteratorFn !== node2.entries) {
|
|
3128
|
-
var iterator = iteratorFn.call(node2);
|
|
3129
|
-
var step;
|
|
3130
|
-
while (!(step = iterator.next()).done) {
|
|
3131
|
-
if (isValidElement(step.value)) {
|
|
3132
|
-
validateExplicitKey(step.value, parentType);
|
|
3133
|
-
}
|
|
3134
|
-
}
|
|
3135
|
-
}
|
|
3136
|
-
}
|
|
3137
|
-
}
|
|
3138
|
-
}
|
|
354
|
+
function isLazy(object) {
|
|
355
|
+
return typeOf3(object) === REACT_LAZY_TYPE;
|
|
3139
356
|
}
|
|
3140
|
-
function
|
|
3141
|
-
|
|
3142
|
-
var type = element.type;
|
|
3143
|
-
if (type === null || type === void 0 || typeof type === "string") {
|
|
3144
|
-
return;
|
|
3145
|
-
}
|
|
3146
|
-
var propTypes;
|
|
3147
|
-
if (typeof type === "function") {
|
|
3148
|
-
propTypes = type.propTypes;
|
|
3149
|
-
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
3150
|
-
// Inner props are checked in the reconciler.
|
|
3151
|
-
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
3152
|
-
propTypes = type.propTypes;
|
|
3153
|
-
} else {
|
|
3154
|
-
return;
|
|
3155
|
-
}
|
|
3156
|
-
if (propTypes) {
|
|
3157
|
-
var name = getComponentNameFromType(type);
|
|
3158
|
-
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
3159
|
-
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
3160
|
-
propTypesMisspellWarningShown = true;
|
|
3161
|
-
var _name = getComponentNameFromType(type);
|
|
3162
|
-
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
3163
|
-
}
|
|
3164
|
-
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
3165
|
-
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
3166
|
-
}
|
|
3167
|
-
}
|
|
357
|
+
function isMemo(object) {
|
|
358
|
+
return typeOf3(object) === REACT_MEMO_TYPE;
|
|
3168
359
|
}
|
|
3169
|
-
function
|
|
3170
|
-
|
|
3171
|
-
var keys = Object.keys(fragment.props);
|
|
3172
|
-
for (var i = 0; i < keys.length; i++) {
|
|
3173
|
-
var key = keys[i];
|
|
3174
|
-
if (key !== "children" && key !== "key") {
|
|
3175
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
3176
|
-
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
3177
|
-
setCurrentlyValidatingElement$1(null);
|
|
3178
|
-
break;
|
|
3179
|
-
}
|
|
3180
|
-
}
|
|
3181
|
-
if (fragment.ref !== null) {
|
|
3182
|
-
setCurrentlyValidatingElement$1(fragment);
|
|
3183
|
-
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
3184
|
-
setCurrentlyValidatingElement$1(null);
|
|
3185
|
-
}
|
|
3186
|
-
}
|
|
360
|
+
function isPortal(object) {
|
|
361
|
+
return typeOf3(object) === REACT_PORTAL_TYPE;
|
|
3187
362
|
}
|
|
3188
|
-
function
|
|
3189
|
-
|
|
3190
|
-
var validType = isValidElementType(type);
|
|
3191
|
-
if (!validType) {
|
|
3192
|
-
var info = "";
|
|
3193
|
-
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
3194
|
-
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.";
|
|
3195
|
-
}
|
|
3196
|
-
var sourceInfo = getSourceInfoErrorAddendum(source);
|
|
3197
|
-
if (sourceInfo) {
|
|
3198
|
-
info += sourceInfo;
|
|
3199
|
-
} else {
|
|
3200
|
-
info += getDeclarationErrorAddendum();
|
|
3201
|
-
}
|
|
3202
|
-
var typeString;
|
|
3203
|
-
if (type === null) {
|
|
3204
|
-
typeString = "null";
|
|
3205
|
-
} else if (isArray2(type)) {
|
|
3206
|
-
typeString = "array";
|
|
3207
|
-
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
3208
|
-
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
3209
|
-
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
3210
|
-
} else {
|
|
3211
|
-
typeString = typeof type;
|
|
3212
|
-
}
|
|
3213
|
-
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);
|
|
3214
|
-
}
|
|
3215
|
-
var element = jsxDEV(type, props, key, source, self);
|
|
3216
|
-
if (element == null) {
|
|
3217
|
-
return element;
|
|
3218
|
-
}
|
|
3219
|
-
if (validType) {
|
|
3220
|
-
var children = props.children;
|
|
3221
|
-
if (children !== void 0) {
|
|
3222
|
-
if (isStaticChildren) {
|
|
3223
|
-
if (isArray2(children)) {
|
|
3224
|
-
for (var i = 0; i < children.length; i++) {
|
|
3225
|
-
validateChildKeys(children[i], type);
|
|
3226
|
-
}
|
|
3227
|
-
if (Object.freeze) {
|
|
3228
|
-
Object.freeze(children);
|
|
3229
|
-
}
|
|
3230
|
-
} else {
|
|
3231
|
-
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.");
|
|
3232
|
-
}
|
|
3233
|
-
} else {
|
|
3234
|
-
validateChildKeys(children, type);
|
|
3235
|
-
}
|
|
3236
|
-
}
|
|
3237
|
-
}
|
|
3238
|
-
if (type === REACT_FRAGMENT_TYPE) {
|
|
3239
|
-
validateFragmentProps(element);
|
|
3240
|
-
} else {
|
|
3241
|
-
validatePropTypes(element);
|
|
3242
|
-
}
|
|
3243
|
-
return element;
|
|
3244
|
-
}
|
|
363
|
+
function isProfiler(object) {
|
|
364
|
+
return typeOf3(object) === REACT_PROFILER_TYPE;
|
|
3245
365
|
}
|
|
3246
|
-
function
|
|
3247
|
-
|
|
3248
|
-
return jsxWithValidation(type, props, key, true);
|
|
3249
|
-
}
|
|
366
|
+
function isStrictMode(object) {
|
|
367
|
+
return typeOf3(object) === REACT_STRICT_MODE_TYPE;
|
|
3250
368
|
}
|
|
3251
|
-
function
|
|
3252
|
-
|
|
3253
|
-
return jsxWithValidation(type, props, key, false);
|
|
3254
|
-
}
|
|
369
|
+
function isSuspense(object) {
|
|
370
|
+
return typeOf3(object) === REACT_SUSPENSE_TYPE;
|
|
3255
371
|
}
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
exports.
|
|
3259
|
-
exports.
|
|
3260
|
-
exports.
|
|
372
|
+
exports.AsyncMode = AsyncMode;
|
|
373
|
+
exports.ConcurrentMode = ConcurrentMode;
|
|
374
|
+
exports.ContextConsumer = ContextConsumer;
|
|
375
|
+
exports.ContextProvider = ContextProvider;
|
|
376
|
+
exports.Element = Element;
|
|
377
|
+
exports.ForwardRef = ForwardRef;
|
|
378
|
+
exports.Fragment = Fragment6;
|
|
379
|
+
exports.Lazy = Lazy;
|
|
380
|
+
exports.Memo = Memo;
|
|
381
|
+
exports.Portal = Portal;
|
|
382
|
+
exports.Profiler = Profiler;
|
|
383
|
+
exports.StrictMode = StrictMode;
|
|
384
|
+
exports.Suspense = Suspense;
|
|
385
|
+
exports.isAsyncMode = isAsyncMode;
|
|
386
|
+
exports.isConcurrentMode = isConcurrentMode;
|
|
387
|
+
exports.isContextConsumer = isContextConsumer;
|
|
388
|
+
exports.isContextProvider = isContextProvider;
|
|
389
|
+
exports.isElement = isElement;
|
|
390
|
+
exports.isForwardRef = isForwardRef;
|
|
391
|
+
exports.isFragment = isFragment;
|
|
392
|
+
exports.isLazy = isLazy;
|
|
393
|
+
exports.isMemo = isMemo;
|
|
394
|
+
exports.isPortal = isPortal;
|
|
395
|
+
exports.isProfiler = isProfiler;
|
|
396
|
+
exports.isStrictMode = isStrictMode;
|
|
397
|
+
exports.isSuspense = isSuspense;
|
|
398
|
+
exports.isValidElementType = isValidElementType;
|
|
399
|
+
exports.typeOf = typeOf3;
|
|
3261
400
|
})();
|
|
3262
401
|
}
|
|
3263
402
|
}
|
|
3264
403
|
});
|
|
3265
404
|
|
|
3266
|
-
// node_modules/.pnpm/react@
|
|
3267
|
-
var
|
|
3268
|
-
"node_modules/.pnpm/react@
|
|
405
|
+
// node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js
|
|
406
|
+
var require_react_is = __commonJS({
|
|
407
|
+
"node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js"(exports, module) {
|
|
3269
408
|
"use strict";
|
|
3270
409
|
init_process();
|
|
3271
410
|
if (false) {
|
|
3272
411
|
module.exports = null;
|
|
3273
412
|
} else {
|
|
3274
|
-
module.exports =
|
|
413
|
+
module.exports = require_react_is_development();
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
// node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
419
|
+
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
420
|
+
"node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
|
421
|
+
"use strict";
|
|
422
|
+
init_process();
|
|
423
|
+
var reactIs = require_react_is();
|
|
424
|
+
var REACT_STATICS = {
|
|
425
|
+
childContextTypes: true,
|
|
426
|
+
contextType: true,
|
|
427
|
+
contextTypes: true,
|
|
428
|
+
defaultProps: true,
|
|
429
|
+
displayName: true,
|
|
430
|
+
getDefaultProps: true,
|
|
431
|
+
getDerivedStateFromError: true,
|
|
432
|
+
getDerivedStateFromProps: true,
|
|
433
|
+
mixins: true,
|
|
434
|
+
propTypes: true,
|
|
435
|
+
type: true
|
|
436
|
+
};
|
|
437
|
+
var KNOWN_STATICS = {
|
|
438
|
+
name: true,
|
|
439
|
+
length: true,
|
|
440
|
+
prototype: true,
|
|
441
|
+
caller: true,
|
|
442
|
+
callee: true,
|
|
443
|
+
arguments: true,
|
|
444
|
+
arity: true
|
|
445
|
+
};
|
|
446
|
+
var FORWARD_REF_STATICS = {
|
|
447
|
+
"$$typeof": true,
|
|
448
|
+
render: true,
|
|
449
|
+
defaultProps: true,
|
|
450
|
+
displayName: true,
|
|
451
|
+
propTypes: true
|
|
452
|
+
};
|
|
453
|
+
var MEMO_STATICS = {
|
|
454
|
+
"$$typeof": true,
|
|
455
|
+
compare: true,
|
|
456
|
+
defaultProps: true,
|
|
457
|
+
displayName: true,
|
|
458
|
+
propTypes: true,
|
|
459
|
+
type: true
|
|
460
|
+
};
|
|
461
|
+
var TYPE_STATICS = {};
|
|
462
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
463
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
464
|
+
function getStatics(component) {
|
|
465
|
+
if (reactIs.isMemo(component)) {
|
|
466
|
+
return MEMO_STATICS;
|
|
467
|
+
}
|
|
468
|
+
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
|
469
|
+
}
|
|
470
|
+
var defineProperty = Object.defineProperty;
|
|
471
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
472
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
473
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
474
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
475
|
+
var objectPrototype = Object.prototype;
|
|
476
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
477
|
+
if (typeof sourceComponent !== "string") {
|
|
478
|
+
if (objectPrototype) {
|
|
479
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
480
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
481
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
|
485
|
+
if (getOwnPropertySymbols) {
|
|
486
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
487
|
+
}
|
|
488
|
+
var targetStatics = getStatics(targetComponent);
|
|
489
|
+
var sourceStatics = getStatics(sourceComponent);
|
|
490
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
491
|
+
var key = keys[i];
|
|
492
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
493
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
494
|
+
try {
|
|
495
|
+
defineProperty(targetComponent, key, descriptor);
|
|
496
|
+
} catch (e) {
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
return targetComponent;
|
|
3275
502
|
}
|
|
503
|
+
module.exports = hoistNonReactStatics;
|
|
3276
504
|
}
|
|
3277
505
|
});
|
|
3278
506
|
|
|
@@ -3950,7 +1178,7 @@ var require_lib = __commonJS({
|
|
|
3950
1178
|
"use strict";
|
|
3951
1179
|
init_process();
|
|
3952
1180
|
exports.__esModule = true;
|
|
3953
|
-
var react_1 =
|
|
1181
|
+
var react_1 = __require("react");
|
|
3954
1182
|
function useDigitInput2(_a) {
|
|
3955
1183
|
var acceptedCharacters = _a.acceptedCharacters, length2 = _a.length, value = _a.value, onChange2 = _a.onChange;
|
|
3956
1184
|
var val = padValue(value, length2);
|
|
@@ -6846,7 +4074,7 @@ init_process();
|
|
|
6846
4074
|
|
|
6847
4075
|
// packages/react-ui/src/lib/gamification/inapp/index.tsx
|
|
6848
4076
|
init_process();
|
|
6849
|
-
|
|
4077
|
+
import { useCallback } from "react";
|
|
6850
4078
|
|
|
6851
4079
|
// packages/react-ui/src/assets/icons/icon-exit.svg
|
|
6852
4080
|
var icon_exit_default = 'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A <rect width="24" height="24" rx="12" fill="white" fill-opacity="0.1"/>%0A <rect x="8.25" y="7" width="12.3744" height="1.76777" rx="0.883884" transform="rotate(45 8.25 7)" fill="white"/>%0A <rect x="7" y="15.75" width="12.3744" height="1.76777" rx="0.883884" transform="rotate(-45 7 15.75)" fill="white"/>%0A</svg>%0A';
|
|
@@ -6878,7 +4106,7 @@ function _extends() {
|
|
|
6878
4106
|
}
|
|
6879
4107
|
|
|
6880
4108
|
// node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@18.2.28_react@18.2.0/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js
|
|
6881
|
-
|
|
4109
|
+
import * as React4 from "react";
|
|
6882
4110
|
|
|
6883
4111
|
// node_modules/.pnpm/@emotion+is-prop-valid@1.2.1/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
|
6884
4112
|
init_process();
|
|
@@ -6908,8 +4136,8 @@ init_process();
|
|
|
6908
4136
|
|
|
6909
4137
|
// node_modules/.pnpm/@emotion+react@11.11.1_@types+react@18.2.28_react@18.2.0/node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js
|
|
6910
4138
|
init_process();
|
|
6911
|
-
|
|
6912
|
-
|
|
4139
|
+
import * as React2 from "react";
|
|
4140
|
+
import { useContext as useContext2, forwardRef as forwardRef2 } from "react";
|
|
6913
4141
|
|
|
6914
4142
|
// node_modules/.pnpm/@emotion+cache@11.11.0/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js
|
|
6915
4143
|
init_process();
|
|
@@ -8160,7 +5388,7 @@ var serializeStyles = function serializeStyles2(args, registered, mergedProps) {
|
|
|
8160
5388
|
|
|
8161
5389
|
// node_modules/.pnpm/@emotion+use-insertion-effect-with-fallbacks@1.0.1_react@18.2.0/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js
|
|
8162
5390
|
init_process();
|
|
8163
|
-
|
|
5391
|
+
import * as React from "react";
|
|
8164
5392
|
var syncFallback = function syncFallback2(create) {
|
|
8165
5393
|
return create();
|
|
8166
5394
|
};
|
|
@@ -8187,15 +5415,15 @@ if (true) {
|
|
|
8187
5415
|
}
|
|
8188
5416
|
var CacheProvider = EmotionCacheContext.Provider;
|
|
8189
5417
|
var withEmotionCache = function withEmotionCache2(func) {
|
|
8190
|
-
return /* @__PURE__ */ (
|
|
8191
|
-
var cache = (
|
|
5418
|
+
return /* @__PURE__ */ forwardRef2(function(props, ref) {
|
|
5419
|
+
var cache = useContext2(EmotionCacheContext);
|
|
8192
5420
|
return func(props, cache, ref);
|
|
8193
5421
|
});
|
|
8194
5422
|
};
|
|
8195
5423
|
if (!isBrowser2) {
|
|
8196
5424
|
withEmotionCache = function withEmotionCache3(func) {
|
|
8197
5425
|
return function(props) {
|
|
8198
|
-
var cache = (
|
|
5426
|
+
var cache = useContext2(EmotionCacheContext);
|
|
8199
5427
|
if (cache === null) {
|
|
8200
5428
|
cache = createCache({
|
|
8201
5429
|
key: "css"
|
|
@@ -8342,7 +5570,7 @@ if (true) {
|
|
|
8342
5570
|
var Emotion$1 = Emotion;
|
|
8343
5571
|
|
|
8344
5572
|
// node_modules/.pnpm/@emotion+react@11.11.1_@types+react@18.2.28_react@18.2.0/node_modules/@emotion/react/dist/emotion-react.browser.esm.js
|
|
8345
|
-
|
|
5573
|
+
import * as React3 from "react";
|
|
8346
5574
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
8347
5575
|
var pkg = {
|
|
8348
5576
|
name: "@emotion/react",
|
|
@@ -8810,7 +6038,7 @@ var createStyled = function createStyled2(tag, options) {
|
|
|
8810
6038
|
};
|
|
8811
6039
|
|
|
8812
6040
|
// node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@18.2.28_react@18.2.0/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.js
|
|
8813
|
-
|
|
6041
|
+
import "react";
|
|
8814
6042
|
var tags = [
|
|
8815
6043
|
"a",
|
|
8816
6044
|
"abbr",
|
|
@@ -9029,8 +6257,8 @@ var CloseIcon = newStyled.img`
|
|
|
9029
6257
|
|
|
9030
6258
|
// node_modules/.pnpm/@emotion+react@11.11.1_@types+react@18.2.28_react@18.2.0/node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js
|
|
9031
6259
|
init_process();
|
|
9032
|
-
|
|
9033
|
-
|
|
6260
|
+
import * as ReactJSXRuntime from "react/jsx-runtime";
|
|
6261
|
+
import "react";
|
|
9034
6262
|
var import_hoist_non_react_statics2 = __toESM(require_hoist_non_react_statics_cjs());
|
|
9035
6263
|
var Fragment5 = ReactJSXRuntime.Fragment;
|
|
9036
6264
|
function jsx2(type, props, key) {
|
|
@@ -9048,7 +6276,7 @@ function jsxs2(type, props, key) {
|
|
|
9048
6276
|
|
|
9049
6277
|
// packages/react-ui/src/lib/gamification/inapp/index.tsx
|
|
9050
6278
|
var InApp = ({ title: title3 = "", icon, color, openVoiting, closeInApp }) => {
|
|
9051
|
-
const _closeInApp =
|
|
6279
|
+
const _closeInApp = useCallback(
|
|
9052
6280
|
(e) => {
|
|
9053
6281
|
e.stopPropagation();
|
|
9054
6282
|
closeInApp();
|
|
@@ -9066,7 +6294,7 @@ var InApp = ({ title: title3 = "", icon, color, openVoiting, closeInApp }) => {
|
|
|
9066
6294
|
|
|
9067
6295
|
// packages/react-ui/src/lib/gamification/login/index.tsx
|
|
9068
6296
|
init_process();
|
|
9069
|
-
|
|
6297
|
+
import { useState } from "react";
|
|
9070
6298
|
|
|
9071
6299
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/min/index.js
|
|
9072
6300
|
init_process();
|
|
@@ -9080,22 +6308,22 @@ init_process();
|
|
|
9080
6308
|
|
|
9081
6309
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/PhoneInputWithCountry.js
|
|
9082
6310
|
init_process();
|
|
9083
|
-
var import_react14 = __toESM(require_react(), 1);
|
|
9084
6311
|
var import_prop_types9 = __toESM(require_prop_types(), 1);
|
|
9085
6312
|
var import_classnames4 = __toESM(require_classnames(), 1);
|
|
6313
|
+
import React12 from "react";
|
|
9086
6314
|
|
|
9087
6315
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InputSmart.js
|
|
9088
6316
|
init_process();
|
|
9089
|
-
var import_react7 = __toESM(require_react(), 1);
|
|
9090
6317
|
var import_prop_types2 = __toESM(require_prop_types(), 1);
|
|
6318
|
+
import React6, { useCallback as useCallback3 } from "react";
|
|
9091
6319
|
|
|
9092
6320
|
// node_modules/.pnpm/input-format@0.3.8/node_modules/input-format/react/index.js
|
|
9093
6321
|
init_process();
|
|
9094
6322
|
|
|
9095
6323
|
// node_modules/.pnpm/input-format@0.3.8/node_modules/input-format/modules/react/Input.js
|
|
9096
6324
|
init_process();
|
|
9097
|
-
var import_react6 = __toESM(require_react(), 1);
|
|
9098
6325
|
var import_prop_types = __toESM(require_prop_types(), 1);
|
|
6326
|
+
import React5, { useCallback as useCallback2, useRef as useRef2 } from "react";
|
|
9099
6327
|
|
|
9100
6328
|
// node_modules/.pnpm/input-format@0.3.8/node_modules/input-format/modules/inputControl.js
|
|
9101
6329
|
init_process();
|
|
@@ -9487,8 +6715,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
9487
6715
|
}
|
|
9488
6716
|
function Input(_ref, ref) {
|
|
9489
6717
|
var value = _ref.value, parse4 = _ref.parse, format4 = _ref.format, InputComponent = _ref.inputComponent, onChange2 = _ref.onChange, onKeyDown2 = _ref.onKeyDown, rest = _objectWithoutProperties(_ref, _excluded);
|
|
9490
|
-
var internalRef = (
|
|
9491
|
-
var setRef = (
|
|
6718
|
+
var internalRef = useRef2();
|
|
6719
|
+
var setRef = useCallback2(function(instance) {
|
|
9492
6720
|
internalRef.current = instance;
|
|
9493
6721
|
if (ref) {
|
|
9494
6722
|
if (typeof ref === "function") {
|
|
@@ -9498,23 +6726,23 @@ function Input(_ref, ref) {
|
|
|
9498
6726
|
}
|
|
9499
6727
|
}
|
|
9500
6728
|
}, [ref]);
|
|
9501
|
-
var _onChange = (
|
|
6729
|
+
var _onChange = useCallback2(function(event) {
|
|
9502
6730
|
return onChange(event, internalRef.current, parse4, format4, onChange2);
|
|
9503
6731
|
}, [internalRef, parse4, format4, onChange2]);
|
|
9504
|
-
var _onKeyDown = (
|
|
6732
|
+
var _onKeyDown = useCallback2(function(event) {
|
|
9505
6733
|
if (onKeyDown2) {
|
|
9506
6734
|
onKeyDown2(event);
|
|
9507
6735
|
}
|
|
9508
6736
|
return onKeyDown(event, internalRef.current, parse4, format4, onChange2);
|
|
9509
6737
|
}, [internalRef, parse4, format4, onChange2, onKeyDown2]);
|
|
9510
|
-
return /* @__PURE__ */
|
|
6738
|
+
return /* @__PURE__ */ React5.createElement(InputComponent, _extends2({}, rest, {
|
|
9511
6739
|
ref: setRef,
|
|
9512
6740
|
value: format4(isEmptyValue(value) ? "" : value).text,
|
|
9513
6741
|
onKeyDown: _onKeyDown,
|
|
9514
6742
|
onChange: _onChange
|
|
9515
6743
|
}));
|
|
9516
6744
|
}
|
|
9517
|
-
Input = /* @__PURE__ */
|
|
6745
|
+
Input = /* @__PURE__ */ React5.forwardRef(Input);
|
|
9518
6746
|
Input.propTypes = {
|
|
9519
6747
|
// Parses a single characher of `<input/>` text.
|
|
9520
6748
|
parse: import_prop_types.default.func.isRequired,
|
|
@@ -14017,7 +11245,7 @@ function _objectWithoutPropertiesLoose2(source, excluded) {
|
|
|
14017
11245
|
function createInput(defaultMetadata) {
|
|
14018
11246
|
function InputSmart(_ref, ref) {
|
|
14019
11247
|
var country = _ref.country, international = _ref.international, withCountryCallingCode = _ref.withCountryCallingCode, _ref$metadata = _ref.metadata, metadata2 = _ref$metadata === void 0 ? defaultMetadata : _ref$metadata, rest = _objectWithoutProperties2(_ref, _excluded2);
|
|
14020
|
-
var format4 = (
|
|
11248
|
+
var format4 = useCallback3(function(value) {
|
|
14021
11249
|
var formatter = new AsYouType(country, metadata2);
|
|
14022
11250
|
var prefix2 = getInputValuePrefix({
|
|
14023
11251
|
country,
|
|
@@ -14038,13 +11266,13 @@ function createInput(defaultMetadata) {
|
|
|
14038
11266
|
template
|
|
14039
11267
|
};
|
|
14040
11268
|
}, [country, metadata2]);
|
|
14041
|
-
return /* @__PURE__ */
|
|
11269
|
+
return /* @__PURE__ */ React6.createElement(Input_default, _extends3({}, rest, {
|
|
14042
11270
|
ref,
|
|
14043
11271
|
parse: parsePhoneNumberCharacter,
|
|
14044
11272
|
format: format4
|
|
14045
11273
|
}));
|
|
14046
11274
|
}
|
|
14047
|
-
InputSmart = /* @__PURE__ */
|
|
11275
|
+
InputSmart = /* @__PURE__ */ React6.forwardRef(InputSmart);
|
|
14048
11276
|
InputSmart.propTypes = {
|
|
14049
11277
|
/**
|
|
14050
11278
|
* The parsed phone number.
|
|
@@ -14099,8 +11327,8 @@ var InputSmart_default = createInput();
|
|
|
14099
11327
|
|
|
14100
11328
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InputBasic.js
|
|
14101
11329
|
init_process();
|
|
14102
|
-
var import_react9 = __toESM(require_react(), 1);
|
|
14103
11330
|
var import_prop_types3 = __toESM(require_prop_types(), 1);
|
|
11331
|
+
import React7, { useCallback as useCallback4 } from "react";
|
|
14104
11332
|
var _excluded3 = ["value", "onChange", "country", "international", "withCountryCallingCode", "metadata", "inputComponent"];
|
|
14105
11333
|
function _extends4() {
|
|
14106
11334
|
_extends4 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -14157,7 +11385,7 @@ function createInput2(defaultMetadata) {
|
|
|
14157
11385
|
withCountryCallingCode,
|
|
14158
11386
|
metadata: metadata2
|
|
14159
11387
|
});
|
|
14160
|
-
var _onChange = (
|
|
11388
|
+
var _onChange = useCallback4(function(event) {
|
|
14161
11389
|
var newValue = parseIncompletePhoneNumber(event.target.value);
|
|
14162
11390
|
if (newValue === value) {
|
|
14163
11391
|
var newValueFormatted = format2(prefix2, newValue, country, metadata2);
|
|
@@ -14167,13 +11395,13 @@ function createInput2(defaultMetadata) {
|
|
|
14167
11395
|
}
|
|
14168
11396
|
onChange2(newValue);
|
|
14169
11397
|
}, [prefix2, value, onChange2, country, metadata2]);
|
|
14170
|
-
return /* @__PURE__ */
|
|
11398
|
+
return /* @__PURE__ */ React7.createElement(Input2, _extends4({}, rest, {
|
|
14171
11399
|
ref,
|
|
14172
11400
|
value: format2(prefix2, value, country, metadata2),
|
|
14173
11401
|
onChange: _onChange
|
|
14174
11402
|
}));
|
|
14175
11403
|
}
|
|
14176
|
-
InputBasic = /* @__PURE__ */
|
|
11404
|
+
InputBasic = /* @__PURE__ */ React7.forwardRef(InputBasic);
|
|
14177
11405
|
InputBasic.propTypes = {
|
|
14178
11406
|
/**
|
|
14179
11407
|
* The parsed phone number.
|
|
@@ -14235,9 +11463,9 @@ function format2(prefix2, value, country, metadata2) {
|
|
|
14235
11463
|
|
|
14236
11464
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/CountrySelect.js
|
|
14237
11465
|
init_process();
|
|
14238
|
-
var import_react10 = __toESM(require_react(), 1);
|
|
14239
11466
|
var import_prop_types4 = __toESM(require_prop_types(), 1);
|
|
14240
11467
|
var import_classnames = __toESM(require_classnames(), 1);
|
|
11468
|
+
import React8, { useCallback as useCallback5, useMemo } from "react";
|
|
14241
11469
|
|
|
14242
11470
|
// node_modules/.pnpm/country-flag-icons@1.5.7/node_modules/country-flag-icons/unicode/index.js
|
|
14243
11471
|
init_process();
|
|
@@ -14339,19 +11567,19 @@ function _objectWithoutPropertiesLoose4(source, excluded) {
|
|
|
14339
11567
|
}
|
|
14340
11568
|
function CountrySelect(_ref) {
|
|
14341
11569
|
var value = _ref.value, onChange2 = _ref.onChange, options = _ref.options, rest = _objectWithoutProperties4(_ref, _excluded4);
|
|
14342
|
-
var onChange_ = (
|
|
11570
|
+
var onChange_ = useCallback5(function(event) {
|
|
14343
11571
|
var value2 = event.target.value;
|
|
14344
11572
|
onChange2(value2 === "ZZ" ? void 0 : value2);
|
|
14345
11573
|
}, [onChange2]);
|
|
14346
|
-
var selectedOption =
|
|
11574
|
+
var selectedOption = useMemo(function() {
|
|
14347
11575
|
return getSelectedOption(options, value);
|
|
14348
11576
|
}, [options, value]);
|
|
14349
|
-
return /* @__PURE__ */
|
|
11577
|
+
return /* @__PURE__ */ React8.createElement("select", _extends5({}, rest, {
|
|
14350
11578
|
value: value || "ZZ",
|
|
14351
11579
|
onChange: onChange_
|
|
14352
11580
|
}), options.map(function(_ref2) {
|
|
14353
11581
|
var value2 = _ref2.value, label = _ref2.label, divider = _ref2.divider;
|
|
14354
|
-
return /* @__PURE__ */
|
|
11582
|
+
return /* @__PURE__ */ React8.createElement("option", {
|
|
14355
11583
|
key: divider ? "|" : value2 || "ZZ",
|
|
14356
11584
|
value: divider ? "|" : value2 || "ZZ",
|
|
14357
11585
|
disabled: divider ? true : false,
|
|
@@ -14384,23 +11612,23 @@ var DIVIDER_STYLE = {
|
|
|
14384
11612
|
};
|
|
14385
11613
|
function CountrySelectWithIcon(_ref3) {
|
|
14386
11614
|
var value = _ref3.value, options = _ref3.options, className = _ref3.className, Icon3 = _ref3.iconComponent, getIconAspectRatio = _ref3.getIconAspectRatio, _ref3$arrowComponent = _ref3.arrowComponent, Arrow = _ref3$arrowComponent === void 0 ? DefaultArrowComponent : _ref3$arrowComponent, unicodeFlags = _ref3.unicodeFlags, rest = _objectWithoutProperties4(_ref3, _excluded22);
|
|
14387
|
-
var selectedOption =
|
|
11615
|
+
var selectedOption = useMemo(function() {
|
|
14388
11616
|
return getSelectedOption(options, value);
|
|
14389
11617
|
}, [options, value]);
|
|
14390
|
-
return /* @__PURE__ */
|
|
11618
|
+
return /* @__PURE__ */ React8.createElement("div", {
|
|
14391
11619
|
className: "PhoneInputCountry"
|
|
14392
|
-
}, /* @__PURE__ */
|
|
11620
|
+
}, /* @__PURE__ */ React8.createElement(CountrySelect, _extends5({}, rest, {
|
|
14393
11621
|
value,
|
|
14394
11622
|
options,
|
|
14395
11623
|
className: (0, import_classnames.default)("PhoneInputCountrySelect", className)
|
|
14396
|
-
})), unicodeFlags && value && /* @__PURE__ */
|
|
11624
|
+
})), unicodeFlags && value && /* @__PURE__ */ React8.createElement("div", {
|
|
14397
11625
|
className: "PhoneInputCountryIconUnicode"
|
|
14398
|
-
}, getCountryFlag(value)), !(unicodeFlags && value) && /* @__PURE__ */
|
|
11626
|
+
}, getCountryFlag(value)), !(unicodeFlags && value) && /* @__PURE__ */ React8.createElement(Icon3, {
|
|
14399
11627
|
"aria-hidden": true,
|
|
14400
11628
|
country: value,
|
|
14401
11629
|
label: selectedOption && selectedOption.label,
|
|
14402
11630
|
aspectRatio: unicodeFlags ? 1 : void 0
|
|
14403
|
-
}), /* @__PURE__ */
|
|
11631
|
+
}), /* @__PURE__ */ React8.createElement(Arrow, null));
|
|
14404
11632
|
}
|
|
14405
11633
|
CountrySelectWithIcon.propTypes = {
|
|
14406
11634
|
// Country flag component.
|
|
@@ -14411,7 +11639,7 @@ CountrySelectWithIcon.propTypes = {
|
|
|
14411
11639
|
unicodeFlags: import_prop_types4.default.bool
|
|
14412
11640
|
};
|
|
14413
11641
|
function DefaultArrowComponent() {
|
|
14414
|
-
return /* @__PURE__ */
|
|
11642
|
+
return /* @__PURE__ */ React8.createElement("div", {
|
|
14415
11643
|
className: "PhoneInputCountrySelectArrow"
|
|
14416
11644
|
});
|
|
14417
11645
|
}
|
|
@@ -14426,9 +11654,9 @@ function getSelectedOption(options, value) {
|
|
|
14426
11654
|
|
|
14427
11655
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/Flag.js
|
|
14428
11656
|
init_process();
|
|
14429
|
-
var import_react11 = __toESM(require_react(), 1);
|
|
14430
11657
|
var import_prop_types5 = __toESM(require_prop_types(), 1);
|
|
14431
11658
|
var import_classnames2 = __toESM(require_classnames(), 1);
|
|
11659
|
+
import React9 from "react";
|
|
14432
11660
|
var _excluded5 = ["country", "countryName", "flags", "flagUrl"];
|
|
14433
11661
|
function _extends6() {
|
|
14434
11662
|
_extends6 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -14483,7 +11711,7 @@ function FlagComponent(_ref) {
|
|
|
14483
11711
|
title: countryName
|
|
14484
11712
|
});
|
|
14485
11713
|
}
|
|
14486
|
-
return /* @__PURE__ */
|
|
11714
|
+
return /* @__PURE__ */ React9.createElement("img", _extends6({}, rest, {
|
|
14487
11715
|
alt: countryName,
|
|
14488
11716
|
role: countryName ? void 0 : "presentation",
|
|
14489
11717
|
src: flagUrl.replace("{XX}", country).replace("{xx}", country.toLowerCase())
|
|
@@ -14510,8 +11738,8 @@ FlagComponent.propTypes = {
|
|
|
14510
11738
|
|
|
14511
11739
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/InternationalIcon.js
|
|
14512
11740
|
init_process();
|
|
14513
|
-
var import_react12 = __toESM(require_react(), 1);
|
|
14514
11741
|
var import_prop_types6 = __toESM(require_prop_types(), 1);
|
|
11742
|
+
import React10 from "react";
|
|
14515
11743
|
var _excluded6 = ["aspectRatio"];
|
|
14516
11744
|
var _excluded23 = ["title"];
|
|
14517
11745
|
var _excluded32 = ["title"];
|
|
@@ -14564,9 +11792,9 @@ function _objectWithoutPropertiesLoose6(source, excluded) {
|
|
|
14564
11792
|
function InternationalIcon(_ref) {
|
|
14565
11793
|
var aspectRatio = _ref.aspectRatio, rest = _objectWithoutProperties6(_ref, _excluded6);
|
|
14566
11794
|
if (aspectRatio === 1) {
|
|
14567
|
-
return /* @__PURE__ */
|
|
11795
|
+
return /* @__PURE__ */ React10.createElement(InternationalIcon1x1, rest);
|
|
14568
11796
|
} else {
|
|
14569
|
-
return /* @__PURE__ */
|
|
11797
|
+
return /* @__PURE__ */ React10.createElement(InternationalIcon3x2, rest);
|
|
14570
11798
|
}
|
|
14571
11799
|
}
|
|
14572
11800
|
InternationalIcon.propTypes = {
|
|
@@ -14575,37 +11803,37 @@ InternationalIcon.propTypes = {
|
|
|
14575
11803
|
};
|
|
14576
11804
|
function InternationalIcon3x2(_ref2) {
|
|
14577
11805
|
var title3 = _ref2.title, rest = _objectWithoutProperties6(_ref2, _excluded23);
|
|
14578
|
-
return /* @__PURE__ */
|
|
11806
|
+
return /* @__PURE__ */ React10.createElement("svg", _extends7({}, rest, {
|
|
14579
11807
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14580
11808
|
viewBox: "0 0 75 50"
|
|
14581
|
-
}), /* @__PURE__ */
|
|
11809
|
+
}), /* @__PURE__ */ React10.createElement("title", null, title3), /* @__PURE__ */ React10.createElement("g", {
|
|
14582
11810
|
className: "PhoneInputInternationalIconGlobe",
|
|
14583
11811
|
stroke: "currentColor",
|
|
14584
11812
|
fill: "none",
|
|
14585
11813
|
strokeWidth: "2",
|
|
14586
11814
|
strokeMiterlimit: "10"
|
|
14587
|
-
}, /* @__PURE__ */
|
|
11815
|
+
}, /* @__PURE__ */ React10.createElement("path", {
|
|
14588
11816
|
strokeLinecap: "round",
|
|
14589
11817
|
d: "M47.2,36.1C48.1,36,49,36,50,36c7.4,0,14,1.7,18.5,4.3"
|
|
14590
|
-
}), /* @__PURE__ */
|
|
11818
|
+
}), /* @__PURE__ */ React10.createElement("path", {
|
|
14591
11819
|
d: "M68.6,9.6C64.2,12.3,57.5,14,50,14c-7.4,0-14-1.7-18.5-4.3"
|
|
14592
|
-
}), /* @__PURE__ */
|
|
11820
|
+
}), /* @__PURE__ */ React10.createElement("line", {
|
|
14593
11821
|
x1: "26",
|
|
14594
11822
|
y1: "25",
|
|
14595
11823
|
x2: "74",
|
|
14596
11824
|
y2: "25"
|
|
14597
|
-
}), /* @__PURE__ */
|
|
11825
|
+
}), /* @__PURE__ */ React10.createElement("line", {
|
|
14598
11826
|
x1: "50",
|
|
14599
11827
|
y1: "1",
|
|
14600
11828
|
x2: "50",
|
|
14601
11829
|
y2: "49"
|
|
14602
|
-
}), /* @__PURE__ */
|
|
11830
|
+
}), /* @__PURE__ */ React10.createElement("path", {
|
|
14603
11831
|
strokeLinecap: "round",
|
|
14604
11832
|
d: "M46.3,48.7c1.2,0.2,2.5,0.3,3.7,0.3c13.3,0,24-10.7,24-24S63.3,1,50,1S26,11.7,26,25c0,2,0.3,3.9,0.7,5.8"
|
|
14605
|
-
}), /* @__PURE__ */
|
|
11833
|
+
}), /* @__PURE__ */ React10.createElement("path", {
|
|
14606
11834
|
strokeLinecap: "round",
|
|
14607
11835
|
d: "M46.8,48.2c1,0.6,2.1,0.8,3.2,0.8c6.6,0,12-10.7,12-24S56.6,1,50,1S38,11.7,38,25c0,1.4,0.1,2.7,0.2,4c0,0.1,0,0.2,0,0.2"
|
|
14608
|
-
})), /* @__PURE__ */
|
|
11836
|
+
})), /* @__PURE__ */ React10.createElement("path", {
|
|
14609
11837
|
className: "PhoneInputInternationalIconPhone",
|
|
14610
11838
|
stroke: "none",
|
|
14611
11839
|
fill: "currentColor",
|
|
@@ -14617,34 +11845,34 @@ InternationalIcon3x2.propTypes = {
|
|
|
14617
11845
|
};
|
|
14618
11846
|
function InternationalIcon1x1(_ref3) {
|
|
14619
11847
|
var title3 = _ref3.title, rest = _objectWithoutProperties6(_ref3, _excluded32);
|
|
14620
|
-
return /* @__PURE__ */
|
|
11848
|
+
return /* @__PURE__ */ React10.createElement("svg", _extends7({}, rest, {
|
|
14621
11849
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14622
11850
|
viewBox: "0 0 50 50"
|
|
14623
|
-
}), /* @__PURE__ */
|
|
11851
|
+
}), /* @__PURE__ */ React10.createElement("title", null, title3), /* @__PURE__ */ React10.createElement("g", {
|
|
14624
11852
|
className: "PhoneInputInternationalIconGlobe",
|
|
14625
11853
|
stroke: "currentColor",
|
|
14626
11854
|
fill: "none",
|
|
14627
11855
|
strokeWidth: "2",
|
|
14628
11856
|
strokeLinecap: "round"
|
|
14629
|
-
}, /* @__PURE__ */
|
|
11857
|
+
}, /* @__PURE__ */ React10.createElement("path", {
|
|
14630
11858
|
d: "M8.45,13A21.44,21.44,0,1,1,37.08,41.56"
|
|
14631
|
-
}), /* @__PURE__ */
|
|
11859
|
+
}), /* @__PURE__ */ React10.createElement("path", {
|
|
14632
11860
|
d: "M19.36,35.47a36.9,36.9,0,0,1-2.28-13.24C17.08,10.39,21.88.85,27.8.85s10.72,9.54,10.72,21.38c0,6.48-1.44,12.28-3.71,16.21"
|
|
14633
|
-
}), /* @__PURE__ */
|
|
11861
|
+
}), /* @__PURE__ */ React10.createElement("path", {
|
|
14634
11862
|
d: "M17.41,33.4A39,39,0,0,1,27.8,32.06c6.62,0,12.55,1.5,16.48,3.86"
|
|
14635
|
-
}), /* @__PURE__ */
|
|
11863
|
+
}), /* @__PURE__ */ React10.createElement("path", {
|
|
14636
11864
|
d: "M44.29,8.53c-3.93,2.37-9.86,3.88-16.49,3.88S15.25,10.9,11.31,8.54"
|
|
14637
|
-
}), /* @__PURE__ */
|
|
11865
|
+
}), /* @__PURE__ */ React10.createElement("line", {
|
|
14638
11866
|
x1: "27.8",
|
|
14639
11867
|
y1: "0.85",
|
|
14640
11868
|
x2: "27.8",
|
|
14641
11869
|
y2: "34.61"
|
|
14642
|
-
}), /* @__PURE__ */
|
|
11870
|
+
}), /* @__PURE__ */ React10.createElement("line", {
|
|
14643
11871
|
x1: "15.2",
|
|
14644
11872
|
y1: "22.23",
|
|
14645
11873
|
x2: "49.15",
|
|
14646
11874
|
y2: "22.23"
|
|
14647
|
-
})), /* @__PURE__ */
|
|
11875
|
+
})), /* @__PURE__ */ React10.createElement("path", {
|
|
14648
11876
|
className: "PhoneInputInternationalIconPhone",
|
|
14649
11877
|
stroke: "transparent",
|
|
14650
11878
|
fill: "currentColor",
|
|
@@ -14768,9 +11996,9 @@ function getSupportedCountries(countries, metadata2) {
|
|
|
14768
11996
|
|
|
14769
11997
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/CountryIcon.js
|
|
14770
11998
|
init_process();
|
|
14771
|
-
var import_react13 = __toESM(require_react(), 1);
|
|
14772
11999
|
var import_prop_types7 = __toESM(require_prop_types(), 1);
|
|
14773
12000
|
var import_classnames3 = __toESM(require_classnames(), 1);
|
|
12001
|
+
import React11 from "react";
|
|
14774
12002
|
var _excluded7 = ["country", "label", "aspectRatio"];
|
|
14775
12003
|
function _extends8() {
|
|
14776
12004
|
_extends8 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -14823,18 +12051,18 @@ function createCountryIconComponent(_ref) {
|
|
|
14823
12051
|
function CountryIcon(_ref2) {
|
|
14824
12052
|
var country = _ref2.country, label = _ref2.label, aspectRatio = _ref2.aspectRatio, rest = _objectWithoutProperties7(_ref2, _excluded7);
|
|
14825
12053
|
var _aspectRatio = InternationalIcon2 === InternationalIcon ? aspectRatio : void 0;
|
|
14826
|
-
return /* @__PURE__ */
|
|
12054
|
+
return /* @__PURE__ */ React11.createElement("div", _extends8({}, rest, {
|
|
14827
12055
|
className: (0, import_classnames3.default)("PhoneInputCountryIcon", {
|
|
14828
12056
|
"PhoneInputCountryIcon--square": _aspectRatio === 1,
|
|
14829
12057
|
"PhoneInputCountryIcon--border": country
|
|
14830
12058
|
})
|
|
14831
|
-
}), country ? /* @__PURE__ */
|
|
12059
|
+
}), country ? /* @__PURE__ */ React11.createElement(FlagComponent2, {
|
|
14832
12060
|
country,
|
|
14833
12061
|
countryName: label,
|
|
14834
12062
|
flags,
|
|
14835
12063
|
flagUrl,
|
|
14836
12064
|
className: "PhoneInputCountryIconImg"
|
|
14837
|
-
}) : /* @__PURE__ */
|
|
12065
|
+
}) : /* @__PURE__ */ React11.createElement(InternationalIcon2, {
|
|
14838
12066
|
title: label,
|
|
14839
12067
|
aspectRatio: _aspectRatio,
|
|
14840
12068
|
className: "PhoneInputCountryIconImg"
|
|
@@ -15603,7 +12831,7 @@ var PhoneNumberInput_ = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
15603
12831
|
}
|
|
15604
12832
|
}
|
|
15605
12833
|
});
|
|
15606
|
-
_this.inputRef = /* @__PURE__ */
|
|
12834
|
+
_this.inputRef = /* @__PURE__ */ React12.createRef();
|
|
15607
12835
|
var _this$props3 = _this.props, _value = _this$props3.value, labels2 = _this$props3.labels, _international = _this$props3.international, _addInternationalOption = _this$props3.addInternationalOption, displayInitialValueAsLocalNumber = _this$props3.displayInitialValueAsLocalNumber, initialValueFormat = _this$props3.initialValueFormat, _metadata = _this$props3.metadata;
|
|
15608
12836
|
var _this$props4 = _this.props, _defaultCountry = _this$props4.defaultCountry, _countries = _this$props4.countries;
|
|
15609
12837
|
if (_defaultCountry) {
|
|
@@ -15737,14 +12965,14 @@ var PhoneNumberInput_ = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
15737
12965
|
var countrySelectOptions = this.getCountrySelectOptions({
|
|
15738
12966
|
countries
|
|
15739
12967
|
});
|
|
15740
|
-
return /* @__PURE__ */
|
|
12968
|
+
return /* @__PURE__ */ React12.createElement(ContainerComponent, {
|
|
15741
12969
|
style,
|
|
15742
12970
|
className: (0, import_classnames4.default)(className, "PhoneInput", {
|
|
15743
12971
|
"PhoneInput--focus": isFocused,
|
|
15744
12972
|
"PhoneInput--disabled": disabled,
|
|
15745
12973
|
"PhoneInput--readOnly": readOnly
|
|
15746
12974
|
})
|
|
15747
|
-
}, /* @__PURE__ */
|
|
12975
|
+
}, /* @__PURE__ */ React12.createElement(CountrySelectComponent, _extends9({
|
|
15748
12976
|
name: name ? "".concat(name, "Country") : void 0,
|
|
15749
12977
|
"aria-label": labels2.country
|
|
15750
12978
|
}, countrySelectProps, {
|
|
@@ -15756,7 +12984,7 @@ var PhoneNumberInput_ = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
15756
12984
|
disabled: disabled || countrySelectProps && countrySelectProps.disabled,
|
|
15757
12985
|
readOnly: readOnly || countrySelectProps && countrySelectProps.readOnly,
|
|
15758
12986
|
iconComponent: this.CountryIcon
|
|
15759
|
-
})), /* @__PURE__ */
|
|
12987
|
+
})), /* @__PURE__ */ React12.createElement(InputComponent, _extends9({
|
|
15760
12988
|
ref: this.setInputRef,
|
|
15761
12989
|
type: "tel",
|
|
15762
12990
|
autoComplete
|
|
@@ -15791,9 +13019,9 @@ var PhoneNumberInput_ = /* @__PURE__ */ function(_React$PureComponent) {
|
|
|
15791
13019
|
)
|
|
15792
13020
|
}]);
|
|
15793
13021
|
return PhoneNumberInput_2;
|
|
15794
|
-
}(
|
|
15795
|
-
var PhoneNumberInput = /* @__PURE__ */
|
|
15796
|
-
return /* @__PURE__ */
|
|
13022
|
+
}(React12.PureComponent);
|
|
13023
|
+
var PhoneNumberInput = /* @__PURE__ */ React12.forwardRef(function(props, ref) {
|
|
13024
|
+
return /* @__PURE__ */ React12.createElement(PhoneNumberInput_, _extends9({}, withDefaultProps(props), {
|
|
15797
13025
|
inputRef: ref
|
|
15798
13026
|
}));
|
|
15799
13027
|
});
|
|
@@ -16263,7 +13491,7 @@ function formatPhoneNumberIntl(value, metadata2) {
|
|
|
16263
13491
|
|
|
16264
13492
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/modules/PhoneInputWithCountryDefault.js
|
|
16265
13493
|
init_process();
|
|
16266
|
-
|
|
13494
|
+
import React13 from "react";
|
|
16267
13495
|
|
|
16268
13496
|
// node_modules/.pnpm/react-phone-number-input@3.3.6_react-dom@18.2.0_react@18.2.0/node_modules/react-phone-number-input/locale/en.json.js
|
|
16269
13497
|
init_process();
|
|
@@ -16577,9 +13805,9 @@ function _objectWithoutPropertiesLoose9(source, excluded) {
|
|
|
16577
13805
|
return target;
|
|
16578
13806
|
}
|
|
16579
13807
|
function createPhoneInput(defaultMetadata) {
|
|
16580
|
-
var PhoneInputDefault = /* @__PURE__ */
|
|
13808
|
+
var PhoneInputDefault = /* @__PURE__ */ React13.forwardRef(function(_ref, ref) {
|
|
16581
13809
|
var _ref$metadata = _ref.metadata, metadata2 = _ref$metadata === void 0 ? defaultMetadata : _ref$metadata, _ref$labels = _ref.labels, labels2 = _ref$labels === void 0 ? en_json_default : _ref$labels, rest = _objectWithoutProperties9(_ref, _excluded9);
|
|
16582
|
-
return /* @__PURE__ */
|
|
13810
|
+
return /* @__PURE__ */ React13.createElement(PhoneInputWithCountry_default, _extends10({}, rest, {
|
|
16583
13811
|
ref,
|
|
16584
13812
|
metadata: metadata2,
|
|
16585
13813
|
labels: labels2
|
|
@@ -21068,17 +18296,17 @@ var login = async (host, phone, code) => {
|
|
|
21068
18296
|
|
|
21069
18297
|
// packages/react-ui/src/lib/gamification/vote/components/voting-header/components/timer/index.tsx
|
|
21070
18298
|
init_process();
|
|
21071
|
-
|
|
18299
|
+
import { useEffect } from "react";
|
|
21072
18300
|
|
|
21073
18301
|
// node_modules/.pnpm/react-countdown-circle-timer@3.2.1_react@18.2.0/node_modules/react-countdown-circle-timer/lib/index.module.js
|
|
21074
18302
|
init_process();
|
|
21075
|
-
|
|
21076
|
-
|
|
21077
|
-
|
|
21078
|
-
|
|
21079
|
-
var G = typeof window == "undefined" ?
|
|
18303
|
+
import x from "react";
|
|
18304
|
+
import { useRef as U } from "react";
|
|
18305
|
+
import { useState as E, useRef as b, useCallback as q } from "react";
|
|
18306
|
+
import { useEffect as M, useLayoutEffect as L } from "react";
|
|
18307
|
+
var G = typeof window == "undefined" ? M : L;
|
|
21080
18308
|
var I = ({ isPlaying: o, duration: e, startAt: n = 0, updateInterval: t = 0, onComplete: s, onUpdate: r }) => {
|
|
21081
|
-
let [i, c] = (
|
|
18309
|
+
let [i, c] = E(n), m = b(0), p = b(n), f = b(n * -1e3), u = b(null), a = b(null), h = b(null), w = (g) => {
|
|
21082
18310
|
let l = g / 1e3;
|
|
21083
18311
|
if (a.current === null) {
|
|
21084
18312
|
a.current = l, u.current = requestAnimationFrame(w);
|
|
@@ -21090,7 +18318,7 @@ var I = ({ isPlaying: o, duration: e, startAt: n = 0, updateInterval: t = 0, onC
|
|
|
21090
18318
|
c(v ? e : k), v || (u.current = requestAnimationFrame(w));
|
|
21091
18319
|
}, $ = () => {
|
|
21092
18320
|
u.current && cancelAnimationFrame(u.current), h.current && clearTimeout(h.current), a.current = null;
|
|
21093
|
-
}, y = (
|
|
18321
|
+
}, y = q((g) => {
|
|
21094
18322
|
$(), m.current = 0;
|
|
21095
18323
|
let l = typeof g == "number" ? g : n;
|
|
21096
18324
|
p.current = l, c(l), o && (u.current = requestAnimationFrame(w));
|
|
@@ -21134,7 +18362,7 @@ var j = (o, e) => {
|
|
|
21134
18362
|
return `rgb(${m.map((a, h) => F(i, a, p[h] - a, c, f) | 0).join(",")})`;
|
|
21135
18363
|
};
|
|
21136
18364
|
var S = (o) => {
|
|
21137
|
-
let { duration: e, initialRemainingTime: n, updateInterval: t, size: s = 180, strokeWidth: r = 12, trailStrokeWidth: i, isPlaying: c = false, isGrowing: m = false, rotation: p = "clockwise", onComplete: f, onUpdate: u } = o, a = (
|
|
18365
|
+
let { duration: e, initialRemainingTime: n, updateInterval: t, size: s = 180, strokeWidth: r = 12, trailStrokeWidth: i, isPlaying: c = false, isGrowing: m = false, rotation: p = "clockwise", onComplete: f, onUpdate: u } = o, a = U(), h = Math.max(r, i != null ? i : 0), { path: w, pathLength: $ } = A(s, h, p), { elapsedTime: y } = I({ isPlaying: c, duration: e, startAt: T(e, n), updateInterval: t, onUpdate: typeof u == "function" ? (l) => {
|
|
21138
18366
|
let d = Math.ceil(e - l);
|
|
21139
18367
|
d !== a.current && (a.current = d, u(d));
|
|
21140
18368
|
} : void 0, onComplete: typeof f == "function" ? (l) => {
|
|
@@ -21147,7 +18375,7 @@ var S = (o) => {
|
|
|
21147
18375
|
};
|
|
21148
18376
|
var D = (o) => {
|
|
21149
18377
|
let { children: e, strokeLinecap: n, trailColor: t, trailStrokeWidth: s } = o, { path: r, pathLength: i, stroke: c, strokeDashoffset: m, remainingTime: p, elapsedTime: f, size: u, strokeWidth: a } = S(o);
|
|
21150
|
-
return
|
|
18378
|
+
return x.createElement("div", { style: B(u) }, x.createElement("svg", { viewBox: `0 0 ${u} ${u}`, width: u, height: u, xmlns: "http://www.w3.org/2000/svg" }, x.createElement("path", { d: r, fill: "none", stroke: t != null ? t : "#d9d9d9", strokeWidth: s != null ? s : a }), x.createElement("path", { d: r, fill: "none", stroke: c, strokeLinecap: n != null ? n : "round", strokeWidth: a, strokeDasharray: i, strokeDashoffset: m })), typeof e == "function" && x.createElement("div", { style: P }, e({ remainingTime: p, elapsedTime: f, color: c })));
|
|
21151
18379
|
};
|
|
21152
18380
|
D.displayName = "CountdownCircleTimer";
|
|
21153
18381
|
|
|
@@ -21204,7 +18432,7 @@ var STROKE_WIDTH = 4;
|
|
|
21204
18432
|
var TRAIL_STROKE_WIDTH = 0;
|
|
21205
18433
|
var Timer = ({ isPlaying = true, duration = DEFAULT_DURATION, setTimeToExpire }) => {
|
|
21206
18434
|
const renderTime = ({ remainingTime }) => /* @__PURE__ */ jsx2(RemainingTime, { remainingTime, children: remainingTime });
|
|
21207
|
-
|
|
18435
|
+
useEffect(() => {
|
|
21208
18436
|
setTimeToExpire(false);
|
|
21209
18437
|
}, [setTimeToExpire]);
|
|
21210
18438
|
return /* @__PURE__ */ jsx2(
|
|
@@ -21293,9 +18521,9 @@ var Digits = newStyled.div`
|
|
|
21293
18521
|
|
|
21294
18522
|
// packages/react-ui/src/lib/gamification/login/index.tsx
|
|
21295
18523
|
var Login = ({ login: login2, anonymousLogin, host }) => {
|
|
21296
|
-
const [phoneInput, setPhoneInput] =
|
|
21297
|
-
const [phone, setPhone] =
|
|
21298
|
-
const [code, setCode] =
|
|
18524
|
+
const [phoneInput, setPhoneInput] = useState("");
|
|
18525
|
+
const [phone, setPhone] = useState("");
|
|
18526
|
+
const [code, setCode] = useState("");
|
|
21299
18527
|
const digits = (0, import_react_digit_input.default)({
|
|
21300
18528
|
acceptedCharacters: /^[0-9]$/,
|
|
21301
18529
|
length: 4,
|
|
@@ -25342,7 +22570,7 @@ var UserStatistics = ({
|
|
|
25342
22570
|
|
|
25343
22571
|
// packages/react-ui/src/lib/gamification/vote/index.tsx
|
|
25344
22572
|
init_process();
|
|
25345
|
-
|
|
22573
|
+
import { useState as useState2, useEffect as useEffect2, useCallback as useCallback6 } from "react";
|
|
25346
22574
|
|
|
25347
22575
|
// packages/react-ui/src/assets/icons/icon-check.svg
|
|
25348
22576
|
var icon_check_default = 'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g id="Checkmark">%0A<path id="Selected" fill-rule="evenodd" clip-rule="evenodd" d="M24 12.002C24 18.6294 18.6274 24.002 12 24.002C5.37258 24.002 0 18.6294 0 12.002C0 5.37454 5.37258 0.00195312 12 0.00195312C18.6274 0.00195312 24 5.37454 24 12.002ZM17.4086 8.15357C16.94 7.68494 16.1802 7.68494 15.7116 8.15357L10.4072 14.9579L7.62573 13.1036C7.07429 12.736 6.32925 12.885 5.96163 13.4365C5.59401 13.9879 5.74301 14.7329 6.29445 15.1006L9.89445 17.5006C10.3704 17.8179 11.0041 17.7551 11.4086 17.3506L17.4086 9.85063C17.8772 9.382 17.8772 8.6222 17.4086 8.15357Z" fill="%2300BD60"/>%0A</g>%0A</svg>%0A';
|
|
@@ -25571,14 +22799,14 @@ var Vote = ({
|
|
|
25571
22799
|
questionAnsweredCorrectly,
|
|
25572
22800
|
questionType
|
|
25573
22801
|
}) => {
|
|
25574
|
-
const [isLoadingSubmitAnswer, setIsLoadingSubmitAnswer] = (
|
|
25575
|
-
const toggleIsLoadingSubmitAnswer = (
|
|
22802
|
+
const [isLoadingSubmitAnswer, setIsLoadingSubmitAnswer] = useState2(false);
|
|
22803
|
+
const toggleIsLoadingSubmitAnswer = useCallback6(
|
|
25576
22804
|
(flag) => {
|
|
25577
22805
|
setIsLoadingSubmitAnswer(flag);
|
|
25578
22806
|
},
|
|
25579
22807
|
[setIsLoadingSubmitAnswer]
|
|
25580
22808
|
);
|
|
25581
|
-
(
|
|
22809
|
+
useEffect2(() => {
|
|
25582
22810
|
toggleIsLoadingSubmitAnswer(false);
|
|
25583
22811
|
}, [options, toggleIsLoadingSubmitAnswer]);
|
|
25584
22812
|
return /* @__PURE__ */ jsxs2(Container8, { children: [
|
|
@@ -25975,14 +23203,14 @@ var map = (value = {}) => {
|
|
|
25975
23203
|
};
|
|
25976
23204
|
|
|
25977
23205
|
// node_modules/.pnpm/@nanostores+react@0.7.1_nanostores@0.9.4_react@18.2.0/node_modules/@nanostores/react/index.js
|
|
25978
|
-
|
|
23206
|
+
import { useCallback as useCallback7, useSyncExternalStore } from "react";
|
|
25979
23207
|
function useStore(store2, opts = {}) {
|
|
25980
|
-
let subscribe2 = (
|
|
23208
|
+
let subscribe2 = useCallback7(
|
|
25981
23209
|
(onChange2) => opts.keys ? listenKeys(store2, opts.keys, onChange2) : store2.listen(onChange2),
|
|
25982
23210
|
[opts.keys, store2]
|
|
25983
23211
|
);
|
|
25984
23212
|
let get = store2.get.bind(store2);
|
|
25985
|
-
return
|
|
23213
|
+
return useSyncExternalStore(subscribe2, get, get);
|
|
25986
23214
|
}
|
|
25987
23215
|
|
|
25988
23216
|
// packages/react-ui/src/lib/demo/Gamification.tsx
|
|
@@ -26027,7 +23255,7 @@ var QuestionsList = ({ store: store2, openQuestion }) => {
|
|
|
26027
23255
|
|
|
26028
23256
|
// packages/react-ui/src/lib/demo/components/Question.tsx
|
|
26029
23257
|
init_process();
|
|
26030
|
-
|
|
23258
|
+
import { useState as useState3, useCallback as useCallback8, useMemo as useMemo2 } from "react";
|
|
26031
23259
|
|
|
26032
23260
|
// packages/react-ui/src/lib/gamification/vote/components/voting-header/index.tsx
|
|
26033
23261
|
init_process();
|
|
@@ -26205,18 +23433,18 @@ var QuestionContainer = newStyled.div`
|
|
|
26205
23433
|
`;
|
|
26206
23434
|
var Question3 = ({ store: store2, closeQuestion, vote }) => {
|
|
26207
23435
|
const { data: openedQuestion } = useStore(store2);
|
|
26208
|
-
const [answerTimeExpired, setAnswerTimeExpired] = (
|
|
26209
|
-
const setTimeToExpire = (
|
|
23436
|
+
const [answerTimeExpired, setAnswerTimeExpired] = useState3(false);
|
|
23437
|
+
const setTimeToExpire = useCallback8(
|
|
26210
23438
|
(flag) => {
|
|
26211
23439
|
setAnswerTimeExpired(flag);
|
|
26212
23440
|
},
|
|
26213
23441
|
[setAnswerTimeExpired]
|
|
26214
23442
|
);
|
|
26215
|
-
const questionAnswered = (
|
|
23443
|
+
const questionAnswered = useMemo2(
|
|
26216
23444
|
() => openedQuestion?.answers.find((answer) => answer.youVoted === true),
|
|
26217
23445
|
[openedQuestion]
|
|
26218
23446
|
);
|
|
26219
|
-
const hasCorrectAnswer = (
|
|
23447
|
+
const hasCorrectAnswer = useMemo2(
|
|
26220
23448
|
() => !!openedQuestion?.answers.find((answer) => answer.correct === true),
|
|
26221
23449
|
[openedQuestion]
|
|
26222
23450
|
);
|
|
@@ -26265,12 +23493,12 @@ var Question3 = ({ store: store2, closeQuestion, vote }) => {
|
|
|
26265
23493
|
|
|
26266
23494
|
// packages/react-ui/src/lib/demo/components/Notifications.tsx
|
|
26267
23495
|
init_process();
|
|
26268
|
-
|
|
23496
|
+
import { useEffect as useEffect3, useRef as useRef3, useState as useState4 } from "react";
|
|
26269
23497
|
var Notifications = ({ notificationsStore, openQuestion }) => {
|
|
26270
|
-
const timeout = (
|
|
26271
|
-
const [lastNotification, setLastNotification] = (
|
|
23498
|
+
const timeout = useRef3();
|
|
23499
|
+
const [lastNotification, setLastNotification] = useState4();
|
|
26272
23500
|
const notifications2 = useStore(notificationsStore);
|
|
26273
|
-
(
|
|
23501
|
+
useEffect3(() => {
|
|
26274
23502
|
if (notifications2) {
|
|
26275
23503
|
setLastNotification(notifications2[notifications2.length - 1]?.data);
|
|
26276
23504
|
timeout.current = setTimeout(() => {
|
|
@@ -26404,7 +23632,7 @@ init_process();
|
|
|
26404
23632
|
var StreamLayerThemeProvider = ({ children }) => /* @__PURE__ */ jsx2(ThemeProvider, { theme, children });
|
|
26405
23633
|
|
|
26406
23634
|
// packages/react/src/app/provider.tsx
|
|
26407
|
-
|
|
23635
|
+
import { createContext as createContext2, useMemo as useMemo3 } from "react";
|
|
26408
23636
|
|
|
26409
23637
|
// packages/react/src/app/useStreamLayerApp.ts
|
|
26410
23638
|
init_process();
|
|
@@ -33392,11 +30620,11 @@ function StreamLayer(sdkKey, production = true) {
|
|
|
33392
30620
|
}
|
|
33393
30621
|
|
|
33394
30622
|
// packages/react/src/app/useStreamLayerApp.ts
|
|
33395
|
-
|
|
30623
|
+
import { useState as useState5, useEffect as useEffect4 } from "react";
|
|
33396
30624
|
window.instance = null;
|
|
33397
30625
|
var useStreamLayerApp = (sdkKey, plugins, production) => {
|
|
33398
|
-
const [sdk, setSdk] = (
|
|
33399
|
-
(
|
|
30626
|
+
const [sdk, setSdk] = useState5(null);
|
|
30627
|
+
useEffect4(() => {
|
|
33400
30628
|
let ignore = false;
|
|
33401
30629
|
if (!sdkKey) {
|
|
33402
30630
|
throw new Error("sdk key should be provided");
|
|
@@ -33425,7 +30653,7 @@ var useStreamLayerApp = (sdkKey, plugins, production) => {
|
|
|
33425
30653
|
};
|
|
33426
30654
|
|
|
33427
30655
|
// packages/react/src/app/provider.tsx
|
|
33428
|
-
var StreamLayerContext3 = (
|
|
30656
|
+
var StreamLayerContext3 = createContext2({
|
|
33429
30657
|
status: 0 /* UNSET */
|
|
33430
30658
|
});
|
|
33431
30659
|
if (true) {
|
|
@@ -33438,7 +30666,7 @@ var StreamLayerProvider = ({
|
|
|
33438
30666
|
production = true
|
|
33439
30667
|
}) => {
|
|
33440
30668
|
const streamLayer = useStreamLayerApp(sdkKey, plugins, production);
|
|
33441
|
-
const value = (
|
|
30669
|
+
const value = useMemo3(() => {
|
|
33442
30670
|
if (!streamLayer) {
|
|
33443
30671
|
return { status: 1 /* CONNECTED */ };
|
|
33444
30672
|
}
|
|
@@ -33449,13 +30677,13 @@ var StreamLayerProvider = ({
|
|
|
33449
30677
|
|
|
33450
30678
|
// packages/react/src/app/app.tsx
|
|
33451
30679
|
init_process();
|
|
33452
|
-
|
|
30680
|
+
import { useContext as useContext5 } from "react";
|
|
33453
30681
|
var useStreamLayer = () => {
|
|
33454
|
-
const { sdk } = (
|
|
30682
|
+
const { sdk } = useContext5(StreamLayerContext3);
|
|
33455
30683
|
return sdk;
|
|
33456
30684
|
};
|
|
33457
30685
|
var StreamLayerSDKReact = () => {
|
|
33458
|
-
const { sdk, status } = (
|
|
30686
|
+
const { sdk, status } = useContext5(StreamLayerContext3);
|
|
33459
30687
|
if (status === 0 /* UNSET */) {
|
|
33460
30688
|
throw new Error("Wrap app in `StreamLayerProvider`");
|
|
33461
30689
|
}
|
|
@@ -33475,17 +30703,6 @@ export {
|
|
|
33475
30703
|
};
|
|
33476
30704
|
/*! Bundled license information:
|
|
33477
30705
|
|
|
33478
|
-
react/cjs/react.development.js:
|
|
33479
|
-
(**
|
|
33480
|
-
* @license React
|
|
33481
|
-
* react.development.js
|
|
33482
|
-
*
|
|
33483
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33484
|
-
*
|
|
33485
|
-
* This source code is licensed under the MIT license found in the
|
|
33486
|
-
* LICENSE file in the root directory of this source tree.
|
|
33487
|
-
*)
|
|
33488
|
-
|
|
33489
30706
|
react-is/cjs/react-is.development.js:
|
|
33490
30707
|
(** @license React v16.13.1
|
|
33491
30708
|
* react-is.development.js
|
|
@@ -33496,17 +30713,6 @@ react-is/cjs/react-is.development.js:
|
|
|
33496
30713
|
* LICENSE file in the root directory of this source tree.
|
|
33497
30714
|
*)
|
|
33498
30715
|
|
|
33499
|
-
react/cjs/react-jsx-runtime.development.js:
|
|
33500
|
-
(**
|
|
33501
|
-
* @license React
|
|
33502
|
-
* react-jsx-runtime.development.js
|
|
33503
|
-
*
|
|
33504
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
33505
|
-
*
|
|
33506
|
-
* This source code is licensed under the MIT license found in the
|
|
33507
|
-
* LICENSE file in the root directory of this source tree.
|
|
33508
|
-
*)
|
|
33509
|
-
|
|
33510
30716
|
object-assign/index.js:
|
|
33511
30717
|
(*
|
|
33512
30718
|
object-assign
|