react-markup 0.0.0-experimental-c4676e72-20250520 → 0.0.0-experimental-8ce15b0f-20250522

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1087,8 +1087,8 @@
1087
1087
  ? null
1088
1088
  : {
1089
1089
  update: parentViewTransition.update,
1090
- enter: null,
1091
- exit: null,
1090
+ enter: "none",
1091
+ exit: "none",
1092
1092
  share: parentViewTransition.update,
1093
1093
  name: parentViewTransition.autoName,
1094
1094
  autoName: parentViewTransition.autoName,
@@ -1130,11 +1130,11 @@
1130
1130
  ),
1131
1131
  formatContext.nameIdx++),
1132
1132
  pushStringAttribute(target, "vt-update", formatContext.update),
1133
- null !== formatContext.enter &&
1133
+ "none" !== formatContext.enter &&
1134
1134
  pushStringAttribute(target, "vt-enter", formatContext.enter),
1135
- null !== formatContext.exit &&
1135
+ "none" !== formatContext.exit &&
1136
1136
  pushStringAttribute(target, "vt-exit", formatContext.exit),
1137
- null !== formatContext.share &&
1137
+ "none" !== formatContext.share &&
1138
1138
  pushStringAttribute(target, "vt-share", formatContext.share));
1139
1139
  }
1140
1140
  function pushStyleAttribute(target, style) {
@@ -3778,6 +3778,10 @@
3778
3778
  function hoistStylesheetDependency(stylesheet) {
3779
3779
  this.stylesheets.add(stylesheet);
3780
3780
  }
3781
+ function hoistHoistables(parentState, childState) {
3782
+ childState.styles.forEach(hoistStyleQueueDependency, parentState);
3783
+ childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
3784
+ }
3781
3785
  function getComponentNameFromType(type) {
3782
3786
  if (null == type) return null;
3783
3787
  if ("function" === typeof type)
@@ -4660,11 +4664,14 @@
4660
4664
  };
4661
4665
  null !== row &&
4662
4666
  (row.pendingTasks++,
4663
- (row = row.boundaries),
4664
- null !== row &&
4667
+ (contentPreamble = row.boundaries),
4668
+ null !== contentPreamble &&
4665
4669
  (request.allPendingTasks++,
4666
4670
  fallbackAbortableTasks.pendingTasks++,
4667
- row.push(fallbackAbortableTasks)));
4671
+ contentPreamble.push(fallbackAbortableTasks)),
4672
+ (request = row.inheritedHoistables),
4673
+ null !== request &&
4674
+ hoistHoistables(fallbackAbortableTasks.contentState, request));
4668
4675
  return fallbackAbortableTasks;
4669
4676
  }
4670
4677
  function createRenderTask(
@@ -4948,20 +4955,70 @@
4948
4955
  : ((request.status = 13), (request.fatalError = error));
4949
4956
  }
