react-dom 19.0.0-rc-380f5d67-20241113 → 19.0.0-rc-e1ef8c95-20241115

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.
@@ -1010,28 +1010,40 @@
1010
1010
  var pendingLanes = root.pendingLanes;
1011
1011
  if (0 === pendingLanes) return 0;
1012
1012
  var nextLanes = 0,
1013
- suspendedLanes = root.suspendedLanes;
1014
- root = root.pingedLanes;
1013
+ suspendedLanes = root.suspendedLanes,
1014
+ pingedLanes = root.pingedLanes,
1015
+ warmLanes = root.warmLanes;
1016
+ root = 0 !== root.finishedLanes;
1015
1017
  var nonIdlePendingLanes = pendingLanes & 134217727;
1016
1018
  0 !== nonIdlePendingLanes
1017
1019
  ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
1018
1020
  0 !== pendingLanes
1019
1021
  ? (nextLanes = getHighestPriorityLanes(pendingLanes))
1020
- : ((root &= nonIdlePendingLanes),
1021
- 0 !== root && (nextLanes = getHighestPriorityLanes(root))))
1022
- : ((pendingLanes &= ~suspendedLanes),
1023
- 0 !== pendingLanes
1024
- ? (nextLanes = getHighestPriorityLanes(pendingLanes))
1025
- : 0 !== root && (nextLanes = getHighestPriorityLanes(root)));
1022
+ : ((pingedLanes &= nonIdlePendingLanes),
1023
+ 0 !== pingedLanes
1024
+ ? (nextLanes = getHighestPriorityLanes(pingedLanes))
1025
+ : root ||
1026
+ ((warmLanes = nonIdlePendingLanes & ~warmLanes),
1027
+ 0 !== warmLanes &&
1028
+ (nextLanes = getHighestPriorityLanes(warmLanes)))))
1029
+ : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
1030
+ 0 !== nonIdlePendingLanes
1031
+ ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
1032
+ : 0 !== pingedLanes
1033
+ ? (nextLanes = getHighestPriorityLanes(pingedLanes))
1034
+ : root ||
1035
+ ((warmLanes = pendingLanes & ~warmLanes),
1036
+ 0 !== warmLanes &&
1037
+ (nextLanes = getHighestPriorityLanes(warmLanes))));
1026
1038
  return 0 === nextLanes
1027
1039
  ? 0
1028
1040
  : 0 !== wipLanes &&
1029
1041
  wipLanes !== nextLanes &&
1030
1042
  0 === (wipLanes & suspendedLanes) &&
1031
1043
  ((suspendedLanes = nextLanes & -nextLanes),
1032
- (root = wipLanes & -wipLanes),
1033
- suspendedLanes >= root ||
1034
- (32 === suspendedLanes && 0 !== (root & 4194176)))
1044
+ (warmLanes = wipLanes & -wipLanes),
1045
+ suspendedLanes >= warmLanes ||
1046
+ (32 === suspendedLanes && 0 !== (warmLanes & 4194176)))
1035
1047
  ? wipLanes
1036
1048
  : nextLanes;
1037
1049
  }
@@ -1116,7 +1128,9 @@
1116
1128
  root,
1117
1129
  finishedLanes,
1118
1130
  remainingLanes,
1119
- spawnedLane
1131
+ spawnedLane,
1132
+ updatedLanes,
1133
+ suspendedRetryLanes
1120
1134
  ) {
1121
1135
  var previouslyPendingLanes = root.pendingLanes;
1122
1136
  root.pendingLanes = remainingLanes;
@@ -1127,17 +1141,17 @@
1127
1141
  root.entangledLanes &= remainingLanes;
1128
1142
  root.errorRecoveryDisabledLanes &= remainingLanes;
1129
1143
  root.shellSuspendCounter = 0;
1130
- finishedLanes = root.entanglements;
1131
- var expirationTimes = root.expirationTimes,
1144
+ var entanglements = root.entanglements,
1145
+ expirationTimes = root.expirationTimes,
1132
1146
  hiddenUpdates = root.hiddenUpdates;
1133
1147
  for (
1134
1148
  remainingLanes = previouslyPendingLanes & ~remainingLanes;
1135
1149
  0 < remainingLanes;
1136
1150
 
1137
1151
  ) {
1138
- var index = 31 - clz32(remainingLanes);
1139
- previouslyPendingLanes = 1 << index;
1140
- finishedLanes[index] = 0;
1152
+ var index = 31 - clz32(remainingLanes),
1153
+ lane = 1 << index;
1154
+ entanglements[index] = 0;
1141
1155
  expirationTimes[index] = -1;
1142
1156
  var hiddenUpdatesForLane = hiddenUpdates[index];
1143
1157
  if (null !== hiddenUpdatesForLane)
@@ -1149,9 +1163,14 @@
1149
1163
  var update = hiddenUpdatesForLane[index];
1150
1164
  null !== update && (update.lane &= -536870913);
1151
1165
  }
1152
- remainingLanes &= ~previouslyPendingLanes;
1166
+ remainingLanes &= ~lane;
1153
1167
  }
1154
1168
  0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0);
1169
+ 0 !== suspendedRetryLanes &&
1170
+ 0 === updatedLanes &&
1171
+ 0 !== root.tag &&
1172
+ (root.suspendedLanes |=
1173
+ suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes));
1155
1174
  }
1156
1175
  function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) {
1157
1176
  root.pendingLanes |= spawnedLane;
@@ -8664,32 +8683,32 @@
8664
8683
  return current;
8665
8684
  }
