react-dom 19.1.0-canary-62208bee-20250102 → 19.1.0-canary-3ce77d55-20250106

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.
@@ -833,41 +833,6 @@
833
833
  }
834
834
  return hook.checkDCE ? !0 : !1;
835
835
  }
836
- function onCommitRoot$1(root, eventPriority) {
837
- if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
838
- try {
839
- var didError = 128 === (root.current.flags & 128);
840
- switch (eventPriority) {
841
- case DiscreteEventPriority:
842
- var schedulerPriority = ImmediatePriority;
843
- break;
844
- case ContinuousEventPriority:
845
- schedulerPriority = UserBlockingPriority;
846
- break;
847
- case DefaultEventPriority:
848
- schedulerPriority = NormalPriority$1;
849
- break;
850
- case IdleEventPriority:
851
- schedulerPriority = IdlePriority;
852
- break;
853
- default:
854
- schedulerPriority = NormalPriority$1;
855
- }
856
- injectedHook.onCommitFiberRoot(
857
- rendererID,
858
- root,
859
- schedulerPriority,
860
- didError
861
- );
862
- } catch (err) {
863
- hasLoggedError ||
864
- ((hasLoggedError = !0),
865
- console.error(
866
- "React instrumentation encountered an error: %s",
867
- err
868
- ));
869
- }
870
- }
871
836
  function setIsStrictModeForDevtools(newIsStrictMode) {
872
837
  "function" === typeof log$1 &&
873
838
  unstable_setDisableYieldValue(newIsStrictMode);
@@ -996,14 +961,13 @@
996
961
  );
997
962
  }
998
963
  }
999
- function getNextLanes(root, wipLanes) {
964
+ function getNextLanes(root, wipLanes, rootHasPendingCommit) {
1000
965
  var pendingLanes = root.pendingLanes;
1001
966
  if (0 === pendingLanes) return 0;
1002
967
  var nextLanes = 0,
1003
968
  suspendedLanes = root.suspendedLanes,
1004
- pingedLanes = root.pingedLanes,
1005
- warmLanes = root.warmLanes;
1006
- root = 0 !== root.finishedLanes;
969
+ pingedLanes = root.pingedLanes;
970
+ root = root.warmLanes;
1007
971
  var nonIdlePendingLanes = pendingLanes & 134217727;
1008
972
  0 !== nonIdlePendingLanes
1009
973
  ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes),
@@ -1012,28 +976,29 @@
1012
976
  : ((pingedLanes &= nonIdlePendingLanes),
1013
977
  0 !== pingedLanes
1014
978
  ? (nextLanes = getHighestPriorityLanes(pingedLanes))
1015
- : root ||
1016
- ((warmLanes = nonIdlePendingLanes & ~warmLanes),
1017
- 0 !== warmLanes &&
1018
- (nextLanes = getHighestPriorityLanes(warmLanes)))))
979
+ : rootHasPendingCommit ||
980
+ ((rootHasPendingCommit = nonIdlePendingLanes & ~root),
981
+ 0 !== rootHasPendingCommit &&
982
+ (nextLanes =
983
+ getHighestPriorityLanes(rootHasPendingCommit)))))
1019
984
  : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes),
1020
985
  0 !== nonIdlePendingLanes
1021
986
  ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes))
1022
987
  : 0 !== pingedLanes
1023
988
  ? (nextLanes = getHighestPriorityLanes(pingedLanes))
1024
- : root ||
1025
- ((warmLanes = pendingLanes & ~warmLanes),
1026
- 0 !== warmLanes &&
1027
- (nextLanes = getHighestPriorityLanes(warmLanes))));
989
+ : rootHasPendingCommit ||
990
+ ((rootHasPendingCommit = pendingLanes & ~root),
991
+ 0 !== rootHasPendingCommit &&
992
+ (nextLanes = getHighestPriorityLanes(rootHasPendingCommit))));
1028
993
  return 0 === nextLanes
1029
994
  ? 0
1030
995
  : 0 !== wipLanes &&
1031
996
  wipLanes !== nextLanes &&
1032
997
  0 === (wipLanes & suspendedLanes) &&
1033
998
  ((suspendedLanes = nextLanes & -nextLanes),
1034
- (warmLanes = wipLanes & -wipLanes),
1035
- suspendedLanes >= warmLanes ||
1036
- (32 === suspendedLanes && 0 !== (warmLanes & 4194176)))
999
+ (rootHasPendingCommit = wipLanes & -wipLanes),
1000
+ suspendedLanes >= rootHasPendingCommit ||
1001
+ (32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194176)))
1037
1002
  ? wipLanes
1038
1003
  : nextLanes;
1039
1004
  }
@@ -3607,100 +3572,6 @@
3607
3572
  "true" === elem.contentEditable)
3608
3573
  );
3609
3574
  }
3610
- function restoreSelection(priorSelectionInformation, containerInfo) {
3611
- var curFocusedElem = getActiveElementDeep(containerInfo);
3612
- containerInfo = priorSelectionInformation.focusedElem;
3613
- var priorSelectionRange = priorSelectionInformation.selectionRange;
3614
- if (
3615
- curFocusedElem !== containerInfo &&
3616
- containerInfo &&
3617
- containerInfo.ownerDocument &&
3618
- containsNode(containerInfo.ownerDocument.documentElement, containerInfo)
3619
- ) {
3620
- if (
3621
- null !== priorSelectionRange &&
3622
- hasSelectionCapabilities(containerInfo)
3623
- )
3624
- if (
3625
- ((priorSelectionInformation = priorSelectionRange.start),
3626
- (curFocusedElem = priorSelectionRange.end),
3627
- void 0 === curFocusedElem &&
3628
- (curFocusedElem = priorSelectionInformation),
3629
- "selectionStart" in containerInfo)
3630
- )
3631
- (containerInfo.selectionStart = priorSelectionInformation),
3632
- (containerInfo.selectionEnd = Math.min(
3633
- curFocusedElem,
3634
- containerInfo.value.length
3635
- ));
3636
- else if (
3637
- ((curFocusedElem =
3638
- ((priorSelectionInformation =
3639
- containerInfo.ownerDocument || document) &&
3640
- priorSelectionInformation.defaultView) ||
3641
- window),
3642
- curFocusedElem.getSelection)
3643
- ) {
3644
- curFocusedElem = curFocusedElem.getSelection();
3645
- var length = containerInfo.textContent.length,
3646
- start = Math.min(priorSelectionRange.start, length);
3647
- priorSelectionRange =
3648
- void 0 === priorSelectionRange.end
3649
- ? start
3650
- : Math.min(priorSelectionRange.end, length);
3651
- !curFocusedElem.extend &&
3652
- start > priorSelectionRange &&
3653
- ((length = priorSelectionRange),
3654
- (priorSelectionRange = start),
3655
- (start = length));
3656
- length = getNodeForCharacterOffset(containerInfo, start);
3657
- var endMarker = getNodeForCharacterOffset(
3658
- containerInfo,
3659
- priorSelectionRange
3660
- );
3661
- length &&
3662
- endMarker &&
3663
- (1 !== curFocusedElem.rangeCount ||
3664
- curFocusedElem.anchorNode !== length.node ||
3665
- curFocusedElem.anchorOffset !== length.offset ||
3666
- curFocusedElem.focusNode !== endMarker.node ||
3667
- curFocusedElem.focusOffset !== endMarker.offset) &&
3668
- ((priorSelectionInformation =
3669
- priorSelectionInformation.createRange()),
3670
- priorSelectionInformation.setStart(length.node, length.offset),
3671
- curFocusedElem.removeAllRanges(),
3672
- start > priorSelectionRange
3673
- ? (curFocusedElem.addRange(priorSelectionInformation),
3674
- curFocusedElem.extend(endMarker.node, endMarker.offset))
3675
- : (priorSelectionInformation.setEnd(
3676
- endMarker.node,
3677
- endMarker.offset
3678
- ),
3679
- curFocusedElem.addRange(priorSelectionInformation)));
3680
- }
3681
- priorSelectionInformation = [];
3682
- for (
3683
- curFocusedElem = containerInfo;
3684
- (curFocusedElem = curFocusedElem.parentNode);
3685
-
3686
- )
3687
- 1 === curFocusedElem.nodeType &&
3688
- priorSelectionInformation.push({
3689
- element: curFocusedElem,
3690
- left: curFocusedElem.scrollLeft,
3691
- top: curFocusedElem.scrollTop
3692
- });
3693
- "function" === typeof containerInfo.focus && containerInfo.focus();
3694
- for (
3695
- containerInfo = 0;
3696
- containerInfo < priorSelectionInformation.length;
3697
- containerInfo++
3698
- )
3699
- (curFocusedElem = priorSelectionInformation[containerInfo]),
3700
- (curFocusedElem.element.scrollLeft = curFocusedElem.left),
3701
- (curFocusedElem.element.scrollTop = curFocusedElem.top);
3702
- }
3703
- }
3704
3575
  function constructSelectEvent(
3705
3576
  dispatchQueue,
3706
3577
  nativeEvent,
@@ -5373,7 +5244,7 @@
5373
5244
  null;
5374
5245
  hookTypesUpdateIndexDev = -1;
5375
5246
  null !== current &&
5376
- (current.flags & 31457280) !== (workInProgress.flags & 31457280) &&
5247
+ (current.flags & 29360128) !== (workInProgress.flags & 29360128) &&
5377
5248
  console.error(
5378
5249
  "Internal React error: Expected static flag was missing. Please notify the React team."
5379
5250
  );
@@ -8515,14 +8386,14 @@
8515
8386
  if (null === ref)
8516
8387
  null !== current &&
8517
8388
  null !== current.ref &&
8518
- (workInProgress.flags |= 2097664);
8389
+ (workInProgress.flags |= 4194816);
8519
8390
  else {
8520
8391
  if ("function" !== typeof ref && "object" !== typeof ref)
8521
8392
  throw Error(
8522
8393
  "Expected ref to be a function, an object returned by React.createRef(), or undefined/null."
8523
8394
  );
8524
8395
  if (null === current || current.ref !== ref)
8525
- workInProgress.flags |= 2097664;
8396
+ workInProgress.flags |= 4194816;
8526
8397
  }
8527
8398
  }