4950
4957
  function finishSuspenseListRow(request, row) {
4951
- for (row = row.next; null !== row; ) {
4952
- var unblockedBoundaries = row.boundaries;
4958
+ unblockSuspenseListRow(request, row.next, row.hoistables);
4959
+ }
4960
+ function unblockSuspenseListRow(
4961
+ request,
4962
+ unblockedRow,
4963
+ inheritedHoistables
4964
+ ) {
4965
+ for (; null !== unblockedRow; ) {
4966
+ null !== inheritedHoistables &&
4967
+ (hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
4968
+ (unblockedRow.inheritedHoistables = inheritedHoistables));
4969
+ var unblockedBoundaries = unblockedRow.boundaries;
4953
4970
  if (null !== unblockedBoundaries) {
4954
- row.boundaries = null;
4955
- for (var i = 0; i < unblockedBoundaries.length; i++)
4956
- finishedTask(request, unblockedBoundaries[i], null, null);
4971
+ unblockedRow.boundaries = null;
4972
+ for (var i = 0; i < unblockedBoundaries.length; i++) {
4973
+ var unblockedBoundary = unblockedBoundaries[i];
4974
+ null !== inheritedHoistables &&
4975
+ hoistHoistables(
4976
+ unblockedBoundary.contentState,
4977
+ inheritedHoistables
4978
+ );
4979
+ finishedTask(request, unblockedBoundary, null, null);
4980
+ }
4957
4981
  }
4958
- row.pendingTasks--;
4959
- if (0 < row.pendingTasks) break;
4960
- row = row.next;
4982
+ unblockedRow.pendingTasks--;
4983
+ if (0 < unblockedRow.pendingTasks) break;
4984
+ inheritedHoistables = unblockedRow.hoistables;
4985
+ unblockedRow = unblockedRow.next;
4986
+ }
4987
+ }
4988
+ function tryToResolveTogetherRow(request, togetherRow) {
4989
+ var boundaries = togetherRow.boundaries;
4990
+ if (
4991
+ null !== boundaries &&
4992
+ togetherRow.pendingTasks === boundaries.length
4993
+ ) {
4994
+ for (
4995
+ var allCompleteAndInlinable = !0, i = 0;
4996
+ i < boundaries.length;
4997
+ i++
4998
+ ) {
4999
+ var rowBoundary = boundaries[i];
5000
+ if (
5001
+ 1 !== rowBoundary.pendingTasks ||
5002
+ rowBoundary.parentFlushed ||
5003
+ 500 < rowBoundary.byteSize
5004
+ ) {
5005
+ allCompleteAndInlinable = !1;
5006
+ break;
5007
+ }
5008
+ }
5009
+ allCompleteAndInlinable &&
5010
+ unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
4961
5011
  }
4962
5012
  }
4963
5013
  function createSuspenseListRow(previousRow) {
4964
- var newRow = { pendingTasks: 1, boundaries: null, next: null };
5014
+ var newRow = {
5015
+ pendingTasks: 1,
5016
+ boundaries: null,
5017
+ hoistables: createHoistableState(),
5018
+ inheritedHoistables: null,
5019
+ together: !1,
5020
+ next: null
5021
+ };
4965
5022
  null !== previousRow &&
4966
5023
  0 < previousRow.pendingTasks &&
4967
5024
  (newRow.pendingTasks++,
@@ -4970,28 +5027,25 @@
4970
5027
  return newRow;
4971
5028
  }
4972
5029
  function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
4973
- keyPath = task.keyPath;
4974
- var previousComponentStack = task.componentStack;
5030
+ var prevKeyPath = task.keyPath,
5031
+ prevTreeContext = task.treeContext,
5032
+ prevRow = task.row,
5033
+ previousComponentStack = task.componentStack;
4975
5034
  var previousDebugTask = task.debugTask;
4976
5035
  pushServerComponentStack(task, task.node.props.children._debugInfo);
4977
- var prevTreeContext = task.treeContext,
4978
- prevRow = task.row,
4979
- totalChildren = rows.length,
4980
- previousSuspenseListRow = null;
5036
+ task.keyPath = keyPath;
5037
+ keyPath = rows.length;
5038
+ var previousSuspenseListRow = null;
4981
5039
  if (null !== task.replay) {
4982
5040
  var resumeSlots = task.replay.slots;
4983
5041
  if (null !== resumeSlots && "object" === typeof resumeSlots)
4984
- for (var n = 0; n < totalChildren; n++) {
4985
- var i = "backwards" !== revealOrder ? n : totalChildren - 1 - n,
5042
+ for (var n = 0; n < keyPath; n++) {
5043
+ var i = "backwards" !== revealOrder ? n : keyPath - 1 - n,
4986
5044
  node = rows[i];
4987
5045
  task.row = previousSuspenseListRow = createSuspenseListRow(
4988
5046
  previousSuspenseListRow
4989
5047
  );
4990
- task.treeContext = pushTreeContext(
4991
- prevTreeContext,
4992
- totalChildren,
4993
- i
4994
- );
5048
+ task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
4995
5049
  var resumeSegmentID = resumeSlots[i];
4996
5050
  "number" === typeof resumeSegmentID
4997
5051
  ? (resumeNode(request, task, resumeSegmentID, node, i),
@@ -5001,32 +5055,28 @@
5001
5055
  finishSuspenseListRow(request, previousSuspenseListRow);
5002
5056
  }
5003
5057
  else
5004
- for (resumeSlots = 0; resumeSlots < totalChildren; resumeSlots++)
5058
+ for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
5005
5059
  (n =
5006
5060
  "backwards" !== revealOrder
5007
5061
  ? resumeSlots
5008
- : totalChildren - 1 - resumeSlots),
5062
+ : keyPath - 1 - resumeSlots),
5009
5063
  (i = rows[n]),
5010
5064
  warnForMissingKey(request, task, i),
5011
5065
  (task.row = previousSuspenseListRow =
5012
5066
  createSuspenseListRow(previousSuspenseListRow)),
5013
- (task.treeContext = pushTreeContext(
5014
- prevTreeContext,
5015
- totalChildren,
5016
- n
5017
- )),
5067
+ (task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
5018
5068
  renderNode(request, task, i, n),
5019
5069
  0 === --previousSuspenseListRow.pendingTasks &&
5020
5070
  finishSuspenseListRow(request, previousSuspenseListRow);
5021
5071
  } else if ("backwards" !== revealOrder)
5022
- for (revealOrder = 0; revealOrder < totalChildren; revealOrder++)
5072
+ for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
5023
5073
  (resumeSlots = rows[revealOrder]),
5024
5074
  warnForMissingKey(request, task, resumeSlots),
5025
5075
  (task.row = previousSuspenseListRow =
5026
5076
  createSuspenseListRow(previousSuspenseListRow)),
5027
5077
  (task.treeContext = pushTreeContext(
5028
5078
  prevTreeContext,
5029
- totalChildren,
5079
+ keyPath,
5030
5080
  revealOrder
5031
5081
  )),
5032
5082
  renderNode(request, task, resumeSlots, revealOrder),
@@ -5036,12 +5086,12 @@
5036
5086
  revealOrder = task.blockedSegment;
5037
5087
  resumeSlots = revealOrder.children.length;
5038
5088
  n = revealOrder.chunks.length;
5039
- for (i = totalChildren - 1; 0 <= i; i--) {
5089
+ for (i = keyPath - 1; 0 <= i; i--) {
5040
5090
  node = rows[i];
5041
5091
  task.row = previousSuspenseListRow = createSuspenseListRow(
5042
5092
  previousSuspenseListRow
5043
5093
  );
5044
- task.treeContext = pushTreeContext(prevTreeContext, totalChildren, i);
5094
+ task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
5045
5095
  resumeSegmentID = createPendingSegment(
5046
5096
  request,
5047
5097
  n,
@@ -5074,7 +5124,7 @@
5074
5124
  (prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
5075
5125
  task.treeContext = prevTreeContext;
5076
5126
  task.row = prevRow;
5077
- task.keyPath = keyPath;
5127
+ task.keyPath = prevKeyPath;
5078
5128
  task.componentStack = previousComponentStack;
5079
5129
  task.debugTask = previousDebugTask;
5080
5130
  }
@@ -5641,7 +5691,7 @@
5641
5691
  );
5642
5692
  segment.lastPushedText = !1;
5643
5693
  var _prevContext2 = task.formatContext,
5644
- _prevKeyPath2 = task.keyPath;
5694
+ _prevKeyPath3 = task.keyPath;
5645
5695
  task.keyPath = keyPath;
5646
5696
  if (
5647
5697
  3 ===
@@ -5683,7 +5733,7 @@
5683
5733
  request.pingedTasks.push(preambleTask);
5684
5734
  } else renderNode(request, task, _children, -1);
5685
5735
  task.formatContext = _prevContext2;
5686
- task.keyPath = _prevKeyPath2;
5736
+ task.keyPath = _prevKeyPath3;
5687
5737
  a: {
5688
5738
  var target$jscomp$0 = segment.chunks,
5689
5739
  resumableState$jscomp$0 = request.resumableState;
@@ -5748,10 +5798,10 @@
5748
5798
  }
5749
5799
  } else if ("hidden" !== props.mode) {
5750
5800
  segment$jscomp$0.lastPushedText = !1;
5751
- var _prevKeyPath3 = task.keyPath;
5801
+ var _prevKeyPath4 = task.keyPath;
5752
5802
  task.keyPath = keyPath;
5753
5803
  renderNode(request, task, props.children, -1);
5754
- task.keyPath = _prevKeyPath3;
5804
+ task.keyPath = _prevKeyPath4;
5755
5805
  segment$jscomp$0.lastPushedText = !1;
5756
5806
  }
5757
5807
  return;
@@ -5844,10 +5894,27 @@
5844
5894
  }
5845
5895
  }
5846
5896
  }
5847
- var prevKeyPath$jscomp$3 = task.keyPath;
5848
- task.keyPath = keyPath;
5849
- renderNodeDestructive(request, task, children$jscomp$0, -1);
5850
- task.keyPath = prevKeyPath$jscomp$3;
5897
+ if ("together" === revealOrder) {
5898
+ var _prevKeyPath2 = task.keyPath,
5899
+ prevRow = task.row,
5900
+ newRow = (task.row = createSuspenseListRow(null));
5901
+ newRow.boundaries = [];
5902
+ newRow.together = !0;
5903
+ task.keyPath = keyPath;
5904
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
5905
+ 0 === --newRow.pendingTasks &&
5906
+ finishSuspenseListRow(request, newRow);
5907
+ task.keyPath = _prevKeyPath2;
5908
+ task.row = prevRow;
5909
+ null !== prevRow &&
5910
+ 0 < newRow.pendingTasks &&
5911
+ (prevRow.pendingTasks++, (newRow.next = prevRow));
5912
+ } else {
5913
+ var prevKeyPath$jscomp$3 = task.keyPath;
5914
+ task.keyPath = keyPath;
5915
+ renderNodeDestructive(request, task, children$jscomp$0, -1);
5916
+ task.keyPath = prevKeyPath$jscomp$3;
5917
+ }
5851
5918
  }
5852
5919
  return;
5853
5920
  case REACT_VIEW_TRANSITION_TYPE:
@@ -5897,7 +5964,7 @@
5897
5964
  } else {
5898
5965
  var prevKeyPath$jscomp$5 = task.keyPath,
5899
5966
  prevContext$jscomp$1 = task.formatContext,
5900
- prevRow = task.row,
5967
+ prevRow$jscomp$0 = task.row,
5901
5968
  parentBoundary = task.blockedBoundary,
5902
5969
  parentPreamble = task.blockedPreamble,
5903
5970
  parentHoistableState = task.hoistableState,
@@ -6022,18 +6089,23 @@
6022
6089
  (renderNode(request, task, content, -1),
6023
6090
  (contentRootSegment.status = 1),
6024
6091
  queueCompletedSegment(newBoundary, contentRootSegment),
6025
- 0 === newBoundary.pendingTasks &&
6026
- 0 === newBoundary.status &&
6027
- ((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
6092
+ 0 === newBoundary.pendingTasks && 0 === newBoundary.status)
6028
6093
  ) {
6029
- null !== prevRow &&
6030
- 0 === --prevRow.pendingTasks &&
6031
- finishSuspenseListRow(request, prevRow);
6032
- 0 === request.pendingRootTasks &&
6033
- task.blockedPreamble &&
6034
- preparePreamble(request);
6035
- break a;
6036
- }
6094
+ if (
6095
+ ((newBoundary.status = 1), !(500 < newBoundary.byteSize))
6096
+ ) {
6097
+ null !== prevRow$jscomp$0 &&
6098
+ 0 === --prevRow$jscomp$0.pendingTasks &&
6099
+ finishSuspenseListRow(request, prevRow$jscomp$0);
6100
+ 0 === request.pendingRootTasks &&
6101
+ task.blockedPreamble &&
6102
+ preparePreamble(request);
6103
+ break a;
6104
+ }
6105
+ } else
6106
+ null !== prevRow$jscomp$0 &&
6107
+ prevRow$jscomp$0.together &&
6108
+ tryToResolveTogetherRow(request, prevRow$jscomp$0);
6037
6109
  } catch (thrownValue$2) {
6038
6110
  newBoundary.status = 4;
6039
6111
  if (12 === request.status) {
@@ -6076,7 +6148,7 @@
6076
6148
  (task.blockedSegment = parentSegment),
6077
6149
  (task.keyPath = prevKeyPath$jscomp$5),
6078
6150
  (task.formatContext = prevContext$jscomp$1),
6079
- (task.row = prevRow);
6151
+ (task.row = prevRow$jscomp$0);
6080
6152
  }
6081
6153
  var suspendedFallbackTask = createRenderTask(
6082
6154
  request,
@@ -6804,6 +6876,35 @@
6804
6876
  task.componentStack = previousComponentStack;
6805
6877
  task.debugTask = previousDebugTask;
6806
6878
  }
6879
+ function trackPostponedBoundary(request, trackedPostpones, boundary) {
6880
+ boundary.status = 5;
6881
+ boundary.rootSegmentID = request.nextSegmentId++;
6882
+ request = boundary.trackedContentKeyPath;
6883
+ if (null === request)
6884
+ throw Error(
6885
+ "It should not be possible to postpone at the root. This is a bug in React."
6886
+ );
6887
+ var fallbackReplayNode = boundary.trackedFallbackNode,
6888
+ children = [],
6889
+ boundaryNode = trackedPostpones.workingMap.get(request);
6890
+ if (void 0 === boundaryNode)
6891
+ return (
6892
+ (boundary = [
6893
+ request[1],
6894
+ request[2],
6895
+ children,
6896
+ null,
6897
+ fallbackReplayNode,
6898
+ boundary.rootSegmentID
6899
+ ]),
6900
+ trackedPostpones.workingMap.set(request, boundary),
6901
+ addToReplayParent(boundary, request[0], trackedPostpones),
6902
+ boundary
6903
+ );
6904
+ boundaryNode[4] = fallbackReplayNode;
6905
+ boundaryNode[5] = boundary.rootSegmentID;
6906
+ return boundaryNode;
6907
+ }
6807
6908
  function trackPostpone(request, trackedPostpones, task, segment) {
6808
6909
  segment.status = 5;
6809
6910
  var keyPath = task.keyPath,
@@ -6815,51 +6916,22 @@
6815
6916
  (request.completedRootSegment.status = 5);
6816
6917
  else {
6817
6918
  if (null !== boundary && 0 === boundary.status) {
6818
- boundary.status = 5;
6819
- boundary.rootSegmentID = request.nextSegmentId++;
6820
- var boundaryKeyPath = boundary.trackedContentKeyPath;
6821
- if (null === boundaryKeyPath)
6822
- throw Error(
6823
- "It should not be possible to postpone at the root. This is a bug in React."
6824
- );
6825
- var fallbackReplayNode = boundary.trackedFallbackNode,
6826
- children = [];
6827
- if (boundaryKeyPath === keyPath && -1 === task.childIndex) {
6919
+ var boundaryNode = trackPostponedBoundary(
6920
+ request,
6921
+ trackedPostpones,
6922
+ boundary
6923
+ );
6924
+ if (
6925
+ boundary.trackedContentKeyPath === keyPath &&
6926
+ -1 === task.childIndex
6927
+ ) {
6828
6928
  -1 === segment.id &&
6829
6929
  (segment.id = segment.parentFlushed
6830
6930
  ? boundary.rootSegmentID
6831
6931
  : request.nextSegmentId++);
6832
- segment = [
6833
- boundaryKeyPath[1],
6834
- boundaryKeyPath[2],
6835
- children,
6836
- segment.id,
6837
- fallbackReplayNode,
6838
- boundary.rootSegmentID
6839
- ];
6840
- trackedPostpones.workingMap.set(boundaryKeyPath, segment);
6841
- addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
6932
+ boundaryNode[3] = segment.id;
6842
6933
  return;
6843
6934
  }
6844
- var _boundaryNode = trackedPostpones.workingMap.get(boundaryKeyPath);
6845
- void 0 === _boundaryNode
6846
- ? ((_boundaryNode = [
6847
- boundaryKeyPath[1],
6848
- boundaryKeyPath[2],
6849
- children,
6850
- null,
6851
- fallbackReplayNode,
6852
- boundary.rootSegmentID
6853
- ]),
6854
- trackedPostpones.workingMap.set(boundaryKeyPath, _boundaryNode),
6855
- addToReplayParent(
6856
- _boundaryNode,
6857
- boundaryKeyPath[0],
6858
- trackedPostpones
6859
- ))
6860
- : ((boundaryKeyPath = _boundaryNode),
6861
- (boundaryKeyPath[4] = fallbackReplayNode),
6862
- (boundaryKeyPath[5] = boundary.rootSegmentID));
6863
6935
  }
6864
6936
  -1 === segment.id &&
6865
6937
  (segment.id =
@@ -6886,15 +6958,15 @@
6886
6958
  }
6887
6959
  else if (
6888
6960
  ((boundary = trackedPostpones.workingMap),
6889
- (boundaryKeyPath = boundary.get(keyPath)),
6890
- void 0 === boundaryKeyPath)
6961
+ (boundaryNode = boundary.get(keyPath)),
6962
+ void 0 === boundaryNode)
6891
6963
  )
6892
6964
  (request = {}),
6893
- (boundaryKeyPath = [keyPath[1], keyPath[2], [], request]),
6894
- boundary.set(keyPath, boundaryKeyPath),
6895
- addToReplayParent(boundaryKeyPath, keyPath[0], trackedPostpones);
6896
- else if (((request = boundaryKeyPath[3]), null === request))
6897
- request = boundaryKeyPath[3] = {};
6965
+ (boundaryNode = [keyPath[1], keyPath[2], [], request]),
6966
+ boundary.set(keyPath, boundaryNode),
6967
+ addToReplayParent(boundaryNode, keyPath[0], trackedPostpones);
6968
+ else if (((request = boundaryNode[3]), null === request))
6969
+ request = boundaryNode[3] = {};
6898
6970
  else if ("number" === typeof request)
6899
6971
  throw Error(
6900
6972
  "It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
@@ -7219,10 +7291,6 @@
7219
7291
  if (6 === segment.status) return;
7220
7292
  segment.status = 3;
7221
7293
  }
7222
- var row = task.row;
7223
- null !== row &&
7224
- 0 === --row.pendingTasks &&
7225
- finishSuspenseListRow(request, row);
7226
7294
  var errorInfo = getThrownInfo(task.componentStack);
7227
7295
  if (null === boundary) {
7228
7296
  if (13 !== request.status && 14 !== request.status) {
@@ -7235,7 +7303,7 @@
7235
7303
  null !== boundary && null !== segment
7236
7304
  ? (logPostpone(request, error.message, errorInfo, null),
7237
7305
  trackPostpone(request, boundary, task, segment),
7238
- finishedTask(request, null, row, segment))
7306
+ finishedTask(request, null, task.row, segment))
7239
7307
  : ((task = Error(
7240
7308
  "The render was aborted with postpone when the shell is incomplete. Reason: " +
7241
7309
  error.message
@@ -7246,7 +7314,7 @@
7246
7314
  ? ((boundary = request.trackedPostpones),
7247
7315
  logRecoverableError(request, error, errorInfo, null),
7248
7316
  trackPostpone(request, boundary, task, segment),
7249
- finishedTask(request, null, row, segment))
7317
+ finishedTask(request, null, task.row, segment))
7250
7318
  : (logRecoverableError(request, error, errorInfo, null),
7251
7319
  fatalError(request, error, errorInfo, null));
7252
7320
  return;
@@ -7258,15 +7326,20 @@
7258
7326
  null !== error &&
7259
7327
  error.$$typeof === REACT_POSTPONE_TYPE
7260
7328
  ? (logPostpone(request, error.message, errorInfo, null),
7261
- (task = "POSTPONE"))
7262
- : (task = logRecoverableError(request, error, errorInfo, null)),
7329
+ (segment = "POSTPONE"))
7330
+ : (segment = logRecoverableError(
7331
+ request,
7332
+ error,
7333
+ errorInfo,
7334
+ null
7335
+ )),
7263
7336
  abortRemainingReplayNodes(
7264
7337
  request,
7265
7338
  null,
7266
7339
  boundary.nodes,
7267
7340
  boundary.slots,
7268
7341
  error,
7269
- task,
7342
+ segment,
7270
7343
  errorInfo,
7271
7344
  !0
7272
7345
  ));
@@ -7274,7 +7347,6 @@
7274
7347
  0 === request.pendingRootTasks && completeShell(request);
7275
7348
  }
7276
7349
  } else {
7277
- boundary.pendingTasks--;
7278
7350
  var _trackedPostpones2 = request.trackedPostpones;
7279
7351
  if (4 !== boundary.status) {
7280
7352
  if (null !== _trackedPostpones2 && null !== segment)
@@ -7289,7 +7361,7 @@
7289
7361
  return abortTask(fallbackTask, request, error);
7290
7362
  }),
7291
7363
  boundary.fallbackAbortableTasks.clear(),
7292
- finishedTask(request, boundary, row, segment)
7364
+ finishedTask(request, boundary, task.row, segment)
7293
7365
  );
7294
7366
  boundary.status = 4;
7295
7367
  if (
@@ -7300,26 +7372,35 @@
7300
7372
  logPostpone(request, error.message, errorInfo, null);
7301
7373
  if (null !== request.trackedPostpones && null !== segment) {
7302
7374
  trackPostpone(request, request.trackedPostpones, task, segment);
7303
- finishedTask(request, task.blockedBoundary, row, segment);
7375
+ finishedTask(request, task.blockedBoundary, task.row, segment);
7304
7376
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7305
7377
  return abortTask(fallbackTask, request, error);
7306
7378
  });
7307
7379
  boundary.fallbackAbortableTasks.clear();
7308
7380
  return;
7309
7381
  }
