react-dom 19.2.0-canary-67a44bcd-20250915 → 19.2.0-canary-5e0c951b-20250916

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.
@@ -9940,24 +9940,24 @@
9940
9940
  return current;
9941
9941
  }
9942
9942
  function updateSuspenseComponent(current, workInProgress, renderLanes) {
9943
- var JSCompiler_object_inline_digest_2538;
9944
- var JSCompiler_object_inline_stack_2539 = workInProgress.pendingProps;
9943
+ var JSCompiler_object_inline_digest_2542;
9944
+ var JSCompiler_object_inline_stack_2543 = workInProgress.pendingProps;
9945
9945
  shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
9946
- var JSCompiler_object_inline_message_2537 = !1;
9946
+ var JSCompiler_object_inline_message_2541 = !1;
9947
9947
  var didSuspend = 0 !== (workInProgress.flags & 128);
9948
- (JSCompiler_object_inline_digest_2538 = didSuspend) ||
9949
- (JSCompiler_object_inline_digest_2538 =
9948
+ (JSCompiler_object_inline_digest_2542 = didSuspend) ||
9949
+ (JSCompiler_object_inline_digest_2542 =
9950
9950
  null !== current && null === current.memoizedState
9951
9951
  ? !1
9952
9952
  : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
9953
- JSCompiler_object_inline_digest_2538 &&
9954
- ((JSCompiler_object_inline_message_2537 = !0),
9953
+ JSCompiler_object_inline_digest_2542 &&
9954
+ ((JSCompiler_object_inline_message_2541 = !0),
9955
9955
  (workInProgress.flags &= -129));
9956
- JSCompiler_object_inline_digest_2538 = 0 !== (workInProgress.flags & 32);
9956
+ JSCompiler_object_inline_digest_2542 = 0 !== (workInProgress.flags & 32);
9957
9957
  workInProgress.flags &= -33;
9958
9958
  if (null === current) {
9959
9959
  if (isHydrating) {
9960
- JSCompiler_object_inline_message_2537
9960
+ JSCompiler_object_inline_message_2541
9961
9961
  ? pushPrimaryTreeSuspenseHandler(workInProgress)
9962
9962
  : reuseSuspenseHandlerOnStack(workInProgress);
9963
9963
  (current = nextHydratableInstance)
@@ -9970,18 +9970,18 @@
9970
9970
  ? renderLanes
9971
9971
  : null),
9972
9972
  null !== renderLanes &&
9973
- ((JSCompiler_object_inline_digest_2538 = {
9973
+ ((JSCompiler_object_inline_digest_2542 = {
9974
9974
  dehydrated: renderLanes,
9975
9975
  treeContext: getSuspendedTreeContext(),
9976
9976
  retryLane: 536870912,
9977
9977
  hydrationErrors: null
9978
9978
  }),
9979
9979
  (workInProgress.memoizedState =
9980
- JSCompiler_object_inline_digest_2538),
9981
- (JSCompiler_object_inline_digest_2538 =
9980
+ JSCompiler_object_inline_digest_2542),
9981
+ (JSCompiler_object_inline_digest_2542 =
9982
9982
  createFiberFromDehydratedFragment(renderLanes)),
9983
- (JSCompiler_object_inline_digest_2538.return = workInProgress),
9984
- (workInProgress.child = JSCompiler_object_inline_digest_2538),
9983
+ (JSCompiler_object_inline_digest_2542.return = workInProgress),
9984
+ (workInProgress.child = JSCompiler_object_inline_digest_2542),
9985
9985
  (hydrationParentFiber = workInProgress),
9986
9986
  (nextHydratableInstance = null)))
9987
9987
  : (renderLanes = null);
@@ -9995,39 +9995,39 @@
9995
9995
  : (workInProgress.lanes = 536870912);
9996
9996
  return null;
9997
9997
  }
9998
- var nextPrimaryChildren = JSCompiler_object_inline_stack_2539.children;
9999
- JSCompiler_object_inline_stack_2539 =
10000
- JSCompiler_object_inline_stack_2539.fallback;
10001
- if (JSCompiler_object_inline_message_2537) {
9998
+ var nextPrimaryChildren = JSCompiler_object_inline_stack_2543.children;
9999
+ JSCompiler_object_inline_stack_2543 =
10000
+ JSCompiler_object_inline_stack_2543.fallback;
10001
+ if (JSCompiler_object_inline_message_2541) {
10002
10002
  reuseSuspenseHandlerOnStack(workInProgress);
10003
10003
  var mode = workInProgress.mode;
10004
10004
  nextPrimaryChildren = mountWorkInProgressOffscreenFiber(
10005
10005
  { mode: "hidden", children: nextPrimaryChildren },
10006
10006
  mode
10007
10007
  );
10008
- JSCompiler_object_inline_stack_2539 = createFiberFromFragment(
10009
- JSCompiler_object_inline_stack_2539,
10008
+ JSCompiler_object_inline_stack_2543 = createFiberFromFragment(
10009
+ JSCompiler_object_inline_stack_2543,
10010
10010
  mode,
10011
10011
  renderLanes,
10012
10012
  null
10013
10013
  );
10014
10014
  nextPrimaryChildren.return = workInProgress;
10015
- JSCompiler_object_inline_stack_2539.return = workInProgress;
10016
- nextPrimaryChildren.sibling = JSCompiler_object_inline_stack_2539;
10015
+ JSCompiler_object_inline_stack_2543.return = workInProgress;
10016
+ nextPrimaryChildren.sibling = JSCompiler_object_inline_stack_2543;
10017
10017
  workInProgress.child = nextPrimaryChildren;
10018
- JSCompiler_object_inline_stack_2539 = workInProgress.child;
10019
- JSCompiler_object_inline_stack_2539.memoizedState =
10018
+ JSCompiler_object_inline_stack_2543 = workInProgress.child;
10019
+ JSCompiler_object_inline_stack_2543.memoizedState =
10020
10020
  mountSuspenseOffscreenState(renderLanes);
10021
- JSCompiler_object_inline_stack_2539.childLanes =
10021
+ JSCompiler_object_inline_stack_2543.childLanes =
10022
10022
  getRemainingWorkInPrimaryTree(
10023
10023
  current,
10024
- JSCompiler_object_inline_digest_2538,
10024
+ JSCompiler_object_inline_digest_2542,
10025
10025
  renderLanes
10026
10026
  );
10027
10027
  workInProgress.memoizedState = SUSPENDED_MARKER;
10028
10028
  return bailoutOffscreenComponent(
10029
10029
  null,
10030
- JSCompiler_object_inline_stack_2539
10030
+ JSCompiler_object_inline_stack_2543
10031
10031
  );
10032
10032
  }
10033
10033
  pushPrimaryTreeSuspenseHandler(workInProgress);
@@ -10038,8 +10038,8 @@
10038
10038
  }
10039
10039
  var prevState = current.memoizedState;
10040
10040
  if (null !== prevState) {
10041
- var JSCompiler_object_inline_componentStack_2540 = prevState.dehydrated;
10042
- if (null !== JSCompiler_object_inline_componentStack_2540) {
10041
+ var JSCompiler_object_inline_componentStack_2544 = prevState.dehydrated;
10042
+ if (null !== JSCompiler_object_inline_componentStack_2544) {
10043
10043
  if (didSuspend)
10044
10044
  workInProgress.flags & 256
10045
10045
  ? (pushPrimaryTreeSuspenseHandler(workInProgress),
@@ -10056,13 +10056,13 @@
10056
10056
  (workInProgress = null))
10057
10057
  : (reuseSuspenseHandlerOnStack(workInProgress),
10058
10058
  (nextPrimaryChildren =
10059
- JSCompiler_object_inline_stack_2539.fallback),
10059
+ JSCompiler_object_inline_stack_2543.fallback),
10060
10060
  (mode = workInProgress.mode),
10061
- (JSCompiler_object_inline_stack_2539 =
10061
+ (JSCompiler_object_inline_stack_2543 =
10062
10062
  mountWorkInProgressOffscreenFiber(
10063
10063
  {
10064
10064
  mode: "visible",
10065
- children: JSCompiler_object_inline_stack_2539.children
10065
+ children: JSCompiler_object_inline_stack_2543.children
10066
10066
  },
10067
10067
  mode
10068
10068
  )),
@@ -10073,74 +10073,74 @@
10073
10073
  null
10074
10074
  )),
10075
10075
  (nextPrimaryChildren.flags |= 2),
10076
- (JSCompiler_object_inline_stack_2539.return = workInProgress),
10076
+ (JSCompiler_object_inline_stack_2543.return = workInProgress),
10077
10077
  (nextPrimaryChildren.return = workInProgress),
10078
- (JSCompiler_object_inline_stack_2539.sibling =
10078
+ (JSCompiler_object_inline_stack_2543.sibling =
10079
10079
  nextPrimaryChildren),
10080
- (workInProgress.child = JSCompiler_object_inline_stack_2539),
10080
+ (workInProgress.child = JSCompiler_object_inline_stack_2543),
10081
10081
  reconcileChildFibers(
10082
10082
  workInProgress,
10083
10083
  current.child,
10084
10084
  null,
10085
10085
  renderLanes
10086
10086
  ),
10087
- (JSCompiler_object_inline_stack_2539 = workInProgress.child),
10088
- (JSCompiler_object_inline_stack_2539.memoizedState =
10087
+ (JSCompiler_object_inline_stack_2543 = workInProgress.child),
10088
+ (JSCompiler_object_inline_stack_2543.memoizedState =
10089
10089
  mountSuspenseOffscreenState(renderLanes)),
10090
- (JSCompiler_object_inline_stack_2539.childLanes =
10090
+ (JSCompiler_object_inline_stack_2543.childLanes =
10091
10091
  getRemainingWorkInPrimaryTree(
10092
10092
  current,
10093
- JSCompiler_object_inline_digest_2538,
10093
+ JSCompiler_object_inline_digest_2542,
10094
10094
  renderLanes
10095
10095
  )),
10096
10096
  (workInProgress.memoizedState = SUSPENDED_MARKER),
10097
10097
  (workInProgress = bailoutOffscreenComponent(
10098
10098
  null,
10099
- JSCompiler_object_inline_stack_2539
10099
+ JSCompiler_object_inline_stack_2543
10100
10100
  )));
10101
10101
  else if (
10102
10102
  (pushPrimaryTreeSuspenseHandler(workInProgress),
10103
10103
  warnIfHydrating(),
10104
10104
  isSuspenseInstanceFallback(
10105
- JSCompiler_object_inline_componentStack_2540
10105
+ JSCompiler_object_inline_componentStack_2544
10106
10106
  ))
10107
10107
  ) {
10108
- JSCompiler_object_inline_digest_2538 =
10109
- JSCompiler_object_inline_componentStack_2540.nextSibling &&
10110
- JSCompiler_object_inline_componentStack_2540.nextSibling.dataset;
10111
- if (JSCompiler_object_inline_digest_2538) {
10112
- nextPrimaryChildren = JSCompiler_object_inline_digest_2538.dgst;
10113
- var message = JSCompiler_object_inline_digest_2538.msg;
10114
- mode = JSCompiler_object_inline_digest_2538.stck;
10115
- var componentStack = JSCompiler_object_inline_digest_2538.cstck;
10108
+ JSCompiler_object_inline_digest_2542 =
10109
+ JSCompiler_object_inline_componentStack_2544.nextSibling &&
10110
+ JSCompiler_object_inline_componentStack_2544.nextSibling.dataset;
10111
+ if (JSCompiler_object_inline_digest_2542) {
10112
+ nextPrimaryChildren = JSCompiler_object_inline_digest_2542.dgst;
10113
+ var message = JSCompiler_object_inline_digest_2542.msg;
10114
+ mode = JSCompiler_object_inline_digest_2542.stck;
10115
+ var componentStack = JSCompiler_object_inline_digest_2542.cstck;
10116
10116
  }
10117
- JSCompiler_object_inline_message_2537 = message;
10118
- JSCompiler_object_inline_digest_2538 = nextPrimaryChildren;
10119
- JSCompiler_object_inline_stack_2539 = mode;
10120
- JSCompiler_object_inline_componentStack_2540 = componentStack;
10121
- nextPrimaryChildren = JSCompiler_object_inline_message_2537;
10122
- mode = JSCompiler_object_inline_componentStack_2540;
10117
+ JSCompiler_object_inline_message_2541 = message;
10118
+ JSCompiler_object_inline_digest_2542 = nextPrimaryChildren;
10119
+ JSCompiler_object_inline_stack_2543 = mode;
10120
+ JSCompiler_object_inline_componentStack_2544 = componentStack;
10121
+ nextPrimaryChildren = JSCompiler_object_inline_message_2541;
10122
+ mode = JSCompiler_object_inline_componentStack_2544;
10123
10123
  nextPrimaryChildren = nextPrimaryChildren
10124
10124
  ? Error(nextPrimaryChildren)
10125
10125
  : Error(
10126
10126
  "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
10127
10127
  );
10128
10128
  nextPrimaryChildren.stack =
10129
- JSCompiler_object_inline_stack_2539 || "";
10130
- nextPrimaryChildren.digest = JSCompiler_object_inline_digest_2538;
10131
- JSCompiler_object_inline_digest_2538 =
10129
+ JSCompiler_object_inline_stack_2543 || "";
10130
+ nextPrimaryChildren.digest = JSCompiler_object_inline_digest_2542;
10131
+ JSCompiler_object_inline_digest_2542 =
10132
10132
  void 0 === mode ? null : mode;
10133
- JSCompiler_object_inline_stack_2539 = {
10133
+ JSCompiler_object_inline_stack_2543 = {
10134
10134
  value: nextPrimaryChildren,
10135
10135
  source: null,
10136
- stack: JSCompiler_object_inline_digest_2538
10136
+ stack: JSCompiler_object_inline_digest_2542
10137
10137
  };
10138
- "string" === typeof JSCompiler_object_inline_digest_2538 &&
10138
+ "string" === typeof JSCompiler_object_inline_digest_2542 &&
10139
10139
  CapturedStacks.set(
10140
10140
  nextPrimaryChildren,
10141
- JSCompiler_object_inline_stack_2539
10141
+ JSCompiler_object_inline_stack_2543
10142
10142
  );
10143
- queueHydrationError(JSCompiler_object_inline_stack_2539);
10143
+ queueHydrationError(JSCompiler_object_inline_stack_2543);
10144
10144
  workInProgress = retrySuspenseComponentWithoutHydrating(
10145
10145
  current,
10146
10146
  workInProgress,
@@ -10154,35 +10154,35 @@
10154
10154
  renderLanes,
10155
10155
  !1
10156
10156
  ),
10157
- (JSCompiler_object_inline_digest_2538 =
10157
+ (JSCompiler_object_inline_digest_2542 =
10158
10158
  0 !== (renderLanes & current.childLanes)),
10159
- didReceiveUpdate || JSCompiler_object_inline_digest_2538)
10159
+ didReceiveUpdate || JSCompiler_object_inline_digest_2542)
10160
10160
  ) {
10161
- JSCompiler_object_inline_digest_2538 = workInProgressRoot;
10161
+ JSCompiler_object_inline_digest_2542 = workInProgressRoot;
10162
10162
  if (
10163
- null !== JSCompiler_object_inline_digest_2538 &&
10164
- ((JSCompiler_object_inline_stack_2539 = getBumpedLaneForHydration(
10165
- JSCompiler_object_inline_digest_2538,
10163
+ null !== JSCompiler_object_inline_digest_2542 &&
10164
+ ((JSCompiler_object_inline_stack_2543 = getBumpedLaneForHydration(
10165
+ JSCompiler_object_inline_digest_2542,
10166
10166
  renderLanes
10167
10167
  )),
10168
- 0 !== JSCompiler_object_inline_stack_2539 &&
10169
- JSCompiler_object_inline_stack_2539 !== prevState.retryLane)
10168
+ 0 !== JSCompiler_object_inline_stack_2543 &&
10169
+ JSCompiler_object_inline_stack_2543 !== prevState.retryLane)
10170
10170
  )
10171
10171
  throw (
10172
- ((prevState.retryLane = JSCompiler_object_inline_stack_2539),
10172
+ ((prevState.retryLane = JSCompiler_object_inline_stack_2543),
10173
10173
  enqueueConcurrentRenderForLane(
10174
10174
  current,
10175
- JSCompiler_object_inline_stack_2539
10175
+ JSCompiler_object_inline_stack_2543
10176
10176
  ),
10177
10177
  scheduleUpdateOnFiber(
10178
- JSCompiler_object_inline_digest_2538,
10178
+ JSCompiler_object_inline_digest_2542,
10179
10179
  current,
10180
- JSCompiler_object_inline_stack_2539
10180
+ JSCompiler_object_inline_stack_2543
10181
10181
  ),
10182
10182
  SelectiveHydrationException)
10183
10183
  );
10184
10184
  isSuspenseInstancePending(
10185
- JSCompiler_object_inline_componentStack_2540
10185
+ JSCompiler_object_inline_componentStack_2544
10186
10186
  ) || renderDidSuspendDelayIfPossible();
10187
10187
  workInProgress = retrySuspenseComponentWithoutHydrating(
10188
10188
  current,
@@ -10191,14 +10191,14 @@
10191
10191
  );
10192
10192
  } else
10193
10193
  isSuspenseInstancePending(
10194
- JSCompiler_object_inline_componentStack_2540
10194
+ JSCompiler_object_inline_componentStack_2544
10195
10195
  )
10196
10196
  ? ((workInProgress.flags |= 192),
10197
10197
  (workInProgress.child = current.child),
10198
10198
  (workInProgress = null))
10199
10199
  : ((current = prevState.treeContext),
10200
10200
  (nextHydratableInstance = getNextHydratable(
10201
- JSCompiler_object_inline_componentStack_2540.nextSibling
10201
+ JSCompiler_object_inline_componentStack_2544.nextSibling
10202
10202
  )),
10203
10203
  (hydrationParentFiber = workInProgress),
10204
10204
  (isHydrating = !0),
@@ -10210,32 +10210,32 @@
10210
10210
  restoreSuspendedTreeContext(workInProgress, current),
10211
10211
  (workInProgress = mountSuspensePrimaryChildren(
10212
10212
  workInProgress,
10213
- JSCompiler_object_inline_stack_2539.children
10213
+ JSCompiler_object_inline_stack_2543.children
10214
10214
  )),
10215
10215
  (workInProgress.flags |= 4096));
10216
10216
  return workInProgress;
10217
10217
  }
10218
10218
  }
10219
- if (JSCompiler_object_inline_message_2537)
10219
+ if (JSCompiler_object_inline_message_2541)
10220
10220
  return (
10221
10221
  reuseSuspenseHandlerOnStack(workInProgress),
10222
- (nextPrimaryChildren = JSCompiler_object_inline_stack_2539.fallback),
10222
+ (nextPrimaryChildren = JSCompiler_object_inline_stack_2543.fallback),
10223
10223
  (mode = workInProgress.mode),
10224
10224
  (componentStack = current.child),
10225
- (JSCompiler_object_inline_componentStack_2540 =
10225
+ (JSCompiler_object_inline_componentStack_2544 =
10226
10226
  componentStack.sibling),
10227
- (JSCompiler_object_inline_stack_2539 = createWorkInProgress(
10227
+ (JSCompiler_object_inline_stack_2543 = createWorkInProgress(
10228
10228
  componentStack,
10229
10229
  {
10230
10230
  mode: "hidden",
10231
- children: JSCompiler_object_inline_stack_2539.children
10231
+ children: JSCompiler_object_inline_stack_2543.children
10232
10232
  }
10233
10233
  )),
10234
- (JSCompiler_object_inline_stack_2539.subtreeFlags =
10234
+ (JSCompiler_object_inline_stack_2543.subtreeFlags =
10235
10235
  componentStack.subtreeFlags & 65011712),
10236
- null !== JSCompiler_object_inline_componentStack_2540
10236
+ null !== JSCompiler_object_inline_componentStack_2544
10237
10237
  ? (nextPrimaryChildren = createWorkInProgress(
10238
- JSCompiler_object_inline_componentStack_2540,
10238
+ JSCompiler_object_inline_componentStack_2544,
10239
10239
  nextPrimaryChildren
10240
10240
  ))
10241
10241
  : ((nextPrimaryChildren = createFiberFromFragment(
@@ -10246,11 +10246,11 @@
10246
10246
  )),
10247
10247
  (nextPrimaryChildren.flags |= 2)),
10248
10248
  (nextPrimaryChildren.return = workInProgress),
10249
- (JSCompiler_object_inline_stack_2539.return = workInProgress),
10250
- (JSCompiler_object_inline_stack_2539.sibling = nextPrimaryChildren),
10251
- (workInProgress.child = JSCompiler_object_inline_stack_2539),
10252
- bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2539),
10253
- (JSCompiler_object_inline_stack_2539 = workInProgress.child),
10249
+ (JSCompiler_object_inline_stack_2543.return = workInProgress),
10250
+ (JSCompiler_object_inline_stack_2543.sibling = nextPrimaryChildren),
10251
+ (workInProgress.child = JSCompiler_object_inline_stack_2543),
10252
+ bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2543),
10253
+ (JSCompiler_object_inline_stack_2543 = workInProgress.child),
10254
10254
  (nextPrimaryChildren = current.child.memoizedState),
10255
10255
  null === nextPrimaryChildren
10256
10256
  ? (nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes))
@@ -10266,18 +10266,18 @@
10266
10266
  baseLanes: nextPrimaryChildren.baseLanes | renderLanes,
10267
10267
  cachePool: mode
10268
10268
  })),
10269
- (JSCompiler_object_inline_stack_2539.memoizedState =
10269
+ (JSCompiler_object_inline_stack_2543.memoizedState =
10270
10270
  nextPrimaryChildren),
10271
- (JSCompiler_object_inline_stack_2539.childLanes =
10271
+ (JSCompiler_object_inline_stack_2543.childLanes =
10272
10272
  getRemainingWorkInPrimaryTree(
10273
10273
  current,
10274
- JSCompiler_object_inline_digest_2538,
10274
+ JSCompiler_object_inline_digest_2542,
10275
10275
  renderLanes
10276
10276
  )),
10277
10277
  (workInProgress.memoizedState = SUSPENDED_MARKER),
10278
10278
  bailoutOffscreenComponent(
10279
10279
  current.child,
10280
- JSCompiler_object_inline_stack_2539
10280
+ JSCompiler_object_inline_stack_2543
10281
10281
  )
10282
10282
  );
10283
10283
  pushPrimaryTreeSuspenseHandler(workInProgress);
@@ -10285,16 +10285,16 @@
10285
10285
  current = renderLanes.sibling;
10286
10286
  renderLanes = createWorkInProgress(renderLanes, {
10287
10287
  mode: "visible",
10288
- children: JSCompiler_object_inline_stack_2539.children
10288
+ children: JSCompiler_object_inline_stack_2543.children
10289
10289
  });
10290
10290
  renderLanes.return = workInProgress;
10291
10291
  renderLanes.sibling = null;
10292
10292
  null !== current &&
10293
- ((JSCompiler_object_inline_digest_2538 = workInProgress.deletions),
10294
- null === JSCompiler_object_inline_digest_2538
10293
+ ((JSCompiler_object_inline_digest_2542 = workInProgress.deletions),
10294
+ null === JSCompiler_object_inline_digest_2542
10295
10295
  ? ((workInProgress.deletions = [current]),
10296
10296
  (workInProgress.flags |= 16))
10297
- : JSCompiler_object_inline_digest_2538.push(current));
10297
+ : JSCompiler_object_inline_digest_2542.push(current));
10298
10298
  workInProgress.child = renderLanes;
10299
10299
  workInProgress.memoizedState = null;
10300
10300
  return renderLanes;
@@ -14702,26 +14702,47 @@
14702
14702
  parentFiber = parentFiber.sibling;
14703
14703
  }
14704
14704
  }
14705
- function recursivelyAccumulateSuspenseyCommit(parentFiber) {
14705
+ function recursivelyAccumulateSuspenseyCommit(
14706
+ parentFiber,
14707
+ committedLanes,
14708
+ suspendedState
14709
+ ) {
14706
14710
  if (parentFiber.subtreeFlags & suspenseyCommitFlag)
14707
14711
  for (parentFiber = parentFiber.child; null !== parentFiber; )
14708
- accumulateSuspenseyCommitOnFiber(parentFiber),
14712
+ accumulateSuspenseyCommitOnFiber(
14713
+ parentFiber,
14714
+ committedLanes,
14715
+ suspendedState
14716
+ ),
14709
14717
  (parentFiber = parentFiber.sibling);
14710
14718
  }
14711
- function accumulateSuspenseyCommitOnFiber(fiber) {
14719
+ function accumulateSuspenseyCommitOnFiber(
14720
+ fiber,
14721
+ committedLanes,
14722
+ suspendedState
14723
+ ) {
14712
14724
  switch (fiber.tag) {
14713
14725
  case 26:
14714
- recursivelyAccumulateSuspenseyCommit(fiber);
14726
+ recursivelyAccumulateSuspenseyCommit(
14727
+ fiber,
14728
+ committedLanes,
14729
+ suspendedState
14730
+ );
14715
14731
  fiber.flags & suspenseyCommitFlag &&
14716
14732
  null !== fiber.memoizedState &&
14717
14733
  suspendResource(
14734
+ suspendedState,
14718
14735
  currentHoistableRoot,
14719
14736
  fiber.memoizedState,
14720
14737
  fiber.memoizedProps
14721
14738
  );
14722
14739
  break;
14723
14740
  case 5:
14724
- recursivelyAccumulateSuspenseyCommit(fiber);
14741
+ recursivelyAccumulateSuspenseyCommit(
14742
+ fiber,
14743
+ committedLanes,
14744
+ suspendedState
14745
+ );
14725
14746
  break;
14726
14747
  case 3:
14727
14748
  case 4:
@@ -14729,7 +14750,11 @@
14729
14750
  currentHoistableRoot = getHoistableRoot(
14730
14751
  fiber.stateNode.containerInfo
14731
14752
  );
14732
- recursivelyAccumulateSuspenseyCommit(fiber);
14753
+ recursivelyAccumulateSuspenseyCommit(
14754
+ fiber,
14755
+ committedLanes,
14756
+ suspendedState
14757
+ );
14733
14758
  currentHoistableRoot = previousHoistableRoot;
14734
14759
  break;
14735
14760
  case 22:
@@ -14739,12 +14764,24 @@
14739
14764
  null !== previousHoistableRoot.memoizedState
14740
14765
  ? ((previousHoistableRoot = suspenseyCommitFlag),
14741
14766
  (suspenseyCommitFlag = 16777216),
14742
- recursivelyAccumulateSuspenseyCommit(fiber),
14767
+ recursivelyAccumulateSuspenseyCommit(
14768
+ fiber,
14769
+ committedLanes,
14770
+ suspendedState
14771
+ ),
14743
14772
  (suspenseyCommitFlag = previousHoistableRoot))
14744
- : recursivelyAccumulateSuspenseyCommit(fiber));
14773
+ : recursivelyAccumulateSuspenseyCommit(
14774
+ fiber,
14775
+ committedLanes,
14776
+ suspendedState
14777
+ ));
14745
14778
  break;
14746
14779
  default:
14747
- recursivelyAccumulateSuspenseyCommit(fiber);
14780
+ recursivelyAccumulateSuspenseyCommit(
14781
+ fiber,
14782
+ committedLanes,
14783
+ suspendedState
14784
+ );
14748
14785
  }
14749
14786
  }
14750
14787
  function detachAlternateSiblings(parentFiber) {
@@ -15235,18 +15272,33 @@
15235
15272
  if (
15236
15273
  suspendedCommitReason & 8192 ||
15237
15274
  16785408 === (suspendedCommitReason & 16785408)
15238
- )
15239
- if (
15240
- ((suspendedState = {
15241
- stylesheets: null,
15242
- count: 0,
15243
- unsuspend: noop$1
15244
- }),
15245
- accumulateSuspenseyCommitOnFiber(finishedWork),
15246
- (suspendedCommitReason = waitForCommitToBeReady()),
15247
- null !== suspendedCommitReason)
15248
- ) {
15249
- root.cancelPendingCommit = suspendedCommitReason(
15275
+ ) {
15276
+ suspendedCommitReason = {
15277
+ stylesheets: null,
15278
+ count: 0,
15279
+ imgCount: 0,
15280
+ imgBytes: 0,
15281
+ suspenseyImages: [],
15282
+ waitingForImages: !0,
15283
+ unsuspend: noop$1
15284
+ };
15285
+ accumulateSuspenseyCommitOnFiber(
15286
+ finishedWork,
15287
+ lanes,
15288
+ suspendedCommitReason
15289
+ );
15290
+ var timeoutOffset =
15291
+ (lanes & 62914560) === lanes
15292
+ ? globalMostRecentFallbackTime - now$1()
15293
+ : (lanes & 4194048) === lanes
15294
+ ? globalMostRecentTransitionTime - now$1()
15295
+ : 0;
15296
+ timeoutOffset = waitForCommitToBeReady(
15297
+ suspendedCommitReason,
15298
+ timeoutOffset
15299
+ );
15300
+ if (null !== timeoutOffset) {
15301
+ root.cancelPendingCommit = timeoutOffset(
15250
15302
  commitRoot.bind(
15251
15303
  null,
15252
15304
  root,
@@ -15259,6 +15311,7 @@
15259
15311
  updatedLanes,
15260
15312
  suspendedRetryLanes,
15261
15313
  exitStatus,
15314
+ suspendedCommitReason,
15262
15315
  SUSPENDED_COMMIT,
15263
15316
  completedRenderStartTime,
15264
15317
  completedRenderEndTime
@@ -15272,6 +15325,7 @@
15272
15325
  );
15273
15326
  return;
15274
15327
  }
15328
+ }
15275
15329
  commitRoot(
15276
15330
  root,
15277
15331
  finishedWork,
@@ -19925,6 +19979,71 @@
19925
19979
  );
19926
19980
  }
19927
19981
  }
19982
+ function isLikelyStaticResource(initiatorType) {
19983
+ switch (initiatorType) {
19984
+ case "css":
19985
+ case "script":
19986
+ case "font":
19987
+ case "img":
19988
+ case "image":
19989
+ case "input":
19990
+ case "link":
19991
+ return !0;
19992
+ default:
19993
+ return !1;
19994
+ }
19995
+ }
19996
+ function estimateBandwidth() {
19997
+ if ("function" === typeof performance.getEntriesByType) {
19998
+ for (
19999
+ var count = 0,
20000
+ bits = 0,
20001
+ resourceEntries = performance.getEntriesByType("resource"),
20002
+ i = 0;
20003
+ i < resourceEntries.length;
20004
+ i++
20005
+ ) {
20006
+ var entry = resourceEntries[i],
20007
+ transferSize = entry.transferSize,
20008
+ initiatorType = entry.initiatorType,
20009
+ duration = entry.duration;
20010
+ if (
20011
+ transferSize &&
20012
+ duration &&
20013
+ isLikelyStaticResource(initiatorType)
20014
+ ) {
20015
+ initiatorType = 0;
20016
+ duration = entry.responseEnd;
20017
+ for (i += 1; i < resourceEntries.length; i++) {
20018
+ var overlapEntry = resourceEntries[i],
20019
+ overlapStartTime = overlapEntry.startTime;
20020
+ if (overlapStartTime > duration) break;
20021
+ var overlapTransferSize = overlapEntry.transferSize,
20022
+ overlapInitiatorType = overlapEntry.initiatorType;
20023
+ overlapTransferSize &&
20024
+ isLikelyStaticResource(overlapInitiatorType) &&
20025
+ ((overlapEntry = overlapEntry.responseEnd),
20026
+ (initiatorType +=
20027
+ overlapTransferSize *
20028
+ (overlapEntry < duration
20029
+ ? 1
20030
+ : (duration - overlapStartTime) /
20031
+ (overlapEntry - overlapStartTime))));
20032
+ }
20033
+ --i;
20034
+ bits +=
20035
+ (8 * (transferSize + initiatorType)) / (entry.duration / 1e3);
20036
+ count++;
20037
+ if (10 < count) break;
20038
+ }
20039
+ }
20040
+ if (0 < count) return bits / count / 1e6;
20041
+ }
20042
+ return navigator.connection &&
20043
+ ((count = navigator.connection.downlink), "number" === typeof count)
20044
+ ? count
20045
+ : 5;
20046
+ }
19928
20047
  function getOwnerDocumentFromRootContainer(rootContainerElement) {
19929
20048
  return 9 === rootContainerElement.nodeType
19930
20049
  ? rootContainerElement
@@ -21041,12 +21160,7 @@
21041
21160
  ? !1
21042
21161
  : !0;
21043
21162
  }
21044
- function suspendResource(hoistableRoot, resource, props) {
21045
- if (null === suspendedState)
21046
- throw Error(
21047
- "Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug."
21048
- );
21049
- var state = suspendedState;
21163
+ function suspendResource(state, hoistableRoot, resource, props) {
21050
21164
  if (
21051
21165
  "stylesheet" === resource.type &&
21052
21166
  ("string" !== typeof props.media ||
@@ -21095,16 +21209,11 @@
21095
21209
  hoistableRoot.addEventListener("error", resource));
21096
21210
  }
21097
21211
  }
21098
- function waitForCommitToBeReady() {
21099
- if (null === suspendedState)
21100
- throw Error(
21101
- "Internal React Error: suspendedState null when it was expected to exists. Please report this as a React bug."
21102
- );
21103
- var state = suspendedState;
21212
+ function waitForCommitToBeReady(state, timeoutOffset) {
21104
21213
  state.stylesheets &&
21105
21214
  0 === state.count &&
21106
21215
  insertSuspendedStylesheets(state, state.stylesheets);
21107
- return 0 < state.count
21216
+ return 0 < state.count || 0 < state.imgCount
21108
21217
  ? function (commit) {
21109
21218
  var stylesheetTimer = setTimeout(function () {
21110
21219
  state.stylesheets &&
@@ -21114,18 +21223,41 @@
21114
21223
  state.unsuspend = null;
21115
21224
  unsuspend();
21116
21225
  }
21117
- }, 6e4);
21226
+ }, SUSPENSEY_STYLESHEET_TIMEOUT + timeoutOffset);
21227
+ 0 < state.imgBytes &&
21228
+ 0 === estimatedBytesWithinLimit &&
21229
+ (estimatedBytesWithinLimit =
21230
+ 125 * estimateBandwidth() * SUSPENSEY_IMAGE_TIME_ESTIMATE);
21231
+ var imgTimer = setTimeout(
21232
+ function () {
21233
+ state.waitingForImages = !1;
21234
+ if (
21235
+ 0 === state.count &&
21236
+ (state.stylesheets &&
21237
+ insertSuspendedStylesheets(state, state.stylesheets),
21238
+ state.unsuspend)
21239
+ ) {
21240
+ var unsuspend = state.unsuspend;
21241
+ state.unsuspend = null;
21242
+ unsuspend();
21243
+ }
21244
+ },
21245
+ (state.imgBytes > estimatedBytesWithinLimit
21246
+ ? 50
21247
+ : SUSPENSEY_IMAGE_TIMEOUT) + timeoutOffset
21248
+ );
21118
21249
  state.unsuspend = commit;
21119
21250
  return function () {
21120
21251
  state.unsuspend = null;
21121
21252
  clearTimeout(stylesheetTimer);
21253
+ clearTimeout(imgTimer);
21122
21254
  };
21123
21255
  }
21124
21256
  : null;
21125
21257
  }
21126
21258
  function onUnsuspend() {
21127
21259
  this.count--;
21128
- if (0 === this.count)
21260
+ if (0 === this.count && (0 === this.imgCount || !this.waitingForImages))
21129
21261
  if (this.stylesheets)
21130
21262
  insertSuspendedStylesheets(this, this.stylesheets);
21131
21263
  else if (this.unsuspend) {
@@ -23480,6 +23612,7 @@
23480
23612
  currentEntangledActionThenable = null,
23481
23613
  prevOnStartTransitionFinish = ReactSharedInternals.S;
23482
23614
  ReactSharedInternals.S = function (transition, returnValue) {
23615
+ globalMostRecentTransitionTime = now$1();
23483
23616
  "object" === typeof returnValue &&
23484
23617
  null !== returnValue &&
23485
23618
  "function" === typeof returnValue.then &&
@@ -25091,6 +25224,7 @@
25091
25224
  workInProgressRootRecoverableErrors = null,
25092
25225
  workInProgressRootDidIncludeRecursiveRenderUpdate = !1,
25093
25226
  globalMostRecentFallbackTime = 0,
25227
+ globalMostRecentTransitionTime = 0,
25094
25228
  FALLBACK_THROTTLE_MS = 300,
25095
25229
  workInProgressRootRenderTargetTime = Infinity,
25096
25230
  RENDER_TIMEOUT_MS = 500,
@@ -25498,7 +25632,10 @@
25498
25632
  };
25499
25633
  var globalDocument = "undefined" === typeof document ? null : document,
25500
25634
  tagCaches = null,
25501
- suspendedState = null,
25635
+ SUSPENSEY_STYLESHEET_TIMEOUT = 6e4,
25636
+ SUSPENSEY_IMAGE_TIMEOUT = 800,
25637
+ SUSPENSEY_IMAGE_TIME_ESTIMATE = 500,
25638
+ estimatedBytesWithinLimit = 0,
25502
25639
  LAST_PRECEDENCE = null,
25503
25640
  precedencesByRoot = null,
25504
25641
  NotPendingTransition = NotPending,
@@ -25663,11 +25800,11 @@
25663
25800
  };
25664
25801
  (function () {
25665
25802
  var isomorphicReactPackageVersion = React.version;
25666
- if ("19.2.0-canary-67a44bcd-20250915" !== isomorphicReactPackageVersion)
25803
+ if ("19.2.0-canary-5e0c951b-20250916" !== isomorphicReactPackageVersion)
25667
25804
  throw Error(
25668
25805
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
25669
25806
  (isomorphicReactPackageVersion +
25670
- "\n - react-dom: 19.2.0-canary-67a44bcd-20250915\nLearn more: https://react.dev/warnings/version-mismatch")
25807
+ "\n - react-dom: 19.2.0-canary-5e0c951b-20250916\nLearn more: https://react.dev/warnings/version-mismatch")
25671
25808
  );
25672
25809
  })();
25673
25810
  ("function" === typeof Map &&
@@ -25704,10 +25841,10 @@
25704
25841
  !(function () {
25705
25842
  var internals = {
25706
25843
  bundleType: 1,
25707
- version: "19.2.0-canary-67a44bcd-20250915",
25844
+ version: "19.2.0-canary-5e0c951b-20250916",
25708
25845
  rendererPackageName: "react-dom",
25709
25846
  currentDispatcherRef: ReactSharedInternals,
25710
- reconcilerVersion: "19.2.0-canary-67a44bcd-20250915"
25847
+ reconcilerVersion: "19.2.0-canary-5e0c951b-20250916"
25711
25848
  };
25712
25849
  internals.overrideHookState = overrideHookState;
25713
25850
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -26175,7 +26312,7 @@
26175
26312
  exports.useFormStatus = function () {
26176
26313
  return resolveDispatcher().useHostTransitionStatus();
26177
26314
  };
26178
- exports.version = "19.2.0-canary-67a44bcd-20250915";
26315
+ exports.version = "19.2.0-canary-5e0c951b-20250916";
26179
26316
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
26180
26317
  "function" ===
26181
26318
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&