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.
- package/cjs/react-dom-client.development.js +24461 -37682
- package/cjs/react-dom-client.production.js +2444 -2054
- package/cjs/react-dom-profiling.development.js +24830 -38118
- package/cjs/react-dom-profiling.profiling.js +2675 -2331
- package/cjs/react-dom-server-legacy.browser.development.js +8491 -11690
- package/cjs/react-dom-server-legacy.browser.production.js +914 -760
- package/cjs/react-dom-server-legacy.node.development.js +8491 -11690
- package/cjs/react-dom-server-legacy.node.production.js +910 -760
- package/cjs/react-dom-server.browser.development.js +8871 -11719
- package/cjs/react-dom-server.browser.production.js +1064 -772
- package/cjs/react-dom-server.bun.development.js +7850 -11199
- package/cjs/react-dom-server.bun.production.js +922 -758
- package/cjs/react-dom-server.edge.development.js +8892 -11737
- package/cjs/react-dom-server.edge.production.js +1047 -774
- package/cjs/react-dom-server.node.development.js +8762 -11698
- package/cjs/react-dom-server.node.production.js +1293 -988
- package/cjs/react-dom-test-utils.development.js +13 -75
- package/cjs/react-dom.development.js +401 -615
- package/cjs/react-dom.production.js +3 -2
- package/cjs/react-dom.react-server.development.js +322 -401
- package/cjs/react-dom.react-server.production.js +5 -7
- package/package.json +5 -5
- package/static.browser.js +1 -0
- package/static.edge.js +1 -0
- package/static.node.js +1 -0
@@ -123,7 +123,31 @@ function murmurhash3_32_gc(key, seed) {
|
|
123
123
|
4294967295;
|
124
124
|
return (h1 ^ (h1 >>> 16)) >>> 0;
|
125
125
|
}
|
126
|
-
var
|
126
|
+
var channel = new MessageChannel(),
|
127
|
+
taskQueue = [];
|
128
|
+
channel.port1.onmessage = function () {
|
129
|
+
var task = taskQueue.shift();
|
130
|
+
task && task();
|
131
|
+
};
|
132
|
+
function scheduleWork(callback) {
|
133
|
+
taskQueue.push(callback);
|
134
|
+
channel.port2.postMessage(null);
|
135
|
+
}
|
136
|
+
function handleErrorInNextTick(error) {
|
137
|
+
setTimeout(function () {
|
138
|
+
throw error;
|
139
|
+
});
|
140
|
+
}
|
141
|
+
var LocalPromise = Promise,
|
142
|
+
scheduleMicrotask =
|
143
|
+
"function" === typeof queueMicrotask
|
144
|
+
? queueMicrotask
|
145
|
+
: function (callback) {
|
146
|
+
LocalPromise.resolve(null)
|
147
|
+
.then(callback)
|
148
|
+
.catch(handleErrorInNextTick);
|
149
|
+
},
|
150
|
+
currentView = null,
|
127
151
|
writtenBytes = 0;
|
128
152
|
function writeChunk(destination, chunk) {
|
129
153
|
if (0 !== chunk.byteLength)
|
@@ -406,7 +430,7 @@ function createRenderState(
|
|
406
430
|
fontPreloads: "",
|
407
431
|
highImagePreloads: "",
|
408
432
|
remainingCapacity:
|
409
|
-
"number" === typeof maxHeadersLength ? maxHeadersLength : 2e3
|
433
|
+
2 + ("number" === typeof maxHeadersLength ? maxHeadersLength : 2e3)
|
410
434
|
}
|
411
435
|
: null;
|
412
436
|
onHeaders = {
|
@@ -469,8 +493,8 @@ function createRenderState(
|
|
469
493
|
"string" === typeof scriptConfig || null == scriptConfig.crossOrigin
|
470
494
|
? void 0
|
471
495
|
: "use-credentials" === scriptConfig.crossOrigin
|
472
|
-
|
473
|
-
|
496
|
+
? "use-credentials"
|
497
|
+
: ""));
|
474
498
|
scriptConfig = resumableState;
|
475
499
|
var href = maxHeadersLength;
|
476
500
|
scriptConfig.scriptResources[href] = null;
|
@@ -524,8 +548,8 @@ function createRenderState(
|
|
524
548
|
null == bootstrapScriptContent.crossOrigin
|
525
549
|
? void 0
|
526
550
|
: "use-credentials" === bootstrapScriptContent.crossOrigin
|
527
|
-
|
528
|
-
|
551
|
+
? "use-credentials"
|
552
|
+
: "")),
|
529
553
|
(bootstrapScriptContent = resumableState),
|
530
554
|
(scriptConfig = importMap),
|
531
555
|
(bootstrapScriptContent.scriptResources[scriptConfig] = null),
|
@@ -594,8 +618,8 @@ function createRootFormatContext(namespaceURI) {
|
|
594
618
|
"http://www.w3.org/2000/svg" === namespaceURI
|
595
619
|
? 3
|
596
620
|
: "http://www.w3.org/1998/Math/MathML" === namespaceURI
|
597
|
-
|
598
|
-
|
621
|
+
? 4
|
622
|
+
: 0,
|
599
623
|
null,
|
600
624
|
0
|
601
625
|
);
|
@@ -632,12 +656,12 @@ function getChildFormatContext(parentContext, type, props) {
|
|
632
656
|
return 5 <= parentContext.insertionMode
|
633
657
|
? createFormatContext(2, null, parentContext.tagScope)
|
634
658
|
: 0 === parentContext.insertionMode
|
635
|
-
|
636
|
-
|
637
|
-
|
638
|
-
|
639
|
-
|
640
|
-
|
659
|
+
? "html" === type
|
660
|
+
? createFormatContext(1, null, parentContext.tagScope)
|
661
|
+
: createFormatContext(2, null, parentContext.tagScope)
|
662
|
+
: 1 === parentContext.insertionMode
|
663
|
+
? createFormatContext(2, null, parentContext.tagScope)
|
664
|
+
: parentContext;
|
641
665
|
}
|
642
666
|
var textSeparator = stringToPrecomputedChunk("\x3c!-- --\x3e");
|
643
667
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
@@ -1624,22 +1648,66 @@ function pushStartInstance(
|
|
1624
1648
|
}
|
1625
1649
|
target$jscomp$0.push(endOfStartTag);
|
1626
1650
|
return null;
|
1651
|
+
case "object":
|
1652
|
+
target$jscomp$0.push(startChunkForTag("object"));
|
1653
|
+
var children$jscomp$5 = null,
|
1654
|
+
innerHTML$jscomp$4 = null,
|
1655
|
+
propKey$jscomp$7;
|
1656
|
+
for (propKey$jscomp$7 in props)
|
1657
|
+
if (hasOwnProperty.call(props, propKey$jscomp$7)) {
|
1658
|
+
var propValue$jscomp$7 = props[propKey$jscomp$7];
|
1659
|
+
if (null != propValue$jscomp$7)
|
1660
|
+
switch (propKey$jscomp$7) {
|
1661
|
+
case "children":
|
1662
|
+
children$jscomp$5 = propValue$jscomp$7;
|
1663
|
+
break;
|
1664
|
+
case "dangerouslySetInnerHTML":
|
1665
|
+
innerHTML$jscomp$4 = propValue$jscomp$7;
|
1666
|
+
break;
|
1667
|
+
case "data":
|
1668
|
+
var sanitizedValue = sanitizeURL("" + propValue$jscomp$7);
|
1669
|
+
if ("" === sanitizedValue) break;
|
1670
|
+
target$jscomp$0.push(
|
1671
|
+
attributeSeparator,
|
1672
|
+
stringToChunk("data"),
|
1673
|
+
attributeAssign,
|
1674
|
+
stringToChunk(escapeTextForBrowser(sanitizedValue)),
|
1675
|
+
attributeEnd
|
1676
|
+
);
|
1677
|
+
break;
|
1678
|
+
default:
|
1679
|
+
pushAttribute(
|
1680
|
+
target$jscomp$0,
|
1681
|
+
propKey$jscomp$7,
|
1682
|
+
propValue$jscomp$7
|
1683
|
+
);
|
1684
|
+
}
|
1685
|
+
}
|
1686
|
+
target$jscomp$0.push(endOfStartTag);
|
1687
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$4, children$jscomp$5);
|
1688
|
+
if ("string" === typeof children$jscomp$5) {
|
1689
|
+
target$jscomp$0.push(
|
1690
|
+
stringToChunk(escapeTextForBrowser(children$jscomp$5))
|
1691
|
+
);
|
1692
|
+
var JSCompiler_inline_result$jscomp$2 = null;
|
1693
|
+
} else JSCompiler_inline_result$jscomp$2 = children$jscomp$5;
|
1694
|
+
return JSCompiler_inline_result$jscomp$2;
|
1627
1695
|
case "title":
|
1628
1696
|
if (
|
1629
1697
|
3 === formatContext.insertionMode ||
|
1630
1698
|
formatContext.tagScope & 1 ||
|
1631
1699
|
null != props.itemProp
|
1632
1700
|
)
|
1633
|
-
var JSCompiler_inline_result$jscomp$
|
1701
|
+
var JSCompiler_inline_result$jscomp$3 = pushTitleImpl(
|
1634
1702
|
target$jscomp$0,
|
1635
1703
|
props
|
1636
1704
|
);
|
1637
1705
|
else
|
1638
1706
|
isFallback
|
1639
|
-
? (JSCompiler_inline_result$jscomp$
|
1707
|
+
? (JSCompiler_inline_result$jscomp$3 = null)
|
1640
1708
|
: (pushTitleImpl(renderState.hoistableChunks, props),
|
1641
|
-
(JSCompiler_inline_result$jscomp$
|
1642
|
-
return JSCompiler_inline_result$jscomp$
|
1709
|
+
(JSCompiler_inline_result$jscomp$3 = void 0));
|
1710
|
+
return JSCompiler_inline_result$jscomp$3;
|
1643
1711
|
case "link":
|
1644
1712
|
var rel = props.rel,
|
1645
1713
|
href = props.href,
|
@@ -1653,7 +1721,7 @@ function pushStartInstance(
|
|
1653
1721
|
"" === href
|
1654
1722
|
) {
|
1655
1723
|
pushLinkImpl(target$jscomp$0, props);
|
1656
|
-
var JSCompiler_inline_result$jscomp$
|
1724
|
+
var JSCompiler_inline_result$jscomp$4 = null;
|
1657
1725
|
} else if ("stylesheet" === props.rel)
|
1658
1726
|
if (
|
1659
1727
|
"string" !== typeof precedence ||
|
@@ -1661,7 +1729,7 @@ function pushStartInstance(
|
|
1661
1729
|
props.onLoad ||
|
1662
1730
|
props.onError
|
1663
1731
|
)
|
1664
|
-
JSCompiler_inline_result$jscomp$
|
1732
|
+
JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
|
1665
1733
|
target$jscomp$0,
|
1666
1734
|
props
|
1667
1735
|
);
|
@@ -1704,19 +1772,19 @@ function pushStartInstance(
|
|
1704
1772
|
hoistableState.stylesheets.add(resource$9);
|
1705
1773
|
}
|
1706
1774
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
1707
|
-
JSCompiler_inline_result$jscomp$
|
1775
|
+
JSCompiler_inline_result$jscomp$4 = null;
|
1708
1776
|
}
|
1709
1777
|
else
|
1710
1778
|
props.onLoad || props.onError
|
1711
|
-
? (JSCompiler_inline_result$jscomp$
|
1779
|
+
? (JSCompiler_inline_result$jscomp$4 = pushLinkImpl(
|
1712
1780
|
target$jscomp$0,
|
1713
1781
|
props
|
1714
1782
|
))
|
1715
1783
|
: (textEmbedded && target$jscomp$0.push(textSeparator),
|
1716
|
-
(JSCompiler_inline_result$jscomp$
|
1784
|
+
(JSCompiler_inline_result$jscomp$4 = isFallback
|
1717
1785
|
? null
|
1718
1786
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
1719
|
-
return JSCompiler_inline_result$jscomp$
|
1787
|
+
return JSCompiler_inline_result$jscomp$4;
|
1720
1788
|
case "script":
|
1721
1789
|
var asyncProp = props.async;
|
1722
1790
|
if (
|
@@ -1731,7 +1799,7 @@ function pushStartInstance(
|
|
1731
1799
|
formatContext.tagScope & 1 ||
|
1732
1800
|
null != props.itemProp
|
1733
1801
|
)
|
1734
|
-
var JSCompiler_inline_result$jscomp$
|
1802
|
+
var JSCompiler_inline_result$jscomp$5 = pushScriptImpl(
|
1735
1803
|
target$jscomp$0,
|
1736
1804
|
props
|
1737
1805
|
);
|
@@ -1761,9 +1829,9 @@ function pushStartInstance(
|
|
1761
1829
|
pushScriptImpl(resource$jscomp$0, scriptProps);
|
1762
1830
|
}
|
1763
1831
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
1764
|
-
JSCompiler_inline_result$jscomp$
|
1832
|
+
JSCompiler_inline_result$jscomp$5 = null;
|
1765
1833
|
}
|
1766
|
-
return JSCompiler_inline_result$jscomp$
|
1834
|
+
return JSCompiler_inline_result$jscomp$5;
|
1767
1835
|
case "style":
|
1768
1836
|
var precedence$jscomp$0 = props.precedence,
|
1769
1837
|
href$jscomp$0 = props.href;
|
@@ -1776,34 +1844,34 @@ function pushStartInstance(
|
|
1776
1844
|
"" === href$jscomp$0
|
1777
1845
|
) {
|
1778
1846
|
target$jscomp$0.push(startChunkForTag("style"));
|
1779
|
-
var children$jscomp$
|
1780
|
-
innerHTML$jscomp$
|
1781
|
-
propKey$jscomp$
|
1782
|
-
for (propKey$jscomp$
|
1783
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
1784
|
-
var propValue$jscomp$
|
1785
|
-
if (null != propValue$jscomp$
|
1786
|
-
switch (propKey$jscomp$
|
1847
|
+
var children$jscomp$6 = null,
|
1848
|
+
innerHTML$jscomp$5 = null,
|
1849
|
+
propKey$jscomp$8;
|
1850
|
+
for (propKey$jscomp$8 in props)
|
1851
|
+
if (hasOwnProperty.call(props, propKey$jscomp$8)) {
|
1852
|
+
var propValue$jscomp$8 = props[propKey$jscomp$8];
|
1853
|
+
if (null != propValue$jscomp$8)
|
1854
|
+
switch (propKey$jscomp$8) {
|
1787
1855
|
case "children":
|
1788
|
-
children$jscomp$
|
1856
|
+
children$jscomp$6 = propValue$jscomp$8;
|
1789
1857
|
break;
|
1790
1858
|
case "dangerouslySetInnerHTML":
|
1791
|
-
innerHTML$jscomp$
|
1859
|
+
innerHTML$jscomp$5 = propValue$jscomp$8;
|
1792
1860
|
break;
|
1793
1861
|
default:
|
1794
1862
|
pushAttribute(
|
1795
1863
|
target$jscomp$0,
|
1796
|
-
propKey$jscomp$
|
1797
|
-
propValue$jscomp$
|
1864
|
+
propKey$jscomp$8,
|
1865
|
+
propValue$jscomp$8
|
1798
1866
|
);
|
1799
1867
|
}
|
1800
1868
|
}
|
1801
1869
|
target$jscomp$0.push(endOfStartTag);
|
1802
|
-
var child = Array.isArray(children$jscomp$
|
1803
|
-
? 2 > children$jscomp$
|
1804
|
-
? children$jscomp$
|
1870
|
+
var child = Array.isArray(children$jscomp$6)
|
1871
|
+
? 2 > children$jscomp$6.length
|
1872
|
+
? children$jscomp$6[0]
|
1805
1873
|
: null
|
1806
|
-
: children$jscomp$
|
1874
|
+
: children$jscomp$6;
|
1807
1875
|
"function" !== typeof child &&
|
1808
1876
|
"symbol" !== typeof child &&
|
1809
1877
|
null !== child &&
|
@@ -1811,9 +1879,9 @@ function pushStartInstance(
|
|
1811
1879
|
target$jscomp$0.push(
|
1812
1880
|
stringToChunk(("" + child).replace(styleRegex, styleReplacer))
|
1813
1881
|
);
|
1814
|
-
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$
|
1882
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$5, children$jscomp$6);
|
1815
1883
|
target$jscomp$0.push(endChunkForTag("style"));
|
1816
|
-
var JSCompiler_inline_result$jscomp$
|
1884
|
+
var JSCompiler_inline_result$jscomp$6 = null;
|
1817
1885
|
} else {
|
1818
1886
|
var styleQueue$jscomp$0 = renderState.styles.get(precedence$jscomp$0);
|
1819
1887
|
if (
|
@@ -1837,26 +1905,26 @@ function pushStartInstance(
|
|
1837
1905
|
}),
|
1838
1906
|
renderState.styles.set(precedence$jscomp$0, styleQueue$jscomp$0));
|
1839
1907
|
var target = styleQueue$jscomp$0.rules,
|
1840
|
-
children$jscomp$
|
1841
|
-
innerHTML$jscomp$
|
1842
|
-
propKey$jscomp$
|
1843
|
-
for (propKey$jscomp$
|
1844
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
1845
|
-
var propValue$jscomp$
|
1846
|
-
if (null != propValue$jscomp$
|
1847
|
-
switch (propKey$jscomp$
|
1908
|
+
children$jscomp$7 = null,
|
1909
|
+
innerHTML$jscomp$6 = null,
|
1910
|
+
propKey$jscomp$9;
|
1911
|
+
for (propKey$jscomp$9 in props)
|
1912
|
+
if (hasOwnProperty.call(props, propKey$jscomp$9)) {
|
1913
|
+
var propValue$jscomp$9 = props[propKey$jscomp$9];
|
1914
|
+
if (null != propValue$jscomp$9)
|
1915
|
+
switch (propKey$jscomp$9) {
|
1848
1916
|
case "children":
|
1849
|
-
children$jscomp$
|
1917
|
+
children$jscomp$7 = propValue$jscomp$9;
|
1850
1918
|
break;
|
1851
1919
|
case "dangerouslySetInnerHTML":
|
1852
|
-
innerHTML$jscomp$
|
1920
|
+
innerHTML$jscomp$6 = propValue$jscomp$9;
|
1853
1921
|
}
|
1854
1922
|
}
|
1855
|
-
var child$jscomp$0 = Array.isArray(children$jscomp$
|
1856
|
-
? 2 > children$jscomp$
|
1857
|
-
? children$jscomp$
|
1923
|
+
var child$jscomp$0 = Array.isArray(children$jscomp$7)
|
1924
|
+
? 2 > children$jscomp$7.length
|
1925
|
+
? children$jscomp$7[0]
|
1858
1926
|
: null
|
1859
|
-
: children$jscomp$
|
1927
|
+
: children$jscomp$7;
|
1860
1928
|
"function" !== typeof child$jscomp$0 &&
|
1861
1929
|
"symbol" !== typeof child$jscomp$0 &&
|
1862
1930
|
null !== child$jscomp$0 &&
|
@@ -1866,80 +1934,80 @@ function pushStartInstance(
|
|
1866
1934
|
("" + child$jscomp$0).replace(styleRegex, styleReplacer)
|
1867
1935
|
)
|
1868
1936
|
);
|
1869
|
-
pushInnerHTML(target, innerHTML$jscomp$
|
1937
|
+
pushInnerHTML(target, innerHTML$jscomp$6, children$jscomp$7);
|
1870
1938
|
}
|
1871
1939
|
styleQueue$jscomp$0 &&
|
1872
1940
|
hoistableState &&
|
1873
1941
|
hoistableState.styles.add(styleQueue$jscomp$0);
|
1874
1942
|
textEmbedded && target$jscomp$0.push(textSeparator);
|
1875
|
-
JSCompiler_inline_result$jscomp$
|
1943
|
+
JSCompiler_inline_result$jscomp$6 = void 0;
|
1876
1944
|
}
|
1877
|
-
return JSCompiler_inline_result$jscomp$
|
1945
|
+
return JSCompiler_inline_result$jscomp$6;
|
1878
1946
|
case "meta":
|
1879
1947
|
if (
|
1880
1948
|
3 === formatContext.insertionMode ||
|
1881
1949
|
formatContext.tagScope & 1 ||
|
1882
1950
|
null != props.itemProp
|
1883
1951
|
)
|
1884
|
-
var JSCompiler_inline_result$jscomp$
|
1952
|
+
var JSCompiler_inline_result$jscomp$7 = pushSelfClosing(
|
1885
1953
|
target$jscomp$0,
|
1886
1954
|
props,
|
1887
1955
|
"meta"
|
1888
1956
|
);
|
1889
1957
|
else
|
1890
1958
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
1891
|
-
(JSCompiler_inline_result$jscomp$
|
1959
|
+
(JSCompiler_inline_result$jscomp$7 = isFallback
|
1892
1960
|
? null
|
1893
1961
|
: "string" === typeof props.charSet
|
1894
|
-
|
1895
|
-
|
1896
|
-
|
1897
|
-
|
1898
|
-
return JSCompiler_inline_result$jscomp$
|
1962
|
+
? pushSelfClosing(renderState.charsetChunks, props, "meta")
|
1963
|
+
: "viewport" === props.name
|
1964
|
+
? pushSelfClosing(renderState.viewportChunks, props, "meta")
|
1965
|
+
: pushSelfClosing(renderState.hoistableChunks, props, "meta"));
|
1966
|
+
return JSCompiler_inline_result$jscomp$7;
|
1899
1967
|
case "listing":
|
1900
1968
|
case "pre":
|
1901
1969
|
target$jscomp$0.push(startChunkForTag(type));
|
1902
|
-
var children$jscomp$
|
1903
|
-
innerHTML$jscomp$
|
1904
|
-
propKey$jscomp$
|
1905
|
-
for (propKey$jscomp$
|
1906
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
1907
|
-
var propValue$jscomp$
|
1908
|
-
if (null != propValue$jscomp$
|
1909
|
-
switch (propKey$jscomp$
|
1970
|
+
var children$jscomp$8 = null,
|
1971
|
+
innerHTML$jscomp$7 = null,
|
1972
|
+
propKey$jscomp$10;
|
1973
|
+
for (propKey$jscomp$10 in props)
|
1974
|
+
if (hasOwnProperty.call(props, propKey$jscomp$10)) {
|
1975
|
+
var propValue$jscomp$10 = props[propKey$jscomp$10];
|
1976
|
+
if (null != propValue$jscomp$10)
|
1977
|
+
switch (propKey$jscomp$10) {
|
1910
1978
|
case "children":
|
1911
|
-
children$jscomp$
|
1979
|
+
children$jscomp$8 = propValue$jscomp$10;
|
1912
1980
|
break;
|
1913
1981
|
case "dangerouslySetInnerHTML":
|
1914
|
-
innerHTML$jscomp$
|
1982
|
+
innerHTML$jscomp$7 = propValue$jscomp$10;
|
1915
1983
|
break;
|
1916
1984
|
default:
|
1917
1985
|
pushAttribute(
|
1918
1986
|
target$jscomp$0,
|
1919
|
-
propKey$jscomp$
|
1920
|
-
propValue$jscomp$
|
1987
|
+
propKey$jscomp$10,
|
1988
|
+
propValue$jscomp$10
|
1921
1989
|
);
|
1922
1990
|
}
|
1923
1991
|
}
|
1924
1992
|
target$jscomp$0.push(endOfStartTag);
|
1925
|
-
if (null != innerHTML$jscomp$
|
1926
|
-
if (null != children$jscomp$
|
1993
|
+
if (null != innerHTML$jscomp$7) {
|
1994
|
+
if (null != children$jscomp$8) throw Error(formatProdErrorMessage(60));
|
1927
1995
|
if (
|
1928
|
-
"object" !== typeof innerHTML$jscomp$
|
1929
|
-
!("__html" in innerHTML$jscomp$
|
1996
|
+
"object" !== typeof innerHTML$jscomp$7 ||
|
1997
|
+
!("__html" in innerHTML$jscomp$7)
|
1930
1998
|
)
|
1931
1999
|
throw Error(formatProdErrorMessage(61));
|
1932
|
-
var html = innerHTML$jscomp$
|
2000
|
+
var html = innerHTML$jscomp$7.__html;
|
1933
2001
|
null !== html &&
|
1934
2002
|
void 0 !== html &&
|
1935
2003
|
("string" === typeof html && 0 < html.length && "\n" === html[0]
|
1936
2004
|
? target$jscomp$0.push(leadingNewline, stringToChunk(html))
|
1937
2005
|
: target$jscomp$0.push(stringToChunk("" + html)));
|
1938
2006
|
}
|
1939
|
-
"string" === typeof children$jscomp$
|
1940
|
-
"\n" === children$jscomp$
|
2007
|
+
"string" === typeof children$jscomp$8 &&
|
2008
|
+
"\n" === children$jscomp$8[0] &&
|
1941
2009
|
target$jscomp$0.push(leadingNewline);
|
1942
|
-
return children$jscomp$
|
2010
|
+
return children$jscomp$8;
|
1943
2011
|
case "img":
|
1944
2012
|
var src = props.src,
|
1945
2013
|
srcSet = props.srcSet;
|
@@ -1981,7 +2049,7 @@ function pushStartInstance(
|
|
1981
2049
|
) {
|
1982
2050
|
resumableState.imageResources[key$jscomp$0] = PRELOAD_NO_CREDS;
|
1983
2051
|
var input = props.crossOrigin;
|
1984
|
-
var JSCompiler_inline_result$jscomp$
|
2052
|
+
var JSCompiler_inline_result$jscomp$8 =
|
1985
2053
|
"string" === typeof input
|
1986
2054
|
? "use-credentials" === input
|
1987
2055
|
? input
|
@@ -1996,14 +2064,14 @@ function pushStartInstance(
|
|
1996
2064
|
((header = getPreloadAsHeader(src, "image", {
|
1997
2065
|
imageSrcSet: props.srcSet,
|
1998
2066
|
imageSizes: props.sizes,
|
1999
|
-
crossOrigin: JSCompiler_inline_result$jscomp$
|
2067
|
+
crossOrigin: JSCompiler_inline_result$jscomp$8,
|
2000
2068
|
integrity: props.integrity,
|
2001
2069
|
nonce: props.nonce,
|
2002
2070
|
type: props.type,
|
2003
2071
|
fetchPriority: props.fetchPriority,
|
2004
2072
|
referrerPolicy: props.refererPolicy
|
2005
2073
|
})),
|
2006
|
-
|
2074
|
+
0 <= (headers.remainingCapacity -= header.length + 2))
|
2007
2075
|
? ((renderState.resets.image[key$jscomp$0] = PRELOAD_NO_CREDS),
|
2008
2076
|
headers.highImagePreloads && (headers.highImagePreloads += ", "),
|
2009
2077
|
(headers.highImagePreloads += header))
|
@@ -2014,7 +2082,7 @@ function pushStartInstance(
|
|
2014
2082
|
href: srcSet ? void 0 : src,
|
2015
2083
|
imageSrcSet: srcSet,
|
2016
2084
|
imageSizes: sizes,
|
2017
|
-
crossOrigin: JSCompiler_inline_result$jscomp$
|
2085
|
+
crossOrigin: JSCompiler_inline_result$jscomp$8,
|
2018
2086
|
integrity: props.integrity,
|
2019
2087
|
type: props.type,
|
2020
2088
|
fetchPriority: props.fetchPriority,
|
@@ -2052,56 +2120,56 @@ function pushStartInstance(
|
|
2052
2120
|
case "head":
|
2053
2121
|
if (2 > formatContext.insertionMode && null === renderState.headChunks) {
|
2054
2122
|
renderState.headChunks = [];
|
2055
|
-
var JSCompiler_inline_result$jscomp$
|
2123
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
2056
2124
|
renderState.headChunks,
|
2057
2125
|
props,
|
2058
2126
|
"head"
|
2059
2127
|
);
|
2060
2128
|
} else
|
2061
|
-
JSCompiler_inline_result$jscomp$
|
2129
|
+
JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
|
2062
2130
|
target$jscomp$0,
|
2063
2131
|
props,
|
2064
2132
|
"head"
|
2065
2133
|
);
|
2066
|
-
return JSCompiler_inline_result$jscomp$
|
2134
|
+
return JSCompiler_inline_result$jscomp$9;
|
2067
2135
|
case "html":
|
2068
2136
|
if (
|
2069
2137
|
0 === formatContext.insertionMode &&
|
2070
2138
|
null === renderState.htmlChunks
|
2071
2139
|
) {
|
2072
2140
|
renderState.htmlChunks = [doctypeChunk];
|
2073
|
-
var JSCompiler_inline_result$jscomp$
|
2141
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
2074
2142
|
renderState.htmlChunks,
|
2075
2143
|
props,
|
2076
2144
|
"html"
|
2077
2145
|
);
|
2078
2146
|
} else
|
2079
|
-
JSCompiler_inline_result$jscomp$
|
2147
|
+
JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
|
2080
2148
|
target$jscomp$0,
|
2081
2149
|
props,
|
2082
2150
|
"html"
|
2083
2151
|
);
|
2084
|
-
return JSCompiler_inline_result$jscomp$
|
2152
|
+
return JSCompiler_inline_result$jscomp$10;
|
2085
2153
|
default:
|
2086
2154
|
if (-1 !== type.indexOf("-")) {
|
2087
2155
|
target$jscomp$0.push(startChunkForTag(type));
|
2088
|
-
var children$jscomp$
|
2089
|
-
innerHTML$jscomp$
|
2090
|
-
propKey$jscomp$
|
2091
|
-
for (propKey$jscomp$
|
2092
|
-
if (hasOwnProperty.call(props, propKey$jscomp$
|
2093
|
-
var propValue$jscomp$
|
2094
|
-
if (null != propValue$jscomp$
|
2095
|
-
var attributeName = propKey$jscomp$
|
2096
|
-
switch (propKey$jscomp$
|
2156
|
+
var children$jscomp$9 = null,
|
2157
|
+
innerHTML$jscomp$8 = null,
|
2158
|
+
propKey$jscomp$11;
|
2159
|
+
for (propKey$jscomp$11 in props)
|
2160
|
+
if (hasOwnProperty.call(props, propKey$jscomp$11)) {
|
2161
|
+
var propValue$jscomp$11 = props[propKey$jscomp$11];
|
2162
|
+
if (null != propValue$jscomp$11) {
|
2163
|
+
var attributeName = propKey$jscomp$11;
|
2164
|
+
switch (propKey$jscomp$11) {
|
2097
2165
|
case "children":
|
2098
|
-
children$jscomp$
|
2166
|
+
children$jscomp$9 = propValue$jscomp$11;
|
2099
2167
|
break;
|
2100
2168
|
case "dangerouslySetInnerHTML":
|
2101
|
-
innerHTML$jscomp$
|
2169
|
+
innerHTML$jscomp$8 = propValue$jscomp$11;
|
2102
2170
|
break;
|
2103
2171
|
case "style":
|
2104
|
-
pushStyleAttribute(target$jscomp$0, propValue$jscomp$
|
2172
|
+
pushStyleAttribute(target$jscomp$0, propValue$jscomp$11);
|
2105
2173
|
break;
|
2106
2174
|
case "suppressContentEditableWarning":
|
2107
2175
|
case "suppressHydrationWarning":
|
@@ -2111,18 +2179,18 @@ function pushStartInstance(
|
|
2111
2179
|
attributeName = "class";
|
2112
2180
|
default:
|
2113
2181
|
if (
|
2114
|
-
isAttributeNameSafe(propKey$jscomp$
|
2115
|
-
"function" !== typeof propValue$jscomp$
|
2116
|
-
"symbol" !== typeof propValue$jscomp$
|
2117
|
-
!1 !== propValue$jscomp$
|
2182
|
+
isAttributeNameSafe(propKey$jscomp$11) &&
|
2183
|
+
"function" !== typeof propValue$jscomp$11 &&
|
2184
|
+
"symbol" !== typeof propValue$jscomp$11 &&
|
2185
|
+
!1 !== propValue$jscomp$11
|
2118
2186
|
) {
|
2119
|
-
if (!0 === propValue$jscomp$
|
2120
|
-
else if ("object" === typeof propValue$jscomp$
|
2187
|
+
if (!0 === propValue$jscomp$11) propValue$jscomp$11 = "";
|
2188
|
+
else if ("object" === typeof propValue$jscomp$11) continue;
|
2121
2189
|
target$jscomp$0.push(
|
2122
2190
|
attributeSeparator,
|
2123
2191
|
stringToChunk(attributeName),
|
2124
2192
|
attributeAssign,
|
2125
|
-
stringToChunk(escapeTextForBrowser(propValue$jscomp$
|
2193
|
+
stringToChunk(escapeTextForBrowser(propValue$jscomp$11)),
|
2126
2194
|
attributeEnd
|
2127
2195
|
);
|
2128
2196
|
}
|
@@ -2130,8 +2198,8 @@ function pushStartInstance(
|
|
2130
2198
|
}
|
2131
2199
|
}
|
2132
2200
|
target$jscomp$0.push(endOfStartTag);
|
2133
|
-
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$
|
2134
|
-
return children$jscomp$
|
2201
|
+
pushInnerHTML(target$jscomp$0, innerHTML$jscomp$8, children$jscomp$9);
|
2202
|
+
return children$jscomp$9;
|
2135
2203
|
}
|
2136
2204
|
}
|
2137
2205
|
return pushStartGenericElement(target$jscomp$0, props, type);
|
@@ -2300,10 +2368,10 @@ var completeBoundaryScript1Full = stringToPrecomputedChunk(
|
|
2300
2368
|
),
|
2301
2369
|
completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
2302
2370
|
completeBoundaryWithStylesScript1FullBoth = stringToPrecomputedChunk(
|
2303
|
-
'$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(
|
2371
|
+
'$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("'
|
2304
2372
|
),
|
2305
2373
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
2306
|
-
'$RM=new Map;\n$RR=function(
|
2374
|
+
'$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("'
|
2307
2375
|
),
|
2308
2376
|
completeBoundaryWithStylesScript1Partial = stringToPrecomputedChunk('$RR("'),
|
2309
2377
|
completeBoundaryScript2 = stringToPrecomputedChunk('","'),
|
@@ -2623,7 +2691,7 @@ function prefetchDNS(href) {
|
|
2623
2691
|
escapeHrefForLinkHeaderURLContextReplacer
|
2624
2692
|
) +
|
2625
2693
|
">; rel=dns-prefetch"),
|
2626
|
-
|
2694
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2));
|
2627
2695
|
JSCompiler_temp
|
2628
2696
|
? ((renderState.resets.dns[href] = null),
|
2629
2697
|
resumableState.preconnects && (resumableState.preconnects += ", "),
|
@@ -2646,8 +2714,8 @@ function preconnect(href, crossOrigin) {
|
|
2646
2714
|
"use-credentials" === crossOrigin
|
2647
2715
|
? "credentials"
|
2648
2716
|
: "string" === typeof crossOrigin
|
2649
|
-
|
2650
|
-
|
2717
|
+
? "anonymous"
|
2718
|
+
: "default";
|
2651
2719
|
if (!resumableState.connectResources[bucket].hasOwnProperty(href)) {
|
2652
2720
|
resumableState.connectResources[bucket][href] = null;
|
2653
2721
|
resumableState = renderState.headers;
|
@@ -2672,7 +2740,7 @@ function preconnect(href, crossOrigin) {
|
|
2672
2740
|
}
|
2673
2741
|
JSCompiler_temp =
|
2674
2742
|
((header = JSCompiler_temp),
|
2675
|
-
|
2743
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2));
|
2676
2744
|
}
|
2677
2745
|
JSCompiler_temp
|
2678
2746
|
? ((renderState.resets.connect[bucket][href] = null),
|
@@ -2714,7 +2782,7 @@ function preload(href, as, options) {
|
|
2714
2782
|
0 < resumableState.remainingCapacity &&
|
2715
2783
|
"high" === fetchPriority &&
|
2716
2784
|
((header = getPreloadAsHeader(href, as, options)),
|
2717
|
-
|
2785
|
+
0 <= (resumableState.remainingCapacity -= header.length + 2))
|
2718
2786
|
? ((renderState.resets.image[key] = PRELOAD_NO_CREDS),
|
2719
2787
|
resumableState.highImagePreloads &&
|
2720
2788
|
(resumableState.highImagePreloads += ", "),
|
@@ -2780,7 +2848,7 @@ function preload(href, as, options) {
|
|
2780
2848
|
0 < resumableState.remainingCapacity &&
|
2781
2849
|
"font" === as &&
|
2782
2850
|
((key = getPreloadAsHeader(href, as, options)),
|
2783
|
-
|
2851
|
+
0 <= (resumableState.remainingCapacity -= key.length + 2))
|
2784
2852
|
)
|
2785
2853
|
(renderState.resets.font[href] = PRELOAD_NO_CREDS),
|
2786
2854
|
resumableState.fontPreloads &&
|
@@ -3003,7 +3071,8 @@ function hoistStyleQueueDependency(styleQueue) {
|
|
3003
3071
|
function hoistStylesheetDependency(stylesheet) {
|
3004
3072
|
this.stylesheets.add(stylesheet);
|
3005
3073
|
}
|
3006
|
-
var
|
3074
|
+
var bind = Function.prototype.bind,
|
3075
|
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
3007
3076
|
function getComponentNameFromType(type) {
|
3008
3077
|
if (null == type) return null;
|
3009
3078
|
if ("function" === typeof type)
|
@@ -3102,12 +3171,12 @@ function switchContext(newSnapshot) {
|
|
3102
3171
|
(null === prev
|
3103
3172
|
? pushAllNext(newSnapshot)
|
3104
3173
|
: null === newSnapshot
|
3105
|
-
|
3106
|
-
|
3107
|
-
|
3108
|
-
|
3109
|
-
|
3110
|
-
|
3174
|
+
? popAllPrevious(prev)
|
3175
|
+
: prev.depth === newSnapshot.depth
|
3176
|
+
? popToNearestCommonAncestor(prev, newSnapshot)
|
3177
|
+
: prev.depth > newSnapshot.depth
|
3178
|
+
? popPreviousToCommonLevel(prev, newSnapshot)
|
3179
|
+
: popNextToCommonLevel(prev, newSnapshot),
|
3111
3180
|
(currentActiveSnapshot = newSnapshot));
|
3112
3181
|
}
|
3113
3182
|
var classComponentUpdater = {
|
@@ -3246,9 +3315,9 @@ function createWorkInProgressHook() {
|
|
3246
3315
|
(firstWorkInProgressHook = workInProgressHook = createHook()))
|
3247
3316
|
: ((isReRender = !0), (workInProgressHook = firstWorkInProgressHook))
|
3248
3317
|
: null === workInProgressHook.next
|
3249
|
-
|
3250
|
-
|
3251
|
-
|
3318
|
+
? ((isReRender = !1),
|
3319
|
+
(workInProgressHook = workInProgressHook.next = createHook()))
|
3320
|
+
: ((isReRender = !0), (workInProgressHook = workInProgressHook.next));
|
3252
3321
|
return workInProgressHook;
|
3253
3322
|
}
|
3254
3323
|
function getThenableStateAfterSuspending() {
|
@@ -3295,8 +3364,8 @@ function useReducer(reducer, initialArg, init) {
|
|
3295
3364
|
? initialArg()
|
3296
3365
|
: initialArg
|
3297
3366
|
: void 0 !== init
|
3298
|
-
|
3299
|
-
|
3367
|
+
? init(initialArg)
|
3368
|
+
: initialArg;
|
3300
3369
|
workInProgressHook.memoizedState = reducer;
|
3301
3370
|
reducer = workInProgressHook.queue = { last: null, dispatch: null };
|
3302
3371
|
reducer = reducer.dispatch = dispatchAction.bind(
|
@@ -3517,7 +3586,8 @@ var currentResumableState = null,
|
|
3517
3586
|
throw Error(formatProdErrorMessage(248));
|
3518
3587
|
}
|
3519
3588
|
},
|
3520
|
-
prefix
|
3589
|
+
prefix,
|
3590
|
+
suffix;
|
3521
3591
|
function describeBuiltInComponentFrame(name) {
|
3522
3592
|
if (void 0 === prefix)
|
3523
3593
|
try {
|
@@ -3525,8 +3595,14 @@ function describeBuiltInComponentFrame(name) {
|
|
3525
3595
|
} catch (x) {
|
3526
3596
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
3527
3597
|
prefix = (match && match[1]) || "";
|
3598
|
+
suffix =
|
3599
|
+
-1 < x.stack.indexOf("\n at")
|
3600
|
+
? " (<anonymous>)"
|
3601
|
+
: -1 < x.stack.indexOf("@")
|
3602
|
+
? "@unknown:0:0"
|
3603
|
+
: "";
|
3528
3604
|
}
|
3529
|
-
return "\n" + prefix + name;
|
3605
|
+
return "\n" + prefix + name + suffix;
|
3530
3606
|
}
|
3531
3607
|
var reentry = !1;
|
3532
3608
|
function describeNativeComponentFrame(fn, construct) {
|
@@ -3534,62 +3610,64 @@ function describeNativeComponentFrame(fn, construct) {
|
|
3534
3610
|
reentry = !0;
|
3535
3611
|
var previousPrepareStackTrace = Error.prepareStackTrace;
|
3536
3612
|
Error.prepareStackTrace = void 0;
|
3537
|
-
|
3538
|
-
|
3539
|
-
|
3540
|
-
|
3541
|
-
|
3542
|
-
|
3543
|
-
};
|
3544
|
-
Object.defineProperty(Fake.prototype, "props", {
|
3545
|
-
set: function () {
|
3613
|
+
try {
|
3614
|
+
var RunInRootFrame = {
|
3615
|
+
DetermineComponentFrameRoot: function () {
|
3616
|
+
try {
|
3617
|
+
if (construct) {
|
3618
|
+
var Fake = function () {
|
3546
3619
|
throw Error();
|
3620
|
+
};
|
3621
|
+
Object.defineProperty(Fake.prototype, "props", {
|
3622
|
+
set: function () {
|
3623
|
+
throw Error();
|
3624
|
+
}
|
3625
|
+
});
|
3626
|
+
if ("object" === typeof Reflect && Reflect.construct) {
|
3627
|
+
try {
|
3628
|
+
Reflect.construct(Fake, []);
|
3629
|
+
} catch (x) {
|
3630
|
+
var control = x;
|
3631
|
+
}
|
3632
|
+
Reflect.construct(fn, [], Fake);
|
3633
|
+
} else {
|
3634
|
+
try {
|
3635
|
+
Fake.call();
|
3636
|
+
} catch (x$24) {
|
3637
|
+
control = x$24;
|
3638
|
+
}
|
3639
|
+
fn.call(Fake.prototype);
|
3547
3640
|
}
|
3548
|
-
});
|
3549
|
-
if ("object" === typeof Reflect && Reflect.construct) {
|
3550
|
-
try {
|
3551
|
-
Reflect.construct(Fake, []);
|
3552
|
-
} catch (x) {
|
3553
|
-
var control = x;
|
3554
|
-
}
|
3555
|
-
Reflect.construct(fn, [], Fake);
|
3556
3641
|
} else {
|
3557
3642
|
try {
|
3558
|
-
|
3559
|
-
} catch (x$
|
3560
|
-
control = x$
|
3643
|
+
throw Error();
|
3644
|
+
} catch (x$25) {
|
3645
|
+
control = x$25;
|
3561
3646
|
}
|
3562
|
-
fn
|
3647
|
+
(Fake = fn()) &&
|
3648
|
+
"function" === typeof Fake.catch &&
|
3649
|
+
Fake.catch(function () {});
|
3563
3650
|
}
|
3564
|
-
}
|
3565
|
-
|
3566
|
-
|
3567
|
-
} catch (x$25) {
|
3568
|
-
control = x$25;
|
3569
|
-
}
|
3570
|
-
(Fake = fn()) &&
|
3571
|
-
"function" === typeof Fake.catch &&
|
3572
|
-
Fake.catch(function () {});
|
3651
|
+
} catch (sample) {
|
3652
|
+
if (sample && control && "string" === typeof sample.stack)
|
3653
|
+
return [sample.stack, control.stack];
|
3573
3654
|
}
|
3574
|
-
|
3575
|
-
if (sample && control && "string" === typeof sample.stack)
|
3576
|
-
return [sample.stack, control.stack];
|
3655
|
+
return [null, null];
|
3577
3656
|
}
|
3578
|
-
|
3579
|
-
|
3580
|
-
|
3581
|
-
|
3582
|
-
|
3583
|
-
|
3584
|
-
|
3585
|
-
|
3586
|
-
|
3587
|
-
|
3588
|
-
|
3589
|
-
|
3590
|
-
|
3591
|
-
|
3592
|
-
try {
|
3657
|
+
};
|
3658
|
+
RunInRootFrame.DetermineComponentFrameRoot.displayName =
|
3659
|
+
"DetermineComponentFrameRoot";
|
3660
|
+
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
3661
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
3662
|
+
"name"
|
3663
|
+
);
|
3664
|
+
namePropDescriptor &&
|
3665
|
+
namePropDescriptor.configurable &&
|
3666
|
+
Object.defineProperty(
|
3667
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
3668
|
+
"name",
|
3669
|
+
{ value: "DetermineComponentFrameRoot" }
|
3670
|
+
);
|
3593
3671
|
var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(),
|
3594
3672
|
sampleStack = _RunInRootFrame$Deter[0],
|
3595
3673
|
controlStack = _RunInRootFrame$Deter[1];
|
@@ -3660,11 +3738,116 @@ function describeNativeComponentFrame(fn, construct) {
|
|
3660
3738
|
? describeBuiltInComponentFrame(previousPrepareStackTrace)
|
3661
3739
|
: "";
|
3662
3740
|
}
|
3741
|
+
function describeComponentStackByType(type) {
|
3742
|
+
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
3743
|
+
if ("function" === typeof type)
|
3744
|
+
return type.prototype && type.prototype.isReactComponent
|
3745
|
+
? ((type = describeNativeComponentFrame(type, !0)), type)
|
3746
|
+
: describeNativeComponentFrame(type, !1);
|
3747
|
+
if ("object" === typeof type && null !== type) {
|
3748
|
+
switch (type.$$typeof) {
|
3749
|
+
case REACT_FORWARD_REF_TYPE:
|
3750
|
+
return describeNativeComponentFrame(type.render, !1);
|
3751
|
+
case REACT_MEMO_TYPE:
|
3752
|
+
return describeNativeComponentFrame(type.type, !1);
|
3753
|
+
case REACT_LAZY_TYPE:
|
3754
|
+
var lazyComponent = type,
|
3755
|
+
payload = lazyComponent._payload;
|
3756
|
+
lazyComponent = lazyComponent._init;
|
3757
|
+
try {
|
3758
|
+
type = lazyComponent(payload);
|
3759
|
+
} catch (x) {
|
3760
|
+
return describeBuiltInComponentFrame("Lazy");
|
3761
|
+
}
|
3762
|
+
return describeComponentStackByType(type);
|
3763
|
+
}
|
3764
|
+
if ("string" === typeof type.name)
|
3765
|
+
return (
|
3766
|
+
(payload = type.env),
|
3767
|
+
describeBuiltInComponentFrame(
|
3768
|
+
type.name + (payload ? " [" + payload + "]" : "")
|
3769
|
+
)
|
3770
|
+
);
|
3771
|
+
}
|
3772
|
+
switch (type) {
|
3773
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
3774
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
3775
|
+
case REACT_SUSPENSE_TYPE:
|
3776
|
+
return describeBuiltInComponentFrame("Suspense");
|
3777
|
+
}
|
3778
|
+
return "";
|
3779
|
+
}
|
3663
3780
|
function defaultErrorHandler(error) {
|
3664
|
-
|
3781
|
+
if (
|
3782
|
+
"object" === typeof error &&
|
3783
|
+
null !== error &&
|
3784
|
+
"string" === typeof error.environmentName
|
3785
|
+
) {
|
3786
|
+
var JSCompiler_inline_result = error.environmentName;
|
3787
|
+
error = [error].slice(0);
|
3788
|
+
"string" === typeof error[0]
|
3789
|
+
? error.splice(
|
3790
|
+
0,
|
3791
|
+
1,
|
3792
|
+
"%c%s%c " + error[0],
|
3793
|
+
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
3794
|
+
" " + JSCompiler_inline_result + " ",
|
3795
|
+
""
|
3796
|
+
)
|
3797
|
+
: error.splice(
|
3798
|
+
0,
|
3799
|
+
0,
|
3800
|
+
"%c%s%c ",
|
3801
|
+
"background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",
|
3802
|
+
" " + JSCompiler_inline_result + " ",
|
3803
|
+
""
|
3804
|
+
);
|
3805
|
+
error.unshift(console);
|
3806
|
+
JSCompiler_inline_result = bind.apply(console.error, error);
|
3807
|
+
JSCompiler_inline_result();
|
3808
|
+
} else console.error(error);
|
3665
3809
|
return null;
|
3666
3810
|
}
|
3667
3811
|
function noop() {}
|
3812
|
+
function RequestInstance(
|
3813
|
+
resumableState,
|
3814
|
+
renderState,
|
3815
|
+
rootFormatContext,
|
3816
|
+
progressiveChunkSize,
|
3817
|
+
onError,
|
3818
|
+
onAllReady,
|
3819
|
+
onShellReady,
|
3820
|
+
onShellError,
|
3821
|
+
onFatalError,
|
3822
|
+
onPostpone,
|
3823
|
+
formState
|
3824
|
+
) {
|
3825
|
+
var abortSet = new Set();
|
3826
|
+
this.destination = null;
|
3827
|
+
this.flushScheduled = !1;
|
3828
|
+
this.resumableState = resumableState;
|
3829
|
+
this.renderState = renderState;
|
3830
|
+
this.rootFormatContext = rootFormatContext;
|
3831
|
+
this.progressiveChunkSize =
|
3832
|
+
void 0 === progressiveChunkSize ? 12800 : progressiveChunkSize;
|
3833
|
+
this.status = 10;
|
3834
|
+
this.fatalError = null;
|
3835
|
+
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
3836
|
+
this.completedRootSegment = null;
|
3837
|
+
this.abortableTasks = abortSet;
|
3838
|
+
this.pingedTasks = [];
|
3839
|
+
this.clientRenderedBoundaries = [];
|
3840
|
+
this.completedBoundaries = [];
|
3841
|
+
this.partialBoundaries = [];
|
3842
|
+
this.trackedPostpones = null;
|
3843
|
+
this.onError = void 0 === onError ? defaultErrorHandler : onError;
|
3844
|
+
this.onPostpone = void 0 === onPostpone ? noop : onPostpone;
|
3845
|
+
this.onAllReady = void 0 === onAllReady ? noop : onAllReady;
|
3846
|
+
this.onShellReady = void 0 === onShellReady ? noop : onShellReady;
|
3847
|
+
this.onShellError = void 0 === onShellError ? noop : onShellError;
|
3848
|
+
this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
|
3849
|
+
this.formState = void 0 === formState ? null : formState;
|
3850
|
+
}
|
3668
3851
|
function createRequest(
|
3669
3852
|
children,
|
3670
3853
|
resumableState,
|
@@ -3679,36 +3862,19 @@ function createRequest(
|
|
3679
3862
|
onPostpone,
|
3680
3863
|
formState
|
3681
3864
|
) {
|
3682
|
-
|
3683
|
-
|
3684
|
-
|
3685
|
-
|
3686
|
-
|
3687
|
-
|
3688
|
-
|
3689
|
-
|
3690
|
-
|
3691
|
-
|
3692
|
-
|
3693
|
-
|
3694
|
-
|
3695
|
-
allPendingTasks: 0,
|
3696
|
-
pendingRootTasks: 0,
|
3697
|
-
completedRootSegment: null,
|
3698
|
-
abortableTasks: abortSet,
|
3699
|
-
pingedTasks: pingedTasks,
|
3700
|
-
clientRenderedBoundaries: [],
|
3701
|
-
completedBoundaries: [],
|
3702
|
-
partialBoundaries: [],
|
3703
|
-
trackedPostpones: null,
|
3704
|
-
onError: void 0 === onError ? defaultErrorHandler : onError,
|
3705
|
-
onPostpone: void 0 === onPostpone ? noop : onPostpone,
|
3706
|
-
onAllReady: void 0 === onAllReady ? noop : onAllReady,
|
3707
|
-
onShellReady: void 0 === onShellReady ? noop : onShellReady,
|
3708
|
-
onShellError: void 0 === onShellError ? noop : onShellError,
|
3709
|
-
onFatalError: void 0 === onFatalError ? noop : onFatalError,
|
3710
|
-
formState: void 0 === formState ? null : formState
|
3711
|
-
};
|
3865
|
+
resumableState = new RequestInstance(
|
3866
|
+
resumableState,
|
3867
|
+
renderState,
|
3868
|
+
rootFormatContext,
|
3869
|
+
progressiveChunkSize,
|
3870
|
+
onError,
|
3871
|
+
onAllReady,
|
3872
|
+
onShellReady,
|
3873
|
+
onShellError,
|
3874
|
+
onFatalError,
|
3875
|
+
onPostpone,
|
3876
|
+
formState
|
3877
|
+
);
|
3712
3878
|
renderState = createPendingSegment(
|
3713
3879
|
resumableState,
|
3714
3880
|
0,
|
@@ -3726,24 +3892,64 @@ function createRequest(
|
|
3726
3892
|
null,
|
3727
3893
|
renderState,
|
3728
3894
|
null,
|
3729
|
-
|
3895
|
+
resumableState.abortableTasks,
|
3730
3896
|
null,
|
3731
3897
|
rootFormatContext,
|
3732
|
-
emptyContextObject,
|
3733
3898
|
null,
|
3734
3899
|
emptyTreeContext,
|
3735
3900
|
null,
|
3736
3901
|
!1
|
3737
3902
|
);
|
3738
|
-
|
3903
|
+
pushComponentStack(children);
|
3904
|
+
resumableState.pingedTasks.push(children);
|
3739
3905
|
return resumableState;
|
3740
3906
|
}
|
3907
|
+
function createPrerenderRequest(
|
3908
|
+
children,
|
3909
|
+
resumableState,
|
3910
|
+
renderState,
|
3911
|
+
rootFormatContext,
|
3912
|
+
progressiveChunkSize,
|
3913
|
+
onError,
|
3914
|
+
onAllReady,
|
3915
|
+
onShellReady,
|
3916
|
+
onShellError,
|
3917
|
+
onFatalError,
|
3918
|
+
onPostpone
|
3919
|
+
) {
|
3920
|
+
children = createRequest(
|
3921
|
+
children,
|
3922
|
+
resumableState,
|
3923
|
+
renderState,
|
3924
|
+
rootFormatContext,
|
3925
|
+
progressiveChunkSize,
|
3926
|
+
onError,
|
3927
|
+
onAllReady,
|
3928
|
+
onShellReady,
|
3929
|
+
onShellError,
|
3930
|
+
onFatalError,
|
3931
|
+
onPostpone,
|
3932
|
+
void 0
|
3933
|
+
);
|
3934
|
+
children.trackedPostpones = {
|
3935
|
+
workingMap: new Map(),
|
3936
|
+
rootNodes: [],
|
3937
|
+
rootSlots: null
|
3938
|
+
};
|
3939
|
+
return children;
|
3940
|
+
}
|
3741
3941
|
var currentRequest = null;
|
3742
3942
|
function pingTask(request, task) {
|
3743
3943
|
request.pingedTasks.push(task);
|
3744
3944
|
1 === request.pingedTasks.length &&
|
3745
3945
|
((request.flushScheduled = null !== request.destination),
|
3746
|
-
|
3946
|
+
null !== request.trackedPostpones || 10 === request.status
|
3947
|
+
? scheduleMicrotask(function () {
|
3948
|
+
return performWork(request);
|
3949
|
+
})
|
3950
|
+
: scheduleWork(function () {
|
3951
|
+
return performWork(request);
|
3952
|
+
}));
|
3747
3953
|
}
|
3748
3954
|
function createSuspenseBoundary(request, fallbackAbortableTasks) {
|
3749
3955
|
return {
|
@@ -3772,7 +3978,6 @@ function createRenderTask(
|
|
3772
3978
|
abortSet,
|
3773
3979
|
keyPath,
|
3774
3980
|
formatContext,
|
3775
|
-
legacyContext,
|
3776
3981
|
context,
|
3777
3982
|
treeContext,
|
3778
3983
|
componentStack,
|
@@ -3795,7 +4000,6 @@ function createRenderTask(
|
|
3795
4000
|
abortSet: abortSet,
|
3796
4001
|
keyPath: keyPath,
|
3797
4002
|
formatContext: formatContext,
|
3798
|
-
legacyContext: legacyContext,
|
3799
4003
|
context: context,
|
3800
4004
|
treeContext: treeContext,
|
3801
4005
|
componentStack: componentStack,
|
@@ -3816,7 +4020,6 @@ function createReplayTask(
|
|
3816
4020
|
abortSet,
|
3817
4021
|
keyPath,
|
3818
4022
|
formatContext,
|
3819
|
-
legacyContext,
|
3820
4023
|
context,
|
3821
4024
|
treeContext,
|
3822
4025
|
componentStack,
|
@@ -3840,7 +4043,6 @@ function createReplayTask(
|
|
3840
4043
|
abortSet: abortSet,
|
3841
4044
|
keyPath: keyPath,
|
3842
4045
|
formatContext: formatContext,
|
3843
|
-
legacyContext: legacyContext,
|
3844
4046
|
context: context,
|
3845
4047
|
treeContext: treeContext,
|
3846
4048
|
componentStack: componentStack,
|
@@ -3871,47 +4073,54 @@ function createPendingSegment(
|
|
3871
4073
|
textEmbedded: textEmbedded
|
3872
4074
|
};
|
3873
4075
|
}
|
3874
|
-
function
|
3875
|
-
|
4076
|
+
function pushComponentStack(task) {
|
4077
|
+
var node = task.node;
|
4078
|
+
if ("object" === typeof node && null !== node)
|
4079
|
+
switch (node.$$typeof) {
|
4080
|
+
case REACT_ELEMENT_TYPE:
|
4081
|
+
task.componentStack = { parent: task.componentStack, type: node.type };
|
4082
|
+
}
|
3876
4083
|
}
|
3877
|
-
function getThrownInfo(
|
3878
|
-
|
3879
|
-
|
3880
|
-
|
3881
|
-
|
3882
|
-
|
3883
|
-
|
3884
|
-
|
3885
|
-
|
3886
|
-
|
3887
|
-
|
3888
|
-
|
3889
|
-
|
3890
|
-
|
4084
|
+
function getThrownInfo(node$jscomp$0) {
|
4085
|
+
var errorInfo = {};
|
4086
|
+
node$jscomp$0 &&
|
4087
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
4088
|
+
configurable: !0,
|
4089
|
+
enumerable: !0,
|
4090
|
+
get: function () {
|
4091
|
+
try {
|
4092
|
+
var info = "",
|
4093
|
+
node = node$jscomp$0;
|
4094
|
+
do
|
4095
|
+
(info += describeComponentStackByType(node.type)),
|
4096
|
+
(node = node.parent);
|
4097
|
+
while (node);
|
4098
|
+
var JSCompiler_inline_result = info;
|
4099
|
+
} catch (x) {
|
4100
|
+
JSCompiler_inline_result =
|
4101
|
+
"\nError generating stack: " + x.message + "\n" + x.stack;
|
3891
4102
|
}
|
3892
|
-
|
3893
|
-
|
3894
|
-
|
3895
|
-
|
3896
|
-
|
3897
|
-
|
3898
|
-
|
3899
|
-
JSCompiler_temp = { componentStack: JSCompiler_temp };
|
3900
|
-
} else JSCompiler_temp = {};
|
3901
|
-
return JSCompiler_temp;
|
4103
|
+
Object.defineProperty(errorInfo, "componentStack", {
|
4104
|
+
value: JSCompiler_inline_result
|
4105
|
+
});
|
4106
|
+
return JSCompiler_inline_result;
|
4107
|
+
}
|
4108
|
+
});
|
4109
|
+
return errorInfo;
|
3902
4110
|
}
|
3903
4111
|
function logRecoverableError(request, error, errorInfo) {
|
3904
|
-
request = request.onError
|
3905
|
-
|
4112
|
+
request = request.onError;
|
4113
|
+
error = request(error, errorInfo);
|
4114
|
+
if (null == error || "string" === typeof error) return error;
|
3906
4115
|
}
|
3907
4116
|
function fatalError(request, error) {
|
3908
|
-
var onShellError = request.onShellError
|
3909
|
-
|
3910
|
-
onShellError = request.onFatalError;
|
4117
|
+
var onShellError = request.onShellError,
|
4118
|
+
onFatalError = request.onFatalError;
|
3911
4119
|
onShellError(error);
|
4120
|
+
onFatalError(error);
|
3912
4121
|
null !== request.destination
|
3913
|
-
? ((request.status =
|
3914
|
-
: ((request.status =
|
4122
|
+
? ((request.status = 14), closeWithError(request.destination, error))
|
4123
|
+
: ((request.status = 13), (request.fatalError = error));
|
3915
4124
|
}
|
3916
4125
|
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
|
3917
4126
|
var prevThenableState = task.thenableState;
|
@@ -3964,171 +4173,148 @@ function finishFunctionComponent(
|
|
3964
4173
|
renderNode(request, task, children, -1),
|
3965
4174
|
(task.treeContext = keyPath))
|
3966
4175
|
: didEmitActionStateMarkers
|
3967
|
-
|
3968
|
-
|
4176
|
+
? renderNode(request, task, children, -1)
|
4177
|
+
: renderNodeDestructive(request, task, children, -1);
|
3969
4178
|
task.keyPath = actionStateCount;
|
3970
4179
|
}
|
3971
4180
|
function renderElement(request, task, keyPath, type, props, ref) {
|
3972
4181
|
if ("function" === typeof type)
|
3973
4182
|
if (type.prototype && type.prototype.isReactComponent) {
|
3974
|
-
var
|
4183
|
+
var newProps = props;
|
3975
4184
|
if ("ref" in props) {
|
3976
|
-
|
4185
|
+
newProps = {};
|
3977
4186
|
for (var propName in props)
|
3978
|
-
"ref" !== propName &&
|
3979
|
-
(JSCompiler_inline_result[propName] = props[propName]);
|
4187
|
+
"ref" !== propName && (newProps[propName] = props[propName]);
|
3980
4188
|
}
|
3981
4189
|
var defaultProps = type.defaultProps;
|
3982
4190
|
if (defaultProps) {
|
3983
|
-
|
3984
|
-
|
3985
|
-
|
3986
|
-
|
3987
|
-
props
|
3988
|
-
));
|
3989
|
-
for (var propName$31 in defaultProps)
|
3990
|
-
void 0 === JSCompiler_inline_result[propName$31] &&
|
3991
|
-
(JSCompiler_inline_result[propName$31] = defaultProps[propName$31]);
|
4191
|
+
newProps === props && (newProps = assign({}, newProps, props));
|
4192
|
+
for (var propName$33 in defaultProps)
|
4193
|
+
void 0 === newProps[propName$33] &&
|
4194
|
+
(newProps[propName$33] = defaultProps[propName$33]);
|
3992
4195
|
}
|
3993
|
-
props =
|
3994
|
-
|
3995
|
-
defaultProps =
|
4196
|
+
props = newProps;
|
4197
|
+
newProps = emptyContextObject;
|
4198
|
+
defaultProps = type.contextType;
|
4199
|
+
"object" === typeof defaultProps &&
|
4200
|
+
null !== defaultProps &&
|
4201
|
+
(newProps = defaultProps._currentValue);
|
4202
|
+
newProps = new type(props, newProps);
|
4203
|
+
var initialState = void 0 !== newProps.state ? newProps.state : null;
|
4204
|
+
newProps.updater = classComponentUpdater;
|
4205
|
+
newProps.props = props;
|
4206
|
+
newProps.state = initialState;
|
4207
|
+
defaultProps = { queue: [], replace: !1 };
|
4208
|
+
newProps._reactInternals = defaultProps;
|
3996
4209
|
ref = type.contextType;
|
3997
|
-
|
3998
|
-
null !== ref
|
3999
|
-
|
4000
|
-
defaultProps = new type(JSCompiler_inline_result, defaultProps);
|
4001
|
-
propName$31 = void 0 !== defaultProps.state ? defaultProps.state : null;
|
4002
|
-
defaultProps.updater = classComponentUpdater;
|
4003
|
-
defaultProps.props = JSCompiler_inline_result;
|
4004
|
-
defaultProps.state = propName$31;
|
4005
|
-
ref = { queue: [], replace: !1 };
|
4006
|
-
defaultProps._reactInternals = ref;
|
4007
|
-
var contextType = type.contextType;
|
4008
|
-
defaultProps.context =
|
4009
|
-
"object" === typeof contextType && null !== contextType
|
4010
|
-
? contextType._currentValue
|
4210
|
+
newProps.context =
|
4211
|
+
"object" === typeof ref && null !== ref
|
4212
|
+
? ref._currentValue
|
4011
4213
|
: emptyContextObject;
|
4012
|
-
|
4013
|
-
"function" === typeof
|
4014
|
-
((
|
4015
|
-
(
|
4016
|
-
null ===
|
4017
|
-
?
|
4018
|
-
: assign({},
|
4019
|
-
(
|
4214
|
+
ref = type.getDerivedStateFromProps;
|
4215
|
+
"function" === typeof ref &&
|
4216
|
+
((ref = ref(props, initialState)),
|
4217
|
+
(initialState =
|
4218
|
+
null === ref || void 0 === ref
|
4219
|
+
? initialState
|
4220
|
+
: assign({}, initialState, ref)),
|
4221
|
+
(newProps.state = initialState));
|
4020
4222
|
if (
|
4021
4223
|
"function" !== typeof type.getDerivedStateFromProps &&
|
4022
|
-
"function" !== typeof
|
4023
|
-
("function" === typeof
|
4024
|
-
"function" === typeof
|
4224
|
+
"function" !== typeof newProps.getSnapshotBeforeUpdate &&
|
4225
|
+
("function" === typeof newProps.UNSAFE_componentWillMount ||
|
4226
|
+
"function" === typeof newProps.componentWillMount)
|
4025
4227
|
)
|
4026
4228
|
if (
|
4027
|
-
((type =
|
4028
|
-
"function" === typeof
|
4029
|
-
|
4030
|
-
"function" === typeof
|
4031
|
-
|
4032
|
-
type !==
|
4229
|
+
((type = newProps.state),
|
4230
|
+
"function" === typeof newProps.componentWillMount &&
|
4231
|
+
newProps.componentWillMount(),
|
4232
|
+
"function" === typeof newProps.UNSAFE_componentWillMount &&
|
4233
|
+
newProps.UNSAFE_componentWillMount(),
|
4234
|
+
type !== newProps.state &&
|
4033
4235
|
classComponentUpdater.enqueueReplaceState(
|
4034
|
-
|
4035
|
-
|
4236
|
+
newProps,
|
4237
|
+
newProps.state,
|
4036
4238
|
null
|
4037
4239
|
),
|
4038
|
-
null !==
|
4240
|
+
null !== defaultProps.queue && 0 < defaultProps.queue.length)
|
4039
4241
|
)
|
4040
4242
|
if (
|
4041
|
-
((type =
|
4042
|
-
(
|
4043
|
-
(
|
4044
|
-
(
|
4045
|
-
|
4243
|
+
((type = defaultProps.queue),
|
4244
|
+
(ref = defaultProps.replace),
|
4245
|
+
(defaultProps.queue = null),
|
4246
|
+
(defaultProps.replace = !1),
|
4247
|
+
ref && 1 === type.length)
|
4046
4248
|
)
|
4047
|
-
|
4249
|
+
newProps.state = type[0];
|
4048
4250
|
else {
|
4049
|
-
|
4050
|
-
|
4051
|
-
for (
|
4052
|
-
|
4053
|
-
|
4054
|
-
|
4055
|
-
|
4056
|
-
|
4057
|
-
|
4058
|
-
|
4059
|
-
?
|
4060
|
-
|
4061
|
-
|
4062
|
-
|
4063
|
-
void 0
|
4064
|
-
)
|
4065
|
-
: propName),
|
4066
|
-
null != propName &&
|
4067
|
-
(propName$31
|
4068
|
-
? ((propName$31 = !1), (ref = assign({}, ref, propName)))
|
4069
|
-
: assign(ref, propName));
|
4070
|
-
defaultProps.state = ref;
|
4251
|
+
defaultProps = ref ? type[0] : newProps.state;
|
4252
|
+
initialState = !0;
|
4253
|
+
for (ref = ref ? 1 : 0; ref < type.length; ref++)
|
4254
|
+
(propName$33 = type[ref]),
|
4255
|
+
(propName$33 =
|
4256
|
+
"function" === typeof propName$33
|
4257
|
+
? propName$33.call(newProps, defaultProps, props, void 0)
|
4258
|
+
: propName$33),
|
4259
|
+
null != propName$33 &&
|
4260
|
+
(initialState
|
4261
|
+
? ((initialState = !1),
|
4262
|
+
(defaultProps = assign({}, defaultProps, propName$33)))
|
4263
|
+
: assign(defaultProps, propName$33));
|
4264
|
+
newProps.state = defaultProps;
|
4071
4265
|
}
|
4072
|
-
else
|
4073
|
-
type =
|
4074
|
-
|
4266
|
+
else defaultProps.queue = null;
|
4267
|
+
type = newProps.render();
|
4268
|
+
if (12 === request.status) throw null;
|
4269
|
+
props = task.keyPath;
|
4075
4270
|
task.keyPath = keyPath;
|
4076
4271
|
renderNodeDestructive(request, task, type, -1);
|
4077
|
-
task.keyPath =
|
4078
|
-
|
4079
|
-
|
4080
|
-
(
|
4081
|
-
|
4082
|
-
|
4083
|
-
|
4084
|
-
|
4085
|
-
|
4086
|
-
|
4087
|
-
|
4088
|
-
|
4089
|
-
|
4090
|
-
|
4091
|
-
|
4092
|
-
|
4093
|
-
|
4094
|
-
|
4095
|
-
),
|
4096
|
-
(task.
|
4097
|
-
else if ("string" === typeof type) {
|
4098
|
-
JSCompiler_inline_result = task.componentStack;
|
4099
|
-
task.componentStack = createBuiltInComponentStack(task, type);
|
4100
|
-
defaultProps = task.blockedSegment;
|
4101
|
-
if (null === defaultProps)
|
4102
|
-
(defaultProps = props.children),
|
4103
|
-
(ref = task.formatContext),
|
4104
|
-
(propName$31 = task.keyPath),
|
4105
|
-
(task.formatContext = getChildFormatContext(ref, type, props)),
|
4272
|
+
task.keyPath = props;
|
4273
|
+
} else {
|
4274
|
+
type = renderWithHooks(request, task, keyPath, type, props, void 0);
|
4275
|
+
if (12 === request.status) throw null;
|
4276
|
+
finishFunctionComponent(
|
4277
|
+
request,
|
4278
|
+
task,
|
4279
|
+
keyPath,
|
4280
|
+
type,
|
4281
|
+
0 !== localIdCounter,
|
4282
|
+
actionStateCounter,
|
4283
|
+
actionStateMatchingIndex
|
4284
|
+
);
|
4285
|
+
}
|
4286
|
+
else if ("string" === typeof type)
|
4287
|
+
if (((newProps = task.blockedSegment), null === newProps))
|
4288
|
+
(newProps = props.children),
|
4289
|
+
(defaultProps = task.formatContext),
|
4290
|
+
(initialState = task.keyPath),
|
4291
|
+
(task.formatContext = getChildFormatContext(defaultProps, type, props)),
|
4106
4292
|
(task.keyPath = keyPath),
|
4107
|
-
renderNode(request, task,
|
4108
|
-
(task.formatContext =
|
4109
|
-
(task.keyPath =
|
4293
|
+
renderNode(request, task, newProps, -1),
|
4294
|
+
(task.formatContext = defaultProps),
|
4295
|
+
(task.keyPath = initialState);
|
4110
4296
|
else {
|
4111
|
-
|
4112
|
-
|
4297
|
+
initialState = pushStartInstance(
|
4298
|
+
newProps.chunks,
|
4113
4299
|
type,
|
4114
4300
|
props,
|
4115
4301
|
request.resumableState,
|
4116
4302
|
request.renderState,
|
4117
4303
|
task.hoistableState,
|
4118
4304
|
task.formatContext,
|
4119
|
-
|
4305
|
+
newProps.lastPushedText,
|
4120
4306
|
task.isFallback
|
4121
4307
|
);
|
4122
|
-
|
4123
|
-
|
4124
|
-
|
4125
|
-
task.formatContext = getChildFormatContext(
|
4308
|
+
newProps.lastPushedText = !1;
|
4309
|
+
defaultProps = task.formatContext;
|
4310
|
+
ref = task.keyPath;
|
4311
|
+
task.formatContext = getChildFormatContext(defaultProps, type, props);
|
4126
4312
|
task.keyPath = keyPath;
|
4127
|
-
renderNode(request, task,
|
4128
|
-
task.formatContext =
|
4129
|
-
task.keyPath =
|
4313
|
+
renderNode(request, task, initialState, -1);
|
4314
|
+
task.formatContext = defaultProps;
|
4315
|
+
task.keyPath = ref;
|
4130
4316
|
a: {
|
4131
|
-
|
4317
|
+
task = newProps.chunks;
|
4132
4318
|
request = request.resumableState;
|
4133
4319
|
switch (type) {
|
4134
4320
|
case "title":
|
@@ -4151,23 +4337,22 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4151
4337
|
case "wbr":
|
4152
4338
|
break a;
|
4153
4339
|
case "body":
|
4154
|
-
if (1 >=
|
4340
|
+
if (1 >= defaultProps.insertionMode) {
|
4155
4341
|
request.hasBody = !0;
|
4156
4342
|
break a;
|
4157
4343
|
}
|
4158
4344
|
break;
|
4159
4345
|
case "html":
|
4160
|
-
if (0 ===
|
4346
|
+
if (0 === defaultProps.insertionMode) {
|
4161
4347
|
request.hasHtml = !0;
|
4162
4348
|
break a;
|
4163
4349
|
}
|
4164
4350
|
}
|
4165
|
-
|
4351
|
+
task.push(endChunkForTag(type));
|
4166
4352
|
}
|
4167
|
-
|
4353
|
+
newProps.lastPushedText = !1;
|
4168
4354
|
}
|
4169
|
-
|
4170
|
-
} else {
|
4355
|
+
else {
|
4171
4356
|
switch (type) {
|
4172
4357
|
case REACT_LEGACY_HIDDEN_TYPE:
|
4173
4358
|
case REACT_DEBUG_TRACING_MODE_TYPE:
|
@@ -4187,13 +4372,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4187
4372
|
(task.keyPath = type));
|
4188
4373
|
return;
|
4189
4374
|
case REACT_SUSPENSE_LIST_TYPE:
|
4190
|
-
type = task.
|
4191
|
-
task.componentStack = createBuiltInComponentStack(task, "SuspenseList");
|
4192
|
-
JSCompiler_inline_result = task.keyPath;
|
4375
|
+
type = task.keyPath;
|
4193
4376
|
task.keyPath = keyPath;
|
4194
4377
|
renderNodeDestructive(request, task, props.children, -1);
|
4195
|
-
task.keyPath =
|
4196
|
-
task.componentStack = type;
|
4378
|
+
task.keyPath = type;
|
4197
4379
|
return;
|
4198
4380
|
case REACT_SCOPE_TYPE:
|
4199
4381
|
throw Error(formatProdErrorMessage(343));
|
@@ -4208,31 +4390,26 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4208
4390
|
task.keyPath = type;
|
4209
4391
|
}
|
4210
4392
|
} else {
|
4211
|
-
|
4212
|
-
|
4213
|
-
task
|
4214
|
-
|
4215
|
-
|
4216
|
-
|
4217
|
-
|
4218
|
-
|
4219
|
-
parentSegment = task.blockedSegment;
|
4220
|
-
propName$31 = props.fallback;
|
4221
|
-
var content = props.children;
|
4222
|
-
props = new Set();
|
4223
|
-
contextType = createSuspenseBoundary(request, props);
|
4393
|
+
type = task.keyPath;
|
4394
|
+
var parentBoundary = task.blockedBoundary,
|
4395
|
+
parentHoistableState = task.hoistableState;
|
4396
|
+
ref = task.blockedSegment;
|
4397
|
+
propName$33 = props.fallback;
|
4398
|
+
props = props.children;
|
4399
|
+
var fallbackAbortSet = new Set();
|
4400
|
+
propName = createSuspenseBoundary(request, fallbackAbortSet);
|
4224
4401
|
null !== request.trackedPostpones &&
|
4225
|
-
(
|
4226
|
-
|
4402
|
+
(propName.trackedContentKeyPath = keyPath);
|
4403
|
+
var boundarySegment = createPendingSegment(
|
4227
4404
|
request,
|
4228
|
-
|
4229
|
-
|
4405
|
+
ref.chunks.length,
|
4406
|
+
propName,
|
4230
4407
|
task.formatContext,
|
4231
4408
|
!1,
|
4232
4409
|
!1
|
4233
4410
|
);
|
4234
|
-
|
4235
|
-
|
4411
|
+
ref.children.push(boundarySegment);
|
4412
|
+
ref.lastPushedText = !1;
|
4236
4413
|
var contentRootSegment = createPendingSegment(
|
4237
4414
|
request,
|
4238
4415
|
0,
|
@@ -4242,107 +4419,122 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4242
4419
|
!1
|
4243
4420
|
);
|
4244
4421
|
contentRootSegment.parentFlushed = !0;
|
4245
|
-
|
4246
|
-
|
4247
|
-
|
4248
|
-
|
4249
|
-
|
4250
|
-
|
4251
|
-
|
4252
|
-
|
4253
|
-
|
4254
|
-
|
4255
|
-
|
4256
|
-
|
4257
|
-
|
4258
|
-
|
4259
|
-
|
4260
|
-
|
4261
|
-
|
4422
|
+
if (null !== request.trackedPostpones) {
|
4423
|
+
newProps = [keyPath[0], "Suspense Fallback", keyPath[2]];
|
4424
|
+
defaultProps = [newProps[1], newProps[2], [], null];
|
4425
|
+
request.trackedPostpones.workingMap.set(newProps, defaultProps);
|
4426
|
+
propName.trackedFallbackNode = defaultProps;
|
4427
|
+
task.blockedSegment = boundarySegment;
|
4428
|
+
task.keyPath = newProps;
|
4429
|
+
boundarySegment.status = 6;
|
4430
|
+
try {
|
4431
|
+
renderNode(request, task, propName$33, -1),
|
4432
|
+
boundarySegment.lastPushedText &&
|
4433
|
+
boundarySegment.textEmbedded &&
|
4434
|
+
boundarySegment.chunks.push(textSeparator),
|
4435
|
+
(boundarySegment.status = 1);
|
4436
|
+
} catch (thrownValue) {
|
4437
|
+
throw (
|
4438
|
+
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
4439
|
+
thrownValue)
|
4440
|
+
);
|
4441
|
+
} finally {
|
4442
|
+
(task.blockedSegment = ref), (task.keyPath = type);
|
4262
4443
|
}
|
4263
|
-
|
4264
|
-
|
4265
|
-
|
4266
|
-
|
4267
|
-
|
4268
|
-
|
4269
|
-
|
4270
|
-
|
4271
|
-
|
4272
|
-
|
4273
|
-
|
4274
|
-
|
4275
|
-
|
4276
|
-
|
4277
|
-
|
4278
|
-
|
4279
|
-
|
4280
|
-
|
4281
|
-
|
4282
|
-
|
4444
|
+
task = createRenderTask(
|
4445
|
+
request,
|
4446
|
+
null,
|
4447
|
+
props,
|
4448
|
+
-1,
|
4449
|
+
propName,
|
4450
|
+
contentRootSegment,
|
4451
|
+
propName.contentState,
|
4452
|
+
task.abortSet,
|
4453
|
+
keyPath,
|
4454
|
+
task.formatContext,
|
4455
|
+
task.context,
|
4456
|
+
task.treeContext,
|
4457
|
+
task.componentStack,
|
4458
|
+
task.isFallback
|
4459
|
+
);
|
4460
|
+
pushComponentStack(task);
|
4461
|
+
request.pingedTasks.push(task);
|
4462
|
+
} else {
|
4463
|
+
task.blockedBoundary = propName;
|
4464
|
+
task.hoistableState = propName.contentState;
|
4465
|
+
task.blockedSegment = contentRootSegment;
|
4466
|
+
task.keyPath = keyPath;
|
4467
|
+
contentRootSegment.status = 6;
|
4468
|
+
try {
|
4469
|
+
if (
|
4470
|
+
(renderNode(request, task, props, -1),
|
4471
|
+
contentRootSegment.lastPushedText &&
|
4472
|
+
contentRootSegment.textEmbedded &&
|
4473
|
+
contentRootSegment.chunks.push(textSeparator),
|
4474
|
+
(contentRootSegment.status = 1),
|
4475
|
+
queueCompletedSegment(propName, contentRootSegment),
|
4476
|
+
0 === propName.pendingTasks && 0 === propName.status)
|
4477
|
+
) {
|
4478
|
+
propName.status = 1;
|
4479
|
+
break a;
|
4480
|
+
}
|
4481
|
+
} catch (thrownValue$28) {
|
4482
|
+
(propName.status = 4),
|
4483
|
+
12 === request.status
|
4484
|
+
? ((contentRootSegment.status = 3),
|
4485
|
+
(newProps = request.fatalError))
|
4486
|
+
: ((contentRootSegment.status = 4),
|
4487
|
+
(newProps = thrownValue$28)),
|
4488
|
+
(defaultProps = getThrownInfo(task.componentStack)),
|
4489
|
+
(initialState = logRecoverableError(
|
4490
|
+
request,
|
4491
|
+
newProps,
|
4492
|
+
defaultProps
|
4493
|
+
)),
|
4494
|
+
(propName.errorDigest = initialState),
|
4495
|
+
untrackBoundary(request, propName);
|
4496
|
+
} finally {
|
4497
|
+
(task.blockedBoundary = parentBoundary),
|
4498
|
+
(task.hoistableState = parentHoistableState),
|
4499
|
+
(task.blockedSegment = ref),
|
4500
|
+
(task.keyPath = type);
|
4501
|
+
}
|
4502
|
+
task = createRenderTask(
|
4503
|
+
request,
|
4504
|
+
null,
|
4505
|
+
propName$33,
|
4506
|
+
-1,
|
4507
|
+
parentBoundary,
|
4508
|
+
boundarySegment,
|
4509
|
+
propName.fallbackState,
|
4510
|
+
fallbackAbortSet,
|
4511
|
+
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
4512
|
+
task.formatContext,
|
4513
|
+
task.context,
|
4514
|
+
task.treeContext,
|
4515
|
+
task.componentStack,
|
4516
|
+
!0
|
4517
|
+
);
|
4518
|
+
pushComponentStack(task);
|
4519
|
+
request.pingedTasks.push(task);
|
4283
4520
|
}
|
4284
|
-
JSCompiler_inline_result = [
|
4285
|
-
keyPath[0],
|
4286
|
-
"Suspense Fallback",
|
4287
|
-
keyPath[2]
|
4288
|
-
];
|
4289
|
-
defaultProps = request.trackedPostpones;
|
4290
|
-
null !== defaultProps &&
|
4291
|
-
((previousComponentStack = [
|
4292
|
-
JSCompiler_inline_result[1],
|
4293
|
-
JSCompiler_inline_result[2],
|
4294
|
-
[],
|
4295
|
-
null
|
4296
|
-
]),
|
4297
|
-
defaultProps.workingMap.set(
|
4298
|
-
JSCompiler_inline_result,
|
4299
|
-
previousComponentStack
|
4300
|
-
),
|
4301
|
-
5 === contextType.status
|
4302
|
-
? (defaultProps.workingMap.get(keyPath)[4] =
|
4303
|
-
previousComponentStack)
|
4304
|
-
: (contextType.trackedFallbackNode = previousComponentStack));
|
4305
|
-
task = createRenderTask(
|
4306
|
-
request,
|
4307
|
-
null,
|
4308
|
-
propName$31,
|
4309
|
-
-1,
|
4310
|
-
ref,
|
4311
|
-
propName,
|
4312
|
-
contextType.fallbackState,
|
4313
|
-
props,
|
4314
|
-
JSCompiler_inline_result,
|
4315
|
-
task.formatContext,
|
4316
|
-
task.legacyContext,
|
4317
|
-
task.context,
|
4318
|
-
task.treeContext,
|
4319
|
-
type,
|
4320
|
-
!0
|
4321
|
-
);
|
4322
|
-
request.pingedTasks.push(task);
|
4323
4521
|
}
|
4324
4522
|
return;
|
4325
4523
|
}
|
4326
4524
|
if ("object" === typeof type && null !== type)
|
4327
4525
|
switch (type.$$typeof) {
|
4328
4526
|
case REACT_FORWARD_REF_TYPE:
|
4329
|
-
JSCompiler_inline_result = task.componentStack;
|
4330
|
-
task.componentStack = {
|
4331
|
-
tag: 1,
|
4332
|
-
parent: task.componentStack,
|
4333
|
-
type: type.render
|
4334
|
-
};
|
4335
4527
|
if ("ref" in props)
|
4336
|
-
for (
|
4337
|
-
"ref" !==
|
4338
|
-
(
|
4339
|
-
else
|
4528
|
+
for (boundarySegment in ((newProps = {}), props))
|
4529
|
+
"ref" !== boundarySegment &&
|
4530
|
+
(newProps[boundarySegment] = props[boundarySegment]);
|
4531
|
+
else newProps = props;
|
4340
4532
|
type = renderWithHooks(
|
4341
4533
|
request,
|
4342
4534
|
task,
|
4343
4535
|
keyPath,
|
4344
4536
|
type.render,
|
4345
|
-
|
4537
|
+
newProps,
|
4346
4538
|
ref
|
4347
4539
|
);
|
4348
4540
|
finishFunctionComponent(
|
@@ -4354,7 +4546,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4354
4546
|
actionStateCounter,
|
4355
4547
|
actionStateMatchingIndex
|
4356
4548
|
);
|
4357
|
-
task.componentStack = JSCompiler_inline_result;
|
4358
4549
|
return;
|
4359
4550
|
case REACT_MEMO_TYPE:
|
4360
4551
|
renderElement(request, task, keyPath, type.type, props, ref);
|
@@ -4362,16 +4553,16 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4362
4553
|
case REACT_PROVIDER_TYPE:
|
4363
4554
|
case REACT_CONTEXT_TYPE:
|
4364
4555
|
defaultProps = props.children;
|
4365
|
-
|
4556
|
+
newProps = task.keyPath;
|
4366
4557
|
props = props.value;
|
4367
|
-
|
4558
|
+
initialState = type._currentValue;
|
4368
4559
|
type._currentValue = props;
|
4369
|
-
|
4560
|
+
ref = currentActiveSnapshot;
|
4370
4561
|
currentActiveSnapshot = type = {
|
4371
|
-
parent:
|
4372
|
-
depth: null ===
|
4562
|
+
parent: ref,
|
4563
|
+
depth: null === ref ? 0 : ref.depth + 1,
|
4373
4564
|
context: type,
|
4374
|
-
parentValue:
|
4565
|
+
parentValue: initialState,
|
4375
4566
|
value: props
|
4376
4567
|
};
|
4377
4568
|
task.context = type;
|
@@ -4382,7 +4573,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4382
4573
|
request.context._currentValue = request.parentValue;
|
4383
4574
|
request = currentActiveSnapshot = request.parent;
|
4384
4575
|
task.context = request;
|
4385
|
-
task.keyPath =
|
4576
|
+
task.keyPath = newProps;
|
4386
4577
|
return;
|
4387
4578
|
case REACT_CONSUMER_TYPE:
|
4388
4579
|
props = props.children;
|
@@ -4393,12 +4584,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4393
4584
|
task.keyPath = props;
|
4394
4585
|
return;
|
4395
4586
|
case REACT_LAZY_TYPE:
|
4396
|
-
|
4397
|
-
|
4398
|
-
|
4399
|
-
type
|
4400
|
-
renderElement(request, task, keyPath, type, props, void 0);
|
4401
|
-
task.componentStack = JSCompiler_inline_result;
|
4587
|
+
newProps = type._init;
|
4588
|
+
type = newProps(type._payload);
|
4589
|
+
if (12 === request.status) throw null;
|
4590
|
+
renderElement(request, task, keyPath, type, props, ref);
|
4402
4591
|
return;
|
4403
4592
|
}
|
4404
4593
|
throw Error(
|
@@ -4433,23 +4622,29 @@ function resumeNode(request, task, segmentId, node, childIndex) {
|
|
4433
4622
|
(task.replay = prevReplay), (task.blockedSegment = null);
|
4434
4623
|
}
|
4435
4624
|
}
|
4436
|
-
function renderNodeDestructive(request, task, node
|
4437
|
-
|
4438
|
-
resumeNode(request, task, task.replay.slots, node
|
4439
|
-
|
4440
|
-
|
4441
|
-
|
4442
|
-
|
4443
|
-
|
4444
|
-
|
4445
|
-
|
4625
|
+
function renderNodeDestructive(request, task, node, childIndex) {
|
4626
|
+
null !== task.replay && "number" === typeof task.replay.slots
|
4627
|
+
? resumeNode(request, task, task.replay.slots, node, childIndex)
|
4628
|
+
: ((task.node = node),
|
4629
|
+
(task.childIndex = childIndex),
|
4630
|
+
(node = task.componentStack),
|
4631
|
+
pushComponentStack(task),
|
4632
|
+
retryNode(request, task),
|
4633
|
+
(task.componentStack = node));
|
4634
|
+
}
|
4635
|
+
function retryNode(request, task) {
|
4636
|
+
var node = task.node,
|
4637
|
+
childIndex = task.childIndex;
|
4638
|
+
if (null !== node) {
|
4639
|
+
if ("object" === typeof node) {
|
4640
|
+
switch (node.$$typeof) {
|
4446
4641
|
case REACT_ELEMENT_TYPE:
|
4447
|
-
var type = node
|
4448
|
-
key = node
|
4449
|
-
props = node
|
4450
|
-
node
|
4451
|
-
var ref = void 0 !== node
|
4452
|
-
|
4642
|
+
var type = node.type,
|
4643
|
+
key = node.key,
|
4644
|
+
props = node.props;
|
4645
|
+
node = props.ref;
|
4646
|
+
var ref = void 0 !== node ? node : null,
|
4647
|
+
name = getComponentNameFromType(type),
|
4453
4648
|
keyOrIndex =
|
4454
4649
|
null == key ? (-1 === childIndex ? 0 : childIndex) : key;
|
4455
4650
|
key = [task.keyPath, name, keyOrIndex];
|
@@ -4457,18 +4652,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4457
4652
|
a: {
|
4458
4653
|
var replay = task.replay;
|
4459
4654
|
childIndex = replay.nodes;
|
4460
|
-
for (
|
4461
|
-
node$jscomp$0 =
|
4462
|
-
node$jscomp$0
|
4463
|
-
|
4464
|
-
|
4465
|
-
|
4466
|
-
|
4467
|
-
|
4468
|
-
|
4469
|
-
|
4470
|
-
var childNodes = node[2];
|
4471
|
-
name = node[3];
|
4655
|
+
for (node = 0; node < childIndex.length; node++) {
|
4656
|
+
var node$jscomp$0 = childIndex[node];
|
4657
|
+
if (keyOrIndex === node$jscomp$0[1]) {
|
4658
|
+
if (4 === node$jscomp$0.length) {
|
4659
|
+
if (null !== name && name !== node$jscomp$0[0])
|
4660
|
+
throw Error(
|
4661
|
+
formatProdErrorMessage(490, node$jscomp$0[0], name)
|
4662
|
+
);
|
4663
|
+
var childNodes = node$jscomp$0[2];
|
4664
|
+
name = node$jscomp$0[3];
|
4472
4665
|
keyOrIndex = task.node;
|
4473
4666
|
task.replay = {
|
4474
4667
|
nodes: childNodes,
|
@@ -4495,14 +4688,13 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4495
4688
|
x)
|
4496
4689
|
);
|
4497
4690
|
task.replay.pendingTasks--;
|
4498
|
-
props = getThrownInfo(
|
4499
|
-
key =
|
4500
|
-
request = task.blockedBoundary;
|
4691
|
+
props = getThrownInfo(task.componentStack);
|
4692
|
+
key = task.blockedBoundary;
|
4501
4693
|
type = x;
|
4502
|
-
props = logRecoverableError(
|
4694
|
+
props = logRecoverableError(request, type, props);
|
4503
4695
|
abortRemainingReplayNodes(
|
4504
|
-
key,
|
4505
4696
|
request,
|
4697
|
+
key,
|
4506
4698
|
childNodes,
|
4507
4699
|
name,
|
4508
4700
|
type,
|
@@ -4521,15 +4713,14 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4521
4713
|
);
|
4522
4714
|
b: {
|
4523
4715
|
replay = void 0;
|
4524
|
-
type = node[5];
|
4525
|
-
ref = node[2];
|
4526
|
-
name = node[3];
|
4527
|
-
keyOrIndex =
|
4528
|
-
|
4529
|
-
|
4530
|
-
|
4531
|
-
|
4532
|
-
prevKeyPath = task.keyPath,
|
4716
|
+
type = node$jscomp$0[5];
|
4717
|
+
ref = node$jscomp$0[2];
|
4718
|
+
name = node$jscomp$0[3];
|
4719
|
+
keyOrIndex =
|
4720
|
+
null === node$jscomp$0[4] ? [] : node$jscomp$0[4][2];
|
4721
|
+
node$jscomp$0 =
|
4722
|
+
null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
|
4723
|
+
var prevKeyPath = task.keyPath,
|
4533
4724
|
previousReplaySet = task.replay,
|
4534
4725
|
parentBoundary = task.blockedBoundary,
|
4535
4726
|
parentHoistableState = task.hoistableState,
|
@@ -4544,6 +4735,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4544
4735
|
resumedBoundary.rootSegmentID = type;
|
4545
4736
|
task.blockedBoundary = resumedBoundary;
|
4546
4737
|
task.hoistableState = resumedBoundary.contentState;
|
4738
|
+
task.keyPath = key;
|
4547
4739
|
task.replay = {
|
4548
4740
|
nodes: ref,
|
4549
4741
|
slots: name,
|
@@ -4567,10 +4759,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4567
4759
|
}
|
4568
4760
|
} catch (error) {
|
4569
4761
|
(resumedBoundary.status = 4),
|
4570
|
-
(childNodes = getThrownInfo(
|
4571
|
-
request,
|
4572
|
-
task.componentStack
|
4573
|
-
)),
|
4762
|
+
(childNodes = getThrownInfo(task.componentStack)),
|
4574
4763
|
(replay = logRecoverableError(
|
4575
4764
|
request,
|
4576
4765
|
error,
|
@@ -4585,13 +4774,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4585
4774
|
(task.blockedBoundary = parentBoundary),
|
4586
4775
|
(task.hoistableState = parentHoistableState),
|
4587
4776
|
(task.replay = previousReplaySet),
|
4588
|
-
(task.keyPath = prevKeyPath)
|
4589
|
-
(task.componentStack = previousComponentStack);
|
4777
|
+
(task.keyPath = prevKeyPath);
|
4590
4778
|
}
|
4591
4779
|
task = createReplayTask(
|
4592
4780
|
request,
|
4593
4781
|
null,
|
4594
|
-
{
|
4782
|
+
{
|
4783
|
+
nodes: keyOrIndex,
|
4784
|
+
slots: node$jscomp$0,
|
4785
|
+
pendingTasks: 0
|
4786
|
+
},
|
4595
4787
|
props,
|
4596
4788
|
-1,
|
4597
4789
|
parentBoundary,
|
@@ -4599,16 +4791,16 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4599
4791
|
fallbackAbortSet,
|
4600
4792
|
[key[0], "Suspense Fallback", key[2]],
|
4601
4793
|
task.formatContext,
|
4602
|
-
task.legacyContext,
|
4603
4794
|
task.context,
|
4604
4795
|
task.treeContext,
|
4605
|
-
|
4796
|
+
task.componentStack,
|
4606
4797
|
!0
|
4607
4798
|
);
|
4799
|
+
pushComponentStack(task);
|
4608
4800
|
request.pingedTasks.push(task);
|
4609
4801
|
}
|
4610
4802
|
}
|
4611
|
-
childIndex.splice(node
|
4803
|
+
childIndex.splice(node, 1);
|
4612
4804
|
break a;
|
4613
4805
|
}
|
4614
4806
|
}
|
@@ -4618,81 +4810,69 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) {
|
|
4618
4810
|
case REACT_PORTAL_TYPE:
|
4619
4811
|
throw Error(formatProdErrorMessage(257));
|
4620
4812
|
case REACT_LAZY_TYPE:
|
4621
|
-
childNodes =
|
4622
|
-
|
4623
|
-
|
4624
|
-
|
4625
|
-
task.componentStack = childNodes;
|
4626
|
-
renderNodeDestructive(request, task, node$jscomp$0, childIndex);
|
4813
|
+
childNodes = node._init;
|
4814
|
+
node = childNodes(node._payload);
|
4815
|
+
if (12 === request.status) throw null;
|
4816
|
+
renderNodeDestructive(request, task, node, childIndex);
|
4627
4817
|
return;
|
4628
4818
|
}
|
4629
|
-
if (isArrayImpl(node
|
4630
|
-
renderChildrenArray(request, task, node
|
4819
|
+
if (isArrayImpl(node)) {
|
4820
|
+
renderChildrenArray(request, task, node, childIndex);
|
4631
4821
|
return;
|
4632
4822
|
}
|
4633
|
-
null === node
|
4823
|
+
null === node || "object" !== typeof node
|
4634
4824
|
? (childNodes = null)
|
4635
4825
|
: ((childNodes =
|
4636
|
-
(MAYBE_ITERATOR_SYMBOL && node
|
4637
|
-
node
|
4826
|
+
(MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
|
4827
|
+
node["@@iterator"]),
|
4638
4828
|
(childNodes = "function" === typeof childNodes ? childNodes : null));
|
4639
|
-
if (childNodes && (childNodes = childNodes.call(node
|
4640
|
-
node
|
4641
|
-
if (!node
|
4829
|
+
if (childNodes && (childNodes = childNodes.call(node))) {
|
4830
|
+
node = childNodes.next();
|
4831
|
+
if (!node.done) {
|
4642
4832
|
props = [];
|
4643
|
-
do
|
4644
|
-
|
4645
|
-
(node$jscomp$0 = childNodes.next());
|
4646
|
-
while (!node$jscomp$0.done);
|
4833
|
+
do props.push(node.value), (node = childNodes.next());
|
4834
|
+
while (!node.done);
|
4647
4835
|
renderChildrenArray(request, task, props, childIndex);
|
4648
4836
|
}
|
4649
4837
|
return;
|
4650
4838
|
}
|
4651
|
-
if ("function" === typeof node
|
4839
|
+
if ("function" === typeof node.then)
|
4652
4840
|
return (
|
4653
4841
|
(task.thenableState = null),
|
4654
|
-
renderNodeDestructive(
|
4655
|
-
request,
|
4656
|
-
task,
|
4657
|
-
unwrapThenable(node$jscomp$0),
|
4658
|
-
childIndex
|
4659
|
-
)
|
4842
|
+
renderNodeDestructive(request, task, unwrapThenable(node), childIndex)
|
4660
4843
|
);
|
4661
|
-
if (node
|
4844
|
+
if (node.$$typeof === REACT_CONTEXT_TYPE)
|
4662
4845
|
return renderNodeDestructive(
|
4663
4846
|
request,
|
4664
4847
|
task,
|
4665
|
-
node
|
4848
|
+
node._currentValue,
|
4666
4849
|
childIndex
|
4667
4850
|
);
|
4668
|
-
childIndex = Object.prototype.toString.call(node
|
4851
|
+
childIndex = Object.prototype.toString.call(node);
|
4669
4852
|
throw Error(
|
4670
4853
|
formatProdErrorMessage(
|
4671
4854
|
31,
|
4672
4855
|
"[object Object]" === childIndex
|
4673
|
-
? "object with keys {" + Object.keys(node
|
4856
|
+
? "object with keys {" + Object.keys(node).join(", ") + "}"
|
4674
4857
|
: childIndex
|
4675
4858
|
)
|
4676
4859
|
);
|
4677
4860
|
}
|
4678
|
-
if ("string" === typeof node
|
4861
|
+
if ("string" === typeof node)
|
4679
4862
|
(childIndex = task.blockedSegment),
|
4680
4863
|
null !== childIndex &&
|
4681
4864
|
(childIndex.lastPushedText = pushTextInstance(
|
4682
4865
|
childIndex.chunks,
|
4683
|
-
node
|
4866
|
+
node,
|
4684
4867
|
request.renderState,
|
4685
4868
|
childIndex.lastPushedText
|
4686
4869
|
));
|
4687
|
-
else if (
|
4688
|
-
"number" === typeof node$jscomp$0 ||
|
4689
|
-
"bigint" === typeof node$jscomp$0
|
4690
|
-
)
|
4870
|
+
else if ("number" === typeof node || "bigint" === typeof node)
|
4691
4871
|
(childIndex = task.blockedSegment),
|
4692
4872
|
null !== childIndex &&
|
4693
4873
|
(childIndex.lastPushedText = pushTextInstance(
|
4694
4874
|
childIndex.chunks,
|
4695
|
-
"" + node
|
4875
|
+
"" + node,
|
4696
4876
|
request.renderState,
|
4697
4877
|
childIndex.lastPushedText
|
4698
4878
|
));
|
@@ -4728,7 +4908,7 @@ function renderChildrenArray(request, task, children, childIndex) {
|
|
4728
4908
|
)
|
4729
4909
|
throw x;
|
4730
4910
|
task.replay.pendingTasks--;
|
4731
|
-
children = getThrownInfo(
|
4911
|
+
children = getThrownInfo(task.componentStack);
|
4732
4912
|
var boundary = task.blockedBoundary,
|
4733
4913
|
error = x;
|
4734
4914
|
children = logRecoverableError(request, error, children);
|
@@ -4783,9 +4963,55 @@ function untrackBoundary(request, boundary) {
|
|
4783
4963
|
void 0 !== boundary &&
|
4784
4964
|
((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
|
4785
4965
|
}
|
4966
|
+
function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
4967
|
+
return createReplayTask(
|
4968
|
+
request,
|
4969
|
+
thenableState,
|
4970
|
+
task.replay,
|
4971
|
+
task.node,
|
4972
|
+
task.childIndex,
|
4973
|
+
task.blockedBoundary,
|
4974
|
+
task.hoistableState,
|
4975
|
+
task.abortSet,
|
4976
|
+
task.keyPath,
|
4977
|
+
task.formatContext,
|
4978
|
+
task.context,
|
4979
|
+
task.treeContext,
|
4980
|
+
task.componentStack,
|
4981
|
+
task.isFallback
|
4982
|
+
);
|
4983
|
+
}
|
4984
|
+
function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
4985
|
+
var segment = task.blockedSegment,
|
4986
|
+
newSegment = createPendingSegment(
|
4987
|
+
request,
|
4988
|
+
segment.chunks.length,
|
4989
|
+
null,
|
4990
|
+
task.formatContext,
|
4991
|
+
segment.lastPushedText,
|
4992
|
+
!0
|
4993
|
+
);
|
4994
|
+
segment.children.push(newSegment);
|
4995
|
+
segment.lastPushedText = !1;
|
4996
|
+
return createRenderTask(
|
4997
|
+
request,
|
4998
|
+
thenableState,
|
4999
|
+
task.node,
|
5000
|
+
task.childIndex,
|
5001
|
+
task.blockedBoundary,
|
5002
|
+
newSegment,
|
5003
|
+
task.hoistableState,
|
5004
|
+
task.abortSet,
|
5005
|
+
task.keyPath,
|
5006
|
+
task.formatContext,
|
5007
|
+
task.context,
|
5008
|
+
task.treeContext,
|
5009
|
+
task.componentStack,
|
5010
|
+
task.isFallback
|
5011
|
+
);
|
5012
|
+
}
|
4786
5013
|
function renderNode(request, task, node, childIndex) {
|
4787
5014
|
var previousFormatContext = task.formatContext,
|
4788
|
-
previousLegacyContext = task.legacyContext,
|
4789
5015
|
previousContext = task.context,
|
4790
5016
|
previousKeyPath = task.keyPath,
|
4791
5017
|
previousTreeContext = task.treeContext,
|
@@ -4801,37 +5027,32 @@ function renderNode(request, task, node, childIndex) {
|
|
4801
5027
|
thrownValue === SuspenseException
|
4802
5028
|
? getSuspendedThenable()
|
4803
5029
|
: thrownValue),
|
4804
|
-
"object" === typeof node &&
|
4805
|
-
null !== node &&
|
4806
|
-
"function" === typeof node.then)
|
5030
|
+
"object" === typeof node && null !== node)
|
4807
5031
|
) {
|
4808
|
-
|
4809
|
-
|
4810
|
-
request,
|
4811
|
-
|
4812
|
-
task.
|
4813
|
-
task.
|
4814
|
-
task.
|
4815
|
-
task.
|
4816
|
-
task.
|
4817
|
-
|
4818
|
-
|
4819
|
-
|
4820
|
-
|
4821
|
-
|
4822
|
-
task
|
4823
|
-
|
4824
|
-
task.
|
4825
|
-
|
4826
|
-
|
4827
|
-
|
4828
|
-
|
4829
|
-
|
4830
|
-
|
4831
|
-
|
4832
|
-
task.componentStack = previousComponentStack;
|
4833
|
-
switchContext(previousContext);
|
4834
|
-
return;
|
5032
|
+
if ("function" === typeof node.then) {
|
5033
|
+
childIndex = getThenableStateAfterSuspending();
|
5034
|
+
request = spawnNewSuspendedReplayTask(request, task, childIndex).ping;
|
5035
|
+
node.then(request, request);
|
5036
|
+
task.formatContext = previousFormatContext;
|
5037
|
+
task.context = previousContext;
|
5038
|
+
task.keyPath = previousKeyPath;
|
5039
|
+
task.treeContext = previousTreeContext;
|
5040
|
+
task.componentStack = previousComponentStack;
|
5041
|
+
switchContext(previousContext);
|
5042
|
+
return;
|
5043
|
+
}
|
5044
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
5045
|
+
node = getThenableStateAfterSuspending();
|
5046
|
+
node = spawnNewSuspendedReplayTask(request, task, node);
|
5047
|
+
request.pingedTasks.push(node);
|
5048
|
+
task.formatContext = previousFormatContext;
|
5049
|
+
task.context = previousContext;
|
5050
|
+
task.keyPath = previousKeyPath;
|
5051
|
+
task.treeContext = previousTreeContext;
|
5052
|
+
task.componentStack = previousComponentStack;
|
5053
|
+
switchContext(previousContext);
|
5054
|
+
return;
|
5055
|
+
}
|
4835
5056
|
}
|
4836
5057
|
}
|
4837
5058
|
else {
|
@@ -4839,62 +5060,45 @@ function renderNode(request, task, node, childIndex) {
|
|
4839
5060
|
chunkLength = segment.chunks.length;
|
4840
5061
|
try {
|
4841
5062
|
return renderNodeDestructive(request, task, node, childIndex);
|
4842
|
-
} catch (thrownValue$
|
5063
|
+
} catch (thrownValue$48) {
|
4843
5064
|
if (
|
4844
5065
|
(resetHooksState(),
|
4845
5066
|
(segment.children.length = childrenLength),
|
4846
5067
|
(segment.chunks.length = chunkLength),
|
4847
5068
|
(node =
|
4848
|
-
thrownValue$
|
5069
|
+
thrownValue$48 === SuspenseException
|
4849
5070
|
? getSuspendedThenable()
|
4850
|
-
: thrownValue$
|
4851
|
-
"object" === typeof node &&
|
4852
|
-
null !== node &&
|
4853
|
-
"function" === typeof node.then)
|
5071
|
+
: thrownValue$48),
|
5072
|
+
"object" === typeof node && null !== node)
|
4854
5073
|
) {
|
4855
|
-
|
4856
|
-
|
4857
|
-
|
4858
|
-
request,
|
4859
|
-
|
4860
|
-
|
4861
|
-
task.
|
4862
|
-
|
4863
|
-
|
4864
|
-
|
4865
|
-
|
4866
|
-
|
4867
|
-
|
4868
|
-
|
4869
|
-
|
4870
|
-
|
4871
|
-
task.
|
4872
|
-
task.
|
4873
|
-
|
4874
|
-
task.
|
4875
|
-
task.
|
4876
|
-
|
4877
|
-
|
4878
|
-
|
4879
|
-
task.context,
|
4880
|
-
task.treeContext,
|
4881
|
-
null !== task.componentStack ? task.componentStack.parent : null,
|
4882
|
-
task.isFallback
|
4883
|
-
).ping;
|
4884
|
-
node.then(request, request);
|
4885
|
-
task.formatContext = previousFormatContext;
|
4886
|
-
task.legacyContext = previousLegacyContext;
|
4887
|
-
task.context = previousContext;
|
4888
|
-
task.keyPath = previousKeyPath;
|
4889
|
-
task.treeContext = previousTreeContext;
|
4890
|
-
task.componentStack = previousComponentStack;
|
4891
|
-
switchContext(previousContext);
|
4892
|
-
return;
|
5074
|
+
if ("function" === typeof node.then) {
|
5075
|
+
childIndex = getThenableStateAfterSuspending();
|
5076
|
+
request = spawnNewSuspendedRenderTask(request, task, childIndex).ping;
|
5077
|
+
node.then(request, request);
|
5078
|
+
task.formatContext = previousFormatContext;
|
5079
|
+
task.context = previousContext;
|
5080
|
+
task.keyPath = previousKeyPath;
|
5081
|
+
task.treeContext = previousTreeContext;
|
5082
|
+
task.componentStack = previousComponentStack;
|
5083
|
+
switchContext(previousContext);
|
5084
|
+
return;
|
5085
|
+
}
|
5086
|
+
if ("Maximum call stack size exceeded" === node.message) {
|
5087
|
+
node = getThenableStateAfterSuspending();
|
5088
|
+
node = spawnNewSuspendedRenderTask(request, task, node);
|
5089
|
+
request.pingedTasks.push(node);
|
5090
|
+
task.formatContext = previousFormatContext;
|
5091
|
+
task.context = previousContext;
|
5092
|
+
task.keyPath = previousKeyPath;
|
5093
|
+
task.treeContext = previousTreeContext;
|
5094
|
+
task.componentStack = previousComponentStack;
|
5095
|
+
switchContext(previousContext);
|
5096
|
+
return;
|
5097
|
+
}
|
4893
5098
|
}
|
4894
5099
|
}
|
4895
5100
|
}
|
4896
5101
|
task.formatContext = previousFormatContext;
|
4897
|
-
task.legacyContext = previousLegacyContext;
|
4898
5102
|
task.context = previousContext;
|
4899
5103
|
task.keyPath = previousKeyPath;
|
4900
5104
|
task.treeContext = previousTreeContext;
|
@@ -4952,26 +5156,30 @@ function abortRemainingReplayNodes(
|
|
4952
5156
|
function abortTask(task, request, error) {
|
4953
5157
|
var boundary = task.blockedBoundary,
|
4954
5158
|
segment = task.blockedSegment;
|
4955
|
-
null !== segment
|
5159
|
+
if (null !== segment) {
|
5160
|
+
if (6 === segment.status) return;
|
5161
|
+
segment.status = 3;
|
5162
|
+
}
|
5163
|
+
segment = getThrownInfo(task.componentStack);
|
4956
5164
|
if (null === boundary) {
|
4957
|
-
if (
|
4958
|
-
|
4959
|
-
if (null ===
|
4960
|
-
logRecoverableError(request, error,
|
5165
|
+
if (13 !== request.status && 14 !== request.status) {
|
5166
|
+
boundary = task.replay;
|
5167
|
+
if (null === boundary) {
|
5168
|
+
logRecoverableError(request, error, segment);
|
4961
5169
|
fatalError(request, error);
|
4962
5170
|
return;
|
4963
5171
|
}
|
4964
|
-
|
4965
|
-
0 ===
|
4966
|
-
0 <
|
4967
|
-
((
|
5172
|
+
boundary.pendingTasks--;
|
5173
|
+
0 === boundary.pendingTasks &&
|
5174
|
+
0 < boundary.nodes.length &&
|
5175
|
+
((task = logRecoverableError(request, error, segment)),
|
4968
5176
|
abortRemainingReplayNodes(
|
4969
5177
|
request,
|
4970
5178
|
null,
|
4971
|
-
|
4972
|
-
|
5179
|
+
boundary.nodes,
|
5180
|
+
boundary.slots,
|
4973
5181
|
error,
|
4974
|
-
|
5182
|
+
task
|
4975
5183
|
));
|
4976
5184
|
request.pendingRootTasks--;
|
4977
5185
|
0 === request.pendingRootTasks && completeShell(request);
|
@@ -4980,8 +5188,8 @@ function abortTask(task, request, error) {
|
|
4980
5188
|
boundary.pendingTasks--,
|
4981
5189
|
4 !== boundary.status &&
|
4982
5190
|
((boundary.status = 4),
|
4983
|
-
(task =
|
4984
|
-
(
|
5191
|
+
(task = logRecoverableError(request, error, segment)),
|
5192
|
+
(boundary.status = 4),
|
4985
5193
|
(boundary.errorDigest = task),
|
4986
5194
|
untrackBoundary(request, boundary),
|
4987
5195
|
boundary.parentFlushed &&
|
@@ -5035,7 +5243,7 @@ function safelyEmitEarlyPreloads(request, shellComplete) {
|
|
5035
5243
|
referrerPolicy: props$jscomp$0.referrerPolicy,
|
5036
5244
|
media: props$jscomp$0.media
|
5037
5245
|
});
|
5038
|
-
if (
|
5246
|
+
if (0 <= (headers.remainingCapacity -= header.length + 2))
|
5039
5247
|
(renderState.resets.style[key] = PRELOAD_NO_CREDS),
|
5040
5248
|
linkHeader && (linkHeader += ", "),
|
5041
5249
|
(linkHeader += header),
|
@@ -5118,7 +5326,7 @@ function finishedTask(request, boundary, segment) {
|
|
5118
5326
|
0 === request.allPendingTasks && completeAll(request);
|
5119
5327
|
}
|
5120
5328
|
function performWork(request$jscomp$2) {
|
5121
|
-
if (2 !== request$jscomp$2.status) {
|
5329
|
+
if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
|
5122
5330
|
var prevContext = currentActiveSnapshot,
|
5123
5331
|
prevDispatcher = ReactSharedInternals.H;
|
5124
5332
|
ReactSharedInternals.H = HooksDispatcher;
|
@@ -5140,12 +5348,15 @@ function performWork(request$jscomp$2) {
|
|
5140
5348
|
if (0 !== task.replay.pendingTasks) {
|
5141
5349
|
switchContext(task.context);
|
5142
5350
|
try {
|
5143
|
-
|
5144
|
-
|
5145
|
-
|
5146
|
-
|
5147
|
-
|
5148
|
-
|
5351
|
+
"number" === typeof task.replay.slots
|
5352
|
+
? resumeNode(
|
5353
|
+
request$jscomp$0,
|
5354
|
+
task,
|
5355
|
+
task.replay.slots,
|
5356
|
+
task.node,
|
5357
|
+
task.childIndex
|
5358
|
+
)
|
5359
|
+
: retryNode(request$jscomp$0, task);
|
5149
5360
|
if (
|
5150
5361
|
1 === task.replay.pendingTasks &&
|
5151
5362
|
0 < task.replay.nodes.length
|
@@ -5168,19 +5379,17 @@ function performWork(request$jscomp$2) {
|
|
5168
5379
|
var ping = task.ping;
|
5169
5380
|
x.then(ping, ping);
|
5170
5381
|
task.thenableState = getThenableStateAfterSuspending();
|
5171
|
-
null !== task.componentStack &&
|
5172
|
-
(task.componentStack = task.componentStack.parent);
|
5173
5382
|
} else {
|
5174
5383
|
task.replay.pendingTasks--;
|
5175
5384
|
task.abortSet.delete(task);
|
5176
|
-
var errorInfo = getThrownInfo(
|
5177
|
-
request$jscomp$0,
|
5178
|
-
task.componentStack
|
5179
|
-
);
|
5385
|
+
var errorInfo = getThrownInfo(task.componentStack);
|
5180
5386
|
request = void 0;
|
5181
5387
|
var request$jscomp$1 = request$jscomp$0,
|
5182
5388
|
boundary = task.blockedBoundary,
|
5183
|
-
error$jscomp$0 =
|
5389
|
+
error$jscomp$0 =
|
5390
|
+
12 === request$jscomp$0.status
|
5391
|
+
? request$jscomp$0.fatalError
|
5392
|
+
: x,
|
5184
5393
|
replayNodes = task.replay.nodes,
|
5185
5394
|
resumeSlots = task.replay.slots;
|
5186
5395
|
request = logRecoverableError(
|
@@ -5211,11 +5420,12 @@ function performWork(request$jscomp$2) {
|
|
5211
5420
|
(request$jscomp$1 = segment),
|
5212
5421
|
0 === request$jscomp$1.status)
|
5213
5422
|
) {
|
5423
|
+
request$jscomp$1.status = 6;
|
5214
5424
|
switchContext(task.context);
|
5215
5425
|
var childrenLength = request$jscomp$1.children.length,
|
5216
5426
|
chunkLength = request$jscomp$1.chunks.length;
|
5217
5427
|
try {
|
5218
|
-
|
5428
|
+
retryNode(request, task),
|
5219
5429
|
request$jscomp$1.lastPushedText &&
|
5220
5430
|
request$jscomp$1.textEmbedded &&
|
5221
5431
|
request$jscomp$1.chunks.push(textSeparator),
|
@@ -5229,22 +5439,20 @@ function performWork(request$jscomp$2) {
|
|
5229
5439
|
var x$jscomp$0 =
|
5230
5440
|
thrownValue === SuspenseException
|
5231
5441
|
? getSuspendedThenable()
|
5232
|
-
:
|
5442
|
+
: 12 === request.status
|
5443
|
+
? request.fatalError
|
5444
|
+
: thrownValue;
|
5233
5445
|
if (
|
5234
5446
|
"object" === typeof x$jscomp$0 &&
|
5235
5447
|
null !== x$jscomp$0 &&
|
5236
5448
|
"function" === typeof x$jscomp$0.then
|
5237
5449
|
) {
|
5450
|
+
request$jscomp$1.status = 0;
|
5451
|
+
task.thenableState = getThenableStateAfterSuspending();
|
5238
5452
|
var ping$jscomp$0 = task.ping;
|
5239
5453
|
x$jscomp$0.then(ping$jscomp$0, ping$jscomp$0);
|
5240
|
-
task.thenableState = getThenableStateAfterSuspending();
|
5241
|
-
null !== task.componentStack &&
|
5242
|
-
(task.componentStack = task.componentStack.parent);
|
5243
5454
|
} else {
|
5244
|
-
var errorInfo$jscomp$0 = getThrownInfo(
|
5245
|
-
request,
|
5246
|
-
task.componentStack
|
5247
|
-
);
|
5455
|
+
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
5248
5456
|
task.abortSet.delete(task);
|
5249
5457
|
request$jscomp$1.status = 4;
|
5250
5458
|
var boundary$jscomp$0 = task.blockedBoundary;
|
@@ -5419,13 +5627,13 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5419
5627
|
? ((completedSegments.instructions |= 10),
|
5420
5628
|
writeChunk(destination, completeBoundaryWithStylesScript1FullBoth))
|
5421
5629
|
: 0 === (completedSegments.instructions & 8)
|
5422
|
-
|
5423
|
-
|
5424
|
-
|
5630
|
+
? ((completedSegments.instructions |= 8),
|
5631
|
+
writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
|
5632
|
+
: writeChunk(destination, completeBoundaryWithStylesScript1Partial)
|
5425
5633
|
: 0 === (completedSegments.instructions & 2)
|
5426
|
-
|
5427
|
-
|
5428
|
-
|
5634
|
+
? ((completedSegments.instructions |= 2),
|
5635
|
+
writeChunk(destination, completeBoundaryScript1Full))
|
5636
|
+
: writeChunk(destination, completeBoundaryScript1Partial);
|
5429
5637
|
completedSegments = stringToChunk(i.toString(16));
|
5430
5638
|
writeChunk(destination, request.boundaryPrefix);
|
5431
5639
|
writeChunk(destination, completedSegments);
|
@@ -5622,11 +5830,11 @@ function flushCompletedQueues(request, destination) {
|
|
5622
5830
|
writtenBytes = 0;
|
5623
5831
|
var partialBoundaries = request.partialBoundaries;
|
5624
5832
|
for (i = 0; i < partialBoundaries.length; i++) {
|
5625
|
-
var boundary$
|
5833
|
+
var boundary$51 = partialBoundaries[i];
|
5626
5834
|
a: {
|
5627
5835
|
clientRenderedBoundaries = request;
|
5628
5836
|
boundary = destination;
|
5629
|
-
var completedSegments = boundary$
|
5837
|
+
var completedSegments = boundary$51.completedSegments;
|
5630
5838
|
for (
|
5631
5839
|
JSCompiler_inline_result = 0;
|
5632
5840
|
JSCompiler_inline_result < completedSegments.length;
|
@@ -5636,7 +5844,7 @@ function flushCompletedQueues(request, destination) {
|
|
5636
5844
|
!flushPartiallyCompletedSegment(
|
5637
5845
|
clientRenderedBoundaries,
|
5638
5846
|
boundary,
|
5639
|
-
boundary$
|
5847
|
+
boundary$51,
|
5640
5848
|
completedSegments[JSCompiler_inline_result]
|
5641
5849
|
)
|
5642
5850
|
) {
|
@@ -5648,7 +5856,7 @@ function flushCompletedQueues(request, destination) {
|
|
5648
5856
|
completedSegments.splice(0, JSCompiler_inline_result);
|
5649
5857
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
5650
5858
|
boundary,
|
5651
|
-
boundary$
|
5859
|
+
boundary$51.contentState,
|
5652
5860
|
clientRenderedBoundaries.renderState
|
5653
5861
|
);
|
5654
5862
|
}
|
@@ -5680,30 +5888,61 @@ function flushCompletedQueues(request, destination) {
|
|
5680
5888
|
i.hasBody && writeChunk(destination, endChunkForTag("body")),
|
5681
5889
|
i.hasHtml && writeChunk(destination, endChunkForTag("html")),
|
5682
5890
|
completeWriting(destination),
|
5891
|
+
(request.status = 14),
|
5683
5892
|
destination.close(),
|
5684
5893
|
(request.destination = null))
|
5685
5894
|
: completeWriting(destination);
|
5686
5895
|
}
|
5687
5896
|
}
|
5897
|
+
function startWork(request) {
|
5898
|
+
request.flushScheduled = null !== request.destination;
|
5899
|
+
scheduleMicrotask(function () {
|
5900
|
+
return performWork(request);
|
5901
|
+
});
|
5902
|
+
scheduleWork(function () {
|
5903
|
+
10 === request.status && (request.status = 11);
|
5904
|
+
null === request.trackedPostpones &&
|
5905
|
+
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
|
5906
|
+
});
|
5907
|
+
}
|
5688
5908
|
function enqueueFlush(request) {
|
5689
|
-
|
5690
|
-
!1 === request.flushScheduled &&
|
5909
|
+
!1 === request.flushScheduled &&
|
5691
5910
|
0 === request.pingedTasks.length &&
|
5692
|
-
null !== request.destination
|
5693
|
-
|
5694
|
-
|
5695
|
-
|
5696
|
-
|
5697
|
-
|
5698
|
-
|
5911
|
+
null !== request.destination &&
|
5912
|
+
((request.flushScheduled = !0),
|
5913
|
+
scheduleWork(function () {
|
5914
|
+
var destination = request.destination;
|
5915
|
+
destination
|
5916
|
+
? flushCompletedQueues(request, destination)
|
5917
|
+
: (request.flushScheduled = !1);
|
5918
|
+
}));
|
5919
|
+
}
|
5920
|
+
function startFlowing(request, destination) {
|
5921
|
+
if (13 === request.status)
|
5922
|
+
(request.status = 14), closeWithError(destination, request.fatalError);
|
5923
|
+
else if (14 !== request.status && null === request.destination) {
|
5924
|
+
request.destination = destination;
|
5925
|
+
try {
|
5926
|
+
flushCompletedQueues(request, destination);
|
5927
|
+
} catch (error) {
|
5928
|
+
logRecoverableError(request, error, {}), fatalError(request, error);
|
5929
|
+
}
|
5699
5930
|
}
|
5700
5931
|
}
|
5701
5932
|
function abort(request, reason) {
|
5933
|
+
if (11 === request.status || 10 === request.status) request.status = 12;
|
5702
5934
|
try {
|
5703
5935
|
var abortableTasks = request.abortableTasks;
|
5704
5936
|
if (0 < abortableTasks.size) {
|
5705
5937
|
var error =
|
5706
|
-
void 0 === reason
|
5938
|
+
void 0 === reason
|
5939
|
+
? Error(formatProdErrorMessage(432))
|
5940
|
+
: "object" === typeof reason &&
|
5941
|
+
null !== reason &&
|
5942
|
+
"function" === typeof reason.then
|
5943
|
+
? Error(formatProdErrorMessage(530))
|
5944
|
+
: reason;
|
5945
|
+
request.fatalError = error;
|
5707
5946
|
abortableTasks.forEach(function (task) {
|
5708
5947
|
return abortTask(task, request, error);
|
5709
5948
|
});
|
@@ -5711,22 +5950,89 @@ function abort(request, reason) {
|
|
5711
5950
|
}
|
5712
5951
|
null !== request.destination &&
|
5713
5952
|
flushCompletedQueues(request, request.destination);
|
5714
|
-
} catch (error$
|
5715
|
-
logRecoverableError(request, error$
|
5953
|
+
} catch (error$53) {
|
5954
|
+
logRecoverableError(request, error$53, {}), fatalError(request, error$53);
|
5716
5955
|
}
|
5717
5956
|
}
|
5718
|
-
|
5719
|
-
|
5720
|
-
"19.0.0" !==
|
5721
|
-
|
5722
|
-
|
5723
|
-
|
5724
|
-
|
5725
|
-
|
5726
|
-
|
5727
|
-
|
5728
|
-
|
5729
|
-
|
5957
|
+
function ensureCorrectIsomorphicReactVersion() {
|
5958
|
+
var isomorphicReactPackageVersion = React.version;
|
5959
|
+
if ("19.0.0" !== isomorphicReactPackageVersion)
|
5960
|
+
throw Error(
|
5961
|
+
formatProdErrorMessage(
|
5962
|
+
527,
|
5963
|
+
isomorphicReactPackageVersion,
|
5964
|
+
"19.0.0"
|
5965
|
+
)
|
5966
|
+
);
|
5967
|
+
}
|
5968
|
+
ensureCorrectIsomorphicReactVersion();
|
5969
|
+
ensureCorrectIsomorphicReactVersion();
|
5970
|
+
exports.prerender = function (children, options) {
|
5971
|
+
return new Promise(function (resolve, reject) {
|
5972
|
+
var onHeaders = options ? options.onHeaders : void 0,
|
5973
|
+
onHeadersImpl;
|
5974
|
+
onHeaders &&
|
5975
|
+
(onHeadersImpl = function (headersDescriptor) {
|
5976
|
+
onHeaders(new Headers(headersDescriptor));
|
5977
|
+
});
|
5978
|
+
var resources = createResumableState(
|
5979
|
+
options ? options.identifierPrefix : void 0,
|
5980
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
5981
|
+
options ? options.bootstrapScriptContent : void 0,
|
5982
|
+
options ? options.bootstrapScripts : void 0,
|
5983
|
+
options ? options.bootstrapModules : void 0
|
5984
|
+
),
|
5985
|
+
request = createPrerenderRequest(
|
5986
|
+
children,
|
5987
|
+
resources,
|
5988
|
+
createRenderState(
|
5989
|
+
resources,
|
5990
|
+
void 0,
|
5991
|
+
options ? options.unstable_externalRuntimeSrc : void 0,
|
5992
|
+
options ? options.importMap : void 0,
|
5993
|
+
onHeadersImpl,
|
5994
|
+
options ? options.maxHeadersLength : void 0
|
5995
|
+
),
|
5996
|
+
createRootFormatContext(options ? options.namespaceURI : void 0),
|
5997
|
+
options ? options.progressiveChunkSize : void 0,
|
5998
|
+
options ? options.onError : void 0,
|
5999
|
+
function () {
|
6000
|
+
var result = {
|
6001
|
+
prelude: new ReadableStream(
|
6002
|
+
{
|
6003
|
+
type: "bytes",
|
6004
|
+
pull: function (controller) {
|
6005
|
+
startFlowing(request, controller);
|
6006
|
+
},
|
6007
|
+
cancel: function (reason) {
|
6008
|
+
request.destination = null;
|
6009
|
+
abort(request, reason);
|
6010
|
+
}
|
6011
|
+
},
|
6012
|
+
{ highWaterMark: 0 }
|
6013
|
+
)
|
6014
|
+
};
|
6015
|
+
resolve(result);
|
6016
|
+
},
|
6017
|
+
void 0,
|
6018
|
+
void 0,
|
6019
|
+
reject,
|
6020
|
+
options ? options.onPostpone : void 0
|
6021
|
+
);
|
6022
|
+
if (options && options.signal) {
|
6023
|
+
var signal = options.signal;
|
6024
|
+
if (signal.aborted) abort(request, signal.reason);
|
6025
|
+
else {
|
6026
|
+
var listener = function () {
|
6027
|
+
abort(request, signal.reason);
|
6028
|
+
signal.removeEventListener("abort", listener);
|
6029
|
+
};
|
6030
|
+
signal.addEventListener("abort", listener);
|
6031
|
+
}
|
6032
|
+
}
|
6033
|
+
startWork(request);
|
6034
|
+
});
|
6035
|
+
};
|
5730
6036
|
exports.renderToReadableStream = function (children, options) {
|
5731
6037
|
return new Promise(function (resolve, reject) {
|
5732
6038
|
var onFatalError,
|
@@ -5768,18 +6074,7 @@ exports.renderToReadableStream = function (children, options) {
|
|
5768
6074
|
{
|
5769
6075
|
type: "bytes",
|
5770
6076
|
pull: function (controller) {
|
5771
|
-
|
5772
|
-
(request.status = 2),
|
5773
|
-
closeWithError(controller, request.fatalError);
|
5774
|
-
else if (2 !== request.status && null === request.destination) {
|
5775
|
-
request.destination = controller;
|
5776
|
-
try {
|
5777
|
-
flushCompletedQueues(request, controller);
|
5778
|
-
} catch (error) {
|
5779
|
-
logRecoverableError(request, error, {}),
|
5780
|
-
fatalError(request, error);
|
5781
|
-
}
|
5782
|
-
}
|
6077
|
+
startFlowing(request, controller);
|
5783
6078
|
},
|
5784
6079
|
cancel: function (reason) {
|
5785
6080
|
request.destination = null;
|
@@ -5810,10 +6105,7 @@ exports.renderToReadableStream = function (children, options) {
|
|
5810
6105
|
signal.addEventListener("abort", listener);
|
5811
6106
|
}
|
5812
6107
|
}
|
5813
|
-
request
|
5814
|
-
performWork(request);
|
5815
|
-
null === request.trackedPostpones &&
|
5816
|
-
safelyEmitEarlyPreloads(request, 0 === request.pendingRootTasks);
|
6108
|
+
startWork(request);
|
5817
6109
|
});
|
5818
6110
|
};
|
5819
6111
|
exports.version = "19.0.0";
|