@vxrn/vendor 1.1.345 → 1.1.347
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/package.json +2 -1
- package/react/cjs/react-compiler-runtime.development.js +1 -18
- package/react/cjs/react-jsx-dev-runtime.development.js +127 -144
- package/react/cjs/react-jsx-dev-runtime.react-server.development.js +128 -145
- package/react/cjs/react-jsx-runtime.development.js +127 -144
- package/react/cjs/react-jsx-runtime.react-server.development.js +128 -145
- package/react/cjs/react.development.js +204 -230
- package/react/cjs/react.production.js +9 -10
- package/react/cjs/react.react-server.development.js +172 -199
- package/react/cjs/react.react-server.production.js +6 -7
- package/react/package.json +2 -2
- package/react-dom/cjs/react-dom-client.development.js +6107 -5750
- package/react-dom/cjs/react-dom-client.production.js +2295 -1924
- package/react-dom/cjs/react-dom-profiling.development.js +6134 -5777
- package/react-dom/cjs/react-dom-profiling.profiling.js +2572 -2247
- package/react-dom/cjs/react-dom-server-legacy.browser.development.js +1244 -1040
- package/react-dom/cjs/react-dom-server-legacy.browser.production.js +891 -761
- package/react-dom/cjs/react-dom-server-legacy.node.development.js +1244 -1040
- package/react-dom/cjs/react-dom-server-legacy.node.production.js +887 -761
- package/react-dom/cjs/react-dom-server.browser.development.js +1380 -1060
- package/react-dom/cjs/react-dom-server.browser.production.js +999 -749
- package/react-dom/cjs/react-dom-server.bun.development.js +1241 -1032
- package/react-dom/cjs/react-dom-server.bun.production.js +886 -754
- package/react-dom/cjs/react-dom-server.edge.development.js +1393 -1069
- package/react-dom/cjs/react-dom-server.edge.production.js +1007 -758
- package/react-dom/cjs/react-dom-server.node.development.js +1624 -1254
- package/react-dom/cjs/react-dom-server.node.production.js +1242 -953
- package/react-dom/cjs/react-dom-test-utils.development.js +1 -20
- package/react-dom/cjs/react-dom.development.js +34 -50
- package/react-dom/cjs/react-dom.production.js +4 -3
- package/react-dom/cjs/react-dom.react-server.development.js +48 -66
- package/react-dom/cjs/react-dom.react-server.production.js +6 -8
- package/react-dom/package.json +3 -3
- package/react-dom/static.browser.js +1 -0
- package/react-dom/static.edge.js +1 -0
- package/react-dom/static.node.js +1 -0
|
@@ -41,36 +41,6 @@
|
|
|
41
41
|
function scriptReplacer(match, prefix, s, suffix) {
|
|
42
42
|
return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
|
|
43
43
|
}
|
|
44
|
-
function warn(format) {
|
|
45
|
-
for (
|
|
46
|
-
var _len = arguments.length,
|
|
47
|
-
args = Array(1 < _len ? _len - 1 : 0),
|
|
48
|
-
_key = 1;
|
|
49
|
-
_key < _len;
|
|
50
|
-
_key++
|
|
51
|
-
)
|
|
52
|
-
args[_key - 1] = arguments[_key];
|
|
53
|
-
printWarning("warn", format, args, Error("react-stack-top-frame"));
|
|
54
|
-
}
|
|
55
|
-
function error$jscomp$2(format) {
|
|
56
|
-
for (
|
|
57
|
-
var _len2 = arguments.length,
|
|
58
|
-
args = Array(1 < _len2 ? _len2 - 1 : 0),
|
|
59
|
-
_key2 = 1;
|
|
60
|
-
_key2 < _len2;
|
|
61
|
-
_key2++
|
|
62
|
-
)
|
|
63
|
-
args[_key2 - 1] = arguments[_key2];
|
|
64
|
-
printWarning("error", format, args, Error("react-stack-top-frame"));
|
|
65
|
-
}
|
|
66
|
-
function printWarning(level, format, args, currentStack) {
|
|
67
|
-
ReactSharedInternals.getCurrentStack &&
|
|
68
|
-
((currentStack = ReactSharedInternals.getCurrentStack(currentStack)),
|
|
69
|
-
"" !== currentStack &&
|
|
70
|
-
((format += "%s"), (args = args.concat([currentStack]))));
|
|
71
|
-
args.unshift(format);
|
|
72
|
-
Function.prototype.apply.call(console[level], console, args);
|
|
73
|
-
}
|
|
74
44
|
function objectName(object) {
|
|
75
45
|
return Object.prototype.toString
|
|
76
46
|
.call(object)
|
|
@@ -98,8 +68,8 @@
|
|
|
98
68
|
return value.$$typeof === CLIENT_REFERENCE_TAG
|
|
99
69
|
? "client"
|
|
100
70
|
: (value = value.displayName || value.name)
|
|
101
|
-
|
|
102
|
-
|
|
71
|
+
? "function " + value
|
|
72
|
+
: "function";
|
|
103
73
|
default:
|
|
104
74
|
return String(value);
|
|
105
75
|
}
|
|
@@ -142,8 +112,8 @@
|
|
|
142
112
|
"string" === typeof value
|
|
143
113
|
? value
|
|
144
114
|
: "object" === typeof value && null !== value
|
|
145
|
-
|
|
146
|
-
|
|
115
|
+
? "{" + describeObjectForErrorMessage(value) + "}"
|
|
116
|
+
: "{" + describeValueForErrorMessage(value) + "}";
|
|
147
117
|
"" + i === expandedName
|
|
148
118
|
? ((start = objKind.length),
|
|
149
119
|
(length = value.length),
|
|
@@ -229,9 +199,9 @@
|
|
|
229
199
|
return void 0 === expandedName
|
|
230
200
|
? objKind
|
|
231
201
|
: -1 < start && 0 < length
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
202
|
+
? ((objectOrArray = " ".repeat(start) + "^".repeat(length)),
|
|
203
|
+
"\n " + objKind + "\n " + objectOrArray)
|
|
204
|
+
: "\n " + objKind;
|
|
235
205
|
}
|
|
236
206
|
function murmurhash3_32_gc(key, seed) {
|
|
237
207
|
var remainder = key.length & 3;
|
|
@@ -294,6 +264,11 @@
|
|
|
294
264
|
taskQueue.push(callback);
|
|
295
265
|
channel.port2.postMessage(null);
|
|
296
266
|
}
|
|
267
|
+
function handleErrorInNextTick(error) {
|
|
268
|
+
setTimeout(function () {
|
|
269
|
+
throw error;
|
|
270
|
+
});
|
|
271
|
+
}
|
|
297
272
|
function writeChunk(destination, chunk) {
|
|
298
273
|
if (0 !== chunk.byteLength)
|
|
299
274
|
if (2048 < chunk.byteLength)
|
|
@@ -340,7 +315,7 @@
|
|
|
340
315
|
function stringToPrecomputedChunk(content) {
|
|
341
316
|
content = textEncoder.encode(content);
|
|
342
317
|
2048 < content.byteLength &&
|
|
343
|
-
error
|
|
318
|
+
console.error(
|
|
344
319
|
"precomputed chunks must be smaller than the view size configured for this host. This is a bug in React."
|
|
345
320
|
);
|
|
346
321
|
return content;
|
|
@@ -372,7 +347,7 @@
|
|
|
372
347
|
function checkAttributeStringCoercion(value, attributeName) {
|
|
373
348
|
if (willCoercionThrow(value))
|
|
374
349
|
return (
|
|
375
|
-
error
|
|
350
|
+
console.error(
|
|
376
351
|
"The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
377
352
|
attributeName,
|
|
378
353
|
typeName(value)
|
|
@@ -383,7 +358,7 @@
|
|
|
383
358
|
function checkCSSPropertyStringCoercion(value, propName) {
|
|
384
359
|
if (willCoercionThrow(value))
|
|
385
360
|
return (
|
|
386
|
-
error
|
|
361
|
+
console.error(
|
|
387
362
|
"The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
388
363
|
propName,
|
|
389
364
|
typeName(value)
|
|
@@ -394,7 +369,7 @@
|
|
|
394
369
|
function checkHtmlStringCoercion(value) {
|
|
395
370
|
if (willCoercionThrow(value))
|
|
396
371
|
return (
|
|
397
|
-
error
|
|
372
|
+
console.error(
|
|
398
373
|
"The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",
|
|
399
374
|
typeName(value)
|
|
400
375
|
),
|
|
@@ -409,7 +384,7 @@
|
|
|
409
384
|
if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
|
|
410
385
|
return (validatedAttributeNameCache[attributeName] = !0);
|
|
411
386
|
illegalAttributeNameCache[attributeName] = !0;
|
|
412
|
-
error
|
|
387
|
+
console.error("Invalid attribute name: `%s`", attributeName);
|
|
413
388
|
return !1;
|
|
414
389
|
}
|
|
415
390
|
function checkControlledValueProps(tagName, props) {
|
|
@@ -420,17 +395,17 @@
|
|
|
420
395
|
props.disabled ||
|
|
421
396
|
null == props.value ||
|
|
422
397
|
("select" === tagName
|
|
423
|
-
? error
|
|
398
|
+
? console.error(
|
|
424
399
|
"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."
|
|
425
400
|
)
|
|
426
|
-
: error
|
|
401
|
+
: console.error(
|
|
427
402
|
"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."
|
|
428
403
|
));
|
|
429
404
|
props.onChange ||
|
|
430
405
|
props.readOnly ||
|
|
431
406
|
props.disabled ||
|
|
432
407
|
null == props.checked ||
|
|
433
|
-
error
|
|
408
|
+
console.error(
|
|
434
409
|
"You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`."
|
|
435
410
|
);
|
|
436
411
|
}
|
|
@@ -445,7 +420,7 @@
|
|
|
445
420
|
tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;
|
|
446
421
|
if (null == tagName)
|
|
447
422
|
return (
|
|
448
|
-
error
|
|
423
|
+
console.error(
|
|
449
424
|
"Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",
|
|
450
425
|
name
|
|
451
426
|
),
|
|
@@ -453,7 +428,7 @@
|
|
|
453
428
|
);
|
|
454
429
|
if (name !== tagName)
|
|
455
430
|
return (
|
|
456
|
-
error
|
|
431
|
+
console.error(
|
|
457
432
|
"Invalid ARIA attribute `%s`. Did you mean `%s`?",
|
|
458
433
|
name,
|
|
459
434
|
tagName
|
|
@@ -466,7 +441,7 @@
|
|
|
466
441
|
tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;
|
|
467
442
|
if (null == tagName) return (warnedProperties$1[name] = !0), !1;
|
|
468
443
|
name !== tagName &&
|
|
469
|
-
(error
|
|
444
|
+
(console.error(
|
|
470
445
|
"Unknown ARIA attribute `%s`. Did you mean `%s`?",
|
|
471
446
|
name,
|
|
472
447
|
tagName
|
|
@@ -486,13 +461,13 @@
|
|
|
486
461
|
})
|
|
487
462
|
.join(", ");
|
|
488
463
|
1 === invalidProps.length
|
|
489
|
-
? error
|
|
464
|
+
? console.error(
|
|
490
465
|
"Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
|
|
491
466
|
props,
|
|
492
467
|
type
|
|
493
468
|
)
|
|
494
469
|
: 1 < invalidProps.length &&
|
|
495
|
-
error
|
|
470
|
+
console.error(
|
|
496
471
|
"Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
|
|
497
472
|
props,
|
|
498
473
|
type
|
|
@@ -504,7 +479,7 @@
|
|
|
504
479
|
var lowerCasedName = name.toLowerCase();
|
|
505
480
|
if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName)
|
|
506
481
|
return (
|
|
507
|
-
error
|
|
482
|
+
console.error(
|
|
508
483
|
"React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."
|
|
509
484
|
),
|
|
510
485
|
(warnedProperties[name] = !0)
|
|
@@ -525,7 +500,7 @@
|
|
|
525
500
|
: null;
|
|
526
501
|
if (null != eventRegistry)
|
|
527
502
|
return (
|
|
528
|
-
error
|
|
503
|
+
console.error(
|
|
529
504
|
"Invalid event handler property `%s`. Did you mean `%s`?",
|
|
530
505
|
name,
|
|
531
506
|
eventRegistry
|
|
@@ -534,7 +509,7 @@
|
|
|
534
509
|
);
|
|
535
510
|
if (EVENT_NAME_REGEX.test(name))
|
|
536
511
|
return (
|
|
537
|
-
error
|
|
512
|
+
console.error(
|
|
538
513
|
"Unknown event handler property `%s`. It will be ignored.",
|
|
539
514
|
name
|
|
540
515
|
),
|
|
@@ -543,7 +518,7 @@
|
|
|
543
518
|
} else if (EVENT_NAME_REGEX.test(name))
|
|
544
519
|
return (
|
|
545
520
|
INVALID_EVENT_NAME_REGEX.test(name) &&
|
|
546
|
-
error
|
|
521
|
+
console.error(
|
|
547
522
|
"Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",
|
|
548
523
|
name
|
|
549
524
|
),
|
|
@@ -552,14 +527,14 @@
|
|
|
552
527
|
if (rARIA.test(name) || rARIACamel.test(name)) return !0;
|
|
553
528
|
if ("innerhtml" === lowerCasedName)
|
|
554
529
|
return (
|
|
555
|
-
error
|
|
530
|
+
console.error(
|
|
556
531
|
"Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."
|
|
557
532
|
),
|
|
558
533
|
(warnedProperties[name] = !0)
|
|
559
534
|
);
|
|
560
535
|
if ("aria" === lowerCasedName)
|
|
561
536
|
return (
|
|
562
|
-
error
|
|
537
|
+
console.error(
|
|
563
538
|
"The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."
|
|
564
539
|
),
|
|
565
540
|
(warnedProperties[name] = !0)
|
|
@@ -571,7 +546,7 @@
|
|
|
571
546
|
"string" !== typeof value
|
|
572
547
|
)
|
|
573
548
|
return (
|
|
574
|
-
error
|
|
549
|
+
console.error(
|
|
575
550
|
"Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",
|
|
576
551
|
typeof value
|
|
577
552
|
),
|
|
@@ -579,7 +554,7 @@
|
|
|
579
554
|
);
|
|
580
555
|
if ("number" === typeof value && isNaN(value))
|
|
581
556
|
return (
|
|
582
|
-
error
|
|
557
|
+
console.error(
|
|
583
558
|
"Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",
|
|
584
559
|
name
|
|
585
560
|
),
|
|
@@ -591,7 +566,7 @@
|
|
|
591
566
|
lowerCasedName !== name)
|
|
592
567
|
)
|
|
593
568
|
return (
|
|
594
|
-
error
|
|
569
|
+
console.error(
|
|
595
570
|
"Invalid DOM property `%s`. Did you mean `%s`?",
|
|
596
571
|
name,
|
|
597
572
|
lowerCasedName
|
|
@@ -600,7 +575,7 @@
|
|
|
600
575
|
);
|
|
601
576
|
} else if (name !== lowerCasedName)
|
|
602
577
|
return (
|
|
603
|
-
error
|
|
578
|
+
console.error(
|
|
604
579
|
"React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",
|
|
605
580
|
name,
|
|
606
581
|
lowerCasedName
|
|
@@ -669,7 +644,7 @@
|
|
|
669
644
|
if ("data-" === lowerCasedName || "aria-" === lowerCasedName)
|
|
670
645
|
return !0;
|
|
671
646
|
value
|
|
672
|
-
? error
|
|
647
|
+
? console.error(
|
|
673
648
|
'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',
|
|
674
649
|
value,
|
|
675
650
|
name,
|
|
@@ -677,7 +652,7 @@
|
|
|
677
652
|
value,
|
|
678
653
|
name
|
|
679
654
|
)
|
|
680
|
-
: error
|
|
655
|
+
: console.error(
|
|
681
656
|
'Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',
|
|
682
657
|
value,
|
|
683
658
|
name,
|
|
@@ -726,7 +701,7 @@
|
|
|
726
701
|
default:
|
|
727
702
|
return !0;
|
|
728
703
|
}
|
|
729
|
-
error
|
|
704
|
+
console.error(
|
|
730
705
|
"Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",
|
|
731
706
|
value,
|
|
732
707
|
name,
|
|
@@ -753,13 +728,13 @@
|
|
|
753
728
|
})
|
|
754
729
|
.join(", ");
|
|
755
730
|
1 === unknownProps.length
|
|
756
|
-
? error
|
|
731
|
+
? console.error(
|
|
757
732
|
"Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",
|
|
758
733
|
props,
|
|
759
734
|
type
|
|
760
735
|
)
|
|
761
736
|
: 1 < unknownProps.length &&
|
|
762
|
-
error
|
|
737
|
+
console.error(
|
|
763
738
|
"Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",
|
|
764
739
|
props,
|
|
765
740
|
type
|
|
@@ -860,7 +835,7 @@
|
|
|
860
835
|
onHeaders &&
|
|
861
836
|
"number" === typeof maxHeadersLength &&
|
|
862
837
|
0 >= maxHeadersLength &&
|
|
863
|
-
error
|
|
838
|
+
console.error(
|
|
864
839
|
"React expected a positive non-zero `maxHeadersLength` option but found %s instead. When using the `onHeaders` option you may supply an optional `maxHeadersLength` option as well however, when setting this value to zero or less no headers will be captured.",
|
|
865
840
|
0 === maxHeadersLength ? "zero" : maxHeadersLength
|
|
866
841
|
);
|
|
@@ -870,7 +845,8 @@
|
|
|
870
845
|
fontPreloads: "",
|
|
871
846
|
highImagePreloads: "",
|
|
872
847
|
remainingCapacity:
|
|
873
|
-
|
|
848
|
+
2 +
|
|
849
|
+
("number" === typeof maxHeadersLength ? maxHeadersLength : 2e3)
|
|
874
850
|
}
|
|
875
851
|
: null;
|
|
876
852
|
onHeaders = {
|
|
@@ -934,8 +910,8 @@
|
|
|
934
910
|
null == maxHeadersLength.crossOrigin
|
|
935
911
|
? void 0
|
|
936
912
|
: "use-credentials" === maxHeadersLength.crossOrigin
|
|
937
|
-
|
|
938
|
-
|
|
913
|
+
? "use-credentials"
|
|
914
|
+
: ""));
|
|
939
915
|
preloadBootstrapScriptOrModule(
|
|
940
916
|
resumableState,
|
|
941
917
|
onHeaders,
|
|
@@ -988,8 +964,8 @@
|
|
|
988
964
|
"string" === typeof importMap || null == importMap.crossOrigin
|
|
989
965
|
? void 0
|
|
990
966
|
: "use-credentials" === importMap.crossOrigin
|
|
991
|
-
|
|
992
|
-
|
|
967
|
+
? "use-credentials"
|
|
968
|
+
: "")),
|
|
993
969
|
preloadBootstrapScriptOrModule(
|
|
994
970
|
resumableState,
|
|
995
971
|
onHeaders,
|
|
@@ -1057,8 +1033,8 @@
|
|
|
1057
1033
|
"http://www.w3.org/2000/svg" === namespaceURI
|
|
1058
1034
|
? SVG_MODE
|
|
1059
1035
|
: "http://www.w3.org/1998/Math/MathML" === namespaceURI
|
|
1060
|
-
|
|
1061
|
-
|
|
1036
|
+
? MATHML_MODE
|
|
1037
|
+
: ROOT_HTML_MODE,
|
|
1062
1038
|
null,
|
|
1063
1039
|
0
|
|
1064
1040
|
);
|
|
@@ -1119,12 +1095,12 @@
|
|
|
1119
1095
|
return parentContext.insertionMode >= HTML_TABLE_MODE
|
|
1120
1096
|
? createFormatContext(HTML_MODE, null, parentContext.tagScope)
|
|
1121
1097
|
: parentContext.insertionMode === ROOT_HTML_MODE
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1098
|
+
? "html" === type
|
|
1099
|
+
? createFormatContext(HTML_HTML_MODE, null, parentContext.tagScope)
|
|
1100
|
+
: createFormatContext(HTML_MODE, null, parentContext.tagScope)
|
|
1101
|
+
: parentContext.insertionMode === HTML_HTML_MODE
|
|
1102
|
+
? createFormatContext(HTML_MODE, null, parentContext.tagScope)
|
|
1103
|
+
: parentContext;
|
|
1128
1104
|
}
|
|
1129
1105
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
|
1130
1106
|
if ("" === text) return textEmbedded;
|
|
@@ -1161,7 +1137,7 @@
|
|
|
1161
1137
|
(warnedStyleNames.hasOwnProperty(name) &&
|
|
1162
1138
|
warnedStyleNames[name]) ||
|
|
1163
1139
|
((warnedStyleNames[name] = !0),
|
|
1164
|
-
error
|
|
1140
|
+
console.error(
|
|
1165
1141
|
"Unsupported style property %s. Did you mean %s?",
|
|
1166
1142
|
name,
|
|
1167
1143
|
camelize(name.replace(msPattern$1, "ms-"))
|
|
@@ -1171,7 +1147,7 @@
|
|
|
1171
1147
|
(warnedStyleNames.hasOwnProperty(name) &&
|
|
1172
1148
|
warnedStyleNames[name]) ||
|
|
1173
1149
|
((warnedStyleNames[name] = !0),
|
|
1174
|
-
error
|
|
1150
|
+
console.error(
|
|
1175
1151
|
"Unsupported vendor-prefixed style property %s. Did you mean %s?",
|
|
1176
1152
|
name,
|
|
1177
1153
|
name.charAt(0).toUpperCase() + name.slice(1)
|
|
@@ -1182,7 +1158,7 @@
|
|
|
1182
1158
|
(warnedStyleValues.hasOwnProperty(value$jscomp$0) &&
|
|
1183
1159
|
warnedStyleValues[value$jscomp$0]) ||
|
|
1184
1160
|
((warnedStyleValues[value$jscomp$0] = !0),
|
|
1185
|
-
error
|
|
1161
|
+
console.error(
|
|
1186
1162
|
'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',
|
|
1187
1163
|
name,
|
|
1188
1164
|
value$jscomp$0.replace(
|
|
@@ -1195,14 +1171,14 @@
|
|
|
1195
1171
|
(isNaN(value)
|
|
1196
1172
|
? warnedForNaNValue ||
|
|
1197
1173
|
((warnedForNaNValue = !0),
|
|
1198
|
-
error
|
|
1174
|
+
console.error(
|
|
1199
1175
|
"`NaN` is an invalid value for the `%s` css style property.",
|
|
1200
1176
|
nameChunk
|
|
1201
1177
|
))
|
|
1202
1178
|
: isFinite(value) ||
|
|
1203
1179
|
warnedForInfinityValue ||
|
|
1204
1180
|
((warnedForInfinityValue = !0),
|
|
1205
|
-
error
|
|
1181
|
+
console.error(
|
|
1206
1182
|
"`Infinity` is an invalid value for the `%s` css style property.",
|
|
1207
1183
|
nameChunk
|
|
1208
1184
|
)));
|
|
@@ -1296,7 +1272,7 @@
|
|
|
1296
1272
|
"function" === typeof x.then
|
|
1297
1273
|
)
|
|
1298
1274
|
throw x;
|
|
1299
|
-
error
|
|
1275
|
+
console.error(
|
|
1300
1276
|
"Failed to serialize an action for progressive enhancement:\n%s",
|
|
1301
1277
|
x
|
|
1302
1278
|
);
|
|
@@ -1319,19 +1295,19 @@
|
|
|
1319
1295
|
null === name ||
|
|
1320
1296
|
didWarnFormActionName ||
|
|
1321
1297
|
((didWarnFormActionName = !0),
|
|
1322
|
-
error
|
|
1298
|
+
console.error(
|
|
1323
1299
|
'Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.'
|
|
1324
1300
|
));
|
|
1325
1301
|
(null === formEncType && null === formMethod) ||
|
|
1326
1302
|
didWarnFormActionMethod ||
|
|
1327
1303
|
((didWarnFormActionMethod = !0),
|
|
1328
|
-
error
|
|
1304
|
+
console.error(
|
|
1329
1305
|
"Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden."
|
|
1330
1306
|
));
|
|
1331
1307
|
null === formTarget ||
|
|
1332
1308
|
didWarnFormActionTarget ||
|
|
1333
1309
|
((didWarnFormActionTarget = !0),
|
|
1334
|
-
error
|
|
1310
|
+
console.error(
|
|
1335
1311
|
"Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."
|
|
1336
1312
|
));
|
|
1337
1313
|
var customFields = getCustomFormFields(resumableState, formAction);
|
|
@@ -1381,12 +1357,12 @@
|
|
|
1381
1357
|
case "href":
|
|
1382
1358
|
if ("" === value) {
|
|
1383
1359
|
"src" === name
|
|
1384
|
-
? error
|
|
1360
|
+
? console.error(
|
|
1385
1361
|
'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
|
|
1386
1362
|
name,
|
|
1387
1363
|
name
|
|
1388
1364
|
)
|
|
1389
|
-
: error
|
|
1365
|
+
: console.error(
|
|
1390
1366
|
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
|
|
1391
1367
|
name,
|
|
1392
1368
|
name
|
|
@@ -1463,7 +1439,7 @@
|
|
|
1463
1439
|
"" !== value ||
|
|
1464
1440
|
didWarnForNewBooleanPropsWithEmptyValue[name] ||
|
|
1465
1441
|
((didWarnForNewBooleanPropsWithEmptyValue[name] = !0),
|
|
1466
|
-
error
|
|
1442
|
+
console.error(
|
|
1467
1443
|
"Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",
|
|
1468
1444
|
name
|
|
1469
1445
|
));
|
|
@@ -1622,13 +1598,13 @@
|
|
|
1622
1598
|
null != value &&
|
|
1623
1599
|
((value = isArrayImpl(value)),
|
|
1624
1600
|
props.multiple && !value
|
|
1625
|
-
? error
|
|
1601
|
+
? console.error(
|
|
1626
1602
|
"The `%s` prop supplied to <select> must be an array if `multiple` is true.",
|
|
1627
1603
|
propName
|
|
1628
1604
|
)
|
|
1629
1605
|
: !props.multiple &&
|
|
1630
1606
|
value &&
|
|
1631
|
-
error
|
|
1607
|
+
console.error(
|
|
1632
1608
|
"The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",
|
|
1633
1609
|
propName
|
|
1634
1610
|
));
|
|
@@ -1643,7 +1619,7 @@
|
|
|
1643
1619
|
"number" === typeof child ||
|
|
1644
1620
|
"bigint" === typeof child ||
|
|
1645
1621
|
((didWarnInvalidOptionChildren = !0),
|
|
1646
|
-
error
|
|
1622
|
+
console.error(
|
|
1647
1623
|
"Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."
|
|
1648
1624
|
)));
|
|
1649
1625
|
});
|
|
@@ -1763,9 +1739,9 @@
|
|
|
1763
1739
|
"number" === typeof children
|
|
1764
1740
|
? "a number for children"
|
|
1765
1741
|
: Array.isArray(children)
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
error
|
|
1742
|
+
? "an array for children"
|
|
1743
|
+
: "something unexpected for children"),
|
|
1744
|
+
console.error(
|
|
1769
1745
|
"A script element was rendered with %s. If script element has children it must be a single string. Consider using dangerouslySetInnerHTML or passing a plain string as children.",
|
|
1770
1746
|
props
|
|
1771
1747
|
));
|
|
@@ -1827,11 +1803,11 @@
|
|
|
1827
1803
|
didWarnValueNull ||
|
|
1828
1804
|
((didWarnValueNull = !0),
|
|
1829
1805
|
"select" === type && props.multiple
|
|
1830
|
-
? error
|
|
1806
|
+
? console.error(
|
|
1831
1807
|
"`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",
|
|
1832
1808
|
type
|
|
1833
1809
|
)
|
|
1834
|
-
: error
|
|
1810
|
+
: console.error(
|
|
1835
1811
|
"`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",
|
|
1836
1812
|
type
|
|
1837
1813
|
));
|
|
@@ -1857,14 +1833,14 @@
|
|
|
1857
1833
|
!props.suppressContentEditableWarning &&
|
|
1858
1834
|
props.contentEditable &&
|
|
1859
1835
|
null != props.children &&
|
|
1860
|
-
error
|
|
1836
|
+
console.error(
|
|
1861
1837
|
"A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."
|
|
1862
1838
|
);
|
|
1863
1839
|
formatContext.insertionMode !== SVG_MODE &&
|
|
1864
1840
|
formatContext.insertionMode !== MATHML_MODE &&
|
|
1865
1841
|
-1 === type.indexOf("-") &&
|
|
1866
1842
|
type.toLowerCase() !== type &&
|
|
1867
|
-
error
|
|
1843
|
+
console.error(
|
|
1868
1844
|
"<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",
|
|
1869
1845
|
type
|
|
1870
1846
|
);
|
|
@@ -1917,7 +1893,7 @@
|
|
|
1917
1893
|
void 0 === props.value ||
|
|
1918
1894
|
void 0 === props.defaultValue ||
|
|
1919
1895
|
didWarnDefaultSelectValue ||
|
|
1920
|
-
(error
|
|
1896
|
+
(console.error(
|
|
1921
1897
|
"Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"
|
|
1922
1898
|
),
|
|
1923
1899
|
(didWarnDefaultSelectValue = !0));
|
|
@@ -1969,7 +1945,7 @@
|
|
|
1969
1945
|
case "selected":
|
|
1970
1946
|
selected = propValue$jscomp$1;
|
|
1971
1947
|
didWarnSelectedSetOnOption ||
|
|
1972
|
-
(error
|
|
1948
|
+
(console.error(
|
|
1973
1949
|
"Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."
|
|
1974
1950
|
),
|
|
1975
1951
|
(didWarnSelectedSetOnOption = !0));
|
|
@@ -1995,7 +1971,7 @@
|
|
|
1995
1971
|
null === innerHTML$jscomp$1 ||
|
|
1996
1972
|
didWarnInvalidOptionInnerHTML ||
|
|
1997
1973
|
((didWarnInvalidOptionInnerHTML = !0),
|
|
1998
|
-
error
|
|
1974
|
+
console.error(
|
|
1999
1975
|
"Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."
|
|
2000
1976
|
)),
|
|
2001
1977
|
(stringValue = flattenOptionChildren(children$jscomp$1));
|
|
@@ -2022,7 +1998,7 @@
|
|
|
2022
1998
|
void 0 === props.value ||
|
|
2023
1999
|
void 0 === props.defaultValue ||
|
|
2024
2000
|
didWarnDefaultTextareaValue ||
|
|
2025
|
-
(error
|
|
2001
|
+
(console.error(
|
|
2026
2002
|
"Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components"
|
|
2027
2003
|
),
|
|
2028
2004
|
(didWarnDefaultTextareaValue = !0));
|
|
@@ -2062,7 +2038,7 @@
|
|
|
2062
2038
|
(value$jscomp$0 = defaultValue);
|
|
2063
2039
|
target$jscomp$0.push(endOfStartTag);
|
|
2064
2040
|
if (null != children$jscomp$2) {
|
|
2065
|
-
error
|
|
2041
|
+
console.error(
|
|
2066
2042
|
"Use the `defaultValue` or `value` props instead of setting children on <textarea>."
|
|
2067
2043
|
);
|
|
2068
2044
|
if (null != value$jscomp$0)
|
|
@@ -2150,7 +2126,7 @@
|
|
|
2150
2126
|
"submit" === props.type ||
|
|
2151
2127
|
didWarnFormActionType ||
|
|
2152
2128
|
((didWarnFormActionType = !0),
|
|
2153
|
-
error
|
|
2129
|
+
console.error(
|
|
2154
2130
|
'An input can only specify a formAction along with type="submit" or type="image".'
|
|
2155
2131
|
));
|
|
2156
2132
|
var formData = pushFormActionAttribute(
|
|
@@ -2166,7 +2142,7 @@
|
|
|
2166
2142
|
null === checked ||
|
|
2167
2143
|
null === defaultChecked ||
|
|
2168
2144
|
didWarnDefaultChecked ||
|
|
2169
|
-
(error
|
|
2145
|
+
(console.error(
|
|
2170
2146
|
"%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",
|
|
2171
2147
|
"A component",
|
|
2172
2148
|
props.type
|
|
@@ -2175,7 +2151,7 @@
|
|
|
2175
2151
|
null === value$jscomp$1 ||
|
|
2176
2152
|
null === defaultValue$jscomp$0 ||
|
|
2177
2153
|
didWarnDefaultInputValue ||
|
|
2178
|
-
(error
|
|
2154
|
+
(console.error(
|
|
2179
2155
|
"%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",
|
|
2180
2156
|
"A component",
|
|
2181
2157
|
props.type
|
|
@@ -2242,7 +2218,7 @@
|
|
|
2242
2218
|
"submit" === props.type ||
|
|
2243
2219
|
didWarnFormActionType ||
|
|
2244
2220
|
((didWarnFormActionType = !0),
|
|
2245
|
-
error
|
|
2221
|
+
console.error(
|
|
2246
2222
|
'A button can only specify a formAction along with type="submit" or no type.'
|
|
2247
2223
|
));
|
|
2248
2224
|
var formData$jscomp$0 = pushFormActionAttribute(
|
|
@@ -2312,13 +2288,13 @@
|
|
|
2312
2288
|
(null === formEncType$jscomp$1 && null === formMethod$jscomp$1) ||
|
|
2313
2289
|
didWarnFormActionMethod ||
|
|
2314
2290
|
((didWarnFormActionMethod = !0),
|
|
2315
|
-
error
|
|
2291
|
+
console.error(
|
|
2316
2292
|
"Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden."
|
|
2317
2293
|
));
|
|
2318
2294
|
null === formTarget$jscomp$1 ||
|
|
2319
2295
|
didWarnFormActionTarget ||
|
|
2320
2296
|
((didWarnFormActionTarget = !0),
|
|
2321
|
-
error
|
|
2297
|
+
console.error(
|
|
2322
2298
|
"Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."
|
|
2323
2299
|
));
|
|
2324
2300
|
var customFields = getCustomFormFields(
|
|
@@ -2394,51 +2370,103 @@
|
|
|
2394
2370
|
}
|
|
2395
2371
|
target$jscomp$0.push(endOfStartTag);
|
|
2396
2372
|
return null;
|
|
2373
|
+
case "object":
|
|
2374
|
+
target$jscomp$0.push(startChunkForTag("object"));
|
|
2375
|
+
var children$jscomp$5 = null,
|
|
2376
|
+
innerHTML$jscomp$4 = null,
|
|
2377
|
+
propKey$jscomp$7;
|
|
2378
|
+
for (propKey$jscomp$7 in props)
|
|
2379
|
+
if (hasOwnProperty.call(props, propKey$jscomp$7)) {
|
|
2380
|
+
var propValue$jscomp$7 = props[propKey$jscomp$7];
|
|
2381
|
+
if (null != propValue$jscomp$7)
|
|
2382
|
+
switch (propKey$jscomp$7) {
|
|
2383
|
+
case "children":
|
|
2384
|
+
children$jscomp$5 = propValue$jscomp$7;
|
|
2385
|
+
break;
|
|
2386
|
+
case "dangerouslySetInnerHTML":
|
|
2387
|
+
innerHTML$jscomp$4 = propValue$jscomp$7;
|
|
2388
|
+
break;
|
|
2389
|
+
case "data":
|
|
2390
|
+
checkAttributeStringCoercion(propValue$jscomp$7, "data");
|
|
2391
|
+
var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
|
|
2392
|
+
if ("" === sanitizedValue) {
|
|
2393
|
+
console.error(
|
|
2394
|
+
'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
|
|
2395
|
+
propKey$jscomp$7,
|
|
2396
|
+
propKey$jscomp$7
|
|
2397
|
+
);
|
|
2398
|
+
break;
|
|
2399
|
+
}
|
|
2400
|
+
target$jscomp$0.push(
|
|
2401
|
+
attributeSeparator,
|
|
2402
|
+
stringToChunk("data"),
|
|
2403
|
+
attributeAssign,
|
|
2404
|
+
stringToChunk(escapeTextForBrowser(sanitizedValue)),
|
|
2405
|
+
attributeEnd
|
|
2406
|
+
);
|
|
2407
|
+
break;
|
|
2408
|
+
default:
|
|
2409
|
+
pushAttribute(
|
|
2410
|
+
target$jscomp$0,
|
|
2411
|
+
propKey$jscomp$7,
|
|
2412
|
+
propValue$jscomp$7
|
|
2413
|
+
);
|
|
2414
|
+
}
|
|
2415
|
+
}
|
|
2416
|
+
target$jscomp$0.push(endOfStartTag);
|
|
2417
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
|
|
2418
|
+
if ("string" === typeof children$jscomp$5) {
|
|
2419
|
+
target$jscomp$0.push(
|
|
2420
|
+
stringToChunk(escapeTextForBrowser(children$jscomp$5))
|
|
2421
|
+
);
|
|
2422
|
+
var JSCompiler_inline_result$jscomp$3 = null;
|
|
2423
|
+
} else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
|
|
2424
|
+
return JSCompiler_inline_result$jscomp$3;
|
|
2397
2425
|
case "title":
|
|
2398
2426
|
var insertionMode = formatContext.insertionMode,
|
|
2399
2427
|
noscriptTagInScope = !!(formatContext.tagScope & 1);
|
|
2400
2428
|
if (hasOwnProperty.call(props, "children")) {
|
|
2401
|
-
var children$jscomp$
|
|
2402
|
-
child = Array.isArray(children$jscomp$
|
|
2403
|
-
? 2 > children$jscomp$
|
|
2404
|
-
? children$jscomp$
|
|
2429
|
+
var children$jscomp$6 = props.children,
|
|
2430
|
+
child = Array.isArray(children$jscomp$6)
|
|
2431
|
+
? 2 > children$jscomp$6.length
|
|
2432
|
+
? children$jscomp$6[0]
|
|
2405
2433
|
: null
|
|
2406
|
-
: children$jscomp$
|
|
2407
|
-
Array.isArray(children$jscomp$
|
|
2408
|
-
? error
|
|
2434
|
+
: children$jscomp$6;
|
|
2435
|
+
Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
|
|
2436
|
+
? console.error(
|
|
2409
2437
|
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be commong to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
|
|
2410
|
-
children$jscomp$
|
|
2438
|
+
children$jscomp$6.length
|
|
2411
2439
|
)
|
|
2412
2440
|
: "function" === typeof child || "symbol" === typeof child
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2441
|
+
? console.error(
|
|
2442
|
+
"React expect children of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value.",
|
|
2443
|
+
"function" === typeof child ? "a Function" : "a Sybmol"
|
|
2444
|
+
)
|
|
2445
|
+
: child &&
|
|
2446
|
+
child.toString === {}.toString &&
|
|
2447
|
+
(null != child.$$typeof
|
|
2448
|
+
? console.error(
|
|
2449
|
+
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that appears to be a React element which never implements a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value which is why rendering React elements is not supported. If the `children` of <title> is a React Component try moving the <title> tag into that component. If the `children` of <title> is some HTML markup change it to be Text only to be valid HTML."
|
|
2450
|
+
)
|
|
2451
|
+
: console.error(
|
|
2452
|
+
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an object that does not implement a suitable `toString` method. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert children of <title> tags to a single string value. Using the default `toString` method available on every object is almost certainly an error. Consider whether the `children` of this <title> is an object in error and change it to a string or number value if so. Otherwise implement a `toString` method that React can use to produce a valid <title>."
|
|
2453
|
+
));
|
|
2426
2454
|
}
|
|
2427
2455
|
if (
|
|
2428
2456
|
insertionMode === SVG_MODE ||
|
|
2429
2457
|
noscriptTagInScope ||
|
|
2430
2458
|
null != props.itemProp
|
|
2431
2459
|
)
|
|
2432
|
-
var JSCompiler_inline_result$jscomp$
|
|
2460
|
+
var JSCompiler_inline_result$jscomp$4 = pushTitleImpl(
|
|
2433
2461
|
target$jscomp$0,
|
|
2434
2462
|
props
|
|
2435
2463
|
);
|
|
2436
2464
|
else
|
|
2437
2465
|
isFallback
|
|
2438
|
-
? (JSCompiler_inline_result$jscomp$
|
|
2466
|
+
? (JSCompiler_inline_result$jscomp$4 = null)
|
|
2439
2467
|
: (pushTitleImpl(renderState.hoistableChunks, props),
|
|
2440
|
-
(JSCompiler_inline_result$jscomp$
|
|
2441
|
-
return JSCompiler_inline_result$jscomp$
|
|
2468
|
+
(JSCompiler_inline_result$jscomp$4 = void 0));
|
|
2469
|
+
return JSCompiler_inline_result$jscomp$4;
|
|
2442
2470
|
case "link":
|
|
2443
2471
|
var rel = props.rel,
|
|
2444
2472
|
href = props.href,
|
|
@@ -2454,18 +2482,18 @@
|
|
|
2454
2482
|
"stylesheet" === rel &&
|
|
2455
2483
|
"string" === typeof props.precedence &&
|
|
2456
2484
|
(("string" === typeof href && href) ||
|
|
2457
|
-
error
|
|
2485
|
+
console.error(
|
|
2458
2486
|
'React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and expected the `href` prop to be a non-empty string but ecountered %s instead. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop ensure there is a non-empty string `href` prop as well, otherwise remove the `precedence` prop.',
|
|
2459
2487
|
null === href
|
|
2460
2488
|
? "`null`"
|
|
2461
2489
|
: void 0 === href
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2490
|
+
? "`undefined`"
|
|
2491
|
+
: "" === href
|
|
2492
|
+
? "an empty string"
|
|
2493
|
+
: 'something with type "' + typeof href + '"'
|
|
2466
2494
|
));
|
|
2467
2495
|
pushLinkImpl(target$jscomp$0, props);
|
|
2468
|
-
var JSCompiler_inline_result$jscomp$
|
|
2496
|
+
var JSCompiler_inline_result$jscomp$5 = null;
|
|
2469
2497
|
} else if ("stylesheet" === props.rel)
|
|
2470
2498
|
if (
|
|
2471
2499
|
"string" !== typeof precedence ||
|
|
@@ -2475,7 +2503,7 @@
|
|
|
2475
2503
|
) {
|
|
2476
2504
|
if ("string" === typeof precedence)
|
|
2477
2505
|
if (null != props.disabled)
|
|
2478
|
-
error
|
|
2506
|
+
console.error(
|
|
2479
2507
|
'React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and a `disabled` prop. The presence of the `disabled` prop indicates an intent to manage the stylesheet active state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the `disabled` prop, otherwise remove the `precedence` prop.'
|
|
2480
2508
|
);
|
|
2481
2509
|
else if (props.onLoad || props.onError) {
|
|
@@ -2483,15 +2511,15 @@
|
|
|
2483
2511
|
props.onLoad && props.onError
|
|
2484
2512
|
? "`onLoad` and `onError` props"
|
|
2485
2513
|
: props.onLoad
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
error
|
|
2514
|
+
? "`onLoad` prop"
|
|
2515
|
+
: "`onError` prop";
|
|
2516
|
+
console.error(
|
|
2489
2517
|
'React encountered a `<link rel="stylesheet" .../>` with a `precedence` prop and %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',
|
|
2490
2518
|
propDescription,
|
|
2491
2519
|
propDescription
|
|
2492
2520
|
);
|
|
2493
2521
|
}
|
|
2494
|
-
JSCompiler_inline_result$jscomp$
|
|
2522
|
+
JSCompiler_inline_result$jscomp$5 = pushLinkImpl(
|
|
2495
2523
|
target$jscomp$0,
|
|
2496
2524
|
props
|
|
2497
2525
|
);
|
|
@@ -2537,19 +2565,19 @@
|
|
|
2537
2565
|
hoistableState.stylesheets.add(_resource);
|
|
2538
2566
|
}
|
|
2539
2567
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
|
2540
|
-
JSCompiler_inline_result$jscomp$
|
|
2568
|
+
JSCompiler_inline_result$jscomp$5 = null;
|
|
2541
2569
|
}
|
|
2542
2570
|
else
|
|
2543
2571
|
props.onLoad || props.onError
|
|
2544
|
-
? (JSCompiler_inline_result$jscomp$
|
|
2572
|
+
? (JSCompiler_inline_result$jscomp$5 = pushLinkImpl(
|
|
2545
2573
|
target$jscomp$0,
|
|
2546
2574
|
props
|
|
2547
2575
|
))
|
|
2548
2576
|
: (textEmbedded && target$jscomp$0.push(textSeparator),
|
|
2549
|
-
(JSCompiler_inline_result$jscomp$
|
|
2577
|
+
(JSCompiler_inline_result$jscomp$5 = isFallback
|
|
2550
2578
|
? null
|
|
2551
2579
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
|
2552
|
-
return JSCompiler_inline_result$jscomp$
|
|
2580
|
+
return JSCompiler_inline_result$jscomp$5;
|
|
2553
2581
|
case "script":
|
|
2554
2582
|
var asyncProp = props.async;
|
|
2555
2583
|
if (
|
|
@@ -2564,7 +2592,7 @@
|
|
|
2564
2592
|
formatContext.tagScope & 1 ||
|
|
2565
2593
|
null != props.itemProp
|
|
2566
2594
|
)
|
|
2567
|
-
var JSCompiler_inline_result$jscomp$
|
|
2595
|
+
var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
|
|
2568
2596
|
target$jscomp$0,
|
|
2569
2597
|
props
|
|
2570
2598
|
);
|
|
@@ -2595,29 +2623,29 @@
|
|
|
2595
2623
|
pushScriptImpl(resource$jscomp$0, scriptProps);
|
|
2596
2624
|
}
|
|
2597
2625
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
|
2598
|
-
JSCompiler_inline_result$jscomp$
|
|
2626
|
+
JSCompiler_inline_result$jscomp$6 = null;
|
|
2599
2627
|
}
|
|
2600
|
-
return JSCompiler_inline_result$jscomp$
|
|
2628
|
+
return JSCompiler_inline_result$jscomp$6;
|
|
2601
2629
|
case "style":
|
|
2602
2630
|
var insertionMode$jscomp$0 = formatContext.insertionMode,
|
|
2603
2631
|
noscriptTagInScope$jscomp$0 = !!(formatContext.tagScope & 1);
|
|
2604
2632
|
if (hasOwnProperty.call(props, "children")) {
|
|
2605
|
-
var children$jscomp$
|
|
2606
|
-
child$jscomp$0 = Array.isArray(children$jscomp$
|
|
2607
|
-
? 2 > children$jscomp$
|
|
2608
|
-
? children$jscomp$
|
|
2633
|
+
var children$jscomp$7 = props.children,
|
|
2634
|
+
child$jscomp$0 = Array.isArray(children$jscomp$7)
|
|
2635
|
+
? 2 > children$jscomp$7.length
|
|
2636
|
+
? children$jscomp$7[0]
|
|
2609
2637
|
: null
|
|
2610
|
-
: children$jscomp$
|
|
2638
|
+
: children$jscomp$7;
|
|
2611
2639
|
("function" === typeof child$jscomp$0 ||
|
|
2612
2640
|
"symbol" === typeof child$jscomp$0 ||
|
|
2613
2641
|
Array.isArray(child$jscomp$0)) &&
|
|
2614
|
-
error
|
|
2642
|
+
console.error(
|
|
2615
2643
|
"React expect children of <style> tags to be a string, number, or object with a `toString` method but found %s instead. In browsers style Elements can only have `Text` Nodes as children.",
|
|
2616
2644
|
"function" === typeof child$jscomp$0
|
|
2617
2645
|
? "a Function"
|
|
2618
2646
|
: "symbol" === typeof child$jscomp$0
|
|
2619
|
-
|
|
2620
|
-
|
|
2647
|
+
? "a Sybmol"
|
|
2648
|
+
: "an Array"
|
|
2621
2649
|
);
|
|
2622
2650
|
}
|
|
2623
2651
|
var precedence$jscomp$0 = props.precedence,
|
|
@@ -2631,34 +2659,34 @@
|
|
|
2631
2659
|
"" === href$jscomp$0
|
|
2632
2660
|
) {
|
|
2633
2661
|
target$jscomp$0.push(startChunkForTag("style"));
|
|
2634
|
-
var children$jscomp$
|
|
2635
|
-
innerHTML$jscomp$
|
|
2636
|
-
propKey$jscomp$
|
|
2637
|
-
for (propKey$jscomp$
|
|
2638
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
2639
|
-
var propValue$jscomp$
|
|
2640
|
-
if (null != propValue$jscomp$
|
|
2641
|
-
switch (propKey$jscomp$
|
|
2662
|
+
var children$jscomp$8 = null,
|
|
2663
|
+
innerHTML$jscomp$5 = null,
|
|
2664
|
+
propKey$jscomp$8;
|
|
2665
|
+
for (propKey$jscomp$8 in props)
|
|
2666
|
+
if (hasOwnProperty.call(props, propKey$jscomp$8)) {
|
|
2667
|
+
var propValue$jscomp$8 = props[propKey$jscomp$8];
|
|
2668
|
+
if (null != propValue$jscomp$8)
|
|
2669
|
+
switch (propKey$jscomp$8) {
|
|
2642
2670
|
case "children":
|
|
2643
|
-
children$jscomp$
|
|
2671
|
+
children$jscomp$8 = propValue$jscomp$8;
|
|
2644
2672
|
break;
|
|
2645
2673
|
case "dangerouslySetInnerHTML":
|
|
2646
|
-
innerHTML$jscomp$
|
|
2674
|
+
innerHTML$jscomp$5 = propValue$jscomp$8;
|
|
2647
2675
|
break;
|
|
2648
2676
|
default:
|
|
2649
2677
|
pushAttribute(
|
|
2650
2678
|
target$jscomp$0,
|
|
2651
|
-
propKey$jscomp$
|
|
2652
|
-
propValue$jscomp$
|
|
2679
|
+
propKey$jscomp$8,
|
|
2680
|
+
propValue$jscomp$8
|
|
2653
2681
|
);
|
|
2654
2682
|
}
|
|
2655
2683
|
}
|
|
2656
2684
|
target$jscomp$0.push(endOfStartTag);
|
|
2657
|
-
var child$jscomp$1 = Array.isArray(children$jscomp$
|
|
2658
|
-
? 2 > children$jscomp$
|
|
2659
|
-
? children$jscomp$
|
|
2685
|
+
var child$jscomp$1 = Array.isArray(children$jscomp$8)
|
|
2686
|
+
? 2 > children$jscomp$8.length
|
|
2687
|
+
? children$jscomp$8[0]
|
|
2660
2688
|
: null
|
|
2661
|
-
: children$jscomp$
|
|
2689
|
+
: children$jscomp$8;
|
|
2662
2690
|
"function" !== typeof child$jscomp$1 &&
|
|
2663
2691
|
"symbol" !== typeof child$jscomp$1 &&
|
|
2664
2692
|
null !== child$jscomp$1 &&
|
|
@@ -2668,14 +2696,14 @@
|
|
|
2668
2696
|
);
|
|
2669
2697
|
pushInnerHTML(
|
|
2670
2698
|
target$jscomp$0,
|
|
2671
|
-
innerHTML$jscomp$
|
|
2672
|
-
children$jscomp$
|
|
2699
|
+
innerHTML$jscomp$5,
|
|
2700
|
+
children$jscomp$8
|
|
2673
2701
|
);
|
|
2674
2702
|
target$jscomp$0.push(endChunkForTag("style"));
|
|
2675
|
-
var JSCompiler_inline_result$jscomp$
|
|
2703
|
+
var JSCompiler_inline_result$jscomp$7 = null;
|
|
2676
2704
|
} else {
|
|
2677
2705
|
href$jscomp$0.includes(" ") &&
|
|
2678
|
-
error
|
|
2706
|
+
console.error(
|
|
2679
2707
|
'React expected the `href` prop for a <style> tag opting into hoisting semantics using the `precedence` prop to not have any spaces but ecountered spaces instead. using spaces in this prop will cause hydration of this style to fail on the client. The href for the <style> where this ocurred is "%s".',
|
|
2680
2708
|
href$jscomp$0
|
|
2681
2709
|
);
|
|
@@ -2688,7 +2716,7 @@
|
|
|
2688
2716
|
if (resourceState$jscomp$1 !== EXISTS) {
|
|
2689
2717
|
resumableState.styleResources[href$jscomp$0] = EXISTS;
|
|
2690
2718
|
resourceState$jscomp$1 &&
|
|
2691
|
-
error
|
|
2719
|
+
console.error(
|
|
2692
2720
|
'React encountered a hoistable style tag for the same href as a preload: "%s". When using a style tag to inline styles you should not also preload it as a stylsheet.',
|
|
2693
2721
|
href$jscomp$0
|
|
2694
2722
|
);
|
|
@@ -2709,26 +2737,26 @@
|
|
|
2709
2737
|
styleQueue$jscomp$0
|
|
2710
2738
|
));
|
|
2711
2739
|
var target = styleQueue$jscomp$0.rules,
|
|
2712
|
-
children$jscomp$
|
|
2713
|
-
innerHTML$jscomp$
|
|
2714
|
-
propKey$jscomp$
|
|
2715
|
-
for (propKey$jscomp$
|
|
2716
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
2717
|
-
var propValue$jscomp$
|
|
2718
|
-
if (null != propValue$jscomp$
|
|
2719
|
-
switch (propKey$jscomp$
|
|
2740
|
+
children$jscomp$9 = null,
|
|
2741
|
+
innerHTML$jscomp$6 = null,
|
|
2742
|
+
propKey$jscomp$9;
|
|
2743
|
+
for (propKey$jscomp$9 in props)
|
|
2744
|
+
if (hasOwnProperty.call(props, propKey$jscomp$9)) {
|
|
2745
|
+
var propValue$jscomp$9 = props[propKey$jscomp$9];
|
|
2746
|
+
if (null != propValue$jscomp$9)
|
|
2747
|
+
switch (propKey$jscomp$9) {
|
|
2720
2748
|
case "children":
|
|
2721
|
-
children$jscomp$
|
|
2749
|
+
children$jscomp$9 = propValue$jscomp$9;
|
|
2722
2750
|
break;
|
|
2723
2751
|
case "dangerouslySetInnerHTML":
|
|
2724
|
-
innerHTML$jscomp$
|
|
2752
|
+
innerHTML$jscomp$6 = propValue$jscomp$9;
|
|
2725
2753
|
}
|
|
2726
2754
|
}
|
|
2727
|
-
var child$jscomp$2 = Array.isArray(children$jscomp$
|
|
2728
|
-
? 2 > children$jscomp$
|
|
2729
|
-
? children$jscomp$
|
|
2755
|
+
var child$jscomp$2 = Array.isArray(children$jscomp$9)
|
|
2756
|
+
? 2 > children$jscomp$9.length
|
|
2757
|
+
? children$jscomp$9[0]
|
|
2730
2758
|
: null
|
|
2731
|
-
: children$jscomp$
|
|
2759
|
+
: children$jscomp$9;
|
|
2732
2760
|
"function" !== typeof child$jscomp$2 &&
|
|
2733
2761
|
"symbol" !== typeof child$jscomp$2 &&
|
|
2734
2762
|
null !== child$jscomp$2 &&
|
|
@@ -2736,75 +2764,79 @@
|
|
|
2736
2764
|
target.push(
|
|
2737
2765
|
stringToChunk(escapeStyleTextContent(child$jscomp$2))
|
|
2738
2766
|
);
|
|
2739
|
-
pushInnerHTML(target, innerHTML$jscomp$
|
|
2767
|
+
pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$9);
|
|
2740
2768
|
}
|
|
2741
2769
|
styleQueue$jscomp$0 &&
|
|
2742
2770
|
hoistableState &&
|
|
2743
2771
|
hoistableState.styles.add(styleQueue$jscomp$0);
|
|
2744
2772
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
|
2745
|
-
JSCompiler_inline_result$jscomp$
|
|
2773
|
+
JSCompiler_inline_result$jscomp$7 = void 0;
|
|
2746
2774
|
}
|
|
2747
|
-
return JSCompiler_inline_result$jscomp$
|
|
2775
|
+
return JSCompiler_inline_result$jscomp$7;
|
|
2748
2776
|
case "meta":
|
|
2749
2777
|
if (
|
|
2750
2778
|
formatContext.insertionMode === SVG_MODE ||
|
|
2751
2779
|
formatContext.tagScope & 1 ||
|
|
2752
2780
|
null != props.itemProp
|
|
2753
2781
|
)
|
|
2754
|
-
var JSCompiler_inline_result$jscomp$
|
|
2782
|
+
var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
|
|
2755
2783
|
target$jscomp$0,
|
|
2756
2784
|
props,
|
|
2757
2785
|
"meta"
|
|
2758
2786
|
);
|
|
2759
2787
|
else
|
|
2760
2788
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
|
2761
|
-
(JSCompiler_inline_result$jscomp$
|
|
2789
|
+
(JSCompiler_inline_result$jscomp$8 = isFallback
|
|
2762
2790
|
? null
|
|
2763
2791
|
: "string" === typeof props.charSet
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2792
|
+
? pushSelfClosing(renderState.charsetChunks, props, "meta")
|
|
2793
|
+
: "viewport" === props.name
|
|
2794
|
+
? pushSelfClosing(renderState.viewportChunks, props, "meta")
|
|
2795
|
+
: pushSelfClosing(
|
|
2796
|
+
renderState.hoistableChunks,
|
|
2797
|
+
props,
|
|
2798
|
+
"meta"
|
|
2799
|
+
));
|
|
2800
|
+
return JSCompiler_inline_result$jscomp$8;
|
|
2769
2801
|
case "listing":
|
|
2770
2802
|
case "pre":
|
|
2771
2803
|
target$jscomp$0.push(startChunkForTag(type));
|
|
2772
|
-
var children$jscomp$
|
|
2773
|
-
innerHTML$jscomp$
|
|
2774
|
-
propKey$jscomp$
|
|
2775
|
-
for (propKey$jscomp$
|
|
2776
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
2777
|
-
var propValue$jscomp$
|
|
2778
|
-
if (null != propValue$jscomp$
|
|
2779
|
-
switch (propKey$jscomp$
|
|
2804
|
+
var children$jscomp$10 = null,
|
|
2805
|
+
innerHTML$jscomp$7 = null,
|
|
2806
|
+
propKey$jscomp$10;
|
|
2807
|
+
for (propKey$jscomp$10 in props)
|
|
2808
|
+
if (hasOwnProperty.call(props, propKey$jscomp$10)) {
|
|
2809
|
+
var propValue$jscomp$10 = props[propKey$jscomp$10];
|
|
2810
|
+
if (null != propValue$jscomp$10)
|
|
2811
|
+
switch (propKey$jscomp$10) {
|
|
2780
2812
|
case "children":
|
|
2781
|
-
children$jscomp$
|
|
2813
|
+
children$jscomp$10 = propValue$jscomp$10;
|
|
2782
2814
|
break;
|
|
2783
2815
|
case "dangerouslySetInnerHTML":
|
|
2784
|
-
innerHTML$jscomp$
|
|
2816
|
+
innerHTML$jscomp$7 = propValue$jscomp$10;
|
|
2785
2817
|
break;
|
|
2786
2818
|
default:
|
|
2787
2819
|
pushAttribute(
|
|
2788
2820
|
target$jscomp$0,
|
|
2789
|
-
propKey$jscomp$
|
|
2790
|
-
propValue$jscomp$
|
|
2821
|
+
propKey$jscomp$10,
|
|
2822
|
+
propValue$jscomp$10
|
|
2791
2823
|
);
|
|
2792
2824
|
}
|
|
2793
2825
|
}
|
|
2794
2826
|
target$jscomp$0.push(endOfStartTag);
|
|
2795
|
-
if (null != innerHTML$jscomp$
|
|
2796
|
-
if (null != children$jscomp$
|
|
2827
|
+
if (null != innerHTML$jscomp$7) {
|
|
2828
|
+
if (null != children$jscomp$10)
|
|
2797
2829
|
throw Error(
|
|
2798
2830
|
"Can only set one of `children` or `props.dangerouslySetInnerHTML`."
|
|
2799
2831
|
);
|
|
2800
2832
|
if (
|
|
2801
|
-
"object" !== typeof innerHTML$jscomp$
|
|
2802
|
-
!("__html" in innerHTML$jscomp$
|
|
2833
|
+
"object" !== typeof innerHTML$jscomp$7 ||
|
|
2834
|
+
!("__html" in innerHTML$jscomp$7)
|
|
2803
2835
|
)
|
|
2804
2836
|
throw Error(
|
|
2805
2837
|
"`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
|
|
2806
2838
|
);
|
|
2807
|
-
var html = innerHTML$jscomp$
|
|
2839
|
+
var html = innerHTML$jscomp$7.__html;
|
|
2808
2840
|
null !== html &&
|
|
2809
2841
|
void 0 !== html &&
|
|
2810
2842
|
("string" === typeof html && 0 < html.length && "\n" === html[0]
|
|
@@ -2812,10 +2844,10 @@
|
|
|
2812
2844
|
: (checkHtmlStringCoercion(html),
|
|
2813
2845
|
target$jscomp$0.push(stringToChunk("" + html))));
|
|
2814
2846
|
}
|
|
2815
|
-
"string" === typeof children$jscomp$
|
|
2816
|
-
"\n" === children$jscomp$
|
|
2847
|
+
"string" === typeof children$jscomp$10 &&
|
|
2848
|
+
"\n" === children$jscomp$10[0] &&
|
|
2817
2849
|
target$jscomp$0.push(leadingNewline);
|
|
2818
|
-
return children$jscomp$
|
|
2850
|
+
return children$jscomp$10;
|
|
2819
2851
|
case "img":
|
|
2820
2852
|
var src = props.src,
|
|
2821
2853
|
srcSet = props.srcSet;
|
|
@@ -2879,7 +2911,7 @@
|
|
|
2879
2911
|
fetchPriority: props.fetchPriority,
|
|
2880
2912
|
referrerPolicy: props.refererPolicy
|
|
2881
2913
|
})),
|
|
2882
|
-
|
|
2914
|
+
0 <= (headers.remainingCapacity -= header.length + 2))
|
|
2883
2915
|
? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
|
|
2884
2916
|
headers.highImagePreloads &&
|
|
2885
2917
|
(headers.highImagePreloads += ", "),
|
|
@@ -2932,56 +2964,56 @@
|
|
|
2932
2964
|
null === renderState.headChunks
|
|
2933
2965
|
) {
|
|
2934
2966
|
renderState.headChunks = [];
|
|
2935
|
-
var JSCompiler_inline_result$jscomp$
|
|
2967
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
|
2936
2968
|
renderState.headChunks,
|
|
2937
2969
|
props,
|
|
2938
2970
|
"head"
|
|
2939
2971
|
);
|
|
2940
2972
|
} else
|
|
2941
|
-
JSCompiler_inline_result$jscomp$
|
|
2973
|
+
JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
|
2942
2974
|
target$jscomp$0,
|
|
2943
2975
|
props,
|
|
2944
2976
|
"head"
|
|
2945
2977
|
);
|
|
2946
|
-
return JSCompiler_inline_result$jscomp$
|
|
2978
|
+
return JSCompiler_inline_result$jscomp$9;
|
|
2947
2979
|
case "html":
|
|
2948
2980
|
if (
|
|
2949
2981
|
formatContext.insertionMode === ROOT_HTML_MODE &&
|
|
2950
2982
|
null === renderState.htmlChunks
|
|
2951
2983
|
) {
|
|
2952
2984
|
renderState.htmlChunks = [doctypeChunk];
|
|
2953
|
-
var JSCompiler_inline_result$jscomp$
|
|
2985
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
|
2954
2986
|
renderState.htmlChunks,
|
|
2955
2987
|
props,
|
|
2956
2988
|
"html"
|
|
2957
2989
|
);
|
|
2958
2990
|
} else
|
|
2959
|
-
JSCompiler_inline_result$jscomp$
|
|
2991
|
+
JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
|
2960
2992
|
target$jscomp$0,
|
|
2961
2993
|
props,
|
|
2962
2994
|
"html"
|
|
2963
2995
|
);
|
|
2964
|
-
return JSCompiler_inline_result$jscomp$
|
|
2996
|
+
return JSCompiler_inline_result$jscomp$10;
|
|
2965
2997
|
default:
|
|
2966
2998
|
if (-1 !== type.indexOf("-")) {
|
|
2967
2999
|
target$jscomp$0.push(startChunkForTag(type));
|
|
2968
|
-
var children$jscomp$
|
|
2969
|
-
innerHTML$jscomp$
|
|
2970
|
-
propKey$jscomp$
|
|
2971
|
-
for (propKey$jscomp$
|
|
2972
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
|
2973
|
-
var propValue$jscomp$
|
|
2974
|
-
if (null != propValue$jscomp$
|
|
2975
|
-
var attributeName = propKey$jscomp$
|
|
2976
|
-
switch (propKey$jscomp$
|
|
3000
|
+
var children$jscomp$11 = null,
|
|
3001
|
+
innerHTML$jscomp$8 = null,
|
|
3002
|
+
propKey$jscomp$11;
|
|
3003
|
+
for (propKey$jscomp$11 in props)
|
|
3004
|
+
if (hasOwnProperty.call(props, propKey$jscomp$11)) {
|
|
3005
|
+
var propValue$jscomp$11 = props[propKey$jscomp$11];
|
|
3006
|
+
if (null != propValue$jscomp$11) {
|
|
3007
|
+
var attributeName = propKey$jscomp$11;
|
|
3008
|
+
switch (propKey$jscomp$11) {
|
|
2977
3009
|
case "children":
|
|
2978
|
-
children$jscomp$
|
|
3010
|
+
children$jscomp$11 = propValue$jscomp$11;
|
|
2979
3011
|
break;
|
|
2980
3012
|
case "dangerouslySetInnerHTML":
|
|
2981
|
-
innerHTML$jscomp$
|
|
3013
|
+
innerHTML$jscomp$8 = propValue$jscomp$11;
|
|
2982
3014
|
break;
|
|
2983
3015
|
case "style":
|
|
2984
|
-
pushStyleAttribute(target$jscomp$0, propValue$jscomp$
|
|
3016
|
+
pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
|
|
2985
3017
|
break;
|
|
2986
3018
|
case "suppressContentEditableWarning":
|
|
2987
3019
|
case "suppressHydrationWarning":
|
|
@@ -2991,21 +3023,21 @@
|
|
|
2991
3023
|
attributeName = "class";
|
|
2992
3024
|
default:
|
|
2993
3025
|
if (
|
|
2994
|
-
isAttributeNameSafe(propKey$jscomp$
|
|
2995
|
-
"function" !== typeof propValue$jscomp$
|
|
2996
|
-
"symbol" !== typeof propValue$jscomp$
|
|
2997
|
-
!1 !== propValue$jscomp$
|
|
3026
|
+
isAttributeNameSafe(propKey$jscomp$11) &&
|
|
3027
|
+
"function" !== typeof propValue$jscomp$11 &&
|
|
3028
|
+
"symbol" !== typeof propValue$jscomp$11 &&
|
|
3029
|
+
!1 !== propValue$jscomp$11
|
|
2998
3030
|
) {
|
|
2999
|
-
if (!0 === propValue$jscomp$
|
|
3000
|
-
propValue$jscomp$
|
|
3001
|
-
else if ("object" === typeof propValue$jscomp$
|
|
3031
|
+
if (!0 === propValue$jscomp$11)
|
|
3032
|
+
propValue$jscomp$11 = "";
|
|
3033
|
+
else if ("object" === typeof propValue$jscomp$11)
|
|
3002
3034
|
continue;
|
|
3003
3035
|
target$jscomp$0.push(
|
|
3004
3036
|
attributeSeparator,
|
|
3005
3037
|
stringToChunk(attributeName),
|
|
3006
3038
|
attributeAssign,
|
|
3007
3039
|
stringToChunk(
|
|
3008
|
-
escapeTextForBrowser(propValue$jscomp$
|
|
3040
|
+
escapeTextForBrowser(propValue$jscomp$11)
|
|
3009
3041
|
),
|
|
3010
3042
|
attributeEnd
|
|
3011
3043
|
);
|
|
@@ -3016,10 +3048,10 @@
|
|
|
3016
3048
|
target$jscomp$0.push(endOfStartTag);
|
|
3017
3049
|
pushInnerHTML(
|
|
3018
3050
|
target$jscomp$0,
|
|
3019
|
-
innerHTML$jscomp$
|
|
3020
|
-
children$jscomp$
|
|
3051
|
+
innerHTML$jscomp$8,
|
|
3052
|
+
children$jscomp$11
|
|
3021
3053
|
);
|
|
3022
|
-
return children$jscomp$
|
|
3054
|
+
return children$jscomp$11;
|
|
3023
3055
|
}
|
|
3024
3056
|
}
|
|
3025
3057
|
return pushStartGenericElement(target$jscomp$0, props, type);
|
|
@@ -3177,7 +3209,7 @@
|
|
|
3177
3209
|
hrefs = styleQueue.hrefs;
|
|
3178
3210
|
0 < rules.length &&
|
|
3179
3211
|
0 === hrefs.length &&
|
|
3180
|
-
error
|
|
3212
|
+
console.error(
|
|
3181
3213
|
"React expected to have at least one href for an a hoistable style but found none. This is a bug in React."
|
|
3182
3214
|
);
|
|
3183
3215
|
var i = 0;
|
|
@@ -3413,7 +3445,7 @@
|
|
|
3413
3445
|
) {
|
|
3414
3446
|
(resumableState.scriptResources.hasOwnProperty(href) ||
|
|
3415
3447
|
resumableState.moduleScriptResources.hasOwnProperty(href)) &&
|
|
3416
|
-
error
|
|
3448
|
+
console.error(
|
|
3417
3449
|
'Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',
|
|
3418
3450
|
href
|
|
3419
3451
|
);
|
|
@@ -3471,7 +3503,7 @@
|
|
|
3471
3503
|
}
|
|
3472
3504
|
function escapeStringForLinkHeaderQuotedParamValueContext(value, name) {
|
|
3473
3505
|
willCoercionThrow(value) &&
|
|
3474
|
-
(error
|
|
3506
|
+
(console.error(
|
|
3475
3507
|
"The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
3476
3508
|
name,
|
|
3477
3509
|
typeName(value)
|
|
@@ -3532,7 +3564,7 @@
|
|
|
3532
3564
|
if ("object" === typeof type)
|
|
3533
3565
|
switch (
|
|
3534
3566
|
("number" === typeof type.tag &&
|
|
3535
|
-
error
|
|
3567
|
+
console.error(
|
|
3536
3568
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
3537
3569
|
),
|
|
3538
3570
|
type.$$typeof)
|
|
@@ -3622,12 +3654,12 @@
|
|
|
3622
3654
|
(null === prev
|
|
3623
3655
|
? pushAllNext(newSnapshot)
|
|
3624
3656
|
: null === newSnapshot
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3657
|
+
? popAllPrevious(prev)
|
|
3658
|
+
: prev.depth === newSnapshot.depth
|
|
3659
|
+
? popToNearestCommonAncestor(prev, newSnapshot)
|
|
3660
|
+
: prev.depth > newSnapshot.depth
|
|
3661
|
+
? popPreviousToCommonLevel(prev, newSnapshot)
|
|
3662
|
+
: popNextToCommonLevel(prev, newSnapshot),
|
|
3631
3663
|
(currentActiveSnapshot = newSnapshot));
|
|
3632
3664
|
}
|
|
3633
3665
|
function warnOnInvalidCallback(callback) {
|
|
@@ -3635,7 +3667,7 @@
|
|
|
3635
3667
|
var key = String(callback);
|
|
3636
3668
|
didWarnOnInvalidCallback.has(key) ||
|
|
3637
3669
|
(didWarnOnInvalidCallback.add(key),
|
|
3638
|
-
error
|
|
3670
|
+
console.error(
|
|
3639
3671
|
"Expected the last optional `callback` argument to be a function. Instead received: %s.",
|
|
3640
3672
|
callback
|
|
3641
3673
|
));
|
|
@@ -3648,7 +3680,7 @@
|
|
|
3648
3680
|
"ReactClass";
|
|
3649
3681
|
var warningKey = publicInstance + "." + callerName;
|
|
3650
3682
|
didWarnAboutNoopUpdateForComponent[warningKey] ||
|
|
3651
|
-
(error
|
|
3683
|
+
(console.error(
|
|
3652
3684
|
"Can only update a mounting component. This usually means you called %s() outside componentWillMount() on the server. This is a no-op.\n\nPlease check the code for the %s component.",
|
|
3653
3685
|
callerName,
|
|
3654
3686
|
publicInstance
|
|
@@ -3748,7 +3780,7 @@
|
|
|
3748
3780
|
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
3749
3781
|
);
|
|
3750
3782
|
isInHookUserCodeInDev &&
|
|
3751
|
-
error
|
|
3783
|
+
console.error(
|
|
3752
3784
|
"Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks"
|
|
3753
3785
|
);
|
|
3754
3786
|
return currentlyRenderingComponent;
|
|
@@ -3765,9 +3797,9 @@
|
|
|
3765
3797
|
(firstWorkInProgressHook = workInProgressHook = createHook()))
|
|
3766
3798
|
: ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
|
|
3767
3799
|
: null === workInProgressHook.next
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3800
|
+
? ((isReRender = !1),
|
|
3801
|
+
(workInProgressHook = workInProgressHook.next = createHook()))
|
|
3802
|
+
: ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
|
|
3771
3803
|
return workInProgressHook;
|
|
3772
3804
|
}
|
|
3773
3805
|
function getThenableStateAfterSuspending() {
|
|
@@ -3789,7 +3821,7 @@
|
|
|
3789
3821
|
}
|
|
3790
3822
|
function readContext(context) {
|
|
3791
3823
|
isInHookUserCodeInDev &&
|
|
3792
|
-
error
|
|
3824
|
+
console.error(
|
|
3793
3825
|
"Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."
|
|
3794
3826
|
);
|
|
3795
3827
|
return context._currentValue;
|
|
@@ -3829,8 +3861,8 @@
|
|
|
3829
3861
|
? initialArg()
|
|
3830
3862
|
: initialArg
|
|
3831
3863
|
: void 0 !== init
|
|
3832
|
-
|
|
3833
|
-
|
|
3864
|
+
? init(initialArg)
|
|
3865
|
+
: initialArg;
|
|
3834
3866
|
isInHookUserCodeInDev = !1;
|
|
3835
3867
|
workInProgressHook.memoizedState = reducer;
|
|
3836
3868
|
reducer = workInProgressHook.queue = { last: null, dispatch: null };
|
|
@@ -3851,14 +3883,14 @@
|
|
|
3851
3883
|
a: {
|
|
3852
3884
|
var JSCompiler_inline_result = prevState[1];
|
|
3853
3885
|
if (null === JSCompiler_inline_result)
|
|
3854
|
-
error
|
|
3886
|
+
console.error(
|
|
3855
3887
|
"%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",
|
|
3856
3888
|
currentHookNameInDev
|
|
3857
3889
|
),
|
|
3858
3890
|
(JSCompiler_inline_result = !1);
|
|
3859
3891
|
else {
|
|
3860
3892
|
deps.length !== JSCompiler_inline_result.length &&
|
|
3861
|
-
error
|
|
3893
|
+
console.error(
|
|
3862
3894
|
"The final argument passed to %s changed size between renders. The order and size of this array must remain constant.\n\nPrevious: %s\nIncoming: %s",
|
|
3863
3895
|
currentHookNameInDev,
|
|
3864
3896
|
"[" + deps.join(", ") + "]",
|
|
@@ -4031,7 +4063,7 @@
|
|
|
4031
4063
|
});
|
|
4032
4064
|
}
|
|
4033
4065
|
0 > disabledDepth &&
|
|
4034
|
-
error
|
|
4066
|
+
console.error(
|
|
4035
4067
|
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
4036
4068
|
);
|
|
4037
4069
|
}
|
|
@@ -4042,8 +4074,14 @@
|
|
|
4042
4074
|
} catch (x) {
|
|
4043
4075
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
4044
4076
|
prefix = (match && match[1]) || "";
|
|
4077
|
+
suffix =
|
|
4078
|
+
-1 < x.stack.indexOf("\n at")
|
|
4079
|
+
? " (<anonymous>)"
|
|
4080
|
+
: -1 < x.stack.indexOf("@")
|
|
4081
|
+
? "@unknown:0:0"
|
|
4082
|
+
: "";
|
|
4045
4083
|
}
|
|
4046
|
-
return "\n" + prefix + name;
|
|
4084
|
+
return "\n" + prefix + name + suffix;
|
|
4047
4085
|
}
|
|
4048
4086
|
function describeNativeComponentFrame(fn, construct) {
|
|
4049
4087
|
if (!fn || reentry) return "";
|
|
@@ -4056,64 +4094,64 @@
|
|
|
4056
4094
|
previousDispatcher = ReactSharedInternals.H;
|
|
4057
4095
|
ReactSharedInternals.H = null;
|
|
4058
4096
|
disableLogs();
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
|
|
4065
|
-
};
|
|
4066
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
4067
|
-
set: function () {
|
|
4097
|
+
try {
|
|
4098
|
+
var RunInRootFrame = {
|
|
4099
|
+
DetermineComponentFrameRoot: function () {
|
|
4100
|
+
try {
|
|
4101
|
+
if (construct) {
|
|
4102
|
+
var Fake = function () {
|
|
4068
4103
|
throw Error();
|
|
4104
|
+
};
|
|
4105
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
4106
|
+
set: function () {
|
|
4107
|
+
throw Error();
|
|
4108
|
+
}
|
|
4109
|
+
});
|
|
4110
|
+
if ("object" === typeof Reflect && Reflect.construct) {
|
|
4111
|
+
try {
|
|
4112
|
+
Reflect.construct(Fake, []);
|
|
4113
|
+
} catch (x) {
|
|
4114
|
+
var control = x;
|
|
4115
|
+
}
|
|
4116
|
+
Reflect.construct(fn, [], Fake);
|
|
4117
|
+
} else {
|
|
4118
|
+
try {
|
|
4119
|
+
Fake.call();
|
|
4120
|
+
} catch (x$0) {
|
|
4121
|
+
control = x$0;
|
|
4122
|
+
}
|
|
4123
|
+
fn.call(Fake.prototype);
|
|
4069
4124
|
}
|
|
4070
|
-
});
|
|
4071
|
-
if ("object" === typeof Reflect && Reflect.construct) {
|
|
4072
|
-
try {
|
|
4073
|
-
Reflect.construct(Fake, []);
|
|
4074
|
-
} catch (x) {
|
|
4075
|
-
var control = x;
|
|
4076
|
-
}
|
|
4077
|
-
Reflect.construct(fn, [], Fake);
|
|
4078
4125
|
} else {
|
|
4079
4126
|
try {
|
|
4080
|
-
|
|
4081
|
-
} catch (x$
|
|
4082
|
-
control = x$
|
|
4127
|
+
throw Error();
|
|
4128
|
+
} catch (x$1) {
|
|
4129
|
+
control = x$1;
|
|
4083
4130
|
}
|
|
4084
|
-
fn
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
try {
|
|
4088
|
-
throw Error();
|
|
4089
|
-
} catch (x$1) {
|
|
4090
|
-
control = x$1;
|
|
4131
|
+
(Fake = fn()) &&
|
|
4132
|
+
"function" === typeof Fake.catch &&
|
|
4133
|
+
Fake.catch(function () {});
|
|
4091
4134
|
}
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4135
|
+
} catch (sample) {
|
|
4136
|
+
if (sample && control && "string" === typeof sample.stack)
|
|
4137
|
+
return [sample.stack, control.stack];
|
|
4095
4138
|
}
|
|
4096
|
-
|
|
4097
|
-
if (sample && control && "string" === typeof sample.stack)
|
|
4098
|
-
return [sample.stack, control.stack];
|
|
4139
|
+
return [null, null];
|
|
4099
4140
|
}
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
"DetermineComponentFrameRoot";
|
|
4105
|
-
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
|
4106
|
-
RunInRootFrame.DetermineComponentFrameRoot,
|
|
4107
|
-
"name"
|
|
4108
|
-
);
|
|
4109
|
-
namePropDescriptor &&
|
|
4110
|
-
namePropDescriptor.configurable &&
|
|
4111
|
-
Object.defineProperty(
|
|
4141
|
+
};
|
|
4142
|
+
RunInRootFrame.DetermineComponentFrameRoot.displayName =
|
|
4143
|
+
"DetermineComponentFrameRoot";
|
|
4144
|
+
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
|
4112
4145
|
RunInRootFrame.DetermineComponentFrameRoot,
|
|
4113
|
-
"name"
|
|
4114
|
-
{ value: "DetermineComponentFrameRoot" }
|
|
4146
|
+
"name"
|
|
4115
4147
|
);
|
|
4116
|
-
|
|
4148
|
+
namePropDescriptor &&
|
|
4149
|
+
namePropDescriptor.configurable &&
|
|
4150
|
+
Object.defineProperty(
|
|
4151
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
|
4152
|
+
"name",
|
|
4153
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
4154
|
+
);
|
|
4117
4155
|
var _RunInRootFrame$Deter =
|
|
4118
4156
|
RunInRootFrame.DetermineComponentFrameRoot(),
|
|
4119
4157
|
sampleStack = _RunInRootFrame$Deter[0],
|
|
@@ -4122,54 +4160,58 @@
|
|
|
4122
4160
|
var sampleLines = sampleStack.split("\n"),
|
|
4123
4161
|
controlLines = controlStack.split("\n");
|
|
4124
4162
|
for (
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
!sampleLines[
|
|
4163
|
+
_RunInRootFrame$Deter = namePropDescriptor = 0;
|
|
4164
|
+
namePropDescriptor < sampleLines.length &&
|
|
4165
|
+
!sampleLines[namePropDescriptor].includes(
|
|
4128
4166
|
"DetermineComponentFrameRoot"
|
|
4129
4167
|
);
|
|
4130
4168
|
|
|
4131
4169
|
)
|
|
4132
|
-
|
|
4170
|
+
namePropDescriptor++;
|
|
4133
4171
|
for (
|
|
4134
4172
|
;
|
|
4135
|
-
|
|
4136
|
-
!controlLines[
|
|
4173
|
+
_RunInRootFrame$Deter < controlLines.length &&
|
|
4174
|
+
!controlLines[_RunInRootFrame$Deter].includes(
|
|
4175
|
+
"DetermineComponentFrameRoot"
|
|
4176
|
+
);
|
|
4137
4177
|
|
|
4138
4178
|
)
|
|
4139
|
-
|
|
4179
|
+
_RunInRootFrame$Deter++;
|
|
4140
4180
|
if (
|
|
4141
|
-
|
|
4142
|
-
|
|
4181
|
+
namePropDescriptor === sampleLines.length ||
|
|
4182
|
+
_RunInRootFrame$Deter === controlLines.length
|
|
4143
4183
|
)
|
|
4144
4184
|
for (
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
1 <=
|
|
4148
|
-
0 <=
|
|
4149
|
-
sampleLines[
|
|
4185
|
+
namePropDescriptor = sampleLines.length - 1,
|
|
4186
|
+
_RunInRootFrame$Deter = controlLines.length - 1;
|
|
4187
|
+
1 <= namePropDescriptor &&
|
|
4188
|
+
0 <= _RunInRootFrame$Deter &&
|
|
4189
|
+
sampleLines[namePropDescriptor] !==
|
|
4190
|
+
controlLines[_RunInRootFrame$Deter];
|
|
4150
4191
|
|
|
4151
4192
|
)
|
|
4152
|
-
|
|
4193
|
+
_RunInRootFrame$Deter--;
|
|
4153
4194
|
for (
|
|
4154
4195
|
;
|
|
4155
|
-
1 <=
|
|
4156
|
-
_RunInRootFrame$Deter
|
|
4196
|
+
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
|
|
4197
|
+
namePropDescriptor--, _RunInRootFrame$Deter--
|
|
4157
4198
|
)
|
|
4158
4199
|
if (
|
|
4159
|
-
sampleLines[
|
|
4200
|
+
sampleLines[namePropDescriptor] !==
|
|
4201
|
+
controlLines[_RunInRootFrame$Deter]
|
|
4160
4202
|
) {
|
|
4161
|
-
if (1 !==
|
|
4203
|
+
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
|
|
4162
4204
|
do
|
|
4163
4205
|
if (
|
|
4164
|
-
(
|
|
4165
|
-
|
|
4166
|
-
0 >
|
|
4167
|
-
sampleLines[
|
|
4168
|
-
controlLines[
|
|
4206
|
+
(namePropDescriptor--,
|
|
4207
|
+
_RunInRootFrame$Deter--,
|
|
4208
|
+
0 > _RunInRootFrame$Deter ||
|
|
4209
|
+
sampleLines[namePropDescriptor] !==
|
|
4210
|
+
controlLines[_RunInRootFrame$Deter])
|
|
4169
4211
|
) {
|
|
4170
4212
|
var _frame =
|
|
4171
4213
|
"\n" +
|
|
4172
|
-
sampleLines[
|
|
4214
|
+
sampleLines[namePropDescriptor].replace(
|
|
4173
4215
|
" at new ",
|
|
4174
4216
|
" at "
|
|
4175
4217
|
);
|
|
@@ -4180,7 +4222,7 @@
|
|
|
4180
4222
|
componentFrameCache.set(fn, _frame);
|
|
4181
4223
|
return _frame;
|
|
4182
4224
|
}
|
|
4183
|
-
while (1 <=
|
|
4225
|
+
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
|
|
4184
4226
|
}
|
|
4185
4227
|
break;
|
|
4186
4228
|
}
|
|
@@ -4197,42 +4239,90 @@
|
|
|
4197
4239
|
"function" === typeof fn && componentFrameCache.set(fn, sampleLines);
|
|
4198
4240
|
return sampleLines;
|
|
4199
4241
|
}
|
|
4242
|
+
function describeComponentStackByType(type) {
|
|
4243
|
+
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
4244
|
+
if ("function" === typeof type)
|
|
4245
|
+
return type.prototype && type.prototype.isReactComponent
|
|
4246
|
+
? ((type = describeNativeComponentFrame(type, !0)), type)
|
|
4247
|
+
: describeNativeComponentFrame(type, !1);
|
|
4248
|
+
if ("object" === typeof type && null !== type) {
|
|
4249
|
+
switch (type.$$typeof) {
|
|
4250
|
+
case REACT_FORWARD_REF_TYPE:
|
|
4251
|
+
return describeNativeComponentFrame(type.render, !1);
|
|
4252
|
+
case REACT_MEMO_TYPE:
|
|
4253
|
+
return describeNativeComponentFrame(type.type, !1);
|
|
4254
|
+
case REACT_LAZY_TYPE:
|
|
4255
|
+
var lazyComponent = type,
|
|
4256
|
+
payload = lazyComponent._payload;
|
|
4257
|
+
lazyComponent = lazyComponent._init;
|
|
4258
|
+
try {
|
|
4259
|
+
type = lazyComponent(payload);
|
|
4260
|
+
} catch (x) {
|
|
4261
|
+
return describeBuiltInComponentFrame("Lazy");
|
|
4262
|
+
}
|
|
4263
|
+
return describeComponentStackByType(type);
|
|
4264
|
+
}
|
|
4265
|
+
if ("string" === typeof type.name)
|
|
4266
|
+
return (
|
|
4267
|
+
(payload = type.env),
|
|
4268
|
+
describeBuiltInComponentFrame(
|
|
4269
|
+
type.name + (payload ? " [" + payload + "]" : "")
|
|
4270
|
+
)
|
|
4271
|
+
);
|
|
4272
|
+
}
|
|
4273
|
+
switch (type) {
|
|
4274
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
4275
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
|
4276
|
+
case REACT_SUSPENSE_TYPE:
|
|
4277
|
+
return describeBuiltInComponentFrame("Suspense");
|
|
4278
|
+
}
|
|
4279
|
+
return "";
|
|
4280
|
+
}
|
|
4200
4281
|
function getStackByComponentStackNode(componentStack) {
|
|
4201
4282
|
try {
|
|
4202
4283
|
var info = "";
|
|
4203
|
-
do
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
break;
|
|
4208
|
-
case 1:
|
|
4209
|
-
var JSCompiler_temp_const = info;
|
|
4210
|
-
var JSCompiler_inline_result = describeNativeComponentFrame(
|
|
4211
|
-
componentStack.type,
|
|
4212
|
-
!1
|
|
4213
|
-
);
|
|
4214
|
-
info = JSCompiler_temp_const + JSCompiler_inline_result;
|
|
4215
|
-
break;
|
|
4216
|
-
case 2:
|
|
4217
|
-
JSCompiler_temp_const = info;
|
|
4218
|
-
var JSCompiler_inline_result$jscomp$0 =
|
|
4219
|
-
describeNativeComponentFrame(componentStack.type, !0);
|
|
4220
|
-
info = JSCompiler_temp_const + JSCompiler_inline_result$jscomp$0;
|
|
4221
|
-
}
|
|
4222
|
-
componentStack = componentStack.parent;
|
|
4223
|
-
} while (componentStack);
|
|
4284
|
+
do
|
|
4285
|
+
(info += describeComponentStackByType(componentStack.type)),
|
|
4286
|
+
(componentStack = componentStack.parent);
|
|
4287
|
+
while (componentStack);
|
|
4224
4288
|
return info;
|
|
4225
4289
|
} catch (x) {
|
|
4226
4290
|
return "\nError generating stack: " + x.message + "\n" + x.stack;
|
|
4227
4291
|
}
|
|
4228
4292
|
}
|
|
4229
4293
|
function defaultErrorHandler(error) {
|
|
4230
|
-
|
|
4294
|
+
if (
|
|
4295
|
+
"object" === typeof error &&
|
|
4296
|
+
null !== error &&
|
|
4297
|
+
"string" === typeof error.environmentName
|
|
4298
|
+
) {
|
|
4299
|
+
var JSCompiler_inline_result = error.environmentName;
|
|
4300
|
+
error = [error].slice(0);
|
|
4301
|
+
"string" === typeof error[0]
|
|
4302
|
+
? error.splice(
|
|
4303
|
+
0,
|
|
4304
|
+
1,
|
|
4305
|
+
"%c%s%c " + error[0],
|
|
4306
|
+
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
|
4307
|
+
" " + JSCompiler_inline_result + " ",
|
|
4308
|
+
""
|
|
4309
|
+
)
|
|
4310
|
+
: error.splice(
|
|
4311
|
+
0,
|
|
4312
|
+
0,
|
|
4313
|
+
"%c%s%c ",
|
|
4314
|
+
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
|
4315
|
+
" " + JSCompiler_inline_result + " ",
|
|
4316
|
+
""
|
|
4317
|
+
);
|
|
4318
|
+
error.unshift(console);
|
|
4319
|
+
JSCompiler_inline_result = bind.apply(console.error, error);
|
|
4320
|
+
JSCompiler_inline_result();
|
|
4321
|
+
} else console.error(error);
|
|
4231
4322
|
return null;
|
|
4232
4323
|
}
|
|
4233
4324
|
function noop() {}
|
|
4234
4325
|
function RequestInstance(
|
|
4235
|
-
children,
|
|
4236
4326
|
resumableState,
|
|
4237
4327
|
renderState,
|
|
4238
4328
|
rootFormatContext,
|
|
@@ -4245,8 +4335,7 @@
|
|
|
4245
4335
|
onPostpone,
|
|
4246
4336
|
formState
|
|
4247
4337
|
) {
|
|
4248
|
-
var
|
|
4249
|
-
abortSet = new Set();
|
|
4338
|
+
var abortSet = new Set();
|
|
4250
4339
|
this.destination = null;
|
|
4251
4340
|
this.flushScheduled = !1;
|
|
4252
4341
|
this.resumableState = resumableState;
|
|
@@ -4254,12 +4343,12 @@
|
|
|
4254
4343
|
this.rootFormatContext = rootFormatContext;
|
|
4255
4344
|
this.progressiveChunkSize =
|
|
4256
4345
|
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
|
|
4257
|
-
this.status =
|
|
4346
|
+
this.status = 10;
|
|
4258
4347
|
this.fatalError = null;
|
|
4259
4348
|
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
|
4260
4349
|
this.completedRootSegment = null;
|
|
4261
4350
|
this.abortableTasks = abortSet;
|
|
4262
|
-
this.pingedTasks =
|
|
4351
|
+
this.pingedTasks = [];
|
|
4263
4352
|
this.clientRenderedBoundaries = [];
|
|
4264
4353
|
this.completedBoundaries = [];
|
|
4265
4354
|
this.partialBoundaries = [];
|
|
@@ -4272,35 +4361,64 @@
|
|
|
4272
4361
|
this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
|
|
4273
4362
|
this.formState = void 0 === formState ? null : formState;
|
|
4274
4363
|
this.didWarnForKey = null;
|
|
4275
|
-
|
|
4276
|
-
|
|
4364
|
+
}
|
|
4365
|
+
function createRequest(
|
|
4366
|
+
children,
|
|
4367
|
+
resumableState,
|
|
4368
|
+
renderState,
|
|
4369
|
+
rootFormatContext,
|
|
4370
|
+
progressiveChunkSize,
|
|
4371
|
+
onError,
|
|
4372
|
+
onAllReady,
|
|
4373
|
+
onShellReady,
|
|
4374
|
+
onShellError,
|
|
4375
|
+
onFatalError,
|
|
4376
|
+
onPostpone,
|
|
4377
|
+
formState
|
|
4378
|
+
) {
|
|
4379
|
+
resumableState = new RequestInstance(
|
|
4380
|
+
resumableState,
|
|
4381
|
+
renderState,
|
|
4382
|
+
rootFormatContext,
|
|
4383
|
+
progressiveChunkSize,
|
|
4384
|
+
onError,
|
|
4385
|
+
onAllReady,
|
|
4386
|
+
onShellReady,
|
|
4387
|
+
onShellError,
|
|
4388
|
+
onFatalError,
|
|
4389
|
+
onPostpone,
|
|
4390
|
+
formState
|
|
4391
|
+
);
|
|
4392
|
+
renderState = createPendingSegment(
|
|
4393
|
+
resumableState,
|
|
4277
4394
|
0,
|
|
4278
4395
|
null,
|
|
4279
4396
|
rootFormatContext,
|
|
4280
4397
|
!1,
|
|
4281
4398
|
!1
|
|
4282
4399
|
);
|
|
4283
|
-
|
|
4400
|
+
renderState.parentFlushed = !0;
|
|
4284
4401
|
children = createRenderTask(
|
|
4285
|
-
|
|
4402
|
+
resumableState,
|
|
4286
4403
|
null,
|
|
4287
4404
|
children,
|
|
4288
4405
|
-1,
|
|
4289
4406
|
null,
|
|
4290
|
-
|
|
4407
|
+
renderState,
|
|
4291
4408
|
null,
|
|
4292
|
-
|
|
4409
|
+
resumableState.abortableTasks,
|
|
4293
4410
|
null,
|
|
4294
4411
|
rootFormatContext,
|
|
4295
|
-
emptyContextObject,
|
|
4296
4412
|
null,
|
|
4297
4413
|
emptyTreeContext,
|
|
4298
4414
|
null,
|
|
4299
4415
|
!1
|
|
4300
4416
|
);
|
|
4301
|
-
|
|
4417
|
+
pushComponentStack(children);
|
|
4418
|
+
resumableState.pingedTasks.push(children);
|
|
4419
|
+
return resumableState;
|
|
4302
4420
|
}
|
|
4303
|
-
function
|
|
4421
|
+
function createPrerenderRequest(
|
|
4304
4422
|
children,
|
|
4305
4423
|
resumableState,
|
|
4306
4424
|
renderState,
|
|
@@ -4311,10 +4429,9 @@
|
|
|
4311
4429
|
onShellReady,
|
|
4312
4430
|
onShellError,
|
|
4313
4431
|
onFatalError,
|
|
4314
|
-
onPostpone
|
|
4315
|
-
formState
|
|
4432
|
+
onPostpone
|
|
4316
4433
|
) {
|
|
4317
|
-
|
|
4434
|
+
children = createRequest(
|
|
4318
4435
|
children,
|
|
4319
4436
|
resumableState,
|
|
4320
4437
|
renderState,
|
|
@@ -4326,16 +4443,26 @@
|
|
|
4326
4443
|
onShellError,
|
|
4327
4444
|
onFatalError,
|
|
4328
4445
|
onPostpone,
|
|
4329
|
-
|
|
4446
|
+
void 0
|
|
4330
4447
|
);
|
|
4448
|
+
children.trackedPostpones = {
|
|
4449
|
+
workingMap: new Map(),
|
|
4450
|
+
rootNodes: [],
|
|
4451
|
+
rootSlots: null
|
|
4452
|
+
};
|
|
4453
|
+
return children;
|
|
4331
4454
|
}
|
|
4332
4455
|
function pingTask(request, task) {
|
|
4333
4456
|
request.pingedTasks.push(task);
|
|
4334
4457
|
1 === request.pingedTasks.length &&
|
|
4335
4458
|
((request.flushScheduled = null !== request.destination),
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4459
|
+
null !== request.trackedPostpones || 10 === request.status
|
|
4460
|
+
? scheduleMicrotask(function () {
|
|
4461
|
+
return performWork(request);
|
|
4462
|
+
})
|
|
4463
|
+
: scheduleWork(function () {
|
|
4464
|
+
return performWork(request);
|
|
4465
|
+
}));
|
|
4339
4466
|
}
|
|
4340
4467
|
function createSuspenseBoundary(request, fallbackAbortableTasks) {
|
|
4341
4468
|
return {
|
|
@@ -4367,7 +4494,6 @@
|
|
|
4367
4494
|
abortSet,
|
|
4368
4495
|
keyPath,
|
|
4369
4496
|
formatContext,
|
|
4370
|
-
legacyContext,
|
|
4371
4497
|
context,
|
|
4372
4498
|
treeContext,
|
|
4373
4499
|
componentStack,
|
|
@@ -4390,7 +4516,6 @@
|
|
|
4390
4516
|
abortSet: abortSet,
|
|
4391
4517
|
keyPath: keyPath,
|
|
4392
4518
|
formatContext: formatContext,
|
|
4393
|
-
legacyContext: legacyContext,
|
|
4394
4519
|
context: context,
|
|
4395
4520
|
treeContext: treeContext,
|
|
4396
4521
|
componentStack: componentStack,
|
|
@@ -4411,7 +4536,6 @@
|
|
|
4411
4536
|
abortSet,
|
|
4412
4537
|
keyPath,
|
|
4413
4538
|
formatContext,
|
|
4414
|
-
legacyContext,
|
|
4415
4539
|
context,
|
|
4416
4540
|
treeContext,
|
|
4417
4541
|
componentStack,
|
|
@@ -4435,7 +4559,6 @@
|
|
|
4435
4559
|
abortSet: abortSet,
|
|
4436
4560
|
keyPath: keyPath,
|
|
4437
4561
|
formatContext: formatContext,
|
|
4438
|
-
legacyContext: legacyContext,
|
|
4439
4562
|
context: context,
|
|
4440
4563
|
treeContext: treeContext,
|
|
4441
4564
|
componentStack: componentStack,
|
|
@@ -4472,11 +4595,57 @@
|
|
|
4472
4595
|
? ""
|
|
4473
4596
|
: getStackByComponentStackNode(currentTaskInDEV.componentStack);
|
|
4474
4597
|
}
|
|
4475
|
-
function
|
|
4476
|
-
|
|
4598
|
+
function pushServerComponentStack(task, debugInfo) {
|
|
4599
|
+
if (null != debugInfo)
|
|
4600
|
+
for (var i = 0; i < debugInfo.length; i++) {
|
|
4601
|
+
var componentInfo = debugInfo[i];
|
|
4602
|
+
"string" === typeof componentInfo.name &&
|
|
4603
|
+
(task.componentStack = {
|
|
4604
|
+
parent: task.componentStack,
|
|
4605
|
+
type: componentInfo,
|
|
4606
|
+
owner: componentInfo.owner,
|
|
4607
|
+
stack: null
|
|
4608
|
+
});
|
|
4609
|
+
}
|
|
4610
|
+
}
|
|
4611
|
+
function pushComponentStack(task) {
|
|
4612
|
+
var node = task.node;
|
|
4613
|
+
if ("object" === typeof node && null !== node)
|
|
4614
|
+
switch (node.$$typeof) {
|
|
4615
|
+
case REACT_ELEMENT_TYPE:
|
|
4616
|
+
var type = node.type,
|
|
4617
|
+
owner = node._owner;
|
|
4618
|
+
pushServerComponentStack(task, node._debugInfo);
|
|
4619
|
+
task.componentStack = {
|
|
4620
|
+
parent: task.componentStack,
|
|
4621
|
+
type: type,
|
|
4622
|
+
owner: owner,
|
|
4623
|
+
stack: null
|
|
4624
|
+
};
|
|
4625
|
+
break;
|
|
4626
|
+
case REACT_LAZY_TYPE:
|
|
4627
|
+
pushServerComponentStack(task, node._debugInfo);
|
|
4628
|
+
break;
|
|
4629
|
+
default:
|
|
4630
|
+
"function" === typeof node.then &&
|
|
4631
|
+
pushServerComponentStack(task, node._debugInfo);
|
|
4632
|
+
}
|
|
4477
4633
|
}
|
|
4478
|
-
function getThrownInfo(
|
|
4479
|
-
|
|
4634
|
+
function getThrownInfo(node) {
|
|
4635
|
+
var errorInfo = {};
|
|
4636
|
+
node &&
|
|
4637
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
|
4638
|
+
configurable: !0,
|
|
4639
|
+
enumerable: !0,
|
|
4640
|
+
get: function () {
|
|
4641
|
+
var stack = getStackByComponentStackNode(node);
|
|
4642
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
|
4643
|
+
value: stack
|
|
4644
|
+
});
|
|
4645
|
+
return stack;
|
|
4646
|
+
}
|
|
4647
|
+
});
|
|
4648
|
+
return errorInfo;
|
|
4480
4649
|
}
|
|
4481
4650
|
function encodeErrorForBoundary(
|
|
4482
4651
|
boundary,
|
|
@@ -4500,23 +4669,25 @@
|
|
|
4500
4669
|
boundary.errorStack = null !== error ? wasAborted + error : null;
|
|
4501
4670
|
boundary.errorComponentStack = thrownInfo.componentStack;
|
|
4502
4671
|
}
|
|
4503
|
-
function logRecoverableError(request, error
|
|
4504
|
-
request = request.onError
|
|
4505
|
-
|
|
4506
|
-
|
|
4672
|
+
function logRecoverableError(request, error, errorInfo) {
|
|
4673
|
+
request = request.onError;
|
|
4674
|
+
error = request(error, errorInfo);
|
|
4675
|
+
if (null != error && "string" !== typeof error)
|
|
4676
|
+
console.error(
|
|
4507
4677
|
'onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "%s" instead',
|
|
4508
|
-
typeof
|
|
4678
|
+
typeof error
|
|
4509
4679
|
);
|
|
4510
|
-
else return
|
|
4680
|
+
else return error;
|
|
4511
4681
|
}
|
|
4512
4682
|
function fatalError(request, error) {
|
|
4513
|
-
var onShellError = request.onShellError
|
|
4514
|
-
|
|
4515
|
-
onShellError = request.onFatalError;
|
|
4683
|
+
var onShellError = request.onShellError,
|
|
4684
|
+
onFatalError = request.onFatalError;
|
|
4516
4685
|
onShellError(error);
|
|
4686
|
+
onFatalError(error);
|
|
4517
4687
|
null !== request.destination
|
|
4518
|
-
? ((request.status =
|
|
4519
|
-
|
|
4688
|
+
? ((request.status = CLOSED),
|
|
4689
|
+
closeWithError(request.destination, error))
|
|
4690
|
+
: ((request.status = 13), (request.fatalError = error));
|
|
4520
4691
|
}
|
|
4521
4692
|
function renderWithHooks(
|
|
4522
4693
|
request,
|
|
@@ -4538,7 +4709,7 @@
|
|
|
4538
4709
|
thenableIndexCounter = 0;
|
|
4539
4710
|
thenableState = prevThenableState;
|
|
4540
4711
|
for (
|
|
4541
|
-
request = Component
|
|
4712
|
+
request = callComponentInDEV(Component, props, secondArg);
|
|
4542
4713
|
didScheduleRenderPhaseUpdate;
|
|
4543
4714
|
|
|
4544
4715
|
)
|
|
@@ -4581,8 +4752,8 @@
|
|
|
4581
4752
|
renderNode(request, task, children, -1),
|
|
4582
4753
|
(task.treeContext = keyPath))
|
|
4583
4754
|
: didEmitActionStateMarkers
|
|
4584
|
-
|
|
4585
|
-
|
|
4755
|
+
? renderNode(request, task, children, -1)
|
|
4756
|
+
: renderNodeDestructive(request, task, children, -1);
|
|
4586
4757
|
task.keyPath = actionStateCount;
|
|
4587
4758
|
}
|
|
4588
4759
|
function renderElement(request, task, keyPath, type, props, ref) {
|
|
@@ -4602,12 +4773,6 @@
|
|
|
4602
4773
|
(newProps[_propName] = defaultProps[_propName]);
|
|
4603
4774
|
}
|
|
4604
4775
|
var resolvedProps = newProps;
|
|
4605
|
-
var previousComponentStack = task.componentStack;
|
|
4606
|
-
task.componentStack = {
|
|
4607
|
-
tag: 2,
|
|
4608
|
-
parent: task.componentStack,
|
|
4609
|
-
type: type
|
|
4610
|
-
};
|
|
4611
4776
|
var context = emptyContextObject,
|
|
4612
4777
|
contextType = type.contextType;
|
|
4613
4778
|
if (
|
|
@@ -4622,13 +4787,13 @@
|
|
|
4622
4787
|
void 0 === contextType
|
|
4623
4788
|
? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file."
|
|
4624
4789
|
: "object" !== typeof contextType
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
error
|
|
4790
|
+
? " However, it is set to a " + typeof contextType + "."
|
|
4791
|
+
: contextType.$$typeof === REACT_CONSUMER_TYPE
|
|
4792
|
+
? " Did you accidentally pass the Context.Consumer instead?"
|
|
4793
|
+
: " However, it is set to an object with keys {" +
|
|
4794
|
+
Object.keys(contextType).join(", ") +
|
|
4795
|
+
"}.";
|
|
4796
|
+
console.error(
|
|
4632
4797
|
"%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",
|
|
4633
4798
|
getComponentNameFromType(type) || "Component",
|
|
4634
4799
|
addendum
|
|
@@ -4645,7 +4810,7 @@
|
|
|
4645
4810
|
var componentName = getComponentNameFromType(type) || "Component";
|
|
4646
4811
|
didWarnAboutUninitializedState.has(componentName) ||
|
|
4647
4812
|
(didWarnAboutUninitializedState.add(componentName),
|
|
4648
|
-
error
|
|
4813
|
+
console.error(
|
|
4649
4814
|
"`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",
|
|
4650
4815
|
componentName,
|
|
4651
4816
|
null === instance.state ? "null" : "undefined",
|
|
@@ -4692,7 +4857,7 @@
|
|
|
4692
4857
|
(didWarnAboutLegacyLifecyclesAndDerivedState.add(
|
|
4693
4858
|
_componentName
|
|
4694
4859
|
),
|
|
4695
|
-
error
|
|
4860
|
+
console.error(
|
|
4696
4861
|
"Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles",
|
|
4697
4862
|
_componentName,
|
|
4698
4863
|
newApiName,
|
|
@@ -4711,88 +4876,87 @@
|
|
|
4711
4876
|
var name = getComponentNameFromType(type) || "Component";
|
|
4712
4877
|
instance.render ||
|
|
4713
4878
|
(type.prototype && "function" === typeof type.prototype.render
|
|
4714
|
-
? error
|
|
4879
|
+
? console.error(
|
|
4715
4880
|
"No `render` method found on the %s instance: did you accidentally return an object from the constructor?",
|
|
4716
4881
|
name
|
|
4717
4882
|
)
|
|
4718
|
-
: error
|
|
4883
|
+
: console.error(
|
|
4719
4884
|
"No `render` method found on the %s instance: you may have forgotten to define `render`.",
|
|
4720
4885
|
name
|
|
4721
4886
|
));
|
|
4722
4887
|
!instance.getInitialState ||
|
|
4723
4888
|
instance.getInitialState.isReactClassApproved ||
|
|
4724
4889
|
instance.state ||
|
|
4725
|
-
error
|
|
4890
|
+
console.error(
|
|
4726
4891
|
"getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",
|
|
4727
4892
|
name
|
|
4728
4893
|
);
|
|
4729
4894
|
instance.getDefaultProps &&
|
|
4730
4895
|
!instance.getDefaultProps.isReactClassApproved &&
|
|
4731
|
-
error
|
|
4896
|
+
console.error(
|
|
4732
4897
|
"getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",
|
|
4733
4898
|
name
|
|
4734
4899
|
);
|
|
4735
|
-
instance.propTypes &&
|
|
4736
|
-
error$jscomp$2(
|
|
4737
|
-
"propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",
|
|
4738
|
-
name
|
|
4739
|
-
);
|
|
4740
4900
|
instance.contextType &&
|
|
4741
|
-
error
|
|
4901
|
+
console.error(
|
|
4742
4902
|
"contextType was defined as an instance property on %s. Use a static property to define contextType instead.",
|
|
4743
4903
|
name
|
|
4744
4904
|
);
|
|
4745
4905
|
type.childContextTypes &&
|
|
4746
|
-
|
|
4747
|
-
|
|
4906
|
+
!didWarnAboutChildContextTypes.has(type) &&
|
|
4907
|
+
(didWarnAboutChildContextTypes.add(type),
|
|
4908
|
+
console.error(
|
|
4909
|
+
"%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
|
|
4748
4910
|
name
|
|
4749
|
-
);
|
|
4911
|
+
));
|
|
4750
4912
|
type.contextTypes &&
|
|
4751
|
-
|
|
4752
|
-
|
|
4913
|
+
!didWarnAboutContextTypes$1.has(type) &&
|
|
4914
|
+
(didWarnAboutContextTypes$1.add(type),
|
|
4915
|
+
console.error(
|
|
4916
|
+
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",
|
|
4753
4917
|
name
|
|
4754
|
-
);
|
|
4918
|
+
));
|
|
4755
4919
|
"function" === typeof instance.componentShouldUpdate &&
|
|
4756
|
-
error
|
|
4920
|
+
console.error(
|
|
4757
4921
|
"%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",
|
|
4758
4922
|
name
|
|
4759
4923
|
);
|
|
4760
4924
|
type.prototype &&
|
|
4761
4925
|
type.prototype.isPureReactComponent &&
|
|
4762
4926
|
"undefined" !== typeof instance.shouldComponentUpdate &&
|
|
4763
|
-
error
|
|
4927
|
+
console.error(
|
|
4764
4928
|
"%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",
|
|
4765
4929
|
getComponentNameFromType(type) || "A pure component"
|
|
4766
4930
|
);
|
|
4767
4931
|
"function" === typeof instance.componentDidUnmount &&
|
|
4768
|
-
error
|
|
4932
|
+
console.error(
|
|
4769
4933
|
"%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",
|
|
4770
4934
|
name
|
|
4771
4935
|
);
|
|
4772
4936
|
"function" === typeof instance.componentDidReceiveProps &&
|
|
4773
|
-
error
|
|
4937
|
+
console.error(
|
|
4774
4938
|
"%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",
|
|
4775
4939
|
name
|
|
4776
4940
|
);
|
|
4777
4941
|
"function" === typeof instance.componentWillRecieveProps &&
|
|
4778
|
-
error
|
|
4942
|
+
console.error(
|
|
4779
4943
|
"%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",
|
|
4780
4944
|
name
|
|
4781
4945
|
);
|
|
4782
4946
|
"function" === typeof instance.UNSAFE_componentWillRecieveProps &&
|
|
4783
|
-
error
|
|
4947
|
+
console.error(
|
|
4784
4948
|
"%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",
|
|
4785
4949
|
name
|
|
4786
4950
|
);
|
|
4787
4951
|
var hasMutatedProps = instance.props !== resolvedProps;
|
|
4788
4952
|
void 0 !== instance.props &&
|
|
4789
4953
|
hasMutatedProps &&
|
|
4790
|
-
error
|
|
4954
|
+
console.error(
|
|
4791
4955
|
"When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",
|
|
4792
4956
|
name
|
|
4793
4957
|
);
|
|
4794
4958
|
instance.defaultProps &&
|
|
4795
|
-
error
|
|
4959
|
+
console.error(
|
|
4796
4960
|
"Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",
|
|
4797
4961
|
name,
|
|
4798
4962
|
name
|
|
@@ -4801,32 +4965,32 @@
|
|
|
4801
4965
|
"function" === typeof instance.componentDidUpdate ||
|
|
4802
4966
|
didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type) ||
|
|
4803
4967
|
(didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type),
|
|
4804
|
-
error
|
|
4968
|
+
console.error(
|
|
4805
4969
|
"%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",
|
|
4806
4970
|
getComponentNameFromType(type)
|
|
4807
4971
|
));
|
|
4808
4972
|
"function" === typeof instance.getDerivedStateFromProps &&
|
|
4809
|
-
error
|
|
4973
|
+
console.error(
|
|
4810
4974
|
"%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
|
|
4811
4975
|
name
|
|
4812
4976
|
);
|
|
4813
4977
|
"function" === typeof instance.getDerivedStateFromError &&
|
|
4814
|
-
error
|
|
4978
|
+
console.error(
|
|
4815
4979
|
"%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
|
|
4816
4980
|
name
|
|
4817
4981
|
);
|
|
4818
4982
|
"function" === typeof type.getSnapshotBeforeUpdate &&
|
|
4819
|
-
error
|
|
4983
|
+
console.error(
|
|
4820
4984
|
"%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",
|
|
4821
4985
|
name
|
|
4822
4986
|
);
|
|
4823
4987
|
var state = instance.state;
|
|
4824
4988
|
state &&
|
|
4825
4989
|
("object" !== typeof state || isArrayImpl(state)) &&
|
|
4826
|
-
error
|
|
4990
|
+
console.error("%s.state: must be set to an object or null", name);
|
|
4827
4991
|
"function" === typeof instance.getChildContext &&
|
|
4828
4992
|
"object" !== typeof type.childContextTypes &&
|
|
4829
|
-
error
|
|
4993
|
+
console.error(
|
|
4830
4994
|
"%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",
|
|
4831
4995
|
name
|
|
4832
4996
|
);
|
|
@@ -4851,7 +5015,7 @@
|
|
|
4851
5015
|
(didWarnAboutDirectlyAssigningPropsToState.add(
|
|
4852
5016
|
componentName$jscomp$0
|
|
4853
5017
|
),
|
|
4854
|
-
error
|
|
5018
|
+
console.error(
|
|
4855
5019
|
"%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",
|
|
4856
5020
|
componentName$jscomp$0
|
|
4857
5021
|
));
|
|
@@ -4867,7 +5031,7 @@
|
|
|
4867
5031
|
getComponentNameFromType(type) || "Component";
|
|
4868
5032
|
didWarnAboutUndefinedDerivedState.has(componentName$jscomp$1) ||
|
|
4869
5033
|
(didWarnAboutUndefinedDerivedState.add(componentName$jscomp$1),
|
|
4870
|
-
error
|
|
5034
|
+
console.error(
|
|
4871
5035
|
"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
|
|
4872
5036
|
componentName$jscomp$1
|
|
4873
5037
|
));
|
|
@@ -4892,7 +5056,7 @@
|
|
|
4892
5056
|
var componentName$jscomp$2 =
|
|
4893
5057
|
getComponentNameFromType(type) || "Unknown";
|
|
4894
5058
|
didWarnAboutDeprecatedWillMount[componentName$jscomp$2] ||
|
|
4895
|
-
(warn(
|
|
5059
|
+
(console.warn(
|
|
4896
5060
|
"componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.\n\n* Move code from componentWillMount to componentDidMount (preferred in most cases) or the constructor.\n\nPlease update the following components: %s",
|
|
4897
5061
|
componentName$jscomp$2
|
|
4898
5062
|
),
|
|
@@ -4904,7 +5068,7 @@
|
|
|
4904
5068
|
"function" === typeof instance.UNSAFE_componentWillMount &&
|
|
4905
5069
|
instance.UNSAFE_componentWillMount();
|
|
4906
5070
|
oldState !== instance.state &&
|
|
4907
|
-
(error
|
|
5071
|
+
(console.error(
|
|
4908
5072
|
"%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
|
|
4909
5073
|
getComponentNameFromType(type) || "Component"
|
|
4910
5074
|
),
|
|
@@ -4955,10 +5119,11 @@
|
|
|
4955
5119
|
}
|
|
4956
5120
|
} else internalInstance.queue = null;
|
|
4957
5121
|
}
|
|
4958
|
-
var nextChildren = instance
|
|
5122
|
+
var nextChildren = callRenderInDEV(instance);
|
|
5123
|
+
if (12 === request.status) throw null;
|
|
4959
5124
|
instance.props !== resolvedProps &&
|
|
4960
5125
|
(didWarnAboutReassigningProps ||
|
|
4961
|
-
error
|
|
5126
|
+
console.error(
|
|
4962
5127
|
"It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",
|
|
4963
5128
|
getComponentNameFromType(type) || "a component"
|
|
4964
5129
|
),
|
|
@@ -4967,19 +5132,12 @@
|
|
|
4967
5132
|
task.keyPath = keyPath;
|
|
4968
5133
|
renderNodeDestructive(request, task, nextChildren, -1);
|
|
4969
5134
|
task.keyPath = prevKeyPath;
|
|
4970
|
-
task.componentStack = previousComponentStack;
|
|
4971
5135
|
} else {
|
|
4972
|
-
var previousComponentStack$jscomp$0 = task.componentStack;
|
|
4973
|
-
task.componentStack = {
|
|
4974
|
-
tag: 1,
|
|
4975
|
-
parent: task.componentStack,
|
|
4976
|
-
type: type
|
|
4977
|
-
};
|
|
4978
5136
|
if (type.prototype && "function" === typeof type.prototype.render) {
|
|
4979
5137
|
var componentName$jscomp$3 =
|
|
4980
5138
|
getComponentNameFromType(type) || "Unknown";
|
|
4981
5139
|
didWarnAboutBadClass[componentName$jscomp$3] ||
|
|
4982
|
-
(error
|
|
5140
|
+
(console.error(
|
|
4983
5141
|
"The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",
|
|
4984
5142
|
componentName$jscomp$3,
|
|
4985
5143
|
componentName$jscomp$3
|
|
@@ -4987,52 +5145,54 @@
|
|
|
4987
5145
|
(didWarnAboutBadClass[componentName$jscomp$3] = !0));
|
|
4988
5146
|
}
|
|
4989
5147
|
var value = renderWithHooks(
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
5148
|
+
request,
|
|
5149
|
+
task,
|
|
5150
|
+
keyPath,
|
|
5151
|
+
type,
|
|
5152
|
+
props,
|
|
5153
|
+
void 0
|
|
5154
|
+
);
|
|
5155
|
+
if (12 === request.status) throw null;
|
|
5156
|
+
var hasId = 0 !== localIdCounter,
|
|
4998
5157
|
actionStateCount = actionStateCounter,
|
|
4999
5158
|
actionStateMatchingIndex$jscomp$0 = actionStateMatchingIndex;
|
|
5000
|
-
type.contextTypes
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5159
|
+
if (type.contextTypes) {
|
|
5160
|
+
var _componentName$jscomp$0 =
|
|
5161
|
+
getComponentNameFromType(type) || "Unknown";
|
|
5162
|
+
didWarnAboutContextTypes[_componentName$jscomp$0] ||
|
|
5163
|
+
((didWarnAboutContextTypes[_componentName$jscomp$0] = !0),
|
|
5164
|
+
console.error(
|
|
5165
|
+
"%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",
|
|
5166
|
+
_componentName$jscomp$0
|
|
5167
|
+
));
|
|
5168
|
+
}
|
|
5005
5169
|
type &&
|
|
5006
5170
|
type.childContextTypes &&
|
|
5007
|
-
error
|
|
5171
|
+
console.error(
|
|
5008
5172
|
"childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...",
|
|
5009
5173
|
type.displayName || type.name || "Component"
|
|
5010
5174
|
);
|
|
5011
5175
|
if ("function" === typeof type.getDerivedStateFromProps) {
|
|
5012
|
-
var
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
_componentName$jscomp$0
|
|
5016
|
-
] ||
|
|
5017
|
-
(error$jscomp$2(
|
|
5176
|
+
var _componentName2 = getComponentNameFromType(type) || "Unknown";
|
|
5177
|
+
didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] ||
|
|
5178
|
+
(console.error(
|
|
5018
5179
|
"%s: Function components do not support getDerivedStateFromProps.",
|
|
5019
|
-
|
|
5180
|
+
_componentName2
|
|
5020
5181
|
),
|
|
5021
|
-
(didWarnAboutGetDerivedStateOnFunctionComponent[
|
|
5022
|
-
|
|
5023
|
-
] = !0));
|
|
5182
|
+
(didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] =
|
|
5183
|
+
!0));
|
|
5024
5184
|
}
|
|
5025
5185
|
if (
|
|
5026
5186
|
"object" === typeof type.contextType &&
|
|
5027
5187
|
null !== type.contextType
|
|
5028
5188
|
) {
|
|
5029
|
-
var
|
|
5030
|
-
didWarnAboutContextTypeOnFunctionComponent[
|
|
5031
|
-
(error
|
|
5189
|
+
var _componentName3 = getComponentNameFromType(type) || "Unknown";
|
|
5190
|
+
didWarnAboutContextTypeOnFunctionComponent[_componentName3] ||
|
|
5191
|
+
(console.error(
|
|
5032
5192
|
"%s: Function components do not support contextType.",
|
|
5033
|
-
|
|
5193
|
+
_componentName3
|
|
5034
5194
|
),
|
|
5035
|
-
(didWarnAboutContextTypeOnFunctionComponent[
|
|
5195
|
+
(didWarnAboutContextTypeOnFunctionComponent[_componentName3] =
|
|
5036
5196
|
!0));
|
|
5037
5197
|
}
|
|
5038
5198
|
finishFunctionComponent(
|
|
@@ -5044,11 +5204,8 @@
|
|
|
5044
5204
|
actionStateCount,
|
|
5045
5205
|
actionStateMatchingIndex$jscomp$0
|
|
5046
5206
|
);
|
|
5047
|
-
task.componentStack = previousComponentStack$jscomp$0;
|
|
5048
5207
|
}
|
|
5049
5208
|
else if ("string" === typeof type) {
|
|
5050
|
-
var previousComponentStack$jscomp$1 = task.componentStack;
|
|
5051
|
-
task.componentStack = createBuiltInComponentStack(task, type);
|
|
5052
5209
|
var segment = task.blockedSegment;
|
|
5053
5210
|
if (null === segment) {
|
|
5054
5211
|
var children = props.children,
|
|
@@ -5118,7 +5275,6 @@
|
|
|
5118
5275
|
}
|
|
5119
5276
|
segment.lastPushedText = !1;
|
|
5120
5277
|
}
|
|
5121
|
-
task.componentStack = previousComponentStack$jscomp$1;
|
|
5122
5278
|
} else {
|
|
5123
5279
|
switch (type) {
|
|
5124
5280
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
@@ -5140,16 +5296,10 @@
|
|
|
5140
5296
|
}
|
|
5141
5297
|
return;
|
|
5142
5298
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
5143
|
-
var preiousComponentStack = task.componentStack;
|
|
5144
|
-
task.componentStack = createBuiltInComponentStack(
|
|
5145
|
-
task,
|
|
5146
|
-
"SuspenseList"
|
|
5147
|
-
);
|
|
5148
5299
|
var _prevKeyPath3 = task.keyPath;
|
|
5149
5300
|
task.keyPath = keyPath;
|
|
5150
5301
|
renderNodeDestructive(request, task, props.children, -1);
|
|
5151
5302
|
task.keyPath = _prevKeyPath3;
|
|
5152
|
-
task.componentStack = preiousComponentStack;
|
|
5153
5303
|
return;
|
|
5154
5304
|
case REACT_SCOPE_TYPE:
|
|
5155
5305
|
throw Error(
|
|
@@ -5166,10 +5316,7 @@
|
|
|
5166
5316
|
task.keyPath = _prevKeyPath;
|
|
5167
5317
|
}
|
|
5168
5318
|
} else {
|
|
5169
|
-
var
|
|
5170
|
-
suspenseComponentStack = (task.componentStack =
|
|
5171
|
-
createBuiltInComponentStack(task, "Suspense")),
|
|
5172
|
-
prevKeyPath$jscomp$3 = task.keyPath,
|
|
5319
|
+
var prevKeyPath$jscomp$3 = task.keyPath,
|
|
5173
5320
|
parentBoundary = task.blockedBoundary,
|
|
5174
5321
|
parentHoistableState = task.hoistableState,
|
|
5175
5322
|
parentSegment = task.blockedSegment,
|
|
@@ -5198,101 +5345,131 @@
|
|
|
5198
5345
|
!1
|
|
5199
5346
|
);
|
|
5200
5347
|
contentRootSegment.parentFlushed = !0;
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5348
|
+
if (null !== request.trackedPostpones) {
|
|
5349
|
+
var fallbackKeyPath = [
|
|
5350
|
+
keyPath[0],
|
|
5351
|
+
"Suspense Fallback",
|
|
5352
|
+
keyPath[2]
|
|
5353
|
+
],
|
|
5354
|
+
fallbackReplayNode = [
|
|
5355
|
+
fallbackKeyPath[1],
|
|
5356
|
+
fallbackKeyPath[2],
|
|
5357
|
+
[],
|
|
5358
|
+
null
|
|
5359
|
+
];
|
|
5360
|
+
request.trackedPostpones.workingMap.set(
|
|
5361
|
+
fallbackKeyPath,
|
|
5362
|
+
fallbackReplayNode
|
|
5363
|
+
);
|
|
5364
|
+
newBoundary.trackedFallbackNode = fallbackReplayNode;
|
|
5365
|
+
task.blockedSegment = boundarySegment;
|
|
5366
|
+
task.keyPath = fallbackKeyPath;
|
|
5367
|
+
boundarySegment.status = 6;
|
|
5368
|
+
try {
|
|
5369
|
+
renderNode(request, task, fallback, -1),
|
|
5370
|
+
boundarySegment.lastPushedText &&
|
|
5371
|
+
boundarySegment.textEmbedded &&
|
|
5372
|
+
boundarySegment.chunks.push(textSeparator),
|
|
5373
|
+
(boundarySegment.status = COMPLETED);
|
|
5374
|
+
} catch (thrownValue) {
|
|
5375
|
+
throw (
|
|
5376
|
+
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
|
5377
|
+
thrownValue)
|
|
5378
|
+
);
|
|
5379
|
+
} finally {
|
|
5380
|
+
(task.blockedSegment = parentSegment),
|
|
5381
|
+
(task.keyPath = prevKeyPath$jscomp$3);
|
|
5219
5382
|
}
|
|
5220
|
-
|
|
5221
|
-
contentRootSegment.status = 4;
|
|
5222
|
-
newBoundary.status = CLIENT_RENDERED;
|
|
5223
|
-
var thrownInfo = getThrownInfo(request, task.componentStack);
|
|
5224
|
-
var errorDigest = logRecoverableError(
|
|
5383
|
+
var suspendedPrimaryTask = createRenderTask(
|
|
5225
5384
|
request,
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
encodeErrorForBoundary(
|
|
5385
|
+
null,
|
|
5386
|
+
content,
|
|
5387
|
+
-1,
|
|
5230
5388
|
newBoundary,
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5389
|
+
contentRootSegment,
|
|
5390
|
+
newBoundary.contentState,
|
|
5391
|
+
task.abortSet,
|
|
5392
|
+
keyPath,
|
|
5393
|
+
task.formatContext,
|
|
5394
|
+
task.context,
|
|
5395
|
+
task.treeContext,
|
|
5396
|
+
task.componentStack,
|
|
5397
|
+
task.isFallback
|
|
5235
5398
|
);
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5399
|
+
pushComponentStack(suspendedPrimaryTask);
|
|
5400
|
+
request.pingedTasks.push(suspendedPrimaryTask);
|
|
5401
|
+
} else {
|
|
5402
|
+
task.blockedBoundary = newBoundary;
|
|
5403
|
+
task.hoistableState = newBoundary.contentState;
|
|
5404
|
+
task.blockedSegment = contentRootSegment;
|
|
5405
|
+
task.keyPath = keyPath;
|
|
5406
|
+
contentRootSegment.status = 6;
|
|
5407
|
+
try {
|
|
5408
|
+
if (
|
|
5409
|
+
(renderNode(request, task, content, -1),
|
|
5410
|
+
contentRootSegment.lastPushedText &&
|
|
5411
|
+
contentRootSegment.textEmbedded &&
|
|
5412
|
+
contentRootSegment.chunks.push(textSeparator),
|
|
5413
|
+
(contentRootSegment.status = COMPLETED),
|
|
5414
|
+
queueCompletedSegment(newBoundary, contentRootSegment),
|
|
5415
|
+
0 === newBoundary.pendingTasks &&
|
|
5416
|
+
newBoundary.status === PENDING)
|
|
5417
|
+
) {
|
|
5418
|
+
newBoundary.status = COMPLETED;
|
|
5419
|
+
break a;
|
|
5420
|
+
}
|
|
5421
|
+
} catch (thrownValue$2) {
|
|
5422
|
+
newBoundary.status = CLIENT_RENDERED;
|
|
5423
|
+
if (12 === request.status) {
|
|
5424
|
+
contentRootSegment.status = 3;
|
|
5425
|
+
var error = request.fatalError;
|
|
5426
|
+
} else
|
|
5427
|
+
(contentRootSegment.status = 4), (error = thrownValue$2);
|
|
5428
|
+
var thrownInfo = getThrownInfo(task.componentStack);
|
|
5429
|
+
var errorDigest = logRecoverableError(
|
|
5430
|
+
request,
|
|
5431
|
+
error,
|
|
5432
|
+
thrownInfo
|
|
5433
|
+
);
|
|
5434
|
+
encodeErrorForBoundary(
|
|
5435
|
+
newBoundary,
|
|
5436
|
+
errorDigest,
|
|
5437
|
+
error,
|
|
5438
|
+
thrownInfo,
|
|
5439
|
+
!1
|
|
5440
|
+
);
|
|
5441
|
+
untrackBoundary(request, newBoundary);
|
|
5442
|
+
} finally {
|
|
5443
|
+
(task.blockedBoundary = parentBoundary),
|
|
5444
|
+
(task.hoistableState = parentHoistableState),
|
|
5445
|
+
(task.blockedSegment = parentSegment),
|
|
5446
|
+
(task.keyPath = prevKeyPath$jscomp$3);
|
|
5447
|
+
}
|
|
5448
|
+
var suspendedFallbackTask = createRenderTask(
|
|
5449
|
+
request,
|
|
5450
|
+
null,
|
|
5451
|
+
fallback,
|
|
5452
|
+
-1,
|
|
5453
|
+
parentBoundary,
|
|
5454
|
+
boundarySegment,
|
|
5455
|
+
newBoundary.fallbackState,
|
|
5456
|
+
fallbackAbortSet,
|
|
5457
|
+
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
5458
|
+
task.formatContext,
|
|
5459
|
+
task.context,
|
|
5460
|
+
task.treeContext,
|
|
5461
|
+
task.componentStack,
|
|
5462
|
+
!0
|
|
5260
5463
|
);
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
fallbackReplayNode)
|
|
5264
|
-
: (newBoundary.trackedFallbackNode = fallbackReplayNode);
|
|
5464
|
+
pushComponentStack(suspendedFallbackTask);
|
|
5465
|
+
request.pingedTasks.push(suspendedFallbackTask);
|
|
5265
5466
|
}
|
|
5266
|
-
var suspendedFallbackTask = createRenderTask(
|
|
5267
|
-
request,
|
|
5268
|
-
null,
|
|
5269
|
-
fallback,
|
|
5270
|
-
-1,
|
|
5271
|
-
parentBoundary,
|
|
5272
|
-
boundarySegment,
|
|
5273
|
-
newBoundary.fallbackState,
|
|
5274
|
-
fallbackAbortSet,
|
|
5275
|
-
fallbackKeyPath,
|
|
5276
|
-
task.formatContext,
|
|
5277
|
-
task.legacyContext,
|
|
5278
|
-
task.context,
|
|
5279
|
-
task.treeContext,
|
|
5280
|
-
suspenseComponentStack,
|
|
5281
|
-
!0
|
|
5282
|
-
);
|
|
5283
|
-
request.pingedTasks.push(suspendedFallbackTask);
|
|
5284
5467
|
}
|
|
5285
5468
|
return;
|
|
5286
5469
|
}
|
|
5287
5470
|
if ("object" === typeof type && null !== type)
|
|
5288
5471
|
switch (type.$$typeof) {
|
|
5289
5472
|
case REACT_FORWARD_REF_TYPE:
|
|
5290
|
-
var previousComponentStack$jscomp$3 = task.componentStack;
|
|
5291
|
-
task.componentStack = {
|
|
5292
|
-
tag: 1,
|
|
5293
|
-
parent: task.componentStack,
|
|
5294
|
-
type: type.render
|
|
5295
|
-
};
|
|
5296
5473
|
if ("ref" in props) {
|
|
5297
5474
|
var propsWithoutRef = {};
|
|
5298
5475
|
for (var key in props)
|
|
@@ -5315,7 +5492,6 @@
|
|
|
5315
5492
|
actionStateCounter,
|
|
5316
5493
|
actionStateMatchingIndex
|
|
5317
5494
|
);
|
|
5318
|
-
task.componentStack = previousComponentStack$jscomp$3;
|
|
5319
5495
|
return;
|
|
5320
5496
|
case REACT_MEMO_TYPE:
|
|
5321
5497
|
renderElement(request, task, keyPath, type.type, props, ref);
|
|
@@ -5331,7 +5507,7 @@
|
|
|
5331
5507
|
void 0 !== type._currentRenderer &&
|
|
5332
5508
|
null !== type._currentRenderer &&
|
|
5333
5509
|
type._currentRenderer !== rendererSigil &&
|
|
5334
|
-
error
|
|
5510
|
+
console.error(
|
|
5335
5511
|
"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
|
|
5336
5512
|
);
|
|
5337
5513
|
type._currentRenderer = rendererSigil;
|
|
@@ -5353,7 +5529,7 @@
|
|
|
5353
5529
|
"Tried to pop a Context at the root of the app. This is a bug in React."
|
|
5354
5530
|
);
|
|
5355
5531
|
prevSnapshot$jscomp$0.context !== type &&
|
|
5356
|
-
error
|
|
5532
|
+
console.error(
|
|
5357
5533
|
"The parent context is not the expected context. This is probably a bug in React."
|
|
5358
5534
|
);
|
|
5359
5535
|
prevSnapshot$jscomp$0.context._currentValue =
|
|
@@ -5361,7 +5537,7 @@
|
|
|
5361
5537
|
void 0 !== type._currentRenderer &&
|
|
5362
5538
|
null !== type._currentRenderer &&
|
|
5363
5539
|
type._currentRenderer !== rendererSigil &&
|
|
5364
|
-
error
|
|
5540
|
+
console.error(
|
|
5365
5541
|
"Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
|
|
5366
5542
|
);
|
|
5367
5543
|
type._currentRenderer = rendererSigil;
|
|
@@ -5370,7 +5546,7 @@
|
|
|
5370
5546
|
task.context = JSCompiler_inline_result$jscomp$0;
|
|
5371
5547
|
task.keyPath = prevKeyPath$jscomp$4;
|
|
5372
5548
|
prevSnapshot !== task.context &&
|
|
5373
|
-
error
|
|
5549
|
+
console.error(
|
|
5374
5550
|
"Popping the context provider did not return back to the original snapshot. This is a bug in React."
|
|
5375
5551
|
);
|
|
5376
5552
|
return;
|
|
@@ -5378,7 +5554,7 @@
|
|
|
5378
5554
|
var context$jscomp$0 = type._context,
|
|
5379
5555
|
render = props.children;
|
|
5380
5556
|
"function" !== typeof render &&
|
|
5381
|
-
error
|
|
5557
|
+
console.error(
|
|
5382
5558
|
"A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
|
|
5383
5559
|
);
|
|
5384
5560
|
var newChildren = render(context$jscomp$0._currentValue),
|
|
@@ -5388,12 +5564,9 @@
|
|
|
5388
5564
|
task.keyPath = prevKeyPath$jscomp$5;
|
|
5389
5565
|
return;
|
|
5390
5566
|
case REACT_LAZY_TYPE:
|
|
5391
|
-
var
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
Component = init(type._payload);
|
|
5395
|
-
renderElement(request, task, keyPath, Component, props, void 0);
|
|
5396
|
-
task.componentStack = previousComponentStack$jscomp$4;
|
|
5567
|
+
var Component = callLazyInitInDEV(type);
|
|
5568
|
+
if (12 === request.status) throw null;
|
|
5569
|
+
renderElement(request, task, keyPath, Component, props, ref);
|
|
5397
5570
|
return;
|
|
5398
5571
|
}
|
|
5399
5572
|
var info = "";
|
|
@@ -5438,56 +5611,123 @@
|
|
|
5438
5611
|
(task.replay = prevReplay), (task.blockedSegment = null);
|
|
5439
5612
|
}
|
|
5440
5613
|
}
|
|
5441
|
-
function renderNodeDestructive(request, task, node
|
|
5442
|
-
|
|
5443
|
-
resumeNode(request, task, task.replay.slots, node
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5614
|
+
function renderNodeDestructive(request, task, node, childIndex) {
|
|
5615
|
+
null !== task.replay && "number" === typeof task.replay.slots
|
|
5616
|
+
? resumeNode(request, task, task.replay.slots, node, childIndex)
|
|
5617
|
+
: ((task.node = node),
|
|
5618
|
+
(task.childIndex = childIndex),
|
|
5619
|
+
(node = task.componentStack),
|
|
5620
|
+
pushComponentStack(task),
|
|
5621
|
+
retryNode(request, task),
|
|
5622
|
+
(task.componentStack = node));
|
|
5623
|
+
}
|
|
5624
|
+
function retryNode(request, task) {
|
|
5625
|
+
var node = task.node,
|
|
5626
|
+
childIndex = task.childIndex;
|
|
5627
|
+
if (null !== node) {
|
|
5628
|
+
if ("object" === typeof node) {
|
|
5629
|
+
switch (node.$$typeof) {
|
|
5451
5630
|
case REACT_ELEMENT_TYPE:
|
|
5452
|
-
var type = node
|
|
5453
|
-
key = node
|
|
5454
|
-
props = node
|
|
5455
|
-
node
|
|
5456
|
-
var ref = void 0 !== node
|
|
5457
|
-
|
|
5631
|
+
var type = node.type,
|
|
5632
|
+
key = node.key,
|
|
5633
|
+
props = node.props;
|
|
5634
|
+
node = props.ref;
|
|
5635
|
+
var ref = void 0 !== node ? node : null,
|
|
5636
|
+
name = getComponentNameFromType(type),
|
|
5458
5637
|
keyOrIndex =
|
|
5459
|
-
null == key ? (-1 === childIndex ? 0 : childIndex) : key
|
|
5460
|
-
|
|
5461
|
-
if (null !== task.replay)
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5638
|
+
null == key ? (-1 === childIndex ? 0 : childIndex) : key,
|
|
5639
|
+
keyPath = [task.keyPath, name, keyOrIndex];
|
|
5640
|
+
if (null !== task.replay) {
|
|
5641
|
+
var replay = task.replay;
|
|
5642
|
+
childIndex = replay.nodes;
|
|
5643
|
+
for (node = 0; node < childIndex.length; node++)
|
|
5644
|
+
if (((key = childIndex[node]), keyOrIndex === key[1])) {
|
|
5645
|
+
if (4 === key.length) {
|
|
5646
|
+
if (null !== name && name !== key[0])
|
|
5647
|
+
throw Error(
|
|
5648
|
+
"Expected the resume to render <" +
|
|
5649
|
+
key[0] +
|
|
5650
|
+
"> in this slot but instead it rendered <" +
|
|
5651
|
+
name +
|
|
5652
|
+
">. The tree doesn't match so React will fallback to client rendering."
|
|
5653
|
+
);
|
|
5654
|
+
var childNodes = key[2];
|
|
5655
|
+
key = key[3];
|
|
5656
|
+
name = task.node;
|
|
5657
|
+
task.replay = {
|
|
5658
|
+
nodes: childNodes,
|
|
5659
|
+
slots: key,
|
|
5660
|
+
pendingTasks: 1
|
|
5661
|
+
};
|
|
5662
|
+
try {
|
|
5663
|
+
renderElement(request, task, keyPath, type, props, ref);
|
|
5664
|
+
if (
|
|
5665
|
+
1 === task.replay.pendingTasks &&
|
|
5666
|
+
0 < task.replay.nodes.length
|
|
5667
|
+
)
|
|
5474
5668
|
throw Error(
|
|
5475
|
-
"
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5669
|
+
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
|
5670
|
+
);
|
|
5671
|
+
task.replay.pendingTasks--;
|
|
5672
|
+
} catch (x) {
|
|
5673
|
+
if (
|
|
5674
|
+
"object" === typeof x &&
|
|
5675
|
+
null !== x &&
|
|
5676
|
+
(x === SuspenseException ||
|
|
5677
|
+
"function" === typeof x.then)
|
|
5678
|
+
)
|
|
5679
|
+
throw (
|
|
5680
|
+
(task.node === name && (task.replay = replay), x)
|
|
5480
5681
|
);
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
|
|
5682
|
+
task.replay.pendingTasks--;
|
|
5683
|
+
props = getThrownInfo(task.componentStack);
|
|
5684
|
+
erroredReplay(
|
|
5685
|
+
request,
|
|
5686
|
+
task.blockedBoundary,
|
|
5687
|
+
x,
|
|
5688
|
+
props,
|
|
5689
|
+
childNodes,
|
|
5690
|
+
key
|
|
5691
|
+
);
|
|
5692
|
+
}
|
|
5693
|
+
task.replay = replay;
|
|
5694
|
+
} else {
|
|
5695
|
+
if (type !== REACT_SUSPENSE_TYPE)
|
|
5696
|
+
throw Error(
|
|
5697
|
+
"Expected the resume to render <Suspense> in this slot but instead it rendered <" +
|
|
5698
|
+
(getComponentNameFromType(type) || "Unknown") +
|
|
5699
|
+
">. The tree doesn't match so React will fallback to client rendering."
|
|
5700
|
+
);
|
|
5701
|
+
a: {
|
|
5702
|
+
type = void 0;
|
|
5703
|
+
ref = key[5];
|
|
5704
|
+
replay = key[2];
|
|
5705
|
+
name = key[3];
|
|
5706
|
+
keyOrIndex = null === key[4] ? [] : key[4][2];
|
|
5707
|
+
key = null === key[4] ? null : key[4][3];
|
|
5708
|
+
var prevKeyPath = task.keyPath,
|
|
5709
|
+
previousReplaySet = task.replay,
|
|
5710
|
+
parentBoundary = task.blockedBoundary,
|
|
5711
|
+
parentHoistableState = task.hoistableState,
|
|
5712
|
+
content = props.children;
|
|
5713
|
+
props = props.fallback;
|
|
5714
|
+
var fallbackAbortSet = new Set(),
|
|
5715
|
+
resumedBoundary = createSuspenseBoundary(
|
|
5716
|
+
request,
|
|
5717
|
+
fallbackAbortSet
|
|
5718
|
+
);
|
|
5719
|
+
resumedBoundary.parentFlushed = !0;
|
|
5720
|
+
resumedBoundary.rootSegmentID = ref;
|
|
5721
|
+
task.blockedBoundary = resumedBoundary;
|
|
5722
|
+
task.hoistableState = resumedBoundary.contentState;
|
|
5723
|
+
task.keyPath = keyPath;
|
|
5484
5724
|
task.replay = {
|
|
5485
|
-
nodes:
|
|
5725
|
+
nodes: replay,
|
|
5486
5726
|
slots: name,
|
|
5487
5727
|
pendingTasks: 1
|
|
5488
5728
|
};
|
|
5489
5729
|
try {
|
|
5490
|
-
|
|
5730
|
+
renderNode(request, task, content, -1);
|
|
5491
5731
|
if (
|
|
5492
5732
|
1 === task.replay.pendingTasks &&
|
|
5493
5733
|
0 < task.replay.nodes.length
|
|
@@ -5496,262 +5736,178 @@
|
|
|
5496
5736
|
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
|
5497
5737
|
);
|
|
5498
5738
|
task.replay.pendingTasks--;
|
|
5499
|
-
} catch (x) {
|
|
5500
5739
|
if (
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
5508
|
-
|
|
5509
|
-
|
|
5510
|
-
|
|
5511
|
-
|
|
5512
|
-
request,
|
|
5513
|
-
task.blockedBoundary,
|
|
5514
|
-
x,
|
|
5515
|
-
type,
|
|
5516
|
-
childNodes,
|
|
5517
|
-
name
|
|
5518
|
-
);
|
|
5519
|
-
}
|
|
5520
|
-
task.replay = replay;
|
|
5521
|
-
} else {
|
|
5522
|
-
if (type !== REACT_SUSPENSE_TYPE)
|
|
5523
|
-
throw Error(
|
|
5524
|
-
"Expected the resume to render <Suspense> in this slot but instead it rendered <" +
|
|
5525
|
-
(getComponentNameFromType(type) || "Unknown") +
|
|
5526
|
-
">. The tree doesn't match so React will fallback to client rendering."
|
|
5527
|
-
);
|
|
5528
|
-
b: {
|
|
5529
|
-
type = void 0;
|
|
5530
|
-
var props$jscomp$0 = props;
|
|
5531
|
-
props = node[5];
|
|
5532
|
-
ref = node[2];
|
|
5533
|
-
replay = node[3];
|
|
5534
|
-
name = null === node[4] ? [] : node[4][2];
|
|
5535
|
-
node = null === node[4] ? null : node[4][3];
|
|
5536
|
-
keyOrIndex = task.componentStack;
|
|
5537
|
-
var suspenseComponentStack = (task.componentStack =
|
|
5538
|
-
createBuiltInComponentStack(task, "Suspense")),
|
|
5539
|
-
prevKeyPath = task.keyPath,
|
|
5540
|
-
previousReplaySet = task.replay,
|
|
5541
|
-
parentBoundary = task.blockedBoundary,
|
|
5542
|
-
parentHoistableState = task.hoistableState,
|
|
5543
|
-
content = props$jscomp$0.children;
|
|
5544
|
-
props$jscomp$0 = props$jscomp$0.fallback;
|
|
5545
|
-
var fallbackAbortSet = new Set(),
|
|
5546
|
-
resumedBoundary = createSuspenseBoundary(
|
|
5740
|
+
0 === resumedBoundary.pendingTasks &&
|
|
5741
|
+
resumedBoundary.status === PENDING
|
|
5742
|
+
) {
|
|
5743
|
+
resumedBoundary.status = COMPLETED;
|
|
5744
|
+
request.completedBoundaries.push(resumedBoundary);
|
|
5745
|
+
break a;
|
|
5746
|
+
}
|
|
5747
|
+
} catch (error) {
|
|
5748
|
+
(resumedBoundary.status = CLIENT_RENDERED),
|
|
5749
|
+
(childNodes = getThrownInfo(task.componentStack)),
|
|
5750
|
+
(type = logRecoverableError(
|
|
5547
5751
|
request,
|
|
5548
|
-
|
|
5752
|
+
error,
|
|
5753
|
+
childNodes
|
|
5754
|
+
)),
|
|
5755
|
+
encodeErrorForBoundary(
|
|
5756
|
+
resumedBoundary,
|
|
5757
|
+
type,
|
|
5758
|
+
error,
|
|
5759
|
+
childNodes,
|
|
5760
|
+
!1
|
|
5761
|
+
),
|
|
5762
|
+
task.replay.pendingTasks--,
|
|
5763
|
+
request.clientRenderedBoundaries.push(
|
|
5764
|
+
resumedBoundary
|
|
5549
5765
|
);
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
nodes: ref,
|
|
5556
|
-
slots: replay,
|
|
5557
|
-
pendingTasks: 1
|
|
5558
|
-
};
|
|
5559
|
-
try {
|
|
5560
|
-
renderNode(request, task, content, -1);
|
|
5561
|
-
if (
|
|
5562
|
-
1 === task.replay.pendingTasks &&
|
|
5563
|
-
0 < task.replay.nodes.length
|
|
5564
|
-
)
|
|
5565
|
-
throw Error(
|
|
5566
|
-
"Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
|
|
5567
|
-
);
|
|
5568
|
-
task.replay.pendingTasks--;
|
|
5569
|
-
if (
|
|
5570
|
-
0 === resumedBoundary.pendingTasks &&
|
|
5571
|
-
resumedBoundary.status === PENDING
|
|
5572
|
-
) {
|
|
5573
|
-
resumedBoundary.status = COMPLETED;
|
|
5574
|
-
request.completedBoundaries.push(resumedBoundary);
|
|
5575
|
-
break b;
|
|
5576
|
-
}
|
|
5577
|
-
} catch (error$3) {
|
|
5578
|
-
(resumedBoundary.status = CLIENT_RENDERED),
|
|
5579
|
-
(childNodes = getThrownInfo(
|
|
5580
|
-
request,
|
|
5581
|
-
task.componentStack
|
|
5582
|
-
)),
|
|
5583
|
-
(type = logRecoverableError(
|
|
5584
|
-
request,
|
|
5585
|
-
error$3,
|
|
5586
|
-
childNodes
|
|
5587
|
-
)),
|
|
5588
|
-
encodeErrorForBoundary(
|
|
5589
|
-
resumedBoundary,
|
|
5590
|
-
type,
|
|
5591
|
-
error$3,
|
|
5592
|
-
childNodes,
|
|
5593
|
-
!1
|
|
5594
|
-
),
|
|
5595
|
-
task.replay.pendingTasks--,
|
|
5596
|
-
request.clientRenderedBoundaries.push(
|
|
5597
|
-
resumedBoundary
|
|
5598
|
-
);
|
|
5599
|
-
} finally {
|
|
5600
|
-
(task.blockedBoundary = parentBoundary),
|
|
5601
|
-
(task.hoistableState = parentHoistableState),
|
|
5602
|
-
(task.replay = previousReplaySet),
|
|
5603
|
-
(task.keyPath = prevKeyPath),
|
|
5604
|
-
(task.componentStack = keyOrIndex);
|
|
5605
|
-
}
|
|
5606
|
-
childNodes = createReplayTask(
|
|
5607
|
-
request,
|
|
5608
|
-
null,
|
|
5609
|
-
{ nodes: name, slots: node, pendingTasks: 0 },
|
|
5610
|
-
props$jscomp$0,
|
|
5611
|
-
-1,
|
|
5612
|
-
parentBoundary,
|
|
5613
|
-
resumedBoundary.fallbackState,
|
|
5614
|
-
fallbackAbortSet,
|
|
5615
|
-
[key[0], "Suspense Fallback", key[2]],
|
|
5616
|
-
task.formatContext,
|
|
5617
|
-
task.legacyContext,
|
|
5618
|
-
task.context,
|
|
5619
|
-
task.treeContext,
|
|
5620
|
-
suspenseComponentStack,
|
|
5621
|
-
!0
|
|
5622
|
-
);
|
|
5623
|
-
request.pingedTasks.push(childNodes);
|
|
5766
|
+
} finally {
|
|
5767
|
+
(task.blockedBoundary = parentBoundary),
|
|
5768
|
+
(task.hoistableState = parentHoistableState),
|
|
5769
|
+
(task.replay = previousReplaySet),
|
|
5770
|
+
(task.keyPath = prevKeyPath);
|
|
5624
5771
|
}
|
|
5772
|
+
childNodes = createReplayTask(
|
|
5773
|
+
request,
|
|
5774
|
+
null,
|
|
5775
|
+
{ nodes: keyOrIndex, slots: key, pendingTasks: 0 },
|
|
5776
|
+
props,
|
|
5777
|
+
-1,
|
|
5778
|
+
parentBoundary,
|
|
5779
|
+
resumedBoundary.fallbackState,
|
|
5780
|
+
fallbackAbortSet,
|
|
5781
|
+
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
5782
|
+
task.formatContext,
|
|
5783
|
+
task.context,
|
|
5784
|
+
task.treeContext,
|
|
5785
|
+
task.componentStack,
|
|
5786
|
+
!0
|
|
5787
|
+
);
|
|
5788
|
+
pushComponentStack(childNodes);
|
|
5789
|
+
request.pingedTasks.push(childNodes);
|
|
5625
5790
|
}
|
|
5626
|
-
childIndex.splice(node$jscomp$0, 1);
|
|
5627
|
-
break a;
|
|
5628
5791
|
}
|
|
5792
|
+
childIndex.splice(node, 1);
|
|
5793
|
+
break;
|
|
5629
5794
|
}
|
|
5630
|
-
|
|
5631
|
-
else renderElement(request, task, key, type, props, ref);
|
|
5795
|
+
} else renderElement(request, task, keyPath, type, props, ref);
|
|
5632
5796
|
return;
|
|
5633
5797
|
case REACT_PORTAL_TYPE:
|
|
5634
5798
|
throw Error(
|
|
5635
5799
|
"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
|
|
5636
5800
|
);
|
|
5637
5801
|
case REACT_LAZY_TYPE:
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
node$jscomp$0 = type(node$jscomp$0._payload);
|
|
5642
|
-
task.componentStack = childNodes;
|
|
5643
|
-
renderNodeDestructive(request, task, node$jscomp$0, childIndex);
|
|
5802
|
+
node = callLazyInitInDEV(node);
|
|
5803
|
+
if (12 === request.status) throw null;
|
|
5804
|
+
renderNodeDestructive(request, task, node, childIndex);
|
|
5644
5805
|
return;
|
|
5645
5806
|
}
|
|
5646
|
-
if (isArrayImpl(node
|
|
5647
|
-
renderChildrenArray(request, task, node
|
|
5807
|
+
if (isArrayImpl(node)) {
|
|
5808
|
+
renderChildrenArray(request, task, node, childIndex);
|
|
5648
5809
|
return;
|
|
5649
5810
|
}
|
|
5650
|
-
null === node
|
|
5651
|
-
? (
|
|
5811
|
+
null === node || "object" !== typeof node
|
|
5812
|
+
? (props = null)
|
|
5652
5813
|
: ((childNodes =
|
|
5653
|
-
(MAYBE_ITERATOR_SYMBOL &&
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
if (childNodes === node$jscomp$0) {
|
|
5814
|
+
(MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
|
|
5815
|
+
node["@@iterator"]),
|
|
5816
|
+
(props = "function" === typeof childNodes ? childNodes : null));
|
|
5817
|
+
if (props && (childNodes = props.call(node))) {
|
|
5818
|
+
if (childNodes === node) {
|
|
5659
5819
|
if (
|
|
5660
5820
|
-1 !== childIndex ||
|
|
5661
5821
|
null === task.componentStack ||
|
|
5662
|
-
|
|
5822
|
+
"function" !== typeof task.componentStack.type ||
|
|
5663
5823
|
"[object GeneratorFunction]" !==
|
|
5664
5824
|
Object.prototype.toString.call(task.componentStack.type) ||
|
|
5665
5825
|
"[object Generator]" !==
|
|
5666
5826
|
Object.prototype.toString.call(childNodes)
|
|
5667
5827
|
)
|
|
5668
5828
|
didWarnAboutGenerators ||
|
|
5669
|
-
error
|
|
5829
|
+
console.error(
|
|
5670
5830
|
"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
|
|
5671
5831
|
),
|
|
5672
5832
|
(didWarnAboutGenerators = !0);
|
|
5673
5833
|
} else
|
|
5674
|
-
node
|
|
5834
|
+
node.entries !== props ||
|
|
5675
5835
|
didWarnAboutMaps ||
|
|
5676
|
-
(error
|
|
5836
|
+
(console.error(
|
|
5677
5837
|
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
5678
5838
|
),
|
|
5679
5839
|
(didWarnAboutMaps = !0));
|
|
5680
|
-
node
|
|
5681
|
-
if (!node
|
|
5682
|
-
|
|
5683
|
-
do
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
while (!node$jscomp$0.done);
|
|
5687
|
-
renderChildrenArray(request, task, type, childIndex);
|
|
5840
|
+
node = childNodes.next();
|
|
5841
|
+
if (!node.done) {
|
|
5842
|
+
props = [];
|
|
5843
|
+
do props.push(node.value), (node = childNodes.next());
|
|
5844
|
+
while (!node.done);
|
|
5845
|
+
renderChildrenArray(request, task, props, childIndex);
|
|
5688
5846
|
}
|
|
5689
5847
|
return;
|
|
5690
5848
|
}
|
|
5691
|
-
if ("function" === typeof node
|
|
5849
|
+
if ("function" === typeof node.then)
|
|
5692
5850
|
return (
|
|
5693
5851
|
(task.thenableState = null),
|
|
5694
5852
|
renderNodeDestructive(
|
|
5695
5853
|
request,
|
|
5696
5854
|
task,
|
|
5697
|
-
unwrapThenable(node
|
|
5855
|
+
unwrapThenable(node),
|
|
5698
5856
|
childIndex
|
|
5699
5857
|
)
|
|
5700
5858
|
);
|
|
5701
|
-
if (node
|
|
5859
|
+
if (node.$$typeof === REACT_CONTEXT_TYPE)
|
|
5702
5860
|
return renderNodeDestructive(
|
|
5703
5861
|
request,
|
|
5704
5862
|
task,
|
|
5705
|
-
node
|
|
5863
|
+
node._currentValue,
|
|
5706
5864
|
childIndex
|
|
5707
5865
|
);
|
|
5708
|
-
childIndex = Object.prototype.toString.call(node
|
|
5866
|
+
childIndex = Object.prototype.toString.call(node);
|
|
5709
5867
|
throw Error(
|
|
5710
5868
|
"Objects are not valid as a React child (found: " +
|
|
5711
5869
|
("[object Object]" === childIndex
|
|
5712
|
-
? "object with keys {" +
|
|
5713
|
-
Object.keys(node$jscomp$0).join(", ") +
|
|
5714
|
-
"}"
|
|
5870
|
+
? "object with keys {" + Object.keys(node).join(", ") + "}"
|
|
5715
5871
|
: childIndex) +
|
|
5716
5872
|
"). If you meant to render a collection of children, use an array instead."
|
|
5717
5873
|
);
|
|
5718
5874
|
}
|
|
5719
|
-
"string" === typeof node
|
|
5720
|
-
? ((childIndex = task.blockedSegment),
|
|
5721
|
-
null !== childIndex &&
|
|
5722
|
-
(childIndex.lastPushedText = pushTextInstance(
|
|
5723
|
-
childIndex.chunks,
|
|
5724
|
-
node$jscomp$0,
|
|
5725
|
-
request.renderState,
|
|
5726
|
-
childIndex.lastPushedText
|
|
5727
|
-
)))
|
|
5728
|
-
: "number" === typeof node$jscomp$0 ||
|
|
5729
|
-
"bigint" === typeof node$jscomp$0
|
|
5875
|
+
"string" === typeof node
|
|
5730
5876
|
? ((childIndex = task.blockedSegment),
|
|
5731
5877
|
null !== childIndex &&
|
|
5732
5878
|
(childIndex.lastPushedText = pushTextInstance(
|
|
5733
5879
|
childIndex.chunks,
|
|
5734
|
-
|
|
5880
|
+
node,
|
|
5735
5881
|
request.renderState,
|
|
5736
5882
|
childIndex.lastPushedText
|
|
5737
5883
|
)))
|
|
5738
|
-
:
|
|
5739
|
-
|
|
5740
|
-
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5884
|
+
: "number" === typeof node || "bigint" === typeof node
|
|
5885
|
+
? ((childIndex = task.blockedSegment),
|
|
5886
|
+
null !== childIndex &&
|
|
5887
|
+
(childIndex.lastPushedText = pushTextInstance(
|
|
5888
|
+
childIndex.chunks,
|
|
5889
|
+
"" + node,
|
|
5890
|
+
request.renderState,
|
|
5891
|
+
childIndex.lastPushedText
|
|
5892
|
+
)))
|
|
5893
|
+
: ("function" === typeof node &&
|
|
5894
|
+
((childIndex = node.displayName || node.name || "Component"),
|
|
5895
|
+
console.error(
|
|
5896
|
+
"Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.",
|
|
5897
|
+
childIndex,
|
|
5898
|
+
childIndex
|
|
5899
|
+
)),
|
|
5900
|
+
"symbol" === typeof node &&
|
|
5901
|
+
console.error(
|
|
5902
|
+
"Symbols are not valid as a React child.\n %s",
|
|
5903
|
+
String(node)
|
|
5904
|
+
));
|
|
5751
5905
|
}
|
|
5752
5906
|
}
|
|
5753
5907
|
function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
|
|
5754
|
-
var prevKeyPath = task.keyPath
|
|
5908
|
+
var prevKeyPath = task.keyPath,
|
|
5909
|
+
previousComponentStack = task.componentStack;
|
|
5910
|
+
pushServerComponentStack(task, task.node._debugInfo);
|
|
5755
5911
|
if (
|
|
5756
5912
|
-1 !== childIndex &&
|
|
5757
5913
|
((task.keyPath = [task.keyPath, "Fragment", childIndex]),
|
|
@@ -5785,7 +5941,7 @@
|
|
|
5785
5941
|
)
|
|
5786
5942
|
throw x;
|
|
5787
5943
|
task.replay.pendingTasks--;
|
|
5788
|
-
children = getThrownInfo(
|
|
5944
|
+
children = getThrownInfo(task.componentStack);
|
|
5789
5945
|
erroredReplay(
|
|
5790
5946
|
request$jscomp$0,
|
|
5791
5947
|
task.blockedBoundary,
|
|
@@ -5801,6 +5957,7 @@
|
|
|
5801
5957
|
}
|
|
5802
5958
|
}
|
|
5803
5959
|
task.keyPath = prevKeyPath;
|
|
5960
|
+
task.componentStack = previousComponentStack;
|
|
5804
5961
|
return;
|
|
5805
5962
|
}
|
|
5806
5963
|
replay = task.treeContext;
|
|
@@ -5826,6 +5983,7 @@
|
|
|
5826
5983
|
}
|
|
5827
5984
|
task.treeContext = replay;
|
|
5828
5985
|
task.keyPath = prevKeyPath;
|
|
5986
|
+
task.componentStack = previousComponentStack;
|
|
5829
5987
|
return;
|
|
5830
5988
|
}
|
|
5831
5989
|
for (j = 0; j < replayNodes; j++) {
|
|
@@ -5851,39 +6009,55 @@
|
|
|
5851
6009
|
null == didWarnForKey &&
|
|
5852
6010
|
(didWarnForKey = request.didWarnForKey = new WeakSet());
|
|
5853
6011
|
request = node.componentStack;
|
|
5854
|
-
null
|
|
5855
|
-
didWarnForKey.
|
|
5856
|
-
(
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
6012
|
+
if (null !== request && !didWarnForKey.has(request)) {
|
|
6013
|
+
didWarnForKey.add(request);
|
|
6014
|
+
var componentName = getComponentNameFromType(resumeSegmentID.type);
|
|
6015
|
+
didWarnForKey = resumeSegmentID._owner;
|
|
6016
|
+
var parentOwner = request.owner;
|
|
6017
|
+
request = "";
|
|
6018
|
+
if (parentOwner && "undefined" !== typeof parentOwner.type) {
|
|
6019
|
+
var name = getComponentNameFromType(parentOwner.type);
|
|
6020
|
+
name &&
|
|
6021
|
+
(request = "\n\nCheck the render method of `" + name + "`.");
|
|
6022
|
+
}
|
|
6023
|
+
request ||
|
|
6024
|
+
(componentName &&
|
|
6025
|
+
(request =
|
|
6026
|
+
"\n\nCheck the top-level render call using <" +
|
|
6027
|
+
componentName +
|
|
6028
|
+
">."));
|
|
6029
|
+
componentName = "";
|
|
6030
|
+
null != didWarnForKey &&
|
|
6031
|
+
parentOwner !== didWarnForKey &&
|
|
6032
|
+
((parentOwner = null),
|
|
6033
|
+
"undefined" !== typeof didWarnForKey.type
|
|
6034
|
+
? (parentOwner = getComponentNameFromType(didWarnForKey.type))
|
|
6035
|
+
: "string" === typeof didWarnForKey.name &&
|
|
6036
|
+
(parentOwner = didWarnForKey.name),
|
|
6037
|
+
parentOwner &&
|
|
6038
|
+
(componentName =
|
|
6039
|
+
" It was passed a child from " + parentOwner + "."));
|
|
6040
|
+
didWarnForKey = node.componentStack;
|
|
6041
|
+
node.componentStack = {
|
|
6042
|
+
parent: node.componentStack,
|
|
6043
|
+
type: resumeSegmentID.type,
|
|
6044
|
+
owner: resumeSegmentID._owner,
|
|
6045
|
+
stack: null
|
|
6046
|
+
};
|
|
6047
|
+
console.error(
|
|
5876
6048
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
)
|
|
5880
|
-
|
|
6049
|
+
request,
|
|
6050
|
+
componentName
|
|
6051
|
+
);
|
|
6052
|
+
node.componentStack = didWarnForKey;
|
|
6053
|
+
}
|
|
5881
6054
|
}
|
|
5882
6055
|
task.treeContext = pushTreeContext(replay, replayNodes, j);
|
|
5883
6056
|
renderNode(request$jscomp$0, task, childIndex, j);
|
|
5884
6057
|
}
|
|
5885
6058
|
task.treeContext = replay;
|
|
5886
6059
|
task.keyPath = prevKeyPath;
|
|
6060
|
+
task.componentStack = previousComponentStack;
|
|
5887
6061
|
}
|
|
5888
6062
|
function untrackBoundary(request, boundary) {
|
|
5889
6063
|
request = request.trackedPostpones;
|
|
@@ -5894,9 +6068,55 @@
|
|
|
5894
6068
|
void 0 !== boundary &&
|
|
5895
6069
|
((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
|
|
5896
6070
|
}
|
|
6071
|
+
function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
6072
|
+
return createReplayTask(
|
|
6073
|
+
request,
|
|
6074
|
+
thenableState,
|
|
6075
|
+
task.replay,
|
|
6076
|
+
task.node,
|
|
6077
|
+
task.childIndex,
|
|
6078
|
+
task.blockedBoundary,
|
|
6079
|
+
task.hoistableState,
|
|
6080
|
+
task.abortSet,
|
|
6081
|
+
task.keyPath,
|
|
6082
|
+
task.formatContext,
|
|
6083
|
+
task.context,
|
|
6084
|
+
task.treeContext,
|
|
6085
|
+
task.componentStack,
|
|
6086
|
+
task.isFallback
|
|
6087
|
+
);
|
|
6088
|
+
}
|
|
6089
|
+
function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
|
6090
|
+
var segment = task.blockedSegment,
|
|
6091
|
+
newSegment = createPendingSegment(
|
|
6092
|
+
request,
|
|
6093
|
+
segment.chunks.length,
|
|
6094
|
+
null,
|
|
6095
|
+
task.formatContext,
|
|
6096
|
+
segment.lastPushedText,
|
|
6097
|
+
!0
|
|
6098
|
+
);
|
|
6099
|
+
segment.children.push(newSegment);
|
|
6100
|
+
segment.lastPushedText = !1;
|
|
6101
|
+
return createRenderTask(
|
|
6102
|
+
request,
|
|
6103
|
+
thenableState,
|
|
6104
|
+
task.node,
|
|
6105
|
+
task.childIndex,
|
|
6106
|
+
task.blockedBoundary,
|
|
6107
|
+
newSegment,
|
|
6108
|
+
task.hoistableState,
|
|
6109
|
+
task.abortSet,
|
|
6110
|
+
task.keyPath,
|
|
6111
|
+
task.formatContext,
|
|
6112
|
+
task.context,
|
|
6113
|
+
task.treeContext,
|
|
6114
|
+
task.componentStack,
|
|
6115
|
+
task.isFallback
|
|
6116
|
+
);
|
|
6117
|
+
}
|
|
5897
6118
|
function renderNode(request, task, node, childIndex) {
|
|
5898
6119
|
var previousFormatContext = task.formatContext,
|
|
5899
|
-
previousLegacyContext = task.legacyContext,
|
|
5900
6120
|
previousContext = task.context,
|
|
5901
6121
|
previousKeyPath = task.keyPath,
|
|
5902
6122
|
previousTreeContext = task.treeContext,
|
|
@@ -5912,37 +6132,36 @@
|
|
|
5912
6132
|
thrownValue === SuspenseException
|
|
5913
6133
|
? getSuspendedThenable()
|
|
5914
6134
|
: thrownValue),
|
|
5915
|
-
"object" === typeof node &&
|
|
5916
|
-
null !== node &&
|
|
5917
|
-
"function" === typeof node.then)
|
|
6135
|
+
"object" === typeof node && null !== node)
|
|
5918
6136
|
) {
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
request
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
task.
|
|
5928
|
-
task.
|
|
5929
|
-
task.keyPath
|
|
5930
|
-
task.
|
|
5931
|
-
task.
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
6137
|
+
if ("function" === typeof node.then) {
|
|
6138
|
+
childIndex = getThenableStateAfterSuspending();
|
|
6139
|
+
request = spawnNewSuspendedReplayTask(
|
|
6140
|
+
request,
|
|
6141
|
+
task,
|
|
6142
|
+
childIndex
|
|
6143
|
+
).ping;
|
|
6144
|
+
node.then(request, request);
|
|
6145
|
+
task.formatContext = previousFormatContext;
|
|
6146
|
+
task.context = previousContext;
|
|
6147
|
+
task.keyPath = previousKeyPath;
|
|
6148
|
+
task.treeContext = previousTreeContext;
|
|
6149
|
+
task.componentStack = previousComponentStack;
|
|
6150
|
+
switchContext(previousContext);
|
|
6151
|
+
return;
|
|
6152
|
+
}
|
|
6153
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
|
6154
|
+
node = getThenableStateAfterSuspending();
|
|
6155
|
+
node = spawnNewSuspendedReplayTask(request, task, node);
|
|
6156
|
+
request.pingedTasks.push(node);
|
|
6157
|
+
task.formatContext = previousFormatContext;
|
|
6158
|
+
task.context = previousContext;
|
|
6159
|
+
task.keyPath = previousKeyPath;
|
|
6160
|
+
task.treeContext = previousTreeContext;
|
|
6161
|
+
task.componentStack = previousComponentStack;
|
|
6162
|
+
switchContext(previousContext);
|
|
6163
|
+
return;
|
|
6164
|
+
}
|
|
5946
6165
|
}
|
|
5947
6166
|
}
|
|
5948
6167
|
else {
|
|
@@ -5950,62 +6169,49 @@
|
|
|
5950
6169
|
chunkLength = segment.chunks.length;
|
|
5951
6170
|
try {
|
|
5952
6171
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
5953
|
-
} catch (thrownValue$
|
|
6172
|
+
} catch (thrownValue$3) {
|
|
5954
6173
|
if (
|
|
5955
6174
|
(resetHooksState(),
|
|
5956
6175
|
(segment.children.length = childrenLength),
|
|
5957
6176
|
(segment.chunks.length = chunkLength),
|
|
5958
6177
|
(node =
|
|
5959
|
-
thrownValue$
|
|
6178
|
+
thrownValue$3 === SuspenseException
|
|
5960
6179
|
? getSuspendedThenable()
|
|
5961
|
-
: thrownValue$
|
|
5962
|
-
"object" === typeof node &&
|
|
5963
|
-
null !== node &&
|
|
5964
|
-
"function" === typeof node.then)
|
|
6180
|
+
: thrownValue$3),
|
|
6181
|
+
"object" === typeof node && null !== node)
|
|
5965
6182
|
) {
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
task.
|
|
5987
|
-
task.
|
|
5988
|
-
task.
|
|
5989
|
-
task.
|
|
5990
|
-
task.
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
).ping;
|
|
5995
|
-
node.then(request, request);
|
|
5996
|
-
task.formatContext = previousFormatContext;
|
|
5997
|
-
task.legacyContext = previousLegacyContext;
|
|
5998
|
-
task.context = previousContext;
|
|
5999
|
-
task.keyPath = previousKeyPath;
|
|
6000
|
-
task.treeContext = previousTreeContext;
|
|
6001
|
-
task.componentStack = previousComponentStack;
|
|
6002
|
-
switchContext(previousContext);
|
|
6003
|
-
return;
|
|
6183
|
+
if ("function" === typeof node.then) {
|
|
6184
|
+
childIndex = getThenableStateAfterSuspending();
|
|
6185
|
+
request = spawnNewSuspendedRenderTask(
|
|
6186
|
+
request,
|
|
6187
|
+
task,
|
|
6188
|
+
childIndex
|
|
6189
|
+
).ping;
|
|
6190
|
+
node.then(request, request);
|
|
6191
|
+
task.formatContext = previousFormatContext;
|
|
6192
|
+
task.context = previousContext;
|
|
6193
|
+
task.keyPath = previousKeyPath;
|
|
6194
|
+
task.treeContext = previousTreeContext;
|
|
6195
|
+
task.componentStack = previousComponentStack;
|
|
6196
|
+
switchContext(previousContext);
|
|
6197
|
+
return;
|
|
6198
|
+
}
|
|
6199
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
|
6200
|
+
node = getThenableStateAfterSuspending();
|
|
6201
|
+
node = spawnNewSuspendedRenderTask(request, task, node);
|
|
6202
|
+
request.pingedTasks.push(node);
|
|
6203
|
+
task.formatContext = previousFormatContext;
|
|
6204
|
+
task.context = previousContext;
|
|
6205
|
+
task.keyPath = previousKeyPath;
|
|
6206
|
+
task.treeContext = previousTreeContext;
|
|
6207
|
+
task.componentStack = previousComponentStack;
|
|
6208
|
+
switchContext(previousContext);
|
|
6209
|
+
return;
|
|
6210
|
+
}
|
|
6004
6211
|
}
|
|
6005
6212
|
}
|
|
6006
6213
|
}
|
|
6007
6214
|
task.formatContext = previousFormatContext;
|
|
6008
|
-
task.legacyContext = previousLegacyContext;
|
|
6009
6215
|
task.context = previousContext;
|
|
6010
6216
|
task.keyPath = previousKeyPath;
|
|
6011
6217
|
task.treeContext = previousTreeContext;
|
|
@@ -6106,27 +6312,31 @@
|
|
|
6106
6312
|
function abortTask(task, request, error) {
|
|
6107
6313
|
var boundary = task.blockedBoundary,
|
|
6108
6314
|
segment = task.blockedSegment;
|
|
6109
|
-
null !== segment
|
|
6315
|
+
if (null !== segment) {
|
|
6316
|
+
if (6 === segment.status) return;
|
|
6317
|
+
segment.status = 3;
|
|
6318
|
+
}
|
|
6319
|
+
segment = getThrownInfo(task.componentStack);
|
|
6110
6320
|
if (null === boundary) {
|
|
6111
|
-
if (
|
|
6112
|
-
|
|
6113
|
-
if (null ===
|
|
6114
|
-
logRecoverableError(request, error,
|
|
6321
|
+
if (13 !== request.status && request.status !== CLOSED) {
|
|
6322
|
+
boundary = task.replay;
|
|
6323
|
+
if (null === boundary) {
|
|
6324
|
+
logRecoverableError(request, error, segment);
|
|
6115
6325
|
fatalError(request, error);
|
|
6116
6326
|
return;
|
|
6117
6327
|
}
|
|
6118
|
-
|
|
6119
|
-
0 ===
|
|
6120
|
-
0 <
|
|
6121
|
-
((
|
|
6328
|
+
boundary.pendingTasks--;
|
|
6329
|
+
0 === boundary.pendingTasks &&
|
|
6330
|
+
0 < boundary.nodes.length &&
|
|
6331
|
+
((task = logRecoverableError(request, error, segment)),
|
|
6122
6332
|
abortRemainingReplayNodes(
|
|
6123
6333
|
request,
|
|
6124
6334
|
null,
|
|
6125
|
-
|
|
6126
|
-
|
|
6335
|
+
boundary.nodes,
|
|
6336
|
+
boundary.slots,
|
|
6127
6337
|
error,
|
|
6338
|
+
task,
|
|
6128
6339
|
segment,
|
|
6129
|
-
boundary,
|
|
6130
6340
|
!0
|
|
6131
6341
|
));
|
|
6132
6342
|
request.pendingRootTasks--;
|
|
@@ -6136,9 +6346,9 @@
|
|
|
6136
6346
|
boundary.pendingTasks--,
|
|
6137
6347
|
boundary.status !== CLIENT_RENDERED &&
|
|
6138
6348
|
((boundary.status = CLIENT_RENDERED),
|
|
6139
|
-
(task =
|
|
6140
|
-
(
|
|
6141
|
-
encodeErrorForBoundary(boundary,
|
|
6349
|
+
(task = logRecoverableError(request, error, segment)),
|
|
6350
|
+
(boundary.status = CLIENT_RENDERED),
|
|
6351
|
+
encodeErrorForBoundary(boundary, task, error, segment, !0),
|
|
6142
6352
|
untrackBoundary(request, boundary),
|
|
6143
6353
|
boundary.parentFlushed &&
|
|
6144
6354
|
request.clientRenderedBoundaries.push(boundary)),
|
|
@@ -6195,7 +6405,7 @@
|
|
|
6195
6405
|
media: props$jscomp$0.media
|
|
6196
6406
|
}
|
|
6197
6407
|
);
|
|
6198
|
-
if (
|
|
6408
|
+
if (0 <= (headers.remainingCapacity -= header.length + 2))
|
|
6199
6409
|
(renderState.resets.style[key] = PRELOAD_NO_CREDS),
|
|
6200
6410
|
linkHeader && (linkHeader += ", "),
|
|
6201
6411
|
(linkHeader += header),
|
|
@@ -6210,8 +6420,8 @@
|
|
|
6210
6420
|
linkHeader ? onHeaders({ Link: linkHeader }) : onHeaders({});
|
|
6211
6421
|
}
|
|
6212
6422
|
}
|
|
6213
|
-
} catch (error
|
|
6214
|
-
logRecoverableError(request, error
|
|
6423
|
+
} catch (error) {
|
|
6424
|
+
logRecoverableError(request, error, {});
|
|
6215
6425
|
}
|
|
6216
6426
|
}
|
|
6217
6427
|
function completeShell(request) {
|
|
@@ -6284,7 +6494,10 @@
|
|
|
6284
6494
|
0 === request.allPendingTasks && completeAll(request);
|
|
6285
6495
|
}
|
|
6286
6496
|
function performWork(request$jscomp$1) {
|
|
6287
|
-
if (
|
|
6497
|
+
if (
|
|
6498
|
+
request$jscomp$1.status !== CLOSED &&
|
|
6499
|
+
13 !== request$jscomp$1.status
|
|
6500
|
+
) {
|
|
6288
6501
|
var prevContext = currentActiveSnapshot,
|
|
6289
6502
|
prevDispatcher = ReactSharedInternals.H;
|
|
6290
6503
|
ReactSharedInternals.H = HooksDispatcher;
|
|
@@ -6312,12 +6525,15 @@
|
|
|
6312
6525
|
prevTaskInDEV = currentTaskInDEV;
|
|
6313
6526
|
currentTaskInDEV = request;
|
|
6314
6527
|
try {
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6528
|
+
"number" === typeof request.replay.slots
|
|
6529
|
+
? resumeNode(
|
|
6530
|
+
request$jscomp$0,
|
|
6531
|
+
request,
|
|
6532
|
+
request.replay.slots,
|
|
6533
|
+
request.node,
|
|
6534
|
+
request.childIndex
|
|
6535
|
+
)
|
|
6536
|
+
: retryNode(request$jscomp$0, request);
|
|
6321
6537
|
if (
|
|
6322
6538
|
1 === request.replay.pendingTasks &&
|
|
6323
6539
|
0 < request.replay.nodes.length
|
|
@@ -6342,19 +6558,16 @@
|
|
|
6342
6558
|
var ping = request.ping;
|
|
6343
6559
|
x.then(ping, ping);
|
|
6344
6560
|
request.thenableState = getThenableStateAfterSuspending();
|
|
6345
|
-
null !== request.componentStack &&
|
|
6346
|
-
(request.componentStack = request.componentStack.parent);
|
|
6347
6561
|
} else {
|
|
6348
6562
|
request.replay.pendingTasks--;
|
|
6349
6563
|
request.abortSet.delete(request);
|
|
6350
|
-
var errorInfo = getThrownInfo(
|
|
6351
|
-
request$jscomp$0,
|
|
6352
|
-
request.componentStack
|
|
6353
|
-
);
|
|
6564
|
+
var errorInfo = getThrownInfo(request.componentStack);
|
|
6354
6565
|
erroredReplay(
|
|
6355
6566
|
request$jscomp$0,
|
|
6356
6567
|
request.blockedBoundary,
|
|
6357
|
-
|
|
6568
|
+
12 === request$jscomp$0.status
|
|
6569
|
+
? request$jscomp$0.fatalError
|
|
6570
|
+
: x,
|
|
6358
6571
|
errorInfo,
|
|
6359
6572
|
request.replay.nodes,
|
|
6360
6573
|
request.replay.slots
|
|
@@ -6375,18 +6588,14 @@
|
|
|
6375
6588
|
var task$jscomp$0 = task,
|
|
6376
6589
|
segment$jscomp$0 = segment;
|
|
6377
6590
|
if (segment$jscomp$0.status === PENDING) {
|
|
6591
|
+
segment$jscomp$0.status = 6;
|
|
6378
6592
|
switchContext(task$jscomp$0.context);
|
|
6379
6593
|
request$jscomp$0 = currentTaskInDEV;
|
|
6380
6594
|
currentTaskInDEV = task$jscomp$0;
|
|
6381
6595
|
var childrenLength = segment$jscomp$0.children.length,
|
|
6382
6596
|
chunkLength = segment$jscomp$0.chunks.length;
|
|
6383
6597
|
try {
|
|
6384
|
-
|
|
6385
|
-
request,
|
|
6386
|
-
task$jscomp$0,
|
|
6387
|
-
task$jscomp$0.node,
|
|
6388
|
-
task$jscomp$0.childIndex
|
|
6389
|
-
),
|
|
6598
|
+
retryNode(request, task$jscomp$0),
|
|
6390
6599
|
segment$jscomp$0.lastPushedText &&
|
|
6391
6600
|
segment$jscomp$0.textEmbedded &&
|
|
6392
6601
|
segment$jscomp$0.chunks.push(textSeparator),
|
|
@@ -6404,22 +6613,21 @@
|
|
|
6404
6613
|
var x$jscomp$0 =
|
|
6405
6614
|
thrownValue === SuspenseException
|
|
6406
6615
|
? getSuspendedThenable()
|
|
6407
|
-
:
|
|
6616
|
+
: 12 === request.status
|
|
6617
|
+
? request.fatalError
|
|
6618
|
+
: thrownValue;
|
|
6408
6619
|
if (
|
|
6409
6620
|
"object" === typeof x$jscomp$0 &&
|
|
6410
6621
|
null !== x$jscomp$0 &&
|
|
6411
6622
|
"function" === typeof x$jscomp$0.then
|
|
6412
6623
|
) {
|
|
6413
|
-
|
|
6414
|
-
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
6624
|
+
segment$jscomp$0.status = PENDING;
|
|
6415
6625
|
task$jscomp$0.thenableState =
|
|
6416
6626
|
getThenableStateAfterSuspending();
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
task$jscomp$0.componentStack.parent);
|
|
6627
|
+
var ping$jscomp$0 = task$jscomp$0.ping;
|
|
6628
|
+
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
|
6420
6629
|
} else {
|
|
6421
6630
|
var errorInfo$jscomp$0 = getThrownInfo(
|
|
6422
|
-
request,
|
|
6423
6631
|
task$jscomp$0.componentStack
|
|
6424
6632
|
);
|
|
6425
6633
|
task$jscomp$0.abortSet.delete(task$jscomp$0);
|
|
@@ -6460,9 +6668,9 @@
|
|
|
6460
6668
|
request$jscomp$1,
|
|
6461
6669
|
request$jscomp$1.destination
|
|
6462
6670
|
);
|
|
6463
|
-
} catch (error
|
|
6464
|
-
logRecoverableError(request$jscomp$1, error
|
|
6465
|
-
fatalError(request$jscomp$1, error
|
|
6671
|
+
} catch (error) {
|
|
6672
|
+
logRecoverableError(request$jscomp$1, error, {}),
|
|
6673
|
+
fatalError(request$jscomp$1, error);
|
|
6466
6674
|
} finally {
|
|
6467
6675
|
(currentResumableState = prevResumableState),
|
|
6468
6676
|
(ReactSharedInternals.H = prevDispatcher),
|
|
@@ -6660,18 +6868,18 @@
|
|
|
6660
6868
|
SentCompleteBoundaryFunction),
|
|
6661
6869
|
writeChunk(destination, completeBoundaryWithStylesScript1FullBoth))
|
|
6662
6870
|
: (completedSegments.instructions & SentStyleInsertionFunction) ===
|
|
6663
|
-
|
|
6664
|
-
|
|
6665
|
-
|
|
6666
|
-
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
|
|
6871
|
+
NothingSent
|
|
6872
|
+
? ((completedSegments.instructions |= SentStyleInsertionFunction),
|
|
6873
|
+
writeChunk(
|
|
6874
|
+
destination,
|
|
6875
|
+
completeBoundaryWithStylesScript1FullPartial
|
|
6876
|
+
))
|
|
6877
|
+
: writeChunk(destination, completeBoundaryWithStylesScript1Partial)
|
|
6670
6878
|
: (completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
|
|
6879
|
+
NothingSent
|
|
6880
|
+
? ((completedSegments.instructions |= SentCompleteBoundaryFunction),
|
|
6881
|
+
writeChunk(destination, completeBoundaryScript1Full))
|
|
6882
|
+
: writeChunk(destination, completeBoundaryScript1Partial);
|
|
6675
6883
|
completedSegments = stringToChunk(i.toString(16));
|
|
6676
6884
|
writeChunk(destination, request.boundaryPrefix);
|
|
6677
6885
|
writeChunk(destination, completedSegments);
|
|
@@ -7016,9 +7224,10 @@
|
|
|
7016
7224
|
i.hasHtml && writeChunk(destination, endChunkForTag("html")),
|
|
7017
7225
|
completeWriting(destination),
|
|
7018
7226
|
0 !== request.abortableTasks.size &&
|
|
7019
|
-
error
|
|
7227
|
+
console.error(
|
|
7020
7228
|
"There was still abortable task at the root when we closed. This is a bug in React."
|
|
7021
7229
|
),
|
|
7230
|
+
(request.status = CLOSED),
|
|
7022
7231
|
destination.close(),
|
|
7023
7232
|
(request.destination = null))
|
|
7024
7233
|
: completeWriting(destination);
|
|
@@ -7026,13 +7235,14 @@
|
|
|
7026
7235
|
}
|
|
7027
7236
|
function startWork(request) {
|
|
7028
7237
|
request.flushScheduled = null !== request.destination;
|
|
7029
|
-
|
|
7238
|
+
scheduleMicrotask(function () {
|
|
7030
7239
|
return performWork(request);
|
|
7031
7240
|
});
|
|
7032
|
-
|
|
7033
|
-
|
|
7241
|
+
scheduleWork(function () {
|
|
7242
|
+
10 === request.status && (request.status = 11);
|
|
7243
|
+
null === request.trackedPostpones &&
|
|
7034
7244
|
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
|
|
7035
|
-
|
|
7245
|
+
});
|
|
7036
7246
|
}
|
|
7037
7247
|
function enqueueFlush(request) {
|
|
7038
7248
|
!1 === request.flushScheduled &&
|
|
@@ -7046,14 +7256,33 @@
|
|
|
7046
7256
|
: (request.flushScheduled = !1);
|
|
7047
7257
|
}));
|
|
7048
7258
|
}
|
|
7259
|
+
function startFlowing(request, destination) {
|
|
7260
|
+
if (13 === request.status)
|
|
7261
|
+
(request.status = CLOSED),
|
|
7262
|
+
closeWithError(destination, request.fatalError);
|
|
7263
|
+
else if (request.status !== CLOSED && null === request.destination) {
|
|
7264
|
+
request.destination = destination;
|
|
7265
|
+
try {
|
|
7266
|
+
flushCompletedQueues(request, destination);
|
|
7267
|
+
} catch (error) {
|
|
7268
|
+
logRecoverableError(request, error, {}), fatalError(request, error);
|
|
7269
|
+
}
|
|
7270
|
+
}
|
|
7271
|
+
}
|
|
7049
7272
|
function abort(request, reason) {
|
|
7273
|
+
if (11 === request.status || 10 === request.status) request.status = 12;
|
|
7050
7274
|
try {
|
|
7051
7275
|
var abortableTasks = request.abortableTasks;
|
|
7052
7276
|
if (0 < abortableTasks.size) {
|
|
7053
7277
|
var error =
|
|
7054
7278
|
void 0 === reason
|
|
7055
7279
|
? Error("The render was aborted by the server without a reason.")
|
|
7056
|
-
: reason
|
|
7280
|
+
: "object" === typeof reason &&
|
|
7281
|
+
null !== reason &&
|
|
7282
|
+
"function" === typeof reason.then
|
|
7283
|
+
? Error("The render was aborted by the server with a promise.")
|
|
7284
|
+
: reason;
|
|
7285
|
+
request.fatalError = error;
|
|
7057
7286
|
abortableTasks.forEach(function (task) {
|
|
7058
7287
|
return abortTask(task, request, error);
|
|
7059
7288
|
});
|
|
@@ -7061,14 +7290,21 @@
|
|
|
7061
7290
|
}
|
|
7062
7291
|
null !== request.destination &&
|
|
7063
7292
|
flushCompletedQueues(request, request.destination);
|
|
7064
|
-
} catch (error$
|
|
7065
|
-
logRecoverableError(request, error$
|
|
7293
|
+
} catch (error$4) {
|
|
7294
|
+
logRecoverableError(request, error$4, {}), fatalError(request, error$4);
|
|
7066
7295
|
}
|
|
7067
7296
|
}
|
|
7297
|
+
function ensureCorrectIsomorphicReactVersion() {
|
|
7298
|
+
var isomorphicReactPackageVersion = React.version;
|
|
7299
|
+
if ("19.0.0" !== isomorphicReactPackageVersion)
|
|
7300
|
+
throw Error(
|
|
7301
|
+
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
7302
|
+
(isomorphicReactPackageVersion +
|
|
7303
|
+
"\n - react-dom: 19.0.0\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
7304
|
+
);
|
|
7305
|
+
}
|
|
7068
7306
|
var React = require("react"),
|
|
7069
7307
|
ReactDOM = require("react-dom"),
|
|
7070
|
-
ReactSharedInternals =
|
|
7071
|
-
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
7072
7308
|
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
7073
7309
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
7074
7310
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
@@ -7098,7 +7334,16 @@
|
|
|
7098
7334
|
var task = taskQueue.shift();
|
|
7099
7335
|
task && task();
|
|
7100
7336
|
};
|
|
7101
|
-
var
|
|
7337
|
+
var LocalPromise = Promise,
|
|
7338
|
+
scheduleMicrotask =
|
|
7339
|
+
"function" === typeof queueMicrotask
|
|
7340
|
+
? queueMicrotask
|
|
7341
|
+
: function (callback) {
|
|
7342
|
+
LocalPromise.resolve(null)
|
|
7343
|
+
.then(callback)
|
|
7344
|
+
.catch(handleErrorInNextTick);
|
|
7345
|
+
},
|
|
7346
|
+
currentView = null,
|
|
7102
7347
|
writtenBytes = 0,
|
|
7103
7348
|
textEncoder = new TextEncoder(),
|
|
7104
7349
|
assign = Object.assign,
|
|
@@ -7777,6 +8022,8 @@
|
|
|
7777
8022
|
msPattern = /^ms-/,
|
|
7778
8023
|
isJavaScriptProtocol =
|
|
7779
8024
|
/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,
|
|
8025
|
+
ReactSharedInternals =
|
|
8026
|
+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
7780
8027
|
ReactDOMSharedInternals =
|
|
7781
8028
|
ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
7782
8029
|
NotPending = Object.freeze({
|
|
@@ -7808,7 +8055,7 @@
|
|
|
7808
8055
|
"<" +
|
|
7809
8056
|
escapeHrefForLinkHeaderURLContext(href) +
|
|
7810
8057
|
">; rel=dns-prefetch"),
|
|
7811
|
-
|
|
8058
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2));
|
|
7812
8059
|
JSCompiler_temp
|
|
7813
8060
|
? ((renderState.resets.dns[href] = EXISTS),
|
|
7814
8061
|
resumableState.preconnects &&
|
|
@@ -7832,8 +8079,8 @@
|
|
|
7832
8079
|
"use-credentials" === crossOrigin
|
|
7833
8080
|
? "credentials"
|
|
7834
8081
|
: "string" === typeof crossOrigin
|
|
7835
|
-
|
|
7836
|
-
|
|
8082
|
+
? "anonymous"
|
|
8083
|
+
: "default";
|
|
7837
8084
|
if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
|
|
7838
8085
|
resumableState.connectResources[bucket][href] = EXISTS;
|
|
7839
8086
|
resumableState = renderState.headers;
|
|
@@ -7857,7 +8104,7 @@
|
|
|
7857
8104
|
}
|
|
7858
8105
|
JSCompiler_temp =
|
|
7859
8106
|
((header = JSCompiler_temp),
|
|
7860
|
-
|
|
8107
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2));
|
|
7861
8108
|
}
|
|
7862
8109
|
JSCompiler_temp
|
|
7863
8110
|
? ((renderState.resets.connect[bucket][href] = EXISTS),
|
|
@@ -7900,7 +8147,7 @@
|
|
|
7900
8147
|
0 < resumableState.remainingCapacity &&
|
|
7901
8148
|
"high" === fetchPriority &&
|
|
7902
8149
|
((header = getPreloadAsHeader(href, as, options)),
|
|
7903
|
-
|
|
8150
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2))
|
|
7904
8151
|
? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
|
|
7905
8152
|
resumableState.highImagePreloads &&
|
|
7906
8153
|
(resumableState.highImagePreloads += ", "),
|
|
@@ -7970,7 +8217,7 @@
|
|
|
7970
8217
|
0 < resumableState.remainingCapacity &&
|
|
7971
8218
|
"font" === as &&
|
|
7972
8219
|
((key = getPreloadAsHeader(href, as, options)),
|
|
7973
|
-
|
|
8220
|
+
0 <= (resumableState.remainingCapacity -= key.length + 2))
|
|
7974
8221
|
)
|
|
7975
8222
|
(renderState.resets.font[href] = PRELOAD_NO_CREDS),
|
|
7976
8223
|
resumableState.fontPreloads &&
|
|
@@ -8330,6 +8577,7 @@
|
|
|
8330
8577
|
LATE = 3,
|
|
8331
8578
|
regexForHrefInLinkHeaderURLContext = /[<>\r\n]/g,
|
|
8332
8579
|
regexForLinkHeaderQuotedParamValueContext = /["';,\r\n]/g,
|
|
8580
|
+
bind = Function.prototype.bind,
|
|
8333
8581
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
8334
8582
|
emptyContextObject = {};
|
|
8335
8583
|
Object.freeze(emptyContextObject);
|
|
@@ -8342,6 +8590,8 @@
|
|
|
8342
8590
|
var didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
|
|
8343
8591
|
var didWarnAboutDirectlyAssigningPropsToState = new Set();
|
|
8344
8592
|
var didWarnAboutUndefinedDerivedState = new Set();
|
|
8593
|
+
var didWarnAboutContextTypes$1 = new Set();
|
|
8594
|
+
var didWarnAboutChildContextTypes = new Set();
|
|
8345
8595
|
var didWarnAboutInvalidateContextType = new Set();
|
|
8346
8596
|
var didWarnOnInvalidCallback = new Set();
|
|
8347
8597
|
var classComponentUpdater = {
|
|
@@ -8498,12 +8748,15 @@
|
|
|
8498
8748
|
HooksDispatcher.useFormState = useActionState;
|
|
8499
8749
|
HooksDispatcher.useActionState = useActionState;
|
|
8500
8750
|
var currentResumableState = null,
|
|
8751
|
+
currentTaskInDEV = null,
|
|
8501
8752
|
DefaultAsyncDispatcher = {
|
|
8502
8753
|
getCacheForType: function () {
|
|
8503
8754
|
throw Error("Not implemented.");
|
|
8504
8755
|
},
|
|
8505
8756
|
getOwner: function () {
|
|
8506
|
-
return null
|
|
8757
|
+
return null === currentTaskInDEV
|
|
8758
|
+
? null
|
|
8759
|
+
: currentTaskInDEV.componentStack;
|
|
8507
8760
|
}
|
|
8508
8761
|
},
|
|
8509
8762
|
disabledDepth = 0,
|
|
@@ -8516,32 +8769,114 @@
|
|
|
8516
8769
|
prevGroupEnd;
|
|
8517
8770
|
disabledLog.__reactDisabledLog = !0;
|
|
8518
8771
|
var prefix,
|
|
8772
|
+
suffix,
|
|
8519
8773
|
reentry = !1;
|
|
8520
8774
|
var componentFrameCache = new (
|
|
8521
8775
|
"function" === typeof WeakMap ? WeakMap : Map
|
|
8522
8776
|
)();
|
|
8523
|
-
var
|
|
8777
|
+
var callComponent = {
|
|
8778
|
+
"react-stack-bottom-frame": function (Component, props, secondArg) {
|
|
8779
|
+
return Component(props, secondArg);
|
|
8780
|
+
}
|
|
8781
|
+
},
|
|
8782
|
+
callComponentInDEV =
|
|
8783
|
+
callComponent["react-stack-bottom-frame"].bind(callComponent),
|
|
8784
|
+
callRender = {
|
|
8785
|
+
"react-stack-bottom-frame": function (instance) {
|
|
8786
|
+
return instance.render();
|
|
8787
|
+
}
|
|
8788
|
+
},
|
|
8789
|
+
callRenderInDEV = callRender["react-stack-bottom-frame"].bind(callRender),
|
|
8790
|
+
callLazyInit = {
|
|
8791
|
+
"react-stack-bottom-frame": function (lazy) {
|
|
8792
|
+
var init = lazy._init;
|
|
8793
|
+
return init(lazy._payload);
|
|
8794
|
+
}
|
|
8795
|
+
},
|
|
8796
|
+
callLazyInitInDEV =
|
|
8797
|
+
callLazyInit["react-stack-bottom-frame"].bind(callLazyInit),
|
|
8798
|
+
CLIENT_RENDERED = 4,
|
|
8524
8799
|
PENDING = 0,
|
|
8525
8800
|
COMPLETED = 1,
|
|
8526
8801
|
FLUSHED = 2,
|
|
8527
8802
|
POSTPONED = 5,
|
|
8803
|
+
CLOSED = 14,
|
|
8528
8804
|
currentRequest = null,
|
|
8529
|
-
currentTaskInDEV = null,
|
|
8530
8805
|
didWarnAboutBadClass = {},
|
|
8806
|
+
didWarnAboutContextTypes = {},
|
|
8531
8807
|
didWarnAboutContextTypeOnFunctionComponent = {},
|
|
8532
8808
|
didWarnAboutGetDerivedStateOnFunctionComponent = {},
|
|
8533
8809
|
didWarnAboutReassigningProps = !1,
|
|
8534
8810
|
didWarnAboutGenerators = !1,
|
|
8535
8811
|
didWarnAboutMaps = !1;
|
|
8536
|
-
(
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8812
|
+
ensureCorrectIsomorphicReactVersion();
|
|
8813
|
+
ensureCorrectIsomorphicReactVersion();
|
|
8814
|
+
exports.prerender = function (children, options) {
|
|
8815
|
+
return new Promise(function (resolve, reject) {
|
|
8816
|
+
var onHeaders = options ? options.onHeaders : void 0,
|
|
8817
|
+
onHeadersImpl;
|
|
8818
|
+
onHeaders &&
|
|
8819
|
+
(onHeadersImpl = function (headersDescriptor) {
|
|
8820
|
+
onHeaders(new Headers(headersDescriptor));
|
|
8821
|
+
});
|
|
8822
|
+
var resources = createResumableState(
|
|
8823
|
+
options ? options.identifierPrefix : void 0,
|
|
8824
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
|
8825
|
+
options ? options.bootstrapScriptContent : void 0,
|
|
8826
|
+
options ? options.bootstrapScripts : void 0,
|
|
8827
|
+
options ? options.bootstrapModules : void 0
|
|
8828
|
+
),
|
|
8829
|
+
request = createPrerenderRequest(
|
|
8830
|
+
children,
|
|
8831
|
+
resources,
|
|
8832
|
+
createRenderState(
|
|
8833
|
+
resources,
|
|
8834
|
+
void 0,
|
|
8835
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
|
8836
|
+
options ? options.importMap : void 0,
|
|
8837
|
+
onHeadersImpl,
|
|
8838
|
+
options ? options.maxHeadersLength : void 0
|
|
8839
|
+
),
|
|
8840
|
+
createRootFormatContext(options ? options.namespaceURI : void 0),
|
|
8841
|
+
options ? options.progressiveChunkSize : void 0,
|
|
8842
|
+
options ? options.onError : void 0,
|
|
8843
|
+
function () {
|
|
8844
|
+
var result = {
|
|
8845
|
+
prelude: new ReadableStream(
|
|
8846
|
+
{
|
|
8847
|
+
type: "bytes",
|
|
8848
|
+
pull: function (controller) {
|
|
8849
|
+
startFlowing(request, controller);
|
|
8850
|
+
},
|
|
8851
|
+
cancel: function (reason) {
|
|
8852
|
+
request.destination = null;
|
|
8853
|
+
abort(request, reason);
|
|
8854
|
+
}
|
|
8855
|
+
},
|
|
8856
|
+
{ highWaterMark: 0 }
|
|
8857
|
+
)
|
|
8858
|
+
};
|
|
8859
|
+
resolve(result);
|
|
8860
|
+
},
|
|
8861
|
+
void 0,
|
|
8862
|
+
void 0,
|
|
8863
|
+
reject,
|
|
8864
|
+
options ? options.onPostpone : void 0
|
|
8865
|
+
);
|
|
8866
|
+
if (options && options.signal) {
|
|
8867
|
+
var signal = options.signal;
|
|
8868
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
8869
|
+
else {
|
|
8870
|
+
var listener = function () {
|
|
8871
|
+
abort(request, signal.reason);
|
|
8872
|
+
signal.removeEventListener("abort", listener);
|
|
8873
|
+
};
|
|
8874
|
+
signal.addEventListener("abort", listener);
|
|
8875
|
+
}
|
|
8876
|
+
}
|
|
8877
|
+
startWork(request);
|
|
8878
|
+
});
|
|
8879
|
+
};
|
|
8545
8880
|
exports.renderToReadableStream = function (children, options) {
|
|
8546
8881
|
return new Promise(function (resolve, reject) {
|
|
8547
8882
|
var onFatalError,
|
|
@@ -8563,7 +8898,7 @@
|
|
|
8563
8898
|
options ? options.bootstrapScripts : void 0,
|
|
8564
8899
|
options ? options.bootstrapModules : void 0
|
|
8565
8900
|
),
|
|
8566
|
-
request
|
|
8901
|
+
request = createRequest(
|
|
8567
8902
|
children,
|
|
8568
8903
|
resumableState,
|
|
8569
8904
|
createRenderState(
|
|
@@ -8583,26 +8918,11 @@
|
|
|
8583
8918
|
{
|
|
8584
8919
|
type: "bytes",
|
|
8585
8920
|
pull: function (controller) {
|
|
8586
|
-
|
|
8587
|
-
if (1 === request.status)
|
|
8588
|
-
(request.status = 2),
|
|
8589
|
-
closeWithError(controller, request.fatalError);
|
|
8590
|
-
else if (
|
|
8591
|
-
2 !== request.status &&
|
|
8592
|
-
null === request.destination
|
|
8593
|
-
) {
|
|
8594
|
-
request.destination = controller;
|
|
8595
|
-
try {
|
|
8596
|
-
flushCompletedQueues(request, controller);
|
|
8597
|
-
} catch (error$7) {
|
|
8598
|
-
logRecoverableError(request, error$7, {}),
|
|
8599
|
-
fatalError(request, error$7);
|
|
8600
|
-
}
|
|
8601
|
-
}
|
|
8921
|
+
startFlowing(request, controller);
|
|
8602
8922
|
},
|
|
8603
8923
|
cancel: function (reason) {
|
|
8604
|
-
request
|
|
8605
|
-
abort(request
|
|
8924
|
+
request.destination = null;
|
|
8925
|
+
abort(request, reason);
|
|
8606
8926
|
}
|
|
8607
8927
|
},
|
|
8608
8928
|
{ highWaterMark: 0 }
|
|
@@ -8620,17 +8940,17 @@
|
|
|
8620
8940
|
);
|
|
8621
8941
|
if (options && options.signal) {
|
|
8622
8942
|
var signal = options.signal;
|
|
8623
|
-
if (signal.aborted) abort(request
|
|
8943
|
+
if (signal.aborted) abort(request, signal.reason);
|
|
8624
8944
|
else {
|
|
8625
8945
|
var listener = function () {
|
|
8626
|
-
abort(request
|
|
8946
|
+
abort(request, signal.reason);
|
|
8627
8947
|
signal.removeEventListener("abort", listener);
|
|
8628
8948
|
};
|
|
8629
8949
|
signal.addEventListener("abort", listener);
|
|
8630
8950
|
}
|
|
8631
8951
|
}
|
|
8632
|
-
startWork(request
|
|
8952
|
+
startWork(request);
|
|
8633
8953
|
});
|
|
8634
8954
|
};
|
|
8635
|
-
exports.version = "19.0.0
|
|
8955
|
+
exports.version = "19.0.0";
|
|
8636
8956
|
})();
|