7310
- task = "POSTPONE";
7311
- } else task = logRecoverableError(request, error, errorInfo, null);
7382
+ segment = "POSTPONE";
7383
+ } else segment = logRecoverableError(request, error, errorInfo, null);
7312
7384
  boundary.status = 4;
7313
- encodeErrorForBoundary(boundary, task, error, errorInfo, !0);
7385
+ encodeErrorForBoundary(boundary, segment, error, errorInfo, !0);
7314
7386
  untrackBoundary(request, boundary);
7315
7387
  boundary.parentFlushed &&
7316
7388
  request.clientRenderedBoundaries.push(boundary);
7317
7389
  }
7390
+ boundary.pendingTasks--;
7391
+ errorInfo = boundary.row;
7392
+ null !== errorInfo &&
7393
+ 0 === --errorInfo.pendingTasks &&
7394
+ finishSuspenseListRow(request, errorInfo);
7318
7395
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7319
7396
  return abortTask(fallbackTask, request, error);
7320
7397
  });
7321
7398
  boundary.fallbackAbortableTasks.clear();
7322
7399
  }
7400
+ task = task.row;
7401
+ null !== task &&
7402
+ 0 === --task.pendingTasks &&
7403
+ finishSuspenseListRow(request, task);
7323
7404
  request.allPendingTasks--;
