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.
@@ -5927,7 +5927,8 @@
5927
5927
  nameIdx: 0
5928
5928
  };
5929
5929
  }
5930
- function getSuspenseFallbackFormatContext(parentContext) {
5930
+ function getSuspenseFallbackFormatContext(resumableState, parentContext) {
5931
+ parentContext.tagScope & 32 && (resumableState.instructions |= 128);
5931
5932
  return createFormatContext(
5932
5933
  parentContext.insertionMode,
5933
5934
  parentContext.selectedValue,
@@ -5935,7 +5936,7 @@
5935
5936
  getSuspenseViewTransition(parentContext.viewTransition)
5936
5937
  );
5937
5938
  }
5938
- function getSuspenseContentFormatContext(parentContext) {
5939
+ function getSuspenseContentFormatContext(resumableState, parentContext) {
5939
5940
  return createFormatContext(
5940
5941
  parentContext.insertionMode,
5941
5942
  parentContext.selectedValue,
@@ -9125,6 +9126,7 @@
9125
9126
  null,
9126
9127
  emptyTreeContext,
9127
9128
  null,
9129
+ null,
9128
9130
  emptyContextObject,
9129
9131
  null
9130
9132
  );
@@ -9140,15 +9142,17 @@
9140
9142
  }
9141
9143
  function createSuspenseBoundary(
9142
9144
  request,
9145
+ row,
9143
9146
  fallbackAbortableTasks,
9144
9147
  contentPreamble,
9145
9148
  fallbackPreamble
9146
9149
  ) {
9147
- return {
9150
+ fallbackAbortableTasks = {
9148
9151
  status: 0,
9149
9152
  rootSegmentID: -1,
9150
9153
  parentFlushed: !1,
9151
9154
  pendingTasks: 0,
9155
+ row: row,
9152
9156
  completedSegments: [],
9153
9157
  byteSize: 0,
9154
9158
  fallbackAbortableTasks: fallbackAbortableTasks,
@@ -9163,6 +9167,14 @@
9163
9167
  errorStack: null,
9164
9168
  errorComponentStack: null
9165
9169
  };
9170
+ null !== row &&
9171
+ (row.pendingTasks++,
9172
+ (row = row.boundaries),
9173
+ null !== row &&
9174
+ (request.allPendingTasks++,
9175
+ fallbackAbortableTasks.pendingTasks++,
9176
+ row.push(fallbackAbortableTasks)));
9177
+ return fallbackAbortableTasks;
9166
9178
  }
9167
9179
  function createRenderTask(
9168
9180
  request,
@@ -9178,6 +9190,7 @@
9178
9190
  formatContext,
9179
9191
  context,
9180
9192
  treeContext,
9193
+ row,
9181
9194
  componentStack,
9182
9195
  legacyContext,
9183
9196
  debugTask
@@ -9186,6 +9199,7 @@
9186
9199
  null === blockedBoundary
9187
9200
  ? request.pendingRootTasks++
9188
9201
  : blockedBoundary.pendingTasks++;
9202
+ null !== row && row.pendingTasks++;
9189
9203
  var task = {
9190
9204
  replay: null,
9191
9205
  node: node,
@@ -9202,6 +9216,7 @@
9202
9216
  formatContext: formatContext,
9203
9217
  context: context,
9204
9218
  treeContext: treeContext,
9219
+ row: row,
9205
9220
  componentStack: componentStack,
9206
9221
  thenableState: thenableState
9207
9222
  };
@@ -9222,6 +9237,7 @@
9222
9237
  formatContext,
9223
9238
  context,
9224
9239
  treeContext,
9240
+ row,
9225
9241
  componentStack,
9226
9242
  legacyContext,
9227
9243
  debugTask
@@ -9230,6 +9246,7 @@
9230
9246
  null === blockedBoundary
9231
9247
  ? request.pendingRootTasks++
9232
9248
  : blockedBoundary.pendingTasks++;
9249
+ null !== row && row.pendingTasks++;
9233
9250
  replay.pendingTasks++;
9234
9251
  var task = {
9235
9252
  replay: replay,
@@ -9247,6 +9264,7 @@
9247
9264
  formatContext: formatContext,
9248
9265
  context: context,
9249
9266
  treeContext: treeContext,
9267
+ row: row,
9250
9268
  componentStack: componentStack,
9251
9269
  thenableState: thenableState
9252
9270
  };
@@ -9438,6 +9456,137 @@
9438
9456
  ? ((request.status = 14), request.destination.destroy(error))
9439
9457
  : ((request.status = 13), (request.fatalError = error));
9440
9458
  }
9459
+ function finishSuspenseListRow(request, row) {
9460
+ for (row = row.next; null !== row; ) {
9461
+ var unblockedBoundaries = row.boundaries;
9462
+ if (null !== unblockedBoundaries) {
9463
+ row.boundaries = null;
9464
+ for (var i = 0; i < unblockedBoundaries.length; i++)
9465
+ finishedTask(request, unblockedBoundaries[i], null, null);
9466
+ }
9467
+ row.pendingTasks--;
9468
+ if (0 < row.pendingTasks) break;
9469
+ row = row.next;
9470
+ }
9471
+ }
9472
+ function createSuspenseListRow(previousRow) {
9473
+ var newRow = { pendingTasks: 1, boundaries: null, next: null };
9474
+ null !== previousRow &&
9475
+ 0 < previousRow.pendingTasks &&
9476
+ (newRow.pendingTasks++,
9477
+ (newRow.boundaries = []),
9478
+ (previousRow.next = newRow));
9479
+ return newRow;
9480
+ }
9481
+ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
9482
+ keyPath = task.keyPath;
9483
+ var previousComponentStack = task.componentStack;
9484
+ var previousDebugTask = task.debugTask;
9485
+ pushServerComponentStack(task, task.node.props.children._debugInfo);
9486
+ var prevTreeContext = task.treeContext,
9487
+ prevRow = task.row,
9488
+ totalChildren = rows.length,
9489
+ previousSuspenseListRow = null;
9490
+ if (null !== task.replay) {
9491
+ var resumeSlots = task.replay.slots;
9492
+ if (null !== resumeSlots && "object" === typeof resumeSlots)
9493
+ for (var n = 0; n < totalChildren; n++) {
9494
+ var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
9495
+ node = rows[i];
9496
+ task.row = previousSuspenseListRow = createSuspenseListRow(
9497
+ previousSuspenseListRow
9498
+ );
9499
+ task.treeContext = pushTreeContext(
9500
+ prevTreeContext,
9501
+ totalChildren,
9502
+ i
9503
+ );
9504
+ var resumeSegmentID = resumeSlots[i];
9505
+ "number" === typeof resumeSegmentID
9506
+ ? (resumeNode(request, task, resumeSegmentID, node, i),
9507
+ delete resumeSlots[i])
9508
+ : renderNode(request, task, node, i);
9509
+ 0 === --previousSuspenseListRow.pendingTasks &&
9510
+ finishSuspenseListRow(request, previousSuspenseListRow);
9511
+ }
9512
+ else
9513
+ for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
9514
+ (n =
9515
+ "backwards" !== revealOrder
9516
+ ? resumeSlots
9517
+ : totalChildren - 1 - resumeSlots),
9518
+ (i = rows[n]),
9519
+ warnForMissingKey(request, task, i),
9520
+ (task.row = previousSuspenseListRow =
9521
+ createSuspenseListRow(previousSuspenseListRow)),
9522
+ (task.treeContext = pushTreeContext(
9523
+ prevTreeContext,
9524
+ totalChildren,
9525
+ n
9526
+ )),
9527
+ renderNode(request, task, i, n),
9528
+ 0 === --previousSuspenseListRow.pendingTasks &&
9529
+ finishSuspenseListRow(request, previousSuspenseListRow);
9530
+ } else if ("backwards" !== revealOrder)
9531
+ for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
9532
+ (resumeSlots = rows[revealOrder]),
9533
+ warnForMissingKey(request, task, resumeSlots),
9534
+ (task.row = previousSuspenseListRow =
9535
+ createSuspenseListRow(previousSuspenseListRow)),
9536
+ (task.treeContext = pushTreeContext(
9537
+ prevTreeContext,
9538
+ totalChildren,
9539
+ revealOrder
9540
+ )),
9541
+ renderNode(request, task, resumeSlots, revealOrder),
9542
+ 0 === --previousSuspenseListRow.pendingTasks &&
9543
+ finishSuspenseListRow(request, previousSuspenseListRow);
9544
+ else {
9545
+ revealOrder = task.blockedSegment;
9546
+ resumeSlots = revealOrder.children.length;
9547
+ n = revealOrder.chunks.length;
9548
+ for (i = totalChildren - 1; 0 <= i; i--) {
9549
+ node = rows[i];
9550
+ task.row = previousSuspenseListRow = createSuspenseListRow(
9551
+ previousSuspenseListRow
9552
+ );
9553
+ task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
9554
+ resumeSegmentID = createPendingSegment(
9555
+ request,
9556
+ n,
9557
+ null,
9558
+ task.formatContext,
9559
+ 0 === i ? revealOrder.lastPushedText : !0,
9560
+ !0
9561
+ );
9562
+ revealOrder.children.splice(resumeSlots, 0, resumeSegmentID);
9563
+ task.blockedSegment = resumeSegmentID;
9564
+ warnForMissingKey(request, task, node);
9565
+ try {
9566
+ renderNode(request, task, node, i),
9567
+ (resumeSegmentID.status = 1),
9568
+ 0 === --previousSuspenseListRow.pendingTasks &&
9569
+ finishSuspenseListRow(request, previousSuspenseListRow);
9570
+ } catch (thrownValue) {
9571
+ throw (
9572
+ ((resumeSegmentID.status = 12 === request.status ? 3 : 4),
9573
+ thrownValue)
9574
+ );
9575
+ }
9576
+ }
9577
+ task.blockedSegment = revealOrder;
9578
+ revealOrder.lastPushedText = !1;
9579
+ }
9580
+ null !== prevRow &&
9581
+ null !== previousSuspenseListRow &&
9582
+ 0 < previousSuspenseListRow.pendingTasks &&
9583
+ (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
9584
+ task.treeContext = prevTreeContext;
9585
+ task.row = prevRow;
9586
+ task.keyPath = keyPath;
9587
+ task.componentStack = previousComponentStack;
9588
+ task.debugTask = previousDebugTask;
9589
+ }
9441
9590
  function renderWithHooks(
9442
9591
  request,
9443
9592
  task,
@@ -10034,6 +10183,7 @@
10034
10183
  task.formatContext,
10035
10184
  task.context,
10036
10185
  task.treeContext,
10186
+ task.row,
10037
10187
  task.componentStack,
10038
10188
  emptyContextObject,
10039
10189
  task.debugTask
@@ -10115,14 +10265,103 @@
10115
10265
  }
10116
10266
  return;
10117
10267
  case REACT_SUSPENSE_LIST_TYPE:
10118
- var _prevKeyPath4 = task.keyPath;
10119
- task.keyPath = keyPath;
10120
- renderNodeDestructive(request, task, props.children, -1);
10121
- task.keyPath = _prevKeyPath4;
10268
+ a: {
10269
+ var children$jscomp$0 = props.children,
10270
+ revealOrder = props.revealOrder;
10271
+ if ("forwards" === revealOrder || "backwards" === revealOrder) {
10272
+ if (isArrayImpl(children$jscomp$0)) {
10273
+ renderSuspenseListRows(
10274
+ request,
10275
+ task,
10276
+ keyPath,
10277
+ children$jscomp$0,
10278
+ revealOrder
10279
+ );
10280
+ break a;
10281
+ }
10282
+ var iteratorFn = getIteratorFn(children$jscomp$0);
10283
+ if (iteratorFn) {
10284
+ var iterator = iteratorFn.call(children$jscomp$0);
10285
+ if (iterator) {
10286
+ validateIterable(
10287
+ task,
10288
+ children$jscomp$0,
10289
+ -1,
10290
+ iterator,
10291
+ iteratorFn
10292
+ );
10293
+ var step = iterator.next();
10294
+ if (!step.done) {
10295
+ var rows = [];
10296
+ do rows.push(step.value), (step = iterator.next());
10297
+ while (!step.done);
10298
+ renderSuspenseListRows(
10299
+ request,
10300
+ task,
10301
+ keyPath,
10302
+ children$jscomp$0,
10303
+ revealOrder
10304
+ );
10305
+ }
10306
+ break a;
10307
+ }
10308
+ }
10309
+ if ("function" === typeof children$jscomp$0[ASYNC_ITERATOR]) {
10310
+ var _iterator = children$jscomp$0[ASYNC_ITERATOR]();
10311
+ if (_iterator) {
10312
+ validateAsyncIterable(
10313
+ task,
10314
+ children$jscomp$0,
10315
+ -1,
10316
+ _iterator
10317
+ );
10318
+ var prevThenableState = task.thenableState;
10319
+ task.thenableState = null;
10320
+ thenableIndexCounter = 0;
10321
+ thenableState = prevThenableState;
10322
+ var _rows = [],
10323
+ done = !1;
10324
+ if (_iterator === children$jscomp$0)
10325
+ for (
10326
+ var _step = readPreviousThenableFromState();
10327
+ void 0 !== _step;
10328
+
10329
+ ) {
10330
+ if (_step.done) {
10331
+ done = !0;
10332
+ break;
10333
+ }
10334
+ _rows.push(_step.value);
10335
+ _step = readPreviousThenableFromState();
10336
+ }
10337
+ if (!done)
10338
+ for (
10339
+ var _step2 = unwrapThenable(_iterator.next());
10340
+ !_step2.done;
10341
+
10342
+ )
10343
+ _rows.push(_step2.value),
10344
+ (_step2 = unwrapThenable(_iterator.next()));
10345
+ renderSuspenseListRows(
10346
+ request,
10347
+ task,
10348
+ keyPath,
10349
+ _rows,
10350
+ revealOrder
10351
+ );
10352
+ break a;
10353
+ }
10354
+ }
10355
+ }
10356
+ var prevKeyPath$jscomp$3 = task.keyPath;
10357
+ task.keyPath = keyPath;
10358
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
10359
+ task.keyPath = prevKeyPath$jscomp$3;
10360
+ }
10122
10361
  return;
10123
10362
  case REACT_VIEW_TRANSITION_TYPE:
10124
10363
  var prevContext$jscomp$0 = task.formatContext,
10125
- prevKeyPath$jscomp$3 = task.keyPath;
10364
+ prevKeyPath$jscomp$4 = task.keyPath;
10126
10365
  var resumableState$jscomp$1 = request.resumableState;
10127
10366
  if (null == props.name || "auto" === props.name) {
10128
10367
  var treeId = getTreeId(task.treeContext);
@@ -10139,7 +10378,7 @@
10139
10378
  task.treeContext = prevTreeContext;
10140
10379
  }
10141
10380
  task.formatContext = prevContext$jscomp$0;
10142
- task.keyPath = prevKeyPath$jscomp$3;
10381
+ task.keyPath = prevKeyPath$jscomp$4;
10143
10382
  return;
10144
10383
  case REACT_SCOPE_TYPE:
10145
10384
  throw Error(
@@ -10148,20 +10387,26 @@
10148
10387
  case REACT_SUSPENSE_TYPE:
10149
10388
  a: if (null !== task.replay) {
10150
10389
  var _prevKeyPath = task.keyPath,
10151
- _prevContext = task.formatContext;
10390
+ _prevContext = task.formatContext,
10391
+ _prevRow = task.row;
10152
10392
  task.keyPath = keyPath;
10153
- task.formatContext =
10154
- getSuspenseContentFormatContext(_prevContext);
10393
+ task.formatContext = getSuspenseContentFormatContext(
10394
+ request.resumableState,
10395
+ _prevContext
10396
+ );
10397
+ task.row = null;
10155
10398
  var _content = props.children;
10156
10399
  try {
10157
10400
  renderNode(request, task, _content, -1);
10158
10401
  } finally {
10159
10402
  (task.keyPath = _prevKeyPath),
10160
- (task.formatContext = _prevContext);
10403
+ (task.formatContext = _prevContext),
10404
+ (task.row = _prevRow);
10161
10405
  }
10162
10406
  } else {
10163
- var prevKeyPath$jscomp$4 = task.keyPath,
10407
+ var prevKeyPath$jscomp$5 = task.keyPath,
10164
10408
  prevContext$jscomp$1 = task.formatContext,
10409
+ prevRow = task.row,
10165
10410
  parentBoundary = task.blockedBoundary,
10166
10411
  parentPreamble = task.blockedPreamble,
10167
10412
  parentHoistableState = task.hoistableState,
@@ -10173,12 +10418,14 @@
10173
10418
  2 > task.formatContext.insertionMode
10174
10419
  ? createSuspenseBoundary(
10175
10420
  request,
10421
+ task.row,
10176
10422
  fallbackAbortSet,
10177
10423
  createPreambleState(),
10178
10424
  createPreambleState()
10179
10425
  )
10180
10426
  : createSuspenseBoundary(
10181
10427
  request,
10428
+ task.row,
10182
10429
  fallbackAbortSet,
10183
10430
  null,
10184
10431
  null
@@ -10224,8 +10471,10 @@
10224
10471
  task.blockedSegment = boundarySegment;
10225
10472
  task.blockedPreamble = newBoundary.fallbackPreamble;
10226
10473
  task.keyPath = fallbackKeyPath;
10227
- task.formatContext =
10228
- getSuspenseFallbackFormatContext(prevContext$jscomp$1);
10474
+ task.formatContext = getSuspenseFallbackFormatContext(
10475
+ request.resumableState,
10476
+ prevContext$jscomp$1
10477
+ );
10229
10478
  boundarySegment.status = 6;
10230
10479
  try {
10231
10480
  renderNode(request, task, fallback, -1),
@@ -10238,7 +10487,7 @@
10238
10487
  } finally {
10239
10488
  (task.blockedSegment = parentSegment),
10240
10489
  (task.blockedPreamble = parentPreamble),
10241
- (task.keyPath = prevKeyPath$jscomp$4),
10490
+ (task.keyPath = prevKeyPath$jscomp$5),
10242
10491
  (task.formatContext = prevContext$jscomp$1);
10243
10492
  }
10244
10493
  var suspendedPrimaryTask = createRenderTask(
@@ -10252,9 +10501,13 @@
10252
10501
  newBoundary.contentState,
10253
10502
  task.abortSet,
10254
10503
  keyPath,
10255
- getSuspenseContentFormatContext(task.formatContext),
10504
+ getSuspenseContentFormatContext(
10505
+ request.resumableState,
10506
+ task.formatContext
10507
+ ),
10256
10508
  task.context,
10257
10509
  task.treeContext,
10510
+ null,
10258
10511
  task.componentStack,
10259
10512
  emptyContextObject,
10260
10513
  task.debugTask
@@ -10267,8 +10520,11 @@
10267
10520
  task.hoistableState = newBoundary.contentState;
10268
10521
  task.blockedSegment = contentRootSegment;
10269
10522
  task.keyPath = keyPath;
10270
- task.formatContext =
10271
- getSuspenseContentFormatContext(prevContext$jscomp$1);
10523
+ task.formatContext = getSuspenseContentFormatContext(
10524
+ request.resumableState,
10525
+ prevContext$jscomp$1
10526
+ );
10527
+ task.row = null;
10272
10528
  contentRootSegment.status = 6;
10273
10529
  try {
10274
10530
  if (
@@ -10279,6 +10535,9 @@
10279
10535
  0 === newBoundary.status &&
10280
10536
  ((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
10281
10537
  ) {
10538
+ null !== prevRow &&
10539
+ 0 === --prevRow.pendingTasks &&
10540
+ finishSuspenseListRow(request, prevRow);
10282
10541
  0 === request.pendingRootTasks &&
10283
10542
  task.blockedPreamble &&
10284
10543
  preparePreamble(request);
@@ -10324,8 +10583,9 @@
10324
10583
  (task.blockedPreamble = parentPreamble),
10325
10584
  (task.hoistableState = parentHoistableState),
10326
10585
  (task.blockedSegment = parentSegment),
10327
- (task.keyPath = prevKeyPath$jscomp$4),
10328
- (task.formatContext = prevContext$jscomp$1);
10586
+ (task.keyPath = prevKeyPath$jscomp$5),
10587
+ (task.formatContext = prevContext$jscomp$1),
10588
+ (task.row = prevRow);
10329
10589
  }
10330
10590
  var suspendedFallbackTask = createRenderTask(
10331
10591
  request,
@@ -10338,9 +10598,13 @@
10338
10598
  newBoundary.fallbackState,
10339
10599
  fallbackAbortSet,
10340
10600
  [keyPath[0], "Suspense Fallback", keyPath[2]],
10341
- getSuspenseFallbackFormatContext(task.formatContext),
10601
+ getSuspenseFallbackFormatContext(
10602
+ request.resumableState,
10603
+ task.formatContext
10604
+ ),
10342
10605
  task.context,
10343
10606
  task.treeContext,
10607
+ task.row,
10344
10608
  task.componentStack,
10345
10609
  emptyContextObject,
10346
10610
  task.debugTask
@@ -10359,7 +10623,7 @@
10359
10623
  for (var key in props)
10360
10624
  "ref" !== key && (propsWithoutRef[key] = props[key]);
10361
10625
  } else propsWithoutRef = props;
10362
- var children$jscomp$0 = renderWithHooks(
10626
+ var children$jscomp$1 = renderWithHooks(
10363
10627
  request,
10364
10628
  task,
10365
10629
  keyPath,
@@ -10371,7 +10635,7 @@
10371
10635
  request,
10372
10636
  task,
10373
10637
  keyPath,
10374
- children$jscomp$0,
10638
+ children$jscomp$1,
10375
10639
  0 !== localIdCounter,
10376
10640
  actionStateCounter,
10377
10641
  actionStateMatchingIndex
@@ -10383,9 +10647,9 @@
10383
10647
  case REACT_PROVIDER_TYPE:
10384
10648
  case REACT_CONTEXT_TYPE:
10385
10649
  var value$jscomp$0 = props.value,
10386
- children$jscomp$1 = props.children;
10650
+ children$jscomp$2 = props.children;
10387
10651
  var prevSnapshot = task.context;
10388
- var prevKeyPath$jscomp$5 = task.keyPath;
10652
+ var prevKeyPath$jscomp$6 = task.keyPath;
10389
10653
  var prevValue = type._currentValue2;
10390
10654
  type._currentValue2 = value$jscomp$0;
10391
10655
  void 0 !== type._currentRenderer2 &&
@@ -10406,7 +10670,7 @@
10406
10670
  currentActiveSnapshot = newNode;
10407
10671
  task.context = newNode;
10408
10672
  task.keyPath = keyPath;
10409
- renderNodeDestructive(request, task, children$jscomp$1, -1);
10673
+ renderNodeDestructive(request, task, children$jscomp$2, -1);
10410
10674
  var prevSnapshot$jscomp$0 = currentActiveSnapshot;
10411
10675
  if (null === prevSnapshot$jscomp$0)
10412
10676
  throw Error(
@@ -10428,7 +10692,7 @@
10428
10692
  var JSCompiler_inline_result$jscomp$0 = (currentActiveSnapshot =
10429
10693
  prevSnapshot$jscomp$0.parent);
10430
10694
  task.context = JSCompiler_inline_result$jscomp$0;
10431
- task.keyPath = prevKeyPath$jscomp$5;
10695
+ task.keyPath = prevKeyPath$jscomp$6;
10432
10696
  prevSnapshot !== task.context &&
10433
10697
  console.error(
10434
10698
  "Popping the context provider did not return back to the original snapshot. This is a bug in React."
@@ -10442,10 +10706,10 @@
10442
10706
  "A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."
10443
10707
  );
10444
10708
  var newChildren = render(context$jscomp$0._currentValue2),
10445
- prevKeyPath$jscomp$6 = task.keyPath;
10709
+ prevKeyPath$jscomp$7 = task.keyPath;
10446
10710
  task.keyPath = keyPath;
10447
10711
  renderNodeDestructive(request, task, newChildren, -1);
10448
- task.keyPath = prevKeyPath$jscomp$6;
10712
+ task.keyPath = prevKeyPath$jscomp$7;
10449
10713
  return;
10450
10714
  case REACT_LAZY_TYPE:
10451
10715
  var Component = callLazyInitInDEV(type);
@@ -10570,6 +10834,7 @@
10570
10834
  node = null === node[4] ? null : node[4][3];
10571
10835
  var prevKeyPath = task.keyPath,
10572
10836
  prevContext = task.formatContext,
10837
+ prevRow = task.row,
10573
10838
  previousReplaySet = task.replay,
10574
10839
  parentBoundary = task.blockedBoundary,
10575
10840
  parentHoistableState = task.hoistableState,
@@ -10580,12 +10845,14 @@
10580
10845
  2 > task.formatContext.insertionMode
10581
10846
  ? createSuspenseBoundary(
10582
10847
  request,
10848
+ task.row,
10583
10849
  fallbackAbortSet,
10584
10850
  createPreambleState(),
10585
10851
  createPreambleState()
10586
10852
  )
10587
10853
  : createSuspenseBoundary(
10588
10854
  request,
10855
+ task.row,
10589
10856
  fallbackAbortSet,
10590
10857
  null,
10591
10858
  null
@@ -10595,7 +10862,11 @@
10595
10862
  task.blockedBoundary = props;
10596
10863
  task.hoistableState = props.contentState;
10597
10864
  task.keyPath = keyPath;
10598
- task.formatContext = getSuspenseContentFormatContext(prevContext);
10865
+ task.formatContext = getSuspenseContentFormatContext(
10866
+ request.resumableState,
10867
+ prevContext
10868
+ );
10869
+ task.row = null;
10599
10870
  task.replay = { nodes: ref, slots: name, pendingTasks: 1 };
10600
10871
  try {
10601
10872
  renderNode(request, task, content, -1);
@@ -10639,7 +10910,8 @@
10639
10910
  (task.hoistableState = parentHoistableState),
10640
10911
  (task.replay = previousReplaySet),
10641
10912
  (task.keyPath = prevKeyPath),
10642
- (task.formatContext = prevContext);
10913
+ (task.formatContext = prevContext),
10914
+ (task.row = prevRow);
10643
10915
  }
10644
10916
  props = createReplayTask(
10645
10917
  request,
@@ -10651,9 +10923,13 @@
10651
10923
  props.fallbackState,
10652
10924
  fallbackAbortSet,
10653
10925
  [keyPath[0], "Suspense Fallback", keyPath[2]],
10654
- getSuspenseFallbackFormatContext(task.formatContext),
10926
+ getSuspenseFallbackFormatContext(
10927
+ request.resumableState,
10928
+ task.formatContext
10929
+ ),
10655
10930
  task.context,
10656
10931
  task.treeContext,
10932
+ task.row,
10657
10933
  task.componentStack,
10658
10934
  emptyContextObject,
10659
10935
  task.debugTask
@@ -10667,6 +10943,50 @@
10667
10943
  }
10668
10944
  }
10669
10945
  }
10946
+ function validateIterable(
10947
+ task,
10948
+ iterable,
10949
+ childIndex,
10950
+ iterator,
10951
+ iteratorFn
10952
+ ) {
10953
+ if (iterator === iterable) {
10954
+ if (
10955
+ -1 !== childIndex ||
10956
+ null === task.componentStack ||
10957
+ "function" !== typeof task.componentStack.type ||
10958
+ "[object GeneratorFunction]" !==
10959
+ Object.prototype.toString.call(task.componentStack.type) ||
10960
+ "[object Generator]" !== Object.prototype.toString.call(iterator)
10961
+ )
10962
+ didWarnAboutGenerators ||
10963
+ console.error(
10964
+ "Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
10965
+ ),
10966
+ (didWarnAboutGenerators = !0);
10967
+ } else
10968
+ iterable.entries !== iteratorFn ||
10969
+ didWarnAboutMaps ||
10970
+ (console.error(
10971
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
10972
+ ),
10973
+ (didWarnAboutMaps = !0));
10974
+ }
10975
+ function validateAsyncIterable(task, iterable, childIndex, iterator) {
10976
+ iterator !== iterable ||
10977
+ (-1 === childIndex &&
10978
+ null !== task.componentStack &&
10979
+ "function" === typeof task.componentStack.type &&
10980
+ "[object AsyncGeneratorFunction]" ===
10981
+ Object.prototype.toString.call(task.componentStack.type) &&
10982
+ "[object AsyncGenerator]" ===
10983
+ Object.prototype.toString.call(iterator)) ||
10984
+ (didWarnAboutGenerators ||
10985
+ console.error(
10986
+ "Using AsyncIterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You can use an AsyncIterable that can iterate multiple times over the same items."
10987
+ ),
10988
+ (didWarnAboutGenerators = !0));
10989
+ }
10670
10990
  function renderNodeDestructive(request, task, node, childIndex) {
10671
10991
  null !== task.replay && "number" === typeof task.replay.slots
10672
10992
  ? resumeNode(request, task, task.replay.slots, node, childIndex)
@@ -10754,27 +11074,7 @@
10754
11074
  }
10755
11075
  if ((key = getIteratorFn(node)))
10756
11076
  if ((type = key.call(node))) {
10757
- if (type === node) {
10758
- if (
10759
- -1 !== childIndex ||
10760
- null === task.componentStack ||
10761
- "function" !== typeof task.componentStack.type ||
10762
- "[object GeneratorFunction]" !==
10763
- Object.prototype.toString.call(task.componentStack.type) ||
10764
- "[object Generator]" !== Object.prototype.toString.call(type)
10765
- )
10766
- didWarnAboutGenerators ||
10767
- console.error(
10768
- "Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."
10769
- ),
10770
- (didWarnAboutGenerators = !0);
10771
- } else
10772
- node.entries !== key ||
10773
- didWarnAboutMaps ||
10774
- (console.error(
10775
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
10776
- ),
10777
- (didWarnAboutMaps = !0));
11077
+ validateIterable(task, node, childIndex, type, key);
10778
11078
  node = type.next();
10779
11079
  if (!node.done) {
10780
11080
  key = [];
@@ -10788,19 +11088,7 @@
10788
11088
  "function" === typeof node[ASYNC_ITERATOR] &&
10789
11089
  (type = node[ASYNC_ITERATOR]())
10790
11090
  ) {
10791
- type !== node ||
10792
- (-1 === childIndex &&
10793
- null !== task.componentStack &&
10794
- "function" === typeof task.componentStack.type &&
10795
- "[object AsyncGeneratorFunction]" ===
10796
- Object.prototype.toString.call(task.componentStack.type) &&
10797
- "[object AsyncGenerator]" ===
10798
- Object.prototype.toString.call(type)) ||
10799
- (didWarnAboutGenerators ||
10800
- console.error(
10801
- "Using AsyncIterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You can use an AsyncIterable that can iterate multiple times over the same items."
10802
- ),
10803
- (didWarnAboutGenerators = !0));
11091
+ validateAsyncIterable(task, node, childIndex, type);
10804
11092
  key = task.thenableState;
10805
11093
  task.thenableState = null;
10806
11094
  thenableIndexCounter = 0;
@@ -10872,7 +11160,70 @@
10872
11160
  ));
10873
11161
  }
10874
11162
  }
10875
- function renderChildrenArray(request$jscomp$0, task, children, childIndex) {
11163
+ function warnForMissingKey(request, task, child) {
11164
+ if (
11165
+ null !== child &&
11166
+ "object" === typeof child &&
11167
+ (child.$$typeof === REACT_ELEMENT_TYPE ||
11168
+ child.$$typeof === REACT_PORTAL_TYPE) &&
11169
+ child._store &&
11170
+ ((!child._store.validated && null == child.key) ||
11171
+ 2 === child._store.validated)
11172
+ ) {
11173
+ if ("object" !== typeof child._store)
11174
+ throw Error(
11175
+ "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
11176
+ );
11177
+ child._store.validated = 1;
11178
+ var didWarnForKey = request.didWarnForKey;
11179
+ null == didWarnForKey &&
11180
+ (didWarnForKey = request.didWarnForKey = new WeakSet());
11181
+ request = task.componentStack;
11182
+ if (null !== request && !didWarnForKey.has(request)) {
11183
+ didWarnForKey.add(request);
11184
+ var componentName = getComponentNameFromType(child.type);
11185
+ didWarnForKey = child._owner;
11186
+ var parentOwner = request.owner;
11187
+ request = "";
11188
+ if (parentOwner && "undefined" !== typeof parentOwner.type) {
11189
+ var name = getComponentNameFromType(parentOwner.type);
11190
+ name &&
11191
+ (request = "\n\nCheck the render method of `" + name + "`.");
11192
+ }
11193
+ request ||
11194
+ (componentName &&
11195
+ (request =
11196
+ "\n\nCheck the top-level render call using <" +
11197
+ componentName +
11198
+ ">."));
11199
+ componentName = "";
11200
+ null != didWarnForKey &&
11201
+ parentOwner !== didWarnForKey &&
11202
+ ((parentOwner = null),
11203
+ "undefined" !== typeof didWarnForKey.type
11204
+ ? (parentOwner = getComponentNameFromType(didWarnForKey.type))
11205
+ : "string" === typeof didWarnForKey.name &&
11206
+ (parentOwner = didWarnForKey.name),
11207
+ parentOwner &&
11208
+ (componentName =
11209
+ " It was passed a child from " + parentOwner + "."));
11210
+ didWarnForKey = task.componentStack;
11211
+ task.componentStack = {
11212
+ parent: task.componentStack,
11213
+ type: child.type,
11214
+ owner: child._owner,
11215
+ stack: child._debugStack
11216
+ };
11217
+ console.error(
11218
+ 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
11219
+ request,
11220
+ componentName
11221
+ );
11222
+ task.componentStack = didWarnForKey;
11223
+ }
11224
+ }
11225
+ }
11226
+ function renderChildrenArray(request, task, children, childIndex) {
10876
11227
  var prevKeyPath = task.keyPath,
10877
11228
  previousComponentStack = task.componentStack;
10878
11229
  var previousDebugTask = task.debugTask;
@@ -10893,7 +11244,7 @@
10893
11244
  node = node[3];
10894
11245
  task.replay = { nodes: childIndex, slots: node, pendingTasks: 1 };
10895
11246
  try {
10896
- renderChildrenArray(request$jscomp$0, task, children, -1);
11247
+ renderChildrenArray(request, task, children, -1);
10897
11248
  if (
10898
11249
  1 === task.replay.pendingTasks &&
10899
11250
  0 < task.replay.nodes.length
@@ -10912,7 +11263,7 @@
10912
11263
  task.replay.pendingTasks--;
10913
11264
  children = getThrownInfo(task.componentStack);
10914
11265
  erroredReplay(
10915
- request$jscomp$0,
11266
+ request,
10916
11267
  task.blockedBoundary,
10917
11268
  x,
10918
11269
  children,
@@ -10942,15 +11293,9 @@
10942
11293
  task.treeContext = pushTreeContext(replay, replayNodes, childIndex);
10943
11294
  var resumeSegmentID = j[childIndex];
10944
11295
  "number" === typeof resumeSegmentID
10945
- ? (resumeNode(
10946
- request$jscomp$0,
10947
- task,
10948
- resumeSegmentID,
10949
- node,
10950
- childIndex
10951
- ),
11296
+ ? (resumeNode(request, task, resumeSegmentID, node, childIndex),
10952
11297
  delete j[childIndex])
10953
- : renderNode(request$jscomp$0, task, node, childIndex);
11298
+ : renderNode(request, task, node, childIndex);
10954
11299
  }
10955
11300
  task.treeContext = replay;
10956
11301
  task.keyPath = prevKeyPath;
@@ -10958,75 +11303,11 @@
10958
11303
  task.debugTask = previousDebugTask;
10959
11304
  return;
10960
11305
  }
10961
- for (j = 0; j < replayNodes; j++) {
10962
- childIndex = children[j];
10963
- var request = request$jscomp$0;
10964
- node = task;
10965
- resumeSegmentID = childIndex;
10966
- if (
10967
- null !== resumeSegmentID &&
10968
- "object" === typeof resumeSegmentID &&
10969
- (resumeSegmentID.$$typeof === REACT_ELEMENT_TYPE ||
10970
- resumeSegmentID.$$typeof === REACT_PORTAL_TYPE) &&
10971
- resumeSegmentID._store &&
10972
- ((!resumeSegmentID._store.validated && null == resumeSegmentID.key) ||
10973
- 2 === resumeSegmentID._store.validated)
10974
- ) {
10975
- if ("object" !== typeof resumeSegmentID._store)
10976
- throw Error(
10977
- "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
10978
- );
10979
- resumeSegmentID._store.validated = 1;
10980
- var didWarnForKey = request.didWarnForKey;
10981
- null == didWarnForKey &&
10982
- (didWarnForKey = request.didWarnForKey = new WeakSet());
10983
- request = node.componentStack;
10984
- if (null !== request && !didWarnForKey.has(request)) {
10985
- didWarnForKey.add(request);
10986
- var componentName = getComponentNameFromType(resumeSegmentID.type);
10987
- didWarnForKey = resumeSegmentID._owner;
10988
- var parentOwner = request.owner;
10989
- request = "";
10990
- if (parentOwner && "undefined" !== typeof parentOwner.type) {
10991
- var name = getComponentNameFromType(parentOwner.type);
10992
- name &&
10993
- (request = "\n\nCheck the render method of `" + name + "`.");
10994
- }
10995
- request ||
10996
- (componentName &&
10997
- (request =
10998
- "\n\nCheck the top-level render call using <" +
10999
- componentName +
11000
- ">."));
11001
- componentName = "";
11002
- null != didWarnForKey &&
11003
- parentOwner !== didWarnForKey &&
11004
- ((parentOwner = null),
11005
- "undefined" !== typeof didWarnForKey.type
11006
- ? (parentOwner = getComponentNameFromType(didWarnForKey.type))
11007
- : "string" === typeof didWarnForKey.name &&
11008
- (parentOwner = didWarnForKey.name),
11009
- parentOwner &&
11010
- (componentName =
11011
- " It was passed a child from " + parentOwner + "."));
11012
- didWarnForKey = node.componentStack;
11013
- node.componentStack = {
11014
- parent: node.componentStack,
11015
- type: resumeSegmentID.type,
11016
- owner: resumeSegmentID._owner,
11017
- stack: resumeSegmentID._debugStack
11018
- };
11019
- console.error(
11020
- 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
11021
- request,
11022
- componentName
11023
- );
11024
- node.componentStack = didWarnForKey;
11025
- }
11026
- }
11027
- task.treeContext = pushTreeContext(replay, replayNodes, j);
11028
- renderNode(request$jscomp$0, task, childIndex, j);
11029
- }
11306
+ for (j = 0; j < replayNodes; j++)
11307
+ (childIndex = children[j]),
11308
+ warnForMissingKey(request, task, childIndex),
11309
+ (task.treeContext = pushTreeContext(replay, replayNodes, j)),
11310
+ renderNode(request, task, childIndex, j);
11030
11311
  task.treeContext = replay;
11031
11312
  task.keyPath = prevKeyPath;
11032
11313
  task.componentStack = previousComponentStack;
@@ -11154,6 +11435,7 @@
11154
11435
  task.formatContext,
11155
11436
  task.context,
11156
11437
  task.treeContext,
11438
+ task.row,
11157
11439
  task.componentStack,
11158
11440
  emptyContextObject,
11159
11441
  task.debugTask
@@ -11185,6 +11467,7 @@
11185
11467
  task.formatContext,
11186
11468
  task.context,
11187
11469
  task.treeContext,
11470
+ task.row,
11188
11471
  task.componentStack,
11189
11472
  emptyContextObject,
11190
11473
  task.debugTask
@@ -11361,9 +11644,10 @@
11361
11644
  );
11362
11645
  }
11363
11646
  function abortTaskSoft(task) {
11364
- var boundary = task.blockedBoundary;
11365
- task = task.blockedSegment;
11366
- null !== task && ((task.status = 3), finishedTask(this, boundary, task));
11647
+ var boundary = task.blockedBoundary,
11648
+ segment = task.blockedSegment;
11649
+ null !== segment &&
11650
+ ((segment.status = 3), finishedTask(this, boundary, task.row, segment));
11367
11651
  }
11368
11652
  function abortRemainingReplayNodes(
11369
11653
  request$jscomp$0,
@@ -11397,6 +11681,7 @@
11397
11681
  wasAborted = aborted,
11398
11682
  resumedBoundary = createSuspenseBoundary(
11399
11683
  request,
11684
+ null,
11400
11685
  new Set(),
11401
11686
  null,
11402
11687
  null
@@ -11443,6 +11728,10 @@
11443
11728
  if (6 === segment.status) return;
11444
11729
  segment.status = 3;
11445
11730
  }
11731
+ var row = task.row;
11732
+ null !== row &&
11733
+ 0 === --row.pendingTasks &&
11734
+ finishSuspenseListRow(request, row);
11446
11735
  var errorInfo = getThrownInfo(task.componentStack);
11447
11736
  if (null === boundary) {
11448
11737
  if (13 !== request.status && 14 !== request.status) {
@@ -11455,7 +11744,7 @@
11455
11744
  null !== boundary && null !== segment
11456
11745
  ? (logPostpone(request, error.message, errorInfo, null),
11457
11746
  trackPostpone(request, boundary, task, segment),
11458
- finishedTask(request, null, segment))
11747
+ finishedTask(request, null, row, segment))
11459
11748
  : ((task = Error(
11460
11749
  "The render was aborted with postpone when the shell is incomplete. Reason: " +
11461
11750
  error.message
@@ -11466,7 +11755,7 @@
11466
11755
  ? ((boundary = request.trackedPostpones),
11467
11756
  logRecoverableError(request, error, errorInfo, null),
11468
11757
  trackPostpone(request, boundary, task, segment),
11469
- finishedTask(request, null, segment))
11758
+ finishedTask(request, null, row, segment))
11470
11759
  : (logRecoverableError(request, error, errorInfo, null),
11471
11760
  fatalError(request, error, errorInfo, null));
11472
11761
  return;
@@ -11509,7 +11798,7 @@
11509
11798
  return abortTask(fallbackTask, request, error);
11510
11799
  }),
11511
11800
  boundary.fallbackAbortableTasks.clear(),
11512
- finishedTask(request, boundary, segment)
11801
+ finishedTask(request, boundary, row, segment)
11513
11802
  );
11514
11803
  boundary.status = 4;
11515
11804
  if (
@@ -11520,7 +11809,7 @@
11520
11809
  logPostpone(request, error.message, errorInfo, null);
11521
11810
  if (null !== request.trackedPostpones && null !== segment) {
11522
11811
  trackPostpone(request, request.trackedPostpones, task, segment);
11523
- finishedTask(request, task.blockedBoundary, segment);
11812
+ finishedTask(request, task.blockedBoundary, row, segment);
11524
11813
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
11525
11814
  return abortTask(fallbackTask, request, error);
11526
11815
  });
@@ -11641,7 +11930,11 @@
11641
11930
  queueCompletedSegment(boundary, childSegment);
11642
11931
  } else boundary.completedSegments.push(segment);
11643
11932
  }
11644
- function finishedTask(request, boundary, segment) {
11933
+ function finishedTask(request, boundary, row, segment) {
11934
+ null !== row &&
11935
+ 0 === --row.pendingTasks &&
11936
+ finishSuspenseListRow(request, row);
11937
+ request.allPendingTasks--;
11645
11938
  if (null === boundary) {
11646
11939
  if (null !== segment && segment.parentFlushed) {
11647
11940
  if (null !== request.completedRootSegment)
@@ -11669,7 +11962,11 @@
11669
11962
  abortTaskSoft,
11670
11963
  request
11671
11964
  ),
11672
- boundary.fallbackAbortableTasks.clear()),
11965
+ boundary.fallbackAbortableTasks.clear(),
11966
+ (row = boundary.row),
11967
+ null !== row &&
11968
+ 0 === --row.pendingTasks &&
11969
+ finishSuspenseListRow(request, row)),
11673
11970
  0 === request.pendingRootTasks &&
11674
11971
  null === request.trackedPostpones &&
11675
11972
  null !== boundary.contentPreamble &&
@@ -11681,7 +11978,6 @@
11681
11978
  1 === boundary.completedSegments.length &&
11682
11979
  boundary.parentFlushed &&
11683
11980
  request.partialBoundaries.push(boundary)));
11684
- request.allPendingTasks--;
11685
11981
  0 === request.allPendingTasks && completeAll(request);
11686
11982
  }
11687
11983
  function performWork(request$jscomp$1) {
@@ -11729,7 +12025,12 @@
11729
12025
  );
11730
12026
  request.replay.pendingTasks--;
11731
12027
  request.abortSet.delete(request);
11732
- finishedTask(request$jscomp$0, request.blockedBoundary, null);
12028
+ finishedTask(
12029
+ request$jscomp$0,
12030
+ request.blockedBoundary,
12031
+ request.row,
12032
+ null
12033
+ );
11733
12034
  } catch (thrownValue) {
11734
12035
  resetHooksState();
11735
12036
  var x =
@@ -11789,6 +12090,7 @@
11789
12090
  finishedTask(
11790
12091
  request,
11791
12092
  task$jscomp$0.blockedBoundary,
12093
+ task$jscomp$0.row,
11792
12094
  segment$jscomp$0
11793
12095
  );
11794
12096
  } catch (thrownValue) {
@@ -11834,6 +12136,7 @@
11834
12136
  finishedTask(
11835
12137
  request,
11836
12138
  task$jscomp$0.blockedBoundary,
12139
+ task$jscomp$0.row,
11837
12140
  segment$jscomp$0
11838
12141
  );
11839
12142
  } else {
@@ -11873,6 +12176,7 @@
11873
12176
  finishedTask(
11874
12177
  request,
11875
12178
  task$jscomp$0.blockedBoundary,
12179
+ task$jscomp$0.row,
11876
12180
  segment$jscomp$0
11877
12181
  );
11878
12182
  break a;
@@ -11884,7 +12188,12 @@
11884
12188
  task$jscomp$0.abortSet.delete(task$jscomp$0);
11885
12189
  segment$jscomp$0.status = 4;
11886
12190
  var boundary = task$jscomp$0.blockedBoundary,
12191
+ row = task$jscomp$0.row,
11887
12192
  debugTask = task$jscomp$0.debugTask;
12193
+ null !== row &&
12194
+ 0 === --row.pendingTasks &&
12195
+ finishSuspenseListRow(request, row);
12196
+ request.allPendingTasks--;
11888
12197
  "object" === typeof x$jscomp$0 &&
11889
12198
  null !== x$jscomp$0 &&
11890
12199
  x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
@@ -11925,7 +12234,6 @@
11925
12234
  null === request.trackedPostpones &&
11926
12235
  null !== boundary.contentPreamble &&
11927
12236
  preparePreamble(request)));
11928
- request.allPendingTasks--;
11929
12237
  0 === request.allPendingTasks && completeAll(request);
11930
12238
  }
11931
12239
  } finally {
@@ -12076,7 +12384,14 @@
12076
12384
  return flushSubtree(request, destination, segment, hoistableState);
12077
12385
  boundary.parentFlushed = !0;
12078
12386
  if (4 === boundary.status)
12079
- return flushSubtree(request, destination, segment, hoistableState), !0;
12387
+ return (
12388
+ (boundary = boundary.row),
12389
+ null !== boundary &&
12390
+ 0 === --boundary.pendingTasks &&
12391
+ finishSuspenseListRow(request, boundary),
12392
+ flushSubtree(request, destination, segment, hoistableState),
12393
+ !0
12394
+ );
12080
12395
  if (1 !== boundary.status)
12081
12396
  return (
12082
12397
  0 === boundary.status &&
@@ -12118,6 +12433,11 @@
12118
12433
  ((segment = boundary.contentState),
12119
12434
  segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
12120
12435
  segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
12436
+ segment = boundary.row;
12437
+ null !== segment &&
12438
+ 500 < boundary.byteSize &&
12439
+ 0 === --segment.pendingTasks &&
12440
+ finishSuspenseListRow(request, segment);
12121
12441
  segment = boundary.completedSegments;
12122
12442
  if (1 !== segment.length)
12123
12443
  throw Error(
@@ -12155,6 +12475,11 @@
12155
12475
  completedSegments[i]
12156
12476
  );
12157
12477
  completedSegments.length = 0;
12478
+ completedSegments = boundary.row;
12479
+ null !== completedSegments &&
12480
+ 500 < boundary.byteSize &&
12481
+ 0 === --completedSegments.pendingTasks &&
12482
+ finishSuspenseListRow(request, completedSegments);
12158
12483
  writeHoistablesForBoundary(
12159
12484
  destination,
12160
12485
  boundary.contentState,
@@ -12164,7 +12489,8 @@
12164
12489
  request = request.renderState;
12165
12490
  i = boundary.rootSegmentID;
12166
12491
  boundary = boundary.contentState;
12167
- var requiresStyleInsertion = request.stylesToHoist;
12492
+ var requiresStyleInsertion = request.stylesToHoist,
12493
+ requiresViewTransitions = 0 !== (completedSegments.instructions & 128);
12168
12494
  request.stylesToHoist = !1;
12169
12495
  var scriptFormat = 0 === completedSegments.streamingFormat;
12170
12496
  scriptFormat
@@ -12177,7 +12503,13 @@
12177
12503
  0 === (completedSegments.instructions & 2) &&
12178
12504
  ((completedSegments.instructions |= 2),
12179
12505
  destination.push(
12180
- '$RB=[];$RC=function(d,c){function m(){$RT=performance.now();var f=$RB;$RB=[];for(var e=0;e<f.length;e+=2){var a=f[e],l=f[e+1],g=a.parentNode;if(g){var h=a.previousSibling,k=0;do{if(a&&8===a.nodeType){var b=a.data;if("/$"===b||"/&"===b)if(0===k)break;else k--;else"$"!==b&&"$?"!==b&&"$~"!==b&&"$!"!==b&&"&"!==b||k++}b=a.nextSibling;g.removeChild(a);a=b}while(a);for(;l.firstChild;)g.insertBefore(l.firstChild,a);h.data="$";h._reactRetry&&h._reactRetry()}}}if(c=document.getElementById(c))if(c.parentNode.removeChild(c),d=\ndocument.getElementById(d))d.previousSibling.data="$~",$RB.push(d,c),2===$RB.length&&setTimeout(m,("number"!==typeof $RT?0:$RT)+300-performance.now())};'
12506
+ '$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())};'
12507
+ )),
12508
+ requiresViewTransitions &&
12509
+ 0 === (completedSegments.instructions & 256) &&
12510
+ ((completedSegments.instructions |= 256),
12511
+ destination.push(
12512
+ "$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);"
12181
12513
  )),
12182
12514
  0 === (completedSegments.instructions & 8)
12183
12515
  ? ((completedSegments.instructions |= 8),
@@ -12185,12 +12517,18 @@
12185
12517
  '$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("'
12186
12518
  ))
12187
12519
  : destination.push('$RR("'))
12188
- : 0 === (completedSegments.instructions & 2)
12189
- ? ((completedSegments.instructions |= 2),
12520
+ : (0 === (completedSegments.instructions & 2) &&
12521
+ ((completedSegments.instructions |= 2),
12190
12522
  destination.push(
12191
- '$RB=[];$RC=function(d,c){function m(){$RT=performance.now();var f=$RB;$RB=[];for(var e=0;e<f.length;e+=2){var a=f[e],l=f[e+1],g=a.parentNode;if(g){var h=a.previousSibling,k=0;do{if(a&&8===a.nodeType){var b=a.data;if("/$"===b||"/&"===b)if(0===k)break;else k--;else"$"!==b&&"$?"!==b&&"$~"!==b&&"$!"!==b&&"&"!==b||k++}b=a.nextSibling;g.removeChild(a);a=b}while(a);for(;l.firstChild;)g.insertBefore(l.firstChild,a);h.data="$";h._reactRetry&&h._reactRetry()}}}if(c=document.getElementById(c))if(c.parentNode.removeChild(c),d=\ndocument.getElementById(d))d.previousSibling.data="$~",$RB.push(d,c),2===$RB.length&&setTimeout(m,("number"!==typeof $RT?0:$RT)+300-performance.now())};$RC("'
12192
- ))
12193
- : destination.push('$RC("'))
12523
+ '$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())};'
12524
+ )),
12525
+ requiresViewTransitions &&
12526
+ 0 === (completedSegments.instructions & 256) &&
12527
+ ((completedSegments.instructions |= 256),
12528
+ destination.push(
12529
+ "$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);"
12530
+ )),
12531
+ destination.push('$RC("')))
12194
12532
  : requiresStyleInsertion
12195
12533
  ? destination.push('<template data-rri="" data-bid="')
12196
12534
  : destination.push('<template data-rci="" data-bid="');
@@ -14143,5 +14481,5 @@
14143
14481
  });
14144
14482
  });
14145
14483
  };
14146
- exports.version = "19.2.0-experimental-4448b187-20250515";
14484
+ exports.version = "19.2.0-experimental-c4676e72-20250520";
14147
14485
  })();