8528
8399
  function updateFunctionComponent(
@@ -9222,32 +9093,32 @@
9222
9093
  return current;
9223
9094
  }
9224
9095
  function updateSuspenseComponent(current, workInProgress, renderLanes) {
9225
- var JSCompiler_object_inline_digest_2313;
9226
- var JSCompiler_object_inline_stack_2314 = workInProgress.pendingProps;
9096
+ var JSCompiler_object_inline_digest_2350;
9097
+ var JSCompiler_object_inline_stack_2351 = workInProgress.pendingProps;
9227
9098
  shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
9228
- var JSCompiler_object_inline_componentStack_2315 = !1;
9099
+ var JSCompiler_object_inline_componentStack_2352 = !1;
9229
9100
  var didSuspend = 0 !== (workInProgress.flags & 128);
9230
- (JSCompiler_object_inline_digest_2313 = didSuspend) ||
9231
- (JSCompiler_object_inline_digest_2313 =
9101
+ (JSCompiler_object_inline_digest_2350 = didSuspend) ||
9102
+ (JSCompiler_object_inline_digest_2350 =
9232
9103
  null !== current && null === current.memoizedState
9233
9104
  ? !1
9234
9105
  : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
9235
- JSCompiler_object_inline_digest_2313 &&
9236
- ((JSCompiler_object_inline_componentStack_2315 = !0),
9106
+ JSCompiler_object_inline_digest_2350 &&
9107
+ ((JSCompiler_object_inline_componentStack_2352 = !0),
9237
9108
  (workInProgress.flags &= -129));
9238
- JSCompiler_object_inline_digest_2313 = 0 !== (workInProgress.flags & 32);
9109
+ JSCompiler_object_inline_digest_2350 = 0 !== (workInProgress.flags & 32);
9239
9110
  workInProgress.flags &= -33;
9240
9111
  if (null === current) {
9241
9112
  if (isHydrating) {
9242
- JSCompiler_object_inline_componentStack_2315
9113
+ JSCompiler_object_inline_componentStack_2352
9243
9114
  ? pushPrimaryTreeSuspenseHandler(workInProgress)
9244
9115
  : reuseSuspenseHandlerOnStack(workInProgress);
9245
9116
  if (isHydrating) {
9246
- var JSCompiler_object_inline_message_2312 = nextHydratableInstance;
9117
+ var JSCompiler_object_inline_message_2349 = nextHydratableInstance;
9247
9118
  var JSCompiler_temp;
9248
- if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2312)) {
9119
+ if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2349)) {
9249
9120
  c: {
9250
- var instance = JSCompiler_object_inline_message_2312;
9121
+ var instance = JSCompiler_object_inline_message_2349;
9251
9122
  for (
9252
9123
  JSCompiler_temp = rootOrSingletonContext;
9253
9124
  8 !== instance.nodeType;
@@ -9289,77 +9160,77 @@
9289
9160
  JSCompiler_temp &&
9290
9161
  (warnNonHydratedInstance(
9291
9162
  workInProgress,
9292
- JSCompiler_object_inline_message_2312
9163
+ JSCompiler_object_inline_message_2349
9293
9164
  ),
9294
9165
  throwOnHydrationMismatch(workInProgress));
9295
9166
  }
9296
- JSCompiler_object_inline_message_2312 = workInProgress.memoizedState;
9167
+ JSCompiler_object_inline_message_2349 = workInProgress.memoizedState;
9297
9168
  if (
9298
- null !== JSCompiler_object_inline_message_2312 &&
9299
- ((JSCompiler_object_inline_message_2312 =
9300
- JSCompiler_object_inline_message_2312.dehydrated),
9301
- null !== JSCompiler_object_inline_message_2312)
9169
+ null !== JSCompiler_object_inline_message_2349 &&
9170
+ ((JSCompiler_object_inline_message_2349 =
9171
+ JSCompiler_object_inline_message_2349.dehydrated),
9172
+ null !== JSCompiler_object_inline_message_2349)
9302
9173
  )
9303
9174
  return (
9304
- isSuspenseInstanceFallback(JSCompiler_object_inline_message_2312)
9175
+ isSuspenseInstanceFallback(JSCompiler_object_inline_message_2349)
9305
9176
  ? (workInProgress.lanes = 32)
9306
9177
  : (workInProgress.lanes = 536870912),
9307
9178
  null
9308
9179
  );
9309
9180
  popSuspenseHandler(workInProgress);
9310
9181
  }
9311
- JSCompiler_object_inline_message_2312 =
9312
- JSCompiler_object_inline_stack_2314.children;
9313
- JSCompiler_object_inline_stack_2314 =
9314
- JSCompiler_object_inline_stack_2314.fallback;
9315
- if (JSCompiler_object_inline_componentStack_2315)
9182
+ JSCompiler_object_inline_message_2349 =
9183
+ JSCompiler_object_inline_stack_2351.children;
9184
+ JSCompiler_object_inline_stack_2351 =
9185
+ JSCompiler_object_inline_stack_2351.fallback;
9186
+ if (JSCompiler_object_inline_componentStack_2352)
9316
9187
  return (
9317
9188
  reuseSuspenseHandlerOnStack(workInProgress),
9318
- (JSCompiler_object_inline_componentStack_2315 =
9189
+ (JSCompiler_object_inline_componentStack_2352 =
9319
9190
  workInProgress.mode),
9320
- (JSCompiler_object_inline_message_2312 =
9191
+ (JSCompiler_object_inline_message_2349 =
9321
9192
  mountWorkInProgressOffscreenFiber(
9322
9193
  {
9323
9194
  mode: "hidden",
9324
- children: JSCompiler_object_inline_message_2312
9195
+ children: JSCompiler_object_inline_message_2349
9325
9196
  },
9326
- JSCompiler_object_inline_componentStack_2315
9197
+ JSCompiler_object_inline_componentStack_2352
9327
9198
  )),
9328
- (JSCompiler_object_inline_stack_2314 = createFiberFromFragment(
9329
- JSCompiler_object_inline_stack_2314,
9330
- JSCompiler_object_inline_componentStack_2315,
9199
+ (JSCompiler_object_inline_stack_2351 = createFiberFromFragment(
9200
+ JSCompiler_object_inline_stack_2351,
9201
+ JSCompiler_object_inline_componentStack_2352,
9331
9202
  renderLanes,
9332
9203
  null
9333
9204
  )),
9334
- (JSCompiler_object_inline_message_2312.return = workInProgress),
9335
- (JSCompiler_object_inline_stack_2314.return = workInProgress),
9336
- (JSCompiler_object_inline_message_2312.sibling =
9337
- JSCompiler_object_inline_stack_2314),
9338
- (workInProgress.child = JSCompiler_object_inline_message_2312),
9339
- (JSCompiler_object_inline_componentStack_2315 =
9205
+ (JSCompiler_object_inline_message_2349.return = workInProgress),
9206
+ (JSCompiler_object_inline_stack_2351.return = workInProgress),
9207
+ (JSCompiler_object_inline_message_2349.sibling =
9208
+ JSCompiler_object_inline_stack_2351),
9209
+ (workInProgress.child = JSCompiler_object_inline_message_2349),
9210
+ (JSCompiler_object_inline_componentStack_2352 =
9340
9211
  workInProgress.child),
9341
- (JSCompiler_object_inline_componentStack_2315.memoizedState =
9212
+ (JSCompiler_object_inline_componentStack_2352.memoizedState =
9342
9213
  mountSuspenseOffscreenState(renderLanes)),
9343
- (JSCompiler_object_inline_componentStack_2315.childLanes =
9214
+ (JSCompiler_object_inline_componentStack_2352.childLanes =
9344
9215
  getRemainingWorkInPrimaryTree(
9345
9216
  current,
9346
- JSCompiler_object_inline_digest_2313,
9217
+ JSCompiler_object_inline_digest_2350,
9347
9218
  renderLanes
9348
9219
  )),
9349
9220
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9350
- JSCompiler_object_inline_stack_2314
9221
+ JSCompiler_object_inline_stack_2351
9351
9222
  );
9352
9223
  pushPrimaryTreeSuspenseHandler(workInProgress);
9353
9224
  return mountSuspensePrimaryChildren(
9354
9225
  workInProgress,
9355
- JSCompiler_object_inline_message_2312
9226
+ JSCompiler_object_inline_message_2349
9356
9227
  );
9357
9228
  }
9358
9229
  var prevState = current.memoizedState;
9359
9230
  if (
9360
9231
  null !== prevState &&
9361
- ((JSCompiler_object_inline_message_2312 = prevState.dehydrated),
9362
- null !== JSCompiler_object_inline_message_2312)
9232
+ ((JSCompiler_object_inline_message_2349 = prevState.dehydrated),
9233
+ null !== JSCompiler_object_inline_message_2349)
9363
9234
  ) {
9364
9235
  if (didSuspend)
9365
9236
  workInProgress.flags & 256
@@ -9376,94 +9247,94 @@
9376
9247
  (workInProgress.flags |= 128),
9377
9248
  (workInProgress = null))
9378
9249
  : (reuseSuspenseHandlerOnStack(workInProgress),
9379
- (JSCompiler_object_inline_componentStack_2315 =
9380
- JSCompiler_object_inline_stack_2314.fallback),
9381
- (JSCompiler_object_inline_message_2312 = workInProgress.mode),
9382
- (JSCompiler_object_inline_stack_2314 =
9250
+ (JSCompiler_object_inline_componentStack_2352 =
9251
+ JSCompiler_object_inline_stack_2351.fallback),
9252
+ (JSCompiler_object_inline_message_2349 = workInProgress.mode),
9253
+ (JSCompiler_object_inline_stack_2351 =
9383
9254
  mountWorkInProgressOffscreenFiber(
9384
9255
  {
9385
9256
  mode: "visible",
9386
- children: JSCompiler_object_inline_stack_2314.children
9257
+ children: JSCompiler_object_inline_stack_2351.children
9387
9258
  },
9388
- JSCompiler_object_inline_message_2312
9259
+ JSCompiler_object_inline_message_2349
9389
9260
  )),
9390
- (JSCompiler_object_inline_componentStack_2315 =
9261
+ (JSCompiler_object_inline_componentStack_2352 =
9391
9262
  createFiberFromFragment(
9392
- JSCompiler_object_inline_componentStack_2315,
9393
- JSCompiler_object_inline_message_2312,
9263
+ JSCompiler_object_inline_componentStack_2352,
9264
+ JSCompiler_object_inline_message_2349,
9394
9265
  renderLanes,
9395
9266
  null
9396
9267
  )),
9397
- (JSCompiler_object_inline_componentStack_2315.flags |= 2),
9398
- (JSCompiler_object_inline_stack_2314.return = workInProgress),
9399
- (JSCompiler_object_inline_componentStack_2315.return =
9268
+ (JSCompiler_object_inline_componentStack_2352.flags |= 2),
9269
+ (JSCompiler_object_inline_stack_2351.return = workInProgress),
9270
+ (JSCompiler_object_inline_componentStack_2352.return =
9400
9271
  workInProgress),
9401
- (JSCompiler_object_inline_stack_2314.sibling =
9402
- JSCompiler_object_inline_componentStack_2315),
9403
- (workInProgress.child = JSCompiler_object_inline_stack_2314),
9272
+ (JSCompiler_object_inline_stack_2351.sibling =
9273
+ JSCompiler_object_inline_componentStack_2352),
9274
+ (workInProgress.child = JSCompiler_object_inline_stack_2351),
9404
9275
  reconcileChildFibers(
9405
9276
  workInProgress,
9406
9277
  current.child,
9407
9278
  null,
9408
9279
  renderLanes
9409
9280
  ),
9410
- (JSCompiler_object_inline_stack_2314 = workInProgress.child),
9411
- (JSCompiler_object_inline_stack_2314.memoizedState =
9281
+ (JSCompiler_object_inline_stack_2351 = workInProgress.child),
9282
+ (JSCompiler_object_inline_stack_2351.memoizedState =
9412
9283
  mountSuspenseOffscreenState(renderLanes)),
9413
- (JSCompiler_object_inline_stack_2314.childLanes =
9284
+ (JSCompiler_object_inline_stack_2351.childLanes =
9414
9285
  getRemainingWorkInPrimaryTree(
9415
9286
  current,
9416
- JSCompiler_object_inline_digest_2313,
9287
+ JSCompiler_object_inline_digest_2350,
9417
9288
  renderLanes
9418
9289
  )),
9419
9290
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9420
9291
  (workInProgress =
9421
- JSCompiler_object_inline_componentStack_2315));
9292
+ JSCompiler_object_inline_componentStack_2352));
9422
9293
  else if (
9423
9294
  (pushPrimaryTreeSuspenseHandler(workInProgress),
9424
9295
  isHydrating &&
9425
9296
  console.error(
9426
9297
  "We should not be hydrating here. This is a bug in React. Please file a bug."
9427
9298
  ),
9428
- isSuspenseInstanceFallback(JSCompiler_object_inline_message_2312))
9299
+ isSuspenseInstanceFallback(JSCompiler_object_inline_message_2349))
9429
9300
  ) {
9430
- JSCompiler_object_inline_digest_2313 =
9431
- JSCompiler_object_inline_message_2312.nextSibling &&
9432
- JSCompiler_object_inline_message_2312.nextSibling.dataset;
9433
- if (JSCompiler_object_inline_digest_2313) {
9434
- JSCompiler_temp = JSCompiler_object_inline_digest_2313.dgst;
9435
- var message = JSCompiler_object_inline_digest_2313.msg;
9436
- instance = JSCompiler_object_inline_digest_2313.stck;
9437
- var componentStack = JSCompiler_object_inline_digest_2313.cstck;
9301
+ JSCompiler_object_inline_digest_2350 =
9302
+ JSCompiler_object_inline_message_2349.nextSibling &&
9303
+ JSCompiler_object_inline_message_2349.nextSibling.dataset;
9304
+ if (JSCompiler_object_inline_digest_2350) {
9305
+ JSCompiler_temp = JSCompiler_object_inline_digest_2350.dgst;
9306
+ var message = JSCompiler_object_inline_digest_2350.msg;
9307
+ instance = JSCompiler_object_inline_digest_2350.stck;
9308
+ var componentStack = JSCompiler_object_inline_digest_2350.cstck;
9438
9309
  }
9439
- JSCompiler_object_inline_message_2312 = message;
9440
- JSCompiler_object_inline_digest_2313 = JSCompiler_temp;
9441
- JSCompiler_object_inline_stack_2314 = instance;
9442
- JSCompiler_temp = JSCompiler_object_inline_componentStack_2315 =
9310
+ JSCompiler_object_inline_message_2349 = message;
9311
+ JSCompiler_object_inline_digest_2350 = JSCompiler_temp;
9312
+ JSCompiler_object_inline_stack_2351 = instance;
9313
+ JSCompiler_temp = JSCompiler_object_inline_componentStack_2352 =
9443
9314
  componentStack;
9444
- JSCompiler_object_inline_componentStack_2315 =
9445
- JSCompiler_object_inline_message_2312
9446
- ? Error(JSCompiler_object_inline_message_2312)
9315
+ JSCompiler_object_inline_componentStack_2352 =
9316
+ JSCompiler_object_inline_message_2349
9317
+ ? Error(JSCompiler_object_inline_message_2349)
9447
9318
  : Error(
9448
9319
  "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
9449
9320
  );
9450
- JSCompiler_object_inline_componentStack_2315.stack =
9451
- JSCompiler_object_inline_stack_2314 || "";
9452
- JSCompiler_object_inline_componentStack_2315.digest =
9453
- JSCompiler_object_inline_digest_2313;
9454
- JSCompiler_object_inline_digest_2313 =
9321
+ JSCompiler_object_inline_componentStack_2352.stack =
9322
+ JSCompiler_object_inline_stack_2351 || "";
9323
+ JSCompiler_object_inline_componentStack_2352.digest =
9324
+ JSCompiler_object_inline_digest_2350;
9325
+ JSCompiler_object_inline_digest_2350 =
9455
9326
  void 0 === JSCompiler_temp ? null : JSCompiler_temp;
9456
- JSCompiler_object_inline_stack_2314 = {
9457
- value: JSCompiler_object_inline_componentStack_2315,
9327
+ JSCompiler_object_inline_stack_2351 = {
9328
+ value: JSCompiler_object_inline_componentStack_2352,
9458
9329
  source: null,
9459
- stack: JSCompiler_object_inline_digest_2313
9330
+ stack: JSCompiler_object_inline_digest_2350
9460
9331
  };
9461
- "string" === typeof JSCompiler_object_inline_digest_2313 &&
9332
+ "string" === typeof JSCompiler_object_inline_digest_2350 &&
9462
9333
  CapturedStacks.set(
9463
- JSCompiler_object_inline_componentStack_2315,
9464
- JSCompiler_object_inline_stack_2314
9334
+ JSCompiler_object_inline_componentStack_2352,
9335
+ JSCompiler_object_inline_stack_2351
9465
9336
  );
9466
- queueHydrationError(JSCompiler_object_inline_stack_2314);
9337
+ queueHydrationError(JSCompiler_object_inline_stack_2351);
9467
9338
  workInProgress = retrySuspenseComponentWithoutHydrating(
9468
9339
  current,
9469
9340
  workInProgress,
@@ -9477,44 +9348,44 @@
9477
9348
  renderLanes,
9478
9349
  !1
9479
9350
  ),
9480
- (JSCompiler_object_inline_digest_2313 =
9351
+ (JSCompiler_object_inline_digest_2350 =
9481
9352
  0 !== (renderLanes & current.childLanes)),
9482
- didReceiveUpdate || JSCompiler_object_inline_digest_2313)
9353
+ didReceiveUpdate || JSCompiler_object_inline_digest_2350)
9483
9354
  ) {
9484
- JSCompiler_object_inline_digest_2313 = workInProgressRoot;
9355
+ JSCompiler_object_inline_digest_2350 = workInProgressRoot;
9485
9356
  if (
9486
- null !== JSCompiler_object_inline_digest_2313 &&
9487
- ((JSCompiler_object_inline_stack_2314 = renderLanes & -renderLanes),
9488
- (JSCompiler_object_inline_stack_2314 =
9489
- 0 !== (JSCompiler_object_inline_stack_2314 & 42)
9357
+ null !== JSCompiler_object_inline_digest_2350 &&
9358
+ ((JSCompiler_object_inline_stack_2351 = renderLanes & -renderLanes),
9359
+ (JSCompiler_object_inline_stack_2351 =
9360
+ 0 !== (JSCompiler_object_inline_stack_2351 & 42)
9490
9361
  ? 1
9491
9362
  : getBumpedLaneForHydrationByLane(
9492
- JSCompiler_object_inline_stack_2314
9363
+ JSCompiler_object_inline_stack_2351
9493
9364
  )),
9494
- (JSCompiler_object_inline_stack_2314 =
9365
+ (JSCompiler_object_inline_stack_2351 =
9495
9366
  0 !==
9496
- (JSCompiler_object_inline_stack_2314 &
9497
- (JSCompiler_object_inline_digest_2313.suspendedLanes |
9367
+ (JSCompiler_object_inline_stack_2351 &
9368
+ (JSCompiler_object_inline_digest_2350.suspendedLanes |
9498
9369
  renderLanes))
9499
9370
  ? 0
9500
- : JSCompiler_object_inline_stack_2314),
9501
- 0 !== JSCompiler_object_inline_stack_2314 &&
9502
- JSCompiler_object_inline_stack_2314 !== prevState.retryLane)
9371
+ : JSCompiler_object_inline_stack_2351),
9372
+ 0 !== JSCompiler_object_inline_stack_2351 &&
9373
+ JSCompiler_object_inline_stack_2351 !== prevState.retryLane)
9503
9374
  )
9504
9375
  throw (
9505
- ((prevState.retryLane = JSCompiler_object_inline_stack_2314),
9376
+ ((prevState.retryLane = JSCompiler_object_inline_stack_2351),
9506
9377
  enqueueConcurrentRenderForLane(
9507
9378
  current,
9508
- JSCompiler_object_inline_stack_2314
9379
+ JSCompiler_object_inline_stack_2351
9509
9380
  ),
9510
9381
  scheduleUpdateOnFiber(
9511
- JSCompiler_object_inline_digest_2313,
9382
+ JSCompiler_object_inline_digest_2350,
9512
9383
  current,
9513
- JSCompiler_object_inline_stack_2314
9384
+ JSCompiler_object_inline_stack_2351
9514
9385
  ),
9515
9386
  SelectiveHydrationException)
9516
9387
  );
9517
- JSCompiler_object_inline_message_2312.data ===
9388
+ JSCompiler_object_inline_message_2349.data ===
9518
9389
  SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
9519
9390
  workInProgress = retrySuspenseComponentWithoutHydrating(
9520
9391
  current,
@@ -9522,14 +9393,14 @@
9522
9393
  renderLanes
9523
9394
  );
9524
9395
  } else
9525
- JSCompiler_object_inline_message_2312.data ===
9396
+ JSCompiler_object_inline_message_2349.data ===
9526
9397
  SUSPENSE_PENDING_START_DATA
9527
9398
  ? ((workInProgress.flags |= 192),
9528
9399
  (workInProgress.child = current.child),
9529
9400
  (workInProgress = null))
9530
9401
  : ((current = prevState.treeContext),
9531
9402
  (nextHydratableInstance = getNextHydratable(
9532
- JSCompiler_object_inline_message_2312.nextSibling
9403
+ JSCompiler_object_inline_message_2349.nextSibling
9533
9404
  )),
9534
9405
  (hydrationParentFiber = workInProgress),
9535
9406
  (isHydrating = !0),
@@ -9547,57 +9418,57 @@
9547
9418
  (treeContextProvider = workInProgress)),
9548
9419
  (workInProgress = mountSuspensePrimaryChildren(
9549
9420
  workInProgress,
9550
- JSCompiler_object_inline_stack_2314.children
9421
+ JSCompiler_object_inline_stack_2351.children
9551
9422
  )),
9552
9423
  (workInProgress.flags |= 4096));
9553
9424
  return workInProgress;
9554
9425
  }
9555
- if (JSCompiler_object_inline_componentStack_2315)
9426
+ if (JSCompiler_object_inline_componentStack_2352)
9556
9427
  return (
9557
9428
  reuseSuspenseHandlerOnStack(workInProgress),
9558
- (JSCompiler_object_inline_componentStack_2315 =
9559
- JSCompiler_object_inline_stack_2314.fallback),
9560
- (JSCompiler_object_inline_message_2312 = workInProgress.mode),
9429
+ (JSCompiler_object_inline_componentStack_2352 =
9430
+ JSCompiler_object_inline_stack_2351.fallback),
9431
+ (JSCompiler_object_inline_message_2349 = workInProgress.mode),
9561
9432
  (JSCompiler_temp = current.child),
9562
9433
  (instance = JSCompiler_temp.sibling),
9563
- (JSCompiler_object_inline_stack_2314 = createWorkInProgress(
9434
+ (JSCompiler_object_inline_stack_2351 = createWorkInProgress(
9564
9435
  JSCompiler_temp,
9565
9436
  {
9566
9437
  mode: "hidden",
9567
- children: JSCompiler_object_inline_stack_2314.children
9438
+ children: JSCompiler_object_inline_stack_2351.children
9568
9439
  }
9569
9440
  )),
9570
- (JSCompiler_object_inline_stack_2314.subtreeFlags =
9571
- JSCompiler_temp.subtreeFlags & 31457280),
9441
+ (JSCompiler_object_inline_stack_2351.subtreeFlags =
9442
+ JSCompiler_temp.subtreeFlags & 29360128),
9572
9443
  null !== instance
9573
- ? (JSCompiler_object_inline_componentStack_2315 =
9444
+ ? (JSCompiler_object_inline_componentStack_2352 =
9574
9445
  createWorkInProgress(
9575
9446
  instance,
9576
- JSCompiler_object_inline_componentStack_2315
9447
+ JSCompiler_object_inline_componentStack_2352
9577
9448
  ))
9578
- : ((JSCompiler_object_inline_componentStack_2315 =
9449
+ : ((JSCompiler_object_inline_componentStack_2352 =
9579
9450
  createFiberFromFragment(
9580
- JSCompiler_object_inline_componentStack_2315,
9581
- JSCompiler_object_inline_message_2312,
9451
+ JSCompiler_object_inline_componentStack_2352,
9452
+ JSCompiler_object_inline_message_2349,
9582
9453
  renderLanes,
9583
9454
  null
9584
9455
  )),
9585
- (JSCompiler_object_inline_componentStack_2315.flags |= 2)),
9586
- (JSCompiler_object_inline_componentStack_2315.return =
9456
+ (JSCompiler_object_inline_componentStack_2352.flags |= 2)),
9457
+ (JSCompiler_object_inline_componentStack_2352.return =
9587
9458
  workInProgress),
9588
- (JSCompiler_object_inline_stack_2314.return = workInProgress),
9589
- (JSCompiler_object_inline_stack_2314.sibling =
9590
- JSCompiler_object_inline_componentStack_2315),
9591
- (workInProgress.child = JSCompiler_object_inline_stack_2314),
9592
- (JSCompiler_object_inline_stack_2314 =
9593
- JSCompiler_object_inline_componentStack_2315),
9594
- (JSCompiler_object_inline_componentStack_2315 = workInProgress.child),
9595
- (JSCompiler_object_inline_message_2312 = current.child.memoizedState),
9596
- null === JSCompiler_object_inline_message_2312
9597
- ? (JSCompiler_object_inline_message_2312 =
9459
+ (JSCompiler_object_inline_stack_2351.return = workInProgress),
9460
+ (JSCompiler_object_inline_stack_2351.sibling =
9461
+ JSCompiler_object_inline_componentStack_2352),
9462
+ (workInProgress.child = JSCompiler_object_inline_stack_2351),
9463
+ (JSCompiler_object_inline_stack_2351 =
9464
+ JSCompiler_object_inline_componentStack_2352),
9465
+ (JSCompiler_object_inline_componentStack_2352 = workInProgress.child),
9466
+ (JSCompiler_object_inline_message_2349 = current.child.memoizedState),
9467
+ null === JSCompiler_object_inline_message_2349
9468
+ ? (JSCompiler_object_inline_message_2349 =
9598
9469
  mountSuspenseOffscreenState(renderLanes))
9599
9470
  : ((JSCompiler_temp =
9600
- JSCompiler_object_inline_message_2312.cachePool),
9471
+ JSCompiler_object_inline_message_2349.cachePool),
9601
9472
  null !== JSCompiler_temp
9602
9473
  ? ((instance = CacheContext._currentValue),
9603
9474
  (JSCompiler_temp =
@@ -9605,37 +9476,37 @@
9605
9476
  ? { parent: instance, pool: instance }
9606
9477
  : JSCompiler_temp))
9607
9478
  : (JSCompiler_temp = getSuspendedCache()),
9608
- (JSCompiler_object_inline_message_2312 = {
9479
+ (JSCompiler_object_inline_message_2349 = {
9609
9480
  baseLanes:
9610
- JSCompiler_object_inline_message_2312.baseLanes | renderLanes,
9481
+ JSCompiler_object_inline_message_2349.baseLanes | renderLanes,
9611
9482
  cachePool: JSCompiler_temp
9612
9483
  })),
9613
- (JSCompiler_object_inline_componentStack_2315.memoizedState =
9614
- JSCompiler_object_inline_message_2312),
9615
- (JSCompiler_object_inline_componentStack_2315.childLanes =
9484
+ (JSCompiler_object_inline_componentStack_2352.memoizedState =
9485
+ JSCompiler_object_inline_message_2349),
9486
+ (JSCompiler_object_inline_componentStack_2352.childLanes =
9616
9487
  getRemainingWorkInPrimaryTree(
9617
9488
  current,
9618
- JSCompiler_object_inline_digest_2313,
9489
+ JSCompiler_object_inline_digest_2350,
9619
9490
  renderLanes
9620
9491
  )),
9621
9492
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9622
- JSCompiler_object_inline_stack_2314
9493
+ JSCompiler_object_inline_stack_2351
9623
9494
  );
9624
9495
  pushPrimaryTreeSuspenseHandler(workInProgress);
9625
9496
  renderLanes = current.child;
9626
9497
  current = renderLanes.sibling;
9627
9498
  renderLanes = createWorkInProgress(renderLanes, {
9628
9499
  mode: "visible",
9629
- children: JSCompiler_object_inline_stack_2314.children
9500
+ children: JSCompiler_object_inline_stack_2351.children
9630
9501
  });
9631
9502
  renderLanes.return = workInProgress;
9632
9503
  renderLanes.sibling = null;
9633
9504
  null !== current &&
9634
- ((JSCompiler_object_inline_digest_2313 = workInProgress.deletions),
9635
- null === JSCompiler_object_inline_digest_2313
9505
+ ((JSCompiler_object_inline_digest_2350 = workInProgress.deletions),
9506
+ null === JSCompiler_object_inline_digest_2350
9636
9507
  ? ((workInProgress.deletions = [current]),
9637
9508
  (workInProgress.flags |= 16))
9638
- : JSCompiler_object_inline_digest_2313.push(current));
9509
+ : JSCompiler_object_inline_digest_2350.push(current));
9639
9510
  workInProgress.child = renderLanes;
9640
9511
  workInProgress.memoizedState = null;
9641
9512
  return renderLanes;
@@ -11333,7 +11204,7 @@
11333
11204
  if (
11334
11205
  ((firstChild = nextEffect),
11335
11206
  (root = firstChild.child),
11336
- 0 !== (firstChild.subtreeFlags & 1028) && null !== root)
11207
+ 0 !== (firstChild.subtreeFlags & 1024) && null !== root)
11337
11208
  )
11338
11209
  (root.return = firstChild), (nextEffect = root);
11339
11210
  else
@@ -11392,9 +11263,6 @@
11392
11263
  }
11393
11264
  nextEffect = firstChild.return;
11394
11265
  }
11395
- firstChild = shouldFireAfterActiveInstanceBlur;
11396
- shouldFireAfterActiveInstanceBlur = !1;
11397
- return firstChild;
11398
11266
  }
11399
11267
  function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
11400
11268
  var flags = finishedWork.flags;
@@ -11869,12 +11737,6 @@
11869
11737
  }
11870
11738
  });
11871
11739
  }
11872
- function commitMutationEffects(root, finishedWork, committedLanes) {
11873
- inProgressLanes = committedLanes;
11874
- inProgressRoot = root;
11875
- commitMutationEffectsOnFiber(finishedWork, root);
11876
- inProgressRoot = inProgressLanes = null;
11877
- }
11878
11740
  function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
11879
11741
  var deletions = parentFiber.deletions;
11880
11742
  if (null !== deletions)
@@ -12009,7 +11871,9 @@
12009
11871
  if (
12010
11872
  ((hoistableRoot = maybeNodes[i]),
12011
11873
  hoistableRoot.getAttribute("href") ===
12012
- (null == current.href ? null : current.href) &&
11874
+ (null == current.href || "" === current.href
11875
+ ? null
11876
+ : current.href) &&
12013
11877
  hoistableRoot.getAttribute("rel") ===
12014
11878
  (null == current.rel ? null : current.rel) &&
12015
11879
  hoistableRoot.getAttribute("title") ===
@@ -12402,12 +12266,6 @@
12402
12266
  parentFiber = parentFiber.sibling;
12403
12267
  }
12404
12268
  }
12405
- function commitLayoutEffects(finishedWork, root, committedLanes) {
12406
- inProgressLanes = committedLanes;
12407
- inProgressRoot = root;
12408
- commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork);
12409
- inProgressRoot = inProgressLanes = null;
12410
- }
12411
12269
  function recursivelyTraverseLayoutEffects(root, parentFiber) {
12412
12270
  if (parentFiber.subtreeFlags & 8772)
12413
12271
  for (parentFiber = parentFiber.child; null !== parentFiber; )
@@ -12654,6 +12512,14 @@
12654
12512
  flags & 2048 &&
12655
12513
  commitHookPassiveMountEffects(finishedWork, Passive | HasEffect);
12656
12514
  break;
12515
+ case 1:
12516
+ recursivelyTraversePassiveMountEffects(
12517
+ finishedRoot,
12518
+ finishedWork,
12519
+ committedLanes,
12520
+ committedTransitions
12521
+ );
12522
+ break;
12657
12523
  case 3:
12658
12524
  var prevEffectDuration = pushNestedEffectDurations();
12659
12525
  recursivelyTraversePassiveMountEffects(
@@ -13171,7 +13037,7 @@
13171
13037
  (workInProgress.deletions = null),
13172
13038
  (workInProgress.actualDuration = -0),
13173
13039
  (workInProgress.actualStartTime = -1.1));
13174
- workInProgress.flags = current.flags & 31457280;
13040
+ workInProgress.flags = current.flags & 29360128;
13175
13041
  workInProgress.childLanes = current.childLanes;
13176
13042
  workInProgress.lanes = current.lanes;
13177
13043
  workInProgress.child = current.child;
@@ -13209,7 +13075,7 @@
13209
13075
  return workInProgress;
13210
13076
  }
13211
13077
  function resetWorkInProgress(workInProgress, renderLanes) {
13212
- workInProgress.flags &= 31457282;
13078
+ workInProgress.flags &= 29360130;
13213
13079
  var current = workInProgress.alternate;
13214
13080
  null === current
13215
13081
  ? ((workInProgress.childLanes = 0),
@@ -13528,8 +13394,8 @@
13528
13394
 
13529
13395
  )
13530
13396
  (newChildLanes |= _child2.lanes | _child2.childLanes),
13531
- (subtreeFlags |= _child2.subtreeFlags & 31457280),
13532
- (subtreeFlags |= _child2.flags & 31457280),
13397
+ (subtreeFlags |= _child2.subtreeFlags & 29360128),
13398
+ (subtreeFlags |= _child2.flags & 29360128),
13533
13399
  (_treeBaseDuration += _child2.treeBaseDuration),
13534
13400
  (_child2 = _child2.sibling);
13535
13401
  completedWork.treeBaseDuration = _treeBaseDuration;
@@ -13541,8 +13407,8 @@
13541
13407
  )
13542
13408
  (newChildLanes |=
13543
13409
  _treeBaseDuration.lanes | _treeBaseDuration.childLanes),
13544
- (subtreeFlags |= _treeBaseDuration.subtreeFlags & 31457280),
13545
- (subtreeFlags |= _treeBaseDuration.flags & 31457280),
13410
+ (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128),
13411
+ (subtreeFlags |= _treeBaseDuration.flags & 29360128),
13546
13412
  (_treeBaseDuration.return = completedWork),
13547
13413
  (_treeBaseDuration = _treeBaseDuration.sibling);
13548
13414
  else if ((completedWork.mode & ProfileMode) !== NoMode) {
@@ -14451,21 +14317,17 @@
14451
14317
  default:
14452
14318
  throw Error("Unknown root exit status.");
14453
14319
  }
14454
- shouldTimeSlice.finishedWork = forceSync;
14455
- shouldTimeSlice.finishedLanes = lanes;
14456
14320
  if (null !== ReactSharedInternals.actQueue)
14457
14321
  commitRoot(
14458
14322
  shouldTimeSlice,
14323
+ forceSync,
14324
+ lanes,
14459
14325
  workInProgressRootRecoverableErrors,
14460
14326
  workInProgressTransitions,
14461
14327
  workInProgressRootDidIncludeRecursiveRenderUpdate,
14462
14328
  workInProgressDeferredLane,
14463
14329
  workInProgressRootInterleavedUpdatedLanes,
14464
- workInProgressSuspendedRetryLanes,
14465
- exitStatus,
14466
- IMMEDIATE_COMMIT,
14467
- renderStartTime,
14468
- 0
14330
+ workInProgressSuspendedRetryLanes
14469
14331
  );
14470
14332
  else {
14471
14333
  if (
@@ -14482,7 +14344,7 @@
14482
14344
  workInProgressDeferredLane,
14483
14345
  !workInProgressRootDidSkipSuspendedSiblings
14484
14346
  );
14485
- if (0 !== getNextLanes(shouldTimeSlice, 0)) break a;
14347
+ if (0 !== getNextLanes(shouldTimeSlice, 0, !0)) break a;
14486
14348
  shouldTimeSlice.timeoutHandle = scheduleTimeout(
14487
14349
  commitRootWhenReady.bind(
14488
14350
  null,
@@ -14544,18 +14406,24 @@
14544
14406
  completedRenderStartTime,
14545
14407
  completedRenderEndTime
14546
14408
  ) {
14547
- var subtreeFlags = finishedWork.subtreeFlags;
14548
- if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408))
14409
+ root.timeoutHandle = noTimeout;
14410
+ suspendedCommitReason = finishedWork.subtreeFlags;
14411
+ if (
14412
+ suspendedCommitReason & 8192 ||
14413
+ 16785408 === (suspendedCommitReason & 16785408)
14414
+ )
14549
14415
  if (
14550
14416
  ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }),
14551
14417
  accumulateSuspenseyCommitOnFiber(finishedWork),
14552
- (finishedWork = waitForCommitToBeReady()),
14553
- null !== finishedWork)
14418
+ (suspendedCommitReason = waitForCommitToBeReady()),
14419
+ null !== suspendedCommitReason)
14554
14420
  ) {
14555
- root.cancelPendingCommit = finishedWork(
14421
+ root.cancelPendingCommit = suspendedCommitReason(
14556
14422
  commitRoot.bind(
14557
14423
  null,
14558
14424
  root,
14425
+ finishedWork,
14426
+ lanes,
14559
14427
  recoverableErrors,
14560
14428
  transitions,
14561
14429
  didIncludeRenderPhaseUpdate,
@@ -14578,16 +14446,14 @@
14578
14446
  }
14579
14447
  commitRoot(
14580
14448
  root,
14449
+ finishedWork,
14450
+ lanes,
14581
14451
  recoverableErrors,
14582
14452
  transitions,
14583
14453
  didIncludeRenderPhaseUpdate,
14584
14454
  spawnedLane,
14585
14455
  updatedLanes,
14586
- suspendedRetryLanes,
14587
- exitStatus,
14588
- suspendedCommitReason,
14589
- completedRenderStartTime,
14590
- completedRenderEndTime
14456
+ suspendedRetryLanes
14591
14457
  );
14592
14458
  }
14593
14459
  function isRenderConsistentWithExternalStores(finishedWork) {
@@ -14668,8 +14534,6 @@
14668
14534
  }
14669
14535
  }
14670
14536
  function prepareFreshStack(root, lanes) {
14671
- root.finishedWork = null;
14672
- root.finishedLanes = 0;
14673
14537
  var timeoutHandle = root.timeoutHandle;
14674
14538
  timeoutHandle !== noTimeout &&
14675
14539
  ((root.timeoutHandle = noTimeout), cancelTimeout(timeoutHandle));
@@ -15025,7 +14889,7 @@
15025
14889
  }
15026
14890
  null !== ReactSharedInternals.actQueue
15027
14891
  ? workLoopSync()
15028
- : workLoopConcurrent();
14892
+ : workLoopConcurrentByScheduler();
15029
14893
  break;
15030
14894
  } catch (thrownValue$9) {
15031
14895
  handleThrow(root, thrownValue$9);
@@ -15048,7 +14912,7 @@
15048
14912
  finishQueueingConcurrentUpdates();
15049
14913
  return workInProgressRootExitStatus;
15050
14914
  }
15051
- function workLoopConcurrent() {
14915
+ function workLoopConcurrentByScheduler() {
15052
14916
  for (; null !== workInProgress && !shouldYield(); )
15053
14917
  performUnitOfWork(workInProgress);
15054
14918
  }
@@ -15249,169 +15113,315 @@
15249
15113
  }
15250
15114
  function commitRoot(
15251
15115
  root,
15116
+ finishedWork,
15117
+ lanes,
15252
15118
  recoverableErrors,
15253
15119
  transitions,
15254
15120
  didIncludeRenderPhaseUpdate,
15255
15121
  spawnedLane,
15256
15122
  updatedLanes,
15257
- suspendedRetryLanes,
15258
- exitStatus,
15259
- suspendedCommitReason,
15260
- completedRenderStartTime,
15261
- completedRenderEndTime
15262
- ) {
15263
- var prevTransition = ReactSharedInternals.T,
15264
- previousUpdateLanePriority = ReactDOMSharedInternals.p;
15265
- try {
15266
- (ReactDOMSharedInternals.p = DiscreteEventPriority),
15267
- (ReactSharedInternals.T = null),
15268
- commitRootImpl(
15269
- root,
15270
- recoverableErrors,
15271
- transitions,
15272
- didIncludeRenderPhaseUpdate,
15273
- previousUpdateLanePriority,
15274
- spawnedLane,
15275
- updatedLanes,
15276
- suspendedRetryLanes,
15277
- exitStatus,
15278
- suspendedCommitReason,
15279
- completedRenderStartTime,
15280
- completedRenderEndTime
15281
- );
15282
- } finally {
15283
- (ReactSharedInternals.T = prevTransition),
15284
- (ReactDOMSharedInternals.p = previousUpdateLanePriority);
15285
- }
15286
- }
15287
- function commitRootImpl(
15288
- root,
15289
- recoverableErrors,
15290
- transitions,
15291
- didIncludeRenderPhaseUpdate,
15292
- renderPriorityLevel,
15293
- spawnedLane,
15294
- updatedLanes,
15295
15123
  suspendedRetryLanes
15296
15124
  ) {
15125
+ root.cancelPendingCommit = null;
15297
15126
  do flushPassiveEffects();
15298
15127
  while (null !== rootWithPendingPassiveEffects);
15299
15128
  ReactStrictModeWarnings.flushLegacyContextWarning();
15300
15129
  ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings();
15301
15130
  if ((executionContext & (RenderContext | CommitContext)) !== NoContext)
15302
15131
  throw Error("Should not already be working.");
15303
- var finishedWork = root.finishedWork;
15304
- didIncludeRenderPhaseUpdate = root.finishedLanes;
15305
15132
  null !== injectedProfilingHooks &&
15306
15133
  "function" === typeof injectedProfilingHooks.markCommitStarted &&
15307
- injectedProfilingHooks.markCommitStarted(didIncludeRenderPhaseUpdate);
15308
- if (null === finishedWork) return markCommitStopped(), null;
15309
- 0 === didIncludeRenderPhaseUpdate &&
15310
- console.error(
15311
- "root.finishedLanes should not be empty during a commit. This is a bug in React."
15312
- );
15313
- root.finishedWork = null;
15314
- root.finishedLanes = 0;
15315
- if (finishedWork === root.current)
15316
- throw Error(
15317
- "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."
15134
+ injectedProfilingHooks.markCommitStarted(lanes);
15135
+ if (null === finishedWork) markCommitStopped();
15136
+ else {
15137
+ 0 === lanes &&
15138
+ console.error(
15139
+ "finishedLanes should not be empty during a commit. This is a bug in React."
15140
+ );
15141
+ if (finishedWork === root.current)
15142
+ throw Error(
15143
+ "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue."
15144
+ );
15145
+ didIncludeRenderPhaseUpdate =
15146
+ finishedWork.lanes | finishedWork.childLanes;
15147
+ didIncludeRenderPhaseUpdate |= concurrentlyUpdatedLanes;
15148
+ markRootFinished(
15149
+ root,
15150
+ lanes,
15151
+ didIncludeRenderPhaseUpdate,
15152
+ spawnedLane,
15153
+ updatedLanes,
15154
+ suspendedRetryLanes
15318
15155
  );
15319
- var remainingLanes = finishedWork.lanes | finishedWork.childLanes;
15320
- remainingLanes |= concurrentlyUpdatedLanes;
15321
- markRootFinished(
15322
- root,
15323
- didIncludeRenderPhaseUpdate,
15324
- remainingLanes,
15325
- spawnedLane,
15326
- updatedLanes,
15327
- suspendedRetryLanes
15328
- );
15329
- root === workInProgressRoot &&
15330
- ((workInProgress = workInProgressRoot = null),
15331
- (workInProgressRootRenderLanes = 0));
15332
- spawnedLane = !1;
15333
- 0 !== (finishedWork.subtreeFlags & 10256) ||
15334
- 0 !== (finishedWork.flags & 10256)
15335
- ? ((spawnedLane = !0),
15336
- (pendingPassiveEffectsRemainingLanes = remainingLanes),
15337
- (pendingPassiveTransitions = transitions),
15338
- (root.callbackNode = null),
15339
- (root.callbackPriority = 0),
15340
- (root.cancelPendingCommit = null),
15341
- scheduleCallback$1(NormalPriority$1, function () {
15342
- flushPassiveEffects(!0);
15343
- return null;
15344
- }))
15345
- : ((root.callbackNode = null),
15346
- (root.callbackPriority = 0),
15347
- (root.cancelPendingCommit = null));
15348
- commitStartTime = now();
15349
- transitions = 0 !== (finishedWork.flags & 15990);
15350
- 0 !== (finishedWork.subtreeFlags & 15990) || transitions
15351
- ? ((transitions = ReactSharedInternals.T),
15352
- (ReactSharedInternals.T = null),
15353
- (updatedLanes = ReactDOMSharedInternals.p),
15354
- (ReactDOMSharedInternals.p = DiscreteEventPriority),
15355
- (suspendedRetryLanes = executionContext),
15356
- (executionContext |= CommitContext),
15357
- commitBeforeMutationEffects(root, finishedWork),
15358
- commitMutationEffects(
15359
- root,
15360
- finishedWork,
15361
- didIncludeRenderPhaseUpdate
15362
- ),
15363
- restoreSelection(selectionInformation, root.containerInfo),
15364
- (_enabled = !!eventsEnabled),
15365
- (selectionInformation = eventsEnabled = null),
15366
- (root.current = finishedWork),
15156
+ root === workInProgressRoot &&
15157
+ ((workInProgress = workInProgressRoot = null),
15158
+ (workInProgressRootRenderLanes = 0));
15159
+ 0 !== (finishedWork.subtreeFlags & 10256) ||
15160
+ 0 !== (finishedWork.flags & 10256)
15161
+ ? ((pendingPassiveEffectsRemainingLanes =
15162
+ didIncludeRenderPhaseUpdate),
15163
+ (pendingPassiveTransitions = transitions),
15164
+ (root.callbackNode = null),
15165
+ (root.callbackPriority = 0),
15166
+ scheduleCallback$1(NormalPriority$1, function () {
15167
+ flushPassiveEffects(!0);
15168
+ return null;
15169
+ }))
15170
+ : ((root.callbackNode = null), (root.callbackPriority = 0));
15171
+ commitStartTime = now();
15172
+ transitions = 0 !== (finishedWork.flags & 13878);
15173
+ if (0 !== (finishedWork.subtreeFlags & 13878) || transitions) {
15174
+ transitions = ReactSharedInternals.T;
15175
+ ReactSharedInternals.T = null;
15176
+ spawnedLane = ReactDOMSharedInternals.p;
15177
+ ReactDOMSharedInternals.p = DiscreteEventPriority;
15178
+ updatedLanes = executionContext;
15179
+ executionContext |= CommitContext;
15180
+ try {
15181
+ commitBeforeMutationEffects(root, finishedWork);
15182
+ } finally {
15183
+ (executionContext = updatedLanes),
15184
+ (ReactDOMSharedInternals.p = spawnedLane),
15185
+ (ReactSharedInternals.T = transitions);
15186
+ }
15187
+ }
15188
+ flushMutationEffects(root, finishedWork, lanes);
15189
+ flushLayoutEffects(root, finishedWork, lanes, recoverableErrors);
15190
+ }
15191
+ }
15192
+ function flushMutationEffects(root, finishedWork, lanes) {
15193
+ var rootMutationHasEffect = 0 !== (finishedWork.flags & 13878);
15194
+ if (0 !== (finishedWork.subtreeFlags & 13878) || rootMutationHasEffect) {
15195
+ rootMutationHasEffect = ReactSharedInternals.T;
15196
+ ReactSharedInternals.T = null;
15197
+ var previousPriority = ReactDOMSharedInternals.p;
15198
+ ReactDOMSharedInternals.p = DiscreteEventPriority;
15199
+ var prevExecutionContext = executionContext;
15200
+ executionContext |= CommitContext;
15201
+ try {
15202
+ inProgressLanes = lanes;
15203
+ inProgressRoot = root;
15204
+ commitMutationEffectsOnFiber(finishedWork, root);
15205
+ inProgressRoot = inProgressLanes = null;
15206
+ lanes = selectionInformation;
15207
+ var curFocusedElem = getActiveElementDeep(root.containerInfo),
15208
+ priorFocusedElem = lanes.focusedElem,
15209
+ priorSelectionRange = lanes.selectionRange;
15210
+ if (
15211
+ curFocusedElem !== priorFocusedElem &&
15212
+ priorFocusedElem &&
15213
+ priorFocusedElem.ownerDocument &&
15214
+ containsNode(
15215
+ priorFocusedElem.ownerDocument.documentElement,
15216
+ priorFocusedElem
15217
+ )
15218
+ ) {
15219
+ if (
15220
+ null !== priorSelectionRange &&
15221
+ hasSelectionCapabilities(priorFocusedElem)
15222
+ ) {
15223
+ var start = priorSelectionRange.start,
15224
+ end = priorSelectionRange.end;
15225
+ void 0 === end && (end = start);
15226
+ if ("selectionStart" in priorFocusedElem)
15227
+ (priorFocusedElem.selectionStart = start),
15228
+ (priorFocusedElem.selectionEnd = Math.min(
15229
+ end,
15230
+ priorFocusedElem.value.length
15231
+ ));
15232
+ else {
15233
+ var doc = priorFocusedElem.ownerDocument || document,
15234
+ win = (doc && doc.defaultView) || window;
15235
+ if (win.getSelection) {
15236
+ var selection = win.getSelection(),
15237
+ length = priorFocusedElem.textContent.length,
15238
+ start$jscomp$0 = Math.min(
15239
+ priorSelectionRange.start,
15240
+ length
15241
+ ),
15242
+ end$jscomp$0 =
15243
+ void 0 === priorSelectionRange.end
15244
+ ? start$jscomp$0
15245
+ : Math.min(priorSelectionRange.end, length);
15246
+ !selection.extend &&
15247
+ start$jscomp$0 > end$jscomp$0 &&
15248
+ ((curFocusedElem = end$jscomp$0),
15249
+ (end$jscomp$0 = start$jscomp$0),
15250
+ (start$jscomp$0 = curFocusedElem));
15251
+ var startMarker = getNodeForCharacterOffset(
15252
+ priorFocusedElem,
15253
+ start$jscomp$0
15254
+ ),
15255
+ endMarker = getNodeForCharacterOffset(
15256
+ priorFocusedElem,
15257
+ end$jscomp$0
15258
+ );
15259
+ if (
15260
+ startMarker &&
15261
+ endMarker &&
15262
+ (1 !== selection.rangeCount ||
15263
+ selection.anchorNode !== startMarker.node ||
15264
+ selection.anchorOffset !== startMarker.offset ||
15265
+ selection.focusNode !== endMarker.node ||
15266
+ selection.focusOffset !== endMarker.offset)
15267
+ ) {
15268
+ var range = doc.createRange();
15269
+ range.setStart(startMarker.node, startMarker.offset);
15270
+ selection.removeAllRanges();
15271
+ start$jscomp$0 > end$jscomp$0
15272
+ ? (selection.addRange(range),
15273
+ selection.extend(endMarker.node, endMarker.offset))
15274
+ : (range.setEnd(endMarker.node, endMarker.offset),
15275
+ selection.addRange(range));
15276
+ }
15277
+ }
15278
+ }
15279
+ }
15280
+ doc = [];
15281
+ for (
15282
+ selection = priorFocusedElem;
15283
+ (selection = selection.parentNode);
15284
+
15285
+ )
15286
+ 1 === selection.nodeType &&
15287
+ doc.push({
15288
+ element: selection,
15289
+ left: selection.scrollLeft,
15290
+ top: selection.scrollTop
15291
+ });
15292
+ "function" === typeof priorFocusedElem.focus &&
15293
+ priorFocusedElem.focus();
15294
+ for (
15295
+ priorFocusedElem = 0;
15296
+ priorFocusedElem < doc.length;
15297
+ priorFocusedElem++
15298
+ ) {
15299
+ var info = doc[priorFocusedElem];
15300
+ info.element.scrollLeft = info.left;
15301
+ info.element.scrollTop = info.top;
15302
+ }
15303
+ }
15304
+ _enabled = !!eventsEnabled;
15305
+ selectionInformation = eventsEnabled = null;
15306
+ } finally {
15307
+ (executionContext = prevExecutionContext),
15308
+ (ReactDOMSharedInternals.p = previousPriority),
15309
+ (ReactSharedInternals.T = rootMutationHasEffect);
15310
+ }
15311
+ }
15312
+ root.current = finishedWork;
15313
+ }
15314
+ function flushLayoutEffects(root, finishedWork, lanes, recoverableErrors) {
15315
+ var rootHasLayoutEffect = 0 !== (finishedWork.flags & 8772);
15316
+ if (0 !== (finishedWork.subtreeFlags & 8772) || rootHasLayoutEffect) {
15317
+ rootHasLayoutEffect = ReactSharedInternals.T;
15318
+ ReactSharedInternals.T = null;
15319
+ var previousPriority = ReactDOMSharedInternals.p;
15320
+ ReactDOMSharedInternals.p = DiscreteEventPriority;
15321
+ var prevExecutionContext = executionContext;
15322
+ executionContext |= CommitContext;
15323
+ try {
15367
15324
  null !== injectedProfilingHooks &&
15368
15325
  "function" ===
15369
15326
  typeof injectedProfilingHooks.markLayoutEffectsStarted &&
15370
- injectedProfilingHooks.markLayoutEffectsStarted(
15371
- didIncludeRenderPhaseUpdate
15327
+ injectedProfilingHooks.markLayoutEffectsStarted(lanes),
15328
+ (inProgressLanes = lanes),
15329
+ (inProgressRoot = root),
15330
+ commitLayoutEffectOnFiber(
15331
+ root,
15332
+ finishedWork.alternate,
15333
+ finishedWork
15372
15334
  ),
15373
- commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate),
15374
- null !== injectedProfilingHooks &&
15375
- "function" ===
15376
- typeof injectedProfilingHooks.markLayoutEffectsStopped &&
15377
- injectedProfilingHooks.markLayoutEffectsStopped(),
15378
- requestPaint(),
15379
- (executionContext = suspendedRetryLanes),
15380
- (ReactDOMSharedInternals.p = updatedLanes),
15381
- (ReactSharedInternals.T = transitions))
15382
- : (root.current = finishedWork);
15383
- (transitions = spawnedLane)
15384
- ? ((spawnedLane = !1),
15385
- (rootWithPendingPassiveEffects = root),
15386
- (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate))
15387
- : (releaseRootPooledCache(root, remainingLanes),
15335
+ (inProgressRoot = inProgressLanes = null),
15336
+ null !== injectedProfilingHooks &&
15337
+ "function" ===
15338
+ typeof injectedProfilingHooks.markLayoutEffectsStopped &&
15339
+ injectedProfilingHooks.markLayoutEffectsStopped();
15340
+ } finally {
15341
+ (executionContext = prevExecutionContext),
15342
+ (ReactDOMSharedInternals.p = previousPriority),
15343
+ (ReactSharedInternals.T = rootHasLayoutEffect);
15344
+ }
15345
+ }
15346
+ requestPaint();
15347
+ (rootHasLayoutEffect =
15348
+ 0 !== (finishedWork.subtreeFlags & 10256) ||
15349
+ 0 !== (finishedWork.flags & 10256))
15350
+ ? ((rootWithPendingPassiveEffects = root),
15351
+ (pendingPassiveEffectsLanes = lanes))
15352
+ : (releaseRootPooledCache(root, root.pendingLanes),
15388
15353
  (nestedPassiveUpdateCount = 0),
15389
15354
  (rootWithPassiveNestedUpdates = null));
15390
- remainingLanes = root.pendingLanes;
15391
- 0 === remainingLanes && (legacyErrorBoundariesThatAlreadyFailed = null);
15392
- transitions || commitDoubleInvokeEffectsInDEV(root);
15393
- onCommitRoot$1(finishedWork.stateNode, renderPriorityLevel);
15355
+ previousPriority = root.pendingLanes;
15356
+ 0 === previousPriority && (legacyErrorBoundariesThatAlreadyFailed = null);
15357
+ rootHasLayoutEffect || commitDoubleInvokeEffectsInDEV(root);
15358
+ rootHasLayoutEffect = lanesToEventPriority(lanes);
15359
+ finishedWork = finishedWork.stateNode;
15360
+ if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot)
15361
+ try {
15362
+ var didError = 128 === (finishedWork.current.flags & 128);
15363
+ switch (rootHasLayoutEffect) {
15364
+ case DiscreteEventPriority:
15365
+ var schedulerPriority = ImmediatePriority;
15366
+ break;
15367
+ case ContinuousEventPriority:
15368
+ schedulerPriority = UserBlockingPriority;
15369
+ break;
15370
+ case DefaultEventPriority:
15371
+ schedulerPriority = NormalPriority$1;
15372
+ break;
15373
+ case IdleEventPriority:
15374
+ schedulerPriority = IdlePriority;
15375
+ break;
15376
+ default:
15377
+ schedulerPriority = NormalPriority$1;
15378
+ }
15379
+ injectedHook.onCommitFiberRoot(
15380
+ rendererID,
15381
+ finishedWork,
15382
+ schedulerPriority,
15383
+ didError
15384
+ );
15385
+ } catch (err) {
15386
+ hasLoggedError ||
15387
+ ((hasLoggedError = !0),
15388
+ console.error(
15389
+ "React instrumentation encountered an error: %s",
15390
+ err
15391
+ ));
15392
+ }
15394
15393
  isDevToolsPresent && root.memoizedUpdaters.clear();
15395
15394
  onCommitRoot();
15396
- if (null !== recoverableErrors)
15397
- for (
15398
- renderPriorityLevel = root.onRecoverableError, finishedWork = 0;
15399
- finishedWork < recoverableErrors.length;
15400
- finishedWork++
15401
- )
15402
- (remainingLanes = recoverableErrors[finishedWork]),
15403
- (spawnedLane = makeErrorInfo(remainingLanes.stack)),
15395
+ if (null !== recoverableErrors) {
15396
+ didError = ReactSharedInternals.T;
15397
+ schedulerPriority = ReactDOMSharedInternals.p;
15398
+ ReactDOMSharedInternals.p = DiscreteEventPriority;
15399
+ ReactSharedInternals.T = null;
15400
+ try {
15401
+ var onRecoverableError = root.onRecoverableError;
15402
+ for (
15403
+ finishedWork = 0;
15404
+ finishedWork < recoverableErrors.length;
15405
+ finishedWork++
15406
+ ) {
15407
+ var recoverableError = recoverableErrors[finishedWork],
15408
+ errorInfo = makeErrorInfo(recoverableError.stack);
15404
15409
  runWithFiberInDEV(
15405
- remainingLanes.source,
15406
- renderPriorityLevel,
15407
- remainingLanes.value,
15408
- spawnedLane
15410
+ recoverableError.source,
15411
+ onRecoverableError,
15412
+ recoverableError.value,
15413
+ errorInfo
15409
15414
  );
15415
+ }
15416
+ } finally {
15417
+ (ReactSharedInternals.T = didError),
15418
+ (ReactDOMSharedInternals.p = schedulerPriority);
15419
+ }
15420
+ }
15410
15421
  0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects();
15411
15422
  ensureRootIsScheduled(root);
15412
- remainingLanes = root.pendingLanes;
15413
- 0 !== (didIncludeRenderPhaseUpdate & 4194218) &&
15414
- 0 !== (remainingLanes & 42)
15423
+ previousPriority = root.pendingLanes;
15424
+ 0 !== (lanes & 4194218) && 0 !== (previousPriority & 42)
15415
15425
  ? ((nestedUpdateScheduled = !0),
15416
15426
  root === rootWithNestedUpdates
15417
15427
  ? nestedUpdateCount++
@@ -15419,7 +15429,6 @@
15419
15429
  : (nestedUpdateCount = 0);
15420
15430
  flushSyncWorkAcrossRoots_impl(0, !1);
15421
15431
  markCommitStopped();
15422
- return null;
15423
15432
  }
15424
15433
  function makeErrorInfo(componentStack) {
15425
15434
  componentStack = { componentStack: componentStack };
@@ -15784,11 +15793,9 @@
15784
15793
  mightHavePendingSyncWork = !0;
15785
15794
  null !== ReactSharedInternals.actQueue
15786
15795
  ? didScheduleMicrotask_act ||
15787
- ((didScheduleMicrotask_act = !0),
15788
- scheduleImmediateTask(processRootScheduleInMicrotask))
15796
+ ((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask())
15789
15797
  : didScheduleMicrotask ||
15790
- ((didScheduleMicrotask = !0),
15791
- scheduleImmediateTask(processRootScheduleInMicrotask));
15798
+ ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask());
15792
15799
  }
15793
15800
  function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
15794
15801
  if (!isFlushingWork && mightHavePendingSyncWork) {
@@ -15820,7 +15827,9 @@
15820
15827
  (nextLanes = workInProgressRootRenderLanes),
15821
15828
  (nextLanes = getNextLanes(
15822
15829
  root,
15823
- root === workInProgressRoot ? nextLanes : 0
15830
+ root === workInProgressRoot ? nextLanes : 0,
15831
+ null !== root.cancelPendingCommit ||
15832
+ root.timeoutHandle !== noTimeout
15824
15833
  )),
15825
15834
  0 === (nextLanes & 3) ||
15826
15835
  checkIfRootIsPrerendering(root, nextLanes) ||
@@ -15832,6 +15841,9 @@
15832
15841
  isFlushingWork = !1;
15833
15842
  }
15834
15843
  }
15844
+ function processRootScheduleInImmediateTask() {
15845
+ processRootScheduleInMicrotask();
15846
+ }
15835
15847
  function processRootScheduleInMicrotask() {
15836
15848
  mightHavePendingSyncWork =
15837
15849
  didScheduleMicrotask_act =
@@ -15883,7 +15895,8 @@
15883
15895
  suspendedLanes = workInProgressRootRenderLanes;
15884
15896
  suspendedLanes = getNextLanes(
15885
15897
  root,
15886
- root === currentTime ? suspendedLanes : 0
15898
+ root === currentTime ? suspendedLanes : 0,
15899
+ null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
15887
15900
  );
15888
15901
  pingedLanes = root.callbackNode;
15889
15902
  if (
@@ -15947,7 +15960,10 @@
15947
15960
  workInProgressRootRenderLanes;
15948
15961
  workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
15949
15962
  root,
15950
- root === workInProgressRoot ? workInProgressRootRenderLanes$jscomp$0 : 0
15963
+ root === workInProgressRoot
15964
+ ? workInProgressRootRenderLanes$jscomp$0
15965
+ : 0,
15966
+ null !== root.cancelPendingCommit || root.timeoutHandle !== noTimeout
15951
15967
  );
15952
15968
  if (0 === workInProgressRootRenderLanes$jscomp$0) return null;
15953
15969
  performWorkOnRoot(
@@ -15972,16 +15988,19 @@
15972
15988
  null !== callbackNode &&
15973
15989
  cancelCallback$1(callbackNode);
15974
15990
  }
15975
- function scheduleImmediateTask(cb) {
15991
+ function scheduleImmediateRootScheduleTask() {
15976
15992
  null !== ReactSharedInternals.actQueue &&
15977
15993
  ReactSharedInternals.actQueue.push(function () {
15978
- cb();
15994
+ processRootScheduleInMicrotask();
15979
15995
  return null;
15980
15996
  });
15981
15997
  scheduleMicrotask(function () {
15982
15998
  (executionContext & (RenderContext | CommitContext)) !== NoContext
15983
- ? scheduleCallback$3(ImmediatePriority, cb)
15984
- : cb();
15999
+ ? scheduleCallback$3(
16000
+ ImmediatePriority,
16001
+ processRootScheduleInImmediateTask
16002
+ )
16003
+ : processRootScheduleInMicrotask();
15985
16004
  });
15986
16005
  }
15987
16006
  function requestTransitionLane() {
@@ -18551,36 +18570,34 @@
18551
18570
  }
18552
18571
  case "src":
18553
18572
  case "href":
18554
- "" !== propKey ||
18555
- ("a" === tag && "href" === value) ||
18556
- ("object" === tag && "data" === value)
18557
- ? hydrateSanitizedAttribute(
18558
- domElement,
18559
- value,
18560
- value,
18561
- propKey,
18562
- extraAttributes,
18563
- serverDifferences
18564
- )
18565
- : ("src" === value
18566
- ? console.error(
18567
- 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
18568
- value,
18569
- value
18570
- )
18571
- : console.error(
18572
- 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
18573
- value,
18574
- value
18575
- ),
18576
- hydrateSanitizedAttribute(
18577
- domElement,
18578
- value,
18579
- value,
18580
- null,
18581
- extraAttributes,
18582
- serverDifferences
18583
- ));
18573
+ if (
18574
+ !(
18575
+ "" !== propKey ||
18576
+ ("a" === tag && "href" === value) ||
18577
+ ("object" === tag && "data" === value)
18578
+ )
18579
+ ) {
18580
+ "src" === value
18581
+ ? console.error(
18582
+ 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
18583
+ value,
18584
+ value
18585
+ )
18586
+ : console.error(
18587
+ 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',
18588
+ value,
18589
+ value
18590
+ );
18591
+ continue;
18592
+ }
18593
+ hydrateSanitizedAttribute(
18594
+ domElement,
18595
+ value,
18596
+ value,
18597
+ propKey,
18598
+ extraAttributes,
18599
+ serverDifferences
18600
+ );
18584
18601
  continue;
18585
18602
  case "action":
18586
18603
  case "formAction":
@@ -19190,7 +19207,9 @@
19190
19207
  else if (
19191
19208
  name !== anyProps.rel ||
19192
19209
  instance.getAttribute("href") !==
19193
- (null == anyProps.href ? null : anyProps.href) ||
19210
+ (null == anyProps.href || "" === anyProps.href
19211
+ ? null
19212
+ : anyProps.href) ||
19194
19213
  instance.getAttribute("crossorigin") !==
19195
19214
  (null == anyProps.crossOrigin
19196
19215
  ? null
@@ -20161,11 +20180,7 @@
20161
20180
  ) {
20162
20181
  this.tag = 1;
20163
20182
  this.containerInfo = containerInfo;
20164
- this.finishedWork =
20165
- this.pingCache =
20166
- this.current =
20167
- this.pendingChildren =
20168
- null;
20183
+ this.pingCache = this.current = this.pendingChildren = null;
20169
20184
  this.timeoutHandle = noTimeout;
20170
20185
  this.callbackNode =
20171
20186
  this.next =
@@ -20178,7 +20193,6 @@
20178
20193
  this.entangledLanes =
20179
20194
  this.shellSuspendCounter =
20180
20195
  this.errorRecoveryDisabledLanes =
20181
- this.finishedLanes =
20182
20196
  this.expiredLanes =
20183
20197
  this.warmLanes =
20184
20198
  this.pingedLanes =
@@ -23882,7 +23896,6 @@
23882
23896
  nextEffect = null,
23883
23897
  inProgressLanes = null,
23884
23898
  inProgressRoot = null,
23885
- shouldFireAfterActiveInstanceBlur = !1,
23886
23899
  hostParent = null,
23887
23900
  hostParentIsContainer = !1,
23888
23901
  currentHoistableRoot = null,
@@ -24514,11 +24527,11 @@
24514
24527
  };
24515
24528
  (function () {
24516
24529
  var isomorphicReactPackageVersion = React.version;
24517
- if ("19.1.0-canary-62208bee-20250102" !== isomorphicReactPackageVersion)
24530
+ if ("19.1.0-canary-3ce77d55-20250106" !== isomorphicReactPackageVersion)
24518
24531
  throw Error(
24519
24532
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
24520
24533
  (isomorphicReactPackageVersion +
24521
- "\n - react-dom: 19.1.0-canary-62208bee-20250102\nLearn more: https://react.dev/warnings/version-mismatch")
24534
+ "\n - react-dom: 19.1.0-canary-3ce77d55-20250106\nLearn more: https://react.dev/warnings/version-mismatch")
24522
24535
  );
24523
24536
  })();
24524
24537
  ("function" === typeof Map &&
@@ -24555,10 +24568,10 @@
24555
24568
  !(function () {
24556
24569
  var internals = {
24557
24570
  bundleType: 1,
24558
- version: "19.1.0-canary-62208bee-20250102",
24571
+ version: "19.1.0-canary-3ce77d55-20250106",
24559
24572
  rendererPackageName: "react-dom",
24560
24573
  currentDispatcherRef: ReactSharedInternals,
24561
- reconcilerVersion: "19.1.0-canary-62208bee-20250102"
24574
+ reconcilerVersion: "19.1.0-canary-3ce77d55-20250106"
24562
24575
  };
24563
24576
  internals.overrideHookState = overrideHookState;
24564
24577
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -24704,7 +24717,7 @@
24704
24717
  listenToAllSupportedEvents(container);
24705
24718
  return new ReactDOMHydrationRoot(initialChildren);
24706
24719
  };
24707
- exports.version = "19.1.0-canary-62208bee-20250102";
24720
+ exports.version = "19.1.0-canary-3ce77d55-20250106";
24708
24721
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
24709
24722
  "function" ===
24710
24723
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&