7324
7405
  0 === request.allPendingTasks && completeAll(request);
7325
7406
  }
@@ -7423,8 +7504,9 @@
7423
7504
  }
7424
7505
  function finishedTask(request, boundary, row, segment) {
7425
7506
  null !== row &&
7426
- 0 === --row.pendingTasks &&
7427
- finishSuspenseListRow(request, row);
7507
+ (0 === --row.pendingTasks
7508
+ ? finishSuspenseListRow(request, row)
7509
+ : row.together && tryToResolveTogetherRow(request, row));
7428
7510
  request.allPendingTasks--;
7429
7511
  if (null === boundary) {
7430
7512
  if (null !== segment && segment.parentFlushed) {
@@ -7436,39 +7518,72 @@
7436
7518
  }
7437
7519
  request.pendingRootTasks--;
7438
7520
  0 === request.pendingRootTasks && completeShell(request);
7439
- } else
7440
- boundary.pendingTasks--,
7441
- 4 !== boundary.status &&
7442
- (0 === boundary.pendingTasks
7443
- ? (0 === boundary.status && (boundary.status = 1),
7444
- null !== segment &&
7445
- segment.parentFlushed &&
7446
- 1 === segment.status &&
7447
- queueCompletedSegment(boundary, segment),
7448
- boundary.parentFlushed &&
7449
- request.completedBoundaries.push(boundary),
7450
- 1 === boundary.status &&
7451
- (500 < boundary.byteSize ||
7452
- (boundary.fallbackAbortableTasks.forEach(
7453
- abortTaskSoft,
7454
- request
7455
- ),
7456
- boundary.fallbackAbortableTasks.clear(),
7457
- (row = boundary.row),
7458
- null !== row &&
7459
- 0 === --row.pendingTasks &&
7460
- finishSuspenseListRow(request, row)),
7461
- 0 === request.pendingRootTasks &&
7462
- null === request.trackedPostpones &&
7463
- null !== boundary.contentPreamble &&
7464
- preparePreamble(request)))
7465
- : null !== segment &&
7466
- segment.parentFlushed &&
7467
- 1 === segment.status &&
7468
- (queueCompletedSegment(boundary, segment),
7469
- 1 === boundary.completedSegments.length &&
7470
- boundary.parentFlushed &&
7471
- request.partialBoundaries.push(boundary)));
7521
+ } else if ((boundary.pendingTasks--, 4 !== boundary.status))
7522
+ if (0 === boundary.pendingTasks)
7523
+ if (
7524
+ (0 === boundary.status && (boundary.status = 1),
7525
+ null !== segment &&
7526
+ segment.parentFlushed &&
7527
+ 1 === segment.status &&
7528
+ queueCompletedSegment(boundary, segment),
7529
+ boundary.parentFlushed &&
7530
+ request.completedBoundaries.push(boundary),
7531
+ 1 === boundary.status)
7532
+ )
7533
+ (row = boundary.row),
7534
+ null !== row &&
7535
+ hoistHoistables(row.hoistables, boundary.contentState),
7536
+ 500 < boundary.byteSize ||
7537
+ (boundary.fallbackAbortableTasks.forEach(
7538
+ abortTaskSoft,
7539
+ request
7540
+ ),
7541
+ boundary.fallbackAbortableTasks.clear(),
7542
+ null !== row &&
7543
+ 0 === --row.pendingTasks &&
7544
+ finishSuspenseListRow(request, row)),
7545
+ 0 === request.pendingRootTasks &&
7546
+ null === request.trackedPostpones &&
7547
+ null !== boundary.contentPreamble &&
7548
+ preparePreamble(request);
7549
+ else {
7550
+ if (
7551
+ 5 === boundary.status &&
7552
+ ((boundary = boundary.row), null !== boundary)
7553
+ ) {
7554
+ if (null !== request.trackedPostpones) {
7555
+ row = request.trackedPostpones;
7556
+ var postponedRow = boundary.next;
7557
+ if (
7558
+ null !== postponedRow &&
7559
+ ((segment = postponedRow.boundaries), null !== segment)
7560
+ )
7561
+ for (
7562
+ postponedRow.boundaries = null, postponedRow = 0;
7563
+ postponedRow < segment.length;
7564
+ postponedRow++
7565
+ ) {
7566
+ var postponedBoundary = segment[postponedRow];
7567
+ trackPostponedBoundary(request, row, postponedBoundary);
7568
+ finishedTask(request, postponedBoundary, null, null);
7569
+ }
7570
+ }
7571
+ 0 === --boundary.pendingTasks &&
7572
+ finishSuspenseListRow(request, boundary);
7573
+ }
7574
+ }
7575
+ else
7576
+ null !== segment &&
7577
+ segment.parentFlushed &&
7578
+ 1 === segment.status &&
7579
+ (queueCompletedSegment(boundary, segment),
7580
+ 1 === boundary.completedSegments.length &&
7581
+ boundary.parentFlushed &&
7582
+ request.partialBoundaries.push(boundary)),
7583
+ (boundary = boundary.row),
7584
+ null !== boundary &&
7585
+ boundary.together &&
7586
+ tryToResolveTogetherRow(request, boundary);
7472
7587
  0 === request.allPendingTasks && completeAll(request);
