react-dom 19.1.0-canary-0a82580b-20250203 → 19.1.0-canary-ff628334-20250205

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.
@@ -255,38 +255,36 @@ function pushHostContainer(fiber, nextRootInstance) {
255
255
  push(rootInstanceStackCursor, nextRootInstance);
256
256
  push(contextFiberStackCursor, fiber);
257
257
  push(contextStackCursor, null);
258
- fiber = nextRootInstance.nodeType;
259
- switch (fiber) {
258
+ switch (nextRootInstance.nodeType) {
260
259
  case 9:
261
260
  case 11:
262
- nextRootInstance = (nextRootInstance = nextRootInstance.documentElement)
263
- ? (nextRootInstance = nextRootInstance.namespaceURI)
264
- ? getOwnHostContext(nextRootInstance)
261
+ fiber = (fiber = nextRootInstance.documentElement)
262
+ ? (fiber = fiber.namespaceURI)
263
+ ? getOwnHostContext(fiber)
265
264
  : 0
266
265
  : 0;
267
266
  break;
268
267
  default:
269
268
  if (
270
- ((fiber = 8 === fiber ? nextRootInstance.parentNode : nextRootInstance),
271
- (nextRootInstance = fiber.tagName),
272
- (fiber = fiber.namespaceURI))
269
+ ((fiber = nextRootInstance.tagName),
270
+ (nextRootInstance = nextRootInstance.namespaceURI))
273
271
  )
274
- (fiber = getOwnHostContext(fiber)),
275
- (nextRootInstance = getChildHostContextProd(fiber, nextRootInstance));
272
+ (nextRootInstance = getOwnHostContext(nextRootInstance)),
273
+ (fiber = getChildHostContextProd(nextRootInstance, fiber));
276
274
  else
277
- switch (nextRootInstance) {
275
+ switch (fiber) {
278
276
  case "svg":
279
- nextRootInstance = 1;
277
+ fiber = 1;
280
278
  break;
281
279
  case "math":
282
- nextRootInstance = 2;
280
+ fiber = 2;
283
281
  break;
284
282
  default:
285
- nextRootInstance = 0;
283
+ fiber = 0;
286
284
  }
287
285
  }
288
286
  pop(contextStackCursor);
289
- push(contextStackCursor, nextRootInstance);
287
+ push(contextStackCursor, fiber);
290
288
  }
291
289
  function popHostContainer() {
292
290
  pop(contextStackCursor);
@@ -6873,15 +6871,15 @@ function beginWork(current, workInProgress, renderLanes) {
6873
6871
  workInProgress.stateNode.containerInfo
6874
6872
  );
6875
6873
  if (null === current) throw Error(formatProdErrorMessage(387));
6876
- var nextProps = workInProgress.pendingProps;
6877
- init = workInProgress.memoizedState;
6878
- lazyComponent = init.element;
6874
+ lazyComponent = workInProgress.pendingProps;
6875
+ var prevState = workInProgress.memoizedState;
6876
+ init = prevState.element;
6879
6877
  cloneUpdateQueue(current, workInProgress);
6880
- processUpdateQueue(workInProgress, nextProps, null, renderLanes);
6878
+ processUpdateQueue(workInProgress, lazyComponent, null, renderLanes);
6881
6879
  var nextState = workInProgress.memoizedState;
6882
- nextProps = nextState.cache;
6883
- pushProvider(workInProgress, CacheContext, nextProps);
6884
- nextProps !== init.cache &&
6880
+ lazyComponent = nextState.cache;
6881
+ pushProvider(workInProgress, CacheContext, lazyComponent);
6882
+ lazyComponent !== prevState.cache &&
6885
6883
  propagateContextChanges(
6886
6884
  workInProgress,
6887
6885
  [CacheContext],
@@ -6889,62 +6887,68 @@ function beginWork(current, workInProgress, renderLanes) {
6889
6887
  !0
6890
6888
  );
6891
6889
  suspendIfUpdateReadFromEntangledAsyncAction();
6892
- nextProps = nextState.element;
6893
- if (init.isDehydrated)
6890
+ lazyComponent = nextState.element;
6891
+ if (prevState.isDehydrated)
6894
6892
  if (
6895
- ((init = {
6896
- element: nextProps,
6893
+ ((prevState = {
6894
+ element: lazyComponent,
6897
6895
  isDehydrated: !1,
6898
6896
  cache: nextState.cache
6899
6897
  }),
6900
- (workInProgress.updateQueue.baseState = init),
6901
- (workInProgress.memoizedState = init),
6898
+ (workInProgress.updateQueue.baseState = prevState),
6899
+ (workInProgress.memoizedState = prevState),
6902
6900
  workInProgress.flags & 256)
6903
6901
  ) {
6904
6902
  workInProgress = mountHostRootWithoutHydrating(
6905
6903
  current,
6906
6904
  workInProgress,
6907
- nextProps,
6905
+ lazyComponent,
6908
6906
  renderLanes
6909
6907
  );
6910
6908
  break a;
6911
- } else if (nextProps !== lazyComponent) {
6912
- lazyComponent = createCapturedValueAtFiber(
6909
+ } else if (lazyComponent !== init) {
6910
+ init = createCapturedValueAtFiber(
6913
6911
  Error(formatProdErrorMessage(424)),
6914
6912
  workInProgress
6915
6913
  );
6916
- queueHydrationError(lazyComponent);
6914
+ queueHydrationError(init);
6917
6915
  workInProgress = mountHostRootWithoutHydrating(
6918
6916
  current,
6919
6917
  workInProgress,
6920
- nextProps,
6918
+ lazyComponent,
6921
6919
  renderLanes
6922
6920
  );
6923
6921
  break a;
6924
- } else
6925
- for (
6926
- nextHydratableInstance = getNextHydratable(
6927
- workInProgress.stateNode.containerInfo.firstChild
6928
- ),
6929
- hydrationParentFiber = workInProgress,
6930
- isHydrating = !0,
6931
- hydrationErrors = null,
6932
- rootOrSingletonContext = !0,
6933
- renderLanes = mountChildFibers(
6934
- workInProgress,
6935
- null,
6936
- nextProps,
6937
- renderLanes
6938
- ),
6939
- workInProgress.child = renderLanes;
6940
- renderLanes;
6941
-
6942
- )
6922
+ } else {
6923
+ current = workInProgress.stateNode.containerInfo;
6924
+ switch (current.nodeType) {
6925
+ case 9:
6926
+ current = current.body;
6927
+ break;
6928
+ default:
6929
+ current =
6930
+ "HTML" === current.nodeName
6931
+ ? current.ownerDocument.body
6932
+ : current;
6933
+ }
6934
+ nextHydratableInstance = getNextHydratable(current.firstChild);
6935
+ hydrationParentFiber = workInProgress;
6936
+ isHydrating = !0;
6937
+ hydrationErrors = null;
6938
+ rootOrSingletonContext = !0;
6939
+ renderLanes = mountChildFibers(
6940
+ workInProgress,
6941
+ null,
6942
+ lazyComponent,
6943
+ renderLanes
6944
+ );
6945
+ for (workInProgress.child = renderLanes; renderLanes; )
6943
6946
  (renderLanes.flags = (renderLanes.flags & -3) | 4096),
6944
6947
  (renderLanes = renderLanes.sibling);
6948
+ }
6945
6949
  else {
6946
6950
  resetHydrationState();
6947
- if (nextProps === lazyComponent) {
6951
+ if (lazyComponent === init) {
6948
6952
  workInProgress = bailoutOnAlreadyFinishedWork(
6949
6953
  current,
6950
6954
  workInProgress,
@@ -6952,7 +6956,12 @@ function beginWork(current, workInProgress, renderLanes) {
6952
6956
  );
6953
6957
  break a;
6954
6958
  }
6955
- reconcileChildren(current, workInProgress, nextProps, renderLanes);
6959
+ reconcileChildren(
6960
+ current,
6961
+ workInProgress,
6962
+ lazyComponent,
6963
+ renderLanes
6964
+ );
6956
6965
  }
6957
6966
  workInProgress = workInProgress.child;
6958
6967
  }
@@ -7000,9 +7009,13 @@ function beginWork(current, workInProgress, renderLanes) {
7000
7009
  )),
7001
7010
  (hydrationParentFiber = workInProgress),
7002
7011
  (rootOrSingletonContext = !0),
7003
- (nextHydratableInstance = getNextHydratable(
7004
- lazyComponent.firstChild
7005
- ))),
7012
+ (init = nextHydratableInstance),
7013
+ isSingletonScope(workInProgress.type)
7014
+ ? ((previousHydratableOnEnteringScopedSingleton = init),
7015
+ (nextHydratableInstance = getNextHydratable(
7016
+ lazyComponent.firstChild
7017
+ )))
7018
+ : (nextHydratableInstance = init)),
7006
7019
  reconcileChildren(
7007
7020
  current,
7008
7021
  workInProgress,
@@ -7038,10 +7051,10 @@ function beginWork(current, workInProgress, renderLanes) {
7038
7051
  init && throwOnHydrationMismatch(workInProgress)),
7039
7052
  pushHostContext(workInProgress),
7040
7053
  (init = workInProgress.type),
7041
- (nextProps = workInProgress.pendingProps),
7054
+ (prevState = workInProgress.pendingProps),
7042
7055
  (nextState = null !== current ? current.memoizedProps : null),
7043
- (lazyComponent = nextProps.children),
7044
- shouldSetTextContent(init, nextProps)
7056
+ (lazyComponent = prevState.children),
7057
+ shouldSetTextContent(init, prevState)
7045
7058
  ? (lazyComponent = null)
7046
7059
  : null !== nextState &&
7047
7060
  shouldSetTextContent(init, nextState) &&
@@ -7194,11 +7207,11 @@ function beginWork(current, workInProgress, renderLanes) {
7194
7207
  ? ((init = peekCacheFromPool()),
7195
7208
  null === init &&
7196
7209
  ((init = workInProgressRoot),
7197
- (nextProps = createCache()),
7198
- (init.pooledCache = nextProps),
7199
- nextProps.refCount++,
7200
- null !== nextProps && (init.pooledCacheLanes |= renderLanes),
7201
- (init = nextProps)),
7210
+ (prevState = createCache()),
7211
+ (init.pooledCache = prevState),
7212
+ prevState.refCount++,
7213
+ null !== prevState && (init.pooledCacheLanes |= renderLanes),
7214
+ (init = prevState)),
7202
7215
  (workInProgress.memoizedState = {
7203
7216
  parent: lazyComponent,
7204
7217
  cache: init
@@ -7210,7 +7223,7 @@ function beginWork(current, workInProgress, renderLanes) {
7210
7223
  processUpdateQueue(workInProgress, null, null, renderLanes),
7211
7224
  suspendIfUpdateReadFromEntangledAsyncAction()),
7212
7225
  (init = current.memoizedState),
7213
- (nextProps = workInProgress.memoizedState),
7226
+ (prevState = workInProgress.memoizedState),
7214
7227
  init.parent !== lazyComponent
7215
7228
  ? ((init = { parent: lazyComponent, cache: lazyComponent }),
7216
7229
  (workInProgress.memoizedState = init),
@@ -7219,7 +7232,7 @@ function beginWork(current, workInProgress, renderLanes) {
7219
7232
  workInProgress.updateQueue.baseState =
7220
7233
  init),
7221
7234
  pushProvider(workInProgress, CacheContext, lazyComponent))
7222
- : ((lazyComponent = nextProps.cache),
7235
+ : ((lazyComponent = prevState.cache),
7223
7236
  pushProvider(workInProgress, CacheContext, lazyComponent),
7224
7237
  lazyComponent !== init.cache &&
7225
7238
  propagateContextChanges(
@@ -7405,7 +7418,7 @@ function isHostParent(fiber) {
7405
7418
  5 === fiber.tag ||
7406
7419
  3 === fiber.tag ||
7407
7420
  26 === fiber.tag ||
7408
- (27 === fiber.tag && "head" === fiber.type) ||
7421
+ (27 === fiber.tag && isSingletonScope(fiber.type)) ||
7409
7422
  4 === fiber.tag
7410
7423
  );
7411
7424
  }
@@ -7421,7 +7434,7 @@ function getHostSibling(fiber) {
7421
7434
  5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;
7422
7435
 
7423
7436
  ) {
7424
- if (27 === fiber.tag && "head" === fiber.type) continue a;
7437
+ if (27 === fiber.tag && isSingletonScope(fiber.type)) continue a;
7425
7438
  if (fiber.flags & 2) continue a;
7426
7439
  if (null === fiber.child || 4 === fiber.tag) continue a;
7427
7440
  else (fiber.child.return = fiber), (fiber = fiber.child);
@@ -7432,42 +7445,30 @@ function getHostSibling(fiber) {
7432
7445
  function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
7433
7446
  var tag = node.tag;
7434
7447
  if (5 === tag || 6 === tag)
7435
- if (((node = node.stateNode), before)) {
7436
- switch (parent.nodeType) {
7437
- case 8:
7438
- parent = parent.parentNode;
7439
- break;
7440
- case 9:
7441
- parent = parent.body;
7442
- break;
7443
- default:
7444
- parent =
7445
- "HTML" === parent.nodeName ? parent.ownerDocument.body : parent;
7446
- }
7447
- parent.insertBefore(node, before);
7448
- } else
7449
- a: {
7450
- switch (parent.nodeType) {
7451
- case 8:
7452
- before = parent.parentNode;
7453
- before.insertBefore(node, parent);
7454
- break a;
7455
- case 9:
7456
- before = parent.body;
7457
- break;
7458
- default:
7459
- before =
7460
- "HTML" === parent.nodeName ? parent.ownerDocument.body : parent;
7461
- }
7462
- before.appendChild(node);
7463
- parent = parent._reactRootContainer;
7464
- (null !== parent && void 0 !== parent) ||
7465
- null !== before.onclick ||
7466
- (before.onclick = noop$1);
7467
- }
7448
+ (node = node.stateNode),
7449
+ before
7450
+ ? (9 === parent.nodeType
7451
+ ? parent.body
7452
+ : "HTML" === parent.nodeName
7453
+ ? parent.ownerDocument.body
7454
+ : parent
7455
+ ).insertBefore(node, before)
7456
+ : ((before =
7457
+ 9 === parent.nodeType
7458
+ ? parent.body
7459
+ : "HTML" === parent.nodeName
7460
+ ? parent.ownerDocument.body
7461
+ : parent),
7462
+ before.appendChild(node),
7463
+ (parent = parent._reactRootContainer),
7464
+ (null !== parent && void 0 !== parent) ||
7465
+ null !== before.onclick ||
7466
+ (before.onclick = noop$1));
7468
7467
  else if (
7469
7468
  4 !== tag &&
7470
- (27 === tag && "head" === node.type && (parent = node.stateNode),
7469
+ (27 === tag &&
7470
+ isSingletonScope(node.type) &&
7471
+ ((parent = node.stateNode), (before = null)),
7471
7472
  (node = node.child),
7472
7473
  null !== node)
7473
7474
  )
@@ -7487,7 +7488,7 @@ function insertOrAppendPlacementNode(node, before, parent) {
7487
7488
  before ? parent.insertBefore(node, before) : parent.appendChild(node);
7488
7489
  else if (
7489
7490
  4 !== tag &&
7490
- (27 === tag && "head" === node.type && (parent = node.stateNode),
7491
+ (27 === tag && isSingletonScope(node.type) && (parent = node.stateNode),
7491
7492
  (node = node.child),
7492
7493
  null !== node)
7493
7494
  )
@@ -7850,7 +7851,7 @@ function commitDeletionEffectsOnFiber(
7850
7851
  safelyDetachRef(deletedFiber, nearestMountedAncestor);
7851
7852
  var prevHostParent = hostParent,
7852
7853
  prevHostParentIsContainer = hostParentIsContainer;
7853
- "head" === deletedFiber.type &&
7854
+ isSingletonScope(deletedFiber.type) &&
7854
7855
  ((hostParent = deletedFiber.stateNode), (hostParentIsContainer = !1));
7855
7856
  recursivelyTraverseDeletionEffects(
7856
7857
  finishedRoot,
@@ -7878,20 +7879,12 @@ function commitDeletionEffectsOnFiber(
7878
7879
  if (null !== hostParent)
7879
7880
  if (hostParentIsContainer)
7880
7881
  try {
7881
- switch (hostParent.nodeType) {
7882
- case 8:
7883
- var parentNode = hostParent.parentNode;
7884
- break;
7885
- case 9:
7886
- parentNode = hostParent.body;
7887
- break;
7888
- default:
7889
- parentNode =
7890
- "HTML" === hostParent.nodeName
7891
- ? hostParent.ownerDocument.body
7892
- : hostParent;
7893
- }
7894
- parentNode.removeChild(deletedFiber.stateNode);
7882
+ (9 === hostParent.nodeType
7883
+ ? hostParent.body
7884
+ : "HTML" === hostParent.nodeName
7885
+ ? hostParent.ownerDocument.body
7886
+ : hostParent
7887
+ ).removeChild(deletedFiber.stateNode);
7895
7888
  } catch (error) {
7896
7889
  captureCommitPhaseError(
7897
7890
  deletedFiber,
@@ -7914,17 +7907,14 @@ function commitDeletionEffectsOnFiber(
7914
7907
  null !== hostParent &&
7915
7908
  (hostParentIsContainer
7916
7909
  ? ((finishedRoot = hostParent),
7917
- (deletedFiber = deletedFiber.stateNode),
7918
- 8 === finishedRoot.nodeType
7919
- ? clearSuspenseBoundary(finishedRoot.parentNode, deletedFiber)
7920
- : 9 === finishedRoot.nodeType
7921
- ? clearSuspenseBoundary(finishedRoot.body, deletedFiber)
7910
+ clearSuspenseBoundary(
7911
+ 9 === finishedRoot.nodeType
7912
+ ? finishedRoot.body
7922
7913
  : "HTML" === finishedRoot.nodeName
7923
- ? clearSuspenseBoundary(
7924
- finishedRoot.ownerDocument.body,
7925
- deletedFiber
7926
- )
7927
- : clearSuspenseBoundary(finishedRoot, deletedFiber),
7914
+ ? finishedRoot.ownerDocument.body
7915
+ : finishedRoot,
7916
+ deletedFiber.stateNode
7917
+ ),
7928
7918
  retryIfBlockedOn(finishedRoot))
7929
7919
  : clearSuspenseBoundary(hostParent, deletedFiber.stateNode));
7930
7920
  break;
@@ -8053,7 +8043,7 @@ function recursivelyTraverseMutationEffects(root$jscomp$0, parentFiber) {
8053
8043
  a: for (; null !== parent; ) {
8054
8044
  switch (parent.tag) {
8055
8045
  case 27:
8056
- if ("head" === parent.type) {
8046
+ if (isSingletonScope(parent.type)) {
8057
8047
  hostParent = parent.stateNode;
8058
8048
  hostParentIsContainer = !1;
8059
8049
  break a;
@@ -9499,14 +9489,14 @@ function prepareToHydrateHostInstance(fiber) {
9499
9489
  function popToNextHostParent(fiber) {
9500
9490
  for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
9501
9491
  switch (hydrationParentFiber.tag) {
9502
- case 3:
9503
- case 27:
9504
- rootOrSingletonContext = !0;
9505
- return;
9506
9492
  case 5:
9507
9493
  case 13:
9508
9494
  rootOrSingletonContext = !1;
9509
9495
  return;
9496
+ case 27:
9497
+ case 3:
9498
+ rootOrSingletonContext = !0;
9499
+ return;
9510
9500
  default:
9511
9501
  hydrationParentFiber = hydrationParentFiber.return;
9512
9502
  }
@@ -9514,46 +9504,52 @@ function popToNextHostParent(fiber) {
9514
9504
  function popHydrationState(fiber) {
9515
9505
  if (fiber !== hydrationParentFiber) return !1;
9516
9506
  if (!isHydrating) return popToNextHostParent(fiber), (isHydrating = !0), !1;
9517
- var shouldClear = !1,
9507
+ var tag = fiber.tag,
9518
9508
  JSCompiler_temp;
9519
- if ((JSCompiler_temp = 3 !== fiber.tag && 27 !== fiber.tag)) {
9520
- if ((JSCompiler_temp = 5 === fiber.tag))
9509
+ if ((JSCompiler_temp = 3 !== tag && 27 !== tag)) {
9510
+ if ((JSCompiler_temp = 5 === tag))
9521
9511
  (JSCompiler_temp = fiber.type),
9522
9512
  (JSCompiler_temp =
9523
9513
  !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
9524
9514
  shouldSetTextContent(fiber.type, fiber.memoizedProps));
9525
9515
  JSCompiler_temp = !JSCompiler_temp;
9526
9516
  }
9527
- JSCompiler_temp && (shouldClear = !0);
9528
- shouldClear && nextHydratableInstance && throwOnHydrationMismatch(fiber);
9517
+ JSCompiler_temp && nextHydratableInstance && throwOnHydrationMismatch(fiber);
9529
9518
  popToNextHostParent(fiber);
9530
- if (13 === fiber.tag) {
9519
+ if (13 === tag) {
9531
9520
  fiber = fiber.memoizedState;
9532
9521
  fiber = null !== fiber ? fiber.dehydrated : null;
9533
9522
  if (!fiber) throw Error(formatProdErrorMessage(317));
9534
9523
  a: {
9535
9524
  fiber = fiber.nextSibling;
9536
- for (shouldClear = 0; fiber; ) {
9525
+ for (tag = 0; fiber; ) {
9537
9526
  if (8 === fiber.nodeType)
9538
9527
  if (((JSCompiler_temp = fiber.data), "/$" === JSCompiler_temp)) {
9539
- if (0 === shouldClear) {
9528
+ if (0 === tag) {
9540
9529
  nextHydratableInstance = getNextHydratable(fiber.nextSibling);
9541
9530
  break a;
9542
9531
  }
9543
- shouldClear--;
9532
+ tag--;
9544
9533
  } else
9545
9534
  ("$" !== JSCompiler_temp &&
9546
9535
  "$!" !== JSCompiler_temp &&
9547
9536
  "$?" !== JSCompiler_temp) ||
9548
- shouldClear++;
9537
+ tag++;
9549
9538
  fiber = fiber.nextSibling;
9550
9539
  }
9551
9540
  nextHydratableInstance = null;
9552
9541
  }
9553
9542
  } else
9554
- nextHydratableInstance = hydrationParentFiber
9555
- ? getNextHydratable(fiber.stateNode.nextSibling)
9556
- : null;
9543
+ 27 === tag
9544
+ ? ((tag = nextHydratableInstance),
9545
+ isSingletonScope(fiber.type)
9546
+ ? ((fiber = previousHydratableOnEnteringScopedSingleton),
9547
+ (previousHydratableOnEnteringScopedSingleton = null),
9548
+ (nextHydratableInstance = fiber))
9549
+ : (nextHydratableInstance = tag))
9550
+ : (nextHydratableInstance = hydrationParentFiber
9551
+ ? getNextHydratable(fiber.stateNode.nextSibling)
9552
+ : null);
9557
9553
  return !0;
9558
9554
  }
9559
9555
  function resetHydrationState() {
@@ -11746,20 +11742,20 @@ function extractEvents$1(
11746
11742
  }
11747
11743
  }
11748
11744
  for (
11749
- var i$jscomp$inline_1491 = 0;
11750
- i$jscomp$inline_1491 < simpleEventPluginEvents.length;
11751
- i$jscomp$inline_1491++
11745
+ var i$jscomp$inline_1502 = 0;
11746
+ i$jscomp$inline_1502 < simpleEventPluginEvents.length;
11747
+ i$jscomp$inline_1502++
11752
11748
  ) {
11753
- var eventName$jscomp$inline_1492 =
11754
- simpleEventPluginEvents[i$jscomp$inline_1491],
11755
- domEventName$jscomp$inline_1493 =
11756
- eventName$jscomp$inline_1492.toLowerCase(),
11757
- capitalizedEvent$jscomp$inline_1494 =
11758
- eventName$jscomp$inline_1492[0].toUpperCase() +
11759
- eventName$jscomp$inline_1492.slice(1);
11749
+ var eventName$jscomp$inline_1503 =
11750
+ simpleEventPluginEvents[i$jscomp$inline_1502],
11751
+ domEventName$jscomp$inline_1504 =
11752
+ eventName$jscomp$inline_1503.toLowerCase(),
11753
+ capitalizedEvent$jscomp$inline_1505 =
11754
+ eventName$jscomp$inline_1503[0].toUpperCase() +
11755
+ eventName$jscomp$inline_1503.slice(1);
11760
11756
  registerSimpleEvent(
11761
- domEventName$jscomp$inline_1493,
11762
- "on" + capitalizedEvent$jscomp$inline_1494
11757
+ domEventName$jscomp$inline_1504,
11758
+ "on" + capitalizedEvent$jscomp$inline_1505
11763
11759
  );
11764
11760
  }
11765
11761
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -11967,22 +11963,15 @@ function dispatchEventForPluginEventSystem(
11967
11963
  var nodeTag = targetInst$jscomp$0.tag;
11968
11964
  if (3 === nodeTag || 4 === nodeTag) {
11969
11965
  var container = targetInst$jscomp$0.stateNode.containerInfo;
11970
- if (
11971
- container === targetContainer ||
11972
- (8 === container.nodeType && container.parentNode === targetContainer)
11973
- )
11974
- break;
11966
+ if (container === targetContainer) break;
11975
11967
  if (4 === nodeTag)
11976
11968
  for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag; ) {
11977
11969
  var grandTag = nodeTag.tag;
11978
- if (3 === grandTag || 4 === grandTag)
11979
- if (
11980
- ((grandTag = nodeTag.stateNode.containerInfo),
11981
- grandTag === targetContainer ||
11982
- (8 === grandTag.nodeType &&
11983
- grandTag.parentNode === targetContainer))
11984
- )
11985
- return;
11970
+ if (
11971
+ (3 === grandTag || 4 === grandTag) &&
11972
+ nodeTag.stateNode.containerInfo === targetContainer
11973
+ )
11974
+ return;
11986
11975
  nodeTag = nodeTag.return;
11987
11976
  }
11988
11977
  for (; null !== container; ) {
@@ -13529,21 +13518,56 @@ function handleErrorInNextTick(error) {
13529
13518
  throw error;
13530
13519
  });
13531
13520
  }
13521
+ function isSingletonScope(type) {
13522
+ return "head" === type;
13523
+ }
13532
13524
  function clearSuspenseBoundary(parentInstance, suspenseInstance) {
13533
13525
  var node = suspenseInstance,
13526
+ possiblePreambleContribution = 0,
13534
13527
  depth = 0;
13535
13528
  do {
13536
13529
  var nextNode = node.nextSibling;
13537
13530
  parentInstance.removeChild(node);
13538
13531
  if (nextNode && 8 === nextNode.nodeType)
13539
13532
  if (((node = nextNode.data), "/$" === node)) {
13533
+ if (
13534
+ 0 < possiblePreambleContribution &&
13535
+ 8 > possiblePreambleContribution
13536
+ ) {
13537
+ node = possiblePreambleContribution;
13538
+ var ownerDocument = parentInstance.ownerDocument;
13539
+ node & 1 && releaseSingletonInstance(ownerDocument.documentElement);
13540
+ node & 2 && releaseSingletonInstance(ownerDocument.body);
13541
+ if (node & 4)
13542
+ for (
13543
+ node = ownerDocument.head,
13544
+ releaseSingletonInstance(node),
13545
+ ownerDocument = node.firstChild;
13546
+ ownerDocument;
13547
+
13548
+ ) {
13549
+ var nextNode$jscomp$0 = ownerDocument.nextSibling,
13550
+ nodeName = ownerDocument.nodeName;
13551
+ ownerDocument[internalHoistableMarker] ||
13552
+ "SCRIPT" === nodeName ||
13553
+ "STYLE" === nodeName ||
13554
+ ("LINK" === nodeName &&
13555
+ "stylesheet" === ownerDocument.rel.toLowerCase()) ||
13556
+ node.removeChild(ownerDocument);
13557
+ ownerDocument = nextNode$jscomp$0;
13558
+ }
13559
+ }
13540
13560
  if (0 === depth) {
13541
13561
  parentInstance.removeChild(nextNode);
13542
13562
  retryIfBlockedOn(suspenseInstance);
13543
13563
  return;
13544
13564
  }
13545
13565
  depth--;
13546
- } else ("$" !== node && "$?" !== node && "$!" !== node) || depth++;
13566
+ } else
13567
+ "$" === node || "$?" === node || "$!" === node
13568
+ ? depth++
13569
+ : (possiblePreambleContribution = node.charCodeAt(0) - 48);
13570
+ else possiblePreambleContribution = 0;
13547
13571
  node = nextNode;
13548
13572
  } while (node);
13549
13573
  retryIfBlockedOn(suspenseInstance);
@@ -13688,6 +13712,7 @@ function getNextHydratable(node) {
13688
13712
  }
13689
13713
  return node;
13690
13714
  }
13715
+ var previousHydratableOnEnteringScopedSingleton = null;
13691
13716
  function getParentSuspenseInstance(targetInstance) {
13692
13717
  targetInstance = targetInstance.previousSibling;
13693
13718
  for (var depth = 0; targetInstance; ) {
@@ -15221,16 +15246,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15221
15246
  0 === i && attemptExplicitHydrationTarget(target);
15222
15247
  }
15223
15248
  };
15224
- var isomorphicReactPackageVersion$jscomp$inline_1738 = React.version;
15249
+ var isomorphicReactPackageVersion$jscomp$inline_1754 = React.version;
15225
15250
  if (
15226
- "19.1.0-canary-0a82580b-20250203" !==
15227
- isomorphicReactPackageVersion$jscomp$inline_1738
15251
+ "19.1.0-canary-ff628334-20250205" !==
15252
+ isomorphicReactPackageVersion$jscomp$inline_1754
15228
15253
  )
15229
15254
  throw Error(
15230
15255
  formatProdErrorMessage(
15231
15256
  527,
15232
- isomorphicReactPackageVersion$jscomp$inline_1738,
15233
- "19.1.0-canary-0a82580b-20250203"
15257
+ isomorphicReactPackageVersion$jscomp$inline_1754,
15258
+ "19.1.0-canary-ff628334-20250205"
15234
15259
  )
15235
15260
  );
15236
15261
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15250,24 +15275,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15250
15275
  null === componentOrElement ? null : componentOrElement.stateNode;
15251
15276
  return componentOrElement;
15252
15277
  };
15253
- var internals$jscomp$inline_2215 = {
15278
+ var internals$jscomp$inline_2235 = {
15254
15279
  bundleType: 0,
15255
- version: "19.1.0-canary-0a82580b-20250203",
15280
+ version: "19.1.0-canary-ff628334-20250205",
15256
15281
  rendererPackageName: "react-dom",
15257
15282
  currentDispatcherRef: ReactSharedInternals,
15258
- reconcilerVersion: "19.1.0-canary-0a82580b-20250203"
15283
+ reconcilerVersion: "19.1.0-canary-ff628334-20250205"
15259
15284
  };
15260
15285
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15261
- var hook$jscomp$inline_2216 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15286
+ var hook$jscomp$inline_2236 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15262
15287
  if (
15263
- !hook$jscomp$inline_2216.isDisabled &&
15264
- hook$jscomp$inline_2216.supportsFiber
15288
+ !hook$jscomp$inline_2236.isDisabled &&
15289
+ hook$jscomp$inline_2236.supportsFiber
15265
15290
  )
15266
15291
  try {
15267
- (rendererID = hook$jscomp$inline_2216.inject(
15268
- internals$jscomp$inline_2215
15292
+ (rendererID = hook$jscomp$inline_2236.inject(
15293
+ internals$jscomp$inline_2235
15269
15294
  )),
15270
- (injectedHook = hook$jscomp$inline_2216);
15295
+ (injectedHook = hook$jscomp$inline_2236);
15271
15296
  } catch (err) {}
15272
15297
  }
15273
15298
  exports.createRoot = function (container, options) {
@@ -15305,9 +15330,7 @@ exports.createRoot = function (container, options) {
15305
15330
  null
15306
15331
  );
15307
15332
  container[internalContainerInstanceKey] = options.current;
15308
- listenToAllSupportedEvents(
15309
- 8 === container.nodeType ? container.parentNode : container
15310
- );
15333
+ listenToAllSupportedEvents(container);
15311
15334
  return new ReactDOMRoot(options);
15312
15335
  };
15313
15336
  exports.hydrateRoot = function (container, initialChildren, options) {
@@ -15361,4 +15384,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
15361
15384
  listenToAllSupportedEvents(container);
15362
15385
  return new ReactDOMHydrationRoot(initialChildren);
15363
15386
  };
15364
- exports.version = "19.1.0-canary-0a82580b-20250203";
15387
+ exports.version = "19.1.0-canary-ff628334-20250205";