react-dom 19.0.0-rc.0 → 19.0.0

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.
@@ -353,12 +353,12 @@ function getChildFormatContext(parentContext, type, props) {
353
353
  return 5 <= parentContext.insertionMode
354
354
  ? createFormatContext(2, null, parentContext.tagScope)
355
355
  : 0 === parentContext.insertionMode
356
- ? "html" === type
357
- ? createFormatContext(1, null, parentContext.tagScope)
358
- : createFormatContext(2, null, parentContext.tagScope)
359
- : 1 === parentContext.insertionMode
360
- ? createFormatContext(2, null, parentContext.tagScope)
361
- : parentContext;
356
+ ? "html" === type
357
+ ? createFormatContext(1, null, parentContext.tagScope)
358
+ : createFormatContext(2, null, parentContext.tagScope)
359
+ : 1 === parentContext.insertionMode
360
+ ? createFormatContext(2, null, parentContext.tagScope)
361
+ : parentContext;
362
362
  }
363
363
  var styleNameCache = new Map();
364
364
  function pushStyleAttribute(target, style) {
@@ -1259,22 +1259,64 @@ function pushStartInstance(
1259
1259
  }
1260
1260
  target$jscomp$0.push(">");
1261
1261
  return null;
1262
+ case "object":
1263
+ target$jscomp$0.push(startChunkForTag("object"));
1264
+ var children$jscomp$5 = null,
1265
+ innerHTML$jscomp$4 = null,
1266
+ propKey$jscomp$7;
1267
+ for (propKey$jscomp$7 in props)
1268
+ if (hasOwnProperty.call(props, propKey$jscomp$7)) {
1269
+ var propValue$jscomp$7 = props[propKey$jscomp$7];
1270
+ if (null != propValue$jscomp$7)
1271
+ switch (propKey$jscomp$7) {
1272
+ case "children":
1273
+ children$jscomp$5 = propValue$jscomp$7;
1274
+ break;
1275
+ case "dangerouslySetInnerHTML":
1276
+ innerHTML$jscomp$4 = propValue$jscomp$7;
1277
+ break;
1278
+ case "data":
1279
+ var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
1280
+ if ("" === sanitizedValue) break;
1281
+ target$jscomp$0.push(
1282
+ " ",
1283
+ "data",
1284
+ '="',
1285
+ escapeTextForBrowser(sanitizedValue),
1286
+ '"'
1287
+ );
1288
+ break;
1289
+ default:
1290
+ pushAttribute(
1291
+ target$jscomp$0,
1292
+ propKey$jscomp$7,
1293
+ propValue$jscomp$7
1294
+ );
1295
+ }
1296
+ }
1297
+ target$jscomp$0.push(">");
1298
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1299
+ if ("string" === typeof children$jscomp$5) {
1300
+ target$jscomp$0.push(escapeTextForBrowser(children$jscomp$5));
1301
+ var JSCompiler_inline_result$jscomp$2 = null;
1302
+ } else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
1303
+ return JSCompiler_inline_result$jscomp$2;
1262
1304
  case "title":
1263
1305
  if (
1264
1306
  3 === formatContext.insertionMode ||
1265
1307
  formatContext.tagScope & 1 ||
1266
1308
  null != props.itemProp
1267
1309
  )
1268
- var JSCompiler_inline_result$jscomp$2 = pushTitleImpl(
1310
+ var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
1269
1311
  target$jscomp$0,
1270
1312
  props
1271
1313
  );
1272
1314
  else
1273
1315
  isFallback
1274
- ? (JSCompiler_inline_result$jscomp$2 = null)
1316
+ ? (JSCompiler_inline_result$jscomp$3 = null)
1275
1317
  : (pushTitleImpl(renderState.hoistableChunks, props),
1276
- (JSCompiler_inline_result$jscomp$2 = void 0));
1277
- return JSCompiler_inline_result$jscomp$2;
1318
+ (JSCompiler_inline_result$jscomp$3 = void 0));
1319
+ return JSCompiler_inline_result$jscomp$3;
1278
1320
  case "link":
1279
1321
  var rel = props.rel,
1280
1322
  href = props.href,
@@ -1288,7 +1330,7 @@ function pushStartInstance(
1288
1330
  "" === href
1289
1331
  ) {
1290
1332
  pushLinkImpl(target$jscomp$0, props);
1291
- var JSCompiler_inline_result$jscomp$3 = null;
1333
+ var JSCompiler_inline_result$jscomp$4 = null;
1292
1334
  } else if ("stylesheet" === props.rel)
1293
1335
  if (
1294
1336
  "string" !== typeof precedence ||
@@ -1296,7 +1338,7 @@ function pushStartInstance(
1296
1338
  props.onLoad ||
1297
1339
  props.onError
1298
1340
  )
1299
- JSCompiler_inline_result$jscomp$3 = pushLinkImpl(
1341
+ JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
1300
1342
  target$jscomp$0,
1301
1343
  props
1302
1344
  );
@@ -1339,19 +1381,19 @@ function pushStartInstance(
1339
1381
  hoistableState.stylesheets.add(resource$9);
1340
1382
  }
1341
1383
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1342
- JSCompiler_inline_result$jscomp$3 = null;
1384
+ JSCompiler_inline_result$jscomp$4 = null;
1343
1385
  }
1344
1386
  else
1345
1387
  props.onLoad || props.onError
1346
- ? (JSCompiler_inline_result$jscomp$3 = pushLinkImpl(
1388
+ ? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
1347
1389
  target$jscomp$0,
1348
1390
  props
1349
1391
  ))
