react-dom 19.2.0-canary-4448b187-20250515 → 19.2.0-canary-c4676e72-20250520
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 +73 -56
- package/cjs/react-dom-client.production.js +33 -32
- package/cjs/react-dom-profiling.development.js +73 -56
- package/cjs/react-dom-profiling.profiling.js +33 -32
- package/cjs/react-dom-server-legacy.browser.development.js +456 -173
- package/cjs/react-dom-server-legacy.browser.production.js +376 -123
- package/cjs/react-dom-server-legacy.node.development.js +456 -173
- package/cjs/react-dom-server-legacy.node.production.js +376 -123
- package/cjs/react-dom-server.browser.development.js +455 -172
- package/cjs/react-dom-server.browser.production.js +355 -103
- package/cjs/react-dom-server.bun.development.js +478 -180
- package/cjs/react-dom-server.bun.production.js +375 -108
- package/cjs/react-dom-server.edge.development.js +455 -172
- package/cjs/react-dom-server.edge.production.js +355 -103
- package/cjs/react-dom-server.node.development.js +455 -169
- package/cjs/react-dom-server.node.production.js +355 -103
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -41,6 +41,14 @@
|
|
41
41
|
function scriptReplacer(match, prefix, s, suffix) {
|
42
42
|
return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
|
43
43
|
}
|
44
|
+
function getIteratorFn(maybeIterable) {
|
45
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
46
|
+
return null;
|
47
|
+
maybeIterable =
|
48
|
+
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
49
|
+
maybeIterable["@@iterator"];
|
50
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
51
|
+
}
|
44
52
|
function objectName(object) {
|
45
53
|
return Object.prototype.toString
|
46
54
|
.call(object)
|
@@ -1150,7 +1158,8 @@
|
|
1150
1158
|
nameIdx: 0
|
1151
1159
|
};
|
1152
1160
|
}
|
1153
|
-
function getSuspenseFallbackFormatContext(parentContext) {
|
1161
|
+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
1162
|
+
parentContext.tagScope & 32 && (resumableState.instructions |= 128);
|
1154
1163
|
return createFormatContext(
|
1155
1164
|
parentContext.insertionMode,
|
1156
1165
|
parentContext.selectedValue,
|
@@ -1158,7 +1167,7 @@
|
|
1158
1167
|
getSuspenseViewTransition(parentContext.viewTransition)
|
1159
1168
|
);
|
1160
1169
|
}
|
1161
|
-
function getSuspenseContentFormatContext(parentContext) {
|
1170
|
+
function getSuspenseContentFormatContext(resumableState, parentContext) {
|
1162
1171
|
return createFormatContext(
|
1163
1172
|
parentContext.insertionMode,
|
1164
1173
|
parentContext.selectedValue,
|
@@ -4587,6 +4596,7 @@
|
|
4587
4596
|
null,
|
4588
4597
|
emptyTreeContext,
|
4589
4598
|
null,
|
4599
|
+
null,
|
4590
4600
|
emptyContextObject,
|
4591
4601
|
null
|
4592
4602
|
);
|
@@ -4650,15 +4660,17 @@
|
|
4650
4660
|
}
|
4651
4661
|
function createSuspenseBoundary(
|
4652
4662
|
request,
|
4663
|
+
row,
|
4653
4664
|
fallbackAbortableTasks,
|
4654
4665
|
contentPreamble,
|
4655
4666
|
fallbackPreamble
|
4656
4667
|
) {
|
4657
|
-
|
4668
|
+
fallbackAbortableTasks = {
|
4658
4669
|
status: PENDING,
|
4659
4670
|
rootSegmentID: -1,
|
4660
4671
|
parentFlushed: !1,
|
4661
4672
|
pendingTasks: 0,
|
4673
|
+
row: row,
|
4662
4674
|
completedSegments: [],
|
4663
4675
|
byteSize: 0,
|
4664
4676
|
fallbackAbortableTasks: fallbackAbortableTasks,
|
@@ -4673,6 +4685,14 @@
|
|
4673
4685
|
errorStack: null,
|
4674
4686
|
errorComponentStack: null
|
4675
4687
|
};
|
4688
|
+
null !== row &&
|
4689
|
+
(row.pendingTasks++,
|
4690
|
+
(row = row.boundaries),
|
4691
|
+
null !== row &&
|
4692
|
+
(request.allPendingTasks++,
|
4693
|
+
fallbackAbortableTasks.pendingTasks++,
|
4694
|
+
row.push(fallbackAbortableTasks)));
|
4695
|
+
return fallbackAbortableTasks;
|
4676
4696
|
}
|
4677
4697
|
function createRenderTask(
|
4678
4698
|
request,
|
@@ -4688,6 +4708,7 @@
|
|
4688
4708
|
formatContext,
|
4689
4709
|
context,
|
4690
4710
|
treeContext,
|
4711
|
+
row,
|
4691
4712
|
componentStack,
|
4692
4713
|
legacyContext,
|
4693
4714
|
debugTask
|
@@ -4696,6 +4717,7 @@
|
|
4696
4717
|
null === blockedBoundary
|
4697
4718
|
? request.pendingRootTasks++
|
4698
4719
|
: blockedBoundary.pendingTasks++;
|
4720
|
+
null !== row && row.pendingTasks++;
|
4699
4721
|
var task = {
|
4700
4722
|
replay: null,
|
4701
4723
|
node: node,
|
@@ -4712,6 +4734,7 @@
|
|
4712
4734
|
formatContext: formatContext,
|
4713
4735
|
context: context,
|
4714
4736
|
treeContext: treeContext,
|
4737
|
+
row: row,
|
4715
4738
|
componentStack: componentStack,
|
4716
4739
|
thenableState: thenableState
|
4717
4740
|
};
|
@@ -4732,6 +4755,7 @@
|
|
4732
4755
|
formatContext,
|
4733
4756
|
context,
|
4734
4757
|
treeContext,
|
4758
|
+
row,
|
4735
4759
|
componentStack,
|
4736
4760
|
legacyContext,
|
4737
4761
|
debugTask
|
@@ -4740,6 +4764,7 @@
|
|
4740
4764
|
null === blockedBoundary
|
4741
4765
|
? request.pendingRootTasks++
|
4742
4766
|
: blockedBoundary.pendingTasks++;
|
4767
|
+
null !== row && row.pendingTasks++;
|
4743
4768
|
replay.pendingTasks++;
|
4744
4769
|
var task = {
|
4745
4770
|
replay: replay,
|
@@ -4757,6 +4782,7 @@
|
|
4757
4782
|
formatContext: formatContext,
|
4758
4783
|
context: context,
|
4759
4784
|
treeContext: treeContext,
|
4785
|
+
row: row,
|
4760
4786
|
componentStack: componentStack,
|
4761
4787
|
thenableState: thenableState
|
4762
4788
|
};
|
@@ -4943,6 +4969,141 @@
|
|
4943
4969
|
closeWithError(request.destination, error))
|
4944
4970
|
: ((request.status = 13), (request.fatalError = error));
|
4945
4971
|
}
|
4972
|
+
function finishSuspenseListRow(request, row) {
|
4973
|
+
for (row = row.next; null !== row; ) {
|
4974
|
+
var unblockedBoundaries = row.boundaries;
|
4975
|
+
if (null !== unblockedBoundaries) {
|
4976
|
+
row.boundaries = null;
|
4977
|
+
for (var i = 0; i < unblockedBoundaries.length; i++)
|
4978
|
+
finishedTask(request, unblockedBoundaries[i], null, null);
|
4979
|
+
}
|
4980
|
+
row.pendingTasks--;
|
4981
|
+
if (0 < row.pendingTasks) break;
|
4982
|
+
row = row.next;
|
4983
|
+
}
|
4984
|
+
}
|
4985
|
+
function createSuspenseListRow(previousRow) {
|
4986
|
+
var newRow = { pendingTasks: 1, boundaries: null, next: null };
|
4987
|
+
null !== previousRow &&
|
4988
|
+
0 < previousRow.pendingTasks &&
|
4989
|
+
(newRow.pendingTasks++,
|
4990
|
+
(newRow.boundaries = []),
|
4991
|
+
(previousRow.next = newRow));
|
4992
|
+
return newRow;
|
4993
|
+
}
|
4994
|
+
function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
4995
|
+
keyPath = task.keyPath;
|
4996
|
+
var previousComponentStack = task.componentStack;
|
4997
|
+
var previousDebugTask = task.debugTask;
|
4998
|
+
pushServerComponentStack(task, task.node.props.children._debugInfo);
|
4999
|
+
var prevTreeContext = task.treeContext,
|
5000
|
+
prevRow = task.row,
|
5001
|
+
totalChildren = rows.length,
|
5002
|
+
previousSuspenseListRow = null;
|
5003
|
+
if (null !== task.replay) {
|
5004
|
+
var resumeSlots = task.replay.slots;
|
5005
|
+
if (null !== resumeSlots && "object" === typeof resumeSlots)
|
5006
|
+
for (var n = 0; n < totalChildren; n++) {
|
5007
|
+
var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
|
5008
|
+
node = rows[i];
|
5009
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
5010
|
+
previousSuspenseListRow
|
5011
|
+
);
|
5012
|
+
task.treeContext = pushTreeContext(
|
5013
|
+
prevTreeContext,
|
5014
|
+
totalChildren,
|
5015
|
+
i
|
5016
|
+
);
|
5017
|
+
var resumeSegmentID = resumeSlots[i];
|
5018
|
+
"number" === typeof resumeSegmentID
|
5019
|
+
? (resumeNode(request, task, resumeSegmentID, node, i),
|
5020
|
+
delete resumeSlots[i])
|
5021
|
+
: renderNode(request, task, node, i);
|
5022
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
5023
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
5024
|
+
}
|
5025
|
+
else
|
5026
|
+
for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
|
5027
|
+
(n =
|
5028
|
+
"backwards" !== revealOrder
|
5029
|
+
? resumeSlots
|
5030
|
+
: totalChildren - 1 - resumeSlots),
|
5031
|
+
(i = rows[n]),
|
5032
|
+
warnForMissingKey(request, task, i),
|
5033
|
+
(task.row = previousSuspenseListRow =
|
5034
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
5035
|
+
(task.treeContext = pushTreeContext(
|
5036
|
+
prevTreeContext,
|
5037
|
+
totalChildren,
|
5038
|
+
n
|
5039
|
+
)),
|
5040
|
+
renderNode(request, task, i, n),
|
5041
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
5042
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
5043
|
+
} else if ("backwards" !== revealOrder)
|
5044
|
+
for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
|
5045
|
+
(resumeSlots = rows[revealOrder]),
|
5046
|
+
warnForMissingKey(request, task, resumeSlots),
|
5047
|
+
(task.row = previousSuspenseListRow =
|
5048
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
5049
|
+
(task.treeContext = pushTreeContext(
|
5050
|
+
prevTreeContext,
|
5051
|
+
totalChildren,
|
5052
|
+
revealOrder
|
5053
|
+
)),
|
5054
|
+
renderNode(request, task, resumeSlots, revealOrder),
|
5055
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
5056
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
5057
|
+
else {
|
5058
|
+
revealOrder = task.blockedSegment;
|
5059
|
+
resumeSlots = revealOrder.children.length;
|
5060
|
+
n = revealOrder.chunks.length;
|
5061
|
+
for (i = totalChildren - 1; 0 <= i; i--) {
|
5062
|
+
node = rows[i];
|
5063
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
5064
|
+
previousSuspenseListRow
|
5065
|
+
);
|
5066
|
+
task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
|
5067
|
+
resumeSegmentID = createPendingSegment(
|
5068
|
+
request,
|
5069
|
+
n,
|
5070
|
+
null,
|
5071
|
+
task.formatContext,
|
5072
|
+
0 === i ? revealOrder.lastPushedText : !0,
|
5073
|
+
!0
|
5074
|
+
);
|
5075
|
+
revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
|
5076
|
+
task.blockedSegment = resumeSegmentID;
|
5077
|
+
warnForMissingKey(request, task, node);
|
5078
|
+
try {
|
5079
|
+
renderNode(request, task, node, i),
|
5080
|
+
resumeSegmentID.lastPushedText &&
|
5081
|
+
resumeSegmentID.textEmbedded &&
|
5082
|
+
resumeSegmentID.chunks.push(textSeparator),
|
5083
|
+
(resumeSegmentID.status = COMPLETED),
|
5084
|
+
finishedSegment(request, task.blockedBoundary, resumeSegmentID),
|
5085
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
5086
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
5087
|
+
} catch (thrownValue) {
|
5088
|
+
throw (
|
5089
|
+
((resumeSegmentID.status = 12 === request.status ? ABORTED : 4),
|
5090
|
+
thrownValue)
|
5091
|
+
);
|
5092
|
+
}
|
5093
|
+
}
|
5094
|
+
task.blockedSegment = revealOrder;
|
5095
|
+
revealOrder.lastPushedText = !1;
|
5096
|
+
}
|
5097
|
+
null !== prevRow &&
|
5098
|
+
null !== previousSuspenseListRow &&
|
5099
|
+
0 < previousSuspenseListRow.pendingTasks &&
|
5100
|
+
(prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
|
5101
|
+
task.treeContext = prevTreeContext;
|
5102
|
+
task.row = prevRow;
|
5103
|
+
task.keyPath = keyPath;
|
5104
|
+
task.componentStack = previousComponentStack;
|
5105
|
+
task.debugTask = previousDebugTask;
|
5106
|
+
}
|
4946
5107
|
function renderWithHooks(
|
4947
5108
|
request,
|
4948
5109
|
task,
|
@@ -5516,6 +5677,7 @@
|
|
5516
5677
|
task.formatContext,
|
5517
5678
|
task.context,
|
5518
5679
|
task.treeContext,
|
5680
|
+
task.row,
|
5519
5681
|
task.componentStack,
|
5520
5682
|
emptyContextObject,
|
5521
5683
|
task.debugTask
|
@@ -5599,10 +5761,53 @@
|
|
5599
5761
|
}
|
5600
5762
|
return;
|
5601
5763
|
case REACT_SUSPENSE_LIST_TYPE:
|
5602
|
-
|
5603
|
-
|
5604
|
-
|
5605
|
-
|
5764
|
+
a: {
|
5765
|
+
var children$jscomp$0 = props.children,
|
5766
|
+
revealOrder = props.revealOrder;
|
5767
|
+
if ("forwards" === revealOrder || "backwards" === revealOrder) {
|
5768
|
+
if (isArrayImpl(children$jscomp$0)) {
|
5769
|
+
renderSuspenseListRows(
|
5770
|
+
request,
|
5771
|
+
task,
|
5772
|
+
keyPath,
|
5773
|
+
children$jscomp$0,
|
5774
|
+
revealOrder
|
5775
|
+
);
|
5776
|
+
break a;
|
5777
|
+
}
|
5778
|
+
var iteratorFn = getIteratorFn(children$jscomp$0);
|
5779
|
+
if (iteratorFn) {
|
5780
|
+
var iterator = iteratorFn.call(children$jscomp$0);
|
5781
|
+
if (iterator) {
|
5782
|
+
validateIterable(
|
5783
|
+
task,
|
5784
|
+
children$jscomp$0,
|
5785
|
+
-1,
|
5786
|
+
iterator,
|
5787
|
+
iteratorFn
|
5788
|
+
);
|
5789
|
+
var step = iterator.next();
|
5790
|
+
if (!step.done) {
|
5791
|
+
var rows = [];
|
5792
|
+
do rows.push(step.value), (step = iterator.next());
|
5793
|
+
while (!step.done);
|
5794
|
+
renderSuspenseListRows(
|
5795
|
+
request,
|
5796
|
+
task,
|
5797
|
+
keyPath,
|
5798
|
+
children$jscomp$0,
|
5799
|
+
revealOrder
|
5800
|
+
);
|
5801
|
+
}
|
5802
|
+
break a;
|
5803
|
+
}
|
5804
|
+
}
|
5805
|
+
}
|
5806
|
+
var prevKeyPath$jscomp$3 = task.keyPath;
|
5807
|
+
task.keyPath = keyPath;
|
5808
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
5809
|
+
task.keyPath = prevKeyPath$jscomp$3;
|
5810
|
+
}
|
5606
5811
|
return;
|
5607
5812
|
case REACT_VIEW_TRANSITION_TYPE:
|
5608
5813
|
case REACT_SCOPE_TYPE:
|
@@ -5612,20 +5817,26 @@
|
|
5612
5817
|
case REACT_SUSPENSE_TYPE:
|
5613
5818
|
a: if (null !== task.replay) {
|
5614
5819
|
var _prevKeyPath = task.keyPath,
|
5615
|
-
_prevContext = task.formatContext
|
5820
|
+
_prevContext = task.formatContext,
|
5821
|
+
_prevRow = task.row;
|
5616
5822
|
task.keyPath = keyPath;
|
5617
|
-
task.formatContext =
|
5618
|
-
|
5823
|
+
task.formatContext = getSuspenseContentFormatContext(
|
5824
|
+
request.resumableState,
|
5825
|
+
_prevContext
|
5826
|
+
);
|
5827
|
+
task.row = null;
|
5619
5828
|
var _content = props.children;
|
5620
5829
|
try {
|
5621
5830
|
renderNode(request, task, _content, -1);
|
5622
5831
|
} finally {
|
5623
5832
|
(task.keyPath = _prevKeyPath),
|
5624
|
-
(task.formatContext = _prevContext)
|
5833
|
+
(task.formatContext = _prevContext),
|
5834
|
+
(task.row = _prevRow);
|
5625
5835
|
}
|
5626
5836
|
} else {
|
5627
|
-
var prevKeyPath$jscomp$
|
5837
|
+
var prevKeyPath$jscomp$4 = task.keyPath,
|
5628
5838
|
prevContext$jscomp$0 = task.formatContext,
|
5839
|
+
prevRow = task.row,
|
5629
5840
|
parentBoundary = task.blockedBoundary,
|
5630
5841
|
parentPreamble = task.blockedPreamble,
|
5631
5842
|
parentHoistableState = task.hoistableState,
|
@@ -5637,12 +5848,14 @@
|
|
5637
5848
|
task.formatContext.insertionMode < HTML_MODE
|
5638
5849
|
? createSuspenseBoundary(
|
5639
5850
|
request,
|
5851
|
+
task.row,
|
5640
5852
|
fallbackAbortSet,
|
5641
5853
|
createPreambleState(),
|
5642
5854
|
createPreambleState()
|
5643
5855
|
)
|
5644
5856
|
: createSuspenseBoundary(
|
5645
5857
|
request,
|
5858
|
+
task.row,
|
5646
5859
|
fallbackAbortSet,
|
5647
5860
|
null,
|
5648
5861
|
null
|
@@ -5688,8 +5901,10 @@
|
|
5688
5901
|
task.blockedSegment = boundarySegment;
|
5689
5902
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
5690
5903
|
task.keyPath = fallbackKeyPath;
|
5691
|
-
task.formatContext =
|
5692
|
-
|
5904
|
+
task.formatContext = getSuspenseFallbackFormatContext(
|
5905
|
+
request.resumableState,
|
5906
|
+
prevContext$jscomp$0
|
5907
|
+
);
|
5693
5908
|
boundarySegment.status = 6;
|
5694
5909
|
try {
|
5695
5910
|
renderNode(request, task, fallback, -1),
|
@@ -5700,13 +5915,14 @@
|
|
5700
5915
|
finishedSegment(request, parentBoundary, boundarySegment);
|
5701
5916
|
} catch (thrownValue) {
|
5702
5917
|
throw (
|
5703
|
-
((boundarySegment.status =
|
5918
|
+
((boundarySegment.status =
|
5919
|
+
12 === request.status ? ABORTED : 4),
|
5704
5920
|
thrownValue)
|
5705
5921
|
);
|
5706
5922
|
} finally {
|
5707
5923
|
(task.blockedSegment = parentSegment),
|
5708
5924
|
(task.blockedPreamble = parentPreamble),
|
5709
|
-
(task.keyPath = prevKeyPath$jscomp$
|
5925
|
+
(task.keyPath = prevKeyPath$jscomp$4),
|
5710
5926
|
(task.formatContext = prevContext$jscomp$0);
|
5711
5927
|
}
|
5712
5928
|
var suspendedPrimaryTask = createRenderTask(
|
@@ -5720,9 +5936,13 @@
|
|
5720
5936
|
newBoundary.contentState,
|
5721
5937
|
task.abortSet,
|
5722
5938
|
keyPath,
|
5723
|
-
getSuspenseContentFormatContext(
|
5939
|
+
getSuspenseContentFormatContext(
|
5940
|
+
request.resumableState,
|
5941
|
+
task.formatContext
|
5942
|
+
),
|
5724
5943
|
task.context,
|
5725
5944
|
task.treeContext,
|
5945
|
+
null,
|
5726
5946
|
task.componentStack,
|
5727
5947
|
emptyContextObject,
|
5728
5948
|
task.debugTask
|
@@ -5735,8 +5955,11 @@
|
|
5735
5955
|
task.hoistableState = newBoundary.contentState;
|
5736
5956
|
task.blockedSegment = contentRootSegment;
|
5737
5957
|
task.keyPath = keyPath;
|
5738
|
-
task.formatContext =
|
5739
|
-
|
5958
|
+
task.formatContext = getSuspenseContentFormatContext(
|
5959
|
+
request.resumableState,
|
5960
|
+
prevContext$jscomp$0
|
5961
|
+
);
|
5962
|
+
task.row = null;
|
5740
5963
|
contentRootSegment.status = 6;
|
5741
5964
|
try {
|
5742
5965
|
if (
|
@@ -5752,6 +5975,9 @@
|
|
5752
5975
|
((newBoundary.status = COMPLETED),
|
5753
5976
|
!(500 < newBoundary.byteSize)))
|
5754
5977
|
) {
|
5978
|
+
null !== prevRow &&
|
5979
|
+
0 === --prevRow.pendingTasks &&
|
5980
|
+
finishSuspenseListRow(request, prevRow);
|
5755
5981
|
0 === request.pendingRootTasks &&
|
5756
5982
|
task.blockedPreamble &&
|
5757
5983
|
preparePreamble(request);
|
@@ -5760,7 +5986,7 @@
|
|
5760
5986
|
} catch (thrownValue$2) {
|
5761
5987
|
newBoundary.status = CLIENT_RENDERED;
|
5762
5988
|
if (12 === request.status) {
|
5763
|
-
contentRootSegment.status =
|
5989
|
+
contentRootSegment.status = ABORTED;
|
5764
5990
|
var error = request.fatalError;
|
5765
5991
|
} else
|
5766
5992
|
(contentRootSegment.status = 4), (error = thrownValue$2);
|
@@ -5784,8 +6010,9 @@
|
|
5784
6010
|
(task.blockedPreamble = parentPreamble),
|
5785
6011
|
(task.hoistableState = parentHoistableState),
|
5786
6012
|
(task.blockedSegment = parentSegment),
|
5787
|
-
(task.keyPath = prevKeyPath$jscomp$
|
5788
|
-
(task.formatContext = prevContext$jscomp$0)
|
6013
|
+
(task.keyPath = prevKeyPath$jscomp$4),
|
6014
|
+
(task.formatContext = prevContext$jscomp$0),
|
6015
|
+
(task.row = prevRow);
|
5789
6016
|
}
|
5790
6017
|
var suspendedFallbackTask = createRenderTask(
|
5791
6018
|
request,
|
@@ -5798,9 +6025,13 @@
|
|
5798
6025
|
newBoundary.fallbackState,
|
5799
6026
|
fallbackAbortSet,
|
5800
6027
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
5801
|
-
getSuspenseFallbackFormatContext(
|
6028
|
+
getSuspenseFallbackFormatContext(
|
6029
|
+
request.resumableState,
|
6030
|
+
task.formatContext
|
6031
|
+
),
|
5802
6032
|
task.context,
|
5803
6033
|
task.treeContext,
|
6034
|
+
task.row,
|
5804
6035
|
task.componentStack,
|
5805
6036
|
emptyContextObject,
|
5806
6037
|
task.debugTask
|
@@ -5819,7 +6050,7 @@
|
|
5819
6050
|
for (var key in props)
|
5820
6051
|
"ref" !== key && (propsWithoutRef[key] = props[key]);
|
5821
6052
|
} else propsWithoutRef = props;
|
5822
|
-
var children$jscomp$
|
6053
|
+
var children$jscomp$1 = renderWithHooks(
|
5823
6054
|
request,
|
5824
6055
|
task,
|
5825
6056
|
keyPath,
|
@@ -5831,7 +6062,7 @@
|
|
5831
6062
|
request,
|
5832
6063
|
task,
|
5833
6064
|
keyPath,
|
5834
|
-
children$jscomp$
|
6065
|
+
children$jscomp$1,
|
5835
6066
|
0 !== localIdCounter,
|
5836
6067
|
actionStateCounter,
|
5837
6068
|
actionStateMatchingIndex
|
@@ -5843,9 +6074,9 @@
|
|
5843
6074
|
case REACT_PROVIDER_TYPE:
|
5844
6075
|
case REACT_CONTEXT_TYPE:
|
5845
6076
|
var value$jscomp$0 = props.value,
|
5846
|
-
children$jscomp$
|
6077
|
+
children$jscomp$2 = props.children;
|
5847
6078
|
var prevSnapshot = task.context;
|
5848
|
-
var prevKeyPath$jscomp$
|
6079
|
+
var prevKeyPath$jscomp$5 = task.keyPath;
|
5849
6080
|
var prevValue = type._currentValue;
|
5850
6081
|
type._currentValue = value$jscomp$0;
|
5851
6082
|
void 0 !== type._currentRenderer &&
|
@@ -5866,7 +6097,7 @@
|
|
5866
6097
|
currentActiveSnapshot = newNode;
|
5867
6098
|
task.context = newNode;
|
5868
6099
|
task.keyPath = keyPath;
|
5869
|
-
renderNodeDestructive(request, task, children$jscomp$
|
6100
|
+
renderNodeDestructive(request, task, children$jscomp$2, -1);
|
5870
6101
|
var prevSnapshot$jscomp$0 = currentActiveSnapshot;
|
5871
6102
|
if (null === prevSnapshot$jscomp$0)
|
5872
6103
|
throw Error(
|
@@ -5888,7 +6119,7 @@
|
|
5888
6119
|
var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot =
|
5889
6120
|
prevSnapshot$jscomp$0.parent);
|
5890
6121
|
task.context = JSCompiler_inline_result$jscomp$0;
|
5891
|
-
task.keyPath = prevKeyPath$jscomp$
|
6122
|
+
task.keyPath = prevKeyPath$jscomp$5;
|
5892
6123
|
prevSnapshot !== task.context &&
|
5893
6124
|
console.error(
|
5894
6125
|
"Popping the context provider did not return back to the original snapshot. This is a bug in React."
|
@@ -5902,10 +6133,10 @@
|
|
5902
6133
|
"A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
|
5903
6134
|
);
|
5904
6135
|
var newChildren = render(context$jscomp$0._currentValue),
|
5905
|
-
prevKeyPath$jscomp$
|
6136
|
+
prevKeyPath$jscomp$6 = task.keyPath;
|
5906
6137
|
task.keyPath = keyPath;
|
5907
6138
|
renderNodeDestructive(request, task, newChildren, -1);
|
5908
|
-
task.keyPath = prevKeyPath$jscomp$
|
6139
|
+
task.keyPath = prevKeyPath$jscomp$6;
|
5909
6140
|
return;
|
5910
6141
|
case REACT_LAZY_TYPE:
|
5911
6142
|
var Component = callLazyInitInDEV(type);
|
@@ -6037,6 +6268,7 @@
|
|
6037
6268
|
node = null === node[4] ? null : node[4][3];
|
6038
6269
|
var prevKeyPath = task.keyPath,
|
6039
6270
|
prevContext = task.formatContext,
|
6271
|
+
prevRow = task.row,
|
6040
6272
|
previousReplaySet = task.replay,
|
6041
6273
|
parentBoundary = task.blockedBoundary,
|
6042
6274
|
parentHoistableState = task.hoistableState,
|
@@ -6047,12 +6279,14 @@
|
|
6047
6279
|
task.formatContext.insertionMode < HTML_MODE
|
6048
6280
|
? createSuspenseBoundary(
|
6049
6281
|
request,
|
6282
|
+
task.row,
|
6050
6283
|
fallbackAbortSet,
|
6051
6284
|
createPreambleState(),
|
6052
6285
|
createPreambleState()
|
6053
6286
|
)
|
6054
6287
|
: createSuspenseBoundary(
|
6055
6288
|
request,
|
6289
|
+
task.row,
|
6056
6290
|
fallbackAbortSet,
|
6057
6291
|
null,
|
6058
6292
|
null
|
@@ -6062,7 +6296,11 @@
|
|
6062
6296
|
task.blockedBoundary = props;
|
6063
6297
|
task.hoistableState = props.contentState;
|
6064
6298
|
task.keyPath = keyPath;
|
6065
|
-
task.formatContext = getSuspenseContentFormatContext(
|
6299
|
+
task.formatContext = getSuspenseContentFormatContext(
|
6300
|
+
request.resumableState,
|
6301
|
+
prevContext
|
6302
|
+
);
|
6303
|
+
task.row = null;
|
6066
6304
|
task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
|
6067
6305
|
try {
|
6068
6306
|
renderNode(request, task, content, -1);
|
@@ -6096,7 +6334,8 @@
|
|
6096
6334
|
(task.hoistableState = parentHoistableState),
|
6097
6335
|
(task.replay = previousReplaySet),
|
6098
6336
|
(task.keyPath = prevKeyPath),
|
6099
|
-
(task.formatContext = prevContext)
|
6337
|
+
(task.formatContext = prevContext),
|
6338
|
+
(task.row = prevRow);
|
6100
6339
|
}
|
6101
6340
|
props = createReplayTask(
|
6102
6341
|
request,
|
@@ -6108,9 +6347,13 @@
|
|
6108
6347
|
props.fallbackState,
|
6109
6348
|
fallbackAbortSet,
|
6110
6349
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
6111
|
-
getSuspenseFallbackFormatContext(
|
6350
|
+
getSuspenseFallbackFormatContext(
|
6351
|
+
request.resumableState,
|
6352
|
+
task.formatContext
|
6353
|
+
),
|
6112
6354
|
task.context,
|
6113
6355
|
task.treeContext,
|
6356
|
+
task.row,
|
6114
6357
|
task.componentStack,
|
6115
6358
|
emptyContextObject,
|
6116
6359
|
task.debugTask
|
@@ -6124,6 +6367,35 @@
|
|
6124
6367
|
}
|
6125
6368
|
}
|
6126
6369
|
}
|
6370
|
+
function validateIterable(
|
6371
|
+
task,
|
6372
|
+
iterable,
|
6373
|
+
childIndex,
|
6374
|
+
iterator,
|
6375
|
+
iteratorFn
|
6376
|
+
) {
|
6377
|
+
if (iterator === iterable) {
|
6378
|
+
if (
|
6379
|
+
-1 !== childIndex ||
|
6380
|
+
null === task.componentStack ||
|
6381
|
+
"function" !== typeof task.componentStack.type ||
|
6382
|
+
"[object GeneratorFunction]" !==
|
6383
|
+
Object.prototype.toString.call(task.componentStack.type) ||
|
6384
|
+
"[object Generator]" !== Object.prototype.toString.call(iterator)
|
6385
|
+
)
|
6386
|
+
didWarnAboutGenerators ||
|
6387
|
+
console.error(
|
6388
|
+
"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
|
6389
|
+
),
|
6390
|
+
(didWarnAboutGenerators = !0);
|
6391
|
+
} else
|
6392
|
+
iterable.entries !== iteratorFn ||
|
6393
|
+
didWarnAboutMaps ||
|
6394
|
+
(console.error(
|
6395
|
+
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
6396
|
+
),
|
6397
|
+
(didWarnAboutMaps = !0));
|
6398
|
+
}
|
6127
6399
|
function renderNodeDestructive(request, task, node, childIndex) {
|
6128
6400
|
null !== task.replay && "number" === typeof task.replay.slots
|
6129
6401
|
? resumeNode(request, task, task.replay.slots, node, childIndex)
|
@@ -6200,52 +6472,27 @@
|
|
6200
6472
|
"Portals are not currently supported by the server renderer. Render them conditionally so that they only appear on the client render."
|
6201
6473
|
);
|
6202
6474
|
case REACT_LAZY_TYPE:
|
6203
|
-
|
6475
|
+
type = callLazyInitInDEV(node);
|
6204
6476
|
if (12 === request.status) throw null;
|
6205
|
-
renderNodeDestructive(request, task,
|
6477
|
+
renderNodeDestructive(request, task, type, childIndex);
|
6206
6478
|
return;
|
6207
6479
|
}
|
6208
6480
|
if (isArrayImpl(node)) {
|
6209
6481
|
renderChildrenArray(request, task, node, childIndex);
|
6210
6482
|
return;
|
6211
6483
|
}
|
6212
|
-
|
6213
|
-
|
6214
|
-
|
6215
|
-
|
6216
|
-
|
6217
|
-
|
6218
|
-
|
6219
|
-
|
6220
|
-
|
6221
|
-
|
6222
|
-
|
6223
|
-
"function" !== typeof task.componentStack.type ||
|
6224
|
-
"[object GeneratorFunction]" !==
|
6225
|
-
Object.prototype.toString.call(task.componentStack.type) ||
|
6226
|
-
"[object Generator]" !== Object.prototype.toString.call(type)
|
6227
|
-
)
|
6228
|
-
didWarnAboutGenerators ||
|
6229
|
-
console.error(
|
6230
|
-
"Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
|
6231
|
-
),
|
6232
|
-
(didWarnAboutGenerators = !0);
|
6233
|
-
} else
|
6234
|
-
node.entries !== key ||
|
6235
|
-
didWarnAboutMaps ||
|
6236
|
-
(console.error(
|
6237
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
6238
|
-
),
|
6239
|
-
(didWarnAboutMaps = !0));
|
6240
|
-
node = type.next();
|
6241
|
-
if (!node.done) {
|
6242
|
-
key = [];
|
6243
|
-
do key.push(node.value), (node = type.next());
|
6244
|
-
while (!node.done);
|
6245
|
-
renderChildrenArray(request, task, key, childIndex);
|
6484
|
+
if ((key = getIteratorFn(node)))
|
6485
|
+
if ((type = key.call(node))) {
|
6486
|
+
validateIterable(task, node, childIndex, type, key);
|
6487
|
+
node = type.next();
|
6488
|
+
if (!node.done) {
|
6489
|
+
key = [];
|
6490
|
+
do key.push(node.value), (node = type.next());
|
6491
|
+
while (!node.done);
|
6492
|
+
renderChildrenArray(request, task, key, childIndex);
|
6493
|
+
}
|
6494
|
+
return;
|
6246
6495
|
}
|
6247
|
-
return;
|
6248
|
-
}
|
6249
6496
|
if ("function" === typeof node.then)
|
6250
6497
|
return (
|
6251
6498
|
(task.thenableState = null),
|
@@ -6304,6 +6551,69 @@
|
|
6304
6551
|
));
|
6305
6552
|
}
|
6306
6553
|
}
|
6554
|
+
function warnForMissingKey(request, task, child) {
|
6555
|
+
if (
|
6556
|
+
null !== child &&
|
6557
|
+
"object" === typeof child &&
|
6558
|
+
(child.$$typeof === REACT_ELEMENT_TYPE ||
|
6559
|
+
child.$$typeof === REACT_PORTAL_TYPE) &&
|
6560
|
+
child._store &&
|
6561
|
+
((!child._store.validated && null == child.key) ||
|
6562
|
+
2 === child._store.validated)
|
6563
|
+
) {
|
6564
|
+
if ("object" !== typeof child._store)
|
6565
|
+
throw Error(
|
6566
|
+
"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
|
6567
|
+
);
|
6568
|
+
child._store.validated = 1;
|
6569
|
+
var didWarnForKey = request.didWarnForKey;
|
6570
|
+
null == didWarnForKey &&
|
6571
|
+
(didWarnForKey = request.didWarnForKey = new WeakSet());
|
6572
|
+
request = task.componentStack;
|
6573
|
+
if (null !== request && !didWarnForKey.has(request)) {
|
6574
|
+
didWarnForKey.add(request);
|
6575
|
+
var componentName = getComponentNameFromType(child.type);
|
6576
|
+
didWarnForKey = child._owner;
|
6577
|
+
var parentOwner = request.owner;
|
6578
|
+
request = "";
|
6579
|
+
if (parentOwner && "undefined" !== typeof parentOwner.type) {
|
6580
|
+
var name = getComponentNameFromType(parentOwner.type);
|
6581
|
+
name &&
|
6582
|
+
(request = "\n\nCheck the render method of `" + name + "`.");
|
6583
|
+
}
|
6584
|
+
request ||
|
6585
|
+
(componentName &&
|
6586
|
+
(request =
|
6587
|
+
"\n\nCheck the top-level render call using <" +
|
6588
|
+
componentName +
|
6589
|
+
">."));
|
6590
|
+
componentName = "";
|
6591
|
+
null != didWarnForKey &&
|
6592
|
+
parentOwner !== didWarnForKey &&
|
6593
|
+
((parentOwner = null),
|
6594
|
+
"undefined" !== typeof didWarnForKey.type
|
6595
|
+
? (parentOwner = getComponentNameFromType(didWarnForKey.type))
|
6596
|
+
: "string" === typeof didWarnForKey.name &&
|
6597
|
+
(parentOwner = didWarnForKey.name),
|
6598
|
+
parentOwner &&
|
6599
|
+
(componentName =
|
6600
|
+
" It was passed a child from " + parentOwner + "."));
|
6601
|
+
didWarnForKey = task.componentStack;
|
6602
|
+
task.componentStack = {
|
6603
|
+
parent: task.componentStack,
|
6604
|
+
type: child.type,
|
6605
|
+
owner: child._owner,
|
6606
|
+
stack: child._debugStack
|
6607
|
+
};
|
6608
|
+
console.error(
|
6609
|
+
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
6610
|
+
request,
|
6611
|
+
componentName
|
6612
|
+
);
|
6613
|
+
task.componentStack = didWarnForKey;
|
6614
|
+
}
|
6615
|
+
}
|
6616
|
+
}
|
6307
6617
|
function renderChildrenArray(request, task, children, childIndex) {
|
6308
6618
|
var prevKeyPath = task.keyPath,
|
6309
6619
|
previousComponentStack = task.componentStack;
|
@@ -6397,76 +6707,11 @@
|
|
6397
6707
|
task.debugTask = previousDebugTask;
|
6398
6708
|
return;
|
6399
6709
|
}
|
6400
|
-
for (j = 0; j < replayNodes; j++)
|
6401
|
-
childIndex = children[j]
|
6402
|
-
|
6403
|
-
|
6404
|
-
|
6405
|
-
if (
|
6406
|
-
null !== error &&
|
6407
|
-
"object" === typeof error &&
|
6408
|
-
(error.$$typeof === REACT_ELEMENT_TYPE ||
|
6409
|
-
error.$$typeof === REACT_PORTAL_TYPE) &&
|
6410
|
-
error._store &&
|
6411
|
-
((!error._store.validated && null == error.key) ||
|
6412
|
-
2 === error._store.validated)
|
6413
|
-
) {
|
6414
|
-
if ("object" !== typeof error._store)
|
6415
|
-
throw Error(
|
6416
|
-
"React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
|
6417
|
-
);
|
6418
|
-
error._store.validated = 1;
|
6419
|
-
thrownInfo = resumeSlots.didWarnForKey;
|
6420
|
-
null == thrownInfo &&
|
6421
|
-
(thrownInfo = resumeSlots.didWarnForKey = new WeakSet());
|
6422
|
-
resumeSlots = node.componentStack;
|
6423
|
-
if (null !== resumeSlots && !thrownInfo.has(resumeSlots)) {
|
6424
|
-
thrownInfo.add(resumeSlots);
|
6425
|
-
var componentName = getComponentNameFromType(error.type);
|
6426
|
-
thrownInfo = error._owner;
|
6427
|
-
var parentOwner = resumeSlots.owner;
|
6428
|
-
resumeSlots = "";
|
6429
|
-
if (parentOwner && "undefined" !== typeof parentOwner.type) {
|
6430
|
-
var name = getComponentNameFromType(parentOwner.type);
|
6431
|
-
name &&
|
6432
|
-
(resumeSlots =
|
6433
|
-
"\n\nCheck the render method of `" + name + "`.");
|
6434
|
-
}
|
6435
|
-
resumeSlots ||
|
6436
|
-
(componentName &&
|
6437
|
-
(resumeSlots =
|
6438
|
-
"\n\nCheck the top-level render call using <" +
|
6439
|
-
componentName +
|
6440
|
-
">."));
|
6441
|
-
componentName = "";
|
6442
|
-
null != thrownInfo &&
|
6443
|
-
parentOwner !== thrownInfo &&
|
6444
|
-
((parentOwner = null),
|
6445
|
-
"undefined" !== typeof thrownInfo.type
|
6446
|
-
? (parentOwner = getComponentNameFromType(thrownInfo.type))
|
6447
|
-
: "string" === typeof thrownInfo.name &&
|
6448
|
-
(parentOwner = thrownInfo.name),
|
6449
|
-
parentOwner &&
|
6450
|
-
(componentName =
|
6451
|
-
" It was passed a child from " + parentOwner + "."));
|
6452
|
-
thrownInfo = node.componentStack;
|
6453
|
-
node.componentStack = {
|
6454
|
-
parent: node.componentStack,
|
6455
|
-
type: error.type,
|
6456
|
-
owner: error._owner,
|
6457
|
-
stack: error._debugStack
|
6458
|
-
};
|
6459
|
-
console.error(
|
6460
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
6461
|
-
resumeSlots,
|
6462
|
-
componentName
|
6463
|
-
);
|
6464
|
-
node.componentStack = thrownInfo;
|
6465
|
-
}
|
6466
|
-
}
|
6467
|
-
task.treeContext = pushTreeContext(replay, replayNodes, j);
|
6468
|
-
renderNode(request, task, childIndex, j);
|
6469
|
-
}
|
6710
|
+
for (j = 0; j < replayNodes; j++)
|
6711
|
+
(childIndex = children[j]),
|
6712
|
+
warnForMissingKey(request, task, childIndex),
|
6713
|
+
(task.treeContext = pushTreeContext(replay, replayNodes, j)),
|
6714
|
+
renderNode(request, task, childIndex, j);
|
6470
6715
|
task.treeContext = replay;
|
6471
6716
|
task.keyPath = prevKeyPath;
|
6472
6717
|
task.componentStack = previousComponentStack;
|
@@ -6495,6 +6740,7 @@
|
|
6495
6740
|
task.formatContext,
|
6496
6741
|
task.context,
|
6497
6742
|
task.treeContext,
|
6743
|
+
task.row,
|
6498
6744
|
task.componentStack,
|
6499
6745
|
emptyContextObject,
|
6500
6746
|
task.debugTask
|
@@ -6526,6 +6772,7 @@
|
|
6526
6772
|
task.formatContext,
|
6527
6773
|
task.context,
|
6528
6774
|
task.treeContext,
|
6775
|
+
task.row,
|
6529
6776
|
task.componentStack,
|
6530
6777
|
emptyContextObject,
|
6531
6778
|
task.debugTask
|
@@ -6640,9 +6887,11 @@
|
|
6640
6887
|
throw node;
|
6641
6888
|
}
|
6642
6889
|
function abortTaskSoft(task) {
|
6643
|
-
var boundary = task.blockedBoundary
|
6644
|
-
|
6645
|
-
null !==
|
6890
|
+
var boundary = task.blockedBoundary,
|
6891
|
+
segment = task.blockedSegment;
|
6892
|
+
null !== segment &&
|
6893
|
+
((segment.status = ABORTED),
|
6894
|
+
finishedTask(this, boundary, task.row, segment));
|
6646
6895
|
}
|
6647
6896
|
function abortRemainingReplayNodes(
|
6648
6897
|
request$jscomp$0,
|
@@ -6676,6 +6925,7 @@
|
|
6676
6925
|
wasAborted = aborted,
|
6677
6926
|
resumedBoundary = createSuspenseBoundary(
|
6678
6927
|
request,
|
6928
|
+
null,
|
6679
6929
|
new Set(),
|
6680
6930
|
null,
|
6681
6931
|
null
|
@@ -6720,8 +6970,12 @@
|
|
6720
6970
|
segment = task.blockedSegment;
|
6721
6971
|
if (null !== segment) {
|
6722
6972
|
if (6 === segment.status) return;
|
6723
|
-
segment.status =
|
6973
|
+
segment.status = ABORTED;
|
6724
6974
|
}
|
6975
|
+
segment = task.row;
|
6976
|
+
null !== segment &&
|
6977
|
+
0 === --segment.pendingTasks &&
|
6978
|
+
finishSuspenseListRow(request, segment);
|
6725
6979
|
segment = getThrownInfo(task.componentStack);
|
6726
6980
|
if (null === boundary) {
|
6727
6981
|
if (13 !== request.status && request.status !== CLOSED) {
|
@@ -6873,7 +7127,11 @@
|
|
6873
7127
|
: (boundary.byteSize += segmentByteSize);
|
6874
7128
|
}
|
6875
7129
|
}
|
6876
|
-
function finishedTask(request, boundary, segment) {
|
7130
|
+
function finishedTask(request, boundary, row, segment) {
|
7131
|
+
null !== row &&
|
7132
|
+
0 === --row.pendingTasks &&
|
7133
|
+
finishSuspenseListRow(request, row);
|
7134
|
+
request.allPendingTasks--;
|
6877
7135
|
if (null === boundary) {
|
6878
7136
|
if (null !== segment && segment.parentFlushed) {
|
6879
7137
|
if (null !== request.completedRootSegment)
|
@@ -6901,7 +7159,11 @@
|
|
6901
7159
|
abortTaskSoft,
|
6902
7160
|
request
|
6903
7161
|
),
|
6904
|
-
boundary.fallbackAbortableTasks.clear()
|
7162
|
+
boundary.fallbackAbortableTasks.clear(),
|
7163
|
+
(row = boundary.row),
|
7164
|
+
null !== row &&
|
7165
|
+
0 === --row.pendingTasks &&
|
7166
|
+
finishSuspenseListRow(request, row)),
|
6905
7167
|
0 === request.pendingRootTasks &&
|
6906
7168
|
null === request.trackedPostpones &&
|
6907
7169
|
null !== boundary.contentPreamble &&
|
@@ -6913,7 +7175,6 @@
|
|
6913
7175
|
1 === boundary.completedSegments.length &&
|
6914
7176
|
boundary.parentFlushed &&
|
6915
7177
|
request.partialBoundaries.push(boundary)));
|
6916
|
-
request.allPendingTasks--;
|
6917
7178
|
0 === request.allPendingTasks && completeAll(request);
|
6918
7179
|
}
|
6919
7180
|
function performWork(request$jscomp$2) {
|
@@ -6966,7 +7227,12 @@
|
|
6966
7227
|
);
|
6967
7228
|
request.replay.pendingTasks--;
|
6968
7229
|
request.abortSet.delete(request);
|
6969
|
-
finishedTask(
|
7230
|
+
finishedTask(
|
7231
|
+
request$jscomp$0,
|
7232
|
+
request.blockedBoundary,
|
7233
|
+
request.row,
|
7234
|
+
null
|
7235
|
+
);
|
6970
7236
|
} catch (thrownValue) {
|
6971
7237
|
resetHooksState();
|
6972
7238
|
var x =
|
@@ -7049,6 +7315,7 @@
|
|
7049
7315
|
finishedTask(
|
7050
7316
|
request,
|
7051
7317
|
errorDigest.blockedBoundary,
|
7318
|
+
errorDigest.row,
|
7052
7319
|
request$jscomp$1
|
7053
7320
|
);
|
7054
7321
|
} catch (thrownValue) {
|
@@ -7077,7 +7344,12 @@
|
|
7077
7344
|
errorDigest.abortSet.delete(errorDigest);
|
7078
7345
|
request$jscomp$1.status = 4;
|
7079
7346
|
var boundary$jscomp$0 = errorDigest.blockedBoundary,
|
7347
|
+
row = errorDigest.row,
|
7080
7348
|
debugTask = errorDigest.debugTask;
|
7349
|
+
null !== row &&
|
7350
|
+
0 === --row.pendingTasks &&
|
7351
|
+
finishSuspenseListRow(request, row);
|
7352
|
+
request.allPendingTasks--;
|
7081
7353
|
prevTaskInDEV = logRecoverableError(
|
7082
7354
|
request,
|
7083
7355
|
x$jscomp$0,
|
@@ -7110,7 +7382,6 @@
|
|
7110
7382
|
null === request.trackedPostpones &&
|
7111
7383
|
null !== boundary$jscomp$0.contentPreamble &&
|
7112
7384
|
preparePreamble(request)));
|
7113
|
-
request.allPendingTasks--;
|
7114
7385
|
0 === request.allPendingTasks && completeAll(request);
|
7115
7386
|
}
|
7116
7387
|
} finally {
|
@@ -7262,18 +7533,19 @@
|
|
7262
7533
|
return flushSubtree(request, destination, segment, hoistableState);
|
7263
7534
|
boundary.parentFlushed = !0;
|
7264
7535
|
if (boundary.status === CLIENT_RENDERED) {
|
7265
|
-
var
|
7266
|
-
|
7536
|
+
var row = boundary.row;
|
7537
|
+
null !== row &&
|
7538
|
+
0 === --row.pendingTasks &&
|
7539
|
+
finishSuspenseListRow(request, row);
|
7540
|
+
row = boundary.errorDigest;
|
7541
|
+
var errorMessage = boundary.errorMessage,
|
7267
7542
|
errorStack = boundary.errorStack;
|
7268
7543
|
boundary = boundary.errorComponentStack;
|
7269
7544
|
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
|
7270
7545
|
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
7271
|
-
|
7546
|
+
row &&
|
7272
7547
|
(writeChunk(destination, clientRenderedSuspenseBoundaryError1A),
|
7273
|
-
writeChunk(
|
7274
|
-
destination,
|
7275
|
-
stringToChunk(escapeTextForBrowser(errorDigest))
|
7276
|
-
),
|
7548
|
+
writeChunk(destination, stringToChunk(escapeTextForBrowser(row))),
|
7277
7549
|
writeChunk(
|
7278
7550
|
destination,
|
7279
7551
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
@@ -7349,6 +7621,11 @@
|
|
7349
7621
|
hoistStylesheetDependency,
|
7350
7622
|
hoistableState
|
7351
7623
|
));
|
7624
|
+
segment = boundary.row;
|
7625
|
+
null !== segment &&
|
7626
|
+
500 < boundary.byteSize &&
|
7627
|
+
0 === --segment.pendingTasks &&
|
7628
|
+
finishSuspenseListRow(request, segment);
|
7352
7629
|
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
7353
7630
|
segment = boundary.completedSegments;
|
7354
7631
|
if (1 !== segment.length)
|
@@ -7388,6 +7665,11 @@
|
|
7388
7665
|
completedSegments[i]
|
7389
7666
|
);
|
7390
7667
|
completedSegments.length = 0;
|
7668
|
+
completedSegments = boundary.row;
|
7669
|
+
null !== completedSegments &&
|
7670
|
+
500 < boundary.byteSize &&
|
7671
|
+
0 === --completedSegments.pendingTasks &&
|
7672
|
+
finishSuspenseListRow(request, completedSegments);
|
7391
7673
|
writeHoistablesForBoundary(
|
7392
7674
|
destination,
|
7393
7675
|
boundary.contentState,
|
@@ -7418,11 +7700,11 @@
|
|
7418
7700
|
completeBoundaryWithStylesScript1FullPartial
|
7419
7701
|
))
|
7420
7702
|
: writeChunk(destination, completeBoundaryWithStylesScript1Partial))
|
7421
|
-
: (completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
7422
|
-
NothingSent
|
7423
|
-
|
7424
|
-
writeChunk(destination,
|
7425
|
-
|
7703
|
+
: ((completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
7704
|
+
NothingSent &&
|
7705
|
+
((completedSegments.instructions |= SentCompleteBoundaryFunction),
|
7706
|
+
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
7707
|
+
writeChunk(destination, completeBoundaryScript1Partial));
|
7426
7708
|
completedSegments = stringToChunk(i.toString(16));
|
7427
7709
|
writeChunk(destination, request.boundaryPrefix);
|
7428
7710
|
writeChunk(destination, completedSegments);
|
@@ -7915,11 +8197,11 @@
|
|
7915
8197
|
}
|
7916
8198
|
function ensureCorrectIsomorphicReactVersion() {
|
7917
8199
|
var isomorphicReactPackageVersion = React.version;
|
7918
|
-
if ("19.2.0-canary-
|
8200
|
+
if ("19.2.0-canary-c4676e72-20250520" !== isomorphicReactPackageVersion)
|
7919
8201
|
throw Error(
|
7920
8202
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
7921
8203
|
(isomorphicReactPackageVersion +
|
7922
|
-
"\n - react-dom: 19.2.0-canary-
|
8204
|
+
"\n - react-dom: 19.2.0-canary-c4676e72-20250520\nLearn more: https://react.dev/warnings/version-mismatch")
|
7923
8205
|
);
|
7924
8206
|
}
|
7925
8207
|
var React = require("react"),
|
@@ -9146,12 +9428,12 @@
|
|
9146
9428
|
stringToPrecomputedChunk('<template data-rsi="" data-sid="');
|
9147
9429
|
stringToPrecomputedChunk('" data-pid="');
|
9148
9430
|
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
9149
|
-
|
9150
|
-
|
9151
|
-
|
9152
|
-
|
9153
|
-
|
9154
|
-
|
9431
|
+
'$RB=[];$RV=function(){$RT=performance.now();var d=$RB;$RB=[];for(var a=0;a<d.length;a+=2){var b=d[a],h=d[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var c=b.data;if("/$"===c||"/&"===c)if(0===g)break;else g--;else"$"!==c&&"$?"!==c&&"$~"!==c&&"$!"!==c&&"&"!==c||g++}c=b.nextSibling;e.removeChild(b);b=c}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}};$RC=function(d,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),d=document.getElementById(d))d.previousSibling.data="$~",$RB.push(d,a),2===$RB.length&&setTimeout($RV,("number"!==typeof $RT?0:$RT)+300-performance.now())};'
|
9432
|
+
);
|
9433
|
+
stringToPrecomputedChunk(
|
9434
|
+
"$RV=function(a){try{var b=document.__reactViewTransition;if(b){b.finished.then($RV,$RV);return}if(window._useVT){var c=document.__reactViewTransition=document.startViewTransition({update:a,types:[]});c.finished.finally(function(){document.__reactViewTransition===c&&(document.__reactViewTransition=null)});return}}catch(d){}a()}.bind(null,$RV);"
|
9435
|
+
);
|
9436
|
+
var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
9155
9437
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
9156
9438
|
'$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
|
9157
9439
|
),
|
@@ -9447,6 +9729,7 @@
|
|
9447
9729
|
PENDING = 0,
|
9448
9730
|
COMPLETED = 1,
|
9449
9731
|
FLUSHED = 2,
|
9732
|
+
ABORTED = 3,
|
9450
9733
|
POSTPONED = 5,
|
9451
9734
|
CLOSED = 14,
|
9452
9735
|
currentRequest = null,
|
@@ -9601,5 +9884,5 @@
|
|
9601
9884
|
startWork(request);
|
9602
9885
|
});
|
9603
9886
|
};
|
9604
|
-
exports.version = "19.2.0-canary-
|
9887
|
+
exports.version = "19.2.0-canary-c4676e72-20250520";
|
9605
9888
|
})();
|