@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.
Files changed (36) hide show
  1. package/package.json +2 -1
  2. package/react/cjs/react-compiler-runtime.development.js +1 -18
  3. package/react/cjs/react-jsx-dev-runtime.development.js +127 -144
  4. package/react/cjs/react-jsx-dev-runtime.react-server.development.js +128 -145
  5. package/react/cjs/react-jsx-runtime.development.js +127 -144
  6. package/react/cjs/react-jsx-runtime.react-server.development.js +128 -145
  7. package/react/cjs/react.development.js +204 -230
  8. package/react/cjs/react.production.js +9 -10
  9. package/react/cjs/react.react-server.development.js +172 -199
  10. package/react/cjs/react.react-server.production.js +6 -7
  11. package/react/package.json +2 -2
  12. package/react-dom/cjs/react-dom-client.development.js +6107 -5750
  13. package/react-dom/cjs/react-dom-client.production.js +2295 -1924
  14. package/react-dom/cjs/react-dom-profiling.development.js +6134 -5777
  15. package/react-dom/cjs/react-dom-profiling.profiling.js +2572 -2247
  16. package/react-dom/cjs/react-dom-server-legacy.browser.development.js +1244 -1040
  17. package/react-dom/cjs/react-dom-server-legacy.browser.production.js +891 -761
  18. package/react-dom/cjs/react-dom-server-legacy.node.development.js +1244 -1040
  19. package/react-dom/cjs/react-dom-server-legacy.node.production.js +887 -761
  20. package/react-dom/cjs/react-dom-server.browser.development.js +1380 -1060
  21. package/react-dom/cjs/react-dom-server.browser.production.js +999 -749
  22. package/react-dom/cjs/react-dom-server.bun.development.js +1241 -1032
  23. package/react-dom/cjs/react-dom-server.bun.production.js +886 -754
  24. package/react-dom/cjs/react-dom-server.edge.development.js +1393 -1069
  25. package/react-dom/cjs/react-dom-server.edge.production.js +1007 -758
  26. package/react-dom/cjs/react-dom-server.node.development.js +1624 -1254
  27. package/react-dom/cjs/react-dom-server.node.production.js +1242 -953
  28. package/react-dom/cjs/react-dom-test-utils.development.js +1 -20
  29. package/react-dom/cjs/react-dom.development.js +34 -50
  30. package/react-dom/cjs/react-dom.production.js +4 -3
  31. package/react-dom/cjs/react-dom.react-server.development.js +48 -66
  32. package/react-dom/cjs/react-dom.react-server.production.js +6 -8
  33. package/react-dom/package.json +3 -3
  34. package/react-dom/static.browser.js +1 -0
  35. package/react-dom/static.edge.js +1 -0
  36. package/react-dom/static.node.js +1 -0
@@ -11,39 +11,7 @@
11
11
  "use strict";
12
12
  var React = require("react"),
13
13
  ReactDOM = require("react-dom"),
14
- ReactSharedInternals =
15
- React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
16
- function warn(format) {
17
- for (
18
- var _len = arguments.length,
19
- args = Array(1 < _len ? _len - 1 : 0),
20
- _key = 1;
21
- _key < _len;
22
- _key++
23
- )
24
- args[_key - 1] = arguments[_key];
25
- printWarning("warn", format, args, Error("react-stack-top-frame"));
26
- }
27
- function error(format) {
28
- for (
29
- var _len2 = arguments.length,
30
- args = Array(1 < _len2 ? _len2 - 1 : 0),
31
- _key2 = 1;
32
- _key2 < _len2;
33
- _key2++
34
- )
35
- args[_key2 - 1] = arguments[_key2];
36
- printWarning("error", format, args, Error("react-stack-top-frame"));
37
- }
38
- function printWarning(level, format, args, currentStack) {
39
- ReactSharedInternals.getCurrentStack &&
40
- ((currentStack = ReactSharedInternals.getCurrentStack(currentStack)),
41
- "" !== currentStack &&
42
- ((format += "%s"), (args = args.concat([currentStack]))));
43
- args.unshift(format);
44
- Function.prototype.apply.call(console[level], console, args);
45
- }
46
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
14
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
47
15
  REACT_PORTAL_TYPE = Symbol.for("react.portal"),
48
16
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
49
17
  REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
@@ -92,8 +60,8 @@ function describeValueForErrorMessage(value) {
92
60
  return value.$$typeof === CLIENT_REFERENCE_TAG
93
61
  ? "client"
94
62
  : (value = value.displayName || value.name)
95
- ? "function " + value
96
- : "function";
63
+ ? "function " + value
64
+ : "function";
97
65
  default:
98
66
  return String(value);
99
67
  }
@@ -137,8 +105,8 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
137
105
  "string" === typeof value
138
106
  ? value
139
107
  : "object" === typeof value && null !== value
140
- ? "{" + describeObjectForErrorMessage(value) + "}"
141
- : "{" + describeValueForErrorMessage(value) + "}";
108
+ ? "{" + describeObjectForErrorMessage(value) + "}"
109
+ : "{" + describeValueForErrorMessage(value) + "}";
142
110
  "" + i === expandedName