8666
8685
  function updateSuspenseComponent(current, workInProgress, renderLanes) {
8667
- var JSCompiler_object_inline_digest_2315;
8668
- var JSCompiler_object_inline_stack_2316 = workInProgress.pendingProps;
8686
+ var JSCompiler_object_inline_digest_2322;
8687
+ var JSCompiler_object_inline_stack_2323 = workInProgress.pendingProps;
8669
8688
  shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
8670
- var JSCompiler_object_inline_componentStack_2317 = !1;
8689
+ var JSCompiler_object_inline_componentStack_2324 = !1;
8671
8690
  var didSuspend = 0 !== (workInProgress.flags & 128);
8672
- (JSCompiler_object_inline_digest_2315 = didSuspend) ||
8673
- (JSCompiler_object_inline_digest_2315 =
8691
+ (JSCompiler_object_inline_digest_2322 = didSuspend) ||
8692
+ (JSCompiler_object_inline_digest_2322 =
8674
8693
  null !== current && null === current.memoizedState
8675
8694
  ? !1
8676
8695
  : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
8677
- JSCompiler_object_inline_digest_2315 &&
8678
- ((JSCompiler_object_inline_componentStack_2317 = !0),
8696
+ JSCompiler_object_inline_digest_2322 &&
8697
+ ((JSCompiler_object_inline_componentStack_2324 = !0),
8679
8698
  (workInProgress.flags &= -129));
8680
- JSCompiler_object_inline_digest_2315 = 0 !== (workInProgress.flags & 32);
8699
+ JSCompiler_object_inline_digest_2322 = 0 !== (workInProgress.flags & 32);
8681
8700
  workInProgress.flags &= -33;
8682
8701
  if (null === current) {
8683
8702
  if (isHydrating) {
8684
- JSCompiler_object_inline_componentStack_2317
8703
+ JSCompiler_object_inline_componentStack_2324
8685
8704
  ? pushPrimaryTreeSuspenseHandler(workInProgress)
8686
8705
  : reuseSuspenseHandlerOnStack(workInProgress);
8687
8706
  if (isHydrating) {
8688
- var JSCompiler_object_inline_message_2314 = nextHydratableInstance;
8707
+ var JSCompiler_object_inline_message_2321 = nextHydratableInstance;
8689
8708
  var JSCompiler_temp;
8690
- if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2314)) {
8709
+ if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2321)) {
8691
8710
  c: {
8692
- var instance = JSCompiler_object_inline_message_2314;
8711
+ var instance = JSCompiler_object_inline_message_2321;
8693
8712
  for (
8694
8713
  JSCompiler_temp = rootOrSingletonContext;
8695
8714
  8 !== instance.nodeType;
@@ -8730,19 +8749,19 @@
8730
8749
  JSCompiler_temp &&
8731
8750
  (warnNonHydratedInstance(
8732
8751
  workInProgress,
8733
- JSCompiler_object_inline_message_2314
8752
+ JSCompiler_object_inline_message_2321
8734
8753
  ),
8735
8754
  throwOnHydrationMismatch(workInProgress));
8736
8755
  }
8737
- JSCompiler_object_inline_message_2314 = workInProgress.memoizedState;
8756
+ JSCompiler_object_inline_message_2321 = workInProgress.memoizedState;
8738
8757
  if (
8739
- null !== JSCompiler_object_inline_message_2314 &&
8740
- ((JSCompiler_object_inline_message_2314 =
8741
- JSCompiler_object_inline_message_2314.dehydrated),
8742
- null !== JSCompiler_object_inline_message_2314)
8758
+ null !== JSCompiler_object_inline_message_2321 &&
8759
+ ((JSCompiler_object_inline_message_2321 =
8760
+ JSCompiler_object_inline_message_2321.dehydrated),
8761
+ null !== JSCompiler_object_inline_message_2321)
8743
8762
  )
8744
8763
  return (
8745
- JSCompiler_object_inline_message_2314.data ===
8764
+ JSCompiler_object_inline_message_2321.data ===
8746
8765
  SUSPENSE_FALLBACK_START_DATA
8747
8766
  ? (workInProgress.lanes = 16)
8748
8767
  : (workInProgress.lanes = 536870912),
@@ -8750,58 +8769,58 @@
8750
8769
  );
8751
8770
  popSuspenseHandler(workInProgress);
8752
8771
  }
8753
- JSCompiler_object_inline_message_2314 =
8754
- JSCompiler_object_inline_stack_2316.children;
8755
- JSCompiler_object_inline_stack_2316 =
8756
- JSCompiler_object_inline_stack_2316.fallback;
8757
- if (JSCompiler_object_inline_componentStack_2317)
8772
+ JSCompiler_object_inline_message_2321 =
8773
+ JSCompiler_object_inline_stack_2323.children;
8774
+ JSCompiler_object_inline_stack_2323 =
8775
+ JSCompiler_object_inline_stack_2323.fallback;
8776
+ if (JSCompiler_object_inline_componentStack_2324)
8758
8777
  return (
8759
8778
  reuseSuspenseHandlerOnStack(workInProgress),
8760
- (JSCompiler_object_inline_componentStack_2317 =
8779
+ (JSCompiler_object_inline_componentStack_2324 =
8761
8780
  workInProgress.mode),
8762
- (JSCompiler_object_inline_message_2314 =
8781
+ (JSCompiler_object_inline_message_2321 =
8763
8782
  mountWorkInProgressOffscreenFiber(
8764
8783
  {
8765
8784
  mode: "hidden",
8766
- children: JSCompiler_object_inline_message_2314
8785
+ children: JSCompiler_object_inline_message_2321
8767
8786
  },
8768
- JSCompiler_object_inline_componentStack_2317
8787
+ JSCompiler_object_inline_componentStack_2324
8769
8788
  )),
8770
- (JSCompiler_object_inline_stack_2316 = createFiberFromFragment(
8771
- JSCompiler_object_inline_stack_2316,
8772
- JSCompiler_object_inline_componentStack_2317,
8789
+ (JSCompiler_object_inline_stack_2323 = createFiberFromFragment(
8790
+ JSCompiler_object_inline_stack_2323,
8791
+ JSCompiler_object_inline_componentStack_2324,
8773
8792
  renderLanes,
8774
8793
  null
8775
8794
  )),
8776
- (JSCompiler_object_inline_message_2314.return = workInProgress),
8777
- (JSCompiler_object_inline_stack_2316.return = workInProgress),
8778
- (JSCompiler_object_inline_message_2314.sibling =
8779
- JSCompiler_object_inline_stack_2316),
8780
- (workInProgress.child = JSCompiler_object_inline_message_2314),
8781
- (JSCompiler_object_inline_componentStack_2317 =
8795
+ (JSCompiler_object_inline_message_2321.return = workInProgress),
8796
+ (JSCompiler_object_inline_stack_2323.return = workInProgress),
8797
+ (JSCompiler_object_inline_message_2321.sibling =
8798
+ JSCompiler_object_inline_stack_2323),
8799
+ (workInProgress.child = JSCompiler_object_inline_message_2321),
8800
+ (JSCompiler_object_inline_componentStack_2324 =
8782
8801
  workInProgress.child),
8783
- (JSCompiler_object_inline_componentStack_2317.memoizedState =
8802
+ (JSCompiler_object_inline_componentStack_2324.memoizedState =
8784
8803
  mountSuspenseOffscreenState(renderLanes)),
8785
- (JSCompiler_object_inline_componentStack_2317.childLanes =
8804
+ (JSCompiler_object_inline_componentStack_2324.childLanes =
8786
8805
  getRemainingWorkInPrimaryTree(
8787
8806
  current,
8788
- JSCompiler_object_inline_digest_2315,
8807
+ JSCompiler_object_inline_digest_2322,
8789
8808
  renderLanes
8790
8809
  )),
8791
8810
  (workInProgress.memoizedState = SUSPENDED_MARKER),
8792
- JSCompiler_object_inline_stack_2316
8811
+ JSCompiler_object_inline_stack_2323
8793
8812
  );
8794
8813
  pushPrimaryTreeSuspenseHandler(workInProgress);
8795
8814
  return mountSuspensePrimaryChildren(
8796
8815
  workInProgress,
8797
- JSCompiler_object_inline_message_2314
8816
+ JSCompiler_object_inline_message_2321
8798
8817
  );
8799
8818
  }
8800
8819
  var prevState = current.memoizedState;
8801
8820
  if (
8802
8821
  null !== prevState &&
8803
- ((JSCompiler_object_inline_message_2314 = prevState.dehydrated),
8804
- null !== JSCompiler_object_inline_message_2314)
8822
+ ((JSCompiler_object_inline_message_2321 = prevState.dehydrated),
8823
+ null !== JSCompiler_object_inline_message_2321)
8805
8824
  ) {
8806
8825
  if (didSuspend)
8807
8826
  workInProgress.flags & 256
@@ -8818,95 +8837,95 @@
8818
8837
  (workInProgress.flags |= 128),
8819
8838
  (workInProgress = null))
8820
8839
  : (reuseSuspenseHandlerOnStack(workInProgress),
8821
- (JSCompiler_object_inline_componentStack_2317 =
8822
- JSCompiler_object_inline_stack_2316.fallback),
8823
- (JSCompiler_object_inline_message_2314 = workInProgress.mode),
8824
- (JSCompiler_object_inline_stack_2316 =
8840
+ (JSCompiler_object_inline_componentStack_2324 =
8841
+ JSCompiler_object_inline_stack_2323.fallback),
8842
+ (JSCompiler_object_inline_message_2321 = workInProgress.mode),
8843
+ (JSCompiler_object_inline_stack_2323 =
8825
8844
  mountWorkInProgressOffscreenFiber(
8826
8845
  {
8827
8846
  mode: "visible",
8828
- children: JSCompiler_object_inline_stack_2316.children
8847
+ children: JSCompiler_object_inline_stack_2323.children
8829
8848
  },
8830
- JSCompiler_object_inline_message_2314
8849
+ JSCompiler_object_inline_message_2321
8831
8850
  )),
8832
- (JSCompiler_object_inline_componentStack_2317 =
8851
+ (JSCompiler_object_inline_componentStack_2324 =
8833
8852
  createFiberFromFragment(
8834
- JSCompiler_object_inline_componentStack_2317,
8835
- JSCompiler_object_inline_message_2314,
8853
+ JSCompiler_object_inline_componentStack_2324,
8854
+ JSCompiler_object_inline_message_2321,
8836
8855
  renderLanes,
8837
8856
  null
8838
8857
  )),
8839
- (JSCompiler_object_inline_componentStack_2317.flags |= 2),
8840
- (JSCompiler_object_inline_stack_2316.return = workInProgress),
8841
- (JSCompiler_object_inline_componentStack_2317.return =
8858
+ (JSCompiler_object_inline_componentStack_2324.flags |= 2),
8859
+ (JSCompiler_object_inline_stack_2323.return = workInProgress),
8860
+ (JSCompiler_object_inline_componentStack_2324.return =
8842
8861
  workInProgress),
8843
- (JSCompiler_object_inline_stack_2316.sibling =
8844
- JSCompiler_object_inline_componentStack_2317),
8845
- (workInProgress.child = JSCompiler_object_inline_stack_2316),
8862
+ (JSCompiler_object_inline_stack_2323.sibling =
8863
+ JSCompiler_object_inline_componentStack_2324),
8864
+ (workInProgress.child = JSCompiler_object_inline_stack_2323),
8846
8865
  reconcileChildFibers(
8847
8866
  workInProgress,
8848
8867
  current.child,
8849
8868
  null,
8850
8869
  renderLanes
8851
8870
  ),
8852
- (JSCompiler_object_inline_stack_2316 = workInProgress.child),
8853
- (JSCompiler_object_inline_stack_2316.memoizedState =
8871
+ (JSCompiler_object_inline_stack_2323 = workInProgress.child),
8872
+ (JSCompiler_object_inline_stack_2323.memoizedState =
8854
8873
  mountSuspenseOffscreenState(renderLanes)),
8855
- (JSCompiler_object_inline_stack_2316.childLanes =
8874
+ (JSCompiler_object_inline_stack_2323.childLanes =
8856
8875
  getRemainingWorkInPrimaryTree(
8857
8876
  current,
8858
- JSCompiler_object_inline_digest_2315,
8877
+ JSCompiler_object_inline_digest_2322,
8859
8878
  renderLanes
8860
8879
  )),
8861
8880
  (workInProgress.memoizedState = SUSPENDED_MARKER),
8862
8881
  (workInProgress =
8863
- JSCompiler_object_inline_componentStack_2317));
8882
+ JSCompiler_object_inline_componentStack_2324));
8864
8883
  else if (
8865
8884
  (pushPrimaryTreeSuspenseHandler(workInProgress),
8866
8885
  isHydrating &&
8867
8886
  console.error(
8868
8887
  "We should not be hydrating here. This is a bug in React. Please file a bug."
8869
8888
  ),
8870
- JSCompiler_object_inline_message_2314.data ===
8889
+ JSCompiler_object_inline_message_2321.data ===
8871
8890
  SUSPENSE_FALLBACK_START_DATA)
8872
8891
  ) {
8873
- JSCompiler_object_inline_digest_2315 =
8874
- JSCompiler_object_inline_message_2314.nextSibling &&
8875
- JSCompiler_object_inline_message_2314.nextSibling.dataset;
8876
- if (JSCompiler_object_inline_digest_2315) {
8877
- JSCompiler_temp = JSCompiler_object_inline_digest_2315.dgst;
8878
- var message = JSCompiler_object_inline_digest_2315.msg;
8879
- instance = JSCompiler_object_inline_digest_2315.stck;
8880
- var componentStack = JSCompiler_object_inline_digest_2315.cstck;
8892
+ JSCompiler_object_inline_digest_2322 =
8893
+ JSCompiler_object_inline_message_2321.nextSibling &&
8894
+ JSCompiler_object_inline_message_2321.nextSibling.dataset;
8895
+ if (JSCompiler_object_inline_digest_2322) {
8896
+ JSCompiler_temp = JSCompiler_object_inline_digest_2322.dgst;
8897
+ var message = JSCompiler_object_inline_digest_2322.msg;
8898
+ instance = JSCompiler_object_inline_digest_2322.stck;
8899
+ var componentStack = JSCompiler_object_inline_digest_2322.cstck;
8881
8900
  }
8882
- JSCompiler_object_inline_message_2314 = message;
8883
- JSCompiler_object_inline_digest_2315 = JSCompiler_temp;
8884
- JSCompiler_object_inline_stack_2316 = instance;
8885
- JSCompiler_temp = JSCompiler_object_inline_componentStack_2317 =
8901
+ JSCompiler_object_inline_message_2321 = message;
8902
+ JSCompiler_object_inline_digest_2322 = JSCompiler_temp;
8903
+ JSCompiler_object_inline_stack_2323 = instance;
8904
+ JSCompiler_temp = JSCompiler_object_inline_componentStack_2324 =
8886
8905
  componentStack;
8887
- JSCompiler_object_inline_componentStack_2317 =
8888
- JSCompiler_object_inline_message_2314
8889
- ? Error(JSCompiler_object_inline_message_2314)
8906
+ JSCompiler_object_inline_componentStack_2324 =
8907
+ JSCompiler_object_inline_message_2321
8908
+ ? Error(JSCompiler_object_inline_message_2321)
8890
8909
  : Error(
8891
8910
  "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
8892
8911
  );
8893
- JSCompiler_object_inline_componentStack_2317.stack =
8894
- JSCompiler_object_inline_stack_2316 || "";
8895
- JSCompiler_object_inline_componentStack_2317.digest =
8896
- JSCompiler_object_inline_digest_2315;
8897
- JSCompiler_object_inline_digest_2315 =
8912
+ JSCompiler_object_inline_componentStack_2324.stack =
8913
+ JSCompiler_object_inline_stack_2323 || "";
8914
+ JSCompiler_object_inline_componentStack_2324.digest =
8915
+ JSCompiler_object_inline_digest_2322;
8916
+ JSCompiler_object_inline_digest_2322 =
8898
8917
  void 0 === JSCompiler_temp ? null : JSCompiler_temp;
8899
- JSCompiler_object_inline_stack_2316 = {
8900
- value: JSCompiler_object_inline_componentStack_2317,
8918
+ JSCompiler_object_inline_stack_2323 = {
8919
+ value: JSCompiler_object_inline_componentStack_2324,
8901
8920
  source: null,
8902
- stack: JSCompiler_object_inline_digest_2315
8921
+ stack: JSCompiler_object_inline_digest_2322
8903
8922
  };
8904
- "string" === typeof JSCompiler_object_inline_digest_2315 &&
8923
+ "string" === typeof JSCompiler_object_inline_digest_2322 &&
8905
8924
  CapturedStacks.set(
8906
- JSCompiler_object_inline_componentStack_2317,
8907
- JSCompiler_object_inline_stack_2316
8925
+ JSCompiler_object_inline_componentStack_2324,
8926
+ JSCompiler_object_inline_stack_2323
8908
8927
  );
8909
- queueHydrationError(JSCompiler_object_inline_stack_2316);
8928
+ queueHydrationError(JSCompiler_object_inline_stack_2323);
8910
8929
  workInProgress = retrySuspenseComponentWithoutHydrating(
8911
8930
  current,
8912
8931
  workInProgress,
@@ -8920,25 +8939,25 @@
8920
8939
  renderLanes,
8921
8940
  !1
8922
8941
  ),
8923
- (JSCompiler_object_inline_digest_2315 =
8942
+ (JSCompiler_object_inline_digest_2322 =
8924
8943
  0 !== (renderLanes & current.childLanes)),
8925
- didReceiveUpdate || JSCompiler_object_inline_digest_2315)
8944
+ didReceiveUpdate || JSCompiler_object_inline_digest_2322)
8926
8945
  ) {
8927
- JSCompiler_object_inline_digest_2315 = workInProgressRoot;
8928
- if (null !== JSCompiler_object_inline_digest_2315) {
8929
- JSCompiler_object_inline_stack_2316 = renderLanes & -renderLanes;
8930
- if (0 !== (JSCompiler_object_inline_stack_2316 & 42))
8931
- JSCompiler_object_inline_stack_2316 = 1;
8946
+ JSCompiler_object_inline_digest_2322 = workInProgressRoot;
8947
+ if (null !== JSCompiler_object_inline_digest_2322) {
8948
+ JSCompiler_object_inline_stack_2323 = renderLanes & -renderLanes;
8949
+ if (0 !== (JSCompiler_object_inline_stack_2323 & 42))
8950
+ JSCompiler_object_inline_stack_2323 = 1;
8932
8951
  else
8933
- switch (JSCompiler_object_inline_stack_2316) {
8952
+ switch (JSCompiler_object_inline_stack_2323) {
8934
8953
  case 2:
8935
- JSCompiler_object_inline_stack_2316 = 1;
8954
+ JSCompiler_object_inline_stack_2323 = 1;
8936
8955
  break;
8937
8956
  case 8:
8938
- JSCompiler_object_inline_stack_2316 = 4;
8957
+ JSCompiler_object_inline_stack_2323 = 4;
8939
8958
  break;
8940
8959
  case 32:
8941
- JSCompiler_object_inline_stack_2316 = 16;
8960
+ JSCompiler_object_inline_stack_2323 = 16;
8942
8961
  break;
8943
8962
  case 128:
8944
8963
  case 256:
@@ -8959,40 +8978,40 @@
8959
8978
  case 8388608:
8960
8979
  case 16777216:
8961
8980
  case 33554432:
8962
- JSCompiler_object_inline_stack_2316 = 64;
8981
+ JSCompiler_object_inline_stack_2323 = 64;
8963
8982
  break;
8964
8983
  case 268435456:
8965
- JSCompiler_object_inline_stack_2316 = 134217728;
8984
+ JSCompiler_object_inline_stack_2323 = 134217728;
8966
8985
  break;
8967
8986
  default:
8968
- JSCompiler_object_inline_stack_2316 = 0;
8987
+ JSCompiler_object_inline_stack_2323 = 0;
8969
8988
  }
8970
- JSCompiler_object_inline_stack_2316 =
8989
+ JSCompiler_object_inline_stack_2323 =
8971
8990
  0 !==
8972
- (JSCompiler_object_inline_stack_2316 &
8973
- (JSCompiler_object_inline_digest_2315.suspendedLanes |
8991
+ (JSCompiler_object_inline_stack_2323 &
8992
+ (JSCompiler_object_inline_digest_2322.suspendedLanes |
8974
8993
  renderLanes))
8975
8994
  ? 0
8976
- : JSCompiler_object_inline_stack_2316;
8995
+ : JSCompiler_object_inline_stack_2323;
8977
8996
  if (
8978
- 0 !== JSCompiler_object_inline_stack_2316 &&
8979
- JSCompiler_object_inline_stack_2316 !== prevState.retryLane
8997
+ 0 !== JSCompiler_object_inline_stack_2323 &&
8998
+ JSCompiler_object_inline_stack_2323 !== prevState.retryLane
8980
8999
  )
8981
9000
  throw (
8982
- ((prevState.retryLane = JSCompiler_object_inline_stack_2316),
9001
+ ((prevState.retryLane = JSCompiler_object_inline_stack_2323),
8983
9002
  enqueueConcurrentRenderForLane(
8984
9003
  current,
8985
- JSCompiler_object_inline_stack_2316
9004
+ JSCompiler_object_inline_stack_2323
8986
9005
  ),
8987
9006
  scheduleUpdateOnFiber(
8988
- JSCompiler_object_inline_digest_2315,
9007
+ JSCompiler_object_inline_digest_2322,
8989
9008
  current,
8990
- JSCompiler_object_inline_stack_2316
9009
+ JSCompiler_object_inline_stack_2323
8991
9010
  ),
8992
9011
  SelectiveHydrationException)
8993
9012
  );
8994
9013
  }
8995
- JSCompiler_object_inline_message_2314.data ===
9014
+ JSCompiler_object_inline_message_2321.data ===
8996
9015
  SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
8997
9016
  workInProgress = retrySuspenseComponentWithoutHydrating(
8998
9017
  current,
@@ -9000,7 +9019,7 @@
9000
9019
  renderLanes
9001
9020
  );
9002
9021
  } else
9003
- JSCompiler_object_inline_message_2314.data ===
9022
+ JSCompiler_object_inline_message_2321.data ===
9004
9023
  SUSPENSE_PENDING_START_DATA
9005
9024
  ? ((workInProgress.flags |= 128),
9006
9025
  (workInProgress.child = current.child),
@@ -9008,12 +9027,12 @@
9008
9027
  null,
9009
9028
  current
9010
9029
  )),
9011
- (JSCompiler_object_inline_message_2314._reactRetry =
9030
+ (JSCompiler_object_inline_message_2321._reactRetry =
9012
9031
  workInProgress),
9013
9032
  (workInProgress = null))
9014
9033
  : ((current = prevState.treeContext),
9015
9034
  (nextHydratableInstance = getNextHydratable(
9016
- JSCompiler_object_inline_message_2314.nextSibling
9035
+ JSCompiler_object_inline_message_2321.nextSibling
9017
9036
  )),
9018
9037
  (hydrationParentFiber = workInProgress),
9019
9038
  (isHydrating = !0),
@@ -9031,57 +9050,57 @@
9031
9050
  (treeContextProvider = workInProgress)),
9032
9051
  (workInProgress = mountSuspensePrimaryChildren(
9033
9052
  workInProgress,
9034
- JSCompiler_object_inline_stack_2316.children
9053
+ JSCompiler_object_inline_stack_2323.children
9035
9054
  )),
9036
9055
  (workInProgress.flags |= 4096));
9037
9056
  return workInProgress;
9038
9057
  }
9039
- if (JSCompiler_object_inline_componentStack_2317)
9058
+ if (JSCompiler_object_inline_componentStack_2324)
9040
9059
  return (
9041
9060
  reuseSuspenseHandlerOnStack(workInProgress),
9042
- (JSCompiler_object_inline_componentStack_2317 =
9043
- JSCompiler_object_inline_stack_2316.fallback),
9044
- (JSCompiler_object_inline_message_2314 = workInProgress.mode),
9061
+ (JSCompiler_object_inline_componentStack_2324 =
9062
+ JSCompiler_object_inline_stack_2323.fallback),
9063
+ (JSCompiler_object_inline_message_2321 = workInProgress.mode),
9045
9064
  (JSCompiler_temp = current.child),
9046
9065
  (instance = JSCompiler_temp.sibling),
9047
- (JSCompiler_object_inline_stack_2316 = createWorkInProgress(
9066
+ (JSCompiler_object_inline_stack_2323 = createWorkInProgress(
9048
9067
  JSCompiler_temp,
9049
9068
  {
9050
9069
  mode: "hidden",
9051
- children: JSCompiler_object_inline_stack_2316.children
9070
+ children: JSCompiler_object_inline_stack_2323.children
9052
9071
  }
9053
9072
  )),
9054
- (JSCompiler_object_inline_stack_2316.subtreeFlags =
9073
+ (JSCompiler_object_inline_stack_2323.subtreeFlags =
9055
9074
  JSCompiler_temp.subtreeFlags & 31457280),
9056
9075
  null !== instance
9057
- ? (JSCompiler_object_inline_componentStack_2317 =
9076
+ ? (JSCompiler_object_inline_componentStack_2324 =
9058
9077
  createWorkInProgress(
9059
9078
  instance,
9060
- JSCompiler_object_inline_componentStack_2317
9079
+ JSCompiler_object_inline_componentStack_2324
9061
9080
  ))
9062
- : ((JSCompiler_object_inline_componentStack_2317 =
9081
+ : ((JSCompiler_object_inline_componentStack_2324 =
9063
9082
  createFiberFromFragment(
9064
- JSCompiler_object_inline_componentStack_2317,
9065
- JSCompiler_object_inline_message_2314,
9083
+ JSCompiler_object_inline_componentStack_2324,
9084
+ JSCompiler_object_inline_message_2321,
9066
9085
  renderLanes,
9067
9086
  null
9068
9087
  )),
9069
- (JSCompiler_object_inline_componentStack_2317.flags |= 2)),
9070
- (JSCompiler_object_inline_componentStack_2317.return =
9088
+ (JSCompiler_object_inline_componentStack_2324.flags |= 2)),
9089
+ (JSCompiler_object_inline_componentStack_2324.return =
9071
9090
  workInProgress),
9072
- (JSCompiler_object_inline_stack_2316.return = workInProgress),
9073
- (JSCompiler_object_inline_stack_2316.sibling =
9074
- JSCompiler_object_inline_componentStack_2317),
9075
- (workInProgress.child = JSCompiler_object_inline_stack_2316),
9076
- (JSCompiler_object_inline_stack_2316 =
9077
- JSCompiler_object_inline_componentStack_2317),
9078
- (JSCompiler_object_inline_componentStack_2317 = workInProgress.child),
9079
- (JSCompiler_object_inline_message_2314 = current.child.memoizedState),
9080
- null === JSCompiler_object_inline_message_2314
9081
- ? (JSCompiler_object_inline_message_2314 =
9091
+ (JSCompiler_object_inline_stack_2323.return = workInProgress),
9092
+ (JSCompiler_object_inline_stack_2323.sibling =
9093
+ JSCompiler_object_inline_componentStack_2324),
9094
+ (workInProgress.child = JSCompiler_object_inline_stack_2323),
9095
+ (JSCompiler_object_inline_stack_2323 =
9096
+ JSCompiler_object_inline_componentStack_2324),
9097
+ (JSCompiler_object_inline_componentStack_2324 = workInProgress.child),
9098
+ (JSCompiler_object_inline_message_2321 = current.child.memoizedState),
9099
+ null === JSCompiler_object_inline_message_2321
9100
+ ? (JSCompiler_object_inline_message_2321 =
9082
9101
  mountSuspenseOffscreenState(renderLanes))
9083
9102
  : ((JSCompiler_temp =
9084
- JSCompiler_object_inline_message_2314.cachePool),
9103
+ JSCompiler_object_inline_message_2321.cachePool),
9085
9104
  null !== JSCompiler_temp
9086
9105
  ? ((instance = CacheContext._currentValue),
9087
9106
  (JSCompiler_temp =
@@ -9089,37 +9108,37 @@
9089
9108
  ? { parent: instance, pool: instance }
9090
9109
  : JSCompiler_temp))
9091
9110
  : (JSCompiler_temp = getSuspendedCache()),
9092
- (JSCompiler_object_inline_message_2314 = {
9111
+ (JSCompiler_object_inline_message_2321 = {
9093
9112
  baseLanes:
9094
- JSCompiler_object_inline_message_2314.baseLanes | renderLanes,
9113
+ JSCompiler_object_inline_message_2321.baseLanes | renderLanes,
9095
9114
  cachePool: JSCompiler_temp
9096
9115
  })),
9097
- (JSCompiler_object_inline_componentStack_2317.memoizedState =
9098
- JSCompiler_object_inline_message_2314),
9099
- (JSCompiler_object_inline_componentStack_2317.childLanes =
9116
+ (JSCompiler_object_inline_componentStack_2324.memoizedState =
9117
+ JSCompiler_object_inline_message_2321),
9118
+ (JSCompiler_object_inline_componentStack_2324.childLanes =
9100
9119
  getRemainingWorkInPrimaryTree(
9101
9120
  current,
9102
- JSCompiler_object_inline_digest_2315,
9121
+ JSCompiler_object_inline_digest_2322,
9103
9122
  renderLanes
9104
9123
  )),
9105
9124
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9106
- JSCompiler_object_inline_stack_2316
9125
+ JSCompiler_object_inline_stack_2323
9107
9126
  );
9108
9127
  pushPrimaryTreeSuspenseHandler(workInProgress);
9109
9128
  renderLanes = current.child;
9110
9129
  current = renderLanes.sibling;
9111
9130
  renderLanes = createWorkInProgress(renderLanes, {
9112
9131
  mode: "visible",
9113
- children: JSCompiler_object_inline_stack_2316.children
9132
+ children: JSCompiler_object_inline_stack_2323.children
9114
9133
  });
9115
9134
  renderLanes.return = workInProgress;
9116
9135
  renderLanes.sibling = null;
9117
9136
  null !== current &&
9118
- ((JSCompiler_object_inline_digest_2315 = workInProgress.deletions),
9119
- null === JSCompiler_object_inline_digest_2315
9137
+ ((JSCompiler_object_inline_digest_2322 = workInProgress.deletions),
9138
+ null === JSCompiler_object_inline_digest_2322
9120
9139
  ? ((workInProgress.deletions = [current]),
9121
9140
  (workInProgress.flags |= 16))
9122
- : JSCompiler_object_inline_digest_2315.push(current));
9141
+ : JSCompiler_object_inline_digest_2322.push(current));
9123
9142
  workInProgress.child = renderLanes;
9124
9143
  workInProgress.memoizedState = null;
9125
9144
  return renderLanes;
@@ -13438,20 +13457,34 @@
13438
13457
  (resource.state.loading & Inserted) !== NotLoaded
13439
13458
  )
13440
13459
  workInProgress.flags &= -16777217;
13441
- else if (((workInProgress.flags |= 16777216), !preloadResource(resource)))
13442
- if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192;
13443
- else
13460
+ else if (
13461
+ ((workInProgress.flags |= 16777216), !preloadResource(resource))
13462
+ ) {
13463
+ resource = suspenseHandlerStackCursor.current;
13464
+ if (
13465
+ null !== resource &&
13466
+ ((workInProgressRootRenderLanes & 4194176) ===
13467
+ workInProgressRootRenderLanes
13468
+ ? null !== shellBoundary
13469
+ : ((workInProgressRootRenderLanes & 62914560) !==
13470
+ workInProgressRootRenderLanes &&
13471
+ 0 === (workInProgressRootRenderLanes & 536870912)) ||
13472
+ resource !== shellBoundary)
13473
+ )
13444
13474
  throw (
13445
13475
  ((suspendedThenable = noopSuspenseyCommitThenable),
13446
13476
  SuspenseyCommitException)
13447
13477
  );
13478
+ workInProgress.flags |= 8192;
13479
+ }
13448
13480
  }
13449
13481
  function scheduleRetryEffect(workInProgress, retryQueue) {
13450
13482
  null !== retryQueue && (workInProgress.flags |= 4);
13451
13483
  workInProgress.flags & 16384 &&
13452
13484
  ((retryQueue =
13453
13485
  22 !== workInProgress.tag ? claimNextRetryLane() : 536870912),
13454
- (workInProgress.lanes |= retryQueue));
13486
+ (workInProgress.lanes |= retryQueue),
13487
+ (workInProgressSuspendedRetryLanes |= retryQueue));
13455
13488
  }
13456
13489
  function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
13457
13490
  if (!isHydrating)
@@ -14248,7 +14281,8 @@
14248
14281
  markRootSuspended(
14249
14282
  root,
14250
14283
  workInProgressRootRenderLanes,
14251
- workInProgressDeferredLane
14284
+ workInProgressDeferredLane,
14285
+ !1
14252
14286
  );
14253
14287
  markRootUpdated$1(root, lane);
14254
14288
  if (
@@ -14290,26 +14324,30 @@
14290
14324
  markRootSuspended(
14291
14325
  root,
14292
14326
  workInProgressRootRenderLanes,
14293
- workInProgressDeferredLane
14327
+ workInProgressDeferredLane,
14328
+ !1
14294
14329
  )),
14295
14330
  ensureRootIsScheduled(root);
14296
14331
  }
14297
14332
  function performWorkOnRoot(root, lanes, forceSync) {
14298
14333
  if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
14299
14334
  throw Error("Should not already be working.");
14300
- var exitStatus = (forceSync =
14335
+ var shouldTimeSlice =
14301
14336
  (!forceSync &&
14302
14337
  0 === (lanes & 60) &&
14303
14338
  0 === (lanes & root.expiredLanes)) ||
14304
- !1)
14339
+ checkIfRootIsPrerendering(root, lanes),
14340
+ exitStatus = shouldTimeSlice
14305
14341
  ? renderRootConcurrent(root, lanes)
14306
14342
  : renderRootSync(root, lanes, !0),
14307
- renderWasConcurrent = forceSync;
14343
+ renderWasConcurrent = shouldTimeSlice;
14308
14344
  do {
14309
- if (exitStatus === RootInProgress) break;
14310
- else if (exitStatus === RootDidNotComplete)
14311
- markRootSuspended(root, lanes, 0);
14312
- else {
14345
+ if (exitStatus === RootInProgress) {
14346
+ workInProgressRootIsPrerendering &&
14347
+ !shouldTimeSlice &&
14348
+ markRootSuspended(root, lanes, 0, !1);
14349
+ break;
14350
+ } else {
14313
14351
  forceSync = root.current.alternate;
14314
14352
  if (
14315
14353
  renderWasConcurrent &&
@@ -14373,25 +14411,25 @@
14373
14411
  }
14374
14412
  if (exitStatus === RootFatalErrored) {
14375
14413
  prepareFreshStack(root, 0);
14376
- markRootSuspended(root, lanes, 0);
14414
+ markRootSuspended(root, lanes, 0, !0);
14377
14415
  break;
14378
14416
  }
14379
14417
  a: {
14380
- renderWasConcurrent = root;
14418
+ shouldTimeSlice = root;
14381
14419
  switch (exitStatus) {
14382
14420
  case RootInProgress:
14383
14421
  case RootFatalErrored:
14384
14422
  throw Error("Root did not complete. This is a bug in React.");
14385
14423
  case RootSuspendedWithDelay:
14386
- if ((lanes & 4194176) === lanes) {
14387
- markRootSuspended(
14388
- renderWasConcurrent,
14389
- lanes,
14390
- workInProgressDeferredLane
14391
- );
14392
- break a;
14393
- }
14394
- break;
14424
+ if ((lanes & 4194176) !== lanes) break;
14425
+ case RootSuspendedAtTheShell:
14426
+ markRootSuspended(
14427
+ shouldTimeSlice,
14428
+ lanes,
14429
+ workInProgressDeferredLane,
14430
+ !workInProgressRootDidSkipSuspendedSiblings
14431
+ );
14432
+ break a;
14395
14433
  case RootErrored:
14396
14434
  workInProgressRootRecoverableErrors = null;
14397
14435
  break;
@@ -14401,11 +14439,11 @@
14401
14439
  default:
14402
14440
  throw Error("Unknown root exit status.");
14403
14441
  }
14404
- renderWasConcurrent.finishedWork = forceSync;
14405
- renderWasConcurrent.finishedLanes = lanes;
14442
+ shouldTimeSlice.finishedWork = forceSync;
14443
+ shouldTimeSlice.finishedLanes = lanes;
14406
14444
  if (null !== ReactSharedInternals.actQueue)
14407
14445
  commitRoot(
14408
- renderWasConcurrent,
14446
+ shouldTimeSlice,
14409
14447
  workInProgressRootRecoverableErrors,
14410
14448
  workInProgressTransitions,
14411
14449
  workInProgressRootDidIncludeRecursiveRenderUpdate,
@@ -14426,15 +14464,16 @@
14426
14464
  10 < exitStatus)
14427
14465
  ) {
14428
14466
  markRootSuspended(
14429
- renderWasConcurrent,
14467
+ shouldTimeSlice,
14430
14468
  lanes,
14431
- workInProgressDeferredLane
14469
+ workInProgressDeferredLane,
14470
+ !workInProgressRootDidSkipSuspendedSiblings
14432
14471
  );
14433
- if (0 !== getNextLanes(renderWasConcurrent, 0)) break a;
14434
- renderWasConcurrent.timeoutHandle = scheduleTimeout(
14472
+ if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
14473
+ shouldTimeSlice.timeoutHandle = scheduleTimeout(
14435
14474
  commitRootWhenReady.bind(
14436
14475
  null,
14437
- renderWasConcurrent,
14476
+ shouldTimeSlice,
14438
14477
  forceSync,
14439
14478
  workInProgressRootRecoverableErrors,
14440
14479
  workInProgressTransitions,
@@ -14453,7 +14492,7 @@
14453
14492
  break a;
14454
14493
  }
14455
14494
  commitRootWhenReady(
14456
- renderWasConcurrent,
14495
+ shouldTimeSlice,
14457
14496
  forceSync,
14458
14497
  workInProgressRootRecoverableErrors,
14459
14498
  workInProgressTransitions,
@@ -14497,11 +14536,8 @@
14497
14536
  completedRenderStartTime,
14498
14537
  completedRenderEndTime
14499
14538
  ) {
14500
- didSkipSuspendedSiblings = finishedWork.subtreeFlags;
14501
- if (
14502
- didSkipSuspendedSiblings & 8192 ||
14503
- 16785408 === (didSkipSuspendedSiblings & 16785408)
14504
- )
14539
+ var subtreeFlags = finishedWork.subtreeFlags;
14540
+ if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
14505
14541
  if (
14506
14542
  ((suspendedState = {
14507
14543
  stylesheets: null,
@@ -14527,7 +14563,12 @@
14527
14563
  completedRenderEndTime
14528
14564
  )
14529
14565
  );
14530
- markRootSuspended(root, lanes, spawnedLane);
14566
+ markRootSuspended(
14567
+ root,
14568
+ lanes,
14569
+ spawnedLane,
14570
+ !didSkipSuspendedSiblings
14571
+ );
14531
14572
  return;
14532
14573
  }
14533
14574
  commitRoot(
@@ -14577,19 +14618,22 @@
14577
14618
  }
14578
14619
  return !0;
14579
14620
  }
14580
- function markRootSuspended(root, suspendedLanes, spawnedLane) {
14621
+ function markRootSuspended(
14622
+ root,
14623
+ suspendedLanes,
14624
+ spawnedLane,
14625
+ didAttemptEntireTree
14626
+ ) {
14581
14627
  suspendedLanes &= ~workInProgressRootPingedLanes;
14582
14628
  suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes;
14583
14629
  root.suspendedLanes |= suspendedLanes;
14584
14630
  root.pingedLanes &= ~suspendedLanes;
14585
- for (
14586
- var expirationTimes = root.expirationTimes, lanes = suspendedLanes;
14587
- 0 < lanes;
14588
-
14589
- ) {
14631
+ didAttemptEntireTree && (root.warmLanes |= suspendedLanes);
14632
+ didAttemptEntireTree = root.expirationTimes;
14633
+ for (var lanes = suspendedLanes; 0 < lanes; ) {
14590
14634
  var index = 31 - clz32(lanes),
14591
14635
  lane = 1 << index;
14592
- expirationTimes[index] = -1;
14636
+ didAttemptEntireTree[index] = -1;
14593
14637
  lanes &= ~lane;
14594
14638
  }
14595
14639
  0 !== spawnedLane &&
@@ -14633,7 +14677,7 @@
14633
14677
  workInProgressSuspendedReason = NotSuspended;
14634
14678
  workInProgressThrownValue = null;
14635
14679
  workInProgressRootDidSkipSuspendedSiblings = !1;
14636
- checkIfRootIsPrerendering(root, lanes);
14680
+ workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes);
14637
14681
  workInProgressRootDidAttachPingListener = !1;
14638
14682
  workInProgressRootExitStatus = RootInProgress;
14639
14683
  workInProgressSuspendedRetryLanes =
@@ -14671,12 +14715,7 @@
14671
14715
  current = null;
14672
14716
  thrownValue === SuspenseException
14673
14717
  ? ((thrownValue = getSuspendedThenable()),
14674
- (workInProgressSuspendedReason =
14675
- shouldRemainOnPreviousScreen() &&
14676
- 0 === (workInProgressRootSkippedLanes & 134217727) &&
14677
- 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)
14678
- ? SuspendedOnData
14679
- : SuspendedOnImmediate))
14718
+ (workInProgressSuspendedReason = SuspendedOnImmediate))
14680
14719
  : thrownValue === SuspenseyCommitException
14681
14720
  ? ((thrownValue = getSuspendedThenable()),
14682
14721
  (workInProgressSuspendedReason = SuspendedOnInstance))
@@ -14727,21 +14766,6 @@
14727
14766
  );
14728
14767
  }
14729
14768
  }
14730
- function shouldRemainOnPreviousScreen() {
14731
- var handler = suspenseHandlerStackCursor.current;
14732
- return null === handler
14733
- ? !0
14734
- : (workInProgressRootRenderLanes & 4194176) ===
14735
- workInProgressRootRenderLanes
14736
- ? null === shellBoundary
14737
- ? !0
14738
- : !1
14739
- : (workInProgressRootRenderLanes & 62914560) ===
14740
- workInProgressRootRenderLanes ||
14741
- 0 !== (workInProgressRootRenderLanes & 536870912)
14742
- ? handler === shellBoundary
14743
- : !1;
14744
- }
14745
14769
  function pushDispatcher() {
14746
14770
  var prevDispatcher = ReactSharedInternals.H;
14747
14771
  ReactSharedInternals.H = ContextOnlyDispatcher;
@@ -14754,16 +14778,22 @@
14754
14778
  }
14755
14779
  function renderDidSuspendDelayIfPossible() {
14756
14780
  workInProgressRootExitStatus = RootSuspendedWithDelay;
14781
+ workInProgressRootDidSkipSuspendedSiblings ||
14782
+ ((workInProgressRootRenderLanes & 4194176) !==
14783
+ workInProgressRootRenderLanes &&
14784
+ null !== suspenseHandlerStackCursor.current) ||
14785
+ (workInProgressRootIsPrerendering = !0);
14757
14786
  (0 === (workInProgressRootSkippedLanes & 134217727) &&
14758
14787
  0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) ||
14759
14788
  null === workInProgressRoot ||
14760
14789
  markRootSuspended(
14761
14790
  workInProgressRoot,
14762
14791
  workInProgressRootRenderLanes,
14763
- workInProgressDeferredLane
14792
+ workInProgressDeferredLane,
14793
+ !1
14764
14794
  );
14765
14795
  }
14766
- function renderRootSync(root, lanes) {
14796
+ function renderRootSync(root, lanes, shouldYieldForPrerendering) {
14767
14797
  var prevExecutionContext = executionContext;
14768
14798
  executionContext |= RenderContext;
14769
14799
  var prevDispatcher = pushDispatcher(),
@@ -14796,7 +14826,7 @@
14796
14826
  switch (workInProgressSuspendedReason) {
14797
14827
  case SuspendedOnHydration:
14798
14828
  resetWorkInProgressStack();
14799
- memoizedUpdaters = RootDidNotComplete;
14829
+ memoizedUpdaters = RootSuspendedAtTheShell;
14800
14830
  break a;
14801
14831
  case SuspendedOnImmediate:
14802
14832
  case SuspendedOnData:
@@ -14806,6 +14836,13 @@
14806
14836
  workInProgressSuspendedReason = NotSuspended;
14807
14837
  workInProgressThrownValue = null;
14808
14838
  throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason);
14839
+ if (
14840
+ shouldYieldForPrerendering &&
14841
+ workInProgressRootIsPrerendering
14842
+ ) {
14843
+ memoizedUpdaters = RootInProgress;
14844
+ break a;
14845
+ }
14809
14846
  break;
14810
14847
  default:
14811
14848
  (reason = workInProgressSuspendedReason),
@@ -14855,7 +14892,11 @@
14855
14892
  workInProgressTransitions = null;
14856
14893
  workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS;
14857
14894
  prepareFreshStack(root, lanes);
14858
- } else checkIfRootIsPrerendering(root, lanes);
14895
+ } else
14896
+ workInProgressRootIsPrerendering = checkIfRootIsPrerendering(
14897
+ root,
14898
+ lanes
14899
+ );
14859
14900
  markRenderStarted(lanes);
14860
14901
  a: do
14861
14902
  try {
@@ -14964,7 +15005,7 @@
14964
15005
  break;
14965
15006
  case SuspendedOnHydration:
14966
15007
  resetWorkInProgressStack();
14967
- workInProgressRootExitStatus = RootDidNotComplete;
15008
+ workInProgressRootExitStatus = RootSuspendedAtTheShell;
14968
15009
  break a;
14969
15010
  default:
14970
15011
  throw Error(
@@ -15067,7 +15108,12 @@
15067
15108
  stopProfilerTimerIfRunningAndRecordDuration(unitOfWork);
15068
15109
  return current;
15069
15110
  }
15070
- function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) {
15111
+ function throwAndUnwindWorkLoop(
15112
+ root,
15113
+ unitOfWork,
15114
+ thrownValue,
15115
+ suspendedReason
15116
+ ) {
15071
15117
  resetContextDependencies();
15072
15118
  resetHooksOnUnwind(unitOfWork);
15073
15119
  thenableState$1 = null;
@@ -15101,9 +15147,25 @@
15101
15147
  workInProgress = null;
15102
15148
  return;
15103
15149
  }
15104
- unitOfWork.flags & 32768
15105
- ? unwindUnitOfWork(unitOfWork, !0)
15106
- : completeUnitOfWork(unitOfWork);
15150
+ if (unitOfWork.flags & 32768) {
15151
+ if (isHydrating || suspendedReason === SuspendedOnError) root = !0;
15152
+ else if (
15153
+ workInProgressRootIsPrerendering ||
15154
+ 0 !== (workInProgressRootRenderLanes & 536870912)
15155
+ )
15156
+ root = !1;
15157
+ else if (
15158
+ ((workInProgressRootDidSkipSuspendedSiblings = root = !0),
15159
+ suspendedReason === SuspendedOnData ||
15160
+ suspendedReason === SuspendedOnImmediate ||
15161
+ suspendedReason === SuspendedOnDeprecatedThrowPromise)
15162
+ )
15163
+ (suspendedReason = suspenseHandlerStackCursor.current),
15164
+ null !== suspendedReason &&
15165
+ 13 === suspendedReason.tag &&
15166
+ (suspendedReason.flags |= 16384);
15167
+ unwindUnitOfWork(unitOfWork, root);
15168
+ } else completeUnitOfWork(unitOfWork);
15107
15169
  }
15108
15170
  function completeUnitOfWork(unitOfWork) {
15109
15171
  var completedWork = unitOfWork;
@@ -15170,7 +15232,7 @@
15170
15232
  }
15171
15233
  workInProgress = unitOfWork = next;
15172
15234
  } while (null !== unitOfWork);
15173
- workInProgressRootExitStatus = RootDidNotComplete;
15235
+ workInProgressRootExitStatus = RootSuspendedAtTheShell;
15174
15236
  workInProgress = null;
15175
15237
  }
15176
15238
  function commitRoot(
@@ -15214,7 +15276,9 @@
15214
15276
  transitions,
15215
15277
  didIncludeRenderPhaseUpdate,
15216
15278
  renderPriorityLevel,
15217
- spawnedLane
15279
+ spawnedLane,
15280
+ updatedLanes,
15281
+ suspendedRetryLanes
15218
15282
  ) {
15219
15283
  do flushPassiveEffects();
15220
15284
  while (null !== rootWithPendingPassiveEffects);
@@ -15247,7 +15311,9 @@
15247
15311
  root,
15248
15312
  didIncludeRenderPhaseUpdate,
15249
15313
  remainingLanes,
15250
- spawnedLane
15314
+ spawnedLane,
15315
+ updatedLanes,
15316
+ suspendedRetryLanes
15251
15317
  );
15252
15318
  root === workInProgressRoot &&
15253
15319
  ((workInProgress = workInProgressRoot = null),
@@ -15264,35 +15330,39 @@
15264
15330
  }));
15265
15331
  commitStartTime = now();
15266
15332
  transitions = 0 !== (finishedWork.flags & 15990);
15267
- if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) {
15268
- transitions = ReactSharedInternals.T;
15269
- ReactSharedInternals.T = null;
15270
- spawnedLane = ReactDOMSharedInternals.p;
15271
- ReactDOMSharedInternals.p = DiscreteEventPriority;
15272
- var prevExecutionContext = executionContext;
15273
- executionContext |= CommitContext;
15274
- commitBeforeMutationEffects(root, finishedWork);
15275
- commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate);
15276
- restoreSelection(selectionInformation, root.containerInfo);
15277
- _enabled = !!eventsEnabled;
15278
- selectionInformation = eventsEnabled = null;
15279
- root.current = finishedWork;
15280
- null !== injectedProfilingHooks &&
15281
- "function" ===
15282
- typeof injectedProfilingHooks.markLayoutEffectsStarted &&
15283
- injectedProfilingHooks.markLayoutEffectsStarted(
15333
+ 0 !== (finishedWork.subtreeFlags & 15990) || transitions
15334
+ ? ((transitions = ReactSharedInternals.T),
15335
+ (ReactSharedInternals.T = null),
15336
+ (spawnedLane = ReactDOMSharedInternals.p),
15337
+ (ReactDOMSharedInternals.p = DiscreteEventPriority),
15338
+ (updatedLanes = executionContext),
15339
+ (executionContext |= CommitContext),
15340
+ commitBeforeMutationEffects(root, finishedWork),
15341
+ commitMutationEffects(
15342
+ root,
15343
+ finishedWork,
15284
15344
  didIncludeRenderPhaseUpdate
15285
- );
15286
- commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate);
15287
- null !== injectedProfilingHooks &&
15288
- "function" ===
15289
- typeof injectedProfilingHooks.markLayoutEffectsStopped &&
15290
- injectedProfilingHooks.markLayoutEffectsStopped();
15291
- requestPaint();
15292
- executionContext = prevExecutionContext;
15293
- ReactDOMSharedInternals.p = spawnedLane;
15294
- ReactSharedInternals.T = transitions;
15295
- } else root.current = finishedWork;
15345
+ ),
15346
+ restoreSelection(selectionInformation, root.containerInfo),
15347
+ (_enabled = !!eventsEnabled),
15348
+ (selectionInformation = eventsEnabled = null),
15349
+ (root.current = finishedWork),
15350
+ null !== injectedProfilingHooks &&
15351
+ "function" ===
15352
+ typeof injectedProfilingHooks.markLayoutEffectsStarted &&
15353
+ injectedProfilingHooks.markLayoutEffectsStarted(
15354
+ didIncludeRenderPhaseUpdate
15355
+ ),
15356
+ commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate),
15357
+ null !== injectedProfilingHooks &&
15358
+ "function" ===
15359
+ typeof injectedProfilingHooks.markLayoutEffectsStopped &&
15360
+ injectedProfilingHooks.markLayoutEffectsStopped(),
15361
+ requestPaint(),
15362
+ (executionContext = updatedLanes),
15363
+ (ReactDOMSharedInternals.p = spawnedLane),
15364
+ (ReactSharedInternals.T = transitions))
15365
+ : (root.current = finishedWork);
15296
15366
  (transitions = rootDoesHavePassiveEffects)
15297
15367
  ? ((rootDoesHavePassiveEffects = !1),
15298
15368
  (rootWithPendingPassiveEffects = root),
@@ -15810,43 +15880,45 @@
15810
15880
  (root.callbackNode = null),
15811
15881
  (root.callbackPriority = 0)
15812
15882
  );
15813
- if (0 !== (suspendedLanes & 3))
15814
- return (
15815
- null !== pingedLanes && cancelCallback(pingedLanes),
15816
- (root.callbackPriority = 2),
15817
- (root.callbackNode = null),
15818
- 2
15819
- );
15820
- currentTime = suspendedLanes & -suspendedLanes;
15821
15883
  if (
15822
- currentTime !== root.callbackPriority ||
15823
- (null !== ReactSharedInternals.actQueue &&
15824
- pingedLanes !== fakeActCallbackNode)
15825
- )
15826
- cancelCallback(pingedLanes);
15827
- else return currentTime;
15828
- switch (lanesToEventPriority(suspendedLanes)) {
15829
- case DiscreteEventPriority:
15830
- case ContinuousEventPriority:
15831
- suspendedLanes = UserBlockingPriority;
15832
- break;
15833
- case DefaultEventPriority:
15834
- suspendedLanes = NormalPriority$1;
15835
- break;
15836
- case IdleEventPriority:
15837
- suspendedLanes = IdlePriority;
15838
- break;
15839
- default:
15840
- suspendedLanes = NormalPriority$1;
15841
- }
15842
- pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
15843
- null !== ReactSharedInternals.actQueue
15844
- ? (ReactSharedInternals.actQueue.push(pingedLanes),
15845
- (suspendedLanes = fakeActCallbackNode))
15846
- : (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes));
15847
- root.callbackPriority = currentTime;
15848
- root.callbackNode = suspendedLanes;
15849
- return currentTime;
15884
+ 0 === (suspendedLanes & 3) ||
15885
+ checkIfRootIsPrerendering(root, suspendedLanes)
15886
+ ) {
15887
+ currentTime = suspendedLanes & -suspendedLanes;
15888
+ if (
15889
+ currentTime !== root.callbackPriority ||
15890
+ (null !== ReactSharedInternals.actQueue &&
15891
+ pingedLanes !== fakeActCallbackNode)
15892
+ )
15893
+ cancelCallback(pingedLanes);
15894
+ else return currentTime;
15895
+ switch (lanesToEventPriority(suspendedLanes)) {
15896
+ case DiscreteEventPriority:
15897
+ case ContinuousEventPriority:
15898
+ suspendedLanes = UserBlockingPriority;
15899
+ break;
15900
+ case DefaultEventPriority:
15901
+ suspendedLanes = NormalPriority$1;
15902
+ break;
15903
+ case IdleEventPriority:
15904
+ suspendedLanes = IdlePriority;
15905
+ break;
15906
+ default:
15907
+ suspendedLanes = NormalPriority$1;
15908
+ }
15909
+ pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root);
15910
+ null !== ReactSharedInternals.actQueue
15911
+ ? (ReactSharedInternals.actQueue.push(pingedLanes),
15912
+ (suspendedLanes = fakeActCallbackNode))
15913
+ : (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes));
15914
+ root.callbackPriority = currentTime;
15915
+ root.callbackNode = suspendedLanes;
15916
+ return currentTime;
15917
+ }
15918
+ null !== pingedLanes && cancelCallback(pingedLanes);
15919
+ root.callbackPriority = 2;
15920
+ root.callbackNode = null;
15921
+ return 2;
15850
15922
  }
15851
15923
  function performWorkOnRootViaSchedulerTask(root, didTimeout) {
15852
15924
  nestedUpdateScheduled = currentUpdateIsNested = !1;
@@ -19760,7 +19832,7 @@
19760
19832
  ) {
19761
19833
  outsideHostContainerContext &&
19762
19834
  console.error(
19763
- 'Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflic with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`, or move the <style> to the <style> tag.'
19835
+ 'Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.'
19764
19836
  );
19765
19837
  break;
19766
19838
  }
@@ -23899,8 +23971,8 @@
23899
23971
  RootErrored = 2,
23900
23972
  RootSuspended = 3,
23901
23973
  RootSuspendedWithDelay = 4,
23974
+ RootSuspendedAtTheShell = 6,
23902
23975
  RootCompleted = 5,
23903
- RootDidNotComplete = 6,
23904
23976
  executionContext = NoContext,
23905
23977
  workInProgressRoot = null,
23906
23978
  workInProgress = null,
@@ -23917,6 +23989,7 @@
23917
23989
  workInProgressSuspendedReason = NotSuspended,
23918
23990
  workInProgressThrownValue = null,
23919
23991
  workInProgressRootDidSkipSuspendedSiblings = !1,
23992
+ workInProgressRootIsPrerendering = !1,
23920
23993
  workInProgressRootDidAttachPingListener = !1,
23921
23994
  entangledRenderLanes = 0,
23922
23995
  workInProgressRootExitStatus = RootInProgress,
@@ -24495,11 +24568,11 @@
24495
24568
  };
24496
24569
  (function () {
24497
24570
  var isomorphicReactPackageVersion = React.version;
24498
- if ("19.0.0-rc-380f5d67-20241113" !== isomorphicReactPackageVersion)
24571
+ if ("19.0.0-rc-e1ef8c95-20241115" !== isomorphicReactPackageVersion)
24499
24572
  throw Error(
24500
24573
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
24501
24574
  (isomorphicReactPackageVersion +
24502
- "\n - react-dom: 19.0.0-rc-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch")
24575
+ "\n - react-dom: 19.0.0-rc-e1ef8c95-20241115\nLearn more: https://react.dev/warnings/version-mismatch")
24503
24576
  );
24504
24577
  })();
24505
24578
  ("function" === typeof Map &&
@@ -24536,11 +24609,11 @@
24536
24609
  !(function () {
24537
24610
  var internals = {
24538
24611
  bundleType: 1,
24539
- version: "19.0.0-rc-380f5d67-20241113",
24612
+ version: "19.0.0-rc-e1ef8c95-20241115",
24540
24613
  rendererPackageName: "react-dom",
24541
24614
  currentDispatcherRef: ReactSharedInternals,
24542
24615
  findFiberByHostInstance: getClosestInstanceFromNode,
24543
- reconcilerVersion: "19.0.0-rc-380f5d67-20241113"
24616
+ reconcilerVersion: "19.0.0-rc-e1ef8c95-20241115"
24544
24617
  };
24545
24618
  internals.overrideHookState = overrideHookState;
24546
24619
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -25014,7 +25087,7 @@
25014
25087
  exports.useFormStatus = function () {
25015
25088
  return resolveDispatcher().useHostTransitionStatus();
25016
25089
  };
25017
- exports.version = "19.0.0-rc-380f5d67-20241113";
25090
+ exports.version = "19.0.0-rc-e1ef8c95-20241115";
25018
25091
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
25019
25092
  "function" ===
25020
25093
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&