1350
1392
  : (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1351
- (JSCompiler_inline_result$jscomp$3 = isFallback
1393
+ (JSCompiler_inline_result$jscomp$4 = isFallback
1352
1394
  ? null
1353
1395
  : pushLinkImpl(renderState.hoistableChunks, props)));
1354
- return JSCompiler_inline_result$jscomp$3;
1396
+ return JSCompiler_inline_result$jscomp$4;
1355
1397
  case "script":
1356
1398
  var asyncProp = props.async;
1357
1399
  if (
@@ -1366,7 +1408,7 @@ function pushStartInstance(
1366
1408
  formatContext.tagScope & 1 ||
1367
1409
  null != props.itemProp
1368
1410
  )
1369
- var JSCompiler_inline_result$jscomp$4 = pushScriptImpl(
1411
+ var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
1370
1412
  target$jscomp$0,
1371
1413
  props
1372
1414
  );
@@ -1396,9 +1438,9 @@ function pushStartInstance(
1396
1438
  pushScriptImpl(resource$jscomp$0, scriptProps);
1397
1439
  }
1398
1440
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1399
- JSCompiler_inline_result$jscomp$4 = null;
1441
+ JSCompiler_inline_result$jscomp$5 = null;
1400
1442
  }
1401
- return JSCompiler_inline_result$jscomp$4;
1443
+ return JSCompiler_inline_result$jscomp$5;
1402
1444
  case "style":
1403
1445
  var precedence$jscomp$0 = props.precedence,
1404
1446
  href$jscomp$0 = props.href;
@@ -1411,42 +1453,42 @@ function pushStartInstance(
1411
1453
  "" === href$jscomp$0
1412
1454
  ) {
1413
1455
  target$jscomp$0.push(startChunkForTag("style"));
1414
- var children$jscomp$5 = null,
1415
- innerHTML$jscomp$4 = null,
1416
- propKey$jscomp$7;
1417
- for (propKey$jscomp$7 in props)
1418
- if (hasOwnProperty.call(props, propKey$jscomp$7)) {
1419
- var propValue$jscomp$7 = props[propKey$jscomp$7];
1420
- if (null != propValue$jscomp$7)
1421
- switch (propKey$jscomp$7) {
1456
+ var children$jscomp$6 = null,
1457
+ innerHTML$jscomp$5 = null,
1458
+ propKey$jscomp$8;
1459
+ for (propKey$jscomp$8 in props)
1460
+ if (hasOwnProperty.call(props, propKey$jscomp$8)) {
1461
+ var propValue$jscomp$8 = props[propKey$jscomp$8];
1462
+ if (null != propValue$jscomp$8)
1463
+ switch (propKey$jscomp$8) {
1422
1464
  case "children":
1423
- children$jscomp$5 = propValue$jscomp$7;
1465
+ children$jscomp$6 = propValue$jscomp$8;
1424
1466
  break;
1425
1467
  case "dangerouslySetInnerHTML":
1426
- innerHTML$jscomp$4 = propValue$jscomp$7;
1468
+ innerHTML$jscomp$5 = propValue$jscomp$8;
1427
1469
  break;
1428
1470
  default:
1429
1471
  pushAttribute(
1430
1472
  target$jscomp$0,
1431
- propKey$jscomp$7,
1432
- propValue$jscomp$7
1473
+ propKey$jscomp$8,
1474
+ propValue$jscomp$8
1433
1475
  );
1434
1476
  }
1435
1477
  }
1436
1478
  target$jscomp$0.push(">");
1437
- var child = Array.isArray(children$jscomp$5)
1438
- ? 2 > children$jscomp$5.length
1439
- ? children$jscomp$5[0]
1479
+ var child = Array.isArray(children$jscomp$6)
1480
+ ? 2 > children$jscomp$6.length
1481
+ ? children$jscomp$6[0]
1440
1482
  : null
1441
- : children$jscomp$5;
1483
+ : children$jscomp$6;
1442
1484
  "function" !== typeof child &&
1443
1485
  "symbol" !== typeof child &&
1444
1486
  null !== child &&
1445
1487
  void 0 !== child &&
1446
1488
  target$jscomp$0.push(("" + child).replace(styleRegex, styleReplacer));
1447
- pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
1489
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
1448
1490
  target$jscomp$0.push(endChunkForTag("style"));
1449
- var JSCompiler_inline_result$jscomp$5 = null;
1491
+ var JSCompiler_inline_result$jscomp$6 = null;
1450
1492
  } else {
1451
1493
  var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
1452
1494
  if (
@@ -1468,26 +1510,26 @@ function pushStartInstance(
1468
1510
  }),
1469
1511
  renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
1470
1512
  var target = styleQueue$jscomp$0.rules,
1471
- children$jscomp$6 = null,
1472
- innerHTML$jscomp$5 = null,
1473
- propKey$jscomp$8;
1474
- for (propKey$jscomp$8 in props)
1475
- if (hasOwnProperty.call(props, propKey$jscomp$8)) {
1476
- var propValue$jscomp$8 = props[propKey$jscomp$8];
1477
- if (null != propValue$jscomp$8)
1478
- switch (propKey$jscomp$8) {
1513
+ children$jscomp$7 = null,
1514
+ innerHTML$jscomp$6 = null,
1515
+ propKey$jscomp$9;
1516
+ for (propKey$jscomp$9 in props)
1517
+ if (hasOwnProperty.call(props, propKey$jscomp$9)) {
1518
+ var propValue$jscomp$9 = props[propKey$jscomp$9];
1519
+ if (null != propValue$jscomp$9)
1520
+ switch (propKey$jscomp$9) {
1479
1521
  case "children":
1480
- children$jscomp$6 = propValue$jscomp$8;
1522
+ children$jscomp$7 = propValue$jscomp$9;
1481
1523
  break;
1482
1524
  case "dangerouslySetInnerHTML":
1483
- innerHTML$jscomp$5 = propValue$jscomp$8;
1525
+ innerHTML$jscomp$6 = propValue$jscomp$9;
1484
1526
  }
1485
1527
  }
1486
- var child$jscomp$0 = Array.isArray(children$jscomp$6)
1487
- ? 2 > children$jscomp$6.length
1488
- ? children$jscomp$6[0]
1528
+ var child$jscomp$0 = Array.isArray(children$jscomp$7)
1529
+ ? 2 > children$jscomp$7.length
1530
+ ? children$jscomp$7[0]
1489
1531
  : null
1490
- : children$jscomp$6;
1532
+ : children$jscomp$7;
1491
1533
  "function" !== typeof child$jscomp$0 &&
1492
1534
  "symbol" !== typeof child$jscomp$0 &&
1493
1535
  null !== child$jscomp$0 &&
@@ -1495,85 +1537,85 @@ function pushStartInstance(
1495
1537
  target.push(
1496
1538
  ("" + child$jscomp$0).replace(styleRegex, styleReplacer)
1497
1539
  );
1498
- pushInnerHTML(target, innerHTML$jscomp$5, children$jscomp$6);
1540
+ pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
1499
1541
  }
1500
1542
  styleQueue$jscomp$0 &&
1501
1543
  hoistableState &&
1502
1544
  hoistableState.styles.add(styleQueue$jscomp$0);
1503
1545
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e");
1504
- JSCompiler_inline_result$jscomp$5 = void 0;
1546
+ JSCompiler_inline_result$jscomp$6 = void 0;
1505
1547
  }
1506
- return JSCompiler_inline_result$jscomp$5;
1548
+ return JSCompiler_inline_result$jscomp$6;
1507
1549
  case "meta":
1508
1550
  if (
1509
1551
  3 === formatContext.insertionMode ||
1510
1552
  formatContext.tagScope & 1 ||
1511
1553
  null != props.itemProp
1512
1554
  )
1513
- var JSCompiler_inline_result$jscomp$6 = pushSelfClosing(
1555
+ var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
1514
1556
  target$jscomp$0,
1515
1557
  props,
1516
1558
  "meta"
1517
1559
  );
1518
1560
  else
1519
1561
  textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
1520
- (JSCompiler_inline_result$jscomp$6 = isFallback
1562
+ (JSCompiler_inline_result$jscomp$7 = isFallback
1521
1563
  ? null
1522
1564
  : "string" === typeof props.charSet
1523
- ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1524
- : "viewport" === props.name
1525
- ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1526
- : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1527
- return JSCompiler_inline_result$jscomp$6;
1565
+ ? pushSelfClosing(renderState.charsetChunks, props, "meta")
1566
+ : "viewport" === props.name
1567
+ ? pushSelfClosing(renderState.viewportChunks, props, "meta")
1568
+ : pushSelfClosing(renderState.hoistableChunks, props, "meta"));
1569
+ return JSCompiler_inline_result$jscomp$7;
1528
1570
  case "listing":
1529
1571
  case "pre":
1530
1572
  target$jscomp$0.push(startChunkForTag(type));
1531
- var children$jscomp$7 = null,
1532
- innerHTML$jscomp$6 = null,
1533
- propKey$jscomp$9;
1534
- for (propKey$jscomp$9 in props)
1535
- if (hasOwnProperty.call(props, propKey$jscomp$9)) {
1536
- var propValue$jscomp$9 = props[propKey$jscomp$9];
1537
- if (null != propValue$jscomp$9)
1538
- switch (propKey$jscomp$9) {
1573
+ var children$jscomp$8 = null,
1574
+ innerHTML$jscomp$7 = null,
1575
+ propKey$jscomp$10;
1576
+ for (propKey$jscomp$10 in props)
1577
+ if (hasOwnProperty.call(props, propKey$jscomp$10)) {
1578
+ var propValue$jscomp$10 = props[propKey$jscomp$10];
1579
+ if (null != propValue$jscomp$10)
1580
+ switch (propKey$jscomp$10) {
1539
1581
  case "children":
1540
- children$jscomp$7 = propValue$jscomp$9;
1582
+ children$jscomp$8 = propValue$jscomp$10;
1541
1583
  break;
1542
1584
  case "dangerouslySetInnerHTML":
1543
- innerHTML$jscomp$6 = propValue$jscomp$9;
1585
+ innerHTML$jscomp$7 = propValue$jscomp$10;
1544
1586
  break;
1545
1587
  default:
1546
1588
  pushAttribute(
1547
1589
  target$jscomp$0,
1548
- propKey$jscomp$9,
1549
- propValue$jscomp$9
1590
+ propKey$jscomp$10,
1591
+ propValue$jscomp$10
1550
1592
  );
1551
1593
  }
1552
1594
  }
1553
1595
  target$jscomp$0.push(">");
1554
- if (null != innerHTML$jscomp$6) {
1555
- if (null != children$jscomp$7)
1596
+ if (null != innerHTML$jscomp$7) {
1597
+ if (null != children$jscomp$8)
1556
1598
  throw Error(
1557
1599
  "Can only set one of `children` or `props.dangerouslySetInnerHTML`."
1558
1600
  );
1559
1601
  if (
1560
- "object" !== typeof innerHTML$jscomp$6 ||
1561
- !("__html" in innerHTML$jscomp$6)
1602
+ "object" !== typeof innerHTML$jscomp$7 ||
1603
+ !("__html" in innerHTML$jscomp$7)
1562
1604
  )
1563
1605
  throw Error(
1564
1606
  "`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information."
1565
1607
  );
1566
- var html = innerHTML$jscomp$6.__html;
1608
+ var html = innerHTML$jscomp$7.__html;
1567
1609
  null !== html &&
1568
1610
  void 0 !== html &&
1569
1611
  ("string" === typeof html && 0 < html.length && "\n" === html[0]
1570
1612
  ? target$jscomp$0.push("\n", html)
1571
1613
  : target$jscomp$0.push("" + html));
1572
1614
  }
1573
- "string" === typeof children$jscomp$7 &&
1574
- "\n" === children$jscomp$7[0] &&
1615
+ "string" === typeof children$jscomp$8 &&
1616
+ "\n" === children$jscomp$8[0] &&
1575
1617
  target$jscomp$0.push("\n");
1576
- return children$jscomp$7;
1618
+ return children$jscomp$8;
1577
1619
  case "img":
1578
1620
  var src = props.src,
1579
1621
  srcSet = props.srcSet;
@@ -1615,7 +1657,7 @@ function pushStartInstance(
1615
1657
  ) {
1616
1658
  resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
1617
1659
  var input = props.crossOrigin;
1618
- var JSCompiler_inline_result$jscomp$7 =
1660
+ var JSCompiler_inline_result$jscomp$8 =
1619
1661
  "string" === typeof input
1620
1662
  ? "use-credentials" === input
1621
1663
  ? input
@@ -1630,14 +1672,14 @@ function pushStartInstance(
1630
1672
  ((header = getPreloadAsHeader(src, "image", {
1631
1673
  imageSrcSet: props.srcSet,
1632
1674
  imageSizes: props.sizes,
1633
- crossOrigin: JSCompiler_inline_result$jscomp$7,
1675
+ crossOrigin: JSCompiler_inline_result$jscomp$8,
1634
1676
  integrity: props.integrity,
1635
1677
  nonce: props.nonce,
1636
1678
  type: props.type,
1637
1679
  fetchPriority: props.fetchPriority,
1638
1680
  referrerPolicy: props.refererPolicy
1639
1681
  })),
1640
- 2 <= (headers.remainingCapacity -= header.length))
1682
+ 0 <= (headers.remainingCapacity -= header.length + 2))
1641
1683
  ? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
1642
1684
  headers.highImagePreloads && (headers.highImagePreloads += ", "),
1643
1685
  (headers.highImagePreloads += header))
@@ -1648,7 +1690,7 @@ function pushStartInstance(
1648
1690
  href: srcSet ? void 0 : src,
1649
1691
  imageSrcSet: srcSet,
1650
1692
  imageSizes: sizes,
1651
- crossOrigin: JSCompiler_inline_result$jscomp$7,
1693
+ crossOrigin: JSCompiler_inline_result$jscomp$8,
1652
1694
  integrity: props.integrity,
1653
1695
  type: props.type,
1654
1696
  fetchPriority: props.fetchPriority,
@@ -1686,56 +1728,56 @@ function pushStartInstance(
1686
1728
  case "head":
1687
1729
  if (2 > formatContext.insertionMode && null === renderState.headChunks) {
1688
1730
  renderState.headChunks = [];
1689
- var JSCompiler_inline_result$jscomp$8 = pushStartGenericElement(
1731
+ var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1690
1732
  renderState.headChunks,
1691
1733
  props,
1692
1734
  "head"
1693
1735
  );
1694
1736
  } else
1695
- JSCompiler_inline_result$jscomp$8 = pushStartGenericElement(
1737
+ JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1696
1738
  target$jscomp$0,
1697
1739
  props,
1698
1740
  "head"
1699
1741
  );
1700
- return JSCompiler_inline_result$jscomp$8;
1742
+ return JSCompiler_inline_result$jscomp$9;
1701
1743
  case "html":
1702
1744
  if (
1703
1745
  0 === formatContext.insertionMode &&
1704
1746
  null === renderState.htmlChunks
1705
1747
  ) {
1706
1748
  renderState.htmlChunks = [""];
1707
- var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1749
+ var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
1708
1750
  renderState.htmlChunks,
1709
1751
  props,
1710
1752
  "html"
1711
1753
  );
1712
1754
  } else
1713
- JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1755
+ JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
1714
1756
  target$jscomp$0,
1715
1757
  props,
1716
1758
  "html"
1717
1759
  );
1718
- return JSCompiler_inline_result$jscomp$9;
1760
+ return JSCompiler_inline_result$jscomp$10;
1719
1761
  default:
1720
1762
  if (-1 !== type.indexOf("-")) {
1721
1763
  target$jscomp$0.push(startChunkForTag(type));
1722
- var children$jscomp$8 = null,
1723
- innerHTML$jscomp$7 = null,
1724
- propKey$jscomp$10;
1725
- for (propKey$jscomp$10 in props)
1726
- if (hasOwnProperty.call(props, propKey$jscomp$10)) {
1727
- var propValue$jscomp$10 = props[propKey$jscomp$10];
1728
- if (null != propValue$jscomp$10) {
1729
- var attributeName = propKey$jscomp$10;
1730
- switch (propKey$jscomp$10) {
1764
+ var children$jscomp$9 = null,
1765
+ innerHTML$jscomp$8 = null,
1766
+ propKey$jscomp$11;
1767
+ for (propKey$jscomp$11 in props)
1768
+ if (hasOwnProperty.call(props, propKey$jscomp$11)) {
1769
+ var propValue$jscomp$11 = props[propKey$jscomp$11];
1770
+ if (null != propValue$jscomp$11) {
1771
+ var attributeName = propKey$jscomp$11;
1772
+ switch (propKey$jscomp$11) {
1731
1773
  case "children":
1732
- children$jscomp$8 = propValue$jscomp$10;
1774
+ children$jscomp$9 = propValue$jscomp$11;
1733
1775
  break;
1734
1776
  case "dangerouslySetInnerHTML":
1735
- innerHTML$jscomp$7 = propValue$jscomp$10;
1777
+ innerHTML$jscomp$8 = propValue$jscomp$11;
1736
1778
  break;
1737
1779
  case "style":
1738
- pushStyleAttribute(target$jscomp$0, propValue$jscomp$10);
1780
+ pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
1739
1781
  break;
1740
1782
  case "suppressContentEditableWarning":
1741
1783
  case "suppressHydrationWarning":
@@ -1745,18 +1787,18 @@ function pushStartInstance(
1745
1787
  attributeName = "class";
1746
1788
  default:
1747
1789
  if (
1748
- isAttributeNameSafe(propKey$jscomp$10) &&
1749
- "function" !== typeof propValue$jscomp$10 &&
1750
- "symbol" !== typeof propValue$jscomp$10 &&
1751
- !1 !== propValue$jscomp$10
1790
+ isAttributeNameSafe(propKey$jscomp$11) &&
1791
+ "function" !== typeof propValue$jscomp$11 &&
1792
+ "symbol" !== typeof propValue$jscomp$11 &&
1793
+ !1 !== propValue$jscomp$11
1752
1794
  ) {
1753
- if (!0 === propValue$jscomp$10) propValue$jscomp$10 = "";
1754
- else if ("object" === typeof propValue$jscomp$10) continue;
1795
+ if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
1796
+ else if ("object" === typeof propValue$jscomp$11) continue;
1755
1797
  target$jscomp$0.push(
1756
1798
  " ",
1757
1799
  attributeName,
1758
1800
  '="',
1759
- escapeTextForBrowser(propValue$jscomp$10),
1801
+ escapeTextForBrowser(propValue$jscomp$11),
1760
1802
  '"'
1761
1803
  );
1762
1804
  }
@@ -1764,8 +1806,8 @@ function pushStartInstance(
1764
1806
  }
1765
1807
  }
1766
1808
  target$jscomp$0.push(">");
1767
- pushInnerHTML(target$jscomp$0, innerHTML$jscomp$7, children$jscomp$8);
1768
- return children$jscomp$8;
1809
+ pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
1810
+ return children$jscomp$9;
1769
1811
  }
1770
1812
  }
1771
1813
  return pushStartGenericElement(target$jscomp$0, props, type);
@@ -2150,7 +2192,7 @@ function prefetchDNS(href) {
2150
2192
  escapeHrefForLinkHeaderURLContextReplacer
2151
2193
  ) +
2152
2194
  ">; rel=dns-prefetch"),
2153
- 2 <= (resumableState.remainingCapacity -= header.length));
2195
+ 0 <= (resumableState.remainingCapacity -= header.length + 2));
2154
2196
  JSCompiler_temp
2155
2197
  ? ((renderState.resets.dns[href] = null),
2156
2198
  resumableState.preconnects && (resumableState.preconnects += ", "),
@@ -2173,8 +2215,8 @@ function preconnect(href, crossOrigin) {
2173
2215
  "use-credentials" === crossOrigin
2174
2216
  ? "credentials"
2175
2217
  : "string" === typeof crossOrigin
2176
- ? "anonymous"
2177
- : "default";
2218
+ ? "anonymous"
2219
+ : "default";
2178
2220
  if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
2179
2221
  resumableState.connectResources[bucket][href] = null;
2180
2222
  resumableState = renderState.headers;
@@ -2199,7 +2241,7 @@ function preconnect(href, crossOrigin) {
2199
2241
  }
2200
2242
  JSCompiler_temp =
2201
2243
  ((header = JSCompiler_temp),
2202
- 2 <= (resumableState.remainingCapacity -= header.length));
2244
+ 0 <= (resumableState.remainingCapacity -= header.length + 2));
2203
2245
  }
2204
2246
  JSCompiler_temp
2205
2247
  ? ((renderState.resets.connect[bucket][href] = null),
@@ -2241,7 +2283,7 @@ function preload(href, as, options) {
2241
2283
  0 < resumableState.remainingCapacity &&
2242
2284
  "high" === fetchPriority &&
2243
2285
  ((header = getPreloadAsHeader(href, as, options)),
2244
- 2 <= (resumableState.remainingCapacity -= header.length))
2286
+ 0 <= (resumableState.remainingCapacity -= header.length + 2))
2245
2287
  ? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
2246
2288
  resumableState.highImagePreloads &&
2247
2289
  (resumableState.highImagePreloads += ", "),
@@ -2307,7 +2349,7 @@ function preload(href, as, options) {
2307
2349
  0 < resumableState.remainingCapacity &&
2308
2350
  "font" === as &&
2309
2351
  ((key = getPreloadAsHeader(href, as, options)),
2310
- 2 <= (resumableState.remainingCapacity -= key.length))
2352
+ 0 <= (resumableState.remainingCapacity -= key.length + 2))
2311
2353
  )
2312
2354
  (renderState.resets.font[href] = PRELOAD_NO_CREDS),
2313
2355
  resumableState.fontPreloads &&
@@ -2543,16 +2585,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
2543
2585
  "\x3c/script>"
2544
2586
  );
2545
2587
  bootstrapScriptContent = idPrefix + "P:";
2546
- var JSCompiler_object_inline_segmentPrefix_1485 = idPrefix + "S:";
2588
+ var JSCompiler_object_inline_segmentPrefix_1482 = idPrefix + "S:";
2547
2589
  idPrefix += "B:";
2548
- var JSCompiler_object_inline_preconnects_1499 = new Set(),
2549
- JSCompiler_object_inline_fontPreloads_1500 = new Set(),
2550
- JSCompiler_object_inline_highImagePreloads_1501 = new Set(),
2551
- JSCompiler_object_inline_styles_1502 = new Map(),
2552
- JSCompiler_object_inline_bootstrapScripts_1503 = new Set(),
2553
- JSCompiler_object_inline_scripts_1504 = new Set(),
2554
- JSCompiler_object_inline_bulkPreloads_1505 = new Set(),
2555
- JSCompiler_object_inline_preloads_1506 = {
2590
+ var JSCompiler_object_inline_preconnects_1496 = new Set(),
2591
+ JSCompiler_object_inline_fontPreloads_1497 = new Set(),
2592
+ JSCompiler_object_inline_highImagePreloads_1498 = new Set(),
2593
+ JSCompiler_object_inline_styles_1499 = new Map(),
2594
+ JSCompiler_object_inline_bootstrapScripts_1500 = new Set(),
2595
+ JSCompiler_object_inline_scripts_1501 = new Set(),
2596
+ JSCompiler_object_inline_bulkPreloads_1502 = new Set(),
2597
+ JSCompiler_object_inline_preloads_1503 = {
2556
2598
  images: new Map(),
2557
2599
  stylesheets: new Map(),
2558
2600
  scripts: new Map(),
@@ -2581,15 +2623,15 @@ function createRenderState(resumableState, generateStaticMarkup) {
2581
2623
  "string" === typeof scriptConfig || null == scriptConfig.crossOrigin
2582
2624
  ? void 0
2583
2625
  : "use-credentials" === scriptConfig.crossOrigin
2584
- ? "use-credentials"
2585
- : ""));
2626
+ ? "use-credentials"
2627
+ : ""));
2586
2628
  scriptConfig = resumableState;
2587
2629
  var href = src;
2588
2630
  scriptConfig.scriptResources[href] = null;
2589
2631
  scriptConfig.moduleScriptResources[href] = null;
2590
2632
  scriptConfig = [];
2591
2633
  pushLinkImpl(scriptConfig, props);
2592
- JSCompiler_object_inline_bootstrapScripts_1503.add(scriptConfig);
2634
+ JSCompiler_object_inline_bootstrapScripts_1500.add(scriptConfig);
2593
2635
  bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
2594
2636
  "string" === typeof integrity &&
2595
2637
  bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
@@ -2622,15 +2664,15 @@ function createRenderState(resumableState, generateStaticMarkup) {
2622
2664
  "string" === typeof props || null == props.crossOrigin
2623
2665
  ? void 0
2624
2666
  : "use-credentials" === props.crossOrigin
2625
- ? "use-credentials"
2626
- : "")),
2667
+ ? "use-credentials"
2668
+ : "")),
2627
2669
  (props = resumableState),
2628
2670
  (scriptConfig = i),
2629
2671
  (props.scriptResources[scriptConfig] = null),
2630
2672
  (props.moduleScriptResources[scriptConfig] = null),
2631
2673
  (props = []),
2632
2674
  pushLinkImpl(props, integrity),
2633
- JSCompiler_object_inline_bootstrapScripts_1503.add(props),
2675
+ JSCompiler_object_inline_bootstrapScripts_1500.add(props),
2634
2676
  bootstrapChunks.push(
2635
2677
  '<script type="module" src="',
2636
2678
  escapeTextForBrowser(i)
@@ -2645,7 +2687,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2645
2687
  bootstrapChunks.push('" async="">\x3c/script>');
2646
2688
  return {
2647
2689
  placeholderPrefix: bootstrapScriptContent,
2648
- segmentPrefix: JSCompiler_object_inline_segmentPrefix_1485,
2690
+ segmentPrefix: JSCompiler_object_inline_segmentPrefix_1482,
2649
2691
  boundaryPrefix: idPrefix,
2650
2692
  startInlineScript: "<script>",
2651
2693
  htmlChunks: null,
@@ -2665,14 +2707,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
2665
2707
  charsetChunks: [],
2666
2708
  viewportChunks: [],
2667
2709
  hoistableChunks: [],
2668
- preconnects: JSCompiler_object_inline_preconnects_1499,
2669
- fontPreloads: JSCompiler_object_inline_fontPreloads_1500,
2670
- highImagePreloads: JSCompiler_object_inline_highImagePreloads_1501,
2671
- styles: JSCompiler_object_inline_styles_1502,
2672
- bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1503,
2673
- scripts: JSCompiler_object_inline_scripts_1504,
2674
- bulkPreloads: JSCompiler_object_inline_bulkPreloads_1505,
2675
- preloads: JSCompiler_object_inline_preloads_1506,
2710
+ preconnects: JSCompiler_object_inline_preconnects_1496,
2711
+ fontPreloads: JSCompiler_object_inline_fontPreloads_1497,
2712
+ highImagePreloads: JSCompiler_object_inline_highImagePreloads_1498,
2713
+ styles: JSCompiler_object_inline_styles_1499,
2714
+ bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1500,
2715
+ scripts: JSCompiler_object_inline_scripts_1501,
2716
+ bulkPreloads: JSCompiler_object_inline_bulkPreloads_1502,
2717
+ preloads: JSCompiler_object_inline_preloads_1503,
2676
2718
  stylesToHoist: !1,
2677
2719
  generateStaticMarkup: generateStaticMarkup
2678
2720
  };
@@ -2687,7 +2729,12 @@ function pushTextInstance(target, text, renderState, textEmbedded) {
2687
2729
  (target = !0));
2688
2730
  return target;
2689
2731
  }
2690
- var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
2732
+ function pushSegmentFinale(target, renderState, lastPushedText, textEmbedded) {
2733
+ renderState.generateStaticMarkup ||
2734
+ (lastPushedText && textEmbedded && target.push("\x3c!-- --\x3e"));
2735
+ }
2736
+ var bind = Function.prototype.bind,
2737
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
2691
2738
  function getComponentNameFromType(type) {
2692
2739
  if (null == type) return null;
2693
2740
  if ("function" === typeof type)
@@ -2798,12 +2845,12 @@ function switchContext(newSnapshot) {
2798
2845
  (null === prev
2799
2846
  ? pushAllNext(newSnapshot)
2800
2847
  : null === newSnapshot
2801
- ? popAllPrevious(prev)
2802
- : prev.depth === newSnapshot.depth
2803
- ? popToNearestCommonAncestor(prev, newSnapshot)
2804
- : prev.depth > newSnapshot.depth
2805
- ? popPreviousToCommonLevel(prev, newSnapshot)
2806
- : popNextToCommonLevel(prev, newSnapshot),
2848
+ ? popAllPrevious(prev)
2849
+ : prev.depth === newSnapshot.depth
2850
+ ? popToNearestCommonAncestor(prev, newSnapshot)
2851
+ : prev.depth > newSnapshot.depth
2852
+ ? popPreviousToCommonLevel(prev, newSnapshot)
2853
+ : popNextToCommonLevel(prev, newSnapshot),
2807
2854
  (currentActiveSnapshot = newSnapshot));
2808
2855
  }
2809
2856
  var classComponentUpdater = {
@@ -2950,9 +2997,9 @@ function createWorkInProgressHook() {
2950
2997
  (firstWorkInProgressHook = workInProgressHook = createHook()))
2951
2998
  : ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
2952
2999
  : null === workInProgressHook.next
2953
- ? ((isReRender = !1),
2954
- (workInProgressHook = workInProgressHook.next = createHook()))
2955
- : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
3000
+ ? ((isReRender = !1),
3001
+ (workInProgressHook = workInProgressHook.next = createHook()))
3002
+ : ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
2956
3003
  return workInProgressHook;
2957
3004
  }
2958
3005
  function getThenableStateAfterSuspending() {
@@ -2999,8 +3046,8 @@ function useReducer(reducer, initialArg, init) {
2999
3046
  ? initialArg()
3000
3047
  : initialArg
3001
3048
  : void 0 !== init
3002
- ? init(initialArg)
3003
- : initialArg;
3049
+ ? init(initialArg)
3050
+ : initialArg;
3004
3051
  workInProgressHook.memoizedState = reducer;
3005
3052
  reducer = workInProgressHook.queue = { last: null, dispatch: null };
3006
3053
  reducer = reducer.dispatch = dispatchAction.bind(
@@ -3230,7 +3277,8 @@ var currentResumableState = null,
3230
3277
  throw Error("Not implemented.");
3231
3278
  }
3232
3279
  },
3233
- prefix;
3280
+ prefix,
3281
+ suffix;
3234
3282
  function describeBuiltInComponentFrame(name) {
3235
3283
  if (void 0 === prefix)
3236
3284
  try {
@@ -3238,8 +3286,14 @@ function describeBuiltInComponentFrame(name) {
3238
3286
  } catch (x) {
3239
3287
  var match = x.stack.trim().match(/\n( *(at )?)/);
3240
3288
  prefix = (match && match[1]) || "";
3289
+ suffix =
3290
+ -1 < x.stack.indexOf("\n at")
3291
+ ? " (<anonymous>)"
3292
+ : -1 < x.stack.indexOf("@")
3293
+ ? "@unknown:0:0"
3294
+ : "";
3241
3295
  }
3242
- return "\n" + prefix + name;
3296
+ return "\n" + prefix + name + suffix;
3243
3297
  }
3244
3298
  var reentry = !1;
3245
3299
  function describeNativeComponentFrame(fn, construct) {
@@ -3247,62 +3301,64 @@ function describeNativeComponentFrame(fn, construct) {
3247
3301
  reentry = !0;
3248
3302
  var previousPrepareStackTrace = Error.prepareStackTrace;
3249
3303
  Error.prepareStackTrace = void 0;
3250
- var RunInRootFrame = {
3251
- DetermineComponentFrameRoot: function () {
3252
- try {
3253
- if (construct) {
3254
- var Fake = function () {
3255
- throw Error();
3256
- };
3257
- Object.defineProperty(Fake.prototype, "props", {
3258
- set: function () {
3304
+ try {
3305
+ var RunInRootFrame = {
3306
+ DetermineComponentFrameRoot: function () {
3307
+ try {
3308
+ if (construct) {
3309
+ var Fake = function () {
3259
3310
  throw Error();
3311
+ };
3312
+ Object.defineProperty(Fake.prototype, "props", {
3313
+ set: function () {
3314
+ throw Error();
3315
+ }
3316
+ });
3317
+ if ("object" === typeof Reflect && Reflect.construct) {
3318
+ try {
3319
+ Reflect.construct(Fake, []);
3320
+ } catch (x) {
3321
+ var control = x;
3322
+ }
3323
+ Reflect.construct(fn, [], Fake);
3324
+ } else {
3325
+ try {
3326
+ Fake.call();
3327
+ } catch (x$24) {
3328
+ control = x$24;
3329
+ }
3330
+ fn.call(Fake.prototype);
3260
3331
  }
3261
- });
3262
- if ("object" === typeof Reflect && Reflect.construct) {
3263
- try {
3264
- Reflect.construct(Fake, []);
3265
- } catch (x) {
3266
- var control = x;
3267
- }
3268
- Reflect.construct(fn, [], Fake);
3269
3332
  } else {
3270
3333
  try {
3271
- Fake.call();
3272
- } catch (x$24) {
3273
- control = x$24;
3334
+ throw Error();
3335
+ } catch (x$25) {
3336
+ control = x$25;
3274
3337
  }
3275
- fn.call(Fake.prototype);
3276
- }
3277
- } else {
3278
- try {
3279
- throw Error();
3280
- } catch (x$25) {
3281
- control = x$25;
3338
+ (Fake = fn()) &&
3339
+ "function" === typeof Fake.catch &&
3340
+ Fake.catch(function () {});
3282
3341
  }
3283
- (Fake = fn()) &&
3284
- "function" === typeof Fake.catch &&
3285
- Fake.catch(function () {});
3342
+ } catch (sample) {
3343
+ if (sample && control && "string" === typeof sample.stack)
3344
+ return [sample.stack, control.stack];
3286
3345
  }
3287
- } catch (sample) {
3288
- if (sample && control && "string" === typeof sample.stack)
3289
- return [sample.stack, control.stack];
3346
+ return [null, null];
3290
3347
  }
3291
- return [null, null];
3292
- }
3293
- };
3294
- RunInRootFrame.DetermineComponentFrameRoot.displayName =
3295
- "DetermineComponentFrameRoot";
3296
- var namePropDescriptor = Object.getOwnPropertyDescriptor(
3297
- RunInRootFrame.DetermineComponentFrameRoot,
3298
- "name"
3299
- );
3300
- namePropDescriptor &&
3301
- namePropDescriptor.configurable &&
3302
- Object.defineProperty(RunInRootFrame.DetermineComponentFrameRoot, "name", {
3303
- value: "DetermineComponentFrameRoot"
3304
- });
3305
- try {
3348
+ };
3349
+ RunInRootFrame.DetermineComponentFrameRoot.displayName =
3350
+ "DetermineComponentFrameRoot";
3351
+ var namePropDescriptor = Object.getOwnPropertyDescriptor(
3352
+ RunInRootFrame.DetermineComponentFrameRoot,
3353
+ "name"
3354
+ );
3355
+ namePropDescriptor &&
3356
+ namePropDescriptor.configurable &&
3357
+ Object.defineProperty(
3358
+ RunInRootFrame.DetermineComponentFrameRoot,
3359
+ "name",
3360
+ { value: "DetermineComponentFrameRoot" }
3361
+ );
3306
3362
  var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
3307
3363
  sampleStack = _RunInRootFrame$Deter[0],
3308
3364
  controlStack = _RunInRootFrame$Deter[1];
@@ -3373,11 +3429,107 @@ function describeNativeComponentFrame(fn, construct) {
3373
3429
  ? describeBuiltInComponentFrame(previousPrepareStackTrace)
3374
3430
  : "";
3375
3431
  }
3432
+ function describeComponentStackByType(type) {
3433
+ if ("string" === typeof type) return describeBuiltInComponentFrame(type);
3434
+ if ("function" === typeof type)
3435
+ return type.prototype && type.prototype.isReactComponent
3436
+ ? ((type = describeNativeComponentFrame(type, !0)), type)
3437
+ : describeNativeComponentFrame(type, !1);
3438
+ if ("object" === typeof type && null !== type) {
3439
+ switch (type.$$typeof) {
3440
+ case REACT_FORWARD_REF_TYPE:
3441
+ return describeNativeComponentFrame(type.render, !1);
3442
+ case REACT_MEMO_TYPE:
3443
+ return describeNativeComponentFrame(type.type, !1);
3444
+ case REACT_LAZY_TYPE:
3445
+ var lazyComponent = type,
3446
+ payload = lazyComponent._payload;
3447
+ lazyComponent = lazyComponent._init;
3448
+ try {
3449
+ type = lazyComponent(payload);
3450
+ } catch (x) {
3451
+ return describeBuiltInComponentFrame("Lazy");
3452
+ }
3453
+ return describeComponentStackByType(type);
3454
+ }
3455
+ if ("string" === typeof type.name)
3456
+ return (
3457
+ (payload = type.env),
3458
+ describeBuiltInComponentFrame(
3459
+ type.name + (payload ? " [" + payload + "]" : "")
3460
+ )
3461
+ );
3462
+ }
3463
+ switch (type) {
3464
+ case REACT_SUSPENSE_LIST_TYPE:
3465
+ return describeBuiltInComponentFrame("SuspenseList");
3466
+ case REACT_SUSPENSE_TYPE:
3467
+ return describeBuiltInComponentFrame("Suspense");
3468
+ }
3469
+ return "";
3470
+ }
3376
3471
  function defaultErrorHandler(error) {
3377
- console.error(error);
3472
+ if (
3473
+ "object" === typeof error &&
3474
+ null !== error &&
3475
+ "string" === typeof error.environmentName
3476
+ ) {
3477
+ var JSCompiler_inline_result = error.environmentName;
3478
+ error = [error].slice(0);
3479
+ "string" === typeof error[0]
3480
+ ? error.splice(
3481
+ 0,
3482
+ 1,
3483
+ "[%s] " + error[0],
3484
+ " " + JSCompiler_inline_result + " "
3485
+ )
3486
+ : error.splice(0, 0, "[%s] ", " " + JSCompiler_inline_result + " ");
3487
+ error.unshift(console);
3488
+ JSCompiler_inline_result = bind.apply(console.error, error);
3489
+ JSCompiler_inline_result();
3490
+ } else console.error(error);
3378
3491
  return null;
3379
3492
  }
3380
3493
  function noop() {}
3494
+ function RequestInstance(
3495
+ resumableState,
3496
+ renderState,
3497
+ rootFormatContext,
3498
+ progressiveChunkSize,
3499
+ onError,
3500
+ onAllReady,
3501
+ onShellReady,
3502
+ onShellError,
3503
+ onFatalError,
3504
+ onPostpone,
3505
+ formState
3506
+ ) {
3507
+ var abortSet = new Set();
3508
+ this.destination = null;
3509
+ this.flushScheduled = !1;
3510
+ this.resumableState = resumableState;
3511
+ this.renderState = renderState;
3512
+ this.rootFormatContext = rootFormatContext;
3513
+ this.progressiveChunkSize =
3514
+ void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
3515
+ this.status = 10;
3516
+ this.fatalError = null;
3517
+ this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
3518
+ this.completedRootSegment = null;
3519
+ this.abortableTasks = abortSet;
3520
+ this.pingedTasks = [];
3521
+ this.clientRenderedBoundaries = [];
3522
+ this.completedBoundaries = [];
3523
+ this.partialBoundaries = [];
3524
+ this.trackedPostpones = null;
3525
+ this.onError = void 0 === onError ? defaultErrorHandler : onError;
3526
+ this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
3527
+ this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
3528
+ this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
3529
+ this.onShellError = void 0 === onShellError ? noop : onShellError;
3530
+ this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
3531
+ this.formState = void 0 === formState ? null : formState;
3532
+ }
3381
3533
  function createRequest(
3382
3534
  children,
3383
3535
  resumableState,
@@ -3392,36 +3544,19 @@ function createRequest(
3392
3544
  onPostpone,
3393
3545
  formState
3394
3546
  ) {
3395
- var pingedTasks = [],
3396
- abortSet = new Set();
3397
- resumableState = {
3398
- destination: null,
3399
- flushScheduled: !1,
3400
- resumableState: resumableState,
3401
- renderState: renderState,
3402
- rootFormatContext: rootFormatContext,
3403
- progressiveChunkSize:
3404
- void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize,
3405
- status: 0,
3406
- fatalError: null,
3407
- nextSegmentId: 0,
3408
- allPendingTasks: 0,
3409
- pendingRootTasks: 0,
3410
- completedRootSegment: null,
3411
- abortableTasks: abortSet,
3412
- pingedTasks: pingedTasks,
3413
- clientRenderedBoundaries: [],
3414
- completedBoundaries: [],
3415
- partialBoundaries: [],
3416
- trackedPostpones: null,
3417
- onError: void 0 === onError ? defaultErrorHandler : onError,
3418
- onPostpone: void 0 === onPostpone ? noop : onPostpone,
3419
- onAllReady: void 0 === onAllReady ? noop : onAllReady,
3420
- onShellReady: void 0 === onShellReady ? noop : onShellReady,
3421
- onShellError: void 0 === onShellError ? noop : onShellError,
3422
- onFatalError: void 0 === onFatalError ? noop : onFatalError,
3423
- formState: void 0 === formState ? null : formState
3424
- };
3547
+ resumableState = new RequestInstance(
3548
+ resumableState,
3549
+ renderState,
3550
+ rootFormatContext,
3551
+ progressiveChunkSize,
3552
+ onError,
3553
+ onAllReady,
3554
+ onShellReady,
3555
+ onShellError,
3556
+ onFatalError,
3557
+ onPostpone,
3558
+ formState
3559
+ );
3425
3560
  renderState = createPendingSegment(
3426
3561
  resumableState,
3427
3562
  0,
@@ -3439,16 +3574,16 @@ function createRequest(
3439
3574
  null,
3440
3575
  renderState,
3441
3576
  null,
3442
- abortSet,
3577
+ resumableState.abortableTasks,
3443
3578
  null,
3444
3579
  rootFormatContext,
3445
- emptyContextObject,
3446
3580
  null,
3447
3581
  emptyTreeContext,
3448
3582
  null,
3449
3583
  !1
3450
3584
  );
3451
- pingedTasks.push(children);
3585
+ pushComponentStack(children);
3586
+ resumableState.pingedTasks.push(children);
3452
3587
  return resumableState;
3453
3588
  }
3454
3589
  var currentRequest = null;
@@ -3485,7 +3620,6 @@ function createRenderTask(
3485
3620
  abortSet,
3486
3621
  keyPath,
3487
3622
  formatContext,
3488
- legacyContext,
3489
3623
  context,
3490
3624
  treeContext,
3491
3625
  componentStack,
@@ -3508,7 +3642,6 @@ function createRenderTask(
3508
3642
  abortSet: abortSet,
3509
3643
  keyPath: keyPath,
3510
3644
  formatContext: formatContext,
3511
- legacyContext: legacyContext,
3512
3645
  context: context,
3513
3646
  treeContext: treeContext,
3514
3647
  componentStack: componentStack,
@@ -3529,7 +3662,6 @@ function createReplayTask(
3529
3662
  abortSet,
3530
3663
  keyPath,
3531
3664
  formatContext,
3532
- legacyContext,
3533
3665
  context,
3534
3666
  treeContext,
3535
3667
  componentStack,
@@ -3553,7 +3685,6 @@ function createReplayTask(
3553
3685
  abortSet: abortSet,
3554
3686
  keyPath: keyPath,
3555
3687
  formatContext: formatContext,
3556
- legacyContext: legacyContext,
3557
3688
  context: context,
3558
3689
  treeContext: treeContext,
3559
3690
  componentStack: componentStack,
@@ -3584,47 +3715,54 @@ function createPendingSegment(
3584
3715
  textEmbedded: textEmbedded
3585
3716
  };
3586
3717
  }
3587
- function createBuiltInComponentStack(task, type) {
3588
- return { tag: 0, parent: task.componentStack, type: type };
3718
+ function pushComponentStack(task) {
3719
+ var node = task.node;
3720
+ if ("object" === typeof node && null !== node)
3721
+ switch (node.$$typeof) {
3722
+ case REACT_ELEMENT_TYPE:
3723
+ task.componentStack = { parent: task.componentStack, type: node.type };
3724
+ }
3589
3725
  }
3590
- function getThrownInfo(request, node) {
3591
- if (node && null !== request.trackedPostpones) {
3592
- try {
3593
- request = "";
3594
- do {
3595
- switch (node.tag) {
3596
- case 0:
3597
- request += describeBuiltInComponentFrame(node.type);
3598
- break;
3599
- case 1:
3600
- request += describeNativeComponentFrame(node.type, !1);
3601
- break;
3602
- case 2:
3603
- request += describeNativeComponentFrame(node.type, !0);
3726
+ function getThrownInfo(node$jscomp$0) {
3727
+ var errorInfo = {};
3728
+ node$jscomp$0 &&
3729
+ Object.defineProperty(errorInfo, "componentStack", {
3730
+ configurable: !0,
3731
+ enumerable: !0,
3732
+ get: function () {
3733
+ try {
3734
+ var info = "",
3735
+ node = node$jscomp$0;
3736
+ do
3737
+ (info += describeComponentStackByType(node.type)),
3738
+ (node = node.parent);
3739
+ while (node);
3740
+ var JSCompiler_inline_result = info;
3741
+ } catch (x) {
3742
+ JSCompiler_inline_result =
3743
+ "\nError generating stack: " + x.message + "\n" + x.stack;
3604
3744
  }
3605
- node = node.parent;
3606
- } while (node);
3607
- var JSCompiler_temp = request;
3608
- } catch (x) {
3609
- JSCompiler_temp =
3610
- "\nError generating stack: " + x.message + "\n" + x.stack;
3611
- }
3612
- JSCompiler_temp = { componentStack: JSCompiler_temp };
3613
- } else JSCompiler_temp = {};
3614
- return JSCompiler_temp;
3745
+ Object.defineProperty(errorInfo, "componentStack", {
3746
+ value: JSCompiler_inline_result
3747
+ });
3748
+ return JSCompiler_inline_result;
3749
+ }
3750
+ });
3751
+ return errorInfo;
3615
3752
  }
3616
3753
  function logRecoverableError(request, error, errorInfo) {
3617
- request = request.onError(error, errorInfo);
3618
- if (null == request || "string" === typeof request) return request;
3754
+ request = request.onError;
3755
+ error = request(error, errorInfo);
3756
+ if (null == error || "string" === typeof error) return error;
3619
3757
  }
3620
3758
  function fatalError(request, error) {
3621
- var onShellError = request.onShellError;
3622
- onShellError(error);
3623
- onShellError = request.onFatalError;
3759
+ var onShellError = request.onShellError,
3760
+ onFatalError = request.onFatalError;
3624
3761
  onShellError(error);
3762
+ onFatalError(error);
3625
3763
  null !== request.destination
3626
- ? ((request.status = 2), request.destination.destroy(error))
3627
- : ((request.status = 1), (request.fatalError = error));
3764
+ ? ((request.status = 14), request.destination.destroy(error))
3765
+ : ((request.status = 13), (request.fatalError = error));
3628
3766
  }
3629
3767
  function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
3630
3768
  var prevThenableState = task.thenableState;
@@ -3677,171 +3815,148 @@ function finishFunctionComponent(
3677
3815
  renderNode(request, task, children, -1),
3678
3816
  (task.treeContext = keyPath))
3679
3817
  : didEmitActionStateMarkers
3680
- ? renderNode(request, task, children, -1)
3681
- : renderNodeDestructive(request, task, children, -1);
3818
+ ? renderNode(request, task, children, -1)
3819
+ : renderNodeDestructive(request, task, children, -1);
3682
3820
  task.keyPath = actionStateCount;
3683
3821
  }
3684
3822
  function renderElement(request, task, keyPath, type, props, ref) {
3685
3823
  if ("function" === typeof type)
3686
3824
  if (type.prototype && type.prototype.isReactComponent) {
3687
- var JSCompiler_inline_result = props;
3825
+ var newProps = props;
3688
3826
  if ("ref" in props) {
3689
- JSCompiler_inline_result = {};
3827
+ newProps = {};
3690
3828
  for (var propName in props)
3691
- "ref" !== propName &&
3692
- (JSCompiler_inline_result[propName] = props[propName]);
3829
+ "ref" !== propName && (newProps[propName] = props[propName]);
3693
3830
  }
3694
3831
  var defaultProps = type.defaultProps;
3695
3832
  if (defaultProps) {
3696
- JSCompiler_inline_result === props &&
3697
- (JSCompiler_inline_result = assign(
3698
- {},
3699
- JSCompiler_inline_result,
3700
- props
3701
- ));
3702
- for (var propName$31 in defaultProps)
3703
- void 0 === JSCompiler_inline_result[propName$31] &&
3704
- (JSCompiler_inline_result[propName$31] = defaultProps[propName$31]);
3833
+ newProps === props && (newProps = assign({}, newProps, props));
3834
+ for (var propName$33 in defaultProps)
3835
+ void 0 === newProps[propName$33] &&
3836
+ (newProps[propName$33] = defaultProps[propName$33]);
3705
3837
  }
3706
- props = task.componentStack;
3707
- task.componentStack = { tag: 2, parent: task.componentStack, type: type };
3708
- defaultProps = emptyContextObject;
3838
+ props = newProps;
3839
+ newProps = emptyContextObject;
3840
+ defaultProps = type.contextType;
3841
+ "object" === typeof defaultProps &&
3842
+ null !== defaultProps &&
3843
+ (newProps = defaultProps._currentValue2);
3844
+ newProps = new type(props, newProps);
3845
+ var initialState = void 0 !== newProps.state ? newProps.state : null;
3846
+ newProps.updater = classComponentUpdater;
3847
+ newProps.props = props;
3848
+ newProps.state = initialState;
3849
+ defaultProps = { queue: [], replace: !1 };
3850
+ newProps._reactInternals = defaultProps;
3709
3851
  ref = type.contextType;
3710
- "object" === typeof ref &&
3711
- null !== ref &&
3712
- (defaultProps = ref._currentValue2);
3713
- defaultProps = new type(JSCompiler_inline_result, defaultProps);
3714
- propName$31 = void 0 !== defaultProps.state ? defaultProps.state : null;
3715
- defaultProps.updater = classComponentUpdater;
3716
- defaultProps.props = JSCompiler_inline_result;
3717
- defaultProps.state = propName$31;
3718
- ref = { queue: [], replace: !1 };
3719
- defaultProps._reactInternals = ref;
3720
- var contextType = type.contextType;
3721
- defaultProps.context =
3722
- "object" === typeof contextType && null !== contextType
3723
- ? contextType._currentValue2
3852
+ newProps.context =
3853
+ "object" === typeof ref && null !== ref
3854
+ ? ref._currentValue2
3724
3855
  : emptyContextObject;
3725
- contextType = type.getDerivedStateFromProps;
3726
- "function" === typeof contextType &&
3727
- ((contextType = contextType(JSCompiler_inline_result, propName$31)),
3728
- (propName$31 =
3729
- null === contextType || void 0 === contextType
3730
- ? propName$31
3731
- : assign({}, propName$31, contextType)),
3732
- (defaultProps.state = propName$31));
3856
+ ref = type.getDerivedStateFromProps;
3857
+ "function" === typeof ref &&
3858
+ ((ref = ref(props, initialState)),
3859
+ (initialState =
3860
+ null === ref || void 0 === ref
3861
+ ? initialState
3862
+ : assign({}, initialState, ref)),
3863
+ (newProps.state = initialState));
3733
3864
  if (
3734
3865
  "function" !== typeof type.getDerivedStateFromProps &&
3735
- "function" !== typeof defaultProps.getSnapshotBeforeUpdate &&
3736
- ("function" === typeof defaultProps.UNSAFE_componentWillMount ||
3737
- "function" === typeof defaultProps.componentWillMount)
3866
+ "function" !== typeof newProps.getSnapshotBeforeUpdate &&
3867
+ ("function" === typeof newProps.UNSAFE_componentWillMount ||
3868
+ "function" === typeof newProps.componentWillMount)
3738
3869
  )
3739
3870
  if (
3740
- ((type = defaultProps.state),
3741
- "function" === typeof defaultProps.componentWillMount &&
3742
- defaultProps.componentWillMount(),
3743
- "function" === typeof defaultProps.UNSAFE_componentWillMount &&
3744
- defaultProps.UNSAFE_componentWillMount(),
3745
- type !== defaultProps.state &&
3871
+ ((type = newProps.state),
3872
+ "function" === typeof newProps.componentWillMount &&
3873
+ newProps.componentWillMount(),
3874
+ "function" === typeof newProps.UNSAFE_componentWillMount &&
3875
+ newProps.UNSAFE_componentWillMount(),
3876
+ type !== newProps.state &&
3746
3877
  classComponentUpdater.enqueueReplaceState(
3747
- defaultProps,
3748
- defaultProps.state,
3878
+ newProps,
3879
+ newProps.state,
3749
3880
  null
3750
3881
  ),
3751
- null !== ref.queue && 0 < ref.queue.length)
3882
+ null !== defaultProps.queue && 0 < defaultProps.queue.length)
3752
3883
  )
3753
3884
  if (
3754
- ((type = ref.queue),
3755
- (contextType = ref.replace),
3756
- (ref.queue = null),
3757
- (ref.replace = !1),
3758
- contextType && 1 === type.length)
3885
+ ((type = defaultProps.queue),
3886
+ (ref = defaultProps.replace),
3887
+ (defaultProps.queue = null),
3888
+ (defaultProps.replace = !1),
3889
+ ref && 1 === type.length)
3759
3890
  )
3760
- defaultProps.state = type[0];
3891
+ newProps.state = type[0];
3761
3892
  else {
3762
- ref = contextType ? type[0] : defaultProps.state;
3763
- propName$31 = !0;
3764
- for (
3765
- contextType = contextType ? 1 : 0;
3766
- contextType < type.length;
3767
- contextType++
3768
- )
3769
- (propName = type[contextType]),
3770
- (propName =
3771
- "function" === typeof propName
3772
- ? propName.call(
3773
- defaultProps,
3774
- ref,
3775
- JSCompiler_inline_result,
3776
- void 0
3777
- )
3778
- : propName),
3779
- null != propName &&
3780
- (propName$31
3781
- ? ((propName$31 = !1), (ref = assign({}, ref, propName)))
3782
- : assign(ref, propName));
3783
- defaultProps.state = ref;
3893
+ defaultProps = ref ? type[0] : newProps.state;
3894
+ initialState = !0;
3895
+ for (ref = ref ? 1 : 0; ref < type.length; ref++)
3896
+ (propName$33 = type[ref]),
3897
+ (propName$33 =
3898
+ "function" === typeof propName$33
3899
+ ? propName$33.call(newProps, defaultProps, props, void 0)
3900
+ : propName$33),
3901
+ null != propName$33 &&
3902
+ (initialState
3903
+ ? ((initialState = !1),
3904
+ (defaultProps = assign({}, defaultProps, propName$33)))
3905
+ : assign(defaultProps, propName$33));
3906
+ newProps.state = defaultProps;
3784
3907
  }
3785
- else ref.queue = null;
3786
- type = defaultProps.render();
3787
- JSCompiler_inline_result = task.keyPath;
3908
+ else defaultProps.queue = null;
3909
+ type = newProps.render();
3910
+ if (12 === request.status) throw null;
3911
+ props = task.keyPath;
3788
3912
  task.keyPath = keyPath;
3789
3913
  renderNodeDestructive(request, task, type, -1);
3790
- task.keyPath = JSCompiler_inline_result;
3791
- task.componentStack = props;
3792
- } else
3793
- (JSCompiler_inline_result = task.componentStack),
3794
- (task.componentStack = {
3795
- tag: 1,
3796
- parent: task.componentStack,
3797
- type: type
3798
- }),
3799
- (type = renderWithHooks(request, task, keyPath, type, props, void 0)),
3800
- finishFunctionComponent(
3801
- request,
3802
- task,
3803
- keyPath,
3804
- type,
3805
- 0 !== localIdCounter,
3806
- actionStateCounter,
3807
- actionStateMatchingIndex
3808
- ),
3809
- (task.componentStack = JSCompiler_inline_result);
3810
- else if ("string" === typeof type) {
3811
- JSCompiler_inline_result = task.componentStack;
3812
- task.componentStack = createBuiltInComponentStack(task, type);
3813
- defaultProps = task.blockedSegment;
3814
- if (null === defaultProps)
3815
- (defaultProps = props.children),
3816
- (ref = task.formatContext),
3817
- (propName$31 = task.keyPath),
3818
- (task.formatContext = getChildFormatContext(ref, type, props)),
3914
+ task.keyPath = props;
3915
+ } else {
3916
+ type = renderWithHooks(request, task, keyPath, type, props, void 0);
3917
+ if (12 === request.status) throw null;
3918
+ finishFunctionComponent(
3919
+ request,
3920
+ task,
3921
+ keyPath,
3922
+ type,
3923
+ 0 !== localIdCounter,
3924
+ actionStateCounter,
3925
+ actionStateMatchingIndex
3926
+ );
3927
+ }
3928
+ else if ("string" === typeof type)
3929
+ if (((newProps = task.blockedSegment), null === newProps))
3930
+ (newProps = props.children),
3931
+ (defaultProps = task.formatContext),
3932
+ (initialState = task.keyPath),
3933
+ (task.formatContext = getChildFormatContext(defaultProps, type, props)),
3819
3934
  (task.keyPath = keyPath),
3820
- renderNode(request, task, defaultProps, -1),
3821
- (task.formatContext = ref),
3822
- (task.keyPath = propName$31);
3935
+ renderNode(request, task, newProps, -1),
3936
+ (task.formatContext = defaultProps),
3937
+ (task.keyPath = initialState);
3823
3938
  else {
3824
- propName$31 = pushStartInstance(
3825
- defaultProps.chunks,
3939
+ initialState = pushStartInstance(
3940
+ newProps.chunks,
3826
3941
  type,
3827
3942
  props,
3828
3943
  request.resumableState,
3829
3944
  request.renderState,
3830
3945
  task.hoistableState,
3831
3946
  task.formatContext,
3832
- defaultProps.lastPushedText,
3947
+ newProps.lastPushedText,
3833
3948
  task.isFallback
3834
3949
  );
3835
- defaultProps.lastPushedText = !1;
3836
- ref = task.formatContext;
3837
- contextType = task.keyPath;
3838
- task.formatContext = getChildFormatContext(ref, type, props);
3950
+ newProps.lastPushedText = !1;
3951
+ defaultProps = task.formatContext;
3952
+ ref = task.keyPath;
3953
+ task.formatContext = getChildFormatContext(defaultProps, type, props);
3839
3954
  task.keyPath = keyPath;
3840
- renderNode(request, task, propName$31, -1);
3841
- task.formatContext = ref;
3842
- task.keyPath = contextType;
3955
+ renderNode(request, task, initialState, -1);
3956
+ task.formatContext = defaultProps;
3957
+ task.keyPath = ref;
3843
3958
  a: {
3844
- keyPath = defaultProps.chunks;
3959
+ task = newProps.chunks;
3845
3960
  request = request.resumableState;
3846
3961
  switch (type) {
3847
3962
  case "title":
@@ -3864,23 +3979,22 @@ function renderElement(request, task, keyPath, type, props, ref) {
3864
3979
  case "wbr":
3865
3980
  break a;
3866
3981
  case "body":
3867
- if (1 >= ref.insertionMode) {
3982
+ if (1 >= defaultProps.insertionMode) {
3868
3983
  request.hasBody = !0;
3869
3984
  break a;
3870
3985
  }
3871
3986
  break;
3872
3987
  case "html":
3873
- if (0 === ref.insertionMode) {
3988
+ if (0 === defaultProps.insertionMode) {
3874
3989
  request.hasHtml = !0;
3875
3990
  break a;
3876
3991
  }
3877
3992
  }
3878
- keyPath.push(endChunkForTag(type));
3993
+ task.push(endChunkForTag(type));
3879
3994
  }
3880
- defaultProps.lastPushedText = !1;
3995
+ newProps.lastPushedText = !1;
3881
3996
  }
3882
- task.componentStack = JSCompiler_inline_result;
3883
- } else {
3997
+ else {
3884
3998
  switch (type) {
3885
3999
  case REACT_LEGACY_HIDDEN_TYPE:
3886
4000
  case REACT_DEBUG_TRACING_MODE_TYPE:
@@ -3900,13 +4014,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
3900
4014
  (task.keyPath = type));
3901
4015
  return;
3902
4016
  case REACT_SUSPENSE_LIST_TYPE:
3903
- type = task.componentStack;
3904
- task.componentStack = createBuiltInComponentStack(task, "SuspenseList");
3905
- JSCompiler_inline_result = task.keyPath;
4017
+ type = task.keyPath;
3906
4018
  task.keyPath = keyPath;
3907
4019
  renderNodeDestructive(request, task, props.children, -1);
3908
- task.keyPath = JSCompiler_inline_result;
3909
- task.componentStack = type;
4020
+ task.keyPath = type;
3910
4021
  return;
3911
4022
  case REACT_SCOPE_TYPE:
3912
4023
  throw Error("ReactDOMServer does not yet support scope components.");
@@ -3921,31 +4032,26 @@ function renderElement(request, task, keyPath, type, props, ref) {
3921
4032
  task.keyPath = type;
3922
4033
  }
3923
4034
  } else {
3924
- var previousComponentStack = task.componentStack;
3925
- type = task.componentStack = createBuiltInComponentStack(
3926
- task,
3927
- "Suspense"
3928
- );
3929
- var prevKeyPath = task.keyPath;
3930
- ref = task.blockedBoundary;
3931
- var parentHoistableState = task.hoistableState,
3932
- parentSegment = task.blockedSegment;
3933
- propName$31 = props.fallback;
3934
- var content = props.children;
3935
- props = new Set();
3936
- contextType = createSuspenseBoundary(request, props);
4035
+ type = task.keyPath;
4036
+ var parentBoundary = task.blockedBoundary,
4037
+ parentHoistableState = task.hoistableState;
4038
+ ref = task.blockedSegment;
4039
+ propName$33 = props.fallback;
4040
+ props = props.children;
4041
+ var fallbackAbortSet = new Set();
4042
+ propName = createSuspenseBoundary(request, fallbackAbortSet);
3937
4043
  null !== request.trackedPostpones &&
3938
- (contextType.trackedContentKeyPath = keyPath);
3939
- propName = createPendingSegment(
4044
+ (propName.trackedContentKeyPath = keyPath);
4045
+ var boundarySegment = createPendingSegment(
3940
4046
  request,
3941
- parentSegment.chunks.length,
3942
- contextType,
4047
+ ref.chunks.length,
4048
+ propName,
3943
4049
  task.formatContext,
3944
4050
  !1,
3945
4051
  !1
3946
4052
  );
3947
- parentSegment.children.push(propName);
3948
- parentSegment.lastPushedText = !1;
4053
+ ref.children.push(boundarySegment);
4054
+ ref.lastPushedText = !1;
3949
4055
  var contentRootSegment = createPendingSegment(
3950
4056
  request,
3951
4057
  0,
@@ -3955,108 +4061,128 @@ function renderElement(request, task, keyPath, type, props, ref) {
3955
4061
  !1
3956
4062
  );
3957
4063
  contentRootSegment.parentFlushed = !0;
3958
- task.blockedBoundary = contextType;
3959
- task.hoistableState = contextType.contentState;
3960
- task.blockedSegment = contentRootSegment;
3961
- task.keyPath = keyPath;
3962
- try {
3963
- if (
3964
- (renderNode(request, task, content, -1),
3965
- request.renderState.generateStaticMarkup ||
3966
- (contentRootSegment.lastPushedText &&
3967
- contentRootSegment.textEmbedded &&
3968
- contentRootSegment.chunks.push("\x3c!-- --\x3e")),
3969
- (contentRootSegment.status = 1),
3970
- queueCompletedSegment(contextType, contentRootSegment),
3971
- 0 === contextType.pendingTasks && 0 === contextType.status)
3972
- ) {
3973
- contextType.status = 1;
3974
- task.componentStack = previousComponentStack;
3975
- break a;
4064
+ if (null !== request.trackedPostpones) {
4065
+ newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
4066
+ defaultProps = [newProps[1], newProps[2], [], null];
4067
+ request.trackedPostpones.workingMap.set(newProps, defaultProps);
4068
+ propName.trackedFallbackNode = defaultProps;
4069
+ task.blockedSegment = boundarySegment;
4070
+ task.keyPath = newProps;
4071
+ boundarySegment.status = 6;
4072
+ try {
4073
+ renderNode(request, task, propName$33, -1),
4074
+ pushSegmentFinale(
4075
+ boundarySegment.chunks,
4076
+ request.renderState,
4077
+ boundarySegment.lastPushedText,
4078
+ boundarySegment.textEmbedded
4079
+ ),
4080
+ (boundarySegment.status = 1);
4081
+ } catch (thrownValue) {
4082
+ throw (
4083
+ ((boundarySegment.status = 12 === request.status ? 3 : 4),
4084
+ thrownValue)
4085
+ );
4086
+ } finally {
4087
+ (task.blockedSegment = ref), (task.keyPath = type);
3976
4088
  }
3977
- } catch (error) {
3978
- (contentRootSegment.status = 4),
3979
- (contextType.status = 4),
3980
- (JSCompiler_inline_result = getThrownInfo(
3981
- request,
3982
- task.componentStack
3983
- )),
3984
- (defaultProps = logRecoverableError(
3985
- request,
3986
- error,
3987
- JSCompiler_inline_result
3988
- )),
3989
- (contextType.errorDigest = defaultProps),
3990
- untrackBoundary(request, contextType);
3991
- } finally {
3992
- (task.blockedBoundary = ref),
3993
- (task.hoistableState = parentHoistableState),
3994
- (task.blockedSegment = parentSegment),
3995
- (task.keyPath = prevKeyPath),
3996
- (task.componentStack = previousComponentStack);
4089
+ task = createRenderTask(
4090
+ request,
4091
+ null,
4092
+ props,
4093
+ -1,
4094
+ propName,
4095
+ contentRootSegment,
4096
+ propName.contentState,
4097
+ task.abortSet,
4098
+ keyPath,
4099
+ task.formatContext,
4100
+ task.context,
4101
+ task.treeContext,
4102
+ task.componentStack,
4103
+ task.isFallback
4104
+ );
4105
+ pushComponentStack(task);
4106
+ request.pingedTasks.push(task);
4107
+ } else {
4108
+ task.blockedBoundary = propName;
4109
+ task.hoistableState = propName.contentState;
4110
+ task.blockedSegment = contentRootSegment;
4111
+ task.keyPath = keyPath;
4112
+ contentRootSegment.status = 6;
4113
+ try {
4114
+ if (
4115
+ (renderNode(request, task, props, -1),
4116
+ pushSegmentFinale(
4117
+ contentRootSegment.chunks,
4118
+ request.renderState,
4119
+ contentRootSegment.lastPushedText,
4120
+ contentRootSegment.textEmbedded
4121
+ ),
4122
+ (contentRootSegment.status = 1),
4123
+ queueCompletedSegment(propName, contentRootSegment),
4124
+ 0 === propName.pendingTasks && 0 === propName.status)
4125
+ ) {
4126
+ propName.status = 1;
4127
+ break a;
4128
+ }
4129
+ } catch (thrownValue$28) {
4130
+ (propName.status = 4),
4131
+ 12 === request.status
4132
+ ? ((contentRootSegment.status = 3),
4133
+ (newProps = request.fatalError))
4134
+ : ((contentRootSegment.status = 4),
4135
+ (newProps = thrownValue$28)),
4136
+ (defaultProps = getThrownInfo(task.componentStack)),
4137
+ (initialState = logRecoverableError(
4138
+ request,
4139
+ newProps,
4140
+ defaultProps
4141
+ )),
4142
+ (propName.errorDigest = initialState),
4143
+ untrackBoundary(request, propName);
4144
+ } finally {
4145
+ (task.blockedBoundary = parentBoundary),
4146
+ (task.hoistableState = parentHoistableState),
4147
+ (task.blockedSegment = ref),
4148
+ (task.keyPath = type);
4149
+ }
4150
+ task = createRenderTask(
4151
+ request,
4152
+ null,
4153
+ propName$33,
4154
+ -1,
4155
+ parentBoundary,
4156
+ boundarySegment,
4157
+ propName.fallbackState,
4158
+ fallbackAbortSet,
4159
+ [keyPath[0], "Suspense Fallback", keyPath[2]],
4160
+ task.formatContext,
4161
+ task.context,
4162
+ task.treeContext,
4163
+ task.componentStack,
4164
+ !0
4165
+ );
4166
+ pushComponentStack(task);
4167
+ request.pingedTasks.push(task);
3997
4168
  }
3998
- JSCompiler_inline_result = [
3999
- keyPath[0],
4000
- "Suspense Fallback",
4001
- keyPath[2]
4002
- ];
4003
- defaultProps = request.trackedPostpones;
4004
- null !== defaultProps &&
4005
- ((previousComponentStack = [
4006
- JSCompiler_inline_result[1],
4007
- JSCompiler_inline_result[2],
4008
- [],
4009
- null
4010
- ]),
4011
- defaultProps.workingMap.set(
4012
- JSCompiler_inline_result,
4013
- previousComponentStack
4014
- ),
4015
- 5 === contextType.status
4016
- ? (defaultProps.workingMap.get(keyPath)[4] =
4017
- previousComponentStack)
4018
- : (contextType.trackedFallbackNode = previousComponentStack));
4019
- task = createRenderTask(
4020
- request,
4021
- null,
4022
- propName$31,
4023
- -1,
4024
- ref,
4025
- propName,
4026
- contextType.fallbackState,
4027
- props,
4028
- JSCompiler_inline_result,
4029
- task.formatContext,
4030
- task.legacyContext,
4031
- task.context,
4032
- task.treeContext,
4033
- type,
4034
- !0
4035
- );
4036
- request.pingedTasks.push(task);
4037
4169
  }
4038
4170
  return;
4039
4171
  }
4040
4172
  if ("object" === typeof type && null !== type)
4041
4173
  switch (type.$$typeof) {
4042
4174
  case REACT_FORWARD_REF_TYPE:
4043
- JSCompiler_inline_result = task.componentStack;
4044
- task.componentStack = {
4045
- tag: 1,
4046
- parent: task.componentStack,
4047
- type: type.render
4048
- };
4049
4175
  if ("ref" in props)
4050
- for (contextType in ((defaultProps = {}), props))
4051
- "ref" !== contextType &&
4052
- (defaultProps[contextType] = props[contextType]);
4053
- else defaultProps = props;
4176
+ for (boundarySegment in ((newProps = {}), props))
4177
+ "ref" !== boundarySegment &&
4178
+ (newProps[boundarySegment] = props[boundarySegment]);
4179
+ else newProps = props;
4054
4180
  type = renderWithHooks(
4055
4181
  request,
4056
4182
  task,
4057
4183
  keyPath,
4058
4184
  type.render,
4059
- defaultProps,
4185
+ newProps,
4060
4186
  ref
4061
4187
  );
4062
4188
  finishFunctionComponent(
@@ -4068,7 +4194,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
4068
4194
  actionStateCounter,
4069
4195
  actionStateMatchingIndex
4070
4196
  );
4071
- task.componentStack = JSCompiler_inline_result;
4072
4197
  return;
4073
4198
  case REACT_MEMO_TYPE:
4074
4199
  renderElement(request, task, keyPath, type.type, props, ref);
@@ -4076,16 +4201,16 @@ function renderElement(request, task, keyPath, type, props, ref) {
4076
4201
  case REACT_PROVIDER_TYPE:
4077
4202
  case REACT_CONTEXT_TYPE:
4078
4203
  defaultProps = props.children;
4079
- JSCompiler_inline_result = task.keyPath;
4204
+ newProps = task.keyPath;
4080
4205
  props = props.value;
4081
- ref = type._currentValue2;
4206
+ initialState = type._currentValue2;
4082
4207
  type._currentValue2 = props;
4083
- propName$31 = currentActiveSnapshot;
4208
+ ref = currentActiveSnapshot;
4084
4209
  currentActiveSnapshot = type = {
4085
- parent: propName$31,
4086
- depth: null === propName$31 ? 0 : propName$31.depth + 1,
4210
+ parent: ref,
4211
+ depth: null === ref ? 0 : ref.depth + 1,
4087
4212
  context: type,
4088
- parentValue: ref,
4213
+ parentValue: initialState,
4089
4214
  value: props
4090
4215
  };
4091
4216
  task.context = type;
@@ -4099,7 +4224,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
4099
4224
  request.context._currentValue2 = request.parentValue;
4100
4225
  request = currentActiveSnapshot = request.parent;
4101
4226
  task.context = request;
4102
- task.keyPath = JSCompiler_inline_result;
4227
+ task.keyPath = newProps;
4103
4228
  return;
4104
4229
  case REACT_CONSUMER_TYPE:
4105
4230
  props = props.children;
@@ -4110,12 +4235,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
4110
4235
  task.keyPath = props;
4111
4236
  return;
4112
4237
  case REACT_LAZY_TYPE:
4113
- JSCompiler_inline_result = task.componentStack;
4114
- task.componentStack = createBuiltInComponentStack(task, "Lazy");
4115
- defaultProps = type._init;
4116
- type = defaultProps(type._payload);
4117
- renderElement(request, task, keyPath, type, props, void 0);
4118
- task.componentStack = JSCompiler_inline_result;
4238
+ newProps = type._init;
4239
+ type = newProps(type._payload);
4240
+ if (12 === request.status) throw null;
4241
+ renderElement(request, task, keyPath, type, props, ref);
4119
4242
  return;
4120
4243
  }
4121
4244
  throw Error(
@@ -4151,23 +4274,29 @@ function resumeNode(request, task, segmentId, node, childIndex) {
4151
4274
  (task.replay = prevReplay), (task.blockedSegment = null);
4152
4275
  }
4153
4276
  }
4154
- function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4155
- if (null !== task.replay && "number" === typeof task.replay.slots)
4156
- resumeNode(request, task, task.replay.slots, node$jscomp$0, childIndex);
4157
- else if (
4158
- ((task.node = node$jscomp$0),
4159
- (task.childIndex = childIndex),
4160
- null !== node$jscomp$0)
4161
- ) {
4162
- if ("object" === typeof node$jscomp$0) {
4163
- switch (node$jscomp$0.$$typeof) {
4277
+ function renderNodeDestructive(request, task, node, childIndex) {
4278
+ null !== task.replay && "number" === typeof task.replay.slots
4279
+ ? resumeNode(request, task, task.replay.slots, node, childIndex)
4280
+ : ((task.node = node),
4281
+ (task.childIndex = childIndex),
4282
+ (node = task.componentStack),
4283
+ pushComponentStack(task),
4284
+ retryNode(request, task),
4285
+ (task.componentStack = node));
4286
+ }
4287
+ function retryNode(request, task) {
4288
+ var node = task.node,
4289
+ childIndex = task.childIndex;
4290
+ if (null !== node) {
4291
+ if ("object" === typeof node) {
4292
+ switch (node.$$typeof) {
4164
4293
  case REACT_ELEMENT_TYPE:
4165
- var type = node$jscomp$0.type,
4166
- key = node$jscomp$0.key,
4167
- props = node$jscomp$0.props;
4168
- node$jscomp$0 = props.ref;
4169
- var ref = void 0 !== node$jscomp$0 ? node$jscomp$0 : null;
4170
- var name = getComponentNameFromType(type),
4294
+ var type = node.type,
4295
+ key = node.key,
4296
+ props = node.props;
4297
+ node = props.ref;
4298
+ var ref = void 0 !== node ? node : null,
4299
+ name = getComponentNameFromType(type),
4171
4300
  keyOrIndex =
4172
4301
  null == key ? (-1 === childIndex ? 0 : childIndex) : key;
4173
4302
  key = [task.keyPath, name, keyOrIndex];
@@ -4175,24 +4304,20 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4175
4304
  a: {
4176
4305
  var replay = task.replay;
4177
4306
  childIndex = replay.nodes;
4178
- for (
4179
- node$jscomp$0 = 0;
4180
- node$jscomp$0 < childIndex.length;
4181
- node$jscomp$0++
4182
- ) {
4183
- var node = childIndex[node$jscomp$0];
4184
- if (keyOrIndex === node[1]) {
4185
- if (4 === node.length) {
4186
- if (null !== name && name !== node[0])
4307
+ for (node = 0; node < childIndex.length; node++) {
4308
+ var node$jscomp$0 = childIndex[node];
4309
+ if (keyOrIndex === node$jscomp$0[1]) {
4310
+ if (4 === node$jscomp$0.length) {
4311
+ if (null !== name && name !== node$jscomp$0[0])
4187
4312
  throw Error(
4188
4313
  "Expected the resume to render <" +
4189
- node[0] +
4314
+ node$jscomp$0[0] +
4190
4315
  "> in this slot but instead it rendered <" +
4191
4316
  name +
4192
4317
  ">. The tree doesn't match so React will fallback to client rendering."
4193
4318
  );
4194
- var childNodes = node[2];
4195
- name = node[3];
4319
+ var childNodes = node$jscomp$0[2];
4320
+ name = node$jscomp$0[3];
4196
4321
  keyOrIndex = task.node;
4197
4322
  task.replay = {
4198
4323
  nodes: childNodes,
@@ -4221,14 +4346,13 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4221
4346
  x)
4222
4347
  );
4223
4348
  task.replay.pendingTasks--;
4224
- props = getThrownInfo(request, task.componentStack);
4225
- key = request;
4226
- request = task.blockedBoundary;
4349
+ props = getThrownInfo(task.componentStack);
4350
+ key = task.blockedBoundary;
4227
4351
  type = x;
4228
- props = logRecoverableError(key, type, props);
4352
+ props = logRecoverableError(request, type, props);
4229
4353
  abortRemainingReplayNodes(
4230
- key,
4231
4354
  request,
4355
+ key,
4232
4356
  childNodes,
4233
4357
  name,
4234
4358
  type,
@@ -4245,15 +4369,14 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4245
4369
  );
4246
4370
  b: {
4247
4371
  replay = void 0;
4248
- type = node[5];
4249
- ref = node[2];
4250
- name = node[3];
4251
- keyOrIndex = null === node[4] ? [] : node[4][2];
4252
- node = null === node[4] ? null : node[4][3];
4253
- var previousComponentStack = task.componentStack,
4254
- suspenseComponentStack = (task.componentStack =
4255
- createBuiltInComponentStack(task, "Suspense")),
4256
- prevKeyPath = task.keyPath,
4372
+ type = node$jscomp$0[5];
4373
+ ref = node$jscomp$0[2];
4374
+ name = node$jscomp$0[3];
4375
+ keyOrIndex =
4376
+ null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
4377
+ node$jscomp$0 =
4378
+ null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
4379
+ var prevKeyPath = task.keyPath,
4257
4380
  previousReplaySet = task.replay,
4258
4381
  parentBoundary = task.blockedBoundary,
4259
4382
  parentHoistableState = task.hoistableState,
@@ -4268,6 +4391,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4268
4391
  resumedBoundary.rootSegmentID = type;
4269
4392
  task.blockedBoundary = resumedBoundary;
4270
4393
  task.hoistableState = resumedBoundary.contentState;
4394
+ task.keyPath = key;
4271
4395
  task.replay = {
4272
4396
  nodes: ref,
4273
4397
  slots: name,
@@ -4293,10 +4417,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4293
4417
  }
4294
4418
  } catch (error) {
4295
4419
  (resumedBoundary.status = 4),
4296
- (childNodes = getThrownInfo(
4297
- request,
4298
- task.componentStack
4299
- )),
4420
+ (childNodes = getThrownInfo(task.componentStack)),
4300
4421
  (replay = logRecoverableError(
4301
4422
  request,
4302
4423
  error,
@@ -4311,13 +4432,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4311
4432
  (task.blockedBoundary = parentBoundary),
4312
4433
  (task.hoistableState = parentHoistableState),
4313
4434
  (task.replay = previousReplaySet),
4314
- (task.keyPath = prevKeyPath),
4315
- (task.componentStack = previousComponentStack);
4435
+ (task.keyPath = prevKeyPath);
4316
4436
  }
4317
4437
  task = createReplayTask(
4318
4438
  request,
4319
4439
  null,
4320
- { nodes: keyOrIndex, slots: node, pendingTasks: 0 },
4440
+ {
4441
+ nodes: keyOrIndex,
4442
+ slots: node$jscomp$0,
4443
+ pendingTasks: 0
4444
+ },
4321
4445
  props,
4322
4446
  -1,
4323
4447
  parentBoundary,
@@ -4325,16 +4449,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4325
4449
  fallbackAbortSet,
4326
4450
  [key[0], "Suspense Fallback", key[2]],
4327
4451
  task.formatContext,
4328
- task.legacyContext,
4329
4452
  task.context,
4330
4453
  task.treeContext,
4331
- suspenseComponentStack,
4454
+ task.componentStack,
4332
4455
  !0
4333
4456
  );
4457
+ pushComponentStack(task);
4334
4458
  request.pingedTasks.push(task);
4335
4459
  }
4336
4460
  }
4337
- childIndex.splice(node$jscomp$0, 1);
4461
+ childIndex.splice(node, 1);
4338
4462
  break a;
4339
4463
  }
4340
4464
  }
@@ -4346,80 +4470,68 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
4346
4470
  "Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
4347
4471
  );
4348
4472
  case REACT_LAZY_TYPE:
4349
- childNodes = task.componentStack;
4350
- task.componentStack = createBuiltInComponentStack(task, "Lazy");
4351
- props = node$jscomp$0._init;
4352
- node$jscomp$0 = props(node$jscomp$0._payload);
4353
- task.componentStack = childNodes;
4354
- renderNodeDestructive(request, task, node$jscomp$0, childIndex);
4473
+ childNodes = node._init;
4474
+ node = childNodes(node._payload);
4475
+ if (12 === request.status) throw null;
4476
+ renderNodeDestructive(request, task, node, childIndex);
4355
4477
  return;
4356
4478
  }
4357
- if (isArrayImpl(node$jscomp$0)) {
4358
- renderChildrenArray(request, task, node$jscomp$0, childIndex);
4479
+ if (isArrayImpl(node)) {
4480
+ renderChildrenArray(request, task, node, childIndex);
4359
4481
  return;
4360
4482
  }
4361
- null === node$jscomp$0 || "object" !== typeof node$jscomp$0
4483
+ null === node || "object" !== typeof node
4362
4484
  ? (childNodes = null)
4363
4485
  : ((childNodes =
4364
- (MAYBE_ITERATOR_SYMBOL && node$jscomp$0[MAYBE_ITERATOR_SYMBOL]) ||
4365
- node$jscomp$0["@@iterator"]),
4486
+ (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
4487
+ node["@@iterator"]),
4366
4488
  (childNodes = "function" === typeof childNodes ? childNodes : null));
4367
- if (childNodes && (childNodes = childNodes.call(node$jscomp$0))) {
4368
- node$jscomp$0 = childNodes.next();
4369
- if (!node$jscomp$0.done) {
4489
+ if (childNodes && (childNodes = childNodes.call(node))) {
4490
+ node = childNodes.next();
4491
+ if (!node.done) {
4370
4492
  props = [];
4371
- do
4372
- props.push(node$jscomp$0.value),
4373
- (node$jscomp$0 = childNodes.next());
4374
- while (!node$jscomp$0.done);
4493
+ do props.push(node.value), (node = childNodes.next());
4494
+ while (!node.done);
4375
4495
  renderChildrenArray(request, task, props, childIndex);
4376
4496
  }
4377
4497
  return;
4378
4498
  }
4379
- if ("function" === typeof node$jscomp$0.then)
4499
+ if ("function" === typeof node.then)
4380
4500
  return (
4381
4501
  (task.thenableState = null),
4382
- renderNodeDestructive(
4383
- request,
4384
- task,
4385
- unwrapThenable(node$jscomp$0),
4386
- childIndex
4387
- )
4502
+ renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
4388
4503
  );
4389
- if (node$jscomp$0.$$typeof === REACT_CONTEXT_TYPE)
4504
+ if (node.$$typeof === REACT_CONTEXT_TYPE)
4390
4505
  return renderNodeDestructive(
4391
4506
  request,
4392
4507
  task,
4393
- node$jscomp$0._currentValue2,
4508
+ node._currentValue2,
4394
4509
  childIndex
4395
4510
  );
4396
- childIndex = Object.prototype.toString.call(node$jscomp$0);
4511
+ childIndex = Object.prototype.toString.call(node);
4397
4512
  throw Error(
4398
4513
  "Objects are not valid as a React child (found: " +
4399
4514
  ("[object Object]" === childIndex
4400
- ? "object with keys {" + Object.keys(node$jscomp$0).join(", ") + "}"
4515
+ ? "object with keys {" + Object.keys(node).join(", ") + "}"
4401
4516
  : childIndex) +
4402
4517
  "). If you meant to render a collection of children, use an array instead."
4403
4518
  );
4404
4519
  }
4405
- if ("string" === typeof node$jscomp$0)
4520
+ if ("string" === typeof node)
4406
4521
  (childIndex = task.blockedSegment),
4407
4522
  null !== childIndex &&
4408
4523
  (childIndex.lastPushedText = pushTextInstance(
4409
4524
  childIndex.chunks,
4410
- node$jscomp$0,
4525
+ node,
4411
4526
  request.renderState,
4412
4527
  childIndex.lastPushedText
4413
4528
  ));
4414
- else if (
4415
- "number" === typeof node$jscomp$0 ||
4416
- "bigint" === typeof node$jscomp$0
4417
- )
4529
+ else if ("number" === typeof node || "bigint" === typeof node)
4418
4530
  (childIndex = task.blockedSegment),
4419
4531
  null !== childIndex &&
4420
4532
  (childIndex.lastPushedText = pushTextInstance(
4421
4533
  childIndex.chunks,
4422
- "" + node$jscomp$0,
4534
+ "" + node,
4423
4535
  request.renderState,
4424
4536
  childIndex.lastPushedText
4425
4537
  ));
@@ -4457,7 +4569,7 @@ function renderChildrenArray(request, task, children, childIndex) {
4457
4569
  )
4458
4570
  throw x;
4459
4571
  task.replay.pendingTasks--;
4460
- children = getThrownInfo(request, task.componentStack);
4572
+ children = getThrownInfo(task.componentStack);
4461
4573
  var boundary = task.blockedBoundary,
4462
4574
  error = x;
4463
4575
  children = logRecoverableError(request, error, children);
@@ -4512,9 +4624,55 @@ function untrackBoundary(request, boundary) {
4512
4624
  void 0 !== boundary &&
4513
4625
  ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
4514
4626
  }
4627
+ function spawnNewSuspendedReplayTask(request, task, thenableState) {
4628
+ return createReplayTask(
4629
+ request,
4630
+ thenableState,
4631
+ task.replay,
4632
+ task.node,
4633
+ task.childIndex,
4634
+ task.blockedBoundary,
4635
+ task.hoistableState,
4636
+ task.abortSet,
4637
+ task.keyPath,
4638
+ task.formatContext,
4639
+ task.context,
4640
+ task.treeContext,
4641
+ task.componentStack,
4642
+ task.isFallback
4643
+ );
4644
+ }
4645
+ function spawnNewSuspendedRenderTask(request, task, thenableState) {
4646
+ var segment = task.blockedSegment,
4647
+ newSegment = createPendingSegment(
4648
+ request,
4649
+ segment.chunks.length,
4650
+ null,
4651
+ task.formatContext,
4652
+ segment.lastPushedText,
4653
+ !0
4654
+ );
4655
+ segment.children.push(newSegment);
4656
+ segment.lastPushedText = !1;
4657
+ return createRenderTask(
4658
+ request,
4659
+ thenableState,
4660
+ task.node,
4661
+ task.childIndex,
4662
+ task.blockedBoundary,
4663
+ newSegment,
4664
+ task.hoistableState,
4665
+ task.abortSet,
4666
+ task.keyPath,
4667
+ task.formatContext,
4668
+ task.context,
4669
+ task.treeContext,
4670
+ task.componentStack,
4671
+ task.isFallback
4672
+ );
4673
+ }
4515
4674
  function renderNode(request, task, node, childIndex) {
4516
4675
  var previousFormatContext = task.formatContext,
4517
- previousLegacyContext = task.legacyContext,
4518
4676
  previousContext = task.context,
4519
4677
  previousKeyPath = task.keyPath,
4520
4678
  previousTreeContext = task.treeContext,
@@ -4530,37 +4688,32 @@ function renderNode(request, task, node, childIndex) {
4530
4688
  thrownValue === SuspenseException
4531
4689
  ? getSuspendedThenable()
4532
4690
  : thrownValue),
4533
- "object" === typeof node &&
4534
- null !== node &&
4535
- "function" === typeof node.then)
4691
+ "object" === typeof node && null !== node)
4536
4692
  ) {
4537
- childIndex = getThenableStateAfterSuspending();
4538
- request = createReplayTask(
4539
- request,
4540
- childIndex,
4541
- task.replay,
4542
- task.node,
4543
- task.childIndex,
4544
- task.blockedBoundary,
4545
- task.hoistableState,
4546
- task.abortSet,
4547
- task.keyPath,
4548
- task.formatContext,
4549
- task.legacyContext,
4550
- task.context,
4551
- task.treeContext,
4552
- null !== task.componentStack ? task.componentStack.parent : null,
4553
- task.isFallback
4554
- ).ping;
4555
- node.then(request, request);
4556
- task.formatContext = previousFormatContext;
4557
- task.legacyContext = previousLegacyContext;
4558
- task.context = previousContext;
4559
- task.keyPath = previousKeyPath;
4560
- task.treeContext = previousTreeContext;
4561
- task.componentStack = previousComponentStack;
4562
- switchContext(previousContext);
4563
- return;
4693
+ if ("function" === typeof node.then) {
4694
+ childIndex = getThenableStateAfterSuspending();
4695
+ request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
4696
+ node.then(request, request);
4697
+ task.formatContext = previousFormatContext;
4698
+ task.context = previousContext;
4699
+ task.keyPath = previousKeyPath;
4700
+ task.treeContext = previousTreeContext;
4701
+ task.componentStack = previousComponentStack;
4702
+ switchContext(previousContext);
4703
+ return;
4704
+ }
4705
+ if ("Maximum call stack size exceeded" === node.message) {
4706
+ node = getThenableStateAfterSuspending();
4707
+ node = spawnNewSuspendedReplayTask(request, task, node);
4708
+ request.pingedTasks.push(node);
4709
+ task.formatContext = previousFormatContext;
4710
+ task.context = previousContext;
4711
+ task.keyPath = previousKeyPath;
4712
+ task.treeContext = previousTreeContext;
4713
+ task.componentStack = previousComponentStack;
4714
+ switchContext(previousContext);
4715
+ return;
4716
+ }
4564
4717
  }
4565
4718
  }
4566
4719
  else {
@@ -4568,62 +4721,45 @@ function renderNode(request, task, node, childIndex) {
4568
4721
  chunkLength = segment.chunks.length;
4569
4722
  try {
4570
4723
  return renderNodeDestructive(request, task, node, childIndex);
4571
- } catch (thrownValue$40) {
4724
+ } catch (thrownValue$48) {
4572
4725
  if (
4573
4726
  (resetHooksState(),
4574
4727
  (segment.children.length = childrenLength),
4575
4728
  (segment.chunks.length = chunkLength),
4576
4729
  (node =
4577
- thrownValue$40 === SuspenseException
4730
+ thrownValue$48 === SuspenseException
4578
4731
  ? getSuspendedThenable()
4579
- : thrownValue$40),
4580
- "object" === typeof node &&
4581
- null !== node &&
4582
- "function" === typeof node.then)
4732
+ : thrownValue$48),
4733
+ "object" === typeof node && null !== node)
4583
4734
  ) {
4584
- childIndex = getThenableStateAfterSuspending();
4585
- segment = task.blockedSegment;
4586
- childrenLength = createPendingSegment(
4587
- request,
4588
- segment.chunks.length,
4589
- null,
4590
- task.formatContext,
4591
- segment.lastPushedText,
4592
- !0
4593
- );
4594
- segment.children.push(childrenLength);
4595
- segment.lastPushedText = !1;
4596
- request = createRenderTask(
4597
- request,
4598
- childIndex,
4599
- task.node,
4600
- task.childIndex,
4601
- task.blockedBoundary,
4602
- childrenLength,
4603
- task.hoistableState,
4604
- task.abortSet,
4605
- task.keyPath,
4606
- task.formatContext,
4607
- task.legacyContext,
4608
- task.context,
4609
- task.treeContext,
4610
- null !== task.componentStack ? task.componentStack.parent : null,
4611
- task.isFallback
4612
- ).ping;
4613
- node.then(request, request);
4614
- task.formatContext = previousFormatContext;
4615
- task.legacyContext = previousLegacyContext;
4616
- task.context = previousContext;
4617
- task.keyPath = previousKeyPath;
4618
- task.treeContext = previousTreeContext;
4619
- task.componentStack = previousComponentStack;
4620
- switchContext(previousContext);
4621
- return;
4735
+ if ("function" === typeof node.then) {
4736
+ childIndex = getThenableStateAfterSuspending();
4737
+ request = spawnNewSuspendedRenderTask(request, task, childIndex).ping;
4738
+ node.then(request, request);
4739
+ task.formatContext = previousFormatContext;
4740
+ task.context = previousContext;
4741
+ task.keyPath = previousKeyPath;
4742
+ task.treeContext = previousTreeContext;
4743
+ task.componentStack = previousComponentStack;
4744
+ switchContext(previousContext);
4745
+ return;
4746
+ }
4747
+ if ("Maximum call stack size exceeded" === node.message) {
4748
+ node = getThenableStateAfterSuspending();
4749
+ node = spawnNewSuspendedRenderTask(request, task, node);
4750
+ request.pingedTasks.push(node);
4751
+ task.formatContext = previousFormatContext;
4752
+ task.context = previousContext;
4753
+ task.keyPath = previousKeyPath;
4754
+ task.treeContext = previousTreeContext;
4755
+ task.componentStack = previousComponentStack;
4756
+ switchContext(previousContext);
4757
+ return;
4758
+ }
4622
4759
  }
4623
4760
  }
4624
4761
  }
4625
4762
  task.formatContext = previousFormatContext;
4626
- task.legacyContext = previousLegacyContext;
4627
4763
  task.context = previousContext;
4628
4764
  task.keyPath = previousKeyPath;
4629
4765
  task.treeContext = previousTreeContext;
@@ -4684,26 +4820,30 @@ function abortRemainingReplayNodes(
4684
4820
  function abortTask(task, request, error) {
4685
4821
  var boundary = task.blockedBoundary,
4686
4822
  segment = task.blockedSegment;
4687
- null !== segment && (segment.status = 3);
4823
+ if (null !== segment) {
4824
+ if (6 === segment.status) return;
4825
+ segment.status = 3;
4826
+ }
4827
+ segment = getThrownInfo(task.componentStack);
4688
4828
  if (null === boundary) {
4689
- if (((boundary = {}), 1 !== request.status && 2 !== request.status)) {
4690
- task = task.replay;
4691
- if (null === task) {
4692
- logRecoverableError(request, error, boundary);
4829
+ if (13 !== request.status && 14 !== request.status) {
4830
+ boundary = task.replay;
4831
+ if (null === boundary) {
4832
+ logRecoverableError(request, error, segment);
4693
4833
  fatalError(request, error);
4694
4834
  return;
4695
4835
  }
4696
- task.pendingTasks--;
4697
- 0 === task.pendingTasks &&
4698
- 0 < task.nodes.length &&
4699
- ((boundary = logRecoverableError(request, error, boundary)),
4836
+ boundary.pendingTasks--;
4837
+ 0 === boundary.pendingTasks &&
4838
+ 0 < boundary.nodes.length &&
4839
+ ((task = logRecoverableError(request, error, segment)),
4700
4840
  abortRemainingReplayNodes(
4701
4841
  request,
4702
4842
  null,
4703
- task.nodes,
4704
- task.slots,
4843
+ boundary.nodes,
4844
+ boundary.slots,
4705
4845
  error,
4706
- boundary
4846
+ task
4707
4847
  ));
4708
4848
  request.pendingRootTasks--;
4709
4849
  0 === request.pendingRootTasks && completeShell(request);
@@ -4712,8 +4852,8 @@ function abortTask(task, request, error) {
4712
4852
  boundary.pendingTasks--,
4713
4853
  4 !== boundary.status &&
4714
4854
  ((boundary.status = 4),
4715
- (task = getThrownInfo(request, task.componentStack)),
4716
- (task = logRecoverableError(request, error, task)),
4855
+ (task = logRecoverableError(request, error, segment)),
4856
+ (boundary.status = 4),
4717
4857
  (boundary.errorDigest = task),
4718
4858
  untrackBoundary(request, boundary),
4719
4859
  boundary.parentFlushed &&
@@ -4767,7 +4907,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
4767
4907
  referrerPolicy: props$jscomp$0.referrerPolicy,
4768
4908
  media: props$jscomp$0.media
4769
4909
  });
4770
- if (2 <= (headers.remainingCapacity -= header.length))
4910
+ if (0 <= (headers.remainingCapacity -= header.length + 2))
4771
4911
  (renderState.resets.style[key] = PRELOAD_NO_CREDS),
4772
4912
  linkHeader && (linkHeader += ", "),
4773
4913
  (linkHeader += header),
@@ -4852,7 +4992,7 @@ function finishedTask(request, boundary, segment) {
4852
4992
  0 === request.allPendingTasks && completeAll(request);
4853
4993
  }
4854
4994
  function performWork(request$jscomp$2) {
4855
- if (2 !== request$jscomp$2.status) {
4995
+ if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
4856
4996
  var prevContext = currentActiveSnapshot,
4857
4997
  prevDispatcher = ReactSharedInternals.H;
4858
4998
  ReactSharedInternals.H = HooksDispatcher;
@@ -4874,12 +5014,15 @@ function performWork(request$jscomp$2) {
4874
5014
  if (0 !== task.replay.pendingTasks) {
4875
5015
  switchContext(task.context);
4876
5016
  try {
4877
- renderNodeDestructive(
4878
- request$jscomp$0,
4879
- task,
4880
- task.node,
4881
- task.childIndex
4882
- );
5017
+ "number" === typeof task.replay.slots
5018
+ ? resumeNode(
5019
+ request$jscomp$0,
5020
+ task,
5021
+ task.replay.slots,
5022
+ task.node,
5023
+ task.childIndex
5024
+ )
5025
+ : retryNode(request$jscomp$0, task);
4883
5026
  if (
4884
5027
  1 === task.replay.pendingTasks &&
4885
5028
  0 < task.replay.nodes.length
@@ -4904,19 +5047,17 @@ function performWork(request$jscomp$2) {
4904
5047
  var ping = task.ping;
4905
5048
  x.then(ping, ping);
4906
5049
  task.thenableState = getThenableStateAfterSuspending();
4907
- null !== task.componentStack &&
4908
- (task.componentStack = task.componentStack.parent);
4909
5050
  } else {
4910
5051
  task.replay.pendingTasks--;
4911
5052
  task.abortSet.delete(task);
4912
- var errorInfo = getThrownInfo(
4913
- request$jscomp$0,
4914
- task.componentStack
4915
- );
5053
+ var errorInfo = getThrownInfo(task.componentStack);
4916
5054
  request = void 0;
4917
5055
  var request$jscomp$1 = request$jscomp$0,
4918
5056
  boundary = task.blockedBoundary,
4919
- error$jscomp$0 = x,
5057
+ error$jscomp$0 =
5058
+ 12 === request$jscomp$0.status
5059
+ ? request$jscomp$0.fatalError
5060
+ : x,
4920
5061
  replayNodes = task.replay.nodes,
4921
5062
  resumeSlots = task.replay.slots;
4922
5063
  request = logRecoverableError(
@@ -4947,15 +5088,18 @@ function performWork(request$jscomp$2) {
4947
5088
  (request$jscomp$1 = segment),
4948
5089
  0 === request$jscomp$1.status)
4949
5090
  ) {
5091
+ request$jscomp$1.status = 6;
4950
5092
  switchContext(task.context);
4951
5093
  var childrenLength = request$jscomp$1.children.length,
4952
5094
  chunkLength = request$jscomp$1.chunks.length;
4953
5095
  try {
4954
- renderNodeDestructive(request, task, task.node, task.childIndex),
4955
- request.renderState.generateStaticMarkup ||
4956
- (request$jscomp$1.lastPushedText &&
4957
- request$jscomp$1.textEmbedded &&
4958
- request$jscomp$1.chunks.push("\x3c!-- --\x3e")),
5096
+ retryNode(request, task),
5097
+ pushSegmentFinale(
5098
+ request$jscomp$1.chunks,
5099
+ request.renderState,
5100
+ request$jscomp$1.lastPushedText,
5101
+ request$jscomp$1.textEmbedded
5102
+ ),
4959
5103
  task.abortSet.delete(task),
4960
5104
  (request$jscomp$1.status = 1),
4961
5105
  finishedTask(request, task.blockedBoundary, request$jscomp$1);
@@ -4966,22 +5110,20 @@ function performWork(request$jscomp$2) {
4966
5110
  var x$jscomp$0 =
4967
5111
  thrownValue === SuspenseException
4968
5112
  ? getSuspendedThenable()
4969
- : thrownValue;
5113
+ : 12 === request.status
5114
+ ? request.fatalError
5115
+ : thrownValue;
4970
5116
  if (
4971
5117
  "object" === typeof x$jscomp$0 &&
4972
5118
  null !== x$jscomp$0 &&
4973
5119
  "function" === typeof x$jscomp$0.then
4974
5120
  ) {
5121
+ request$jscomp$1.status = 0;
5122
+ task.thenableState = getThenableStateAfterSuspending();
4975
5123
  var ping$jscomp$0 = task.ping;
4976
5124
  x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
4977
- task.thenableState = getThenableStateAfterSuspending();
4978
- null !== task.componentStack &&
4979
- (task.componentStack = task.componentStack.parent);
4980
5125
  } else {
4981
- var errorInfo$jscomp$0 = getThrownInfo(
4982
- request,
4983
- task.componentStack
4984
- );
5126
+ var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
4985
5127
  task.abortSet.delete(task);
4986
5128
  request$jscomp$1.status = 4;
4987
5129
  var boundary$jscomp$0 = task.blockedBoundary;
@@ -5173,20 +5315,20 @@ function flushCompletedBoundary(request, destination, boundary) {
5173
5315
  ? 0 === (completedSegments.instructions & 2)
5174
5316
  ? ((completedSegments.instructions |= 10),
5175
5317
  destination.push(
5176
- '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,b,h=q.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&n.set(b.getAttribute("href"),b),p.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=w[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var d=f[m++];if(a=n.get(d)){var e=a._p;c=!0}else{a=q.createElement("link");a.href=d;a.rel="stylesheet";for(a.dataset.precedence=\nl=f[m++];e=f[m++];)a.setAttribute(e,f[m++]);e=a._p=new Promise(function(x,y){a.onload=x;a.onerror=y});n.set(d,a)}d=a.getAttribute("media");!e||"l"===e.s||d&&!matchMedia(d).matches||h.push(e);if(c)continue}else{a=v[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=p.get(l)||g;c===g&&(g=a);p.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=q.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(u.bind(null,r,t,""),u.bind(null,r,t,"Resource failed to load"))};$RR("'
5318
+ '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
5177
5319
  ))
5178
5320
  : 0 === (completedSegments.instructions & 8)
5179
- ? ((completedSegments.instructions |= 8),
5321
+ ? ((completedSegments.instructions |= 8),
5322
+ destination.push(
5323
+ '$RM=new Map;\n$RR=function(t,u,y){function v(n){this._p=null;n()}for(var w=$RC,p=$RM,q=new Map,r=document,g,b,h=r.querySelectorAll("link[data-precedence],style[data-precedence]"),x=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?x.push(b):("LINK"===b.tagName&&p.set(b.getAttribute("href"),b),q.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var e=y[b++];if(!e){k=!1;b=0;continue}var c=!1,m=0;var d=e[m++];if(a=p.get(d)){var f=a._p;c=!0}else{a=r.createElement("link");a.href=\nd;a.rel="stylesheet";for(a.dataset.precedence=l=e[m++];f=e[m++];)a.setAttribute(f,e[m++]);f=a._p=new Promise(function(n,z){a.onload=v.bind(a,n);a.onerror=v.bind(a,z)});p.set(d,a)}d=a.getAttribute("media");!f||d&&!matchMedia(d).matches||h.push(f);if(c)continue}else{a=x[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=q.get(l)||g;c===g&&(g=a);q.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=r.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(w.bind(null,\nt,u,""),w.bind(null,t,u,"Resource failed to load"))};$RR("'
5324
+ ))
5325
+ : destination.push('$RR("')
5326
+ : 0 === (completedSegments.instructions & 2)
5327
+ ? ((completedSegments.instructions |= 2),
5180
5328
  destination.push(
5181
- '$RM=new Map;\n$RR=function(r,t,w){for(var u=$RC,n=$RM,p=new Map,q=document,g,b,h=q.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=h[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&n.set(b.getAttribute("href"),b),p.set(b.dataset.precedence,g=b));b=0;h=[];var l,a;for(k=!0;;){if(k){var f=w[b++];if(!f){k=!1;b=0;continue}var c=!1,m=0;var d=f[m++];if(a=n.get(d)){var e=a._p;c=!0}else{a=q.createElement("link");a.href=d;a.rel="stylesheet";for(a.dataset.precedence=\nl=f[m++];e=f[m++];)a.setAttribute(e,f[m++]);e=a._p=new Promise(function(x,y){a.onload=x;a.onerror=y});n.set(d,a)}d=a.getAttribute("media");!e||"l"===e.s||d&&!matchMedia(d).matches||h.push(e);if(c)continue}else{a=v[b++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=p.get(l)||g;c===g&&(g=a);p.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=q.head,c.insertBefore(a,c.firstChild))}Promise.all(h).then(u.bind(null,r,t,""),u.bind(null,r,t,"Resource failed to load"))};$RR("'
5329
+ '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
5182
5330
  ))
5183
- : destination.push('$RR("')
5184
- : 0 === (completedSegments.instructions & 2)
5185
- ? ((completedSegments.instructions |= 2),
5186
- destination.push(
5187
- '$RC=function(b,c,e){c=document.getElementById(c);c.parentNode.removeChild(c);var a=document.getElementById(b);if(a){b=a.previousSibling;if(e)b.data="$!",a.setAttribute("data-dgst",e);else{e=b.parentNode;a=b.nextSibling;var f=0;do{if(a&&8===a.nodeType){var d=a.data;if("/$"===d)if(0===f)break;else f--;else"$"!==d&&"$?"!==d&&"$!"!==d||f++}d=a.nextSibling;e.removeChild(a);a=d}while(a);for(;c.firstChild;)e.insertBefore(c.firstChild,a);b.data="$"}b._reactRetry&&b._reactRetry()}};$RC("'
5188
- ))
5189
- : destination.push('$RC("');
5331
+ : destination.push('$RC("');
5190
5332
  completedSegments = i.toString(16);
5191
5333
  destination.push(request.boundaryPrefix);
5192
5334
  destination.push(completedSegments);
@@ -5379,11 +5521,11 @@ function flushCompletedQueues(request, destination) {
5379
5521
  completedBoundaries.splice(0, i);
5380
5522
  var partialBoundaries = request.partialBoundaries;
5381
5523
  for (i = 0; i < partialBoundaries.length; i++) {
5382
- var boundary$44 = partialBoundaries[i];
5524
+ var boundary$51 = partialBoundaries[i];
5383
5525
  a: {
5384
5526
  clientRenderedBoundaries = request;
5385
5527
  boundary = destination;
5386
- var completedSegments = boundary$44.completedSegments;
5528
+ var completedSegments = boundary$51.completedSegments;
5387
5529
  for (
5388
5530
  JSCompiler_inline_result = 0;
5389
5531
  JSCompiler_inline_result < completedSegments.length;
@@ -5393,7 +5535,7 @@ function flushCompletedQueues(request, destination) {
5393
5535
  !flushPartiallyCompletedSegment(
5394
5536
  clientRenderedBoundaries,
5395
5537
  boundary,
5396
- boundary$44,
5538
+ boundary$51,
5397
5539
  completedSegments[JSCompiler_inline_result]
5398
5540
  )
5399
5541
  ) {
@@ -5405,7 +5547,7 @@ function flushCompletedQueues(request, destination) {
5405
5547
  completedSegments.splice(0, JSCompiler_inline_result);
5406
5548
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
5407
5549
  boundary,
5408
- boundary$44.contentState,
5550
+ boundary$51.contentState,
5409
5551
  clientRenderedBoundaries.renderState
5410
5552
  );
5411
5553
  }
@@ -5438,6 +5580,7 @@ function flushCompletedQueues(request, destination) {
5438
5580
  ((partialBoundaries = endChunkForTag("body")),
5439
5581
  destination.push(partialBoundaries)),
5440
5582
  i.hasHtml && ((i = endChunkForTag("html")), destination.push(i)),
5583
+ (request.status = 14),
5441
5584
  destination.push(null),
5442
5585
  (request.destination = null));
5443
5586
  }
@@ -5456,9 +5599,9 @@ function enqueueFlush(request) {
5456
5599
  }
5457
5600
  }
5458
5601
  function startFlowing(request, destination) {
5459
- if (1 === request.status)
5460
- (request.status = 2), destination.destroy(request.fatalError);
5461
- else if (2 !== request.status && null === request.destination) {
5602
+ if (13 === request.status)
5603
+ (request.status = 14), destination.destroy(request.fatalError);
5604
+ else if (14 !== request.status && null === request.destination) {
5462
5605
  request.destination = destination;
5463
5606
  try {
5464
5607
  flushCompletedQueues(request, destination);
@@ -5468,13 +5611,19 @@ function startFlowing(request, destination) {
5468
5611
  }
5469
5612
  }
5470
5613
  function abort(request, reason) {
5614
+ if (11 === request.status || 10 === request.status) request.status = 12;
5471
5615
  try {
5472
5616
  var abortableTasks = request.abortableTasks;
5473
5617
  if (0 < abortableTasks.size) {
5474
5618
  var error =
5475
5619
  void 0 === reason
5476
5620
  ? Error("The render was aborted by the server without a reason.")
5477
- : reason;
5621
+ : "object" === typeof reason &&
5622
+ null !== reason &&
5623
+ "function" === typeof reason.then
5624
+ ? Error("The render was aborted by the server with a promise.")
5625
+ : reason;
5626
+ request.fatalError = error;
5478
5627
  abortableTasks.forEach(function (task) {
5479
5628
  return abortTask(task, request, error);
5480
5629
  });
@@ -5482,8 +5631,8 @@ function abort(request, reason) {
5482
5631
  }
5483
5632
  null !== request.destination &&
5484
5633
  flushCompletedQueues(request, request.destination);
5485
- } catch (error$46) {
5486
- logRecoverableError(request, error$46, {}), fatalError(request, error$46);
5634
+ } catch (error$53) {
5635
+ logRecoverableError(request, error$53, {}), fatalError(request, error$53);
5487
5636
  }
5488
5637
  }
5489
5638
  function onError() {}
@@ -5515,6 +5664,7 @@ function renderToStringImpl(
5515
5664
  );
5516
5665
  children.flushScheduled = null !== children.destination;
5517
5666
  performWork(children);
5667
+ 10 === children.status && (children.status = 11);
5518
5668
  null === children.trackedPostpones &&
5519
5669
  safelyEmitEarlyPreloads(children, 0 === children.pendingRootTasks);
5520
5670
  abort(children, abortReason);