143
111
  ? ((start = objKind.length),
144
112
  (length = value.length),
@@ -222,10 +190,11 @@ function describeObjectForErrorMessage(objectOrArray, expandedName) {
222
190
  return void 0 === expandedName
223
191
  ? objKind
224
192
  : -1 < start && 0 < length
225
- ? ((objectOrArray = " ".repeat(start) + "^".repeat(length)),
226
- "\n " + objKind + "\n " + objectOrArray)
227
- : "\n " + objKind;
193
+ ? ((objectOrArray = " ".repeat(start) + "^".repeat(length)),
194
+ "\n " + objKind + "\n " + objectOrArray)
195
+ : "\n " + objKind;
228
196
  }
197
+ var scheduleMicrotask = queueMicrotask;
229
198
  function flushBuffered(destination) {
230
199
  "function" === typeof destination.flush && destination.flush();
231
200
  }
@@ -260,7 +229,7 @@ function testStringCoercion(value) {
260
229
  function checkAttributeStringCoercion(value, attributeName) {
261
230
  if (willCoercionThrow(value))
262
231
  return (
263
- error(
232
+ console.error(
264
233
  "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",
265
234
  attributeName,
266
235
  typeName(value)
@@ -271,7 +240,7 @@ function checkAttributeStringCoercion(value, attributeName) {
271
240
  function checkCSSPropertyStringCoercion(value, propName) {
272
241
  if (willCoercionThrow(value))
273
242
  return (
274
- error(
243
+ console.error(
275
244
  "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",
276
245
  propName,
277
246
  typeName(value)
@@ -282,7 +251,7 @@ function checkCSSPropertyStringCoercion(value, propName) {
282
251
  function checkHtmlStringCoercion(value) {
283
252
  if (willCoercionThrow(value))
284
253
  return (
285
- error(
254
+ console.error(
286
255
  "The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",
287
256
  typeName(value)
288
257
  ),
@@ -302,7 +271,7 @@ function isAttributeNameSafe(attributeName) {
302
271
  if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName))
303
272
  return (validatedAttributeNameCache[attributeName] = !0);
304
273
  illegalAttributeNameCache[attributeName] = !0;
305
- error("Invalid attribute name: `%s`", attributeName);
274
+ console.error("Invalid attribute name: `%s`", attributeName);
306
275
  return !1;
307
276
  }
308
277
  var unitlessNumbers = new Set(
@@ -407,17 +376,17 @@ function checkControlledValueProps(tagName, props) {
407
376
  props.disabled ||
408
377
  null == props.value ||
409
378
  ("select" === tagName
410
- ? error(
379
+ ? console.error(
411
380
  "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`."
412
381
  )
413
- : error(
382
+ : console.error(
414
383
  "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`."
415
384
  ));
416
385
  props.onChange ||
417
386
  props.readOnly ||
418
387
  props.disabled ||
419
388
  null == props.checked ||
420
- error(
389
+ console.error(
421
390
  "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`."
422
391
  );
423
392
  }
@@ -487,7 +456,7 @@ function validateProperty$1(tagName, name) {
487
456
  tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;
488
457
  if (null == tagName)
489
458
  return (
490
- error(
459
+ console.error(
491
460
  "Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",
492
461
  name
493
462
  ),
@@ -495,7 +464,11 @@ function validateProperty$1(tagName, name) {
495
464
  );
496
465
  if (name !== tagName)
497
466
  return (
498
- error("Invalid ARIA attribute `%s`. Did you mean `%s`?", name, tagName),
467
+ console.error(
468
+ "Invalid ARIA attribute `%s`. Did you mean `%s`?",
469
+ name,
470
+ tagName
471
+ ),
499
472
  (warnedProperties$1[name] = !0)
500
473
  );
501
474
  }
@@ -504,7 +477,11 @@ function validateProperty$1(tagName, name) {
504
477
  tagName = ariaProperties.hasOwnProperty(tagName) ? tagName : null;
505
478
  if (null == tagName) return (warnedProperties$1[name] = !0), !1;
506
479
  name !== tagName &&
507
- (error("Unknown ARIA attribute `%s`. Did you mean `%s`?", name, tagName),
480
+ (console.error(
481
+ "Unknown ARIA attribute `%s`. Did you mean `%s`?",
482
+ name,
483
+ tagName
484
+ ),
508
485
  (warnedProperties$1[name] = !0));
509
486
  }
510
487
  return !0;
@@ -519,13 +496,13 @@ function validateProperties$2(type, props) {
519
496
  })
520
497
  .join(", ");
521
498
  1 === invalidProps.length
522
- ? error(
499
+ ? console.error(
523
500
  "Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
524
501
  props,
525
502
  type
526
503
  )
527
504
  : 1 < invalidProps.length &&
528
- error(
505
+ console.error(
529
506
  "Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",
530
507
  props,
531
508
  type
@@ -1041,7 +1018,7 @@ function validateProperty(tagName, name, value, eventRegistry) {
1041
1018
  var lowerCasedName = name.toLowerCase();
1042
1019
  if ("onfocusin" === lowerCasedName || "onfocusout" === lowerCasedName)
1043
1020
  return (
1044
- error(
1021
+ console.error(
1045
1022
  "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."
1046
1023
  ),
1047
1024
  (warnedProperties[name] = !0)
@@ -1062,7 +1039,7 @@ function validateProperty(tagName, name, value, eventRegistry) {
1062
1039
  : null;
1063
1040
  if (null != eventRegistry)
1064
1041
  return (
1065
- error(
1042
+ console.error(
1066
1043
  "Invalid event handler property `%s`. Did you mean `%s`?",
1067
1044
  name,
1068
1045
  eventRegistry
@@ -1071,13 +1048,16 @@ function validateProperty(tagName, name, value, eventRegistry) {
1071
1048
  );
1072
1049
  if (EVENT_NAME_REGEX.test(name))
1073
1050
  return (
1074
- error("Unknown event handler property `%s`. It will be ignored.", name),
1051
+ console.error(
1052
+ "Unknown event handler property `%s`. It will be ignored.",
1053
+ name
1054
+ ),
1075
1055
  (warnedProperties[name] = !0)
1076
1056
  );
1077
1057
  } else if (EVENT_NAME_REGEX.test(name))
1078
1058
  return (
1079
1059
  INVALID_EVENT_NAME_REGEX.test(name) &&
1080
- error(
1060
+ console.error(
1081
1061
  "Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",
1082
1062
  name
1083
1063
  ),
@@ -1086,14 +1066,14 @@ function validateProperty(tagName, name, value, eventRegistry) {
1086
1066
  if (rARIA.test(name) || rARIACamel.test(name)) return !0;
1087
1067
  if ("innerhtml" === lowerCasedName)
1088
1068
  return (
1089
- error(
1069
+ console.error(
1090
1070
  "Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."
1091
1071
  ),
1092
1072
  (warnedProperties[name] = !0)
1093
1073
  );
1094
1074
  if ("aria" === lowerCasedName)
1095
1075
  return (
1096
- error(
1076
+ console.error(
1097
1077
  "The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."
1098
1078
  ),
1099
1079
  (warnedProperties[name] = !0)
@@ -1105,7 +1085,7 @@ function validateProperty(tagName, name, value, eventRegistry) {
1105
1085
  "string" !== typeof value
1106
1086
  )
1107
1087
  return (
1108
- error(
1088
+ console.error(
1109
1089
  "Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",
1110
1090
  typeof value
1111
1091
  ),
@@ -1113,7 +1093,7 @@ function validateProperty(tagName, name, value, eventRegistry) {
1113
1093
  );
1114
1094
  if ("number" === typeof value && isNaN(value))
1115
1095
  return (
1116
- error(
1096
+ console.error(
1117
1097
  "Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",
1118
1098
  name
1119
1099
  ),
@@ -1125,7 +1105,7 @@ function validateProperty(tagName, name, value, eventRegistry) {
1125
1105
  lowerCasedName !== name)
1126
1106
  )
1127
1107
  return (
1128
- error(
1108
+ console.error(
1129
1109
  "Invalid DOM property `%s`. Did you mean `%s`?",
1130
1110
  name,
1131
1111
  lowerCasedName
@@ -1134,7 +1114,7 @@ function validateProperty(tagName, name, value, eventRegistry) {
1134
1114
  );
1135
1115
  } else if (name !== lowerCasedName)
1136
1116
  return (
1137
- error(
1117
+ console.error(
1138
1118
  "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.",
1139
1119
  name,
1140
1120
  lowerCasedName
@@ -1203,7 +1183,7 @@ function validateProperty(tagName, name, value, eventRegistry) {
1203
1183
  if ("data-" === lowerCasedName || "aria-" === lowerCasedName)
1204
1184
  return !0;
1205
1185
  value
1206
- ? error(
1186
+ ? console.error(
1207
1187
  '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()}.',
1208
1188
  value,
1209
1189
  name,
@@ -1211,7 +1191,7 @@ function validateProperty(tagName, name, value, eventRegistry) {
1211
1191
  value,
1212
1192
  name
1213
1193
  )
1214
- : error(
1194
+ : console.error(
1215
1195
  '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.',
1216
1196
  value,
1217
1197
  name,
@@ -1260,7 +1240,7 @@ function validateProperty(tagName, name, value, eventRegistry) {
1260
1240
  default:
1261
1241
  return !0;
1262
1242
  }
1263
- error(
1243
+ console.error(
1264
1244
  "Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",
1265
1245
  value,
1266
1246
  name,
@@ -1287,13 +1267,13 @@ function warnUnknownProperties(type, props, eventRegistry) {
1287
1267
  })
1288
1268
  .join(", ");
1289
1269
  1 === unknownProps.length
1290
- ? error(
1270
+ ? console.error(
1291
1271
  "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 ",
1292
1272
  props,
1293
1273
  type
1294
1274
  )
1295
1275
  : 1 < unknownProps.length &&
1296
- error(
1276
+ console.error(
1297
1277
  "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 ",
1298
1278
  props,
1299
1279
  type
@@ -1364,7 +1344,9 @@ function sanitizeURL(url) {
1364
1344
  ? "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"
1365
1345
  : url;
1366
1346
  }
1367
- var ReactDOMSharedInternals =
1347
+ var ReactSharedInternals =
1348
+ React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
1349
+ ReactDOMSharedInternals =
1368
1350
  ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
1369
1351
  NotPending = Object.freeze({
1370
1352
  pending: !1,
@@ -1435,7 +1417,7 @@ function createRenderState(
1435
1417
  onHeaders &&
1436
1418
  "number" === typeof maxHeadersLength &&
1437
1419
  0 >= maxHeadersLength &&
1438
- error(
1420
+ console.error(
1439
1421
  "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.",
1440
1422
  0 === maxHeadersLength ? "zero" : maxHeadersLength
1441
1423
  );
@@ -1456,7 +1438,7 @@ function createRenderState(
1456
1438
  fontPreloads: "",
1457
1439
  highImagePreloads: "",
1458
1440
  remainingCapacity:
1459
- "number" === typeof maxHeadersLength ? maxHeadersLength : 2e3
1441
+ 2 + ("number" === typeof maxHeadersLength ? maxHeadersLength : 2e3)
1460
1442
  }
1461
1443
  : null,
1462
1444
  resets: {
@@ -1508,8 +1490,8 @@ function createRenderState(
1508
1490
  null == maxHeadersLength.crossOrigin
1509
1491
  ? void 0
1510
1492
  : "use-credentials" === maxHeadersLength.crossOrigin
1511
- ? "use-credentials"
1512
- : ""));
1493
+ ? "use-credentials"
1494
+ : ""));
1513
1495
  preloadBootstrapScriptOrModule(
1514
1496
  resumableState,
1515
1497
  importMap,
@@ -1558,8 +1540,8 @@ function createRenderState(
1558
1540
  "string" === typeof onHeaders || null == onHeaders.crossOrigin
1559
1541
  ? void 0
1560
1542
  : "use-credentials" === onHeaders.crossOrigin
1561
- ? "use-credentials"
1562
- : "")),
1543
+ ? "use-credentials"
1544
+ : "")),
1563
1545
  preloadBootstrapScriptOrModule(
1564
1546
  resumableState,
1565
1547
  importMap,
@@ -1633,8 +1615,8 @@ function createRootFormatContext(namespaceURI) {
1633
1615
  "http://www.w3.org/2000/svg" === namespaceURI
1634
1616
  ? SVG_MODE
1635
1617
  : "http://www.w3.org/1998/Math/MathML" === namespaceURI
1636
- ? MATHML_MODE
1637
- : ROOT_HTML_MODE,
1618
+ ? MATHML_MODE
1619
+ : ROOT_HTML_MODE,
1638
1620
  null,
1639
1621
  0
1640
1622
  );
@@ -1683,12 +1665,12 @@ function getChildFormatContext(parentContext, type, props) {
1683
1665
  return parentContext.insertionMode >= HTML_TABLE_MODE
1684
1666
  ? createFormatContext(HTML_MODE, null, parentContext.tagScope)
1685
1667
  : parentContext.insertionMode === ROOT_HTML_MODE
1686
- ? "html" === type
1687
- ? createFormatContext(HTML_HTML_MODE, null, parentContext.tagScope)
1688
- : createFormatContext(HTML_MODE, null, parentContext.tagScope)
1689
- : parentContext.insertionMode === HTML_HTML_MODE
1690
- ? createFormatContext(HTML_MODE, null, parentContext.tagScope)
1691
- : parentContext;
1668
+ ? "html" === type
1669
+ ? createFormatContext(HTML_HTML_MODE, null, parentContext.tagScope)
1670
+ : createFormatContext(HTML_MODE, null, parentContext.tagScope)
1671
+ : parentContext.insertionMode === HTML_HTML_MODE
1672
+ ? createFormatContext(HTML_MODE, null, parentContext.tagScope)
1673
+ : parentContext;
1692
1674
  }
1693
1675
  function pushTextInstance(target, text, renderState, textEmbedded) {
1694
1676
  if ("" === text) return textEmbedded;
@@ -1726,7 +1708,7 @@ function pushStyleAttribute(target, style) {
1726
1708
  var name = nameChunk;
1727
1709
  (warnedStyleNames.hasOwnProperty(name) && warnedStyleNames[name]) ||
1728
1710
  ((warnedStyleNames[name] = !0),
1729
- error(
1711
+ console.error(
1730
1712
  "Unsupported style property %s. Did you mean %s?",
1731
1713
  name,
1732
1714
  camelize(name.replace(msPattern$1, "ms-"))
@@ -1736,7 +1718,7 @@ function pushStyleAttribute(target, style) {
1736
1718
  (warnedStyleNames.hasOwnProperty(name) &&
1737
1719
  warnedStyleNames[name]) ||
1738
1720
  ((warnedStyleNames[name] = !0),
1739
- error(
1721
+ console.error(
1740
1722
  "Unsupported vendor-prefixed style property %s. Did you mean %s?",
1741
1723
  name,
1742
1724
  name.charAt(0).toUpperCase() + name.slice(1)
@@ -1747,7 +1729,7 @@ function pushStyleAttribute(target, style) {
1747
1729
  (warnedStyleValues.hasOwnProperty(value$jscomp$0) &&
1748
1730
  warnedStyleValues[value$jscomp$0]) ||
1749
1731
  ((warnedStyleValues[value$jscomp$0] = !0),
1750
- error(
1732
+ console.error(
1751
1733
  'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',
1752
1734
  name,
1753
1735
  value$jscomp$0.replace(badStyleValueWithSemicolonPattern, "")
@@ -1757,14 +1739,14 @@ function pushStyleAttribute(target, style) {
1757
1739
  (isNaN(value)
1758
1740
  ? warnedForNaNValue ||
1759
1741
  ((warnedForNaNValue = !0),
1760
- error(
1742
+ console.error(
1761
1743
  "`NaN` is an invalid value for the `%s` css style property.",
1762
1744
  nameChunk
1763
1745
  ))
1764
1746
  : isFinite(value) ||
1765
1747
  warnedForInfinityValue ||
1766
1748
  ((warnedForInfinityValue = !0),
1767
- error(
1749
+ console.error(
1768
1750
  "`Infinity` is an invalid value for the `%s` css style property.",
1769
1751
  nameChunk
1770
1752
  )));
@@ -1853,7 +1835,7 @@ function getCustomFormFields(resumableState, formAction) {
1853
1835
  } catch (x) {
1854
1836
  if ("object" === typeof x && null !== x && "function" === typeof x.then)
1855
1837
  throw x;
1856
- error(
1838
+ console.error(
1857
1839
  "Failed to serialize an action for progressive enhancement:\n%s",
1858
1840
  x
1859
1841
  );
@@ -1876,19 +1858,19 @@ function pushFormActionAttribute(
1876
1858
  null === name ||
1877
1859
  didWarnFormActionName ||
1878
1860
  ((didWarnFormActionName = !0),
1879
- error(
1861
+ console.error(
1880
1862
  '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.'
1881
1863
  ));
1882
1864
  (null === formEncType && null === formMethod) ||
1883
1865
  didWarnFormActionMethod ||
1884
1866
  ((didWarnFormActionMethod = !0),
1885
- error(
1867
+ console.error(
1886
1868
  "Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden."
1887
1869
  ));
1888
1870
  null === formTarget ||
1889
1871
  didWarnFormActionTarget ||
1890
1872
  ((didWarnFormActionTarget = !0),
1891
- error(
1873
+ console.error(
1892
1874
  "Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."
1893
1875
  ));
1894
1876
  var customFields = getCustomFormFields(resumableState, formAction);
@@ -1938,12 +1920,12 @@ function pushAttribute(target, name, value) {
1938
1920
  case "href":
1939
1921
  if ("" === value) {
1940
1922
  "src" === name
1941
- ? error(
1923
+ ? console.error(
1942
1924
  '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.',
1943
1925
  name,
1944
1926
  name
1945
1927
  )
1946
- : error(
1928
+ : console.error(
1947
1929
  '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.',
1948
1930
  name,
1949
1931
  name
@@ -2020,7 +2002,7 @@ function pushAttribute(target, name, value) {
2020
2002
  "" !== value ||
2021
2003
  didWarnForNewBooleanPropsWithEmptyValue[name] ||
2022
2004
  ((didWarnForNewBooleanPropsWithEmptyValue[name] = !0),
2023
- error(
2005
+ console.error(
2024
2006
  "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.",
2025
2007
  name
2026
2008
  ));
@@ -2181,13 +2163,13 @@ function checkSelectProp(props, propName) {
2181
2163
  null != value &&
2182
2164
  ((value = isArrayImpl(value)),
2183
2165
  props.multiple && !value
2184
- ? error(
2166
+ ? console.error(
2185
2167
  "The `%s` prop supplied to <select> must be an array if `multiple` is true.",
2186
2168
  propName
2187
2169
  )
2188
2170
  : !props.multiple &&
2189
2171
  value &&
2190
- error(
2172
+ console.error(
2191
2173
  "The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.",
2192
2174
  propName
2193
2175
  ));
@@ -2202,7 +2184,7 @@ function flattenOptionChildren(children) {
2202
2184
  "number" === typeof child ||
2203
2185
  "bigint" === typeof child ||
2204
2186
  ((didWarnInvalidOptionChildren = !0),
2205
- error(
2187
+ console.error(
2206
2188
  "Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."
2207
2189
  )));
2208
2190
  });
@@ -2328,9 +2310,9 @@ function pushScriptImpl(target, props) {
2328
2310
  "number" === typeof children
2329
2311
  ? "a number for children"
2330
2312
  : Array.isArray(children)
2331
- ? "an array for children"
2332
- : "something unexpected for children"),
2333
- error(
2313
+ ? "an array for children"
2314
+ : "something unexpected for children"),
2315
+ console.error(
2334
2316
  "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.",
2335
2317
  props
2336
2318
  ));
@@ -2394,11 +2376,11 @@ function pushStartInstance(
2394
2376
  didWarnValueNull ||
2395
2377
  ((didWarnValueNull = !0),
2396
2378
  "select" === type && props.multiple
2397
- ? error(
2379
+ ? console.error(
2398
2380
  "`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.",
2399
2381
  type
2400
2382
  )
2401
- : error(
2383
+ : console.error(
2402
2384
  "`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",
2403
2385
  type
2404
2386
  ));
@@ -2424,14 +2406,14 @@ function pushStartInstance(
2424
2406
  !props.suppressContentEditableWarning &&
2425
2407
  props.contentEditable &&
2426
2408
  null != props.children &&
2427
- error(
2409
+ console.error(
2428
2410
  "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."
2429
2411
  );
2430
2412
  formatContext.insertionMode !== SVG_MODE &&
2431
2413
  formatContext.insertionMode !== MATHML_MODE &&
2432
2414
  -1 === type.indexOf("-") &&
2433
2415
  type.toLowerCase() !== type &&
2434
- error(
2416
+ console.error(
2435
2417
  "<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",
2436
2418
  type
2437
2419
  );
@@ -2484,7 +2466,7 @@ function pushStartInstance(
2484
2466
  void 0 === props.value ||
2485
2467
  void 0 === props.defaultValue ||
2486
2468
  didWarnDefaultSelectValue ||
2487
- (error(
2469
+ (console.error(
2488
2470
  "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"
2489
2471
  ),
2490
2472
  (didWarnDefaultSelectValue = !0));
@@ -2536,7 +2518,7 @@ function pushStartInstance(
2536
2518
  case "selected":
2537
2519
  selected = propValue$jscomp$1;
2538
2520
  didWarnSelectedSetOnOption ||
2539
- (error(
2521
+ (console.error(
2540
2522
  "Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."
2541
2523
  ),
2542
2524
  (didWarnSelectedSetOnOption = !0));
@@ -2562,7 +2544,7 @@ function pushStartInstance(
2562
2544
  null === innerHTML$jscomp$1 ||
2563
2545
  didWarnInvalidOptionInnerHTML ||
2564
2546
  ((didWarnInvalidOptionInnerHTML = !0),
2565
- error(
2547
+ console.error(
2566
2548
  "Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."
2567
2549
  )),
2568
2550
  (stringValue = flattenOptionChildren(children$jscomp$1));
@@ -2589,7 +2571,7 @@ function pushStartInstance(
2589
2571
  void 0 === props.value ||
2590
2572
  void 0 === props.defaultValue ||
2591
2573
  didWarnDefaultTextareaValue ||
2592
- (error(
2574
+ (console.error(
2593
2575
  "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"
2594
2576
  ),
2595
2577
  (didWarnDefaultTextareaValue = !0));
@@ -2629,7 +2611,7 @@ function pushStartInstance(
2629
2611
  (value$jscomp$0 = defaultValue);
2630
2612
  target$jscomp$0.push(endOfStartTag);
2631
2613
  if (null != children$jscomp$2) {
2632
- error(
2614
+ console.error(
2633
2615
  "Use the `defaultValue` or `value` props instead of setting children on <textarea>."
2634
2616
  );
2635
2617
  if (null != value$jscomp$0)
@@ -2715,7 +2697,7 @@ function pushStartInstance(
2715
2697
  "submit" === props.type ||
2716
2698
  didWarnFormActionType ||
2717
2699
  ((didWarnFormActionType = !0),
2718
- error(
2700
+ console.error(
2719
2701
  'An input can only specify a formAction along with type="submit" or type="image".'
2720
2702
  ));
2721
2703
  var formData = pushFormActionAttribute(
@@ -2731,7 +2713,7 @@ function pushStartInstance(
2731
2713
  null === checked ||
2732
2714
  null === defaultChecked ||
2733
2715
  didWarnDefaultChecked ||
2734
- (error(
2716
+ (console.error(
2735
2717
  "%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",
2736
2718
  "A component",
2737
2719
  props.type
@@ -2740,7 +2722,7 @@ function pushStartInstance(
2740
2722
  null === value$jscomp$1 ||
2741
2723
  null === defaultValue$jscomp$0 ||
2742
2724
  didWarnDefaultInputValue ||
2743
- (error(
2725
+ (console.error(
2744
2726
  "%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",
2745
2727
  "A component",
2746
2728
  props.type
@@ -2807,7 +2789,7 @@ function pushStartInstance(
2807
2789
  "submit" === props.type ||
2808
2790
  didWarnFormActionType ||
2809
2791
  ((didWarnFormActionType = !0),
2810
- error(
2792
+ console.error(
2811
2793
  'A button can only specify a formAction along with type="submit" or no type.'
2812
2794
  ));
2813
2795
  var formData$jscomp$0 = pushFormActionAttribute(
@@ -2875,13 +2857,13 @@ function pushStartInstance(
2875
2857
  (null === formEncType$jscomp$1 && null === formMethod$jscomp$1) ||
2876
2858
  didWarnFormActionMethod ||
2877
2859
  ((didWarnFormActionMethod = !0),
2878
- error(
2860
+ console.error(
2879
2861
  "Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden."
2880
2862
  ));
2881
2863
  null === formTarget$jscomp$1 ||
2882
2864
  didWarnFormActionTarget ||
2883
2865
  ((didWarnFormActionTarget = !0),
2884
- error(
2866
+ console.error(
2885
2867
  "Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."
2886
2868
  ));
2887
2869
  var customFields = getCustomFormFields(
@@ -2952,51 +2934,101 @@ function pushStartInstance(
2952
2934
  }
2953
2935
  target$jscomp$0.push(endOfStartTag);
2954
2936
  return null;
2937
+ case "object":
2938
+ target$jscomp$0.push(startChunkForTag("object"));
2939
+ var children$jscomp$5 = null,
2940
+ innerHTML$jscomp$4 = null,
2941
+ propKey$jscomp$7;
2942
+ for (propKey$jscomp$7 in props)
2943
+ if (hasOwnProperty.call(props, propKey$jscomp$7)) {
2944
+ var propValue$jscomp$7 = props[propKey$jscomp$7];
2945
+ if (null != propValue$jscomp$7)
2946
+ switch (propKey$jscomp$7) {
2947
+ case "children":
2948
+ children$jscomp$5 = propValue$jscomp$7;
2949
+ break;
2950
+ case "dangerouslySetInnerHTML":
2951
+ innerHTML$jscomp$4 = propValue$jscomp$7;
2952
+ break;
2953
+ case "data":
2954
+ checkAttributeStringCoercion(propValue$jscomp$7, "data");
2955
+ var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
2956
+ if ("" === sanitizedValue) {
2957
+ console.error(
2958
+ '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.',
2959
+ propKey$jscomp$7,
2960
+ propKey$jscomp$7
2961
+ );
2962
+ break;
2963
+ }
2964
+ target$jscomp$0.push(
2965
+ attributeSeparator,
2966
+ "data",
2967
+ attributeAssign,
2968
+ escapeTextForBrowser(sanitizedValue),
2969
+ attributeEnd
2970
+ );
2971
+ break;
2972
+ default:
2973
+ pushAttribute(
2974
+ target$jscomp$0,
2975
+ propKey$jscomp$7,
2976
+ propValue$jscomp$7
2977
+ );
2978
+ }
2979
+ }
2980
+ target$jscomp$0.push(endOfStartTag);
2981
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
2982
+ if ("string" === typeof children$jscomp$5) {
2983
+ target$jscomp$0.push(escapeTextForBrowser(children$jscomp$5));
2984
+ var JSCompiler_inline_result$jscomp$3 = null;
2985
+ } else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
2986
+ return JSCompiler_inline_result$jscomp$3;
2955
2987
  case "title":
2956
2988
  var insertionMode = formatContext.insertionMode,
2957
2989
  noscriptTagInScope = !!(formatContext.tagScope & 1);
2958
2990
  if (hasOwnProperty.call(props, "children")) {
2959
- var children$jscomp$5 = props.children,
2960
- child = Array.isArray(children$jscomp$5)
2961
- ? 2 > children$jscomp$5.length
2962
- ? children$jscomp$5[0]
2991
+ var children$jscomp$6 = props.children,
2992
+ child = Array.isArray(children$jscomp$6)
2993
+ ? 2 > children$jscomp$6.length
2994
+ ? children$jscomp$6[0]
2963
2995
  : null
2964
- : children$jscomp$5;
2965
- Array.isArray(children$jscomp$5) && 1 < children$jscomp$5.length
2966
- ? error(
2996
+ : children$jscomp$6;
2997
+ Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
2998
+ ? console.error(
2967
2999
  "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>.",
2968
- children$jscomp$5.length
3000
+ children$jscomp$6.length
2969
3001
  )
2970
3002
  : "function" === typeof child || "symbol" === typeof child
2971
- ? error(
2972
- "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.",
2973
- "function" === typeof child ? "a Function" : "a Sybmol"
2974
- )
2975
- : child &&
2976
- child.toString === {}.toString &&
2977
- (null != child.$$typeof
2978
- ? error(
2979
- "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."
2980
- )
2981
- : error(
2982
- "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>."
2983
- ));
3003
+ ? console.error(
3004
+ "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.",
3005
+ "function" === typeof child ? "a Function" : "a Sybmol"
3006
+ )
3007
+ : child &&
3008
+ child.toString === {}.toString &&
3009
+ (null != child.$$typeof
3010
+ ? console.error(
3011
+ "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."
3012
+ )
3013
+ : console.error(
3014
+ "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>."
3015
+ ));
2984
3016
  }
2985
3017
  if (
2986
3018
  insertionMode === SVG_MODE ||
2987
3019
  noscriptTagInScope ||
2988
3020
  null != props.itemProp
2989
3021
  )
2990
- var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
3022
+ var JSCompiler_inline_result$jscomp$4 = pushTitleImpl(
2991
3023
  target$jscomp$0,
2992
3024
  props
2993
3025
  );
2994
3026
  else
2995
3027
  isFallback
2996
- ? (JSCompiler_inline_result$jscomp$3 = null)
3028
+ ? (JSCompiler_inline_result$jscomp$4 = null)
2997
3029
  : (pushTitleImpl(renderState.hoistableChunks, props),
2998
- (JSCompiler_inline_result$jscomp$3 = void 0));
2999
- return JSCompiler_inline_result$jscomp$3;
3030
+ (JSCompiler_inline_result$jscomp$4 = void 0));
3031
+ return JSCompiler_inline_result$jscomp$4;
3000
3032
  case "link":
3001
3033
  var rel = props.rel,
3002
3034
  href = props.href,
@@ -3012,18 +3044,18 @@ function pushStartInstance(
3012
3044
  "stylesheet" === rel &&
3013
3045
  "string" === typeof props.precedence &&
3014
3046
  (("string" === typeof href && href) ||
3015
- error(
3047
+ console.error(
3016
3048
  '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.',
3017
3049
  null === href
3018
3050
  ? "`null`"
3019
3051
  : void 0 === href
3020
- ? "`undefined`"
3021
- : "" === href
3022
- ? "an empty string"
3023
- : 'something with type "' + typeof href + '"'
3052
+ ? "`undefined`"
3053
+ : "" === href
3054
+ ? "an empty string"
3055
+ : 'something with type "' + typeof href + '"'
3024
3056
  ));
3025
3057
  pushLinkImpl(target$jscomp$0, props);
3026
- var JSCompiler_inline_result$jscomp$4 = null;
3058
+ var JSCompiler_inline_result$jscomp$5 = null;
3027
3059
  } else if ("stylesheet" === props.rel)
3028
3060
  if (
3029
3061
  "string" !== typeof precedence ||
@@ -3033,7 +3065,7 @@ function pushStartInstance(
3033
3065
  ) {
3034
3066
  if ("string" === typeof precedence)
3035
3067
  if (null != props.disabled)
3036
- error(
3068
+ console.error(
3037
3069
  '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.'
3038
3070
  );
3039
3071
  else if (props.onLoad || props.onError) {
@@ -3041,15 +3073,15 @@ function pushStartInstance(
3041
3073
  props.onLoad && props.onError
3042
3074
  ? "`onLoad` and `onError` props"
3043
3075
  : props.onLoad
3044
- ? "`onLoad` prop"
3045
- : "`onError` prop";
3046
- error(
3076
+ ? "`onLoad` prop"
3077
+ : "`onError` prop";
3078
+ console.error(
3047
3079
  '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.',
3048
3080
  propDescription,
3049
3081
  propDescription
3050
3082
  );
3051
3083
  }
3052
- JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
3084
+ JSCompiler_inline_result$jscomp$5 = pushLinkImpl(
3053
3085
  target$jscomp$0,
3054
3086
  props
3055
3087
  );
@@ -3092,19 +3124,19 @@ function pushStartInstance(
3092
3124
  hoistableState.stylesheets.add(_resource);
3093
3125
  }
3094
3126
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
3095
- JSCompiler_inline_result$jscomp$4 = null;
3127
+ JSCompiler_inline_result$jscomp$5 = null;
3096
3128
  }
3097
3129
  else
3098
3130
  props.onLoad || props.onError
3099
- ? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
3131
+ ? (JSCompiler_inline_result$jscomp$5 = pushLinkImpl(
3100
3132
  target$jscomp$0,
3101
3133
  props
3102
3134
  ))
3103
3135
  : (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
3104
- (JSCompiler_inline_result$jscomp$4 = isFallback
3136
+ (JSCompiler_inline_result$jscomp$5 = isFallback
3105
3137
  ? null
3106
3138
  : pushLinkImpl(renderState.hoistableChunks, props)));
3107
- return JSCompiler_inline_result$jscomp$4;
3139
+ return JSCompiler_inline_result$jscomp$5;
3108
3140
  case "script":
3109
3141
  var asyncProp = props.async;
3110
3142
  if (
@@ -3119,7 +3151,7 @@ function pushStartInstance(
3119
3151
  formatContext.tagScope & 1 ||
3120
3152
  null != props.itemProp
3121
3153
  )
3122
- var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
3154
+ var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
3123
3155
  target$jscomp$0,
3124
3156
  props
3125
3157
  );
@@ -3149,29 +3181,29 @@ function pushStartInstance(
3149
3181
  pushScriptImpl(resource$jscomp$0, scriptProps);
3150
3182
  }
3151
3183
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
3152
- JSCompiler_inline_result$jscomp$5 = null;
3184
+ JSCompiler_inline_result$jscomp$6 = null;
3153
3185
  }
3154
- return JSCompiler_inline_result$jscomp$5;
3186
+ return JSCompiler_inline_result$jscomp$6;
3155
3187
  case "style":
3156
3188
  var insertionMode$jscomp$0 = formatContext.insertionMode,
3157
3189
  noscriptTagInScope$jscomp$0 = !!(formatContext.tagScope & 1);
3158
3190
  if (hasOwnProperty.call(props, "children")) {
3159
- var children$jscomp$6 = props.children,
3160
- child$jscomp$0 = Array.isArray(children$jscomp$6)
3161
- ? 2 > children$jscomp$6.length
3162
- ? children$jscomp$6[0]
3191
+ var children$jscomp$7 = props.children,
3192
+ child$jscomp$0 = Array.isArray(children$jscomp$7)
3193
+ ? 2 > children$jscomp$7.length
3194
+ ? children$jscomp$7[0]
3163
3195
  : null
3164
- : children$jscomp$6;
3196
+ : children$jscomp$7;
3165
3197
  ("function" === typeof child$jscomp$0 ||
3166
3198
  "symbol" === typeof child$jscomp$0 ||
3167
3199
  Array.isArray(child$jscomp$0)) &&
3168
- error(
3200
+ console.error(
3169
3201
  "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.",
3170
3202
  "function" === typeof child$jscomp$0
3171
3203
  ? "a Function"
3172
3204
  : "symbol" === typeof child$jscomp$0
3173
- ? "a Sybmol"
3174
- : "an Array"
3205
+ ? "a Sybmol"
3206
+ : "an Array"
3175
3207
  );
3176
3208
  }
3177
3209
  var precedence$jscomp$0 = props.precedence,
@@ -3185,45 +3217,45 @@ function pushStartInstance(
3185
3217
  "" === href$jscomp$0
3186
3218
  ) {
3187
3219
  target$jscomp$0.push(startChunkForTag("style"));
3188
- var children$jscomp$7 = null,
3189
- innerHTML$jscomp$4 = null,
3190
- propKey$jscomp$7;
3191
- for (propKey$jscomp$7 in props)
3192
- if (hasOwnProperty.call(props, propKey$jscomp$7)) {
3193
- var propValue$jscomp$7 = props[propKey$jscomp$7];
3194
- if (null != propValue$jscomp$7)
3195
- switch (propKey$jscomp$7) {
3220
+ var children$jscomp$8 = null,
3221
+ innerHTML$jscomp$5 = null,
3222
+ propKey$jscomp$8;
3223
+ for (propKey$jscomp$8 in props)
3224
+ if (hasOwnProperty.call(props, propKey$jscomp$8)) {
3225
+ var propValue$jscomp$8 = props[propKey$jscomp$8];
3226
+ if (null != propValue$jscomp$8)
3227
+ switch (propKey$jscomp$8) {
3196
3228
  case "children":
3197
- children$jscomp$7 = propValue$jscomp$7;
3229
+ children$jscomp$8 = propValue$jscomp$8;
3198
3230
  break;
3199
3231
  case "dangerouslySetInnerHTML":
3200
- innerHTML$jscomp$4 = propValue$jscomp$7;
3232
+ innerHTML$jscomp$5 = propValue$jscomp$8;
3201
3233
  break;
3202
3234
  default:
3203
3235
  pushAttribute(
3204
3236
  target$jscomp$0,
3205
- propKey$jscomp$7,
3206
- propValue$jscomp$7
3237
+ propKey$jscomp$8,
3238
+ propValue$jscomp$8
3207
3239
  );
3208
3240
  }
3209
3241
  }
3210
3242
  target$jscomp$0.push(endOfStartTag);
3211
- var child$jscomp$1 = Array.isArray(children$jscomp$7)
3212
- ? 2 > children$jscomp$7.length
3213
- ? children$jscomp$7[0]
3243
+ var child$jscomp$1 = Array.isArray(children$jscomp$8)
3244
+ ? 2 > children$jscomp$8.length
3245
+ ? children$jscomp$8[0]
3214
3246
  : null
3215
- : children$jscomp$7;
3247
+ : children$jscomp$8;
3216
3248
  "function" !== typeof child$jscomp$1 &&
3217
3249
  "symbol" !== typeof child$jscomp$1 &&
3218
3250
  null !== child$jscomp$1 &&
3219
3251
  void 0 !== child$jscomp$1 &&
3220
3252
  target$jscomp$0.push(escapeStyleTextContent(child$jscomp$1));
3221
- pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$7);
3253
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$8);
3222
3254
  target$jscomp$0.push(endChunkForTag("style"));
3223
- var JSCompiler_inline_result$jscomp$6 = null;
3255
+ var JSCompiler_inline_result$jscomp$7 = null;
3224
3256
  } else {
3225
3257
  href$jscomp$0.includes(" ") &&
3226
- error(
3258
+ console.error(
3227
3259
  '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".',
3228
3260
  href$jscomp$0
3229
3261
  );
@@ -3236,7 +3268,7 @@ function pushStartInstance(
3236
3268
  if (resourceState$jscomp$1 !== EXISTS) {
3237
3269
  resumableState.styleResources[href$jscomp$0] = EXISTS;
3238
3270
  resourceState$jscomp$1 &&
3239
- error(
3271
+ console.error(
3240
3272
  '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.',
3241
3273
  href$jscomp$0
3242
3274
  );
@@ -3252,110 +3284,110 @@ function pushStartInstance(
3252
3284
  }),
3253
3285
  renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
3254
3286
  var target = styleQueue$jscomp$0.rules,
3255
- children$jscomp$8 = null,
3256
- innerHTML$jscomp$5 = null,
3257
- propKey$jscomp$8;
3258
- for (propKey$jscomp$8 in props)
3259
- if (hasOwnProperty.call(props, propKey$jscomp$8)) {
3260
- var propValue$jscomp$8 = props[propKey$jscomp$8];
3261
- if (null != propValue$jscomp$8)
3262
- switch (propKey$jscomp$8) {
3287
+ children$jscomp$9 = null,
3288
+ innerHTML$jscomp$6 = null,
3289
+ propKey$jscomp$9;
3290
+ for (propKey$jscomp$9 in props)
3291
+ if (hasOwnProperty.call(props, propKey$jscomp$9)) {
3292
+ var propValue$jscomp$9 = props[propKey$jscomp$9];
3293
+ if (null != propValue$jscomp$9)
3294
+ switch (propKey$jscomp$9) {
3263
3295
  case "children":
3264
- children$jscomp$8 = propValue$jscomp$8;
3296
+ children$jscomp$9 = propValue$jscomp$9;
3265
3297
  break;
3266
3298
  case "dangerouslySetInnerHTML":
3267
- innerHTML$jscomp$5 = propValue$jscomp$8;
3299
+ innerHTML$jscomp$6 = propValue$jscomp$9;
3268
3300
  }
3269
3301
  }
3270
- var child$jscomp$2 = Array.isArray(children$jscomp$8)
3271
- ? 2 > children$jscomp$8.length
3272
- ? children$jscomp$8[0]
3302
+ var child$jscomp$2 = Array.isArray(children$jscomp$9)
3303
+ ? 2 > children$jscomp$9.length
3304
+ ? children$jscomp$9[0]
3273
3305
  : null
3274
- : children$jscomp$8;
3306
+ : children$jscomp$9;
3275
3307
  "function" !== typeof child$jscomp$2 &&
3276
3308
  "symbol" !== typeof child$jscomp$2 &&
3277
3309
  null !== child$jscomp$2 &&
3278
3310
  void 0 !== child$jscomp$2 &&
3279
3311
  target.push(escapeStyleTextContent(child$jscomp$2));
3280
- pushInnerHTML(target, innerHTML$jscomp$5, children$jscomp$8);
3312
+ pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$9);
3281
3313
  }
3282
3314
  styleQueue$jscomp$0 &&
3283
3315
  hoistableState &&
3284
3316
  hoistableState.styles.add(styleQueue$jscomp$0);
3285
3317
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
3286
- JSCompiler_inline_result$jscomp$6 = void 0;
3318
+ JSCompiler_inline_result$jscomp$7 = void 0;
3287
3319
  }
3288
- return JSCompiler_inline_result$jscomp$6;
3320
+ return JSCompiler_inline_result$jscomp$7;
3289
3321
  case "meta":
3290
3322
  if (
3291
3323
  formatContext.insertionMode === SVG_MODE ||
3292
3324
  formatContext.tagScope & 1 ||
3293
3325
  null != props.itemProp
3294
3326
  )
3295
- var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
3327
+ var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
3296
3328
  target$jscomp$0,
3297
3329
  props,
3298
3330
  "meta"
3299
3331
  );
3300
3332
  else
3301
3333
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
3302
- (JSCompiler_inline_result$jscomp$7 = isFallback
3334
+ (JSCompiler_inline_result$jscomp$8 = isFallback
3303
3335
  ? null
3304
3336
  : "string" === typeof props.charSet
3305
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
3306
- : "viewport" === props.name
3307
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
3308
- : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
3309
- return JSCompiler_inline_result$jscomp$7;
3337
+ ? pushSelfClosing(renderState.charsetChunks, props, "meta")
3338
+ : "viewport" === props.name
3339
+ ? pushSelfClosing(renderState.viewportChunks, props, "meta")
3340
+ : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
3341
+ return JSCompiler_inline_result$jscomp$8;
3310
3342
  case "listing":
3311
3343
  case "pre":
3312
3344
  target$jscomp$0.push(startChunkForTag(type));
3313
- var children$jscomp$9 = null,
3314
- innerHTML$jscomp$6 = null,
3315
- propKey$jscomp$9;
3316
- for (propKey$jscomp$9 in props)
3317
- if (hasOwnProperty.call(props, propKey$jscomp$9)) {
3318
- var propValue$jscomp$9 = props[propKey$jscomp$9];
3319
- if (null != propValue$jscomp$9)
3320
- switch (propKey$jscomp$9) {
3345
+ var children$jscomp$10 = null,
3346
+ innerHTML$jscomp$7 = null,
3347
+ propKey$jscomp$10;
3348
+ for (propKey$jscomp$10 in props)
3349
+ if (hasOwnProperty.call(props, propKey$jscomp$10)) {
3350
+ var propValue$jscomp$10 = props[propKey$jscomp$10];
3351
+ if (null != propValue$jscomp$10)
3352
+ switch (propKey$jscomp$10) {
3321
3353
  case "children":
3322
- children$jscomp$9 = propValue$jscomp$9;
3354
+ children$jscomp$10 = propValue$jscomp$10;
3323
3355
  break;
3324
3356
  case "dangerouslySetInnerHTML":
3325
- innerHTML$jscomp$6 = propValue$jscomp$9;
3357
+ innerHTML$jscomp$7 = propValue$jscomp$10;
3326
3358
  break;
3327
3359
  default:
3328
3360
  pushAttribute(
3329
3361
  target$jscomp$0,
3330
- propKey$jscomp$9,
3331
- propValue$jscomp$9
3362
+ propKey$jscomp$10,
3363
+ propValue$jscomp$10
3332
3364
  );
3333
3365
  }
3334
3366
  }
3335
3367
  target$jscomp$0.push(endOfStartTag);
3336
- if (null != innerHTML$jscomp$6) {
3337
- if (null != children$jscomp$9)
3368
+ if (null != innerHTML$jscomp$7) {
3369
+ if (null != children$jscomp$10)
3338
3370
  throw Error(
3339
3371
  "Can only set one of `children` or `props.dangerouslySetInnerHTML`."
3340
3372
  );
3341
3373
  if (
3342
- "object" !== typeof innerHTML$jscomp$6 ||
3343
- !("__html" in innerHTML$jscomp$6)
3374
+ "object" !== typeof innerHTML$jscomp$7 ||
3375
+ !("__html" in innerHTML$jscomp$7)
3344
3376
  )
3345
3377
  throw Error(
3346
3378
  "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
3347
3379
  );
3348
- var html = innerHTML$jscomp$6.__html;
3380
+ var html = innerHTML$jscomp$7.__html;
3349
3381
  null !== html &&
3350
3382
  void 0 !== html &&
3351
3383
  ("string" === typeof html && 0 < html.length && "\n" === html[0]
3352
3384
  ? target$jscomp$0.push("\n", html)
3353
3385
  : (checkHtmlStringCoercion(html), target$jscomp$0.push("" + html)));
3354
3386
  }
3355
- "string" === typeof children$jscomp$9 &&
3356
- "\n" === children$jscomp$9[0] &&
3387
+ "string" === typeof children$jscomp$10 &&
3388
+ "\n" === children$jscomp$10[0] &&
3357
3389
  target$jscomp$0.push("\n");
3358
- return children$jscomp$9;
3390
+ return children$jscomp$10;
3359
3391
  case "img":
3360
3392
  var src = props.src,
3361
3393
  srcSet = props.srcSet;
@@ -3419,7 +3451,7 @@ function pushStartInstance(
3419
3451
  fetchPriority: props.fetchPriority,
3420
3452
  referrerPolicy: props.refererPolicy
3421
3453
  })),
3422
- 2 <= (headers.remainingCapacity -= header.length))
3454
+ 0 <= (headers.remainingCapacity -= header.length + 2))
3423
3455
  ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
3424
3456
  headers.highImagePreloads && (headers.highImagePreloads += ", "),
3425
3457
  (headers.highImagePreloads += header))
@@ -3471,56 +3503,56 @@ function pushStartInstance(
3471
3503
  null === renderState.headChunks
3472
3504
  ) {
3473
3505
  renderState.headChunks = [];
3474
- var JSCompiler_inline_result$jscomp$8 = pushStartGenericElement(
3506
+ var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
3475
3507
  renderState.headChunks,
3476
3508
  props,
3477
3509
  "head"
3478
3510
  );
3479
3511
  } else
3480
- JSCompiler_inline_result$jscomp$8 = pushStartGenericElement(
3512
+ JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
3481
3513
  target$jscomp$0,
3482
3514
  props,
3483
3515
  "head"
3484
3516
  );
3485
- return JSCompiler_inline_result$jscomp$8;
3517
+ return JSCompiler_inline_result$jscomp$9;
3486
3518
  case "html":
3487
3519
  if (
3488
3520
  formatContext.insertionMode === ROOT_HTML_MODE &&
3489
3521
  null === renderState.htmlChunks
3490
3522
  ) {
3491
3523
  renderState.htmlChunks = ["<!DOCTYPE html>"];
3492
- var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
3524
+ var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
3493
3525
  renderState.htmlChunks,
3494
3526
  props,
3495
3527
  "html"
3496
3528
  );
3497
3529
  } else
3498
- JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
3530
+ JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
3499
3531
  target$jscomp$0,
3500
3532
  props,
3501
3533
  "html"
3502
3534
  );
3503
- return JSCompiler_inline_result$jscomp$9;
3535
+ return JSCompiler_inline_result$jscomp$10;
3504
3536
  default:
3505
3537
  if (-1 !== type.indexOf("-")) {
3506
3538
  target$jscomp$0.push(startChunkForTag(type));
3507
- var children$jscomp$10 = null,
3508
- innerHTML$jscomp$7 = null,
3509
- propKey$jscomp$10;
3510
- for (propKey$jscomp$10 in props)
3511
- if (hasOwnProperty.call(props, propKey$jscomp$10)) {
3512
- var propValue$jscomp$10 = props[propKey$jscomp$10];
3513
- if (null != propValue$jscomp$10) {
3514
- var attributeName = propKey$jscomp$10;
3515
- switch (propKey$jscomp$10) {
3539
+ var children$jscomp$11 = null,
3540
+ innerHTML$jscomp$8 = null,
3541
+ propKey$jscomp$11;
3542
+ for (propKey$jscomp$11 in props)
3543
+ if (hasOwnProperty.call(props, propKey$jscomp$11)) {
3544
+ var propValue$jscomp$11 = props[propKey$jscomp$11];
3545
+ if (null != propValue$jscomp$11) {
3546
+ var attributeName = propKey$jscomp$11;
3547
+ switch (propKey$jscomp$11) {
3516
3548
  case "children":
3517
- children$jscomp$10 = propValue$jscomp$10;
3549
+ children$jscomp$11 = propValue$jscomp$11;
3518
3550
  break;
3519
3551
  case "dangerouslySetInnerHTML":
3520
- innerHTML$jscomp$7 = propValue$jscomp$10;
3552
+ innerHTML$jscomp$8 = propValue$jscomp$11;
3521
3553
  break;
3522
3554
  case "style":
3523
- pushStyleAttribute(target$jscomp$0, propValue$jscomp$10);
3555
+ pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
3524
3556
  break;
3525
3557
  case "suppressContentEditableWarning":
3526
3558
  case "suppressHydrationWarning":
@@ -3530,18 +3562,18 @@ function pushStartInstance(
3530
3562
  attributeName = "class";
3531
3563
  default:
3532
3564
  if (
3533
- isAttributeNameSafe(propKey$jscomp$10) &&
3534
- "function" !== typeof propValue$jscomp$10 &&
3535
- "symbol" !== typeof propValue$jscomp$10 &&
3536
- !1 !== propValue$jscomp$10
3565
+ isAttributeNameSafe(propKey$jscomp$11) &&
3566
+ "function" !== typeof propValue$jscomp$11 &&
3567
+ "symbol" !== typeof propValue$jscomp$11 &&
3568
+ !1 !== propValue$jscomp$11
3537
3569
  ) {
3538
- if (!0 === propValue$jscomp$10) propValue$jscomp$10 = "";
3539
- else if ("object" === typeof propValue$jscomp$10) continue;
3570
+ if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
3571
+ else if ("object" === typeof propValue$jscomp$11) continue;
3540
3572
  target$jscomp$0.push(
3541
3573
  attributeSeparator,
3542
3574
  attributeName,
3543
3575
  attributeAssign,
3544
- escapeTextForBrowser(propValue$jscomp$10),
3576
+ escapeTextForBrowser(propValue$jscomp$11),
3545
3577
  attributeEnd
3546
3578
  );
3547
3579
  }
@@ -3549,8 +3581,8 @@ function pushStartInstance(
3549
3581
  }
3550
3582
  }
3551
3583
  target$jscomp$0.push(endOfStartTag);
3552
- pushInnerHTML(target$jscomp$0, innerHTML$jscomp$7, children$jscomp$10);
3553
- return children$jscomp$10;
3584
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$11);
3585
+ return children$jscomp$11;
3554
3586
  }
3555
3587
  }
3556
3588
  return pushStartGenericElement(target$jscomp$0, props, type);
@@ -3771,7 +3803,7 @@ function flushStyleTagsLateForBoundary(styleQueue) {
3771
3803
  hrefs = styleQueue.hrefs;
3772
3804
  0 < rules.length &&
3773
3805
  0 === hrefs.length &&
3774
- error(
3806
+ console.error(
3775
3807
  "React expected to have at least one href for an a hoistable style but found none. This is a bug in React."
3776
3808
  );
3777
3809
  var i = 0;
@@ -4012,7 +4044,7 @@ function prefetchDNS(href) {
4012
4044
  "<" +
4013
4045
  escapeHrefForLinkHeaderURLContext(href) +
4014
4046
  ">; rel=dns-prefetch"),
4015
- 2 <= (resumableState.remainingCapacity -= header.length));
4047
+ 0 <= (resumableState.remainingCapacity -= header.length + 2));
4016
4048
  JSCompiler_temp
4017
4049
  ? ((renderState.resets.dns[href] = EXISTS),
4018
4050
  resumableState.preconnects && (resumableState.preconnects += ", "),
@@ -4035,8 +4067,8 @@ function preconnect(href, crossOrigin) {
4035
4067
  "use-credentials" === crossOrigin
4036
4068
  ? "credentials"
4037
4069
  : "string" === typeof crossOrigin
4038
- ? "anonymous"
4039
- : "default";
4070
+ ? "anonymous"
4071
+ : "default";
4040
4072
  if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
4041
4073
  resumableState.connectResources[bucket][href] = EXISTS;
4042
4074
  resumableState = renderState.headers;
@@ -4057,7 +4089,7 @@ function preconnect(href, crossOrigin) {
4057
4089
  }
4058
4090
  JSCompiler_temp =
4059
4091
  ((header = JSCompiler_temp),
4060
- 2 <= (resumableState.remainingCapacity -= header.length));
4092
+ 0 <= (resumableState.remainingCapacity -= header.length + 2));
4061
4093
  }
4062
4094
  JSCompiler_temp
4063
4095
  ? ((renderState.resets.connect[bucket][href] = EXISTS),
@@ -4099,7 +4131,7 @@ function preload(href, as, options) {
4099
4131
  0 < resumableState.remainingCapacity &&
4100
4132
  "high" === fetchPriority &&
4101
4133
  ((header = getPreloadAsHeader(href, as, options)),
4102
- 2 <= (resumableState.remainingCapacity -= header.length))
4134
+ 0 <= (resumableState.remainingCapacity -= header.length + 2))
4103
4135
  ? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
4104
4136
  resumableState.highImagePreloads &&
4105
4137
  (resumableState.highImagePreloads += ", "),
@@ -4165,7 +4197,7 @@ function preload(href, as, options) {
4165
4197
  0 < resumableState.remainingCapacity &&
4166
4198
  "font" === as &&
4167
4199
  ((key = getPreloadAsHeader(href, as, options)),
4168
- 2 <= (resumableState.remainingCapacity -= key.length))
4200
+ 0 <= (resumableState.remainingCapacity -= key.length + 2))
4169
4201
  )
4170
4202
  (renderState.resets.font[href] = PRELOAD_NO_CREDS),
4171
4203
  resumableState.fontPreloads &&
@@ -4323,7 +4355,7 @@ function preloadBootstrapScriptOrModule(
4323
4355
  ) {
4324
4356
  (resumableState.scriptResources.hasOwnProperty(href) ||
4325
4357
  resumableState.moduleScriptResources.hasOwnProperty(href)) &&
4326
- error(
4358
+ console.error(
4327
4359
  'Internal React Error: React expected bootstrap script or module with src "%s" to not have been preloaded already. please file an issue',
4328
4360
  href
4329
4361
  );
@@ -4380,7 +4412,7 @@ function escapeHrefForLinkHeaderURLContextReplacer(match) {
4380
4412
  var regexForLinkHeaderQuotedParamValueContext = /["';,\r\n]/g;
4381
4413
  function escapeStringForLinkHeaderQuotedParamValueContext(value, name) {
4382
4414
  willCoercionThrow(value) &&
4383
- (error(
4415
+ (console.error(
4384
4416
  "The provided `%s` option is an unsupported type %s. This value must be coerced to a string before using it here.",
4385
4417
  name,
4386
4418
  typeName(value)
@@ -4417,7 +4449,8 @@ function hoistStyleQueueDependency(styleQueue) {
4417
4449
  function hoistStylesheetDependency(stylesheet) {
4418
4450
  this.stylesheets.add(stylesheet);
4419
4451
  }
4420
- var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
4452
+ var bind = Function.prototype.bind,
4453
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
4421
4454
  function getComponentNameFromType(type) {
4422
4455
  if (null == type) return null;
4423
4456
  if ("function" === typeof type)
@@ -4442,7 +4475,7 @@ function getComponentNameFromType(type) {
4442
4475
  if ("object" === typeof type)
4443
4476
  switch (
4444
4477
  ("number" === typeof type.tag &&
4445
- error(
4478
+ console.error(
4446
4479
  "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
4447
4480
  ),
4448
4481
  type.$$typeof)
@@ -4537,12 +4570,12 @@ function switchContext(newSnapshot) {
4537
4570
  (null === prev
4538
4571
  ? pushAllNext(newSnapshot)
4539
4572
  : null === newSnapshot
4540
- ? popAllPrevious(prev)
4541
- : prev.depth === newSnapshot.depth
4542
- ? popToNearestCommonAncestor(prev, newSnapshot)
4543
- : prev.depth > newSnapshot.depth
4544
- ? popPreviousToCommonLevel(prev, newSnapshot)
4545
- : popNextToCommonLevel(prev, newSnapshot),
4573
+ ? popAllPrevious(prev)
4574
+ : prev.depth === newSnapshot.depth
4575
+ ? popToNearestCommonAncestor(prev, newSnapshot)
4576
+ : prev.depth > newSnapshot.depth
4577
+ ? popPreviousToCommonLevel(prev, newSnapshot)
4578
+ : popNextToCommonLevel(prev, newSnapshot),
4546
4579
  (currentActiveSnapshot = newSnapshot));
4547
4580
  }
4548
4581
  var didWarnAboutNoopUpdateForComponent = {},
@@ -4552,6 +4585,8 @@ var didWarnAboutNoopUpdateForComponent = {},
4552
4585
  didWarnAboutLegacyLifecyclesAndDerivedState,
4553
4586
  didWarnAboutUndefinedDerivedState,
4554
4587
  didWarnAboutDirectlyAssigningPropsToState,
4588
+ didWarnAboutContextTypes$1,
4589
+ didWarnAboutChildContextTypes,
4555
4590
  didWarnAboutInvalidateContextType,
4556
4591
  didWarnOnInvalidCallback;
4557
4592
  didWarnAboutUninitializedState = new Set();
@@ -4559,6 +4594,8 @@ didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate = new Set();
4559
4594
  didWarnAboutLegacyLifecyclesAndDerivedState = new Set();
4560
4595
  didWarnAboutDirectlyAssigningPropsToState = new Set();
4561
4596
  didWarnAboutUndefinedDerivedState = new Set();
4597
+ didWarnAboutContextTypes$1 = new Set();
4598
+ didWarnAboutChildContextTypes = new Set();
4562
4599
  didWarnAboutInvalidateContextType = new Set();
4563
4600
  didWarnOnInvalidCallback = new Set();
4564
4601
  function warnOnInvalidCallback(callback) {
@@ -4566,7 +4603,7 @@ function warnOnInvalidCallback(callback) {
4566
4603
  var key = String(callback);
4567
4604
  didWarnOnInvalidCallback.has(key) ||
4568
4605
  (didWarnOnInvalidCallback.add(key),
4569
- error(
4606
+ console.error(
4570
4607
  "Expected the last optional `callback` argument to be a function. Instead received: %s.",
4571
4608
  callback
4572
4609
  ));
@@ -4579,7 +4616,7 @@ function warnNoop(publicInstance, callerName) {
4579
4616
  "ReactClass";
4580
4617
  var warningKey = publicInstance + "." + callerName;
4581
4618
  didWarnAboutNoopUpdateForComponent[warningKey] ||
4582
- (error(
4619
+ (console.error(
4583
4620
  "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.",
4584
4621
  callerName,
4585
4622
  publicInstance
@@ -4733,7 +4770,7 @@ function resolveCurrentlyRenderingComponent() {
4733
4770
  "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."
4734
4771
  );
4735
4772
  isInHookUserCodeInDev &&
4736
- error(
4773
+ console.error(
4737
4774
  "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"
4738
4775
  );
4739
4776
  return currentlyRenderingComponent;
@@ -4750,9 +4787,9 @@ function createWorkInProgressHook() {
4750
4787
  (firstWorkInProgressHook = workInProgressHook = createHook()))
4751
4788
  : ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
4752
4789
  : null === workInProgressHook.next
4753
- ? ((isReRender = !1),
4754
- (workInProgressHook = workInProgressHook.next = createHook()))
4755
- : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
4790
+ ? ((isReRender = !1),
4791
+ (workInProgressHook = workInProgressHook.next = createHook()))
4792
+ : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
4756
4793
  return workInProgressHook;
4757
4794
  }
4758
4795
  function getThenableStateAfterSuspending() {
@@ -4774,7 +4811,7 @@ function resetHooksState() {
4774
4811
  }
4775
4812
  function readContext(context) {
4776
4813
  isInHookUserCodeInDev &&
4777
- error(
4814
+ console.error(
4778
4815
  "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()."
4779
4816
  );
4780
4817
  return context._currentValue;
@@ -4814,8 +4851,8 @@ function useReducer(reducer, initialArg, init) {
4814
4851
  ? initialArg()
4815
4852
  : initialArg
4816
4853
  : void 0 !== init
4817
- ? init(initialArg)
4818
- : initialArg;
4854
+ ? init(initialArg)
4855
+ : initialArg;
4819
4856
  isInHookUserCodeInDev = !1;
4820
4857
  workInProgressHook.memoizedState = reducer;
4821
4858
  reducer = workInProgressHook.queue = { last: null, dispatch: null };
@@ -4836,14 +4873,14 @@ function useMemo(nextCreate, deps) {
4836
4873
  a: {
4837
4874
  var JSCompiler_inline_result = prevState[1];
4838
4875
  if (null === JSCompiler_inline_result)
4839
- error(
4876
+ console.error(
4840
4877
  "%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.",
4841
4878
  currentHookNameInDev
4842
4879
  ),
4843
4880
  (JSCompiler_inline_result = !1);
4844
4881
  else {
4845
4882
  deps.length !== JSCompiler_inline_result.length &&
4846
- error(
4883
+ console.error(
4847
4884
  "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",
4848
4885
  currentHookNameInDev,
4849
4886
  "[" + deps.join(", ") + "]",
@@ -5058,12 +5095,13 @@ var HooksDispatcher = {
5058
5095
  HooksDispatcher.useFormState = useActionState;
5059
5096
  HooksDispatcher.useActionState = useActionState;
5060
5097
  var currentResumableState = null,
5098
+ currentTaskInDEV = null,
5061
5099
  DefaultAsyncDispatcher = {
5062
5100
  getCacheForType: function () {
5063
5101
  throw Error("Not implemented.");
5064
5102
  },
5065
5103
  getOwner: function () {
5066
- return null;
5104
+ return null === currentTaskInDEV ? null : currentTaskInDEV.componentStack;
5067
5105
  }
5068
5106
  },
5069
5107
  disabledDepth = 0,
@@ -5118,11 +5156,11 @@ function reenableLogs() {
5118
5156
  });
5119
5157
  }
5120
5158
  0 > disabledDepth &&
5121
- error(
5159
+ console.error(
5122
5160
  "disabledDepth fell below zero. This is a bug in React. Please file an issue."
5123
5161
  );
5124
5162
  }
5125
- var prefix;
5163
+ var prefix, suffix;
5126
5164
  function describeBuiltInComponentFrame(name) {
5127
5165
  if (void 0 === prefix)
5128
5166
  try {
@@ -5130,8 +5168,14 @@ function describeBuiltInComponentFrame(name) {
5130
5168
  } catch (x) {
5131
5169
  var match = x.stack.trim().match(/\n( *(at )?)/);
5132
5170
  prefix = (match && match[1]) || "";
5171
+ suffix =
5172
+ -1 < x.stack.indexOf("\n at")
5173
+ ? " (<anonymous>)"
5174
+ : -1 < x.stack.indexOf("@")
5175
+ ? "@unknown:0:0"
5176
+ : "";
5133
5177
  }
5134
- return "\n" + prefix + name;
5178
+ return "\n" + prefix + name + suffix;
5135
5179
  }
5136
5180
  var reentry = !1,
5137
5181
  componentFrameCache;
@@ -5147,62 +5191,64 @@ function describeNativeComponentFrame(fn, construct) {
5147
5191
  previousDispatcher = ReactSharedInternals.H;
5148
5192
  ReactSharedInternals.H = null;
5149
5193
  disableLogs();
5150
- var RunInRootFrame = {
5151
- DetermineComponentFrameRoot: function () {
5152
- try {
5153
- if (construct) {
5154
- var Fake = function () {
5155
- throw Error();
5156
- };
5157
- Object.defineProperty(Fake.prototype, "props", {
5158
- set: function () {
5194
+ try {
5195
+ var RunInRootFrame = {
5196
+ DetermineComponentFrameRoot: function () {
5197
+ try {
5198
+ if (construct) {
5199
+ var Fake = function () {
5159
5200
  throw Error();
5201
+ };
5202
+ Object.defineProperty(Fake.prototype, "props", {
5203
+ set: function () {
5204
+ throw Error();
5205
+ }
5206
+ });
5207
+ if ("object" === typeof Reflect && Reflect.construct) {
5208
+ try {
5209
+ Reflect.construct(Fake, []);
5210
+ } catch (x) {
5211
+ var control = x;
5212
+ }
5213
+ Reflect.construct(fn, [], Fake);
5214
+ } else {
5215
+ try {
5216
+ Fake.call();
5217
+ } catch (x$0) {
5218
+ control = x$0;
5219
+ }
5220
+ fn.call(Fake.prototype);
5160
5221
  }
5161
- });
5162
- if ("object" === typeof Reflect && Reflect.construct) {
5163
- try {
5164
- Reflect.construct(Fake, []);
5165
- } catch (x) {
5166
- var control = x;
5167
- }
5168
- Reflect.construct(fn, [], Fake);
5169
5222
  } else {
5170
5223
  try {
5171
- Fake.call();
5172
- } catch (x$0) {
5173
- control = x$0;
5224
+ throw Error();
5225
+ } catch (x$1) {
5226
+ control = x$1;
5174
5227
  }
5175
- fn.call(Fake.prototype);
5228
+ (Fake = fn()) &&
5229
+ "function" === typeof Fake.catch &&
5230
+ Fake.catch(function () {});
5176
5231
  }
5177
- } else {
5178
- try {
5179
- throw Error();
5180
- } catch (x$1) {
5181
- control = x$1;
5182
- }
5183
- (Fake = fn()) &&
5184
- "function" === typeof Fake.catch &&
5185
- Fake.catch(function () {});
5232
+ } catch (sample) {
5233
+ if (sample && control && "string" === typeof sample.stack)
5234
+ return [sample.stack, control.stack];
5186
5235
  }
5187
- } catch (sample) {
5188
- if (sample && control && "string" === typeof sample.stack)
5189
- return [sample.stack, control.stack];
5236
+ return [null, null];
5190
5237
  }
5191
- return [null, null];
5192
- }
5193
- };
5194
- RunInRootFrame.DetermineComponentFrameRoot.displayName =
5195
- "DetermineComponentFrameRoot";
5196
- var namePropDescriptor = Object.getOwnPropertyDescriptor(
5197
- RunInRootFrame.DetermineComponentFrameRoot,
5198
- "name"
5199
- );
5200
- namePropDescriptor &&
5201
- namePropDescriptor.configurable &&
5202
- Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, "name", {
5203
- value: "DetermineComponentFrameRoot"
5204
- });
5205
- try {
5238
+ };
5239
+ RunInRootFrame.DetermineComponentFrameRoot.displayName =
5240
+ "DetermineComponentFrameRoot";
5241
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
5242
+ RunInRootFrame.DetermineComponentFrameRoot,
5243
+ "name"
5244
+ );
5245
+ namePropDescriptor &&
5246
+ namePropDescriptor.configurable &&
5247
+ Object.defineProperty(
5248
+ RunInRootFrame.DetermineComponentFrameRoot,
5249
+ "name",
5250
+ { value: "DetermineComponentFrameRoot" }
5251
+ );
5206
5252
  var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
5207
5253
  sampleStack = _RunInRootFrame$Deter[0],
5208
5254
  controlStack = _RunInRootFrame$Deter[1];
@@ -5210,62 +5256,65 @@ function describeNativeComponentFrame(fn, construct) {
5210
5256
  var sampleLines = sampleStack.split("\n"),
5211
5257
  controlLines = controlStack.split("\n");
5212
5258
  for (
5213
- sampleStack = _RunInRootFrame$Deter = 0;
5214
- _RunInRootFrame$Deter < sampleLines.length &&
5215
- !sampleLines[_RunInRootFrame$Deter].includes(
5259
+ _RunInRootFrame$Deter = namePropDescriptor = 0;
5260
+ namePropDescriptor < sampleLines.length &&
5261
+ !sampleLines[namePropDescriptor].includes(
5216
5262
  "DetermineComponentFrameRoot"
5217
5263
  );
5218
5264
 
5219
5265
  )
5220
- _RunInRootFrame$Deter++;
5266
+ namePropDescriptor++;
5221
5267
  for (
5222
5268
  ;
5223
- sampleStack < controlLines.length &&
5224
- !controlLines[sampleStack].includes("DetermineComponentFrameRoot");
5269
+ _RunInRootFrame$Deter < controlLines.length &&
5270
+ !controlLines[_RunInRootFrame$Deter].includes(
5271
+ "DetermineComponentFrameRoot"
5272
+ );
5225
5273
 
5226
5274
  )
5227
- sampleStack++;
5275
+ _RunInRootFrame$Deter++;
5228
5276
  if (
5229
- _RunInRootFrame$Deter === sampleLines.length ||
5230
- sampleStack === controlLines.length
5277
+ namePropDescriptor === sampleLines.length ||
5278
+ _RunInRootFrame$Deter === controlLines.length
5231
5279
  )
5232
5280
  for (
5233
- _RunInRootFrame$Deter = sampleLines.length - 1,
5234
- sampleStack = controlLines.length - 1;
5235
- 1 <= _RunInRootFrame$Deter &&
5236
- 0 <= sampleStack &&
5237
- sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack];
5281
+ namePropDescriptor = sampleLines.length - 1,
5282
+ _RunInRootFrame$Deter = controlLines.length - 1;
5283
+ 1 <= namePropDescriptor &&
5284
+ 0 <= _RunInRootFrame$Deter &&
5285
+ sampleLines[namePropDescriptor] !==
5286
+ controlLines[_RunInRootFrame$Deter];
5238
5287
 
5239
5288
  )
5240
- sampleStack--;
5289
+ _RunInRootFrame$Deter--;
5241
5290
  for (
5242
5291
  ;
5243
- 1 <= _RunInRootFrame$Deter && 0 <= sampleStack;
5244
- _RunInRootFrame$Deter--, sampleStack--
5292
+ 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
5293
+ namePropDescriptor--, _RunInRootFrame$Deter--
5245
5294
  )
5246
- if (sampleLines[_RunInRootFrame$Deter] !== controlLines[sampleStack]) {
5247
- if (1 !== _RunInRootFrame$Deter || 1 !== sampleStack) {
5295
+ if (
5296
+ sampleLines[namePropDescriptor] !==
5297
+ controlLines[_RunInRootFrame$Deter]
5298
+ ) {
5299
+ if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
5248
5300
  do
5249
5301
  if (
5250
- (_RunInRootFrame$Deter--,
5251
- sampleStack--,
5252
- 0 > sampleStack ||
5253
- sampleLines[_RunInRootFrame$Deter] !==
5254
- controlLines[sampleStack])
5302
+ (namePropDescriptor--,
5303
+ _RunInRootFrame$Deter--,
5304
+ 0 > _RunInRootFrame$Deter ||
5305
+ sampleLines[namePropDescriptor] !==
5306
+ controlLines[_RunInRootFrame$Deter])
5255
5307
  ) {
5256
5308
  var _frame =
5257
5309
  "\n" +
5258
- sampleLines[_RunInRootFrame$Deter].replace(
5259
- " at new ",
5260
- " at "
5261
- );
5310
+ sampleLines[namePropDescriptor].replace(" at new ", " at ");
5262
5311
  fn.displayName &&
5263
5312
  _frame.includes("<anonymous>") &&
5264
5313
  (_frame = _frame.replace("<anonymous>", fn.displayName));
5265
5314
  "function" === typeof fn && componentFrameCache.set(fn, _frame);
5266
5315
  return _frame;
5267
5316
  }
5268
- while (1 <= _RunInRootFrame$Deter && 0 <= sampleStack);
5317
+ while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
5269
5318
  }
5270
5319
  break;
5271
5320
  }
@@ -5282,49 +5331,117 @@ function describeNativeComponentFrame(fn, construct) {
5282
5331
  "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
5283
5332
  return sampleLines;
5284
5333
  }
5334
+ function describeComponentStackByType(type) {
5335
+ if ("string" === typeof type) return describeBuiltInComponentFrame(type);
5336
+ if ("function" === typeof type)
5337
+ return type.prototype && type.prototype.isReactComponent
5338
+ ? ((type = describeNativeComponentFrame(type, !0)), type)
5339
+ : describeNativeComponentFrame(type, !1);
5340
+ if ("object" === typeof type && null !== type) {
5341
+ switch (type.$$typeof) {
5342
+ case REACT_FORWARD_REF_TYPE:
5343
+ return describeNativeComponentFrame(type.render, !1);
5344
+ case REACT_MEMO_TYPE:
5345
+ return describeNativeComponentFrame(type.type, !1);
5346
+ case REACT_LAZY_TYPE:
5347
+ var lazyComponent = type,
5348
+ payload = lazyComponent._payload;
5349
+ lazyComponent = lazyComponent._init;
5350
+ try {
5351
+ type = lazyComponent(payload);
5352
+ } catch (x) {
5353
+ return describeBuiltInComponentFrame("Lazy");
5354
+ }
5355
+ return describeComponentStackByType(type);
5356
+ }
5357
+ if ("string" === typeof type.name)
5358
+ return (
5359
+ (payload = type.env),
5360
+ describeBuiltInComponentFrame(
5361
+ type.name + (payload ? " [" + payload + "]" : "")
5362
+ )
5363
+ );
5364
+ }
5365
+ switch (type) {
5366
+ case REACT_SUSPENSE_LIST_TYPE:
5367
+ return describeBuiltInComponentFrame("SuspenseList");
5368
+ case REACT_SUSPENSE_TYPE:
5369
+ return describeBuiltInComponentFrame("Suspense");
5370
+ }
5371
+ return "";
5372
+ }
5285
5373
  function getStackByComponentStackNode(componentStack) {
5286
5374
  try {
5287
5375
  var info = "";
5288
- do {
5289
- switch (componentStack.tag) {
5290
- case 0:
5291
- info += describeBuiltInComponentFrame(componentStack.type);
5292
- break;
5293
- case 1:
5294
- var JSCompiler_temp_const = info;
5295
- var JSCompiler_inline_result = describeNativeComponentFrame(
5296
- componentStack.type,
5297
- !1
5298
- );
5299
- info = JSCompiler_temp_const + JSCompiler_inline_result;
5300
- break;
5301
- case 2:
5302
- JSCompiler_temp_const = info;
5303
- var JSCompiler_inline_result$jscomp$0 = describeNativeComponentFrame(
5304
- componentStack.type,
5305
- !0
5306
- );
5307
- info = JSCompiler_temp_const + JSCompiler_inline_result$jscomp$0;
5308
- }
5309
- componentStack = componentStack.parent;
5310
- } while (componentStack);
5376
+ do
5377
+ (info += describeComponentStackByType(componentStack.type)),
5378
+ (componentStack = componentStack.parent);
5379
+ while (componentStack);
5311
5380
  return info;
5312
5381
  } catch (x) {
5313
5382
  return "\nError generating stack: " + x.message + "\n" + x.stack;
5314
5383
  }
5315
5384
  }
5316
- var CLIENT_RENDERED = 4,
5385
+ var callComponent = {
5386
+ "react-stack-bottom-frame": function (Component, props, secondArg) {
5387
+ return Component(props, secondArg);
5388
+ }
5389
+ },
5390
+ callComponentInDEV =
5391
+ callComponent["react-stack-bottom-frame"].bind(callComponent),
5392
+ callRender = {
5393
+ "react-stack-bottom-frame": function (instance) {
5394
+ return instance.render();
5395
+ }
5396
+ },
5397
+ callRenderInDEV = callRender["react-stack-bottom-frame"].bind(callRender),
5398
+ callLazyInit = {
5399
+ "react-stack-bottom-frame": function (lazy) {
5400
+ var init = lazy._init;
5401
+ return init(lazy._payload);
5402
+ }
5403
+ },
5404
+ callLazyInitInDEV =
5405
+ callLazyInit["react-stack-bottom-frame"].bind(callLazyInit),
5406
+ CLIENT_RENDERED = 4,
5317
5407
  PENDING = 0,
5318
5408
  COMPLETED = 1,
5319
5409
  FLUSHED = 2,
5320
- POSTPONED = 5;
5410
+ POSTPONED = 5,
5411
+ CLOSED = 14;
5321
5412
  function defaultErrorHandler(error) {
5322
- console.error(error);
5413
+ if (
5414
+ "object" === typeof error &&
5415
+ null !== error &&
5416
+ "string" === typeof error.environmentName
5417
+ ) {
5418
+ var JSCompiler_inline_result = error.environmentName;
5419
+ error = [error].slice(0);
5420
+ "string" === typeof error[0]
5421
+ ? error.splice(
5422
+ 0,
5423
+ 1,
5424
+ "%c%s%c " + error[0],
5425
+ "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",
5426
+ " " + JSCompiler_inline_result + " ",
5427
+ ""
5428
+ )
5429
+ : error.splice(
5430
+ 0,
5431
+ 0,
5432
+ "%c%s%c ",
5433
+ "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",
5434
+ " " + JSCompiler_inline_result + " ",
5435
+ ""
5436
+ );
5437
+ error.unshift(console);
5438
+ JSCompiler_inline_result = bind.apply(console.error, error);
5439
+ JSCompiler_inline_result();
5440
+ } else console.error(error);
5323
5441
  return null;
5324
5442
  }
5325
5443
  function noop() {}
5326
5444
  function RequestInstance(
5327
- children,
5328
5445
  resumableState,
5329
5446
  renderState,
5330
5447
  rootFormatContext,
@@ -5337,8 +5454,7 @@ function RequestInstance(
5337
5454
  onPostpone,
5338
5455
  formState
5339
5456
  ) {
5340
- var pingedTasks = [],
5341
- abortSet = new Set();
5457
+ var abortSet = new Set();
5342
5458
  this.destination = null;
5343
5459
  this.flushScheduled = !1;
5344
5460
  this.resumableState = resumableState;
@@ -5346,12 +5462,12 @@ function RequestInstance(
5346
5462
  this.rootFormatContext = rootFormatContext;
5347
5463
  this.progressiveChunkSize =
5348
5464
  void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
5349
- this.status = 0;
5465
+ this.status = 10;
5350
5466
  this.fatalError = null;
5351
5467
  this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
5352
5468
  this.completedRootSegment = null;
5353
5469
  this.abortableTasks = abortSet;
5354
- this.pingedTasks = pingedTasks;
5470
+ this.pingedTasks = [];
5355
5471
  this.clientRenderedBoundaries = [];
5356
5472
  this.completedBoundaries = [];
5357
5473
  this.partialBoundaries = [];
@@ -5364,33 +5480,6 @@ function RequestInstance(
5364
5480
  this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
5365
5481
  this.formState = void 0 === formState ? null : formState;
5366
5482
  this.didWarnForKey = null;
5367
- resumableState = createPendingSegment(
5368
- this,
5369
- 0,
5370
- null,
5371
- rootFormatContext,
5372
- !1,
5373
- !1
5374
- );
5375
- resumableState.parentFlushed = !0;
5376
- children = createRenderTask(
5377
- this,
5378
- null,
5379
- children,
5380
- -1,
5381
- null,
5382
- resumableState,
5383
- null,
5384
- abortSet,
5385
- null,
5386
- rootFormatContext,
5387
- emptyContextObject,
5388
- null,
5389
- emptyTreeContext,
5390
- null,
5391
- !1
5392
- );
5393
- pingedTasks.push(children);
5394
5483
  }
5395
5484
  function createRequest(
5396
5485
  children,
@@ -5406,8 +5495,7 @@ function createRequest(
5406
5495
  onPostpone,
5407
5496
  formState
5408
5497
  ) {
5409
- return new RequestInstance(
5410
- children,
5498
+ resumableState = new RequestInstance(
5411
5499
  resumableState,
5412
5500
  renderState,
5413
5501
  rootFormatContext,
@@ -5420,15 +5508,47 @@ function createRequest(
5420
5508
  onPostpone,
5421
5509
  formState
5422
5510
  );
5511
+ renderState = createPendingSegment(
5512
+ resumableState,
5513
+ 0,
5514
+ null,
5515
+ rootFormatContext,
5516
+ !1,
5517
+ !1
5518
+ );
5519
+ renderState.parentFlushed = !0;
5520
+ children = createRenderTask(
5521
+ resumableState,
5522
+ null,
5523
+ children,
5524
+ -1,
5525
+ null,
5526
+ renderState,
5527
+ null,
5528
+ resumableState.abortableTasks,
5529
+ null,
5530
+ rootFormatContext,
5531
+ null,
5532
+ emptyTreeContext,
5533
+ null,
5534
+ !1
5535
+ );
5536
+ pushComponentStack(children);
5537
+ resumableState.pingedTasks.push(children);
5538
+ return resumableState;
5423
5539
  }
5424
5540
  var currentRequest = null;
5425
5541
  function pingTask(request, task) {
5426
5542
  request.pingedTasks.push(task);
5427
5543
  1 === request.pingedTasks.length &&
5428
5544
  ((request.flushScheduled = null !== request.destination),
5429
- setTimeout(function () {
5430
- return performWork(request);
5431
- }, 0));
5545
+ null !== request.trackedPostpones || 10 === request.status
5546
+ ? scheduleMicrotask(function () {
5547
+ return performWork(request);
5548
+ })
5549
+ : setTimeout(function () {
5550
+ return performWork(request);
5551
+ }, 0));
5432
5552
  }
5433
5553
  function createSuspenseBoundary(request, fallbackAbortableTasks) {
5434
5554
  return {
@@ -5460,7 +5580,6 @@ function createRenderTask(
5460
5580
  abortSet,
5461
5581
  keyPath,
5462
5582
  formatContext,
5463
- legacyContext,
5464
5583
  context,
5465
5584
  treeContext,
5466
5585
  componentStack,
@@ -5483,7 +5602,6 @@ function createRenderTask(
5483
5602
  abortSet: abortSet,
5484
5603
  keyPath: keyPath,
5485
5604
  formatContext: formatContext,
5486
- legacyContext: legacyContext,
5487
5605
  context: context,
5488
5606
  treeContext: treeContext,
5489
5607
  componentStack: componentStack,
@@ -5504,7 +5622,6 @@ function createReplayTask(
5504
5622
  abortSet,
5505
5623
  keyPath,
5506
5624
  formatContext,
5507
- legacyContext,
5508
5625
  context,
5509
5626
  treeContext,
5510
5627
  componentStack,
@@ -5528,7 +5645,6 @@ function createReplayTask(
5528
5645
  abortSet: abortSet,
5529
5646
  keyPath: keyPath,
5530
5647
  formatContext: formatContext,
5531
- legacyContext: legacyContext,
5532
5648
  context: context,
5533
5649
  treeContext: treeContext,
5534
5650
  componentStack: componentStack,
@@ -5559,17 +5675,60 @@ function createPendingSegment(
5559
5675
  textEmbedded: textEmbedded
5560
5676
  };
5561
5677
  }
5562
- var currentTaskInDEV = null;
5563
5678
  function getCurrentStackInDEV() {
5564
5679
  return null === currentTaskInDEV || null === currentTaskInDEV.componentStack
5565
5680
  ? ""
5566
5681
  : getStackByComponentStackNode(currentTaskInDEV.componentStack);
5567
5682
  }
5568
- function createBuiltInComponentStack(task, type) {
5569
- return { tag: 0, parent: task.componentStack, type: type };
5683
+ function pushServerComponentStack(task, debugInfo) {
5684
+ if (null != debugInfo)
5685
+ for (var i = 0; i < debugInfo.length; i++) {
5686
+ var componentInfo = debugInfo[i];
5687
+ "string" === typeof componentInfo.name &&
5688
+ (task.componentStack = {
5689
+ parent: task.componentStack,
5690
+ type: componentInfo,
5691
+ owner: componentInfo.owner,
5692
+ stack: null
5693
+ });
5694
+ }
5695
+ }
5696
+ function pushComponentStack(task) {
5697
+ var node = task.node;
5698
+ if ("object" === typeof node && null !== node)
5699
+ switch (node.$$typeof) {
5700
+ case REACT_ELEMENT_TYPE:
5701
+ var type = node.type,
5702
+ owner = node._owner;
5703
+ pushServerComponentStack(task, node._debugInfo);
5704
+ task.componentStack = {
5705
+ parent: task.componentStack,
5706
+ type: type,
5707
+ owner: owner,
5708
+ stack: null
5709
+ };
5710
+ break;
5711
+ case REACT_LAZY_TYPE:
5712
+ pushServerComponentStack(task, node._debugInfo);
5713
+ break;
5714
+ default:
5715
+ "function" === typeof node.then &&
5716
+ pushServerComponentStack(task, node._debugInfo);
5717
+ }
5570
5718
  }
5571
- function getThrownInfo(request, node) {
5572
- return node ? { componentStack: getStackByComponentStackNode(node) } : {};
5719
+ function getThrownInfo(node) {
5720
+ var errorInfo = {};
5721
+ node &&
5722
+ Object.defineProperty(errorInfo, "componentStack", {
5723
+ configurable: !0,
5724
+ enumerable: !0,
5725
+ get: function () {
5726
+ var stack = getStackByComponentStackNode(node);
5727
+ Object.defineProperty(errorInfo, "componentStack", { value: stack });
5728
+ return stack;
5729
+ }
5730
+ });
5731
+ return errorInfo;
5573
5732
  }
5574
5733
  function encodeErrorForBoundary(
5575
5734
  boundary,
@@ -5593,23 +5752,24 @@ function encodeErrorForBoundary(
5593
5752
  boundary.errorStack = null !== error ? wasAborted + error : null;
5594
5753
  boundary.errorComponentStack = thrownInfo.componentStack;
5595
5754
  }
5596
- function logRecoverableError(request, error$1, errorInfo) {
5597
- request = request.onError(error$1, errorInfo);
5598
- if (null != request && "string" !== typeof request)
5599
- error(
5755
+ function logRecoverableError(request, error, errorInfo) {
5756
+ request = request.onError;
5757
+ error = request(error, errorInfo);
5758
+ if (null != error && "string" !== typeof error)
5759
+ console.error(
5600
5760
  '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',
5601
- typeof request
5761
+ typeof error
5602
5762
  );
5603
- else return request;
5763
+ else return error;
5604
5764
  }
5605
5765
  function fatalError(request, error) {
5606
- var onShellError = request.onShellError;
5607
- onShellError(error);
5608
- onShellError = request.onFatalError;
5766
+ var onShellError = request.onShellError,
5767
+ onFatalError = request.onFatalError;
5609
5768
  onShellError(error);
5769
+ onFatalError(error);
5610
5770
  null !== request.destination
5611
- ? ((request.status = 2), closeWithError(request.destination, error))
5612
- : ((request.status = 1), (request.fatalError = error));
5771
+ ? ((request.status = CLOSED), closeWithError(request.destination, error))
5772
+ : ((request.status = 13), (request.fatalError = error));
5613
5773
  }
5614
5774
  function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
5615
5775
  var prevThenableState = task.thenableState;
@@ -5623,7 +5783,11 @@ function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
5623
5783
  actionStateMatchingIndex = -1;
5624
5784
  thenableIndexCounter = 0;
5625
5785
  thenableState = prevThenableState;
5626
- for (request = Component(props, secondArg); didScheduleRenderPhaseUpdate; )
5786
+ for (
5787
+ request = callComponentInDEV(Component, props, secondArg);
5788
+ didScheduleRenderPhaseUpdate;
5789
+
5790
+ )
5627
5791
  (didScheduleRenderPhaseUpdate = !1),
5628
5792
  (actionStateCounter = localIdCounter = 0),
5629
5793
  (actionStateMatchingIndex = -1),
@@ -5635,6 +5799,7 @@ function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
5635
5799
  return request;
5636
5800
  }
5637
5801
  var didWarnAboutBadClass = {},
5802
+ didWarnAboutContextTypes = {},
5638
5803
  didWarnAboutContextTypeOnFunctionComponent = {},
5639
5804
  didWarnAboutGetDerivedStateOnFunctionComponent = {},
5640
5805
  didWarnAboutReassigningProps = !1,
@@ -5669,8 +5834,8 @@ function finishFunctionComponent(
5669
5834
  renderNode(request, task, children, -1),
5670
5835
  (task.treeContext = keyPath))
5671
5836
  : didEmitActionStateMarkers
5672
- ? renderNode(request, task, children, -1)
5673
- : renderNodeDestructive(request, task, children, -1);
5837
+ ? renderNode(request, task, children, -1)
5838
+ : renderNodeDestructive(request, task, children, -1);
5674
5839
  task.keyPath = actionStateCount;
5675
5840
  }
5676
5841
  function renderElement(request, task, keyPath, type, props, ref) {
@@ -5690,8 +5855,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
5690
5855
  (newProps[_propName] = defaultProps[_propName]);
5691
5856
  }
5692
5857
  var resolvedProps = newProps;
5693
- var previousComponentStack = task.componentStack;
5694
- task.componentStack = { tag: 2, parent: task.componentStack, type: type };
5695
5858
  var context = emptyContextObject,
5696
5859
  contextType = type.contextType;
5697
5860
  if (
@@ -5706,13 +5869,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
5706
5869
  void 0 === contextType
5707
5870
  ? " 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."
5708
5871
  : "object" !== typeof contextType
5709
- ? " However, it is set to a " + typeof contextType + "."
5710
- : contextType.$$typeof === REACT_CONSUMER_TYPE
5711
- ? " Did you accidentally pass the Context.Consumer instead?"
5712
- : " However, it is set to an object with keys {" +
5713
- Object.keys(contextType).join(", ") +
5714
- "}.";
5715
- error(
5872
+ ? " However, it is set to a " + typeof contextType + "."
5873
+ : contextType.$$typeof === REACT_CONSUMER_TYPE
5874
+ ? " Did you accidentally pass the Context.Consumer instead?"
5875
+ : " However, it is set to an object with keys {" +
5876
+ Object.keys(contextType).join(", ") +
5877
+ "}.";
5878
+ console.error(
5716
5879
  "%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",
5717
5880
  getComponentNameFromType(type) || "Component",
5718
5881
  addendum
@@ -5729,7 +5892,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
5729
5892
  var componentName = getComponentNameFromType(type) || "Component";
5730
5893
  didWarnAboutUninitializedState.has(componentName) ||
5731
5894
  (didWarnAboutUninitializedState.add(componentName),
5732
- error(
5895
+ console.error(
5733
5896
  "`%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.",
5734
5897
  componentName,
5735
5898
  null === instance.state ? "null" : "undefined",
@@ -5770,7 +5933,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
5770
5933
  : "getSnapshotBeforeUpdate()";
5771
5934
  didWarnAboutLegacyLifecyclesAndDerivedState.has(_componentName) ||
5772
5935
  (didWarnAboutLegacyLifecyclesAndDerivedState.add(_componentName),
5773
- error(
5936
+ console.error(
5774
5937
  "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",
5775
5938
  _componentName,
5776
5939
  newApiName,
@@ -5785,88 +5948,87 @@ function renderElement(request, task, keyPath, type, props, ref) {
5785
5948
  var name = getComponentNameFromType(type) || "Component";
5786
5949
  instance.render ||
5787
5950
  (type.prototype && "function" === typeof type.prototype.render
5788
- ? error(
5951
+ ? console.error(
5789
5952
  "No `render` method found on the %s instance: did you accidentally return an object from the constructor?",
5790
5953
  name
5791
5954
  )
5792
- : error(
5955
+ : console.error(
5793
5956
  "No `render` method found on the %s instance: you may have forgotten to define `render`.",
5794
5957
  name
5795
5958
  ));
5796
5959
  !instance.getInitialState ||
5797
5960
  instance.getInitialState.isReactClassApproved ||
5798
5961
  instance.state ||
5799
- error(
5962
+ console.error(
5800
5963
  "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?",
5801
5964
  name
5802
5965
  );
5803
5966
  instance.getDefaultProps &&
5804
5967
  !instance.getDefaultProps.isReactClassApproved &&
5805
- error(
5968
+ console.error(
5806
5969
  "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.",
5807
5970
  name
5808
5971
  );
5809
- instance.propTypes &&
5810
- error(
5811
- "propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",
5812
- name
5813
- );
5814
5972
  instance.contextType &&
5815
- error(
5973
+ console.error(
5816
5974
  "contextType was defined as an instance property on %s. Use a static property to define contextType instead.",
5817
5975
  name
5818
5976
  );
5819
5977
  type.childContextTypes &&
5820
- error(
5821
- "%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead.",
5978
+ !didWarnAboutChildContextTypes.has(type) &&
5979
+ (didWarnAboutChildContextTypes.add(type),
5980
+ console.error(
5981
+ "%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",
5822
5982
  name
5823
- );
5983
+ ));
5824
5984
  type.contextTypes &&
5825
- error(
5826
- "%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead.",
5985
+ !didWarnAboutContextTypes$1.has(type) &&
5986
+ (didWarnAboutContextTypes$1.add(type),
5987
+ console.error(
5988
+ "%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)",
5827
5989
  name
5828
- );
5990
+ ));
5829
5991
  "function" === typeof instance.componentShouldUpdate &&
5830
- error(
5992
+ console.error(
5831
5993
  "%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.",
5832
5994
  name
5833
5995
  );
5834
5996
  type.prototype &&
5835
5997
  type.prototype.isPureReactComponent &&
5836
5998
  "undefined" !== typeof instance.shouldComponentUpdate &&
5837
- error(
5999
+ console.error(
5838
6000
  "%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",
5839
6001
  getComponentNameFromType(type) || "A pure component"
5840
6002
  );
5841
6003
  "function" === typeof instance.componentDidUnmount &&
5842
- error(
6004
+ console.error(
5843
6005
  "%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",
5844
6006
  name
5845
6007
  );
5846
6008
  "function" === typeof instance.componentDidReceiveProps &&
5847
- error(
6009
+ console.error(
5848
6010
  "%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().",
5849
6011
  name
5850
6012
  );
5851
6013
  "function" === typeof instance.componentWillRecieveProps &&
5852
- error(
6014
+ console.error(
5853
6015
  "%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",
5854
6016
  name
5855
6017
  );
5856
6018
  "function" === typeof instance.UNSAFE_componentWillRecieveProps &&
5857
- error(
6019
+ console.error(
5858
6020
  "%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",
5859
6021
  name
5860
6022
  );
5861
6023
  var hasMutatedProps = instance.props !== resolvedProps;
5862
6024
  void 0 !== instance.props &&
5863
6025
  hasMutatedProps &&
5864
- error(
6026
+ console.error(
5865
6027
  "When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",
5866
6028
  name
5867
6029
  );
5868
6030
  instance.defaultProps &&
5869
- error(
6031
+ console.error(
5870
6032
  "Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",
5871
6033
  name,
5872
6034
  name
@@ -5875,32 +6037,32 @@ function renderElement(request, task, keyPath, type, props, ref) {
5875
6037
  "function" === typeof instance.componentDidUpdate ||
5876
6038
  didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(type) ||
5877
6039
  (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(type),
5878
- error(
6040
+ console.error(
5879
6041
  "%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",
5880
6042
  getComponentNameFromType(type)
5881
6043
  ));
5882
6044
  "function" === typeof instance.getDerivedStateFromProps &&
5883
- error(
6045
+ console.error(
5884
6046
  "%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
5885
6047
  name
5886
6048
  );
5887
6049
  "function" === typeof instance.getDerivedStateFromError &&
5888
- error(
6050
+ console.error(
5889
6051
  "%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",
5890
6052
  name
5891
6053
  );
5892
6054
  "function" === typeof type.getSnapshotBeforeUpdate &&
5893
- error(
6055
+ console.error(
5894
6056
  "%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",
5895
6057
  name
5896
6058
  );
5897
6059
  var state = instance.state;
5898
6060
  state &&
5899
6061
  ("object" !== typeof state || isArrayImpl(state)) &&
5900
- error("%s.state: must be set to an object or null", name);
6062
+ console.error("%s.state: must be set to an object or null", name);
5901
6063
  "function" === typeof instance.getChildContext &&
5902
6064
  "object" !== typeof type.childContextTypes &&
5903
- error(
6065
+ console.error(
5904
6066
  "%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",
5905
6067
  name
5906
6068
  );
@@ -5923,7 +6085,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
5923
6085
  (didWarnAboutDirectlyAssigningPropsToState.add(
5924
6086
  componentName$jscomp$0
5925
6087
  ),
5926
- error(
6088
+ console.error(
5927
6089
  "%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.",
5928
6090
  componentName$jscomp$0
5929
6091
  ));
@@ -5939,7 +6101,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
5939
6101
  getComponentNameFromType(type) || "Component";
5940
6102
  didWarnAboutUndefinedDerivedState.has(componentName$jscomp$1) ||
5941
6103
  (didWarnAboutUndefinedDerivedState.add(componentName$jscomp$1),
5942
- error(
6104
+ console.error(
5943
6105
  "%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
5944
6106
  componentName$jscomp$1
5945
6107
  ));
@@ -5962,7 +6124,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
5962
6124
  var componentName$jscomp$2 =
5963
6125
  getComponentNameFromType(type) || "Unknown";
5964
6126
  didWarnAboutDeprecatedWillMount[componentName$jscomp$2] ||
5965
- (warn(
6127
+ (console.warn(
5966
6128
  "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",
5967
6129
  componentName$jscomp$2
5968
6130
  ),
@@ -5973,7 +6135,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
5973
6135
  "function" === typeof instance.UNSAFE_componentWillMount &&
5974
6136
  instance.UNSAFE_componentWillMount();
5975
6137
  oldState !== instance.state &&
5976
- (error(
6138
+ (console.error(
5977
6139
  "%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
5978
6140
  getComponentNameFromType(type) || "Component"
5979
6141
  ),
@@ -6014,10 +6176,11 @@ function renderElement(request, task, keyPath, type, props, ref) {
6014
6176
  }
6015
6177
  } else internalInstance.queue = null;
6016
6178
  }
6017
- var nextChildren = instance.render();
6179
+ var nextChildren = callRenderInDEV(instance);
6180
+ if (12 === request.status) throw null;
6018
6181
  instance.props !== resolvedProps &&
6019
6182
  (didWarnAboutReassigningProps ||
6020
- error(
6183
+ console.error(
6021
6184
  "It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",
6022
6185
  getComponentNameFromType(type) || "a component"
6023
6186
  ),
@@ -6026,58 +6189,57 @@ function renderElement(request, task, keyPath, type, props, ref) {
6026
6189
  task.keyPath = keyPath;
6027
6190
  renderNodeDestructive(request, task, nextChildren, -1);
6028
6191
  task.keyPath = prevKeyPath;
6029
- task.componentStack = previousComponentStack;
6030
6192
  } else {
6031
- var previousComponentStack$jscomp$0 = task.componentStack;
6032
- task.componentStack = { tag: 1, parent: task.componentStack, type: type };
6033
6193
  if (type.prototype && "function" === typeof type.prototype.render) {
6034
6194
  var componentName$jscomp$3 =
6035
6195
  getComponentNameFromType(type) || "Unknown";
6036
6196
  didWarnAboutBadClass[componentName$jscomp$3] ||
6037
- (error(
6197
+ (console.error(
6038
6198
  "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.",
6039
6199
  componentName$jscomp$3,
6040
6200
  componentName$jscomp$3
6041
6201
  ),
6042
6202
  (didWarnAboutBadClass[componentName$jscomp$3] = !0));
6043
6203
  }
6044
- var value = renderWithHooks(request, task, keyPath, type, props, void 0),
6045
- hasId = 0 !== localIdCounter,
6204
+ var value = renderWithHooks(request, task, keyPath, type, props, void 0);
6205
+ if (12 === request.status) throw null;
6206
+ var hasId = 0 !== localIdCounter,
6046
6207
  actionStateCount = actionStateCounter,
6047
6208
  actionStateMatchingIndex$jscomp$0 = actionStateMatchingIndex;
6048
- type.contextTypes &&
6049
- error(
6050
- "%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead.",
6051
- getComponentNameFromType(type) || "Unknown"
6052
- );
6209
+ if (type.contextTypes) {
6210
+ var _componentName$jscomp$0 =
6211
+ getComponentNameFromType(type) || "Unknown";
6212
+ didWarnAboutContextTypes[_componentName$jscomp$0] ||
6213
+ ((didWarnAboutContextTypes[_componentName$jscomp$0] = !0),
6214
+ console.error(
6215
+ "%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)",
6216
+ _componentName$jscomp$0
6217
+ ));
6218
+ }
6053
6219
  type &&
6054
6220
  type.childContextTypes &&
6055
- error(
6221
+ console.error(
6056
6222
  "childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...",
6057
6223
  type.displayName || type.name || "Component"
6058
6224
  );
6059
6225
  if ("function" === typeof type.getDerivedStateFromProps) {
6060
- var _componentName$jscomp$0 =
6061
- getComponentNameFromType(type) || "Unknown";
6062
- didWarnAboutGetDerivedStateOnFunctionComponent[
6063
- _componentName$jscomp$0
6064
- ] ||
6065
- (error(
6226
+ var _componentName2 = getComponentNameFromType(type) || "Unknown";
6227
+ didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] ||
6228
+ (console.error(
6066
6229
  "%s: Function components do not support getDerivedStateFromProps.",
6067
- _componentName$jscomp$0
6230
+ _componentName2
6068
6231
  ),
6069
- (didWarnAboutGetDerivedStateOnFunctionComponent[
6070
- _componentName$jscomp$0
6071
- ] = !0));
6232
+ (didWarnAboutGetDerivedStateOnFunctionComponent[_componentName2] =
6233
+ !0));
6072
6234
  }
6073
6235
  if ("object" === typeof type.contextType && null !== type.contextType) {
6074
- var _componentName2 = getComponentNameFromType(type) || "Unknown";
6075
- didWarnAboutContextTypeOnFunctionComponent[_componentName2] ||
6076
- (error(
6236
+ var _componentName3 = getComponentNameFromType(type) || "Unknown";
6237
+ didWarnAboutContextTypeOnFunctionComponent[_componentName3] ||
6238
+ (console.error(
6077
6239
  "%s: Function components do not support contextType.",
6078
- _componentName2
6240
+ _componentName3
6079
6241
  ),
6080
- (didWarnAboutContextTypeOnFunctionComponent[_componentName2] = !0));
6242
+ (didWarnAboutContextTypeOnFunctionComponent[_componentName3] = !0));
6081
6243
  }
6082
6244
  finishFunctionComponent(
6083
6245
  request,
@@ -6088,11 +6250,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
6088
6250
  actionStateCount,
6089
6251
  actionStateMatchingIndex$jscomp$0
6090
6252
  );
6091
- task.componentStack = previousComponentStack$jscomp$0;
6092
6253
  }
6093
6254
  else if ("string" === typeof type) {
6094
- var previousComponentStack$jscomp$1 = task.componentStack;
6095
- task.componentStack = createBuiltInComponentStack(task, type);
6096
6255
  var segment = task.blockedSegment;
6097
6256
  if (null === segment) {
6098
6257
  var children = props.children,
@@ -6162,7 +6321,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
6162
6321
  }
6163
6322
  segment.lastPushedText = !1;
6164
6323
  }
6165
- task.componentStack = previousComponentStack$jscomp$1;
6166
6324
  } else {
6167
6325
  switch (type) {
6168
6326
  case REACT_LEGACY_HIDDEN_TYPE:
@@ -6184,13 +6342,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
6184
6342
  }
6185
6343
  return;
6186
6344
  case REACT_SUSPENSE_LIST_TYPE:
6187
- var preiousComponentStack = task.componentStack;
6188
- task.componentStack = createBuiltInComponentStack(task, "SuspenseList");
6189
6345
  var _prevKeyPath3 = task.keyPath;
6190
6346
  task.keyPath = keyPath;
6191
6347
  renderNodeDestructive(request, task, props.children, -1);
6192
6348
  task.keyPath = _prevKeyPath3;
6193
- task.componentStack = preiousComponentStack;
6194
6349
  return;
6195
6350
  case REACT_SCOPE_TYPE:
6196
6351
  throw Error("ReactDOMServer does not yet support scope components.");
@@ -6205,10 +6360,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6205
6360
  task.keyPath = _prevKeyPath;
6206
6361
  }
6207
6362
  } else {
6208
- var previousComponentStack$jscomp$2 = task.componentStack,
6209
- suspenseComponentStack = (task.componentStack =
6210
- createBuiltInComponentStack(task, "Suspense")),
6211
- prevKeyPath$jscomp$3 = task.keyPath,
6363
+ var prevKeyPath$jscomp$3 = task.keyPath,
6212
6364
  parentBoundary = task.blockedBoundary,
6213
6365
  parentHoistableState = task.hoistableState,
6214
6366
  parentSegment = task.blockedSegment,
@@ -6237,92 +6389,122 @@ function renderElement(request, task, keyPath, type, props, ref) {
6237
6389
  !1
6238
6390
  );
6239
6391
  contentRootSegment.parentFlushed = !0;
6240
- task.blockedBoundary = newBoundary;
6241
- task.hoistableState = newBoundary.contentState;
6242
- task.blockedSegment = contentRootSegment;
6243
- task.keyPath = keyPath;
6244
- try {
6245
- if (
6246
- (renderNode(request, task, content, -1),
6247
- contentRootSegment.lastPushedText &&
6248
- contentRootSegment.textEmbedded &&
6249
- contentRootSegment.chunks.push("\x3c!-- --\x3e"),
6250
- (contentRootSegment.status = COMPLETED),
6251
- queueCompletedSegment(newBoundary, contentRootSegment),
6252
- 0 === newBoundary.pendingTasks && newBoundary.status === PENDING)
6253
- ) {
6254
- newBoundary.status = COMPLETED;
6255
- task.componentStack = previousComponentStack$jscomp$2;
6256
- break a;
6392
+ if (null !== request.trackedPostpones) {
6393
+ var fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
6394
+ fallbackReplayNode = [
6395
+ fallbackKeyPath[1],
6396
+ fallbackKeyPath[2],
6397
+ [],
6398
+ null
6399
+ ];
6400
+ request.trackedPostpones.workingMap.set(
6401
+ fallbackKeyPath,
6402
+ fallbackReplayNode
6403
+ );
6404
+ newBoundary.trackedFallbackNode = fallbackReplayNode;
6405
+ task.blockedSegment = boundarySegment;
6406
+ task.keyPath = fallbackKeyPath;
6407
+ boundarySegment.status = 6;
6408
+ try {
6409
+ renderNode(request, task, fallback, -1),
6410
+ boundarySegment.lastPushedText &&
6411
+ boundarySegment.textEmbedded &&
6412
+ boundarySegment.chunks.push("\x3c!-- --\x3e"),
6413
+ (boundarySegment.status = COMPLETED);
6414
+ } catch (thrownValue) {
6415
+ throw (
6416
+ ((boundarySegment.status = 12 === request.status ? 3 : 4),
6417
+ thrownValue)
6418
+ );
6419
+ } finally {
6420
+ (task.blockedSegment = parentSegment),
6421
+ (task.keyPath = prevKeyPath$jscomp$3);
6257
6422
  }
6258
- } catch (error$2) {
6259
- contentRootSegment.status = 4;
6260
- newBoundary.status = CLIENT_RENDERED;
6261
- var thrownInfo = getThrownInfo(request, task.componentStack);
6262
- var errorDigest = logRecoverableError(request, error$2, thrownInfo);
6263
- encodeErrorForBoundary(
6423
+ var suspendedPrimaryTask = createRenderTask(
6424
+ request,
6425
+ null,
6426
+ content,
6427
+ -1,
6264
6428
  newBoundary,
6265
- errorDigest,
6266
- error$2,
6267
- thrownInfo,
6268
- !1
6429
+ contentRootSegment,
6430
+ newBoundary.contentState,
6431
+ task.abortSet,
6432
+ keyPath,
6433
+ task.formatContext,
6434
+ task.context,
6435
+ task.treeContext,
6436
+ task.componentStack,
6437
+ task.isFallback
6269
6438
  );
6270
- untrackBoundary(request, newBoundary);
6271
- } finally {
6272
- (task.blockedBoundary = parentBoundary),
6273
- (task.hoistableState = parentHoistableState),
6274
- (task.blockedSegment = parentSegment),
6275
- (task.keyPath = prevKeyPath$jscomp$3),
6276
- (task.componentStack = previousComponentStack$jscomp$2);
6277
- }
6278
- var fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
6279
- trackedPostpones = request.trackedPostpones;
6280
- if (null !== trackedPostpones) {
6281
- var fallbackReplayNode = [
6282
- fallbackKeyPath[1],
6283
- fallbackKeyPath[2],
6284
- [],
6285
- null
6286
- ];
6287
- trackedPostpones.workingMap.set(
6288
- fallbackKeyPath,
6289
- fallbackReplayNode
6439
+ pushComponentStack(suspendedPrimaryTask);
6440
+ request.pingedTasks.push(suspendedPrimaryTask);
6441
+ } else {
6442
+ task.blockedBoundary = newBoundary;
6443
+ task.hoistableState = newBoundary.contentState;
6444
+ task.blockedSegment = contentRootSegment;
6445
+ task.keyPath = keyPath;
6446
+ contentRootSegment.status = 6;
6447
+ try {
6448
+ if (
6449
+ (renderNode(request, task, content, -1),
6450
+ contentRootSegment.lastPushedText &&
6451
+ contentRootSegment.textEmbedded &&
6452
+ contentRootSegment.chunks.push("\x3c!-- --\x3e"),
6453
+ (contentRootSegment.status = COMPLETED),
6454
+ queueCompletedSegment(newBoundary, contentRootSegment),
6455
+ 0 === newBoundary.pendingTasks &&
6456
+ newBoundary.status === PENDING)
6457
+ ) {
6458
+ newBoundary.status = COMPLETED;
6459
+ break a;
6460
+ }
6461
+ } catch (thrownValue$2) {
6462
+ newBoundary.status = CLIENT_RENDERED;
6463
+ if (12 === request.status) {
6464
+ contentRootSegment.status = 3;
6465
+ var error = request.fatalError;
6466
+ } else (contentRootSegment.status = 4), (error = thrownValue$2);
6467
+ var thrownInfo = getThrownInfo(task.componentStack);
6468
+ var errorDigest = logRecoverableError(request, error, thrownInfo);
6469
+ encodeErrorForBoundary(
6470
+ newBoundary,
6471
+ errorDigest,
6472
+ error,
6473
+ thrownInfo,
6474
+ !1
6475
+ );
6476
+ untrackBoundary(request, newBoundary);
6477
+ } finally {
6478
+ (task.blockedBoundary = parentBoundary),
6479
+ (task.hoistableState = parentHoistableState),
6480
+ (task.blockedSegment = parentSegment),
6481
+ (task.keyPath = prevKeyPath$jscomp$3);
6482
+ }
6483
+ var suspendedFallbackTask = createRenderTask(
6484
+ request,
6485
+ null,
6486
+ fallback,
6487
+ -1,
6488
+ parentBoundary,
6489
+ boundarySegment,
6490
+ newBoundary.fallbackState,
6491
+ fallbackAbortSet,
6492
+ [keyPath[0], "Suspense Fallback", keyPath[2]],
6493
+ task.formatContext,
6494
+ task.context,
6495
+ task.treeContext,
6496
+ task.componentStack,
6497
+ !0
6290
6498
  );
6291
- newBoundary.status === POSTPONED
6292
- ? (trackedPostpones.workingMap.get(keyPath)[4] =
6293
- fallbackReplayNode)
6294
- : (newBoundary.trackedFallbackNode = fallbackReplayNode);
6499
+ pushComponentStack(suspendedFallbackTask);
6500
+ request.pingedTasks.push(suspendedFallbackTask);
6295
6501
  }
6296
- var suspendedFallbackTask = createRenderTask(
6297
- request,
6298
- null,
6299
- fallback,
6300
- -1,
6301
- parentBoundary,
6302
- boundarySegment,
6303
- newBoundary.fallbackState,
6304
- fallbackAbortSet,
6305
- fallbackKeyPath,
6306
- task.formatContext,
6307
- task.legacyContext,
6308
- task.context,
6309
- task.treeContext,
6310
- suspenseComponentStack,
6311
- !0
6312
- );
6313
- request.pingedTasks.push(suspendedFallbackTask);
6314
6502
  }
6315
6503
  return;
6316
6504
  }
6317
6505
  if ("object" === typeof type && null !== type)
6318
6506
  switch (type.$$typeof) {
6319
6507
  case REACT_FORWARD_REF_TYPE:
6320
- var previousComponentStack$jscomp$3 = task.componentStack;
6321
- task.componentStack = {
6322
- tag: 1,
6323
- parent: task.componentStack,
6324
- type: type.render
6325
- };
6326
6508
  if ("ref" in props) {
6327
6509
  var propsWithoutRef = {};
6328
6510
  for (var key in props)
@@ -6345,7 +6527,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
6345
6527
  actionStateCounter,
6346
6528
  actionStateMatchingIndex
6347
6529
  );
6348
- task.componentStack = previousComponentStack$jscomp$3;
6349
6530
  return;
6350
6531
  case REACT_MEMO_TYPE:
6351
6532
  renderElement(request, task, keyPath, type.type, props, ref);
@@ -6361,7 +6542,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6361
6542
  void 0 !== type._currentRenderer &&
6362
6543
  null !== type._currentRenderer &&
6363
6544
  type._currentRenderer !== rendererSigil &&
6364
- error(
6545
+ console.error(
6365
6546
  "Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
6366
6547
  );
6367
6548
  type._currentRenderer = rendererSigil;
@@ -6383,7 +6564,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6383
6564
  "Tried to pop a Context at the root of the app. This is a bug in React."
6384
6565
  );
6385
6566
  prevSnapshot$jscomp$0.context !== type &&
6386
- error(
6567
+ console.error(
6387
6568
  "The parent context is not the expected context. This is probably a bug in React."
6388
6569
  );
6389
6570
  prevSnapshot$jscomp$0.context._currentValue =
@@ -6391,7 +6572,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6391
6572
  void 0 !== type._currentRenderer &&
6392
6573
  null !== type._currentRenderer &&
6393
6574
  type._currentRenderer !== rendererSigil &&
6394
- error(
6575
+ console.error(
6395
6576
  "Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."
6396
6577
  );
6397
6578
  type._currentRenderer = rendererSigil;
@@ -6400,7 +6581,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6400
6581
  task.context = JSCompiler_inline_result$jscomp$0;
6401
6582
  task.keyPath = prevKeyPath$jscomp$4;
6402
6583
  prevSnapshot !== task.context &&
6403
- error(
6584
+ console.error(
6404
6585
  "Popping the context provider did not return back to the original snapshot. This is a bug in React."
6405
6586
  );
6406
6587
  return;
@@ -6408,7 +6589,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
6408
6589
  var context$jscomp$0 = type._context,
6409
6590
  render = props.children;
6410
6591
  "function" !== typeof render &&
6411
- error(
6592
+ console.error(
6412
6593
  "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."
6413
6594
  );
6414
6595
  var newChildren = render(context$jscomp$0._currentValue),
@@ -6418,12 +6599,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
6418
6599
  task.keyPath = prevKeyPath$jscomp$5;
6419
6600
  return;
6420
6601
  case REACT_LAZY_TYPE:
6421
- var previousComponentStack$jscomp$4 = task.componentStack;
6422
- task.componentStack = createBuiltInComponentStack(task, "Lazy");
6423
- var init = type._init,
6424
- Component = init(type._payload);
6425
- renderElement(request, task, keyPath, Component, props, void 0);
6426
- task.componentStack = previousComponentStack$jscomp$4;
6602
+ var Component = callLazyInitInDEV(type);
6603
+ if (12 === request.status) throw null;
6604
+ renderElement(request, task, keyPath, Component, props, ref);
6427
6605
  return;
6428
6606
  }
6429
6607
  var info = "";
@@ -6468,56 +6646,120 @@ function resumeNode(request, task, segmentId, node, childIndex) {
6468
6646
  (task.replay = prevReplay), (task.blockedSegment = null);
6469
6647
  }
6470
6648
  }
6471
- function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
6472
- if (null !== task.replay && "number" === typeof task.replay.slots)
6473
- resumeNode(request, task, task.replay.slots, node$jscomp$0, childIndex);
6474
- else if (
6475
- ((task.node = node$jscomp$0),
6476
- (task.childIndex = childIndex),
6477
- null !== node$jscomp$0)
6478
- ) {
6479
- if ("object" === typeof node$jscomp$0) {
6480
- switch (node$jscomp$0.$$typeof) {
6649
+ function renderNodeDestructive(request, task, node, childIndex) {
6650
+ null !== task.replay && "number" === typeof task.replay.slots
6651
+ ? resumeNode(request, task, task.replay.slots, node, childIndex)
6652
+ : ((task.node = node),
6653
+ (task.childIndex = childIndex),
6654
+ (node = task.componentStack),
6655
+ pushComponentStack(task),
6656
+ retryNode(request, task),
6657
+ (task.componentStack = node));
6658
+ }
6659
+ function retryNode(request, task) {
6660
+ var node = task.node,
6661
+ childIndex = task.childIndex;
6662
+ if (null !== node) {
6663
+ if ("object" === typeof node) {
6664
+ switch (node.$$typeof) {
6481
6665
  case REACT_ELEMENT_TYPE:
6482
- var type = node$jscomp$0.type,
6483
- key = node$jscomp$0.key,
6484
- props = node$jscomp$0.props;
6485
- node$jscomp$0 = props.ref;
6486
- var ref = void 0 !== node$jscomp$0 ? node$jscomp$0 : null;
6487
- var name = getComponentNameFromType(type),
6666
+ var type = node.type,
6667
+ key = node.key,
6668
+ props = node.props;
6669
+ node = props.ref;
6670
+ var ref = void 0 !== node ? node : null,
6671
+ name = getComponentNameFromType(type),
6488
6672
  keyOrIndex =
6489
- null == key ? (-1 === childIndex ? 0 : childIndex) : key;
6490
- key = [task.keyPath, name, keyOrIndex];
6491
- if (null !== task.replay)
6492
- a: {
6493
- var replay = task.replay;
6494
- childIndex = replay.nodes;
6495
- for (
6496
- node$jscomp$0 = 0;
6497
- node$jscomp$0 < childIndex.length;
6498
- node$jscomp$0++
6499
- ) {
6500
- var node = childIndex[node$jscomp$0];
6501
- if (keyOrIndex === node[1]) {
6502
- if (4 === node.length) {
6503
- if (null !== name && name !== node[0])
6673
+ null == key ? (-1 === childIndex ? 0 : childIndex) : key,
6674
+ keyPath = [task.keyPath, name, keyOrIndex];
6675
+ if (null !== task.replay) {
6676
+ var replay = task.replay;
6677
+ childIndex = replay.nodes;
6678
+ for (node = 0; node < childIndex.length; node++)
6679
+ if (((key = childIndex[node]), keyOrIndex === key[1])) {
6680
+ if (4 === key.length) {
6681
+ if (null !== name && name !== key[0])
6682
+ throw Error(
6683
+ "Expected the resume to render <" +
6684
+ key[0] +
6685
+ "> in this slot but instead it rendered <" +
6686
+ name +
6687
+ ">. The tree doesn't match so React will fallback to client rendering."
6688
+ );
6689
+ var childNodes = key[2];
6690
+ key = key[3];
6691
+ name = task.node;
6692
+ task.replay = {
6693
+ nodes: childNodes,
6694
+ slots: key,
6695
+ pendingTasks: 1
6696
+ };
6697
+ try {
6698
+ renderElement(request, task, keyPath, type, props, ref);
6699
+ if (
6700
+ 1 === task.replay.pendingTasks &&
6701
+ 0 < task.replay.nodes.length
6702
+ )
6504
6703
  throw Error(
6505
- "Expected the resume to render <" +
6506
- node[0] +
6507
- "> in this slot but instead it rendered <" +
6508
- name +
6509
- ">. The tree doesn't match so React will fallback to client rendering."
6704
+ "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
6705
+ );
6706
+ task.replay.pendingTasks--;
6707
+ } catch (x) {
6708
+ if (
6709
+ "object" === typeof x &&
6710
+ null !== x &&
6711
+ (x === SuspenseException || "function" === typeof x.then)
6712
+ )
6713
+ throw (task.node === name && (task.replay = replay), x);
6714
+ task.replay.pendingTasks--;
6715
+ props = getThrownInfo(task.componentStack);
6716
+ erroredReplay(
6717
+ request,
6718
+ task.blockedBoundary,
6719
+ x,
6720
+ props,
6721
+ childNodes,
6722
+ key
6723
+ );
6724
+ }
6725
+ task.replay = replay;
6726
+ } else {
6727
+ if (type !== REACT_SUSPENSE_TYPE)
6728
+ throw Error(
6729
+ "Expected the resume to render <Suspense> in this slot but instead it rendered <" +
6730
+ (getComponentNameFromType(type) || "Unknown") +
6731
+ ">. The tree doesn't match so React will fallback to client rendering."
6732
+ );
6733
+ a: {
6734
+ type = void 0;
6735
+ ref = key[5];
6736
+ replay = key[2];
6737
+ name = key[3];
6738
+ keyOrIndex = null === key[4] ? [] : key[4][2];
6739
+ key = null === key[4] ? null : key[4][3];
6740
+ var prevKeyPath = task.keyPath,
6741
+ previousReplaySet = task.replay,
6742
+ parentBoundary = task.blockedBoundary,
6743
+ parentHoistableState = task.hoistableState,
6744
+ content = props.children;
6745
+ props = props.fallback;
6746
+ var fallbackAbortSet = new Set(),
6747
+ resumedBoundary = createSuspenseBoundary(
6748
+ request,
6749
+ fallbackAbortSet
6510
6750
  );
6511
- var childNodes = node[2];
6512
- name = node[3];
6513
- node = task.node;
6751
+ resumedBoundary.parentFlushed = !0;
6752
+ resumedBoundary.rootSegmentID = ref;
6753
+ task.blockedBoundary = resumedBoundary;
6754
+ task.hoistableState = resumedBoundary.contentState;
6755
+ task.keyPath = keyPath;
6514
6756
  task.replay = {
6515
- nodes: childNodes,
6757
+ nodes: replay,
6516
6758
  slots: name,
6517
6759
  pendingTasks: 1
6518
6760
  };
6519
6761
  try {
6520
- renderElement(request, task, key, type, props, ref);
6762
+ renderNode(request, task, content, -1);
6521
6763
  if (
6522
6764
  1 === task.replay.pendingTasks &&
6523
6765
  0 < task.replay.nodes.length
@@ -6526,254 +6768,170 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
6526
6768
  "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
6527
6769
  );
6528
6770
  task.replay.pendingTasks--;
6529
- } catch (x) {
6530
6771
  if (
6531
- "object" === typeof x &&
6532
- null !== x &&
6533
- (x === SuspenseException ||
6534
- "function" === typeof x.then)
6535
- )
6536
- throw (task.node === node && (task.replay = replay), x);
6537
- task.replay.pendingTasks--;
6538
- type = getThrownInfo(request, task.componentStack);
6539
- erroredReplay(
6540
- request,
6541
- task.blockedBoundary,
6542
- x,
6543
- type,
6544
- childNodes,
6545
- name
6546
- );
6547
- }
6548
- task.replay = replay;
6549
- } else {
6550
- if (type !== REACT_SUSPENSE_TYPE)
6551
- throw Error(
6552
- "Expected the resume to render <Suspense> in this slot but instead it rendered <" +
6553
- (getComponentNameFromType(type) || "Unknown") +
6554
- ">. The tree doesn't match so React will fallback to client rendering."
6555
- );
6556
- b: {
6557
- type = void 0;
6558
- var props$jscomp$0 = props;
6559
- props = node[5];
6560
- ref = node[2];
6561
- replay = node[3];
6562
- name = null === node[4] ? [] : node[4][2];
6563
- node = null === node[4] ? null : node[4][3];
6564
- keyOrIndex = task.componentStack;
6565
- var suspenseComponentStack = (task.componentStack =
6566
- createBuiltInComponentStack(task, "Suspense")),
6567
- prevKeyPath = task.keyPath,
6568
- previousReplaySet = task.replay,
6569
- parentBoundary = task.blockedBoundary,
6570
- parentHoistableState = task.hoistableState,
6571
- content = props$jscomp$0.children;
6572
- props$jscomp$0 = props$jscomp$0.fallback;
6573
- var fallbackAbortSet = new Set(),
6574
- resumedBoundary = createSuspenseBoundary(
6575
- request,
6576
- fallbackAbortSet
6577
- );
6578
- resumedBoundary.parentFlushed = !0;
6579
- resumedBoundary.rootSegmentID = props;
6580
- task.blockedBoundary = resumedBoundary;
6581
- task.hoistableState = resumedBoundary.contentState;
6582
- task.replay = {
6583
- nodes: ref,
6584
- slots: replay,
6585
- pendingTasks: 1
6586
- };
6587
- try {
6588
- renderNode(request, task, content, -1);
6589
- if (
6590
- 1 === task.replay.pendingTasks &&
6591
- 0 < task.replay.nodes.length
6592
- )
6593
- throw Error(
6594
- "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
6595
- );
6596
- task.replay.pendingTasks--;
6597
- if (
6598
- 0 === resumedBoundary.pendingTasks &&
6599
- resumedBoundary.status === PENDING
6600
- ) {
6601
- resumedBoundary.status = COMPLETED;
6602
- request.completedBoundaries.push(resumedBoundary);
6603
- break b;
6604
- }
6605
- } catch (error$3) {
6606
- (resumedBoundary.status = CLIENT_RENDERED),
6607
- (childNodes = getThrownInfo(
6608
- request,
6609
- task.componentStack
6610
- )),
6611
- (type = logRecoverableError(
6612
- request,
6613
- error$3,
6614
- childNodes
6615
- )),
6616
- encodeErrorForBoundary(
6617
- resumedBoundary,
6618
- type,
6619
- error$3,
6620
- childNodes,
6621
- !1
6622
- ),
6623
- task.replay.pendingTasks--,
6624
- request.clientRenderedBoundaries.push(
6625
- resumedBoundary
6626
- );
6627
- } finally {
6628
- (task.blockedBoundary = parentBoundary),
6629
- (task.hoistableState = parentHoistableState),
6630
- (task.replay = previousReplaySet),
6631
- (task.keyPath = prevKeyPath),
6632
- (task.componentStack = keyOrIndex);
6772
+ 0 === resumedBoundary.pendingTasks &&
6773
+ resumedBoundary.status === PENDING
6774
+ ) {
6775
+ resumedBoundary.status = COMPLETED;
6776
+ request.completedBoundaries.push(resumedBoundary);
6777
+ break a;
6633
6778
  }
6634
- childNodes = createReplayTask(
6635
- request,
6636
- null,
6637
- { nodes: name, slots: node, pendingTasks: 0 },
6638
- props$jscomp$0,
6639
- -1,
6640
- parentBoundary,
6641
- resumedBoundary.fallbackState,
6642
- fallbackAbortSet,
6643
- [key[0], "Suspense Fallback", key[2]],
6644
- task.formatContext,
6645
- task.legacyContext,
6646
- task.context,
6647
- task.treeContext,
6648
- suspenseComponentStack,
6649
- !0
6650
- );
6651
- request.pingedTasks.push(childNodes);
6779
+ } catch (error) {
6780
+ (resumedBoundary.status = CLIENT_RENDERED),
6781
+ (childNodes = getThrownInfo(task.componentStack)),
6782
+ (type = logRecoverableError(
6783
+ request,
6784
+ error,
6785
+ childNodes
6786
+ )),
6787
+ encodeErrorForBoundary(
6788
+ resumedBoundary,
6789
+ type,
6790
+ error,
6791
+ childNodes,
6792
+ !1
6793
+ ),
6794
+ task.replay.pendingTasks--,
6795
+ request.clientRenderedBoundaries.push(resumedBoundary);
6796
+ } finally {
6797
+ (task.blockedBoundary = parentBoundary),
6798
+ (task.hoistableState = parentHoistableState),
6799
+ (task.replay = previousReplaySet),
6800
+ (task.keyPath = prevKeyPath);
6652
6801
  }
6802
+ childNodes = createReplayTask(
6803
+ request,
6804
+ null,
6805
+ { nodes: keyOrIndex, slots: key, pendingTasks: 0 },
6806
+ props,
6807
+ -1,
6808
+ parentBoundary,
6809
+ resumedBoundary.fallbackState,
6810
+ fallbackAbortSet,
6811
+ [keyPath[0], "Suspense Fallback", keyPath[2]],
6812
+ task.formatContext,
6813
+ task.context,
6814
+ task.treeContext,
6815
+ task.componentStack,
6816
+ !0
6817
+ );
6818
+ pushComponentStack(childNodes);
6819
+ request.pingedTasks.push(childNodes);
6653
6820
  }
6654
- childIndex.splice(node$jscomp$0, 1);
6655
- break a;
6656
6821
  }
6822
+ childIndex.splice(node, 1);
6823
+ break;
6657
6824
  }
6658
- }
6659
- else renderElement(request, task, key, type, props, ref);
6825
+ } else renderElement(request, task, keyPath, type, props, ref);
6660
6826
  return;
6661
6827
  case REACT_PORTAL_TYPE:
6662
6828
  throw Error(
6663
6829
  "Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
6664
6830
  );
6665
6831
  case REACT_LAZY_TYPE:
6666
- childNodes = task.componentStack;
6667
- task.componentStack = createBuiltInComponentStack(task, "Lazy");
6668
- type = node$jscomp$0._init;
6669
- node$jscomp$0 = type(node$jscomp$0._payload);
6670
- task.componentStack = childNodes;
6671
- renderNodeDestructive(request, task, node$jscomp$0, childIndex);
6832
+ node = callLazyInitInDEV(node);
6833
+ if (12 === request.status) throw null;
6834
+ renderNodeDestructive(request, task, node, childIndex);
6672
6835
  return;
6673
6836
  }
6674
- if (isArrayImpl(node$jscomp$0)) {
6675
- renderChildrenArray(request, task, node$jscomp$0, childIndex);
6837
+ if (isArrayImpl(node)) {
6838
+ renderChildrenArray(request, task, node, childIndex);
6676
6839
  return;
6677
6840
  }
6678
- null === node$jscomp$0 || "object" !== typeof node$jscomp$0
6679
- ? (type = null)
6841
+ null === node || "object" !== typeof node
6842
+ ? (props = null)
6680
6843
  : ((childNodes =
6681
- (MAYBE_ITERATOR_SYMBOL && node$jscomp$0[MAYBE_ITERATOR_SYMBOL]) ||
6682
- node$jscomp$0["@@iterator"]),
6683
- (type = "function" === typeof childNodes ? childNodes : null));
6684
- if (type && (childNodes = type.call(node$jscomp$0))) {
6685
- if (childNodes === node$jscomp$0) {
6844
+ (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
6845
+ node["@@iterator"]),
6846
+ (props = "function" === typeof childNodes ? childNodes : null));
6847
+ if (props && (childNodes = props.call(node))) {
6848
+ if (childNodes === node) {
6686
6849
  if (
6687
6850
  -1 !== childIndex ||
6688
6851
  null === task.componentStack ||
6689
- 1 !== task.componentStack.tag ||
6852
+ "function" !== typeof task.componentStack.type ||
6690
6853
  "[object GeneratorFunction]" !==
6691
6854
  Object.prototype.toString.call(task.componentStack.type) ||
6692
6855
  "[object Generator]" !== Object.prototype.toString.call(childNodes)
6693
6856
  )
6694
6857
  didWarnAboutGenerators ||
6695
- error(
6858
+ console.error(
6696
6859
  "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."
6697
6860
  ),
6698
6861
  (didWarnAboutGenerators = !0);
6699
6862
  } else
6700
- node$jscomp$0.entries !== type ||
6863
+ node.entries !== props ||
6701
6864
  didWarnAboutMaps ||
6702
- (error(
6865
+ (console.error(
6703
6866
  "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
6704
6867
  ),
6705
6868
  (didWarnAboutMaps = !0));
6706
- node$jscomp$0 = childNodes.next();
6707
- if (!node$jscomp$0.done) {
6708
- type = [];
6709
- do
6710
- type.push(node$jscomp$0.value), (node$jscomp$0 = childNodes.next());
6711
- while (!node$jscomp$0.done);
6712
- renderChildrenArray(request, task, type, childIndex);
6869
+ node = childNodes.next();
6870
+ if (!node.done) {
6871
+ props = [];
6872
+ do props.push(node.value), (node = childNodes.next());
6873
+ while (!node.done);
6874
+ renderChildrenArray(request, task, props, childIndex);
6713
6875
  }
6714
6876
  return;
6715
6877
  }
6716
- if ("function" === typeof node$jscomp$0.then)
6878
+ if ("function" === typeof node.then)
6717
6879
  return (
6718
6880
  (task.thenableState = null),
6719
- renderNodeDestructive(
6720
- request,
6721
- task,
6722
- unwrapThenable(node$jscomp$0),
6723
- childIndex
6724
- )
6881
+ renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
6725
6882
  );
6726
- if (node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE)
6883
+ if (node.$$typeof === REACT_CONTEXT_TYPE)
6727
6884
  return renderNodeDestructive(
6728
6885
  request,
6729
6886
  task,
6730
- node$jscomp$0._currentValue,
6887
+ node._currentValue,
6731
6888
  childIndex
6732
6889
  );
6733
- childIndex = Object.prototype.toString.call(node$jscomp$0);
6890
+ childIndex = Object.prototype.toString.call(node);
6734
6891
  throw Error(
6735
6892
  "Objects are not valid as a React child (found: " +
6736
6893
  ("[object Object]" === childIndex
6737
- ? "object with keys {" + Object.keys(node$jscomp$0).join(", ") + "}"
6894
+ ? "object with keys {" + Object.keys(node).join(", ") + "}"
6738
6895
  : childIndex) +
6739
6896
  "). If you meant to render a collection of children, use an array instead."
6740
6897
  );
6741
6898
  }
6742
- "string" === typeof node$jscomp$0
6743
- ? ((childIndex = task.blockedSegment),
6744
- null !== childIndex &&
6745
- (childIndex.lastPushedText = pushTextInstance(
6746
- childIndex.chunks,
6747
- node$jscomp$0,
6748
- request.renderState,
6749
- childIndex.lastPushedText
6750
- )))
6751
- : "number" === typeof node$jscomp$0 || "bigint" === typeof node$jscomp$0
6899
+ "string" === typeof node
6752
6900
  ? ((childIndex = task.blockedSegment),
6753
6901
  null !== childIndex &&
6754
6902
  (childIndex.lastPushedText = pushTextInstance(
6755
6903
  childIndex.chunks,
6756
- "" + node$jscomp$0,
6904
+ node,
6757
6905
  request.renderState,
6758
6906
  childIndex.lastPushedText
6759
6907
  )))
6760
- : ("function" === typeof node$jscomp$0 &&
6761
- ((childIndex =
6762
- node$jscomp$0.displayName || node$jscomp$0.name || "Component"),
6763
- error(
6764
- "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.",
6765
- childIndex,
6766
- childIndex
6767
- )),
6768
- "symbol" === typeof node$jscomp$0 &&
6769
- error(
6770
- "Symbols are not valid as a React child.\n %s",
6771
- String(node$jscomp$0)
6772
- ));
6908
+ : "number" === typeof node || "bigint" === typeof node
6909
+ ? ((childIndex = task.blockedSegment),
6910
+ null !== childIndex &&
6911
+ (childIndex.lastPushedText = pushTextInstance(
6912
+ childIndex.chunks,
6913
+ "" + node,
6914
+ request.renderState,
6915
+ childIndex.lastPushedText
6916
+ )))
6917
+ : ("function" === typeof node &&
6918
+ ((childIndex = node.displayName || node.name || "Component"),
6919
+ console.error(
6920
+ "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.",
6921
+ childIndex,
6922
+ childIndex
6923
+ )),
6924
+ "symbol" === typeof node &&
6925
+ console.error(
6926
+ "Symbols are not valid as a React child.\n %s",
6927
+ String(node)
6928
+ ));
6773
6929
  }
6774
6930
  }
6775
6931
  function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
6776
- var prevKeyPath = task.keyPath;
6932
+ var prevKeyPath = task.keyPath,
6933
+ previousComponentStack = task.componentStack;
6934
+ pushServerComponentStack(task, task.node._debugInfo);
6777
6935
  if (
6778
6936
  -1 !== childIndex &&
6779
6937
  ((task.keyPath = [task.keyPath, "Fragment", childIndex]),
@@ -6804,7 +6962,7 @@ function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
6804
6962
  )
6805
6963
  throw x;
6806
6964
  task.replay.pendingTasks--;
6807
- children = getThrownInfo(request$jscomp$0, task.componentStack);
6965
+ children = getThrownInfo(task.componentStack);
6808
6966
  erroredReplay(
6809
6967
  request$jscomp$0,
6810
6968
  task.blockedBoundary,
@@ -6820,6 +6978,7 @@ function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
6820
6978
  }
6821
6979
  }
6822
6980
  task.keyPath = prevKeyPath;
6981
+ task.componentStack = previousComponentStack;
6823
6982
  return;
6824
6983
  }
6825
6984
  replay = task.treeContext;
@@ -6845,6 +7004,7 @@ function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
6845
7004
  }
6846
7005
  task.treeContext = replay;
6847
7006
  task.keyPath = prevKeyPath;
7007
+ task.componentStack = previousComponentStack;
6848
7008
  return;
6849
7009
  }
6850
7010
  for (j = 0; j < replayNodes; j++) {
@@ -6870,39 +7030,54 @@ function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
6870
7030
  null == didWarnForKey &&
6871
7031
  (didWarnForKey = request.didWarnForKey = new WeakSet());
6872
7032
  request = node.componentStack;
6873
- null === request ||
6874
- didWarnForKey.has(request) ||
6875
- (didWarnForKey.add(request),
6876
- (didWarnForKey = node),
6877
- (resumeSegmentID = resumeSegmentID.type),
6878
- (resumeSegmentID =
6879
- "string" === typeof resumeSegmentID
6880
- ? createBuiltInComponentStack(didWarnForKey, resumeSegmentID)
6881
- : resumeSegmentID.prototype &&
6882
- resumeSegmentID.prototype.isReactComponent
6883
- ? {
6884
- tag: 2,
6885
- parent: didWarnForKey.componentStack,
6886
- type: resumeSegmentID
6887
- }
6888
- : {
6889
- tag: 1,
6890
- parent: didWarnForKey.componentStack,
6891
- type: resumeSegmentID
6892
- }),
6893
- (node.componentStack = resumeSegmentID),
6894
- error(
7033
+ if (null !== request && !didWarnForKey.has(request)) {
7034
+ didWarnForKey.add(request);
7035
+ var componentName = getComponentNameFromType(resumeSegmentID.type);
7036
+ didWarnForKey = resumeSegmentID._owner;
7037
+ var parentOwner = request.owner;
7038
+ request = "";
7039
+ if (parentOwner && "undefined" !== typeof parentOwner.type) {
7040
+ var name = getComponentNameFromType(parentOwner.type);
7041
+ name && (request = "\n\nCheck the render method of `" + name + "`.");
7042
+ }
7043
+ request ||
7044
+ (componentName &&
7045
+ (request =
7046
+ "\n\nCheck the top-level render call using <" +
7047
+ componentName +
7048
+ ">."));
7049
+ componentName = "";
7050
+ null != didWarnForKey &&
7051
+ parentOwner !== didWarnForKey &&
7052
+ ((parentOwner = null),
7053
+ "undefined" !== typeof didWarnForKey.type
7054
+ ? (parentOwner = getComponentNameFromType(didWarnForKey.type))
7055
+ : "string" === typeof didWarnForKey.name &&
7056
+ (parentOwner = didWarnForKey.name),
7057
+ parentOwner &&
7058
+ (componentName =
7059
+ " It was passed a child from " + parentOwner + "."));
7060
+ didWarnForKey = node.componentStack;
7061
+ node.componentStack = {
7062
+ parent: node.componentStack,
7063
+ type: resumeSegmentID.type,
7064
+ owner: resumeSegmentID._owner,
7065
+ stack: null
7066
+ };
7067
+ console.error(
6895
7068
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
6896
- "",
6897
- ""
6898
- ),
6899
- (node.componentStack = resumeSegmentID.parent));
7069
+ request,
7070
+ componentName
7071
+ );
7072
+ node.componentStack = didWarnForKey;
7073
+ }
6900
7074
  }
6901
7075
  task.treeContext = pushTreeContext(replay, replayNodes, j);
6902
7076
  renderNode(request$jscomp$0, task, childIndex, j);
6903
7077
  }
6904
7078
  task.treeContext = replay;
6905
7079
  task.keyPath = prevKeyPath;
7080
+ task.componentStack = previousComponentStack;
6906
7081
  }
6907
7082
  function untrackBoundary(request, boundary) {
6908
7083
  request = request.trackedPostpones;
@@ -6913,9 +7088,55 @@ function untrackBoundary(request, boundary) {
6913
7088
  void 0 !== boundary &&
6914
7089
  ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
6915
7090
  }
7091
+ function spawnNewSuspendedReplayTask(request, task, thenableState) {
7092
+ return createReplayTask(
7093
+ request,
7094
+ thenableState,
7095
+ task.replay,
7096
+ task.node,
7097
+ task.childIndex,
7098
+ task.blockedBoundary,
7099
+ task.hoistableState,
7100
+ task.abortSet,
7101
+ task.keyPath,
7102
+ task.formatContext,
7103
+ task.context,
7104
+ task.treeContext,
7105
+ task.componentStack,
7106
+ task.isFallback
7107
+ );
7108
+ }
7109
+ function spawnNewSuspendedRenderTask(request, task, thenableState) {
7110
+ var segment = task.blockedSegment,
7111
+ newSegment = createPendingSegment(
7112
+ request,
7113
+ segment.chunks.length,
7114
+ null,
7115
+ task.formatContext,
7116
+ segment.lastPushedText,
7117
+ !0
7118
+ );
7119
+ segment.children.push(newSegment);
7120
+ segment.lastPushedText = !1;
7121
+ return createRenderTask(
7122
+ request,
7123
+ thenableState,
7124
+ task.node,
7125
+ task.childIndex,
7126
+ task.blockedBoundary,
7127
+ newSegment,
7128
+ task.hoistableState,
7129
+ task.abortSet,
7130
+ task.keyPath,
7131
+ task.formatContext,
7132
+ task.context,
7133
+ task.treeContext,
7134
+ task.componentStack,
7135
+ task.isFallback
7136
+ );
7137
+ }
6916
7138
  function renderNode(request, task, node, childIndex) {
6917
7139
  var previousFormatContext = task.formatContext,
6918
- previousLegacyContext = task.legacyContext,
6919
7140
  previousContext = task.context,
6920
7141
  previousKeyPath = task.keyPath,
6921
7142
  previousTreeContext = task.treeContext,
@@ -6931,37 +7152,32 @@ function renderNode(request, task, node, childIndex) {
6931
7152
  thrownValue === SuspenseException
6932
7153
  ? getSuspendedThenable()
6933
7154
  : thrownValue),
6934
- "object" === typeof node &&
6935
- null !== node &&
6936
- "function" === typeof node.then)
7155
+ "object" === typeof node && null !== node)
6937
7156
  ) {
6938
- childIndex = getThenableStateAfterSuspending();
6939
- request = createReplayTask(
6940
- request,
6941
- childIndex,
6942
- task.replay,
6943
- task.node,
6944
- task.childIndex,
6945
- task.blockedBoundary,
6946
- task.hoistableState,
6947
- task.abortSet,
6948
- task.keyPath,
6949
- task.formatContext,
6950
- task.legacyContext,
6951
- task.context,
6952
- task.treeContext,
6953
- null !== task.componentStack ? task.componentStack.parent : null,
6954
- task.isFallback
6955
- ).ping;
6956
- node.then(request, request);
6957
- task.formatContext = previousFormatContext;
6958
- task.legacyContext = previousLegacyContext;
6959
- task.context = previousContext;
6960
- task.keyPath = previousKeyPath;
6961
- task.treeContext = previousTreeContext;
6962
- task.componentStack = previousComponentStack;
6963
- switchContext(previousContext);
6964
- return;
7157
+ if ("function" === typeof node.then) {
7158
+ childIndex = getThenableStateAfterSuspending();
7159
+ request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
7160
+ node.then(request, request);
7161
+ task.formatContext = previousFormatContext;
7162
+ task.context = previousContext;
7163
+ task.keyPath = previousKeyPath;
7164
+ task.treeContext = previousTreeContext;
7165
+ task.componentStack = previousComponentStack;
7166
+ switchContext(previousContext);
7167
+ return;
7168
+ }
7169
+ if ("Maximum call stack size exceeded" === node.message) {
7170
+ node = getThenableStateAfterSuspending();
7171
+ node = spawnNewSuspendedReplayTask(request, task, node);
7172
+ request.pingedTasks.push(node);
7173
+ task.formatContext = previousFormatContext;
7174
+ task.context = previousContext;
7175
+ task.keyPath = previousKeyPath;
7176
+ task.treeContext = previousTreeContext;
7177
+ task.componentStack = previousComponentStack;
7178
+ switchContext(previousContext);
7179
+ return;
7180
+ }
6965
7181
  }
6966
7182
  }
6967
7183
  else {
@@ -6969,62 +7185,45 @@ function renderNode(request, task, node, childIndex) {
6969
7185
  chunkLength = segment.chunks.length;
6970
7186
  try {
6971
7187
  return renderNodeDestructive(request, task, node, childIndex);
6972
- } catch (thrownValue$4) {
7188
+ } catch (thrownValue$3) {
6973
7189
  if (
6974
7190
  (resetHooksState(),
6975
7191
  (segment.children.length = childrenLength),
6976
7192
  (segment.chunks.length = chunkLength),
6977
7193
  (node =
6978
- thrownValue$4 === SuspenseException
7194
+ thrownValue$3 === SuspenseException
6979
7195
  ? getSuspendedThenable()
6980
- : thrownValue$4),
6981
- "object" === typeof node &&
6982
- null !== node &&
6983
- "function" === typeof node.then)
7196
+ : thrownValue$3),
7197
+ "object" === typeof node && null !== node)
6984
7198
  ) {
6985
- childIndex = getThenableStateAfterSuspending();
6986
- segment = task.blockedSegment;
6987
- childrenLength = createPendingSegment(
6988
- request,
6989
- segment.chunks.length,
6990
- null,
6991
- task.formatContext,
6992
- segment.lastPushedText,
6993
- !0
6994
- );
6995
- segment.children.push(childrenLength);
6996
- segment.lastPushedText = !1;
6997
- request = createRenderTask(
6998
- request,
6999
- childIndex,
7000
- task.node,
7001
- task.childIndex,
7002
- task.blockedBoundary,
7003
- childrenLength,
7004
- task.hoistableState,
7005
- task.abortSet,
7006
- task.keyPath,
7007
- task.formatContext,
7008
- task.legacyContext,
7009
- task.context,
7010
- task.treeContext,
7011
- null !== task.componentStack ? task.componentStack.parent : null,
7012
- task.isFallback
7013
- ).ping;
7014
- node.then(request, request);
7015
- task.formatContext = previousFormatContext;
7016
- task.legacyContext = previousLegacyContext;
7017
- task.context = previousContext;
7018
- task.keyPath = previousKeyPath;
7019
- task.treeContext = previousTreeContext;
7020
- task.componentStack = previousComponentStack;
7021
- switchContext(previousContext);
7022
- return;
7199
+ if ("function" === typeof node.then) {
7200
+ childIndex = getThenableStateAfterSuspending();
7201
+ request = spawnNewSuspendedRenderTask(request, task, childIndex).ping;
7202
+ node.then(request, request);
7203
+ task.formatContext = previousFormatContext;
7204
+ task.context = previousContext;
7205
+ task.keyPath = previousKeyPath;
7206
+ task.treeContext = previousTreeContext;
7207
+ task.componentStack = previousComponentStack;
7208
+ switchContext(previousContext);
7209
+ return;
7210
+ }
7211
+ if ("Maximum call stack size exceeded" === node.message) {
7212
+ node = getThenableStateAfterSuspending();
7213
+ node = spawnNewSuspendedRenderTask(request, task, node);
7214
+ request.pingedTasks.push(node);
7215
+ task.formatContext = previousFormatContext;
7216
+ task.context = previousContext;
7217
+ task.keyPath = previousKeyPath;
7218
+ task.treeContext = previousTreeContext;
7219
+ task.componentStack = previousComponentStack;
7220
+ switchContext(previousContext);
7221
+ return;
7222
+ }
7023
7223
  }
7024
7224
  }
7025
7225
  }
7026
7226
  task.formatContext = previousFormatContext;
7027
- task.legacyContext = previousLegacyContext;
7028
7227
  task.context = previousContext;
7029
7228
  task.keyPath = previousKeyPath;
7030
7229
  task.treeContext = previousTreeContext;
@@ -7124,27 +7323,31 @@ function abortRemainingReplayNodes(
7124
7323
  function abortTask(task, request, error) {
7125
7324
  var boundary = task.blockedBoundary,
7126
7325
  segment = task.blockedSegment;
7127
- null !== segment && (segment.status = 3);
7326
+ if (null !== segment) {
7327
+ if (6 === segment.status) return;
7328
+ segment.status = 3;
7329
+ }
7330
+ segment = getThrownInfo(task.componentStack);
7128
7331
  if (null === boundary) {
7129
- if (((boundary = {}), 1 !== request.status && 2 !== request.status)) {
7130
- task = task.replay;
7131
- if (null === task) {
7132
- logRecoverableError(request, error, boundary);
7332
+ if (13 !== request.status && request.status !== CLOSED) {
7333
+ boundary = task.replay;
7334
+ if (null === boundary) {
7335
+ logRecoverableError(request, error, segment);
7133
7336
  fatalError(request, error);
7134
7337
  return;
7135
7338
  }
7136
- task.pendingTasks--;
7137
- 0 === task.pendingTasks &&
7138
- 0 < task.nodes.length &&
7139
- ((segment = logRecoverableError(request, error, boundary)),
7339
+ boundary.pendingTasks--;
7340
+ 0 === boundary.pendingTasks &&
7341
+ 0 < boundary.nodes.length &&
7342
+ ((task = logRecoverableError(request, error, segment)),
7140
7343
  abortRemainingReplayNodes(
7141
7344
  request,
7142
7345
  null,
7143
- task.nodes,
7144
- task.slots,
7346
+ boundary.nodes,
7347
+ boundary.slots,
7145
7348
  error,
7349
+ task,
7146
7350
  segment,
7147
- boundary,
7148
7351
  !0
7149
7352
  ));
7150
7353
  request.pendingRootTasks--;
@@ -7154,9 +7357,9 @@ function abortTask(task, request, error) {
7154
7357
  boundary.pendingTasks--,
7155
7358
  boundary.status !== CLIENT_RENDERED &&
7156
7359
  ((boundary.status = CLIENT_RENDERED),
7157
- (task = getThrownInfo(request, task.componentStack)),
7158
- (segment = logRecoverableError(request, error, task)),
7159
- encodeErrorForBoundary(boundary, segment, error, task, !0),
7360
+ (task = logRecoverableError(request, error, segment)),
7361
+ (boundary.status = CLIENT_RENDERED),
7362
+ encodeErrorForBoundary(boundary, task, error, segment, !0),
7160
7363
  untrackBoundary(request, boundary),
7161
7364
  boundary.parentFlushed &&
7162
7365
  request.clientRenderedBoundaries.push(boundary)),
@@ -7209,7 +7412,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
7209
7412
  referrerPolicy: props$jscomp$0.referrerPolicy,
7210
7413
  media: props$jscomp$0.media
7211
7414
  });
7212
- if (2 <= (headers.remainingCapacity -= header.length))
7415
+ if (0 <= (headers.remainingCapacity -= header.length + 2))
7213
7416
  (renderState.resets.style[key] = PRELOAD_NO_CREDS),
7214
7417
  linkHeader && (linkHeader += ", "),
7215
7418
  (linkHeader += header),
@@ -7224,8 +7427,8 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
7224
7427
  linkHeader ? onHeaders({ Link: linkHeader }) : onHeaders({});
7225
7428
  }
7226
7429
  }
7227
- } catch (error$5) {
7228
- logRecoverableError(request, error$5, {});
7430
+ } catch (error) {
7431
+ logRecoverableError(request, error, {});
7229
7432
  }
7230
7433
  }
7231
7434
  function completeShell(request) {
@@ -7295,7 +7498,7 @@ function finishedTask(request, boundary, segment) {
7295
7498
  0 === request.allPendingTasks && completeAll(request);
7296
7499
  }
7297
7500
  function performWork(request$jscomp$1) {
7298
- if (2 !== request$jscomp$1.status) {
7501
+ if (request$jscomp$1.status !== CLOSED && 13 !== request$jscomp$1.status) {
7299
7502
  var prevContext = currentActiveSnapshot,
7300
7503
  prevDispatcher = ReactSharedInternals.H;
7301
7504
  ReactSharedInternals.H = HooksDispatcher;
@@ -7323,12 +7526,15 @@ function performWork(request$jscomp$1) {
7323
7526
  prevTaskInDEV = currentTaskInDEV;
7324
7527
  currentTaskInDEV = request;
7325
7528
  try {
7326
- renderNodeDestructive(
7327
- request$jscomp$0,
7328
- request,
7329
- request.node,
7330
- request.childIndex
7331
- );
7529
+ "number" === typeof request.replay.slots
7530
+ ? resumeNode(
7531
+ request$jscomp$0,
7532
+ request,
7533
+ request.replay.slots,
7534
+ request.node,
7535
+ request.childIndex
7536
+ )
7537
+ : retryNode(request$jscomp$0, request);
7332
7538
  if (
7333
7539
  1 === request.replay.pendingTasks &&
7334
7540
  0 < request.replay.nodes.length
@@ -7353,19 +7559,16 @@ function performWork(request$jscomp$1) {
7353
7559
  var ping = request.ping;
7354
7560
  x.then(ping, ping);
7355
7561
  request.thenableState = getThenableStateAfterSuspending();
7356
- null !== request.componentStack &&
7357
- (request.componentStack = request.componentStack.parent);
7358
7562
  } else {
7359
7563
  request.replay.pendingTasks--;
7360
7564
  request.abortSet.delete(request);
7361
- var errorInfo = getThrownInfo(
7362
- request$jscomp$0,
7363
- request.componentStack
7364
- );
7565
+ var errorInfo = getThrownInfo(request.componentStack);
7365
7566
  erroredReplay(
7366
7567
  request$jscomp$0,
7367
7568
  request.blockedBoundary,
7368
- x,
7569
+ 12 === request$jscomp$0.status
7570
+ ? request$jscomp$0.fatalError
7571
+ : x,
7369
7572
  errorInfo,
7370
7573
  request.replay.nodes,
7371
7574
  request.replay.slots
@@ -7386,18 +7589,14 @@ function performWork(request$jscomp$1) {
7386
7589
  var task$jscomp$0 = task,
7387
7590
  segment$jscomp$0 = segment;
7388
7591
  if (segment$jscomp$0.status === PENDING) {
7592
+ segment$jscomp$0.status = 6;
7389
7593
  switchContext(task$jscomp$0.context);
7390
7594
  request$jscomp$0 = currentTaskInDEV;
7391
7595
  currentTaskInDEV = task$jscomp$0;
7392
7596
  var childrenLength = segment$jscomp$0.children.length,
7393
7597
  chunkLength = segment$jscomp$0.chunks.length;
7394
7598
  try {
7395
- renderNodeDestructive(
7396
- request,
7397
- task$jscomp$0,
7398
- task$jscomp$0.node,
7399
- task$jscomp$0.childIndex
7400
- ),
7599
+ retryNode(request, task$jscomp$0),
7401
7600
  segment$jscomp$0.lastPushedText &&
7402
7601
  segment$jscomp$0.textEmbedded &&
7403
7602
  segment$jscomp$0.chunks.push("\x3c!-- --\x3e"),
@@ -7415,21 +7614,20 @@ function performWork(request$jscomp$1) {
7415
7614
  var x$jscomp$0 =
7416
7615
  thrownValue === SuspenseException
7417
7616
  ? getSuspendedThenable()
7418
- : thrownValue;
7617
+ : 12 === request.status
7618
+ ? request.fatalError
7619
+ : thrownValue;
7419
7620
  if (
7420
7621
  "object" === typeof x$jscomp$0 &&
7421
7622
  null !== x$jscomp$0 &&
7422
7623
  "function" === typeof x$jscomp$0.then
7423
7624
  ) {
7625
+ segment$jscomp$0.status = PENDING;
7626
+ task$jscomp$0.thenableState = getThenableStateAfterSuspending();
7424
7627
  var ping$jscomp$0 = task$jscomp$0.ping;
7425
7628
  x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
7426
- task$jscomp$0.thenableState = getThenableStateAfterSuspending();
7427
- null !== task$jscomp$0.componentStack &&
7428
- (task$jscomp$0.componentStack =
7429
- task$jscomp$0.componentStack.parent);
7430
7629
  } else {
7431
7630
  var errorInfo$jscomp$0 = getThrownInfo(
7432
- request,
7433
7631
  task$jscomp$0.componentStack
7434
7632
  );
7435
7633
  task$jscomp$0.abortSet.delete(task$jscomp$0);
@@ -7467,9 +7665,9 @@ function performWork(request$jscomp$1) {
7467
7665
  pingedTasks.splice(0, i);
7468
7666
  null !== request$jscomp$1.destination &&
7469
7667
  flushCompletedQueues(request$jscomp$1, request$jscomp$1.destination);
7470
- } catch (error$6) {
7471
- logRecoverableError(request$jscomp$1, error$6, {}),
7472
- fatalError(request$jscomp$1, error$6);
7668
+ } catch (error) {
7669
+ logRecoverableError(request$jscomp$1, error, {}),
7670
+ fatalError(request$jscomp$1, error);
7473
7671
  } finally {
7474
7672
  (currentResumableState = prevResumableState),
7475
7673
  (ReactSharedInternals.H = prevDispatcher),
@@ -7646,15 +7844,15 @@ function flushCompletedBoundary(request, destination, boundary) {
7646
7844
  SentCompleteBoundaryFunction),
7647
7845
  writeChunk(destination, completeBoundaryWithStylesScript1FullBoth))
7648
7846
  : (completedSegments.instructions & SentStyleInsertionFunction) ===
7649
- NothingSent
7650
- ? ((completedSegments.instructions |= SentStyleInsertionFunction),
7651
- writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
7652
- : writeChunk(destination, completeBoundaryWithStylesScript1Partial)
7847
+ NothingSent
7848
+ ? ((completedSegments.instructions |= SentStyleInsertionFunction),
7849
+ writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
7850
+ : writeChunk(destination, completeBoundaryWithStylesScript1Partial)
7653
7851
  : (completedSegments.instructions & SentCompleteBoundaryFunction) ===
7654
- NothingSent
7655
- ? ((completedSegments.instructions |= SentCompleteBoundaryFunction),
7656
- writeChunk(destination, completeBoundaryScript1Full))
7657
- : writeChunk(destination, completeBoundaryScript1Partial);
7852
+ NothingSent
7853
+ ? ((completedSegments.instructions |= SentCompleteBoundaryFunction),
7854
+ writeChunk(destination, completeBoundaryScript1Full))
7855
+ : writeChunk(destination, completeBoundaryScript1Partial);
7658
7856
  completedSegments = i.toString(16);
7659
7857
  writeChunk(destination, request.boundaryPrefix);
7660
7858
  writeChunk(destination, completedSegments);
@@ -7934,9 +8132,10 @@ function flushCompletedQueues(request, destination) {
7934
8132
  i.hasHtml && writeChunk(destination, endChunkForTag("html")),
7935
8133
  flushBuffered(destination),
7936
8134
  0 !== request.abortableTasks.size &&
7937
- error(
8135
+ console.error(
7938
8136
  "There was still abortable task at the root when we closed. This is a bug in React."
7939
8137
  ),
8138
+ (request.status = CLOSED),
7940
8139
  destination.end(),
7941
8140
  (request.destination = null))
7942
8141
  : flushBuffered(destination);
@@ -7944,13 +8143,14 @@ function flushCompletedQueues(request, destination) {
7944
8143
  }
7945
8144
  function startWork(request) {
7946
8145
  request.flushScheduled = null !== request.destination;
7947
- setTimeout(function () {
8146
+ scheduleMicrotask(function () {
7948
8147
  return performWork(request);
7949
- }, 0);
7950
- null === request.trackedPostpones &&
7951
- setTimeout(function () {
8148
+ });
8149
+ setTimeout(function () {
8150
+ 10 === request.status && (request.status = 11);
8151
+ null === request.trackedPostpones &&
7952
8152
  safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
7953
- }, 0);
8153
+ }, 0);
7954
8154
  }
7955
8155
  function enqueueFlush(request) {
7956
8156
  !1 === request.flushScheduled &&
@@ -7965,13 +8165,19 @@ function enqueueFlush(request) {
7965
8165
  }, 0));
7966
8166
  }
7967
8167
  function abort(request, reason) {
8168
+ if (11 === request.status || 10 === request.status) request.status = 12;
7968
8169
  try {
7969
8170
  var abortableTasks = request.abortableTasks;
7970
8171
  if (0 < abortableTasks.size) {
7971
8172
  var error =
7972
8173
  void 0 === reason
7973
8174
  ? Error("The render was aborted by the server without a reason.")
7974
- : reason;
8175
+ : "object" === typeof reason &&
8176
+ null !== reason &&
8177
+ "function" === typeof reason.then
8178
+ ? Error("The render was aborted by the server with a promise.")
8179
+ : reason;
8180
+ request.fatalError = error;
7975
8181
  abortableTasks.forEach(function (task) {
7976
8182
  return abortTask(task, request, error);
7977
8183
  });
@@ -7979,19 +8185,19 @@ function abort(request, reason) {
7979
8185
  }
7980
8186
  null !== request.destination &&
7981
8187
  flushCompletedQueues(request, request.destination);
7982
- } catch (error$8) {
7983
- logRecoverableError(request, error$8, {}), fatalError(request, error$8);
8188
+ } catch (error$4) {
8189
+ logRecoverableError(request, error$4, {}), fatalError(request, error$4);
7984
8190
  }
7985
8191
  }
7986
- var isomorphicReactPackageVersion$jscomp$inline_695 = React.version;
8192
+ var isomorphicReactPackageVersion$jscomp$inline_702 = React.version;
7987
8193
  if (
7988
- "19.0.0-rc-fb9a90fa48-20240614" !==
7989
- isomorphicReactPackageVersion$jscomp$inline_695
8194
+ "19.0.0" !==
8195
+ isomorphicReactPackageVersion$jscomp$inline_702
7990
8196
  )
7991
8197
  throw Error(
7992
8198
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
7993
- (isomorphicReactPackageVersion$jscomp$inline_695 +
7994
- "\n - react-dom: 19.0.0-rc-fb9a90fa48-20240614\nLearn more: https://react.dev/warnings/version-mismatch")
8199
+ (isomorphicReactPackageVersion$jscomp$inline_702 +
8200
+ "\n - react-dom: 19.0.0\nLearn more: https://react.dev/warnings/version-mismatch")
7995
8201
  );
7996
8202
  exports.renderToReadableStream = function (children, options) {
7997
8203
  return new Promise(function (resolve, reject) {
@@ -8035,16 +8241,19 @@ exports.renderToReadableStream = function (children, options) {
8035
8241
  type: "direct",
8036
8242
  pull: function (controller) {
8037
8243
  var request = request$jscomp$0;
8038
- if (1 === request.status)
8039
- (request.status = 2),
8244
+ if (13 === request.status)
8245
+ (request.status = CLOSED),
8040
8246
  closeWithError(controller, request.fatalError);
8041
- else if (2 !== request.status && null === request.destination) {
8247
+ else if (
8248
+ request.status !== CLOSED &&
8249
+ null === request.destination
8250
+ ) {
8042
8251
  request.destination = controller;
8043
8252
  try {
8044
8253
  flushCompletedQueues(request, controller);
8045
- } catch (error$7) {
8046
- logRecoverableError(request, error$7, {}),
8047
- fatalError(request, error$7);
8254
+ } catch (error) {
8255
+ logRecoverableError(request, error, {}),
8256
+ fatalError(request, error);
8048
8257
  }
8049
8258
  }
8050
8259
  },
@@ -8080,4 +8289,4 @@ exports.renderToReadableStream = function (children, options) {
8080
8289
  startWork(request$jscomp$0);
8081
8290
  });
8082
8291
  };
8083
- exports.version = "19.0.0-rc-fb9a90fa48-20240614";
8292
+ exports.version = "19.0.0";