react-markup 0.0.0-experimental-4448b187-20250515 → 0.0.0-experimental-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-markup.development.js +525 -184
- package/cjs/react-markup.production.js +447 -125
- package/cjs/react-markup.react-server.development.js +507 -169
- package/cjs/react-markup.react-server.production.js +428 -108
- package/package.json +2 -2
|
@@ -3559,7 +3559,8 @@ function getSuspenseViewTransition(parentViewTransition) {
|
|
|
3559
3559
|
nameIdx: 0
|
|
3560
3560
|
};
|
|
3561
3561
|
}
|
|
3562
|
-
function getSuspenseFallbackFormatContext(parentContext) {
|
|
3562
|
+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
|
3563
|
+
parentContext.tagScope & 32 && (resumableState.instructions |= 128);
|
|
3563
3564
|
return createFormatContext(
|
|
3564
3565
|
parentContext.insertionMode,
|
|
3565
3566
|
parentContext.selectedValue,
|
|
@@ -3567,7 +3568,7 @@ function getSuspenseFallbackFormatContext(parentContext) {
|
|
|
3567
3568
|
getSuspenseViewTransition(parentContext.viewTransition)
|
|
3568
3569
|
);
|
|
3569
3570
|
}
|
|
3570
|
-
function getSuspenseContentFormatContext(parentContext) {
|
|
3571
|
+
function getSuspenseContentFormatContext(resumableState, parentContext) {
|
|
3571
3572
|
return createFormatContext(
|
|
3572
3573
|
parentContext.insertionMode,
|
|
3573
3574
|
parentContext.selectedValue,
|
|
@@ -6304,6 +6305,7 @@ function createRequest(
|
|
|
6304
6305
|
rootFormatContext,
|
|
6305
6306
|
null,
|
|
6306
6307
|
emptyTreeContext,
|
|
6308
|
+
null,
|
|
6307
6309
|
null
|
|
6308
6310
|
);
|
|
6309
6311
|
pushComponentStack(children);
|
|
@@ -6318,15 +6320,17 @@ function pingTask(request, task) {
|
|
|
6318
6320
|
}
|
|
6319
6321
|
function createSuspenseBoundary(
|
|
6320
6322
|
request,
|
|
6323
|
+
row,
|
|
6321
6324
|
fallbackAbortableTasks,
|
|
6322
6325
|
contentPreamble,
|
|
6323
6326
|
fallbackPreamble
|
|
6324
6327
|
) {
|
|
6325
|
-
|
|
6328
|
+
fallbackAbortableTasks = {
|
|
6326
6329
|
status: 0,
|
|
6327
6330
|
rootSegmentID: -1,
|
|
6328
6331
|
parentFlushed: !1,
|
|
6329
6332
|
pendingTasks: 0,
|
|
6333
|
+
row: row,
|
|
6330
6334
|
completedSegments: [],
|
|
6331
6335
|
byteSize: 0,
|
|
6332
6336
|
fallbackAbortableTasks: fallbackAbortableTasks,
|
|
@@ -6338,6 +6342,14 @@ function createSuspenseBoundary(
|
|
|
6338
6342
|
trackedContentKeyPath: null,
|
|
6339
6343
|
trackedFallbackNode: null
|
|
6340
6344
|
};
|
|
6345
|
+
null !== row &&
|
|
6346
|
+
(row.pendingTasks++,
|
|
6347
|
+
(row = row.boundaries),
|
|
6348
|
+
null !== row &&
|
|
6349
|
+
(request.allPendingTasks++,
|
|
6350
|
+
fallbackAbortableTasks.pendingTasks++,
|
|
6351
|
+
row.push(fallbackAbortableTasks)));
|
|
6352
|
+
return fallbackAbortableTasks;
|
|
6341
6353
|
}
|
|
6342
6354
|
function createRenderTask(
|
|
6343
6355
|
request,
|
|
@@ -6353,12 +6365,14 @@ function createRenderTask(
|
|
|
6353
6365
|
formatContext,
|
|
6354
6366
|
context,
|
|
6355
6367
|
treeContext,
|
|
6368
|
+
row,
|
|
6356
6369
|
componentStack
|
|
6357
6370
|
) {
|
|
6358
6371
|
request.allPendingTasks++;
|
|
6359
6372
|
null === blockedBoundary
|
|
6360
6373
|
? request.pendingRootTasks++
|
|
6361
6374
|
: blockedBoundary.pendingTasks++;
|
|
6375
|
+
null !== row && row.pendingTasks++;
|
|
6362
6376
|
var task = {
|
|
6363
6377
|
replay: null,
|
|
6364
6378
|
node: node,
|
|
@@ -6375,6 +6389,7 @@ function createRenderTask(
|
|
|
6375
6389
|
formatContext: formatContext,
|
|
6376
6390
|
context: context,
|
|
6377
6391
|
treeContext: treeContext,
|
|
6392
|
+
row: row,
|
|
6378
6393
|
componentStack: componentStack,
|
|
6379
6394
|
thenableState: thenableState
|
|
6380
6395
|
};
|
|
@@ -6394,12 +6409,14 @@ function createReplayTask(
|
|
|
6394
6409
|
formatContext,
|
|
6395
6410
|
context,
|
|
6396
6411
|
treeContext,
|
|
6412
|
+
row,
|
|
6397
6413
|
componentStack
|
|
6398
6414
|
) {
|
|
6399
6415
|
request.allPendingTasks++;
|
|
6400
6416
|
null === blockedBoundary
|
|
6401
6417
|
? request.pendingRootTasks++
|
|
6402
6418
|
: blockedBoundary.pendingTasks++;
|
|
6419
|
+
null !== row && row.pendingTasks++;
|
|
6403
6420
|
replay.pendingTasks++;
|
|
6404
6421
|
var task = {
|
|
6405
6422
|
replay: replay,
|
|
@@ -6417,6 +6434,7 @@ function createReplayTask(
|
|
|
6417
6434
|
formatContext: formatContext,
|
|
6418
6435
|
context: context,
|
|
6419
6436
|
treeContext: treeContext,
|
|
6437
|
+
row: row,
|
|
6420
6438
|
componentStack: componentStack,
|
|
6421
6439
|
thenableState: thenableState
|
|
6422
6440
|
};
|
|
@@ -6498,6 +6516,125 @@ function fatalError(request, error) {
|
|
|
6498
6516
|
? ((request.status = 14), request.destination.destroy(error))
|
|
6499
6517
|
: ((request.status = 13), (request.fatalError = error));
|
|
6500
6518
|
}
|
|
6519
|
+
function finishSuspenseListRow(request, row) {
|
|
6520
|
+
for (row = row.next; null !== row; ) {
|
|
6521
|
+
var unblockedBoundaries = row.boundaries;
|
|
6522
|
+
if (null !== unblockedBoundaries) {
|
|
6523
|
+
row.boundaries = null;
|
|
6524
|
+
for (var i = 0; i < unblockedBoundaries.length; i++)
|
|
6525
|
+
finishedTask(request, unblockedBoundaries[i], null, null);
|
|
6526
|
+
}
|
|
6527
|
+
row.pendingTasks--;
|
|
6528
|
+
if (0 < row.pendingTasks) break;
|
|
6529
|
+
row = row.next;
|
|
6530
|
+
}
|
|
6531
|
+
}
|
|
6532
|
+
function createSuspenseListRow(previousRow) {
|
|
6533
|
+
var newRow = { pendingTasks: 1, boundaries: null, next: null };
|
|
6534
|
+
null !== previousRow &&
|
|
6535
|
+
0 < previousRow.pendingTasks &&
|
|
6536
|
+
(newRow.pendingTasks++,
|
|
6537
|
+
(newRow.boundaries = []),
|
|
6538
|
+
(previousRow.next = newRow));
|
|
6539
|
+
return newRow;
|
|
6540
|
+
}
|
|
6541
|
+
function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
6542
|
+
keyPath = task.keyPath;
|
|
6543
|
+
var prevTreeContext = task.treeContext,
|
|
6544
|
+
prevRow = task.row,
|
|
6545
|
+
totalChildren = rows.length,
|
|
6546
|
+
previousSuspenseListRow = null;
|
|
6547
|
+
if (null !== task.replay) {
|
|
6548
|
+
var resumeSlots = task.replay.slots;
|
|
6549
|
+
if (null !== resumeSlots && "object" === typeof resumeSlots)
|
|
6550
|
+
for (var n = 0; n < totalChildren; n++) {
|
|
6551
|
+
var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
|
|
6552
|
+
node = rows[i];
|
|
6553
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
6554
|
+
previousSuspenseListRow
|
|
6555
|
+
);
|
|
6556
|
+
task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
|
|
6557
|
+
var resumeSegmentID = resumeSlots[i];
|
|
6558
|
+
"number" === typeof resumeSegmentID
|
|
6559
|
+
? (resumeNode(request, task, resumeSegmentID, node, i),
|
|
6560
|
+
delete resumeSlots[i])
|
|
6561
|
+
: renderNode(request, task, node, i);
|
|
6562
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
6563
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
6564
|
+
}
|
|
6565
|
+
else
|
|
6566
|
+
for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
|
|
6567
|
+
(n =
|
|
6568
|
+
"backwards" !== revealOrder
|
|
6569
|
+
? resumeSlots
|
|
6570
|
+
: totalChildren - 1 - resumeSlots),
|
|
6571
|
+
(i = rows[n]),
|
|
6572
|
+
(task.row = previousSuspenseListRow =
|
|
6573
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
|
6574
|
+
(task.treeContext = pushTreeContext(
|
|
6575
|
+
prevTreeContext,
|
|
6576
|
+
totalChildren,
|
|
6577
|
+
n
|
|
6578
|
+
)),
|
|
6579
|
+
renderNode(request, task, i, n),
|
|
6580
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
6581
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
6582
|
+
} else if ("backwards" !== revealOrder)
|
|
6583
|
+
for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
|
|
6584
|
+
(resumeSlots = rows[revealOrder]),
|
|
6585
|
+
(task.row = previousSuspenseListRow =
|
|
6586
|
+
createSuspenseListRow(previousSuspenseListRow)),
|
|
6587
|
+
(task.treeContext = pushTreeContext(
|
|
6588
|
+
prevTreeContext,
|
|
6589
|
+
totalChildren,
|
|
6590
|
+
revealOrder
|
|
6591
|
+
)),
|
|
6592
|
+
renderNode(request, task, resumeSlots, revealOrder),
|
|
6593
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
6594
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
6595
|
+
else {
|
|
6596
|
+
revealOrder = task.blockedSegment;
|
|
6597
|
+
resumeSlots = revealOrder.children.length;
|
|
6598
|
+
n = revealOrder.chunks.length;
|
|
6599
|
+
for (i = totalChildren - 1; 0 <= i; i--) {
|
|
6600
|
+
node = rows[i];
|
|
6601
|
+
task.row = previousSuspenseListRow = createSuspenseListRow(
|
|
6602
|
+
previousSuspenseListRow
|
|
6603
|
+
);
|
|
6604
|
+
task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
|
|
6605
|
+
resumeSegmentID = createPendingSegment(
|
|
6606
|
+
request,
|
|
6607
|
+
n,
|
|
6608
|
+
null,
|
|
6609
|
+
task.formatContext,
|
|
6610
|
+
0 === i ? revealOrder.lastPushedText : !0,
|
|
6611
|
+
!0
|
|
6612
|
+
);
|
|
6613
|
+
revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
|
|
6614
|
+
task.blockedSegment = resumeSegmentID;
|
|
6615
|
+
try {
|
|
6616
|
+
renderNode(request, task, node, i),
|
|
6617
|
+
(resumeSegmentID.status = 1),
|
|
6618
|
+
0 === --previousSuspenseListRow.pendingTasks &&
|
|
6619
|
+
finishSuspenseListRow(request, previousSuspenseListRow);
|
|
6620
|
+
} catch (thrownValue) {
|
|
6621
|
+
throw (
|
|
6622
|
+
((resumeSegmentID.status = 12 === request.status ? 3 : 4),
|
|
6623
|
+
thrownValue)
|
|
6624
|
+
);
|
|
6625
|
+
}
|
|
6626
|
+
}
|
|
6627
|
+
task.blockedSegment = revealOrder;
|
|
6628
|
+
revealOrder.lastPushedText = !1;
|
|
6629
|
+
}
|
|
6630
|
+
null !== prevRow &&
|
|
6631
|
+
null !== previousSuspenseListRow &&
|
|
6632
|
+
0 < previousSuspenseListRow.pendingTasks &&
|
|
6633
|
+
(prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
|
|
6634
|
+
task.treeContext = prevTreeContext;
|
|
6635
|
+
task.row = prevRow;
|
|
6636
|
+
task.keyPath = keyPath;
|
|
6637
|
+
}
|
|
6501
6638
|
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
|
|
6502
6639
|
var prevThenableState = task.thenableState;
|
|
6503
6640
|
task.thenableState = null;
|
|
@@ -6565,9 +6702,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6565
6702
|
var defaultProps = type.defaultProps;
|
|
6566
6703
|
if (defaultProps) {
|
|
6567
6704
|
newProps === props && (newProps = assign({}, newProps, props));
|
|
6568
|
-
for (var propName$
|
|
6569
|
-
void 0 === newProps[propName$
|
|
6570
|
-
(newProps[propName$
|
|
6705
|
+
for (var propName$100 in defaultProps)
|
|
6706
|
+
void 0 === newProps[propName$100] &&
|
|
6707
|
+
(newProps[propName$100] = defaultProps[propName$100]);
|
|
6571
6708
|
}
|
|
6572
6709
|
var JSCompiler_inline_result = newProps;
|
|
6573
6710
|
var context = emptyContextObject,
|
|
@@ -6734,13 +6871,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6734
6871
|
textEmbedded
|
|
6735
6872
|
);
|
|
6736
6873
|
segment.lastPushedText = !1;
|
|
6737
|
-
var prevContext$
|
|
6738
|
-
prevKeyPath$
|
|
6874
|
+
var prevContext$98 = task.formatContext,
|
|
6875
|
+
prevKeyPath$99 = task.keyPath;
|
|
6739
6876
|
task.keyPath = keyPath;
|
|
6740
6877
|
if (
|
|
6741
6878
|
3 ===
|
|
6742
6879
|
(task.formatContext = getChildFormatContext(
|
|
6743
|
-
prevContext$
|
|
6880
|
+
prevContext$98,
|
|
6744
6881
|
type,
|
|
6745
6882
|
props
|
|
6746
6883
|
)).insertionMode
|
|
@@ -6768,13 +6905,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6768
6905
|
task.formatContext,
|
|
6769
6906
|
task.context,
|
|
6770
6907
|
task.treeContext,
|
|
6908
|
+
task.row,
|
|
6771
6909
|
task.componentStack
|
|
6772
6910
|
);
|
|
6773
6911
|
pushComponentStack(preambleTask);
|
|
6774
6912
|
request.pingedTasks.push(preambleTask);
|
|
6775
6913
|
} else renderNode(request, task, JSCompiler_inline_result$jscomp$2, -1);
|
|
6776
|
-
task.formatContext = prevContext$
|
|
6777
|
-
task.keyPath = prevKeyPath$
|
|
6914
|
+
task.formatContext = prevContext$98;
|
|
6915
|
+
task.keyPath = prevKeyPath$99;
|
|
6778
6916
|
a: {
|
|
6779
6917
|
var target$jscomp$0 = segment.chunks,
|
|
6780
6918
|
resumableState$jscomp$0 = request.resumableState;
|
|
@@ -6799,19 +6937,19 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6799
6937
|
case "wbr":
|
|
6800
6938
|
break a;
|
|
6801
6939
|
case "body":
|
|
6802
|
-
if (1 >= prevContext$
|
|
6940
|
+
if (1 >= prevContext$98.insertionMode) {
|
|
6803
6941
|
resumableState$jscomp$0.hasBody = !0;
|
|
6804
6942
|
break a;
|
|
6805
6943
|
}
|
|
6806
6944
|
break;
|
|
6807
6945
|
case "html":
|
|
6808
|
-
if (0 === prevContext$
|
|
6946
|
+
if (0 === prevContext$98.insertionMode) {
|
|
6809
6947
|
resumableState$jscomp$0.hasHtml = !0;
|
|
6810
6948
|
break a;
|
|
6811
6949
|
}
|
|
6812
6950
|
break;
|
|
6813
6951
|
case "head":
|
|
6814
|
-
if (1 >= prevContext$
|
|
6952
|
+
if (1 >= prevContext$98.insertionMode) break a;
|
|
6815
6953
|
}
|
|
6816
6954
|
target$jscomp$0.push(endChunkForTag(type));
|
|
6817
6955
|
}
|
|
@@ -6839,22 +6977,97 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6839
6977
|
}
|
|
6840
6978
|
} else if ("hidden" !== props.mode) {
|
|
6841
6979
|
segment$jscomp$0.lastPushedText = !1;
|
|
6842
|
-
var prevKeyPath$
|
|
6980
|
+
var prevKeyPath$102 = task.keyPath;
|
|
6843
6981
|
task.keyPath = keyPath;
|
|
6844
6982
|
renderNode(request, task, props.children, -1);
|
|
6845
|
-
task.keyPath = prevKeyPath$
|
|
6983
|
+
task.keyPath = prevKeyPath$102;
|
|
6846
6984
|
segment$jscomp$0.lastPushedText = !1;
|
|
6847
6985
|
}
|
|
6848
6986
|
return;
|
|
6849
6987
|
case REACT_SUSPENSE_LIST_TYPE:
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6988
|
+
a: {
|
|
6989
|
+
var children$jscomp$0 = props.children,
|
|
6990
|
+
revealOrder = props.revealOrder;
|
|
6991
|
+
if ("forwards" === revealOrder || "backwards" === revealOrder) {
|
|
6992
|
+
if (isArrayImpl(children$jscomp$0)) {
|
|
6993
|
+
renderSuspenseListRows(
|
|
6994
|
+
request,
|
|
6995
|
+
task,
|
|
6996
|
+
keyPath,
|
|
6997
|
+
children$jscomp$0,
|
|
6998
|
+
revealOrder
|
|
6999
|
+
);
|
|
7000
|
+
break a;
|
|
7001
|
+
}
|
|
7002
|
+
var iteratorFn = getIteratorFn(children$jscomp$0);
|
|
7003
|
+
if (iteratorFn) {
|
|
7004
|
+
var iterator = iteratorFn.call(children$jscomp$0);
|
|
7005
|
+
if (iterator) {
|
|
7006
|
+
var step = iterator.next();
|
|
7007
|
+
if (!step.done) {
|
|
7008
|
+
do step = iterator.next();
|
|
7009
|
+
while (!step.done);
|
|
7010
|
+
renderSuspenseListRows(
|
|
7011
|
+
request,
|
|
7012
|
+
task,
|
|
7013
|
+
keyPath,
|
|
7014
|
+
children$jscomp$0,
|
|
7015
|
+
revealOrder
|
|
7016
|
+
);
|
|
7017
|
+
}
|
|
7018
|
+
break a;
|
|
7019
|
+
}
|
|
7020
|
+
}
|
|
7021
|
+
if ("function" === typeof children$jscomp$0[ASYNC_ITERATOR]) {
|
|
7022
|
+
var iterator$94 = children$jscomp$0[ASYNC_ITERATOR]();
|
|
7023
|
+
if (iterator$94) {
|
|
7024
|
+
var prevThenableState = task.thenableState;
|
|
7025
|
+
task.thenableState = null;
|
|
7026
|
+
thenableIndexCounter = 0;
|
|
7027
|
+
thenableState = prevThenableState;
|
|
7028
|
+
var rows = [],
|
|
7029
|
+
done = !1;
|
|
7030
|
+
if (iterator$94 === children$jscomp$0)
|
|
7031
|
+
for (
|
|
7032
|
+
var step$95 = readPreviousThenableFromState();
|
|
7033
|
+
void 0 !== step$95;
|
|
7034
|
+
|
|
7035
|
+
) {
|
|
7036
|
+
if (step$95.done) {
|
|
7037
|
+
done = !0;
|
|
7038
|
+
break;
|
|
7039
|
+
}
|
|
7040
|
+
rows.push(step$95.value);
|
|
7041
|
+
step$95 = readPreviousThenableFromState();
|
|
7042
|
+
}
|
|
7043
|
+
if (!done)
|
|
7044
|
+
for (
|
|
7045
|
+
var step$96 = unwrapThenable(iterator$94.next());
|
|
7046
|
+
!step$96.done;
|
|
7047
|
+
|
|
7048
|
+
)
|
|
7049
|
+
rows.push(step$96.value),
|
|
7050
|
+
(step$96 = unwrapThenable(iterator$94.next()));
|
|
7051
|
+
renderSuspenseListRows(
|
|
7052
|
+
request,
|
|
7053
|
+
task,
|
|
7054
|
+
keyPath,
|
|
7055
|
+
rows,
|
|
7056
|
+
revealOrder
|
|
7057
|
+
);
|
|
7058
|
+
break a;
|
|
7059
|
+
}
|
|
7060
|
+
}
|
|
7061
|
+
}
|
|
7062
|
+
var prevKeyPath$jscomp$3 = task.keyPath;
|
|
7063
|
+
task.keyPath = keyPath;
|
|
7064
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
|
7065
|
+
task.keyPath = prevKeyPath$jscomp$3;
|
|
7066
|
+
}
|
|
6854
7067
|
return;
|
|
6855
7068
|
case REACT_VIEW_TRANSITION_TYPE:
|
|
6856
7069
|
var prevContext$jscomp$0 = task.formatContext,
|
|
6857
|
-
prevKeyPath$jscomp$
|
|
7070
|
+
prevKeyPath$jscomp$4 = task.keyPath;
|
|
6858
7071
|
var resumableState$jscomp$1 = request.resumableState;
|
|
6859
7072
|
if (null == props.name || "auto" === props.name) {
|
|
6860
7073
|
var treeId = getTreeId(task.treeContext);
|
|
@@ -6871,26 +7084,33 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6871
7084
|
task.treeContext = prevTreeContext;
|
|
6872
7085
|
}
|
|
6873
7086
|
task.formatContext = prevContext$jscomp$0;
|
|
6874
|
-
task.keyPath = prevKeyPath$jscomp$
|
|
7087
|
+
task.keyPath = prevKeyPath$jscomp$4;
|
|
6875
7088
|
return;
|
|
6876
7089
|
case REACT_SCOPE_TYPE:
|
|
6877
7090
|
throw Error("ReactDOMServer does not yet support scope components.");
|
|
6878
7091
|
case REACT_SUSPENSE_TYPE:
|
|
6879
7092
|
a: if (null !== task.replay) {
|
|
6880
7093
|
var prevKeyPath$81 = task.keyPath,
|
|
6881
|
-
prevContext$82 = task.formatContext
|
|
7094
|
+
prevContext$82 = task.formatContext,
|
|
7095
|
+
prevRow$83 = task.row;
|
|
6882
7096
|
task.keyPath = keyPath;
|
|
6883
|
-
task.formatContext = getSuspenseContentFormatContext(
|
|
6884
|
-
|
|
7097
|
+
task.formatContext = getSuspenseContentFormatContext(
|
|
7098
|
+
request.resumableState,
|
|
7099
|
+
prevContext$82
|
|
7100
|
+
);
|
|
7101
|
+
task.row = null;
|
|
7102
|
+
var content$84 = props.children;
|
|
6885
7103
|
try {
|
|
6886
|
-
renderNode(request, task, content$
|
|
7104
|
+
renderNode(request, task, content$84, -1);
|
|
6887
7105
|
} finally {
|
|
6888
7106
|
(task.keyPath = prevKeyPath$81),
|
|
6889
|
-
(task.formatContext = prevContext$82)
|
|
7107
|
+
(task.formatContext = prevContext$82),
|
|
7108
|
+
(task.row = prevRow$83);
|
|
6890
7109
|
}
|
|
6891
7110
|
} else {
|
|
6892
|
-
var prevKeyPath$jscomp$
|
|
7111
|
+
var prevKeyPath$jscomp$5 = task.keyPath,
|
|
6893
7112
|
prevContext$jscomp$1 = task.formatContext,
|
|
7113
|
+
prevRow = task.row,
|
|
6894
7114
|
parentBoundary = task.blockedBoundary,
|
|
6895
7115
|
parentPreamble = task.blockedPreamble,
|
|
6896
7116
|
parentHoistableState = task.hoistableState,
|
|
@@ -6902,11 +7122,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6902
7122
|
2 > task.formatContext.insertionMode
|
|
6903
7123
|
? createSuspenseBoundary(
|
|
6904
7124
|
request,
|
|
7125
|
+
task.row,
|
|
6905
7126
|
fallbackAbortSet,
|
|
6906
7127
|
createPreambleState(),
|
|
6907
7128
|
createPreambleState()
|
|
6908
7129
|
)
|
|
6909
|
-
: createSuspenseBoundary(
|
|
7130
|
+
: createSuspenseBoundary(
|
|
7131
|
+
request,
|
|
7132
|
+
task.row,
|
|
7133
|
+
fallbackAbortSet,
|
|
7134
|
+
null,
|
|
7135
|
+
null
|
|
7136
|
+
);
|
|
6910
7137
|
null !== request.trackedPostpones &&
|
|
6911
7138
|
(newBoundary.trackedContentKeyPath = keyPath);
|
|
6912
7139
|
var boundarySegment = createPendingSegment(
|
|
@@ -6944,8 +7171,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6944
7171
|
task.blockedSegment = boundarySegment;
|
|
6945
7172
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
|
6946
7173
|
task.keyPath = fallbackKeyPath;
|
|
6947
|
-
task.formatContext =
|
|
6948
|
-
|
|
7174
|
+
task.formatContext = getSuspenseFallbackFormatContext(
|
|
7175
|
+
request.resumableState,
|
|
7176
|
+
prevContext$jscomp$1
|
|
7177
|
+
);
|
|
6949
7178
|
boundarySegment.status = 6;
|
|
6950
7179
|
try {
|
|
6951
7180
|
renderNode(request, task, fallback, -1),
|
|
@@ -6958,7 +7187,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6958
7187
|
} finally {
|
|
6959
7188
|
(task.blockedSegment = parentSegment),
|
|
6960
7189
|
(task.blockedPreamble = parentPreamble),
|
|
6961
|
-
(task.keyPath = prevKeyPath$jscomp$
|
|
7190
|
+
(task.keyPath = prevKeyPath$jscomp$5),
|
|
6962
7191
|
(task.formatContext = prevContext$jscomp$1);
|
|
6963
7192
|
}
|
|
6964
7193
|
var suspendedPrimaryTask = createRenderTask(
|
|
@@ -6972,9 +7201,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6972
7201
|
newBoundary.contentState,
|
|
6973
7202
|
task.abortSet,
|
|
6974
7203
|
keyPath,
|
|
6975
|
-
getSuspenseContentFormatContext(
|
|
7204
|
+
getSuspenseContentFormatContext(
|
|
7205
|
+
request.resumableState,
|
|
7206
|
+
task.formatContext
|
|
7207
|
+
),
|
|
6976
7208
|
task.context,
|
|
6977
7209
|
task.treeContext,
|
|
7210
|
+
null,
|
|
6978
7211
|
task.componentStack
|
|
6979
7212
|
);
|
|
6980
7213
|
pushComponentStack(suspendedPrimaryTask);
|
|
@@ -6985,8 +7218,11 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6985
7218
|
task.hoistableState = newBoundary.contentState;
|
|
6986
7219
|
task.blockedSegment = contentRootSegment;
|
|
6987
7220
|
task.keyPath = keyPath;
|
|
6988
|
-
task.formatContext =
|
|
6989
|
-
|
|
7221
|
+
task.formatContext = getSuspenseContentFormatContext(
|
|
7222
|
+
request.resumableState,
|
|
7223
|
+
prevContext$jscomp$1
|
|
7224
|
+
);
|
|
7225
|
+
task.row = null;
|
|
6990
7226
|
contentRootSegment.status = 6;
|
|
6991
7227
|
try {
|
|
6992
7228
|
if (
|
|
@@ -6997,17 +7233,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6997
7233
|
0 === newBoundary.status &&
|
|
6998
7234
|
((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
|
|
6999
7235
|
) {
|
|
7236
|
+
null !== prevRow &&
|
|
7237
|
+
0 === --prevRow.pendingTasks &&
|
|
7238
|
+
finishSuspenseListRow(request, prevRow);
|
|
7000
7239
|
0 === request.pendingRootTasks &&
|
|
7001
7240
|
task.blockedPreamble &&
|
|
7002
7241
|
preparePreamble(request);
|
|
7003
7242
|
break a;
|
|
7004
7243
|
}
|
|
7005
|
-
} catch (thrownValue$
|
|
7244
|
+
} catch (thrownValue$85) {
|
|
7006
7245
|
newBoundary.status = 4;
|
|
7007
7246
|
if (12 === request.status) {
|
|
7008
7247
|
contentRootSegment.status = 3;
|
|
7009
7248
|
var error = request.fatalError;
|
|
7010
|
-
} else (contentRootSegment.status = 4), (error = thrownValue$
|
|
7249
|
+
} else (contentRootSegment.status = 4), (error = thrownValue$85);
|
|
7011
7250
|
var thrownInfo = getThrownInfo(task.componentStack);
|
|
7012
7251
|
if (
|
|
7013
7252
|
"object" === typeof error &&
|
|
@@ -7025,8 +7264,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7025
7264
|
(task.blockedPreamble = parentPreamble),
|
|
7026
7265
|
(task.hoistableState = parentHoistableState),
|
|
7027
7266
|
(task.blockedSegment = parentSegment),
|
|
7028
|
-
(task.keyPath = prevKeyPath$jscomp$
|
|
7029
|
-
(task.formatContext = prevContext$jscomp$1)
|
|
7267
|
+
(task.keyPath = prevKeyPath$jscomp$5),
|
|
7268
|
+
(task.formatContext = prevContext$jscomp$1),
|
|
7269
|
+
(task.row = prevRow);
|
|
7030
7270
|
}
|
|
7031
7271
|
var suspendedFallbackTask = createRenderTask(
|
|
7032
7272
|
request,
|
|
@@ -7039,9 +7279,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7039
7279
|
newBoundary.fallbackState,
|
|
7040
7280
|
fallbackAbortSet,
|
|
7041
7281
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
|
7042
|
-
getSuspenseFallbackFormatContext(
|
|
7282
|
+
getSuspenseFallbackFormatContext(
|
|
7283
|
+
request.resumableState,
|
|
7284
|
+
task.formatContext
|
|
7285
|
+
),
|
|
7043
7286
|
task.context,
|
|
7044
7287
|
task.treeContext,
|
|
7288
|
+
task.row,
|
|
7045
7289
|
task.componentStack
|
|
7046
7290
|
);
|
|
7047
7291
|
pushComponentStack(suspendedFallbackTask);
|
|
@@ -7058,7 +7302,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7058
7302
|
for (var key in props)
|
|
7059
7303
|
"ref" !== key && (propsWithoutRef[key] = props[key]);
|
|
7060
7304
|
} else propsWithoutRef = props;
|
|
7061
|
-
var children$jscomp$
|
|
7305
|
+
var children$jscomp$1 = renderWithHooks(
|
|
7062
7306
|
request,
|
|
7063
7307
|
task,
|
|
7064
7308
|
keyPath,
|
|
@@ -7070,7 +7314,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7070
7314
|
request,
|
|
7071
7315
|
task,
|
|
7072
7316
|
keyPath,
|
|
7073
|
-
children$jscomp$
|
|
7317
|
+
children$jscomp$1,
|
|
7074
7318
|
0 !== localIdCounter,
|
|
7075
7319
|
actionStateCounter,
|
|
7076
7320
|
actionStateMatchingIndex
|
|
@@ -7081,8 +7325,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7081
7325
|
return;
|
|
7082
7326
|
case REACT_PROVIDER_TYPE:
|
|
7083
7327
|
case REACT_CONTEXT_TYPE:
|
|
7084
|
-
var children$jscomp$
|
|
7085
|
-
prevKeyPath$jscomp$
|
|
7328
|
+
var children$jscomp$2 = props.children,
|
|
7329
|
+
prevKeyPath$jscomp$6 = task.keyPath,
|
|
7086
7330
|
nextValue = props.value;
|
|
7087
7331
|
var prevValue = type._currentValue2;
|
|
7088
7332
|
type._currentValue2 = nextValue;
|
|
@@ -7097,7 +7341,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7097
7341
|
currentActiveSnapshot = newNode;
|
|
7098
7342
|
task.context = newNode;
|
|
7099
7343
|
task.keyPath = keyPath;
|
|
7100
|
-
renderNodeDestructive(request, task, children$jscomp$
|
|
7344
|
+
renderNodeDestructive(request, task, children$jscomp$2, -1);
|
|
7101
7345
|
var prevSnapshot = currentActiveSnapshot;
|
|
7102
7346
|
if (null === prevSnapshot)
|
|
7103
7347
|
throw Error(
|
|
@@ -7107,15 +7351,15 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
7107
7351
|
var JSCompiler_inline_result$jscomp$3 = (currentActiveSnapshot =
|
|
7108
7352
|
prevSnapshot.parent);
|
|
7109
7353
|
task.context = JSCompiler_inline_result$jscomp$3;
|
|
7110
|
-
task.keyPath = prevKeyPath$jscomp$
|
|
7354
|
+
task.keyPath = prevKeyPath$jscomp$6;
|
|
7111
7355
|
return;
|
|
7112
7356
|
case REACT_CONSUMER_TYPE:
|
|
7113
7357
|
var render = props.children,
|
|
7114
7358
|
newChildren = render(type._context._currentValue2),
|
|
7115
|
-
prevKeyPath$jscomp$
|
|
7359
|
+
prevKeyPath$jscomp$7 = task.keyPath;
|
|
7116
7360
|
task.keyPath = keyPath;
|
|
7117
7361
|
renderNodeDestructive(request, task, newChildren, -1);
|
|
7118
|
-
task.keyPath = prevKeyPath$jscomp$
|
|
7362
|
+
task.keyPath = prevKeyPath$jscomp$7;
|
|
7119
7363
|
return;
|
|
7120
7364
|
case REACT_LAZY_TYPE:
|
|
7121
7365
|
var init = type._init;
|
|
@@ -7258,6 +7502,7 @@ function retryNode(request, task) {
|
|
|
7258
7502
|
null === node$jscomp$0[4] ? null : node$jscomp$0[4][3];
|
|
7259
7503
|
var prevKeyPath = task.keyPath,
|
|
7260
7504
|
prevContext = task.formatContext,
|
|
7505
|
+
prevRow = task.row,
|
|
7261
7506
|
previousReplaySet = task.replay,
|
|
7262
7507
|
parentBoundary = task.blockedBoundary,
|
|
7263
7508
|
parentHoistableState = task.hoistableState,
|
|
@@ -7268,12 +7513,14 @@ function retryNode(request, task) {
|
|
|
7268
7513
|
2 > task.formatContext.insertionMode
|
|
7269
7514
|
? createSuspenseBoundary(
|
|
7270
7515
|
request,
|
|
7516
|
+
task.row,
|
|
7271
7517
|
fallbackAbortSet,
|
|
7272
7518
|
createPreambleState(),
|
|
7273
7519
|
createPreambleState()
|
|
7274
7520
|
)
|
|
7275
7521
|
: createSuspenseBoundary(
|
|
7276
7522
|
request,
|
|
7523
|
+
task.row,
|
|
7277
7524
|
fallbackAbortSet,
|
|
7278
7525
|
null,
|
|
7279
7526
|
null
|
|
@@ -7283,8 +7530,11 @@ function retryNode(request, task) {
|
|
|
7283
7530
|
task.blockedBoundary = props;
|
|
7284
7531
|
task.hoistableState = props.contentState;
|
|
7285
7532
|
task.keyPath = key;
|
|
7286
|
-
task.formatContext =
|
|
7287
|
-
|
|
7533
|
+
task.formatContext = getSuspenseContentFormatContext(
|
|
7534
|
+
request.resumableState,
|
|
7535
|
+
prevContext
|
|
7536
|
+
);
|
|
7537
|
+
task.row = null;
|
|
7288
7538
|
task.replay = {
|
|
7289
7539
|
nodes: replay,
|
|
7290
7540
|
slots: name,
|
|
@@ -7326,7 +7576,8 @@ function retryNode(request, task) {
|
|
|
7326
7576
|
(task.hoistableState = parentHoistableState),
|
|
7327
7577
|
(task.replay = previousReplaySet),
|
|
7328
7578
|
(task.keyPath = prevKeyPath),
|
|
7329
|
-
(task.formatContext = prevContext)
|
|
7579
|
+
(task.formatContext = prevContext),
|
|
7580
|
+
(task.row = prevRow);
|
|
7330
7581
|
}
|
|
7331
7582
|
task = createReplayTask(
|
|
7332
7583
|
request,
|
|
@@ -7342,9 +7593,13 @@ function retryNode(request, task) {
|
|
|
7342
7593
|
props.fallbackState,
|
|
7343
7594
|
fallbackAbortSet,
|
|
7344
7595
|
[key[0], "Suspense Fallback", key[2]],
|
|
7345
|
-
getSuspenseFallbackFormatContext(
|
|
7596
|
+
getSuspenseFallbackFormatContext(
|
|
7597
|
+
request.resumableState,
|
|
7598
|
+
task.formatContext
|
|
7599
|
+
),
|
|
7346
7600
|
task.context,
|
|
7347
7601
|
task.treeContext,
|
|
7602
|
+
task.row,
|
|
7348
7603
|
task.componentStack
|
|
7349
7604
|
);
|
|
7350
7605
|
pushComponentStack(task);
|
|
@@ -7421,25 +7676,25 @@ function retryNode(request, task) {
|
|
|
7421
7676
|
node._currentValue2,
|
|
7422
7677
|
childIndex
|
|
7423
7678
|
);
|
|
7424
|
-
|
|
7679
|
+
childIndex = Object.prototype.toString.call(node);
|
|
7425
7680
|
throw Error(
|
|
7426
7681
|
"Objects are not valid as a React child (found: " +
|
|
7427
|
-
("[object Object]" ===
|
|
7682
|
+
("[object Object]" === childIndex
|
|
7428
7683
|
? "object with keys {" + Object.keys(node).join(", ") + "}"
|
|
7429
|
-
:
|
|
7684
|
+
: childIndex) +
|
|
7430
7685
|
"). If you meant to render a collection of children, use an array instead."
|
|
7431
7686
|
);
|
|
7432
7687
|
}
|
|
7433
7688
|
if ("string" === typeof node)
|
|
7434
|
-
(
|
|
7435
|
-
null !==
|
|
7436
|
-
(
|
|
7437
|
-
(
|
|
7689
|
+
(childIndex = task.blockedSegment),
|
|
7690
|
+
null !== childIndex &&
|
|
7691
|
+
(childIndex.chunks.push(escapeTextForBrowser(node)),
|
|
7692
|
+
(childIndex.lastPushedText = !1));
|
|
7438
7693
|
else if ("number" === typeof node || "bigint" === typeof node)
|
|
7439
|
-
(
|
|
7440
|
-
null !==
|
|
7441
|
-
(
|
|
7442
|
-
(
|
|
7694
|
+
(childIndex = task.blockedSegment),
|
|
7695
|
+
null !== childIndex &&
|
|
7696
|
+
(childIndex.chunks.push(escapeTextForBrowser("" + node)),
|
|
7697
|
+
(childIndex.lastPushedText = !1));
|
|
7443
7698
|
}
|
|
7444
7699
|
}
|
|
7445
7700
|
function renderChildrenArray(request, task, children, childIndex) {
|
|
@@ -7555,9 +7810,9 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
7555
7810
|
addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
|
|
7556
7811
|
return;
|
|
7557
7812
|
}
|
|
7558
|
-
var boundaryNode$
|
|
7559
|
-
void 0 === boundaryNode$
|
|
7560
|
-
? ((boundaryNode$
|
|
7813
|
+
var boundaryNode$111 = trackedPostpones.workingMap.get(boundaryKeyPath);
|
|
7814
|
+
void 0 === boundaryNode$111
|
|
7815
|
+
? ((boundaryNode$111 = [
|
|
7561
7816
|
boundaryKeyPath[1],
|
|
7562
7817
|
boundaryKeyPath[2],
|
|
7563
7818
|
children,
|
|
@@ -7565,13 +7820,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
|
|
|
7565
7820
|
fallbackReplayNode,
|
|
7566
7821
|
boundary.rootSegmentID
|
|
7567
7822
|
]),
|
|
7568
|
-
trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$
|
|
7823
|
+
trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$111),
|
|
7569
7824
|
addToReplayParent(
|
|
7570
|
-
boundaryNode$
|
|
7825
|
+
boundaryNode$111,
|
|
7571
7826
|
boundaryKeyPath[0],
|
|
7572
7827
|
trackedPostpones
|
|
7573
7828
|
))
|
|
7574
|
-
: ((boundaryKeyPath = boundaryNode$
|
|
7829
|
+
: ((boundaryKeyPath = boundaryNode$111),
|
|
7575
7830
|
(boundaryKeyPath[4] = fallbackReplayNode),
|
|
7576
7831
|
(boundaryKeyPath[5] = boundary.rootSegmentID));
|
|
7577
7832
|
}
|
|
@@ -7640,6 +7895,7 @@ function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
|
7640
7895
|
task.formatContext,
|
|
7641
7896
|
task.context,
|
|
7642
7897
|
task.treeContext,
|
|
7898
|
+
task.row,
|
|
7643
7899
|
task.componentStack
|
|
7644
7900
|
);
|
|
7645
7901
|
}
|
|
@@ -7669,6 +7925,7 @@ function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
|
|
7669
7925
|
task.formatContext,
|
|
7670
7926
|
task.context,
|
|
7671
7927
|
task.treeContext,
|
|
7928
|
+
task.row,
|
|
7672
7929
|
task.componentStack
|
|
7673
7930
|
);
|
|
7674
7931
|
}
|
|
@@ -7723,15 +7980,15 @@ function renderNode(request, task, node, childIndex) {
|
|
|
7723
7980
|
chunkLength = segment.chunks.length;
|
|
7724
7981
|
try {
|
|
7725
7982
|
return renderNodeDestructive(request, task, node, childIndex);
|
|
7726
|
-
} catch (thrownValue$
|
|
7983
|
+
} catch (thrownValue$123) {
|
|
7727
7984
|
if (
|
|
7728
7985
|
(resetHooksState(),
|
|
7729
7986
|
(segment.children.length = childrenLength),
|
|
7730
7987
|
(segment.chunks.length = chunkLength),
|
|
7731
7988
|
(childIndex =
|
|
7732
|
-
thrownValue$
|
|
7989
|
+
thrownValue$123 === SuspenseException
|
|
7733
7990
|
? getSuspendedThenable()
|
|
7734
|
-
: thrownValue$
|
|
7991
|
+
: thrownValue$123),
|
|
7735
7992
|
"object" === typeof childIndex && null !== childIndex)
|
|
7736
7993
|
) {
|
|
7737
7994
|
if ("function" === typeof childIndex.then) {
|
|
@@ -7820,9 +8077,10 @@ function erroredReplay(
|
|
|
7820
8077
|
);
|
|
7821
8078
|
}
|
|
7822
8079
|
function abortTaskSoft(task) {
|
|
7823
|
-
var boundary = task.blockedBoundary
|
|
7824
|
-
|
|
7825
|
-
null !==
|
|
8080
|
+
var boundary = task.blockedBoundary,
|
|
8081
|
+
segment = task.blockedSegment;
|
|
8082
|
+
null !== segment &&
|
|
8083
|
+
((segment.status = 3), finishedTask(this, boundary, task.row, segment));
|
|
7826
8084
|
}
|
|
7827
8085
|
function abortRemainingReplayNodes(
|
|
7828
8086
|
request$jscomp$0,
|
|
@@ -7849,6 +8107,7 @@ function abortRemainingReplayNodes(
|
|
|
7849
8107
|
errorDigest = errorDigest$jscomp$0,
|
|
7850
8108
|
resumedBoundary = createSuspenseBoundary(
|
|
7851
8109
|
request,
|
|
8110
|
+
null,
|
|
7852
8111
|
new Set(),
|
|
7853
8112
|
null,
|
|
7854
8113
|
null
|
|
@@ -7882,6 +8141,10 @@ function abortTask(task, request, error) {
|
|
|
7882
8141
|
if (6 === segment.status) return;
|
|
7883
8142
|
segment.status = 3;
|
|
7884
8143
|
}
|
|
8144
|
+
var row = task.row;
|
|
8145
|
+
null !== row &&
|
|
8146
|
+
0 === --row.pendingTasks &&
|
|
8147
|
+
finishSuspenseListRow(request, row);
|
|
7885
8148
|
var errorInfo = getThrownInfo(task.componentStack);
|
|
7886
8149
|
if (null === boundary) {
|
|
7887
8150
|
if (13 !== request.status && 14 !== request.status) {
|
|
@@ -7894,7 +8157,7 @@ function abortTask(task, request, error) {
|
|
|
7894
8157
|
null !== boundary && null !== segment
|
|
7895
8158
|
? (logPostpone(request, error.message, errorInfo),
|
|
7896
8159
|
trackPostpone(request, boundary, task, segment),
|
|
7897
|
-
finishedTask(request, null, segment))
|
|
8160
|
+
finishedTask(request, null, row, segment))
|
|
7898
8161
|
: ((task = Error(
|
|
7899
8162
|
"The render was aborted with postpone when the shell is incomplete. Reason: " +
|
|
7900
8163
|
error.message
|
|
@@ -7905,7 +8168,7 @@ function abortTask(task, request, error) {
|
|
|
7905
8168
|
? ((boundary = request.trackedPostpones),
|
|
7906
8169
|
logRecoverableError(request, error, errorInfo),
|
|
7907
8170
|
trackPostpone(request, boundary, task, segment),
|
|
7908
|
-
finishedTask(request, null, segment))
|
|
8171
|
+
finishedTask(request, null, row, segment))
|
|
7909
8172
|
: (logRecoverableError(request, error, errorInfo),
|
|
7910
8173
|
fatalError(request, error));
|
|
7911
8174
|
return;
|
|
@@ -7932,21 +8195,21 @@ function abortTask(task, request, error) {
|
|
|
7932
8195
|
}
|
|
7933
8196
|
} else {
|
|
7934
8197
|
boundary.pendingTasks--;
|
|
7935
|
-
var trackedPostpones$
|
|
8198
|
+
var trackedPostpones$126 = request.trackedPostpones;
|
|
7936
8199
|
if (4 !== boundary.status) {
|
|
7937
|
-
if (null !== trackedPostpones$
|
|
8200
|
+
if (null !== trackedPostpones$126 && null !== segment)
|
|
7938
8201
|
return (
|
|
7939
8202
|
"object" === typeof error &&
|
|
7940
8203
|
null !== error &&
|
|
7941
8204
|
error.$$typeof === REACT_POSTPONE_TYPE
|
|
7942
8205
|
? logPostpone(request, error.message, errorInfo)
|
|
7943
8206
|
: logRecoverableError(request, error, errorInfo),
|
|
7944
|
-
trackPostpone(request, trackedPostpones$
|
|
8207
|
+
trackPostpone(request, trackedPostpones$126, task, segment),
|
|
7945
8208
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
7946
8209
|
return abortTask(fallbackTask, request, error);
|
|
7947
8210
|
}),
|
|
7948
8211
|
boundary.fallbackAbortableTasks.clear(),
|
|
7949
|
-
finishedTask(request, boundary, segment)
|
|
8212
|
+
finishedTask(request, boundary, row, segment)
|
|
7950
8213
|
);
|
|
7951
8214
|
boundary.status = 4;
|
|
7952
8215
|
if (
|
|
@@ -7957,7 +8220,7 @@ function abortTask(task, request, error) {
|
|
|
7957
8220
|
logPostpone(request, error.message, errorInfo);
|
|
7958
8221
|
if (null !== request.trackedPostpones && null !== segment) {
|
|
7959
8222
|
trackPostpone(request, request.trackedPostpones, task, segment);
|
|
7960
|
-
finishedTask(request, task.blockedBoundary, segment);
|
|
8223
|
+
finishedTask(request, task.blockedBoundary, row, segment);
|
|
7961
8224
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
|
7962
8225
|
return abortTask(fallbackTask, request, error);
|
|
7963
8226
|
});
|
|
@@ -8072,7 +8335,11 @@ function queueCompletedSegment(boundary, segment) {
|
|
|
8072
8335
|
1 === childSegment.status && queueCompletedSegment(boundary, childSegment);
|
|
8073
8336
|
} else boundary.completedSegments.push(segment);
|
|
8074
8337
|
}
|
|
8075
|
-
function finishedTask(request, boundary, segment) {
|
|
8338
|
+
function finishedTask(request, boundary, row, segment) {
|
|
8339
|
+
null !== row &&
|
|
8340
|
+
0 === --row.pendingTasks &&
|
|
8341
|
+
finishSuspenseListRow(request, row);
|
|
8342
|
+
request.allPendingTasks--;
|
|
8076
8343
|
if (null === boundary) {
|
|
8077
8344
|
if (null !== segment && segment.parentFlushed) {
|
|
8078
8345
|
if (null !== request.completedRootSegment)
|
|
@@ -8100,7 +8367,11 @@ function finishedTask(request, boundary, segment) {
|
|
|
8100
8367
|
abortTaskSoft,
|
|
8101
8368
|
request
|
|
8102
8369
|
),
|
|
8103
|
-
boundary.fallbackAbortableTasks.clear()
|
|
8370
|
+
boundary.fallbackAbortableTasks.clear(),
|
|
8371
|
+
(row = boundary.row),
|
|
8372
|
+
null !== row &&
|
|
8373
|
+
0 === --row.pendingTasks &&
|
|
8374
|
+
finishSuspenseListRow(request, row)),
|
|
8104
8375
|
0 === request.pendingRootTasks &&
|
|
8105
8376
|
null === request.trackedPostpones &&
|
|
8106
8377
|
null !== boundary.contentPreamble &&
|
|
@@ -8112,7 +8383,6 @@ function finishedTask(request, boundary, segment) {
|
|
|
8112
8383
|
1 === boundary.completedSegments.length &&
|
|
8113
8384
|
boundary.parentFlushed &&
|
|
8114
8385
|
request.partialBoundaries.push(boundary)));
|
|
8115
|
-
request.allPendingTasks--;
|
|
8116
8386
|
0 === request.allPendingTasks && completeAll(request);
|
|
8117
8387
|
}
|
|
8118
8388
|
function performWork(request$jscomp$1) {
|
|
@@ -8154,7 +8424,12 @@ function performWork(request$jscomp$1) {
|
|
|
8154
8424
|
);
|
|
8155
8425
|
task.replay.pendingTasks--;
|
|
8156
8426
|
task.abortSet.delete(task);
|
|
8157
|
-
finishedTask(
|
|
8427
|
+
finishedTask(
|
|
8428
|
+
request$jscomp$0,
|
|
8429
|
+
task.blockedBoundary,
|
|
8430
|
+
task.row,
|
|
8431
|
+
null
|
|
8432
|
+
);
|
|
8158
8433
|
} catch (thrownValue) {
|
|
8159
8434
|
resetHooksState();
|
|
8160
8435
|
var x =
|
|
@@ -8206,7 +8481,12 @@ function performWork(request$jscomp$1) {
|
|
|
8206
8481
|
retryNode(request, task),
|
|
8207
8482
|
task.abortSet.delete(task),
|
|
8208
8483
|
(segment$jscomp$0.status = 1),
|
|
8209
|
-
finishedTask(
|
|
8484
|
+
finishedTask(
|
|
8485
|
+
request,
|
|
8486
|
+
task.blockedBoundary,
|
|
8487
|
+
task.row,
|
|
8488
|
+
segment$jscomp$0
|
|
8489
|
+
);
|
|
8210
8490
|
} catch (thrownValue) {
|
|
8211
8491
|
resetHooksState();
|
|
8212
8492
|
segment$jscomp$0.children.length = childrenLength;
|
|
@@ -8235,7 +8515,12 @@ function performWork(request$jscomp$1) {
|
|
|
8235
8515
|
task,
|
|
8236
8516
|
segment$jscomp$0
|
|
8237
8517
|
);
|
|
8238
|
-
finishedTask(
|
|
8518
|
+
finishedTask(
|
|
8519
|
+
request,
|
|
8520
|
+
task.blockedBoundary,
|
|
8521
|
+
task.row,
|
|
8522
|
+
segment$jscomp$0
|
|
8523
|
+
);
|
|
8239
8524
|
} else {
|
|
8240
8525
|
if ("object" === typeof x$jscomp$0 && null !== x$jscomp$0) {
|
|
8241
8526
|
if ("function" === typeof x$jscomp$0.then) {
|
|
@@ -8249,19 +8534,20 @@ function performWork(request$jscomp$1) {
|
|
|
8249
8534
|
null !== request.trackedPostpones &&
|
|
8250
8535
|
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
8251
8536
|
) {
|
|
8252
|
-
var trackedPostpones$
|
|
8537
|
+
var trackedPostpones$130 = request.trackedPostpones;
|
|
8253
8538
|
task.abortSet.delete(task);
|
|
8254
8539
|
var postponeInfo = getThrownInfo(task.componentStack);
|
|
8255
8540
|
logPostpone(request, x$jscomp$0.message, postponeInfo);
|
|
8256
8541
|
trackPostpone(
|
|
8257
8542
|
request,
|
|
8258
|
-
trackedPostpones$
|
|
8543
|
+
trackedPostpones$130,
|
|
8259
8544
|
task,
|
|
8260
8545
|
segment$jscomp$0
|
|
8261
8546
|
);
|
|
8262
8547
|
finishedTask(
|
|
8263
8548
|
request,
|
|
8264
8549
|
task.blockedBoundary,
|
|
8550
|
+
task.row,
|
|
8265
8551
|
segment$jscomp$0
|
|
8266
8552
|
);
|
|
8267
8553
|
break a;
|
|
@@ -8270,7 +8556,12 @@ function performWork(request$jscomp$1) {
|
|
|
8270
8556
|
var errorInfo$jscomp$0 = getThrownInfo(task.componentStack);
|
|
8271
8557
|
task.abortSet.delete(task);
|
|
8272
8558
|
segment$jscomp$0.status = 4;
|
|
8273
|
-
var boundary = task.blockedBoundary
|
|
8559
|
+
var boundary = task.blockedBoundary,
|
|
8560
|
+
row = task.row;
|
|
8561
|
+
null !== row &&
|
|
8562
|
+
0 === --row.pendingTasks &&
|
|
8563
|
+
finishSuspenseListRow(request, row);
|
|
8564
|
+
request.allPendingTasks--;
|
|
8274
8565
|
"object" === typeof x$jscomp$0 &&
|
|
8275
8566
|
null !== x$jscomp$0 &&
|
|
8276
8567
|
x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
|
|
@@ -8298,7 +8589,6 @@ function performWork(request$jscomp$1) {
|
|
|
8298
8589
|
null === request.trackedPostpones &&
|
|
8299
8590
|
null !== boundary.contentPreamble &&
|
|
8300
8591
|
preparePreamble(request)));
|
|
8301
|
-
request.allPendingTasks--;
|
|
8302
8592
|
0 === request.allPendingTasks && completeAll(request);
|
|
8303
8593
|
}
|
|
8304
8594
|
} finally {
|
|
@@ -8444,7 +8734,14 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
8444
8734
|
return flushSubtree(request, destination, segment, hoistableState);
|
|
8445
8735
|
boundary.parentFlushed = !0;
|
|
8446
8736
|
if (4 === boundary.status)
|
|
8447
|
-
return
|
|
8737
|
+
return (
|
|
8738
|
+
(boundary = boundary.row),
|
|
8739
|
+
null !== boundary &&
|
|
8740
|
+
0 === --boundary.pendingTasks &&
|
|
8741
|
+
finishSuspenseListRow(request, boundary),
|
|
8742
|
+
flushSubtree(request, destination, segment, hoistableState),
|
|
8743
|
+
!0
|
|
8744
|
+
);
|
|
8448
8745
|
if (1 !== boundary.status)
|
|
8449
8746
|
return (
|
|
8450
8747
|
0 === boundary.status &&
|
|
@@ -8486,6 +8783,11 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
|
8486
8783
|
((segment = boundary.contentState),
|
|
8487
8784
|
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
|
8488
8785
|
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
|
|
8786
|
+
segment = boundary.row;
|
|
8787
|
+
null !== segment &&
|
|
8788
|
+
500 < boundary.byteSize &&
|
|
8789
|
+
0 === --segment.pendingTasks &&
|
|
8790
|
+
finishSuspenseListRow(request, segment);
|
|
8489
8791
|
segment = boundary.completedSegments;
|
|
8490
8792
|
if (1 !== segment.length)
|
|
8491
8793
|
throw Error(
|
|
@@ -8518,6 +8820,11 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
8518
8820
|
completedSegments[i]
|
|
8519
8821
|
);
|
|
8520
8822
|
completedSegments.length = 0;
|
|
8823
|
+
completedSegments = boundary.row;
|
|
8824
|
+
null !== completedSegments &&
|
|
8825
|
+
500 < boundary.byteSize &&
|
|
8826
|
+
0 === --completedSegments.pendingTasks &&
|
|
8827
|
+
finishSuspenseListRow(request, completedSegments);
|
|
8521
8828
|
writeHoistablesForBoundary(
|
|
8522
8829
|
destination,
|
|
8523
8830
|
boundary.contentState,
|
|
@@ -8527,7 +8834,8 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
8527
8834
|
request = request.renderState;
|
|
8528
8835
|
i = boundary.rootSegmentID;
|
|
8529
8836
|
boundary = boundary.contentState;
|
|
8530
|
-
var requiresStyleInsertion = request.stylesToHoist
|
|
8837
|
+
var requiresStyleInsertion = request.stylesToHoist,
|
|
8838
|
+
requiresViewTransitions = 0 !== (completedSegments.instructions & 128);
|
|
8531
8839
|
request.stylesToHoist = !1;
|
|
8532
8840
|
var scriptFormat = 0 === completedSegments.streamingFormat;
|
|
8533
8841
|
scriptFormat
|
|
@@ -8542,7 +8850,13 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
8542
8850
|
0 === (completedSegments.instructions & 2) &&
|
|
8543
8851
|
((completedSegments.instructions |= 2),
|
|
8544
8852
|
destination.push(
|
|
8545
|
-
'$RB=[];$
|
|
8853
|
+
'$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())};'
|
|
8854
|
+
)),
|
|
8855
|
+
requiresViewTransitions &&
|
|
8856
|
+
0 === (completedSegments.instructions & 256) &&
|
|
8857
|
+
((completedSegments.instructions |= 256),
|
|
8858
|
+
destination.push(
|
|
8859
|
+
"$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);"
|
|
8546
8860
|
)),
|
|
8547
8861
|
0 === (completedSegments.instructions & 8)
|
|
8548
8862
|
? ((completedSegments.instructions |= 8),
|
|
@@ -8550,12 +8864,18 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
8550
8864
|
'$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("'
|
|
8551
8865
|
))
|
|
8552
8866
|
: destination.push('$RR("'))
|
|
8553
|
-
: 0 === (completedSegments.instructions & 2)
|
|
8554
|
-
|
|
8867
|
+
: (0 === (completedSegments.instructions & 2) &&
|
|
8868
|
+
((completedSegments.instructions |= 2),
|
|
8555
8869
|
destination.push(
|
|
8556
|
-
'$RB=[];$
|
|
8557
|
-
))
|
|
8558
|
-
|
|
8870
|
+
'$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())};'
|
|
8871
|
+
)),
|
|
8872
|
+
requiresViewTransitions &&
|
|
8873
|
+
0 === (completedSegments.instructions & 256) &&
|
|
8874
|
+
((completedSegments.instructions |= 256),
|
|
8875
|
+
destination.push(
|
|
8876
|
+
"$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);"
|
|
8877
|
+
)),
|
|
8878
|
+
destination.push('$RC("')))
|
|
8559
8879
|
: requiresStyleInsertion
|
|
8560
8880
|
? destination.push('<template data-rri="" data-bid="')
|
|
8561
8881
|
: destination.push('<template data-rci="" data-bid="');
|
|
@@ -8809,12 +9129,12 @@ function flushCompletedQueues(request, destination) {
|
|
|
8809
9129
|
completedBoundaries.splice(0, i);
|
|
8810
9130
|
var partialBoundaries = request.partialBoundaries;
|
|
8811
9131
|
for (i = 0; i < partialBoundaries.length; i++) {
|
|
8812
|
-
var boundary$
|
|
9132
|
+
var boundary$134 = partialBoundaries[i];
|
|
8813
9133
|
a: {
|
|
8814
9134
|
clientRenderedBoundaries = request;
|
|
8815
9135
|
boundary = destination;
|
|
8816
|
-
flushedByteSize = boundary$
|
|
8817
|
-
var completedSegments = boundary$
|
|
9136
|
+
flushedByteSize = boundary$134.byteSize;
|
|
9137
|
+
var completedSegments = boundary$134.completedSegments;
|
|
8818
9138
|
for (
|
|
8819
9139
|
JSCompiler_inline_result = 0;
|
|
8820
9140
|
JSCompiler_inline_result < completedSegments.length;
|
|
@@ -8824,7 +9144,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
8824
9144
|
!flushPartiallyCompletedSegment(
|
|
8825
9145
|
clientRenderedBoundaries,
|
|
8826
9146
|
boundary,
|
|
8827
|
-
boundary$
|
|
9147
|
+
boundary$134,
|
|
8828
9148
|
completedSegments[JSCompiler_inline_result]
|
|
8829
9149
|
)
|
|
8830
9150
|
) {
|
|
@@ -8836,7 +9156,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
8836
9156
|
completedSegments.splice(0, JSCompiler_inline_result);
|
|
8837
9157
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
|
8838
9158
|
boundary,
|
|
8839
|
-
boundary$
|
|
9159
|
+
boundary$134.contentState,
|
|
8840
9160
|
clientRenderedBoundaries.renderState
|
|
8841
9161
|
);
|
|
8842
9162
|
}
|
|
@@ -8907,8 +9227,8 @@ function abort(request, reason) {
|
|
|
8907
9227
|
}
|
|
8908
9228
|
null !== request.destination &&
|
|
8909
9229
|
flushCompletedQueues(request, request.destination);
|
|
8910
|
-
} catch (error$
|
|
8911
|
-
logRecoverableError(request, error$
|
|
9230
|
+
} catch (error$136) {
|
|
9231
|
+
logRecoverableError(request, error$136, {}), fatalError(request, error$136);
|
|
8912
9232
|
}
|
|
8913
9233
|
}
|
|
8914
9234
|
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
|
@@ -9219,4 +9539,4 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
9219
9539
|
});
|
|
9220
9540
|
});
|
|
9221
9541
|
};
|
|
9222
|
-
exports.version = "19.2.0-experimental-
|
|
9542
|
+
exports.version = "19.2.0-experimental-c4676e72-20250520";
|