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
@@ -68,8 +68,15 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
68
68
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
69
69
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
70
70
|
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
|
71
|
-
MAYBE_ITERATOR_SYMBOL = Symbol.iterator
|
72
|
-
|
71
|
+
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
72
|
+
function getIteratorFn(maybeIterable) {
|
73
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
74
|
+
maybeIterable =
|
75
|
+
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
76
|
+
maybeIterable["@@iterator"];
|
77
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
78
|
+
}
|
79
|
+
var isArrayImpl = Array.isArray;
|
73
80
|
function murmurhash3_32_gc(key, seed) {
|
74
81
|
var remainder = key.length & 3;
|
75
82
|
var bytes = key.length - remainder;
|
@@ -407,7 +414,8 @@ function getSuspenseViewTransition(parentViewTransition) {
|
|
407
414
|
nameIdx: 0
|
408
415
|
};
|
409
416
|
}
|
410
|
-
function getSuspenseFallbackFormatContext(parentContext) {
|
417
|
+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
418
|
+
parentContext.tagScope & 32 && (resumableState.instructions |= 128);
|
411
419
|
return createFormatContext(
|
412
420
|
parentContext.insertionMode,
|
413
421
|
parentContext.selectedValue,
|
@@ -415,7 +423,7 @@ function getSuspenseFallbackFormatContext(parentContext) {
|
|
415
423
|
getSuspenseViewTransition(parentContext.viewTransition)
|
416
424
|
);
|
417
425
|
}
|
418
|
-
function getSuspenseContentFormatContext(parentContext) {
|
426
|
+
function getSuspenseContentFormatContext(resumableState, parentContext) {
|
419
427
|
return createFormatContext(
|
420
428
|
parentContext.insertionMode,
|
421
429
|
parentContext.selectedValue,
|
@@ -2709,17 +2717,17 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2709
2717
|
"\x3c/script>"
|
2710
2718
|
));
|
2711
2719
|
bootstrapScriptContent = idPrefix + "P:";
|
2712
|
-
var
|
2720
|
+
var JSCompiler_object_inline_segmentPrefix_1633 = idPrefix + "S:";
|
2713
2721
|
idPrefix += "B:";
|
2714
|
-
var
|
2715
|
-
|
2716
|
-
|
2717
|
-
|
2718
|
-
|
2719
|
-
|
2720
|
-
|
2721
|
-
|
2722
|
-
|
2722
|
+
var JSCompiler_object_inline_preamble_1636 = createPreambleState(),
|
2723
|
+
JSCompiler_object_inline_preconnects_1646 = new Set(),
|
2724
|
+
JSCompiler_object_inline_fontPreloads_1647 = new Set(),
|
2725
|
+
JSCompiler_object_inline_highImagePreloads_1648 = new Set(),
|
2726
|
+
JSCompiler_object_inline_styles_1649 = new Map(),
|
2727
|
+
JSCompiler_object_inline_bootstrapScripts_1650 = new Set(),
|
2728
|
+
JSCompiler_object_inline_scripts_1651 = new Set(),
|
2729
|
+
JSCompiler_object_inline_bulkPreloads_1652 = new Set(),
|
2730
|
+
JSCompiler_object_inline_preloads_1653 = {
|
2723
2731
|
images: new Map(),
|
2724
2732
|
stylesheets: new Map(),
|
2725
2733
|
scripts: new Map(),
|
@@ -2756,7 +2764,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2756
2764
|
scriptConfig.moduleScriptResources[href] = null;
|
2757
2765
|
scriptConfig = [];
|
2758
2766
|
pushLinkImpl(scriptConfig, props);
|
2759
|
-
|
2767
|
+
JSCompiler_object_inline_bootstrapScripts_1650.add(scriptConfig);
|
2760
2768
|
bootstrapChunks.push('<script src="', escapeTextForBrowser(src), '"');
|
2761
2769
|
"string" === typeof integrity &&
|
2762
2770
|
bootstrapChunks.push(
|
@@ -2803,7 +2811,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2803
2811
|
(props.moduleScriptResources[scriptConfig] = null),
|
2804
2812
|
(props = []),
|
2805
2813
|
pushLinkImpl(props, integrity),
|
2806
|
-
|
2814
|
+
JSCompiler_object_inline_bootstrapScripts_1650.add(props),
|
2807
2815
|
bootstrapChunks.push(
|
2808
2816
|
'<script type="module" src="',
|
2809
2817
|
escapeTextForBrowser(i),
|
@@ -2825,10 +2833,10 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2825
2833
|
bootstrapChunks.push(' async="">\x3c/script>');
|
2826
2834
|
return {
|
2827
2835
|
placeholderPrefix: bootstrapScriptContent,
|
2828
|
-
segmentPrefix:
|
2836
|
+
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1633,
|
2829
2837
|
boundaryPrefix: idPrefix,
|
2830
2838
|
startInlineScript: "<script",
|
2831
|
-
preamble:
|
2839
|
+
preamble: JSCompiler_object_inline_preamble_1636,
|
2832
2840
|
externalRuntimeScript: null,
|
2833
2841
|
bootstrapChunks: bootstrapChunks,
|
2834
2842
|
importMapChunks: [],
|
@@ -2844,14 +2852,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2844
2852
|
charsetChunks: [],
|
2845
2853
|
viewportChunks: [],
|
2846
2854
|
hoistableChunks: [],
|
2847
|
-
preconnects:
|
2848
|
-
fontPreloads:
|
2849
|
-
highImagePreloads:
|
2850
|
-
styles:
|
2851
|
-
bootstrapScripts:
|
2852
|
-
scripts:
|
2853
|
-
bulkPreloads:
|
2854
|
-
preloads:
|
2855
|
+
preconnects: JSCompiler_object_inline_preconnects_1646,
|
2856
|
+
fontPreloads: JSCompiler_object_inline_fontPreloads_1647,
|
2857
|
+
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1648,
|
2858
|
+
styles: JSCompiler_object_inline_styles_1649,
|
2859
|
+
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1650,
|
2860
|
+
scripts: JSCompiler_object_inline_scripts_1651,
|
2861
|
+
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1652,
|
2862
|
+
preloads: JSCompiler_object_inline_preloads_1653,
|
2855
2863
|
stylesToHoist: !1,
|
2856
2864
|
generateStaticMarkup: generateStaticMarkup
|
2857
2865
|
};
|
@@ -3688,6 +3696,7 @@ function createRequest(
|
|
3688
3696
|
rootFormatContext,
|
3689
3697
|
null,
|
3690
3698
|
emptyTreeContext,
|
3699
|
+
null,
|
3691
3700
|
null
|
3692
3701
|
);
|
3693
3702
|
pushComponentStack(children);
|
@@ -3703,15 +3712,17 @@ function pingTask(request, task) {
|
|
3703
3712
|
}
|
3704
3713
|
function createSuspenseBoundary(
|
3705
3714
|
request,
|
3715
|
+
row,
|
3706
3716
|
fallbackAbortableTasks,
|
3707
3717
|
contentPreamble,
|
3708
3718
|
fallbackPreamble
|
3709
3719
|
) {
|
3710
|
-
|
3720
|
+
fallbackAbortableTasks = {
|
3711
3721
|
status: 0,
|
3712
3722
|
rootSegmentID: -1,
|
3713
3723
|
parentFlushed: !1,
|
3714
3724
|
pendingTasks: 0,
|
3725
|
+
row: row,
|
3715
3726
|
completedSegments: [],
|
3716
3727
|
byteSize: 0,
|
3717
3728
|
fallbackAbortableTasks: fallbackAbortableTasks,
|
@@ -3723,6 +3734,14 @@ function createSuspenseBoundary(
|
|
3723
3734
|
trackedContentKeyPath: null,
|
3724
3735
|
trackedFallbackNode: null
|
3725
3736
|
};
|
3737
|
+
null !== row &&
|
3738
|
+
(row.pendingTasks++,
|
3739
|
+
(row = row.boundaries),
|
3740
|
+
null !== row &&
|
3741
|
+
(request.allPendingTasks++,
|
3742
|
+
fallbackAbortableTasks.pendingTasks++,
|
3743
|
+
row.push(fallbackAbortableTasks)));
|
3744
|
+
return fallbackAbortableTasks;
|
3726
3745
|
}
|
3727
3746
|
function createRenderTask(
|
3728
3747
|
request,
|
@@ -3738,12 +3757,14 @@ function createRenderTask(
|
|
3738
3757
|
formatContext,
|
3739
3758
|
context,
|
3740
3759
|
treeContext,
|
3760
|
+
row,
|
3741
3761
|
componentStack
|
3742
3762
|
) {
|
3743
3763
|
request.allPendingTasks++;
|
3744
3764
|
null === blockedBoundary
|
3745
3765
|
? request.pendingRootTasks++
|
3746
3766
|
: blockedBoundary.pendingTasks++;
|
3767
|
+
null !== row && row.pendingTasks++;
|
3747
3768
|
var task = {
|
3748
3769
|
replay: null,
|
3749
3770
|
node: node,
|
@@ -3760,6 +3781,7 @@ function createRenderTask(
|
|
3760
3781
|
formatContext: formatContext,
|
3761
3782
|
context: context,
|
3762
3783
|
treeContext: treeContext,
|
3784
|
+
row: row,
|
3763
3785
|
componentStack: componentStack,
|
3764
3786
|
thenableState: thenableState
|
3765
3787
|
};
|
@@ -3779,12 +3801,14 @@ function createReplayTask(
|
|
3779
3801
|
formatContext,
|
3780
3802
|
context,
|
3781
3803
|
treeContext,
|
3804
|
+
row,
|
3782
3805
|
componentStack
|
3783
3806
|
) {
|
3784
3807
|
request.allPendingTasks++;
|
3785
3808
|
null === blockedBoundary
|
3786
3809
|
? request.pendingRootTasks++
|
3787
3810
|
: blockedBoundary.pendingTasks++;
|
3811
|
+
null !== row && row.pendingTasks++;
|
3788
3812
|
replay.pendingTasks++;
|
3789
3813
|
var task = {
|
3790
3814
|
replay: replay,
|
@@ -3802,6 +3826,7 @@ function createReplayTask(
|
|
3802
3826
|
formatContext: formatContext,
|
3803
3827
|
context: context,
|
3804
3828
|
treeContext: treeContext,
|
3829
|
+
row: row,
|
3805
3830
|
componentStack: componentStack,
|
3806
3831
|
thenableState: thenableState
|
3807
3832
|
};
|
@@ -3879,6 +3904,131 @@ function fatalError(request, error) {
|
|
3879
3904
|
? ((request.status = 14), request.destination.destroy(error))
|
3880
3905
|
: ((request.status = 13), (request.fatalError = error));
|
3881
3906
|
}
|
3907
|
+
function finishSuspenseListRow(request, row) {
|
3908
|
+
for (row = row.next; null !== row; ) {
|
3909
|
+
var unblockedBoundaries = row.boundaries;
|
3910
|
+
if (null !== unblockedBoundaries) {
|
3911
|
+
row.boundaries = null;
|
3912
|
+
for (var i = 0; i < unblockedBoundaries.length; i++)
|
3913
|
+
finishedTask(request, unblockedBoundaries[i], null, null);
|
3914
|
+
}
|
3915
|
+
row.pendingTasks--;
|
3916
|
+
if (0 < row.pendingTasks) break;
|
3917
|
+
row = row.next;
|
3918
|
+
}
|
3919
|
+
}
|
3920
|
+
function createSuspenseListRow(previousRow) {
|
3921
|
+
var newRow = { pendingTasks: 1, boundaries: null, next: null };
|
3922
|
+
null !== previousRow &&
|
3923
|
+
0 < previousRow.pendingTasks &&
|
3924
|
+
(newRow.pendingTasks++,
|
3925
|
+
(newRow.boundaries = []),
|
3926
|
+
(previousRow.next = newRow));
|
3927
|
+
return newRow;
|
3928
|
+
}
|
3929
|
+
function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
3930
|
+
keyPath = task.keyPath;
|
3931
|
+
var prevTreeContext = task.treeContext,
|
3932
|
+
prevRow = task.row,
|
3933
|
+
totalChildren = rows.length,
|
3934
|
+
previousSuspenseListRow = null;
|
3935
|
+
if (null !== task.replay) {
|
3936
|
+
var resumeSlots = task.replay.slots;
|
3937
|
+
if (null !== resumeSlots && "object" === typeof resumeSlots)
|
3938
|
+
for (var n = 0; n < totalChildren; n++) {
|
3939
|
+
var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
|
3940
|
+
node = rows[i];
|
3941
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
3942
|
+
previousSuspenseListRow
|
3943
|
+
);
|
3944
|
+
task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
|
3945
|
+
var resumeSegmentID = resumeSlots[i];
|
3946
|
+
"number" === typeof resumeSegmentID
|
3947
|
+
? (resumeNode(request, task, resumeSegmentID, node, i),
|
3948
|
+
delete resumeSlots[i])
|
3949
|
+
: renderNode(request, task, node, i);
|
3950
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
3951
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
3952
|
+
}
|
3953
|
+
else
|
3954
|
+
for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
|
3955
|
+
(n =
|
3956
|
+
"backwards" !== revealOrder
|
3957
|
+
? resumeSlots
|
3958
|
+
: totalChildren - 1 - resumeSlots),
|
3959
|
+
(i = rows[n]),
|
3960
|
+
(task.row = previousSuspenseListRow =
|
3961
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
3962
|
+
(task.treeContext = pushTreeContext(
|
3963
|
+
prevTreeContext,
|
3964
|
+
totalChildren,
|
3965
|
+
n
|
3966
|
+
)),
|
3967
|
+
renderNode(request, task, i, n),
|
3968
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
3969
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
3970
|
+
} else if ("backwards" !== revealOrder)
|
3971
|
+
for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
|
3972
|
+
(resumeSlots = rows[revealOrder]),
|
3973
|
+
(task.row = previousSuspenseListRow =
|
3974
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
3975
|
+
(task.treeContext = pushTreeContext(
|
3976
|
+
prevTreeContext,
|
3977
|
+
totalChildren,
|
3978
|
+
revealOrder
|
3979
|
+
)),
|
3980
|
+
renderNode(request, task, resumeSlots, revealOrder),
|
3981
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
3982
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
3983
|
+
else {
|
3984
|
+
revealOrder = task.blockedSegment;
|
3985
|
+
resumeSlots = revealOrder.children.length;
|
3986
|
+
n = revealOrder.chunks.length;
|
3987
|
+
for (i = totalChildren - 1; 0 <= i; i--) {
|
3988
|
+
node = rows[i];
|
3989
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
3990
|
+
previousSuspenseListRow
|
3991
|
+
);
|
3992
|
+
task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
|
3993
|
+
resumeSegmentID = createPendingSegment(
|
3994
|
+
request,
|
3995
|
+
n,
|
3996
|
+
null,
|
3997
|
+
task.formatContext,
|
3998
|
+
0 === i ? revealOrder.lastPushedText : !0,
|
3999
|
+
!0
|
4000
|
+
);
|
4001
|
+
revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
|
4002
|
+
task.blockedSegment = resumeSegmentID;
|
4003
|
+
try {
|
4004
|
+
renderNode(request, task, node, i),
|
4005
|
+
pushSegmentFinale(
|
4006
|
+
resumeSegmentID.chunks,
|
4007
|
+
request.renderState,
|
4008
|
+
resumeSegmentID.lastPushedText,
|
4009
|
+
resumeSegmentID.textEmbedded
|
4010
|
+
),
|
4011
|
+
(resumeSegmentID.status = 1),
|
4012
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
4013
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
4014
|
+
} catch (thrownValue) {
|
4015
|
+
throw (
|
4016
|
+
((resumeSegmentID.status = 12 === request.status ? 3 : 4),
|
4017
|
+
thrownValue)
|
4018
|
+
);
|
4019
|
+
}
|
4020
|
+
}
|
4021
|
+
task.blockedSegment = revealOrder;
|
4022
|
+
revealOrder.lastPushedText = !1;
|
4023
|
+
}
|
4024
|
+
null !== prevRow &&
|
4025
|
+
null !== previousSuspenseListRow &&
|
4026
|
+
0 < previousSuspenseListRow.pendingTasks &&
|
4027
|
+
(prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
|
4028
|
+
task.treeContext = prevTreeContext;
|
4029
|
+
task.row = prevRow;
|
4030
|
+
task.keyPath = keyPath;
|
4031
|
+
}
|
3882
4032
|
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
|
3883
4033
|
var prevThenableState = task.thenableState;
|
3884
4034
|
task.thenableState = null;
|
@@ -3946,9 +4096,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
3946
4096
|
var defaultProps = type.defaultProps;
|
3947
4097
|
if (defaultProps) {
|
3948
4098
|
newProps === props && (newProps = assign({}, newProps, props));
|
3949
|
-
for (var propName$
|
3950
|
-
void 0 === newProps[propName$
|
3951
|
-
(newProps[propName$
|
4099
|
+
for (var propName$42 in defaultProps)
|
4100
|
+
void 0 === newProps[propName$42] &&
|
4101
|
+
(newProps[propName$42] = defaultProps[propName$42]);
|
3952
4102
|
}
|
3953
4103
|
props = newProps;
|
3954
4104
|
newProps = emptyContextObject;
|
@@ -4008,16 +4158,16 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4008
4158
|
defaultProps = ref ? type[0] : newProps.state;
|
4009
4159
|
initialState = !0;
|
4010
4160
|
for (ref = ref ? 1 : 0; ref < type.length; ref++)
|
4011
|
-
(propName$
|
4012
|
-
(propName$
|
4013
|
-
"function" === typeof propName$
|
4014
|
-
? propName$
|
4015
|
-
: propName$
|
4016
|
-
null != propName$
|
4161
|
+
(propName$42 = type[ref]),
|
4162
|
+
(propName$42 =
|
4163
|
+
"function" === typeof propName$42
|
4164
|
+
? propName$42.call(newProps, defaultProps, props, void 0)
|
4165
|
+
: propName$42),
|
4166
|
+
null != propName$42 &&
|
4017
4167
|
(initialState
|
4018
4168
|
? ((initialState = !1),
|
4019
|
-
(defaultProps = assign({}, defaultProps, propName$
|
4020
|
-
: assign(defaultProps, propName$
|
4169
|
+
(defaultProps = assign({}, defaultProps, propName$42)))
|
4170
|
+
: assign(defaultProps, propName$42));
|
4021
4171
|
newProps.state = defaultProps;
|
4022
4172
|
}
|
4023
4173
|
else defaultProps.queue = null;
|
@@ -4092,6 +4242,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4092
4242
|
task.formatContext,
|
4093
4243
|
task.context,
|
4094
4244
|
task.treeContext,
|
4245
|
+
task.row,
|
4095
4246
|
task.componentStack
|
4096
4247
|
)),
|
4097
4248
|
pushComponentStack(keyPath),
|
@@ -4173,10 +4324,30 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4173
4324
|
(type.lastPushedText = !1));
|
4174
4325
|
return;
|
4175
4326
|
case REACT_SUSPENSE_LIST_TYPE:
|
4176
|
-
|
4177
|
-
|
4178
|
-
|
4179
|
-
|
4327
|
+
a: {
|
4328
|
+
type = props.children;
|
4329
|
+
props = props.revealOrder;
|
4330
|
+
if ("forwards" === props || "backwards" === props) {
|
4331
|
+
if (isArrayImpl(type)) {
|
4332
|
+
renderSuspenseListRows(request, task, keyPath, type, props);
|
4333
|
+
break a;
|
4334
|
+
}
|
4335
|
+
if ((newProps = getIteratorFn(type)))
|
4336
|
+
if ((newProps = newProps.call(type))) {
|
4337
|
+
defaultProps = newProps.next();
|
4338
|
+
if (!defaultProps.done) {
|
4339
|
+
do defaultProps = newProps.next();
|
4340
|
+
while (!defaultProps.done);
|
4341
|
+
renderSuspenseListRows(request, task, keyPath, type, props);
|
4342
|
+
}
|
4343
|
+
break a;
|
4344
|
+
}
|
4345
|
+
}
|
4346
|
+
props = task.keyPath;
|
4347
|
+
task.keyPath = keyPath;
|
4348
|
+
renderNodeDestructive(request, task, type, -1);
|
4349
|
+
task.keyPath = props;
|
4350
|
+
}
|
4180
4351
|
return;
|
4181
4352
|
case REACT_VIEW_TRANSITION_TYPE:
|
4182
4353
|
case REACT_SCOPE_TYPE:
|
@@ -4185,19 +4356,27 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4185
4356
|
a: if (null !== task.replay) {
|
4186
4357
|
type = task.keyPath;
|
4187
4358
|
newProps = task.formatContext;
|
4359
|
+
defaultProps = task.row;
|
4188
4360
|
task.keyPath = keyPath;
|
4189
|
-
task.formatContext = getSuspenseContentFormatContext(
|
4361
|
+
task.formatContext = getSuspenseContentFormatContext(
|
4362
|
+
request.resumableState,
|
4363
|
+
newProps
|
4364
|
+
);
|
4365
|
+
task.row = null;
|
4190
4366
|
keyPath = props.children;
|
4191
4367
|
try {
|
4192
4368
|
renderNode(request, task, keyPath, -1);
|
4193
4369
|
} finally {
|
4194
|
-
(task.keyPath = type),
|
4370
|
+
(task.keyPath = type),
|
4371
|
+
(task.formatContext = newProps),
|
4372
|
+
(task.row = defaultProps);
|
4195
4373
|
}
|
4196
4374
|
} else {
|
4197
4375
|
type = task.keyPath;
|
4198
4376
|
ref = task.formatContext;
|
4199
|
-
var
|
4200
|
-
|
4377
|
+
var prevRow = task.row,
|
4378
|
+
parentBoundary = task.blockedBoundary;
|
4379
|
+
propName$42 = task.blockedPreamble;
|
4201
4380
|
var parentHoistableState = task.hoistableState;
|
4202
4381
|
propName = task.blockedSegment;
|
4203
4382
|
var fallback = props.fallback;
|
@@ -4207,11 +4386,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4207
4386
|
2 > task.formatContext.insertionMode
|
4208
4387
|
? createSuspenseBoundary(
|
4209
4388
|
request,
|
4389
|
+
task.row,
|
4210
4390
|
fallbackAbortSet,
|
4211
4391
|
createPreambleState(),
|
4212
4392
|
createPreambleState()
|
4213
4393
|
)
|
4214
|
-
: createSuspenseBoundary(
|
4394
|
+
: createSuspenseBoundary(
|
4395
|
+
request,
|
4396
|
+
task.row,
|
4397
|
+
fallbackAbortSet,
|
4398
|
+
null,
|
4399
|
+
null
|
4400
|
+
);
|
4215
4401
|
null !== request.trackedPostpones &&
|
4216
4402
|
(newBoundary.trackedContentKeyPath = keyPath);
|
4217
4403
|
var boundarySegment = createPendingSegment(
|
@@ -4241,7 +4427,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4241
4427
|
task.blockedSegment = boundarySegment;
|
4242
4428
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
4243
4429
|
task.keyPath = newProps;
|
4244
|
-
task.formatContext = getSuspenseFallbackFormatContext(
|
4430
|
+
task.formatContext = getSuspenseFallbackFormatContext(
|
4431
|
+
request.resumableState,
|
4432
|
+
ref
|
4433
|
+
);
|
4245
4434
|
boundarySegment.status = 6;
|
4246
4435
|
try {
|
4247
4436
|
renderNode(request, task, fallback, -1),
|
@@ -4259,7 +4448,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4259
4448
|
);
|
4260
4449
|
} finally {
|
4261
4450
|
(task.blockedSegment = propName),
|
4262
|
-
(task.blockedPreamble = propName$
|
4451
|
+
(task.blockedPreamble = propName$42),
|
4263
4452
|
(task.keyPath = type),
|
4264
4453
|
(task.formatContext = ref);
|
4265
4454
|
}
|
@@ -4274,9 +4463,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4274
4463
|
newBoundary.contentState,
|
4275
4464
|
task.abortSet,
|
4276
4465
|
keyPath,
|
4277
|
-
getSuspenseContentFormatContext(
|
4466
|
+
getSuspenseContentFormatContext(
|
4467
|
+
request.resumableState,
|
4468
|
+
task.formatContext
|
4469
|
+
),
|
4278
4470
|
task.context,
|
4279
4471
|
task.treeContext,
|
4472
|
+
null,
|
4280
4473
|
task.componentStack
|
4281
4474
|
);
|
4282
4475
|
pushComponentStack(task);
|
@@ -4287,7 +4480,11 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4287
4480
|
task.hoistableState = newBoundary.contentState;
|
4288
4481
|
task.blockedSegment = contentRootSegment;
|
4289
4482
|
task.keyPath = keyPath;
|
4290
|
-
task.formatContext = getSuspenseContentFormatContext(
|
4483
|
+
task.formatContext = getSuspenseContentFormatContext(
|
4484
|
+
request.resumableState,
|
4485
|
+
ref
|
4486
|
+
);
|
4487
|
+
task.row = null;
|
4291
4488
|
contentRootSegment.status = 6;
|
4292
4489
|
try {
|
4293
4490
|
if (
|
@@ -4304,18 +4501,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4304
4501
|
0 === newBoundary.status &&
|
4305
4502
|
((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
|
4306
4503
|
) {
|
4504
|
+
null !== prevRow &&
|
4505
|
+
0 === --prevRow.pendingTasks &&
|
4506
|
+
finishSuspenseListRow(request, prevRow);
|
4307
4507
|
0 === request.pendingRootTasks &&
|
4308
4508
|
task.blockedPreamble &&
|
4309
4509
|
preparePreamble(request);
|
4310
4510
|
break a;
|
4311
4511
|
}
|
4312
|
-
} catch (thrownValue$
|
4512
|
+
} catch (thrownValue$30) {
|
4313
4513
|
(newBoundary.status = 4),
|
4314
4514
|
12 === request.status
|
4315
4515
|
? ((contentRootSegment.status = 3),
|
4316
4516
|
(newProps = request.fatalError))
|
4317
4517
|
: ((contentRootSegment.status = 4),
|
4318
|
-
(newProps = thrownValue$
|
4518
|
+
(newProps = thrownValue$30)),
|
4319
4519
|
(defaultProps = getThrownInfo(task.componentStack)),
|
4320
4520
|
(initialState = logRecoverableError(
|
4321
4521
|
request,
|
@@ -4326,11 +4526,12 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4326
4526
|
untrackBoundary(request, newBoundary);
|
4327
4527
|
} finally {
|
4328
4528
|
(task.blockedBoundary = parentBoundary),
|
4329
|
-
(task.blockedPreamble = propName$
|
4529
|
+
(task.blockedPreamble = propName$42),
|
4330
4530
|
(task.hoistableState = parentHoistableState),
|
4331
4531
|
(task.blockedSegment = propName),
|
4332
4532
|
(task.keyPath = type),
|
4333
|
-
(task.formatContext = ref)
|
4533
|
+
(task.formatContext = ref),
|
4534
|
+
(task.row = prevRow);
|
4334
4535
|
}
|
4335
4536
|
task = createRenderTask(
|
4336
4537
|
request,
|
@@ -4343,9 +4544,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4343
4544
|
newBoundary.fallbackState,
|
4344
4545
|
fallbackAbortSet,
|
4345
4546
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
4346
|
-
getSuspenseFallbackFormatContext(
|
4547
|
+
getSuspenseFallbackFormatContext(
|
4548
|
+
request.resumableState,
|
4549
|
+
task.formatContext
|
4550
|
+
),
|
4347
4551
|
task.context,
|
4348
4552
|
task.treeContext,
|
4553
|
+
task.row,
|
4349
4554
|
task.componentStack
|
4350
4555
|
);
|
4351
4556
|
pushComponentStack(task);
|
@@ -4555,6 +4760,7 @@ function retryNode(request, task) {
|
|
4555
4760
|
null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
|
4556
4761
|
var prevKeyPath = task.keyPath,
|
4557
4762
|
prevContext = task.formatContext,
|
4763
|
+
prevRow = task.row,
|
4558
4764
|
previousReplaySet = task.replay,
|
4559
4765
|
parentBoundary = task.blockedBoundary,
|
4560
4766
|
parentHoistableState = task.hoistableState,
|
@@ -4565,12 +4771,14 @@ function retryNode(request, task) {
|
|
4565
4771
|
2 > task.formatContext.insertionMode
|
4566
4772
|
? createSuspenseBoundary(
|
4567
4773
|
request,
|
4774
|
+
task.row,
|
4568
4775
|
fallbackAbortSet,
|
4569
4776
|
createPreambleState(),
|
4570
4777
|
createPreambleState()
|
4571
4778
|
)
|
4572
4779
|
: createSuspenseBoundary(
|
4573
4780
|
request,
|
4781
|
+
task.row,
|
4574
4782
|
fallbackAbortSet,
|
4575
4783
|
null,
|
4576
4784
|
null
|
@@ -4580,8 +4788,11 @@ function retryNode(request, task) {
|
|
4580
4788
|
task.blockedBoundary = props;
|
4581
4789
|
task.hoistableState = props.contentState;
|
4582
4790
|
task.keyPath = key;
|
4583
|
-
task.formatContext =
|
4584
|
-
|
4791
|
+
task.formatContext = getSuspenseContentFormatContext(
|
4792
|
+
request.resumableState,
|
4793
|
+
prevContext
|
4794
|
+
);
|
4795
|
+
task.row = null;
|
4585
4796
|
task.replay = {
|
4586
4797
|
nodes: ref,
|
4587
4798
|
slots: name,
|
@@ -4616,9 +4827,10 @@ function retryNode(request, task) {
|
|
4616
4827
|
(task.hoistableState = parentHoistableState),
|
4617
4828
|
(task.replay = previousReplaySet),
|
4618
4829
|
(task.keyPath = prevKeyPath),
|
4619
|
-
(task.formatContext = prevContext)
|
4830
|
+
(task.formatContext = prevContext),
|
4831
|
+
(task.row = prevRow);
|
4620
4832
|
}
|
4621
|
-
|
4833
|
+
childNodes = createReplayTask(
|
4622
4834
|
request,
|
4623
4835
|
null,
|
4624
4836
|
{
|
@@ -4632,13 +4844,17 @@ function retryNode(request, task) {
|
|
4632
4844
|
props.fallbackState,
|
4633
4845
|
fallbackAbortSet,
|
4634
4846
|
[key[0], "Suspense Fallback", key[2]],
|
4635
|
-
getSuspenseFallbackFormatContext(
|
4847
|
+
getSuspenseFallbackFormatContext(
|
4848
|
+
request.resumableState,
|
4849
|
+
task.formatContext
|
4850
|
+
),
|
4636
4851
|
task.context,
|
4637
4852
|
task.treeContext,
|
4853
|
+
task.row,
|
4638
4854
|
task.componentStack
|
4639
4855
|
);
|
4640
|
-
pushComponentStack(
|
4641
|
-
request.pingedTasks.push(
|
4856
|
+
pushComponentStack(childNodes);
|
4857
|
+
request.pingedTasks.push(childNodes);
|
4642
4858
|
}
|
4643
4859
|
}
|
4644
4860
|
childIndex.splice(node, 1);
|
@@ -4661,22 +4877,17 @@ function retryNode(request, task) {
|
|
4661
4877
|
renderChildrenArray(request, task, node, childIndex);
|
4662
4878
|
return;
|
4663
4879
|
}
|
4664
|
-
|
4665
|
-
|
4666
|
-
|
4667
|
-
|
4668
|
-
|
4669
|
-
|
4670
|
-
|
4671
|
-
|
4672
|
-
|
4673
|
-
|
4674
|
-
do props.push(node.value), (node = childNodes.next());
|
4675
|
-
while (!node.done);
|
4676
|
-
renderChildrenArray(request, task, props, childIndex);
|
4880
|
+
if ((childNodes = getIteratorFn(node)))
|
4881
|
+
if ((childNodes = childNodes.call(node))) {
|
4882
|
+
node = childNodes.next();
|
4883
|
+
if (!node.done) {
|
4884
|
+
props = [];
|
4885
|
+
do props.push(node.value), (node = childNodes.next());
|
4886
|
+
while (!node.done);
|
4887
|
+
renderChildrenArray(request, task, props, childIndex);
|
4888
|
+
}
|
4889
|
+
return;
|
4677
4890
|
}
|
4678
|
-
return;
|
4679
|
-
}
|
4680
4891
|
if ("function" === typeof node.then)
|
4681
4892
|
return (
|
4682
4893
|
(task.thenableState = null),
|
@@ -4818,6 +5029,7 @@ function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
4818
5029
|
task.formatContext,
|
4819
5030
|
task.context,
|
4820
5031
|
task.treeContext,
|
5032
|
+
task.row,
|
4821
5033
|
task.componentStack
|
4822
5034
|
);
|
4823
5035
|
}
|
@@ -4847,6 +5059,7 @@ function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
|
4847
5059
|
task.formatContext,
|
4848
5060
|
task.context,
|
4849
5061
|
task.treeContext,
|
5062
|
+
task.row,
|
4850
5063
|
task.componentStack
|
4851
5064
|
);
|
4852
5065
|
}
|
@@ -4900,15 +5113,15 @@ function renderNode(request, task, node, childIndex) {
|
|
4900
5113
|
chunkLength = segment.chunks.length;
|
4901
5114
|
try {
|
4902
5115
|
return renderNodeDestructive(request, task, node, childIndex);
|
4903
|
-
} catch (thrownValue$
|
5116
|
+
} catch (thrownValue$58) {
|
4904
5117
|
if (
|
4905
5118
|
(resetHooksState(),
|
4906
5119
|
(segment.children.length = childrenLength),
|
4907
5120
|
(segment.chunks.length = chunkLength),
|
4908
5121
|
(node =
|
4909
|
-
thrownValue$
|
5122
|
+
thrownValue$58 === SuspenseException
|
4910
5123
|
? getSuspendedThenable()
|
4911
|
-
: thrownValue$
|
5124
|
+
: thrownValue$58),
|
4912
5125
|
"object" === typeof node && null !== node)
|
4913
5126
|
) {
|
4914
5127
|
if ("function" === typeof node.then) {
|
@@ -4946,9 +5159,10 @@ function renderNode(request, task, node, childIndex) {
|
|
4946
5159
|
throw node;
|
4947
5160
|
}
|
4948
5161
|
function abortTaskSoft(task) {
|
4949
|
-
var boundary = task.blockedBoundary
|
4950
|
-
|
4951
|
-
null !==
|
5162
|
+
var boundary = task.blockedBoundary,
|
5163
|
+
segment = task.blockedSegment;
|
5164
|
+
null !== segment &&
|
5165
|
+
((segment.status = 3), finishedTask(this, boundary, task.row, segment));
|
4952
5166
|
}
|
4953
5167
|
function abortRemainingReplayNodes(
|
4954
5168
|
request$jscomp$0,
|
@@ -4975,6 +5189,7 @@ function abortRemainingReplayNodes(
|
|
4975
5189
|
errorDigest = errorDigest$jscomp$0,
|
4976
5190
|
resumedBoundary = createSuspenseBoundary(
|
4977
5191
|
request,
|
5192
|
+
null,
|
4978
5193
|
new Set(),
|
4979
5194
|
null,
|
4980
5195
|
null
|
@@ -5005,6 +5220,10 @@ function abortTask(task, request, error) {
|
|
5005
5220
|
if (6 === segment.status) return;
|
5006
5221
|
segment.status = 3;
|
5007
5222
|
}
|
5223
|
+
segment = task.row;
|
5224
|
+
null !== segment &&
|
5225
|
+
0 === --segment.pendingTasks &&
|
5226
|
+
finishSuspenseListRow(request, segment);
|
5008
5227
|
segment = getThrownInfo(task.componentStack);
|
5009
5228
|
if (null === boundary) {
|
5010
5229
|
if (13 !== request.status && 14 !== request.status) {
|
@@ -5139,7 +5358,11 @@ function queueCompletedSegment(boundary, segment) {
|
|
5139
5358
|
1 === childSegment.status && queueCompletedSegment(boundary, childSegment);
|
5140
5359
|
} else boundary.completedSegments.push(segment);
|
5141
5360
|
}
|
5142
|
-
function finishedTask(request, boundary, segment) {
|
5361
|
+
function finishedTask(request, boundary, row, segment) {
|
5362
|
+
null !== row &&
|
5363
|
+
0 === --row.pendingTasks &&
|
5364
|
+
finishSuspenseListRow(request, row);
|
5365
|
+
request.allPendingTasks--;
|
5143
5366
|
if (null === boundary) {
|
5144
5367
|
if (null !== segment && segment.parentFlushed) {
|
5145
5368
|
if (null !== request.completedRootSegment)
|
@@ -5165,7 +5388,11 @@ function finishedTask(request, boundary, segment) {
|
|
5165
5388
|
abortTaskSoft,
|
5166
5389
|
request
|
5167
5390
|
),
|
5168
|
-
boundary.fallbackAbortableTasks.clear()
|
5391
|
+
boundary.fallbackAbortableTasks.clear(),
|
5392
|
+
(row = boundary.row),
|
5393
|
+
null !== row &&
|
5394
|
+
0 === --row.pendingTasks &&
|
5395
|
+
finishSuspenseListRow(request, row)),
|
5169
5396
|
0 === request.pendingRootTasks &&
|
5170
5397
|
null === request.trackedPostpones &&
|
5171
5398
|
null !== boundary.contentPreamble &&
|
@@ -5177,7 +5404,6 @@ function finishedTask(request, boundary, segment) {
|
|
5177
5404
|
1 === boundary.completedSegments.length &&
|
5178
5405
|
boundary.parentFlushed &&
|
5179
5406
|
request.partialBoundaries.push(boundary)));
|
5180
|
-
request.allPendingTasks--;
|
5181
5407
|
0 === request.allPendingTasks && completeAll(request);
|
5182
5408
|
}
|
5183
5409
|
function performWork(request$jscomp$2) {
|
@@ -5219,7 +5445,12 @@ function performWork(request$jscomp$2) {
|
|
5219
5445
|
throw Error(formatProdErrorMessage(488));
|
5220
5446
|
task.replay.pendingTasks--;
|
5221
5447
|
task.abortSet.delete(task);
|
5222
|
-
finishedTask(
|
5448
|
+
finishedTask(
|
5449
|
+
request$jscomp$0,
|
5450
|
+
task.blockedBoundary,
|
5451
|
+
task.row,
|
5452
|
+
null
|
5453
|
+
);
|
5223
5454
|
} catch (thrownValue) {
|
5224
5455
|
resetHooksState();
|
5225
5456
|
var x =
|
@@ -5289,7 +5520,12 @@ function performWork(request$jscomp$2) {
|
|
5289
5520
|
),
|
5290
5521
|
task.abortSet.delete(task),
|
5291
5522
|
(request$jscomp$1.status = 1),
|
5292
|
-
finishedTask(
|
5523
|
+
finishedTask(
|
5524
|
+
request,
|
5525
|
+
task.blockedBoundary,
|
5526
|
+
task.row,
|
5527
|
+
request$jscomp$1
|
5528
|
+
);
|
5293
5529
|
} catch (thrownValue) {
|
5294
5530
|
resetHooksState();
|
5295
5531
|
request$jscomp$1.children.length = childrenLength;
|
@@ -5313,7 +5549,12 @@ function performWork(request$jscomp$2) {
|
|
5313
5549
|
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
5314
5550
|
task.abortSet.delete(task);
|
5315
5551
|
request$jscomp$1.status = 4;
|
5316
|
-
var boundary$jscomp$0 = task.blockedBoundary
|
5552
|
+
var boundary$jscomp$0 = task.blockedBoundary,
|
5553
|
+
row = task.row;
|
5554
|
+
null !== row &&
|
5555
|
+
0 === --row.pendingTasks &&
|
5556
|
+
finishSuspenseListRow(request, row);
|
5557
|
+
request.allPendingTasks--;
|
5317
5558
|
request$jscomp$0 = logRecoverableError(
|
5318
5559
|
request,
|
5319
5560
|
x$jscomp$0,
|
@@ -5332,7 +5573,6 @@ function performWork(request$jscomp$2) {
|
|
5332
5573
|
null === request.trackedPostpones &&
|
5333
5574
|
null !== boundary$jscomp$0.contentPreamble &&
|
5334
5575
|
preparePreamble(request)));
|
5335
|
-
request.allPendingTasks--;
|
5336
5576
|
0 === request.allPendingTasks && completeAll(request);
|
5337
5577
|
}
|
5338
5578
|
} finally {
|
@@ -5472,24 +5712,27 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5472
5712
|
if (null === boundary)
|
5473
5713
|
return flushSubtree(request, destination, segment, hoistableState);
|
5474
5714
|
boundary.parentFlushed = !0;
|
5475
|
-
if (4 === boundary.status)
|
5476
|
-
|
5477
|
-
|
5478
|
-
|
5479
|
-
|
5480
|
-
|
5481
|
-
|
5482
|
-
|
5483
|
-
|
5484
|
-
|
5485
|
-
|
5486
|
-
|
5487
|
-
|
5488
|
-
|
5489
|
-
|
5490
|
-
|
5491
|
-
|
5492
|
-
|
5715
|
+
if (4 === boundary.status) {
|
5716
|
+
var row = boundary.row;
|
5717
|
+
null !== row &&
|
5718
|
+
0 === --row.pendingTasks &&
|
5719
|
+
finishSuspenseListRow(request, row);
|
5720
|
+
request.renderState.generateStaticMarkup ||
|
5721
|
+
((boundary = boundary.errorDigest),
|
5722
|
+
destination.push("\x3c!--$!--\x3e"),
|
5723
|
+
destination.push("<template"),
|
5724
|
+
boundary &&
|
5725
|
+
(destination.push(' data-dgst="'),
|
5726
|
+
(boundary = escapeTextForBrowser(boundary)),
|
5727
|
+
destination.push(boundary),
|
5728
|
+
destination.push('"')),
|
5729
|
+
destination.push("></template>"));
|
5730
|
+
flushSubtree(request, destination, segment, hoistableState);
|
5731
|
+
request = request.renderState.generateStaticMarkup
|
5732
|
+
? !0
|
5733
|
+
: destination.push("\x3c!--/$--\x3e");
|
5734
|
+
return request;
|
5735
|
+
}
|
5493
5736
|
if (1 !== boundary.status)
|
5494
5737
|
return (
|
5495
5738
|
0 === boundary.status &&
|
@@ -5531,6 +5774,11 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5531
5774
|
((segment = boundary.contentState),
|
5532
5775
|
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
5533
5776
|
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
|
5777
|
+
segment = boundary.row;
|
5778
|
+
null !== segment &&
|
5779
|
+
500 < boundary.byteSize &&
|
5780
|
+
0 === --segment.pendingTasks &&
|
5781
|
+
finishSuspenseListRow(request, segment);
|
5534
5782
|
request.renderState.generateStaticMarkup ||
|
5535
5783
|
destination.push("\x3c!--$--\x3e");
|
5536
5784
|
segment = boundary.completedSegments;
|
@@ -5565,6 +5813,11 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5565
5813
|
completedSegments[i]
|
5566
5814
|
);
|
5567
5815
|
completedSegments.length = 0;
|
5816
|
+
completedSegments = boundary.row;
|
5817
|
+
null !== completedSegments &&
|
5818
|
+
500 < boundary.byteSize &&
|
5819
|
+
0 === --completedSegments.pendingTasks &&
|
5820
|
+
finishSuspenseListRow(request, completedSegments);
|
5568
5821
|
writeHoistablesForBoundary(
|
5569
5822
|
destination,
|
5570
5823
|
boundary.contentState,
|
@@ -5587,7 +5840,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5587
5840
|
0 === (completedSegments.instructions & 2) &&
|
5588
5841
|
((completedSegments.instructions |= 2),
|
5589
5842
|
destination.push(
|
5590
|
-
'$RB=[];$
|
5843
|
+
'$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())};'
|
5591
5844
|
)),
|
5592
5845
|
0 === (completedSegments.instructions & 8)
|
5593
5846
|
? ((completedSegments.instructions |= 8),
|
@@ -5595,12 +5848,12 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5595
5848
|
'$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("'
|
5596
5849
|
))
|
5597
5850
|
: destination.push('$RR("'))
|
5598
|
-
: 0 === (completedSegments.instructions & 2)
|
5599
|
-
|
5851
|
+
: (0 === (completedSegments.instructions & 2) &&
|
5852
|
+
((completedSegments.instructions |= 2),
|
5600
5853
|
destination.push(
|
5601
|
-
'$RB=[];$
|
5602
|
-
))
|
5603
|
-
|
5854
|
+
'$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())};'
|
5855
|
+
)),
|
5856
|
+
destination.push('$RC("'));
|
5604
5857
|
completedSegments = i.toString(16);
|
5605
5858
|
destination.push(request.boundaryPrefix);
|
5606
5859
|
destination.push(completedSegments);
|
@@ -5843,12 +6096,12 @@ function flushCompletedQueues(request, destination) {
|
|
5843
6096
|
completedBoundaries.splice(0, i);
|
5844
6097
|
var partialBoundaries = request.partialBoundaries;
|
5845
6098
|
for (i = 0; i < partialBoundaries.length; i++) {
|
5846
|
-
var boundary$
|
6099
|
+
var boundary$62 = partialBoundaries[i];
|
5847
6100
|
a: {
|
5848
6101
|
clientRenderedBoundaries = request;
|
5849
6102
|
boundary = destination;
|
5850
|
-
flushedByteSize = boundary$
|
5851
|
-
var completedSegments = boundary$
|
6103
|
+
flushedByteSize = boundary$62.byteSize;
|
6104
|
+
var completedSegments = boundary$62.completedSegments;
|
5852
6105
|
for (
|
5853
6106
|
JSCompiler_inline_result = 0;
|
5854
6107
|
JSCompiler_inline_result < completedSegments.length;
|
@@ -5858,7 +6111,7 @@ function flushCompletedQueues(request, destination) {
|
|
5858
6111
|
!flushPartiallyCompletedSegment(
|
5859
6112
|
clientRenderedBoundaries,
|
5860
6113
|
boundary,
|
5861
|
-
boundary$
|
6114
|
+
boundary$62,
|
5862
6115
|
completedSegments[JSCompiler_inline_result]
|
5863
6116
|
)
|
5864
6117
|
) {
|
@@ -5870,7 +6123,7 @@ function flushCompletedQueues(request, destination) {
|
|
5870
6123
|
completedSegments.splice(0, JSCompiler_inline_result);
|
5871
6124
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
5872
6125
|
boundary,
|
5873
|
-
boundary$
|
6126
|
+
boundary$62.contentState,
|
5874
6127
|
clientRenderedBoundaries.renderState
|
5875
6128
|
);
|
5876
6129
|
}
|
@@ -5953,8 +6206,8 @@ function abort(request, reason) {
|
|
5953
6206
|
}
|
5954
6207
|
null !== request.destination &&
|
5955
6208
|
flushCompletedQueues(request, request.destination);
|
5956
|
-
} catch (error$
|
5957
|
-
logRecoverableError(request, error$
|
6209
|
+
} catch (error$64) {
|
6210
|
+
logRecoverableError(request, error$64, {}), fatalError(request, error$64);
|
5958
6211
|
}
|
5959
6212
|
}
|
5960
6213
|
function onError() {}
|
@@ -6020,4 +6273,4 @@ exports.renderToString = function (children, options) {
|
|
6020
6273
|
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
6021
6274
|
);
|
6022
6275
|
};
|
6023
|
-
exports.version = "19.2.0-canary-
|
6276
|
+
exports.version = "19.2.0-canary-c4676e72-20250520";
|