react-dom 19.2.0-canary-c4676e72-20250520 → 19.2.0-canary-8ce15b0f-20250522
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 +5 -5
- package/cjs/react-dom-client.production.js +5 -5
- package/cjs/react-dom-profiling.development.js +5 -5
- package/cjs/react-dom-profiling.profiling.js +5 -5
- package/cjs/react-dom-server-legacy.browser.development.js +352 -197
- package/cjs/react-dom-server-legacy.browser.production.js +335 -213
- package/cjs/react-dom-server-legacy.node.development.js +352 -197
- package/cjs/react-dom-server-legacy.node.production.js +338 -213
- package/cjs/react-dom-server.browser.development.js +338 -164
- package/cjs/react-dom-server.browser.production.js +303 -159
- package/cjs/react-dom-server.bun.development.js +306 -154
- package/cjs/react-dom-server.bun.production.js +309 -162
- package/cjs/react-dom-server.edge.development.js +338 -164
- package/cjs/react-dom-server.edge.production.js +306 -159
- package/cjs/react-dom-server.node.development.js +338 -164
- package/cjs/react-dom-server.node.production.js +306 -159
- 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
@@ -1094,8 +1094,8 @@
|
|
1094
1094
|
? null
|
1095
1095
|
: {
|
1096
1096
|
update: parentViewTransition.update,
|
1097
|
-
enter:
|
1098
|
-
exit:
|
1097
|
+
enter: "none",
|
1098
|
+
exit: "none",
|
1099
1099
|
share: parentViewTransition.update,
|
1100
1100
|
name: parentViewTransition.autoName,
|
1101
1101
|
autoName: parentViewTransition.autoName,
|
@@ -3610,6 +3610,10 @@
|
|
3610
3610
|
function hoistStylesheetDependency(stylesheet) {
|
3611
3611
|
this.stylesheets.add(stylesheet);
|
3612
3612
|
}
|
3613
|
+
function hoistHoistables(parentState, childState) {
|
3614
|
+
childState.styles.forEach(hoistStyleQueueDependency, parentState);
|
3615
|
+
childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
|
3616
|
+
}
|
3613
3617
|
function getComponentNameFromType(type) {
|
3614
3618
|
if (null == type) return null;
|
3615
3619
|
if ("function" === typeof type)
|
@@ -4587,11 +4591,14 @@
|
|
4587
4591
|
};
|
4588
4592
|
null !== row &&
|
4589
4593
|
(row.pendingTasks++,
|
4590
|
-
(
|
4591
|
-
null !==
|
4594
|
+
(contentPreamble = row.boundaries),
|
4595
|
+
null !== contentPreamble &&
|
4592
4596
|
(request.allPendingTasks++,
|
4593
4597
|
fallbackAbortableTasks.pendingTasks++,
|
4594
|
-
|
4598
|
+
contentPreamble.push(fallbackAbortableTasks)),
|
4599
|
+
(request = row.inheritedHoistables),
|
4600
|
+
null !== request &&
|
4601
|
+
hoistHoistables(fallbackAbortableTasks.contentState, request));
|
4595
4602
|
return fallbackAbortableTasks;
|
4596
4603
|
}
|
4597
4604
|
function createRenderTask(
|
@@ -4869,20 +4876,70 @@
|
|
4869
4876
|
: ((request.status = 13), (request.fatalError = error));
|
4870
4877
|
}
|
4871
4878
|
function finishSuspenseListRow(request, row) {
|
4872
|
-
|
4873
|
-
|
4879
|
+
unblockSuspenseListRow(request, row.next, row.hoistables);
|
4880
|
+
}
|
4881
|
+
function unblockSuspenseListRow(
|
4882
|
+
request,
|
4883
|
+
unblockedRow,
|
4884
|
+
inheritedHoistables
|
4885
|
+
) {
|
4886
|
+
for (; null !== unblockedRow; ) {
|
4887
|
+
null !== inheritedHoistables &&
|
4888
|
+
(hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
|
4889
|
+
(unblockedRow.inheritedHoistables = inheritedHoistables));
|
4890
|
+
var unblockedBoundaries = unblockedRow.boundaries;
|
4874
4891
|
if (null !== unblockedBoundaries) {
|
4875
|
-
|
4876
|
-
for (var i = 0; i < unblockedBoundaries.length; i++)
|
4877
|
-
|
4892
|
+
unblockedRow.boundaries = null;
|
4893
|
+
for (var i = 0; i < unblockedBoundaries.length; i++) {
|
4894
|
+
var unblockedBoundary = unblockedBoundaries[i];
|
4895
|
+
null !== inheritedHoistables &&
|
4896
|
+
hoistHoistables(
|
4897
|
+
unblockedBoundary.contentState,
|
4898
|
+
inheritedHoistables
|
4899
|
+
);
|
4900
|
+
finishedTask(request, unblockedBoundary, null, null);
|
4901
|
+
}
|
4878
4902
|
}
|
4879
|
-
|
4880
|
-
if (0 <
|
4881
|
-
|
4903
|
+
unblockedRow.pendingTasks--;
|
4904
|
+
if (0 < unblockedRow.pendingTasks) break;
|
4905
|
+
inheritedHoistables = unblockedRow.hoistables;
|
4906
|
+
unblockedRow = unblockedRow.next;
|
4907
|
+
}
|
4908
|
+
}
|
4909
|
+
function tryToResolveTogetherRow(request, togetherRow) {
|
4910
|
+
var boundaries = togetherRow.boundaries;
|
4911
|
+
if (
|
4912
|
+
null !== boundaries &&
|
4913
|
+
togetherRow.pendingTasks === boundaries.length
|
4914
|
+
) {
|
4915
|
+
for (
|
4916
|
+
var allCompleteAndInlinable = !0, i = 0;
|
4917
|
+
i < boundaries.length;
|
4918
|
+
i++
|
4919
|
+
) {
|
4920
|
+
var rowBoundary = boundaries[i];
|
4921
|
+
if (
|
4922
|
+
1 !== rowBoundary.pendingTasks ||
|
4923
|
+
rowBoundary.parentFlushed ||
|
4924
|
+
500 < rowBoundary.byteSize
|
4925
|
+
) {
|
4926
|
+
allCompleteAndInlinable = !1;
|
4927
|
+
break;
|
4928
|
+
}
|
4929
|
+
}
|
4930
|
+
allCompleteAndInlinable &&
|
4931
|
+
unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
|
4882
4932
|
}
|
4883
4933
|
}
|
4884
4934
|
function createSuspenseListRow(previousRow) {
|
4885
|
-
var newRow = {
|
4935
|
+
var newRow = {
|
4936
|
+
pendingTasks: 1,
|
4937
|
+
boundaries: null,
|
4938
|
+
hoistables: createHoistableState(),
|
4939
|
+
inheritedHoistables: null,
|
4940
|
+
together: !1,
|
4941
|
+
next: null
|
4942
|
+
};
|
4886
4943
|
null !== previousRow &&
|
4887
4944
|
0 < previousRow.pendingTasks &&
|
4888
4945
|
(newRow.pendingTasks++,
|
@@ -4891,28 +4948,25 @@
|
|
4891
4948
|
return newRow;
|
4892
4949
|
}
|
4893
4950
|
function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
4894
|
-
|
4895
|
-
|
4951
|
+
var prevKeyPath = task.keyPath,
|
4952
|
+
prevTreeContext = task.treeContext,
|
4953
|
+
prevRow = task.row,
|
4954
|
+
previousComponentStack = task.componentStack;
|
4896
4955
|
var previousDebugTask = task.debugTask;
|
4897
4956
|
pushServerComponentStack(task, task.node.props.children._debugInfo);
|
4898
|
-
|
4899
|
-
|
4900
|
-
|
4901
|
-
previousSuspenseListRow = null;
|
4957
|
+
task.keyPath = keyPath;
|
4958
|
+
keyPath = rows.length;
|
4959
|
+
var previousSuspenseListRow = null;
|
4902
4960
|
if (null !== task.replay) {
|
4903
4961
|
var resumeSlots = task.replay.slots;
|
4904
4962
|
if (null !== resumeSlots && "object" === typeof resumeSlots)
|
4905
|
-
for (var n = 0; n <
|
4906
|
-
var i = "backwards" !== revealOrder ? n :
|
4963
|
+
for (var n = 0; n < keyPath; n++) {
|
4964
|
+
var i = "backwards" !== revealOrder ? n : keyPath - 1 - n,
|
4907
4965
|
node = rows[i];
|
4908
4966
|
task.row = previousSuspenseListRow = createSuspenseListRow(
|
4909
4967
|
previousSuspenseListRow
|
4910
4968
|
);
|
4911
|
-
task.treeContext = pushTreeContext(
|
4912
|
-
prevTreeContext,
|
4913
|
-
totalChildren,
|
4914
|
-
i
|
4915
|
-
);
|
4969
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
4916
4970
|
var resumeSegmentID = resumeSlots[i];
|
4917
4971
|
"number" === typeof resumeSegmentID
|
4918
4972
|
? (resumeNode(request, task, resumeSegmentID, node, i),
|
@@ -4922,32 +4976,28 @@
|
|
4922
4976
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
4923
4977
|
}
|
4924
4978
|
else
|
4925
|
-
for (resumeSlots = 0; resumeSlots <
|
4979
|
+
for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
|
4926
4980
|
(n =
|
4927
4981
|
"backwards" !== revealOrder
|
4928
4982
|
? resumeSlots
|
4929
|
-
:
|
4983
|
+
: keyPath - 1 - resumeSlots),
|
4930
4984
|
(i = rows[n]),
|
4931
4985
|
warnForMissingKey(request, task, i),
|
4932
4986
|
(task.row = previousSuspenseListRow =
|
4933
4987
|
createSuspenseListRow(previousSuspenseListRow)),
|
4934
|
-
(task.treeContext = pushTreeContext(
|
4935
|
-
prevTreeContext,
|
4936
|
-
totalChildren,
|
4937
|
-
n
|
4938
|
-
)),
|
4988
|
+
(task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
|
4939
4989
|
renderNode(request, task, i, n),
|
4940
4990
|
0 === --previousSuspenseListRow.pendingTasks &&
|
4941
4991
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
4942
4992
|
} else if ("backwards" !== revealOrder)
|
4943
|
-
for (revealOrder = 0; revealOrder <
|
4993
|
+
for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
|
4944
4994
|
(resumeSlots = rows[revealOrder]),
|
4945
4995
|
warnForMissingKey(request, task, resumeSlots),
|
4946
4996
|
(task.row = previousSuspenseListRow =
|
4947
4997
|
createSuspenseListRow(previousSuspenseListRow)),
|
4948
4998
|
(task.treeContext = pushTreeContext(
|
4949
4999
|
prevTreeContext,
|
4950
|
-
|
5000
|
+
keyPath,
|
4951
5001
|
revealOrder
|
4952
5002
|
)),
|
4953
5003
|
renderNode(request, task, resumeSlots, revealOrder),
|
@@ -4957,12 +5007,12 @@
|
|
4957
5007
|
revealOrder = task.blockedSegment;
|
4958
5008
|
resumeSlots = revealOrder.children.length;
|
4959
5009
|
n = revealOrder.chunks.length;
|
4960
|
-
for (i =
|
5010
|
+
for (i = keyPath - 1; 0 <= i; i--) {
|
4961
5011
|
node = rows[i];
|
4962
5012
|
task.row = previousSuspenseListRow = createSuspenseListRow(
|
4963
5013
|
previousSuspenseListRow
|
4964
5014
|
);
|
4965
|
-
task.treeContext = pushTreeContext(prevTreeContext,
|
5015
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
4966
5016
|
resumeSegmentID = createPendingSegment(
|
4967
5017
|
request,
|
4968
5018
|
n,
|
@@ -4999,7 +5049,7 @@
|
|
4999
5049
|
(prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
|
5000
5050
|
task.treeContext = prevTreeContext;
|
5001
5051
|
task.row = prevRow;
|
5002
|
-
task.keyPath =
|
5052
|
+
task.keyPath = prevKeyPath;
|
5003
5053
|
task.componentStack = previousComponentStack;
|
5004
5054
|
task.debugTask = previousDebugTask;
|
5005
5055
|
}
|
@@ -5544,7 +5594,7 @@
|
|
5544
5594
|
);
|
5545
5595
|
segment.lastPushedText = !1;
|
5546
5596
|
var _prevContext2 = task.formatContext,
|
5547
|
-
|
5597
|
+
_prevKeyPath3 = task.keyPath;
|
5548
5598
|
task.keyPath = keyPath;
|
5549
5599
|
if (
|
5550
5600
|
(task.formatContext = getChildFormatContext(
|
@@ -5585,7 +5635,7 @@
|
|
5585
5635
|
request.pingedTasks.push(preambleTask);
|
5586
5636
|
} else renderNode(request, task, _children, -1);
|
5587
5637
|
task.formatContext = _prevContext2;
|
5588
|
-
task.keyPath =
|
5638
|
+
task.keyPath = _prevKeyPath3;
|
5589
5639
|
a: {
|
5590
5640
|
var target = segment.chunks,
|
5591
5641
|
resumableState = request.resumableState;
|
@@ -5651,10 +5701,10 @@
|
|
5651
5701
|
} else if ("hidden" !== props.mode) {
|
5652
5702
|
segment$jscomp$0.chunks.push(startActivityBoundary);
|
5653
5703
|
segment$jscomp$0.lastPushedText = !1;
|
5654
|
-
var
|
5704
|
+
var _prevKeyPath4 = task.keyPath;
|
5655
5705
|
task.keyPath = keyPath;
|
5656
5706
|
renderNode(request, task, props.children, -1);
|
5657
|
-
task.keyPath =
|
5707
|
+
task.keyPath = _prevKeyPath4;
|
5658
5708
|
segment$jscomp$0.chunks.push(endActivityBoundary);
|
5659
5709
|
segment$jscomp$0.lastPushedText = !1;
|
5660
5710
|
}
|
@@ -5702,10 +5752,27 @@
|
|
5702
5752
|
}
|
5703
5753
|
}
|
5704
5754
|
}
|
5705
|
-
|
5706
|
-
|
5707
|
-
|
5708
|
-
|
5755
|
+
if ("together" === revealOrder) {
|
5756
|
+
var _prevKeyPath2 = task.keyPath,
|
5757
|
+
prevRow = task.row,
|
5758
|
+
newRow = (task.row = createSuspenseListRow(null));
|
5759
|
+
newRow.boundaries = [];
|
5760
|
+
newRow.together = !0;
|
5761
|
+
task.keyPath = keyPath;
|
5762
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
5763
|
+
0 === --newRow.pendingTasks &&
|
5764
|
+
finishSuspenseListRow(request, newRow);
|
5765
|
+
task.keyPath = _prevKeyPath2;
|
5766
|
+
task.row = prevRow;
|
5767
|
+
null !== prevRow &&
|
5768
|
+
0 < newRow.pendingTasks &&
|
5769
|
+
(prevRow.pendingTasks++, (newRow.next = prevRow));
|
5770
|
+
} else {
|
5771
|
+
var prevKeyPath$jscomp$3 = task.keyPath;
|
5772
|
+
task.keyPath = keyPath;
|
5773
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
5774
|
+
task.keyPath = prevKeyPath$jscomp$3;
|
5775
|
+
}
|
5709
5776
|
}
|
5710
5777
|
return;
|
5711
5778
|
case REACT_VIEW_TRANSITION_TYPE:
|
@@ -5735,7 +5802,7 @@
|
|
5735
5802
|
} else {
|
5736
5803
|
var prevKeyPath$jscomp$4 = task.keyPath,
|
5737
5804
|
prevContext$jscomp$0 = task.formatContext,
|
5738
|
-
prevRow = task.row,
|
5805
|
+
prevRow$jscomp$0 = task.row,
|
5739
5806
|
parentBoundary = task.blockedBoundary,
|
5740
5807
|
parentPreamble = task.blockedPreamble,
|
5741
5808
|
parentHoistableState = task.hoistableState,
|
@@ -5870,18 +5937,24 @@
|
|
5870
5937
|
finishedSegment(request, newBoundary, contentRootSegment),
|
5871
5938
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
5872
5939
|
0 === newBoundary.pendingTasks &&
|
5873
|
-
newBoundary.status === PENDING
|
5874
|
-
((newBoundary.status = COMPLETED),
|
5875
|
-
!(500 < newBoundary.byteSize)))
|
5940
|
+
newBoundary.status === PENDING)
|
5876
5941
|
) {
|
5877
|
-
|
5878
|
-
|
5879
|
-
|
5880
|
-
|
5881
|
-
|
5882
|
-
|
5883
|
-
|
5884
|
-
|
5942
|
+
if (
|
5943
|
+
((newBoundary.status = COMPLETED),
|
5944
|
+
!(500 < newBoundary.byteSize))
|
5945
|
+
) {
|
5946
|
+
null !== prevRow$jscomp$0 &&
|
5947
|
+
0 === --prevRow$jscomp$0.pendingTasks &&
|
5948
|
+
finishSuspenseListRow(request, prevRow$jscomp$0);
|
5949
|
+
0 === request.pendingRootTasks &&
|
5950
|
+
task.blockedPreamble &&
|
5951
|
+
preparePreamble(request);
|
5952
|
+
break a;
|
5953
|
+
}
|
5954
|
+
} else
|
5955
|
+
null !== prevRow$jscomp$0 &&
|
5956
|
+
prevRow$jscomp$0.together &&
|
5957
|
+
tryToResolveTogetherRow(request, prevRow$jscomp$0);
|
5885
5958
|
} catch (thrownValue$2) {
|
5886
5959
|
newBoundary.status = CLIENT_RENDERED;
|
5887
5960
|
if (12 === request.status) {
|
@@ -5911,7 +5984,7 @@
|
|
5911
5984
|
(task.blockedSegment = parentSegment),
|
5912
5985
|
(task.keyPath = prevKeyPath$jscomp$4),
|
5913
5986
|
(task.formatContext = prevContext$jscomp$0),
|
5914
|
-
(task.row = prevRow);
|
5987
|
+
(task.row = prevRow$jscomp$0);
|
5915
5988
|
}
|
5916
5989
|
var suspendedFallbackTask = createRenderTask(
|
5917
5990
|
request,
|
@@ -6871,10 +6944,6 @@
|
|
6871
6944
|
if (6 === segment.status) return;
|
6872
6945
|
segment.status = ABORTED;
|
6873
6946
|
}
|
6874
|
-
segment = task.row;
|
6875
|
-
null !== segment &&
|
6876
|
-
0 === --segment.pendingTasks &&
|
6877
|
-
finishSuspenseListRow(request, segment);
|
6878
6947
|
segment = getThrownInfo(task.componentStack);
|
6879
6948
|
if (null === boundary) {
|
6880
6949
|
if (13 !== request.status && request.status !== CLOSED) {
|
@@ -6885,36 +6954,49 @@
|
|
6885
6954
|
return;
|
6886
6955
|
}
|
6887
6956
|
boundary.pendingTasks--;
|
6888
|
-
0 === boundary.pendingTasks &&
|
6889
|
-
|
6890
|
-
|
6957
|
+
if (0 === boundary.pendingTasks && 0 < boundary.nodes.length) {
|
6958
|
+
var errorDigest = logRecoverableError(
|
6959
|
+
request,
|
6960
|
+
error,
|
6961
|
+
segment,
|
6962
|
+
null
|
6963
|
+
);
|
6891
6964
|
abortRemainingReplayNodes(
|
6892
6965
|
request,
|
6893
6966
|
null,
|
6894
6967
|
boundary.nodes,
|
6895
6968
|
boundary.slots,
|
6896
6969
|
error,
|
6897
|
-
|
6970
|
+
errorDigest,
|
6898
6971
|
segment,
|
6899
6972
|
!0
|
6900
|
-
)
|
6973
|
+
);
|
6974
|
+
}
|
6901
6975
|
request.pendingRootTasks--;
|
6902
6976
|
0 === request.pendingRootTasks && completeShell(request);
|
6903
6977
|
}
|
6904
6978
|
} else
|
6905
|
-
boundary.
|
6906
|
-
boundary.status
|
6907
|
-
|
6908
|
-
|
6909
|
-
|
6910
|
-
|
6911
|
-
|
6912
|
-
boundary
|
6913
|
-
|
6979
|
+
boundary.status !== CLIENT_RENDERED &&
|
6980
|
+
((boundary.status = CLIENT_RENDERED),
|
6981
|
+
(errorDigest = logRecoverableError(request, error, segment, null)),
|
6982
|
+
(boundary.status = CLIENT_RENDERED),
|
6983
|
+
encodeErrorForBoundary(boundary, errorDigest, error, segment, !0),
|
6984
|
+
untrackBoundary(request, boundary),
|
6985
|
+
boundary.parentFlushed &&
|
6986
|
+
request.clientRenderedBoundaries.push(boundary)),
|
6987
|
+
boundary.pendingTasks--,
|
6988
|
+
(segment = boundary.row),
|
6989
|
+
null !== segment &&
|
6990
|
+
0 === --segment.pendingTasks &&
|
6991
|
+
finishSuspenseListRow(request, segment),
|
6914
6992
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
6915
6993
|
return abortTask(fallbackTask, request, error);
|
6916
6994
|
}),
|
6917
6995
|
boundary.fallbackAbortableTasks.clear();
|
6996
|
+
task = task.row;
|
6997
|
+
null !== task &&
|
6998
|
+
0 === --task.pendingTasks &&
|
6999
|
+
finishSuspenseListRow(request, task);
|
6918
7000
|
request.allPendingTasks--;
|
6919
7001
|
0 === request.allPendingTasks && completeAll(request);
|
6920
7002
|
}
|
@@ -7026,55 +7108,129 @@
|
|
7026
7108
|
: (boundary.byteSize += segmentByteSize);
|
7027
7109
|
}
|
7028
7110
|
}
|
7029
|
-
function finishedTask(request, boundary, row, segment) {
|
7111
|
+
function finishedTask(request$jscomp$0, boundary$jscomp$0, row, segment) {
|
7030
7112
|
null !== row &&
|
7031
|
-
0 === --row.pendingTasks
|
7032
|
-
|
7033
|
-
|
7034
|
-
|
7113
|
+
(0 === --row.pendingTasks
|
7114
|
+
? finishSuspenseListRow(request$jscomp$0, row)
|
7115
|
+
: row.together && tryToResolveTogetherRow(request$jscomp$0, row));
|
7116
|
+
request$jscomp$0.allPendingTasks--;
|
7117
|
+
if (null === boundary$jscomp$0) {
|
7035
7118
|
if (null !== segment && segment.parentFlushed) {
|
7036
|
-
if (null !== request.completedRootSegment)
|
7119
|
+
if (null !== request$jscomp$0.completedRootSegment)
|
7037
7120
|
throw Error(
|
7038
7121
|
"There can only be one root segment. This is a bug in React."
|
7039
7122
|
);
|
7040
|
-
request.completedRootSegment = segment;
|
7123
|
+
request$jscomp$0.completedRootSegment = segment;
|
7041
7124
|
}
|
7042
|
-
request.pendingRootTasks--;
|
7043
|
-
0 === request.pendingRootTasks &&
|
7044
|
-
|
7045
|
-
|
7046
|
-
|
7047
|
-
|
7048
|
-
|
7049
|
-
|
7050
|
-
|
7051
|
-
|
7052
|
-
|
7053
|
-
|
7054
|
-
|
7055
|
-
|
7056
|
-
|
7057
|
-
|
7058
|
-
|
7059
|
-
|
7060
|
-
|
7061
|
-
|
7062
|
-
|
7063
|
-
|
7064
|
-
|
7065
|
-
|
7066
|
-
|
7067
|
-
|
7068
|
-
|
7069
|
-
|
7070
|
-
|
7071
|
-
|
7072
|
-
|
7073
|
-
|
7074
|
-
|
7075
|
-
|
7076
|
-
|
7077
|
-
|
7125
|
+
request$jscomp$0.pendingRootTasks--;
|
7126
|
+
0 === request$jscomp$0.pendingRootTasks &&
|
7127
|
+
completeShell(request$jscomp$0);
|
7128
|
+
} else if (
|
7129
|
+
(boundary$jscomp$0.pendingTasks--,
|
7130
|
+
boundary$jscomp$0.status !== CLIENT_RENDERED)
|
7131
|
+
)
|
7132
|
+
if (0 === boundary$jscomp$0.pendingTasks)
|
7133
|
+
if (
|
7134
|
+
(boundary$jscomp$0.status === PENDING &&
|
7135
|
+
(boundary$jscomp$0.status = COMPLETED),
|
7136
|
+
null !== segment &&
|
7137
|
+
segment.parentFlushed &&
|
7138
|
+
segment.status === COMPLETED &&
|
7139
|
+
queueCompletedSegment(boundary$jscomp$0, segment),
|
7140
|
+
boundary$jscomp$0.parentFlushed &&
|
7141
|
+
request$jscomp$0.completedBoundaries.push(boundary$jscomp$0),
|
7142
|
+
boundary$jscomp$0.status === COMPLETED)
|
7143
|
+
)
|
7144
|
+
(row = boundary$jscomp$0.row),
|
7145
|
+
null !== row &&
|
7146
|
+
hoistHoistables(row.hoistables, boundary$jscomp$0.contentState),
|
7147
|
+
500 < boundary$jscomp$0.byteSize ||
|
7148
|
+
(boundary$jscomp$0.fallbackAbortableTasks.forEach(
|
7149
|
+
abortTaskSoft,
|
7150
|
+
request$jscomp$0
|
7151
|
+
),
|
7152
|
+
boundary$jscomp$0.fallbackAbortableTasks.clear(),
|
7153
|
+
null !== row &&
|
7154
|
+
0 === --row.pendingTasks &&
|
7155
|
+
finishSuspenseListRow(request$jscomp$0, row)),
|
7156
|
+
0 === request$jscomp$0.pendingRootTasks &&
|
7157
|
+
null === request$jscomp$0.trackedPostpones &&
|
7158
|
+
null !== boundary$jscomp$0.contentPreamble &&
|
7159
|
+
preparePreamble(request$jscomp$0);
|
7160
|
+
else {
|
7161
|
+
if (
|
7162
|
+
boundary$jscomp$0.status === POSTPONED &&
|
7163
|
+
((boundary$jscomp$0 = boundary$jscomp$0.row),
|
7164
|
+
null !== boundary$jscomp$0)
|
7165
|
+
) {
|
7166
|
+
if (null !== request$jscomp$0.trackedPostpones) {
|
7167
|
+
row = request$jscomp$0.trackedPostpones;
|
7168
|
+
var postponedRow = boundary$jscomp$0.next;
|
7169
|
+
if (
|
7170
|
+
null !== postponedRow &&
|
7171
|
+
((segment = postponedRow.boundaries), null !== segment)
|
7172
|
+
)
|
7173
|
+
for (
|
7174
|
+
postponedRow.boundaries = null, postponedRow = 0;
|
7175
|
+
postponedRow < segment.length;
|
7176
|
+
postponedRow++
|
7177
|
+
) {
|
7178
|
+
var postponedBoundary = segment[postponedRow];
|
7179
|
+
var request = request$jscomp$0,
|
7180
|
+
trackedPostpones = row,
|
7181
|
+
boundary = postponedBoundary;
|
7182
|
+
boundary.status = POSTPONED;
|
7183
|
+
boundary.rootSegmentID = request.nextSegmentId++;
|
7184
|
+
request = boundary.trackedContentKeyPath;
|
7185
|
+
if (null === request)
|
7186
|
+
throw Error(
|
7187
|
+
"It should not be possible to postpone at the root. This is a bug in React."
|
7188
|
+
);
|
7189
|
+
var fallbackReplayNode = boundary.trackedFallbackNode,
|
7190
|
+
children = [],
|
7191
|
+
boundaryNode = trackedPostpones.workingMap.get(request);
|
7192
|
+
void 0 === boundaryNode
|
7193
|
+
? ((boundary = [
|
7194
|
+
request[1],
|
7195
|
+
request[2],
|
7196
|
+
children,
|
7197
|
+
null,
|
7198
|
+
fallbackReplayNode,
|
7199
|
+
boundary.rootSegmentID
|
7200
|
+
]),
|
7201
|
+
trackedPostpones.workingMap.set(request, boundary),
|
7202
|
+
addToReplayParent(
|
7203
|
+
boundary,
|
7204
|
+
request[0],
|
7205
|
+
trackedPostpones
|
7206
|
+
))
|
7207
|
+
: ((boundaryNode[4] = fallbackReplayNode),
|
7208
|
+
(boundaryNode[5] = boundary.rootSegmentID));
|
7209
|
+
finishedTask(
|
7210
|
+
request$jscomp$0,
|
7211
|
+
postponedBoundary,
|
7212
|
+
null,
|
7213
|
+
null
|
7214
|
+
);
|
7215
|
+
}
|
7216
|
+
}
|
7217
|
+
0 === --boundary$jscomp$0.pendingTasks &&
|
7218
|
+
finishSuspenseListRow(request$jscomp$0, boundary$jscomp$0);
|
7219
|
+
}
|
7220
|
+
}
|
7221
|
+
else
|
7222
|
+
null !== segment &&
|
7223
|
+
segment.parentFlushed &&
|
7224
|
+
segment.status === COMPLETED &&
|
7225
|
+
(queueCompletedSegment(boundary$jscomp$0, segment),
|
7226
|
+
1 === boundary$jscomp$0.completedSegments.length &&
|
7227
|
+
boundary$jscomp$0.parentFlushed &&
|
7228
|
+
request$jscomp$0.partialBoundaries.push(boundary$jscomp$0)),
|
7229
|
+
(boundary$jscomp$0 = boundary$jscomp$0.row),
|
7230
|
+
null !== boundary$jscomp$0 &&
|
7231
|
+
boundary$jscomp$0.together &&
|
7232
|
+
tryToResolveTogetherRow(request$jscomp$0, boundary$jscomp$0);
|
7233
|
+
0 === request$jscomp$0.allPendingTasks && completeAll(request$jscomp$0);
|
7078
7234
|
}
|
7079
7235
|
function performWork(request$jscomp$2) {
|
7080
7236
|
if (
|
@@ -7255,32 +7411,37 @@
|
|
7255
7411
|
errorInfo$jscomp$1,
|
7256
7412
|
debugTask
|
7257
7413
|
);
|
7258
|
-
null === boundary$jscomp$0
|
7259
|
-
|
7260
|
-
|
7261
|
-
|
7262
|
-
|
7263
|
-
|
7264
|
-
|
7265
|
-
|
7266
|
-
|
7267
|
-
|
7268
|
-
|
7269
|
-
|
7270
|
-
|
7271
|
-
|
7272
|
-
|
7273
|
-
|
7274
|
-
|
7275
|
-
|
7276
|
-
|
7277
|
-
|
7278
|
-
|
7279
|
-
|
7280
|
-
|
7281
|
-
|
7282
|
-
|
7283
|
-
|
7414
|
+
if (null === boundary$jscomp$0)
|
7415
|
+
fatalError(
|
7416
|
+
request,
|
7417
|
+
x$jscomp$0,
|
7418
|
+
errorInfo$jscomp$1,
|
7419
|
+
debugTask
|
7420
|
+
);
|
7421
|
+
else if (
|
7422
|
+
(boundary$jscomp$0.pendingTasks--,
|
7423
|
+
boundary$jscomp$0.status !== CLIENT_RENDERED)
|
7424
|
+
) {
|
7425
|
+
boundary$jscomp$0.status = CLIENT_RENDERED;
|
7426
|
+
encodeErrorForBoundary(
|
7427
|
+
boundary$jscomp$0,
|
7428
|
+
prevTaskInDEV,
|
7429
|
+
x$jscomp$0,
|
7430
|
+
errorInfo$jscomp$1,
|
7431
|
+
!1
|
7432
|
+
);
|
7433
|
+
untrackBoundary(request, boundary$jscomp$0);
|
7434
|
+
var boundaryRow = boundary$jscomp$0.row;
|
7435
|
+
null !== boundaryRow &&
|
7436
|
+
0 === --boundaryRow.pendingTasks &&
|
7437
|
+
finishSuspenseListRow(request, boundaryRow);
|
7438
|
+
boundary$jscomp$0.parentFlushed &&
|
7439
|
+
request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
7440
|
+
0 === request.pendingRootTasks &&
|
7441
|
+
null === request.trackedPostpones &&
|
7442
|
+
null !== boundary$jscomp$0.contentPreamble &&
|
7443
|
+
preparePreamble(request);
|
7444
|
+
}
|
7284
7445
|
0 === request.allPendingTasks && completeAll(request);
|
7285
7446
|
}
|
7286
7447
|
} finally {
|
@@ -7483,12 +7644,7 @@
|
|
7483
7644
|
boundary.rootSegmentID
|
7484
7645
|
),
|
7485
7646
|
hoistableState &&
|
7486
|
-
(
|
7487
|
-
boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
7488
|
-
boundary.stylesheets.forEach(
|
7489
|
-
hoistStylesheetDependency,
|
7490
|
-
hoistableState
|
7491
|
-
)),
|
7647
|
+
hoistHoistables(hoistableState, boundary.fallbackState),
|
7492
7648
|
flushSubtree(request, destination, segment, hoistableState);
|
7493
7649
|
else if (
|
7494
7650
|
500 < boundary.byteSize &&
|
@@ -7505,12 +7661,7 @@
|
|
7505
7661
|
else {
|
7506
7662
|
flushedByteSize += boundary.byteSize;
|
7507
7663
|
hoistableState &&
|
7508
|
-
(
|
7509
|
-
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
7510
|
-
segment.stylesheets.forEach(
|
7511
|
-
hoistStylesheetDependency,
|
7512
|
-
hoistableState
|
7513
|
-
));
|
7664
|
+
hoistHoistables(hoistableState, boundary.contentState);
|
7514
7665
|
segment = boundary.row;
|
7515
7666
|
null !== segment &&
|
7516
7667
|
500 < boundary.byteSize &&
|
@@ -7953,6 +8104,17 @@
|
|
7953
8104
|
break a;
|
7954
8105
|
}
|
7955
8106
|
completedSegments.splice(0, JSCompiler_inline_result);
|
8107
|
+
var row = boundary$jscomp$0.row;
|
8108
|
+
null !== row &&
|
8109
|
+
row.together &&
|
8110
|
+
1 === boundary$jscomp$0.pendingTasks &&
|
8111
|
+
(1 === row.pendingTasks
|
8112
|
+
? unblockSuspenseListRow(
|
8113
|
+
clientRenderedBoundaries,
|
8114
|
+
row,
|
8115
|
+
row.hoistables
|
8116
|
+
)
|
8117
|
+
: row.pendingTasks--);
|
7956
8118
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
7957
8119
|
boundary,
|
7958
8120
|
boundary$jscomp$0.contentState,
|
@@ -8070,13 +8232,25 @@
|
|
8070
8232
|
fatalError(request, error$4, reason, null);
|
8071
8233
|
}
|
8072
8234
|
}
|
8235
|
+
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
8236
|
+
if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
|
8237
|
+
else {
|
8238
|
+
var workingMap = trackedPostpones.workingMap,
|
8239
|
+
parentNode = workingMap.get(parentKeyPath);
|
8240
|
+
void 0 === parentNode &&
|
8241
|
+
((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
|
8242
|
+
workingMap.set(parentKeyPath, parentNode),
|
8243
|
+
addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
|
8244
|
+
parentNode[2].push(node);
|
8245
|
+
}
|
8246
|
+
}
|
8073
8247
|
function ensureCorrectIsomorphicReactVersion() {
|
8074
8248
|
var isomorphicReactPackageVersion = React.version;
|
8075
|
-
if ("19.2.0-canary-
|
8249
|
+
if ("19.2.0-canary-8ce15b0f-20250522" !== isomorphicReactPackageVersion)
|
8076
8250
|
throw Error(
|
8077
8251
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
8078
8252
|
(isomorphicReactPackageVersion +
|
8079
|
-
"\n - react-dom: 19.2.0-canary-
|
8253
|
+
"\n - react-dom: 19.2.0-canary-8ce15b0f-20250522\nLearn more: https://react.dev/warnings/version-mismatch")
|
8080
8254
|
);
|
8081
8255
|
}
|
8082
8256
|
function createDrainHandler(destination, request) {
|
@@ -9354,10 +9528,10 @@
|
|
9354
9528
|
stringToPrecomputedChunk('<template data-rsi="" data-sid="');
|
9355
9529
|
stringToPrecomputedChunk('" data-pid="');
|
9356
9530
|
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
9357
|
-
'$RB=[];$RV=function(){$RT=performance.now();
|
9531
|
+
'$RB=[];$RV=function(c){$RT=performance.now();for(var a=0;a<c.length;a+=2){var b=c[a],h=c[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var d=b.data;if("/$"===d||"/&"===d)if(0===g)break;else g--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||g++}d=b.nextSibling;e.removeChild(b);b=d}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}c.length=0};$RC=function(c,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),c=document.getElementById(c))c.previousSibling.data="$~",$RB.push(c,a),2===$RB.length&&setTimeout($RV.bind(null,$RB),("number"!==typeof $RT?0:$RT)+300-performance.now())};'
|
9358
9532
|
);
|
9359
9533
|
stringToPrecomputedChunk(
|
9360
|
-
|
9534
|
+
'$RV=function(w,f){function h(b,d){var k=b.getAttribute(d);k&&(d=b.style,l.push(b,d.viewTransitionName,d.viewTransitionClass),"auto"!==k&&(d.viewTransitionClass=k),(b=b.getAttribute("vt-name"))||(b="\\u00abT"+F++ +"\\u00bb"),d.viewTransitionName=b,x=!0)}var x=!1,F=0,l=[];try{var e=document.__reactViewTransition;if(e){e.finished.finally($RV.bind(null,f));return}var m=new Map;for(e=1;e<f.length;e+=2)for(var g=f[e].querySelectorAll("[vt-share]"),c=0;c<g.length;c++){var a=g[c];m.set(a.getAttribute("vt-name"),a)}for(g=0;g<f.length;g+=2){var y=f[g],t=y.parentNode;if(t){var r=t.getBoundingClientRect();if(r.left||r.top||r.width||r.height){a=y;for(e=0;a;){if(8===a.nodeType){var p=a.data;if("/$"===p)if(0===e)break;else e--;else"$"!==p&&"$?"!==p&&"$~"!==p&&"$!"!==p||e++}else if(1===a.nodeType){c=a;var z=c.getAttribute("vt-name"),u=m.get(z);h(c,u?"vt-share":"vt-exit");u&&(h(u,"vt-share"),m.set(z,null));var A=c.querySelectorAll("[vt-share]");for(c=0;c<A.length;c++){var B=A[c],C=B.getAttribute("vt-name"),D=m.get(C);\nD&&(h(B,"vt-share"),h(D,"vt-share"),m.set(C,null))}}a=a.nextSibling}for(var q=f[g+1].firstElementChild;q;)null!==m.get(q.getAttribute("vt-name"))&&h(q,"vt-enter"),q=q.nextElementSibling;a=t;do for(var n=a.firstElementChild;n;){var E=n.getAttribute("vt-update");E&&"none"!==E&&!l.includes(n)&&h(n,"vt-update");n=n.nextElementSibling}while((a=a.parentNode)&&1===a.nodeType&&"none"!==a.getAttribute("vt-update"))}}}if(x){var v=document.__reactViewTransition=document.startViewTransition({update:w.bind(null,\nf),types:[]});v.ready.finally(function(){for(var b=l.length-3;0<=b;b-=3){var d=l[b],k=d.style;k.viewTransitionName=l[b+1];k.viewTransitionClass=l[b+1];""===d.getAttribute("style")&&d.removeAttribute("style")}});v.finished.finally(function(){document.__reactViewTransition===v&&(document.__reactViewTransition=null)});$RB=[];return}}catch(b){}w(f)}.bind(null,$RV);'
|
9361
9535
|
);
|
9362
9536
|
var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
9363
9537
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
@@ -9758,5 +9932,5 @@
|
|
9758
9932
|
}
|
9759
9933
|
};
|
9760
9934
|
};
|
9761
|
-
exports.version = "19.2.0-canary-
|
9935
|
+
exports.version = "19.2.0-canary-8ce15b0f-20250522";
|
9762
9936
|
})();
|