7473
7588
  }
7474
7589
  function performWork(request$jscomp$1) {
@@ -7701,30 +7816,36 @@
7701
7816
  errorInfo$jscomp$0,
7702
7817
  debugTask
7703
7818
  ));
7704
- null === boundary
7705
- ? fatalError(
7706
- request,
7707
- x$jscomp$0,
7708
- errorInfo$jscomp$0,
7709
- debugTask
7710
- )
7711
- : (boundary.pendingTasks--,
7712
- 4 !== boundary.status &&
7713
- ((boundary.status = 4),
7714
- encodeErrorForBoundary(
7715
- boundary,
7716
- prevTaskInDEV,
7717
- x$jscomp$0,
7718
- errorInfo$jscomp$0,
7719
- !1
7720
- ),
7721
- untrackBoundary(request, boundary),
7722
- boundary.parentFlushed &&
7723
- request.clientRenderedBoundaries.push(boundary),
7724
- 0 === request.pendingRootTasks &&
7725
- null === request.trackedPostpones &&
7726
- null !== boundary.contentPreamble &&
7727
- preparePreamble(request)));
7819
+ if (null === boundary)
7820
+ fatalError(
7821
+ request,
7822
+ x$jscomp$0,
7823
+ errorInfo$jscomp$0,
7824
+ debugTask
7825
+ );
7826
+ else if (
7827
+ (boundary.pendingTasks--, 4 !== boundary.status)
7828
+ ) {
7829
+ boundary.status = 4;
7830
+ encodeErrorForBoundary(
7831
+ boundary,
7832
+ prevTaskInDEV,
7833
+ x$jscomp$0,
7834
+ errorInfo$jscomp$0,
7835
+ !1
7836
+ );
7837
+ untrackBoundary(request, boundary);
7838
+ var boundaryRow = boundary.row;
7839
+ null !== boundaryRow &&
7840
+ 0 === --boundaryRow.pendingTasks &&
7841
+ finishSuspenseListRow(request, boundaryRow);
7842
+ boundary.parentFlushed &&
7843
+ request.clientRenderedBoundaries.push(boundary);
7844
+ 0 === request.pendingRootTasks &&
7845
+ null === request.trackedPostpones &&
7846
+ null !== boundary.contentPreamble &&
7847
+ preparePreamble(request);
7848
+ }
7728
7849
  0 === request.allPendingTasks && completeAll(request);
7729
7850
  }
7730
7851
  } finally {
@@ -7895,12 +8016,7 @@
7895
8016
  boundary.rootSegmentID
7896
8017
  ),
7897
8018
  hoistableState &&
7898
- ((boundary = boundary.fallbackState),
7899
- boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
7900
- boundary.stylesheets.forEach(
7901
- hoistStylesheetDependency,
7902
- hoistableState
7903
- )),
8019
+ hoistHoistables(hoistableState, boundary.fallbackState),
7904
8020
  flushSubtree(request, destination, segment, hoistableState),
7905
8021
  destination.push("\x3c!--/$--\x3e")
7906
8022
  );
@@ -7920,10 +8036,7 @@
7920
8036
  destination.push("\x3c!--/$--\x3e")
7921
8037
  );
7922
8038
  flushedByteSize += boundary.byteSize;
7923
- hoistableState &&
7924
- ((segment = boundary.contentState),
7925
- segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
7926
- segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
8039
+ hoistableState && hoistHoistables(hoistableState, boundary.contentState);
7927
8040
  segment = boundary.row;
7928
8041
  null !== segment &&
7929
8042
  500 < boundary.byteSize &&
@@ -7994,13 +8107,13 @@
7994
8107
  0 === (completedSegments.instructions & 2) &&
7995
8108
  ((completedSegments.instructions |= 2),
7996
8109
  destination.push(
7997
- '$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())};'
8110
+ '$RB=[];$RV=function(c){$RT=performance.now();for(var a=0;a<c.length;a+=2){var b=c[a],h=c[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var d=b.data;if("/$"===d||"/&"===d)if(0===g)break;else g--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||g++}d=b.nextSibling;e.removeChild(b);b=d}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}c.length=0};$RC=function(c,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),c=document.getElementById(c))c.previousSibling.data="$~",$RB.push(c,a),2===$RB.length&&setTimeout($RV.bind(null,$RB),("number"!==typeof $RT?0:$RT)+300-performance.now())};'
7998
8111
  )),
7999
8112
  requiresViewTransitions &&
8000
8113
  0 === (completedSegments.instructions & 256) &&
8001
8114
  ((completedSegments.instructions |= 256),
8002
8115
  destination.push(
8003
- "$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);"
8116
+ '$RV=function(w,f){function h(b,d){var k=b.getAttribute(d);k&&(d=b.style,l.push(b,d.viewTransitionName,d.viewTransitionClass),"auto"!==k&&(d.viewTransitionClass=k),(b=b.getAttribute("vt-name"))||(b="\\u00abT"+F++ +"\\u00bb"),d.viewTransitionName=b,x=!0)}var x=!1,F=0,l=[];try{var e=document.__reactViewTransition;if(e){e.finished.finally($RV.bind(null,f));return}var m=new Map;for(e=1;e<f.length;e+=2)for(var g=f[e].querySelectorAll("[vt-share]"),c=0;c<g.length;c++){var a=g[c];m.set(a.getAttribute("vt-name"),a)}for(g=0;g<f.length;g+=2){var y=f[g],t=y.parentNode;if(t){var r=t.getBoundingClientRect();if(r.left||r.top||r.width||r.height){a=y;for(e=0;a;){if(8===a.nodeType){var p=a.data;if("/$"===p)if(0===e)break;else e--;else"$"!==p&&"$?"!==p&&"$~"!==p&&"$!"!==p||e++}else if(1===a.nodeType){c=a;var z=c.getAttribute("vt-name"),u=m.get(z);h(c,u?"vt-share":"vt-exit");u&&(h(u,"vt-share"),m.set(z,null));var A=c.querySelectorAll("[vt-share]");for(c=0;c<A.length;c++){var B=A[c],C=B.getAttribute("vt-name"),D=m.get(C);\nD&&(h(B,"vt-share"),h(D,"vt-share"),m.set(C,null))}}a=a.nextSibling}for(var q=f[g+1].firstElementChild;q;)null!==m.get(q.getAttribute("vt-name"))&&h(q,"vt-enter"),q=q.nextElementSibling;a=t;do for(var n=a.firstElementChild;n;){var E=n.getAttribute("vt-update");E&&"none"!==E&&!l.includes(n)&&h(n,"vt-update");n=n.nextElementSibling}while((a=a.parentNode)&&1===a.nodeType&&"none"!==a.getAttribute("vt-update"))}}}if(x){var v=document.__reactViewTransition=document.startViewTransition({update:w.bind(null,\nf),types:[]});v.ready.finally(function(){for(var b=l.length-3;0<=b;b-=3){var d=l[b],k=d.style;k.viewTransitionName=l[b+1];k.viewTransitionClass=l[b+1];""===d.getAttribute("style")&&d.removeAttribute("style")}});v.finished.finally(function(){document.__reactViewTransition===v&&(document.__reactViewTransition=null)});$RB=[];return}}catch(b){}w(f)}.bind(null,$RV);'
8004
8117
  )),
8005
8118
  0 === (completedSegments.instructions & 8)
8006
8119
  ? ((completedSegments.instructions |= 8),
@@ -8011,13 +8124,13 @@
8011
8124
  : (0 === (completedSegments.instructions & 2) &&
8012
8125
  ((completedSegments.instructions |= 2),
8013
8126
  destination.push(
8014
- '$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())};'
8127
+ '$RB=[];$RV=function(c){$RT=performance.now();for(var a=0;a<c.length;a+=2){var b=c[a],h=c[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var d=b.data;if("/$"===d||"/&"===d)if(0===g)break;else g--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||g++}d=b.nextSibling;e.removeChild(b);b=d}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}c.length=0};$RC=function(c,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),c=document.getElementById(c))c.previousSibling.data="$~",$RB.push(c,a),2===$RB.length&&setTimeout($RV.bind(null,$RB),("number"!==typeof $RT?0:$RT)+300-performance.now())};'
8015
8128
  )),
8016
8129
  requiresViewTransitions &&
8017
8130
  0 === (completedSegments.instructions & 256) &&
8018
8131
  ((completedSegments.instructions |= 256),
8019
8132
  destination.push(
8020
- "$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);"
8133
+ '$RV=function(w,f){function h(b,d){var k=b.getAttribute(d);k&&(d=b.style,l.push(b,d.viewTransitionName,d.viewTransitionClass),"auto"!==k&&(d.viewTransitionClass=k),(b=b.getAttribute("vt-name"))||(b="\\u00abT"+F++ +"\\u00bb"),d.viewTransitionName=b,x=!0)}var x=!1,F=0,l=[];try{var e=document.__reactViewTransition;if(e){e.finished.finally($RV.bind(null,f));return}var m=new Map;for(e=1;e<f.length;e+=2)for(var g=f[e].querySelectorAll("[vt-share]"),c=0;c<g.length;c++){var a=g[c];m.set(a.getAttribute("vt-name"),a)}for(g=0;g<f.length;g+=2){var y=f[g],t=y.parentNode;if(t){var r=t.getBoundingClientRect();if(r.left||r.top||r.width||r.height){a=y;for(e=0;a;){if(8===a.nodeType){var p=a.data;if("/$"===p)if(0===e)break;else e--;else"$"!==p&&"$?"!==p&&"$~"!==p&&"$!"!==p||e++}else if(1===a.nodeType){c=a;var z=c.getAttribute("vt-name"),u=m.get(z);h(c,u?"vt-share":"vt-exit");u&&(h(u,"vt-share"),m.set(z,null));var A=c.querySelectorAll("[vt-share]");for(c=0;c<A.length;c++){var B=A[c],C=B.getAttribute("vt-name"),D=m.get(C);\nD&&(h(B,"vt-share"),h(D,"vt-share"),m.set(C,null))}}a=a.nextSibling}for(var q=f[g+1].firstElementChild;q;)null!==m.get(q.getAttribute("vt-name"))&&h(q,"vt-enter"),q=q.nextElementSibling;a=t;do for(var n=a.firstElementChild;n;){var E=n.getAttribute("vt-update");E&&"none"!==E&&!l.includes(n)&&h(n,"vt-update");n=n.nextElementSibling}while((a=a.parentNode)&&1===a.nodeType&&"none"!==a.getAttribute("vt-update"))}}}if(x){var v=document.__reactViewTransition=document.startViewTransition({update:w.bind(null,\nf),types:[]});v.ready.finally(function(){for(var b=l.length-3;0<=b;b-=3){var d=l[b],k=d.style;k.viewTransitionName=l[b+1];k.viewTransitionClass=l[b+1];""===d.getAttribute("style")&&d.removeAttribute("style")}});v.finished.finally(function(){document.__reactViewTransition===v&&(document.__reactViewTransition=null)});$RB=[];return}}catch(b){}w(f)}.bind(null,$RV);'
8021
8134
  )),
8022
8135
  destination.push('$RC("')))
8023
8136
  : requiresStyleInsertion
@@ -8381,6 +8494,17 @@
8381
8494
  break a;
8382
8495
  }
8383
8496
  completedSegments.splice(0, JSCompiler_inline_result);
8497
+ var row = boundary$jscomp$0.row;
8498
+ null !== row &&
8499
+ row.together &&
8500
+ 1 === boundary$jscomp$0.pendingTasks &&
8501
+ (1 === row.pendingTasks
8502
+ ? unblockSuspenseListRow(
8503
+ clientRenderedBoundaries,
8504
+ row,
8505
+ row.hoistables
8506
+ )
8507
+ : row.pendingTasks--);
8384
8508
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
8385
8509
  boundary,
8386
8510
  boundary$jscomp$0.contentState,
@@ -9513,5 +9637,5 @@
9513
9637
  });
9514
9638
  });
9515
9639
  };
9516
- exports.version = "19.2.0-experimental-c4676e72-20250520";
9640
+ exports.version = "19.2.0-experimental-8ce15b0f-20250522";
9517
9641
  })();