react-dom 19.2.0-canary-72135096-20250421 → 19.2.0-canary-197d6a04-20250424

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.
@@ -64,6 +64,16 @@ function getSuspenseInstanceFromFiber(fiber) {
64
64
  }
65
65
  return null;
66
66
  }
67
+ function getActivityInstanceFromFiber(fiber) {
68
+ if (31 === fiber.tag) {
69
+ var activityState = fiber.memoizedState;
70
+ null === activityState &&
71
+ ((fiber = fiber.alternate),
72
+ null !== fiber && (activityState = fiber.memoizedState));
73
+ if (null !== activityState) return activityState.dehydrated;
74
+ }
75
+ return null;
76
+ }
67
77
  function assertIsMounted(fiber) {
68
78
  if (getNearestMountedFiber(fiber) !== fiber)
69
79
  throw Error(formatProdErrorMessage(188));
@@ -812,6 +822,14 @@ function markRootEntangled(root, entangledLanes) {
812
822
  rootEntangledLanes &= ~lane;
813
823
  }
814
824
  }
825
+ function getBumpedLaneForHydration(root, renderLanes) {
826
+ var renderLane = renderLanes & -renderLanes;
827
+ renderLane =
828
+ 0 !== (renderLane & 42) ? 1 : getBumpedLaneForHydrationByLane(renderLane);
829
+ return 0 !== (renderLane & (root.suspendedLanes | renderLanes))
830
+ ? 0
831
+ : renderLane;
832
+ }
815
833
  function getBumpedLaneForHydrationByLane(lane) {
816
834
  switch (lane) {
817
835
  case 2:
@@ -936,12 +954,12 @@ function getClosestInstanceFromNode(targetNode) {
936
954
  (null !== parentNode && null !== parentNode.child)
937
955
  )
938
956
  for (
939
- targetNode = getParentSuspenseInstance(targetNode);
957
+ targetNode = getParentHydrationBoundary(targetNode);
940
958
  null !== targetNode;
941
959
 
942
960
  ) {
943
961
  if ((parentNode = targetNode[internalInstanceKey])) return parentNode;
944
- targetNode = getParentSuspenseInstance(targetNode);
962
+ targetNode = getParentHydrationBoundary(targetNode);
945
963
  }
946
964
  return targetInst;
947
965
  }
@@ -959,6 +977,7 @@ function getInstanceFromNode(node) {
959
977
  5 === tag ||
960
978
  6 === tag ||
961
979
  13 === tag ||
980
+ 31 === tag ||
962
981
  26 === tag ||
963
982
  27 === tag ||
964
983
  3 === tag
@@ -2098,19 +2117,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
2098
2117
  }
2099
2118
  var isInputEventSupported = !1;
2100
2119
  if (canUseDOM) {
2101
- var JSCompiler_inline_result$jscomp$302;
2120
+ var JSCompiler_inline_result$jscomp$311;
2102
2121
  if (canUseDOM) {
2103
- var isSupported$jscomp$inline_441 = "oninput" in document;
2104
- if (!isSupported$jscomp$inline_441) {
2105
- var element$jscomp$inline_442 = document.createElement("div");
2106
- element$jscomp$inline_442.setAttribute("oninput", "return;");
2107
- isSupported$jscomp$inline_441 =
2108
- "function" === typeof element$jscomp$inline_442.oninput;
2122
+ var isSupported$jscomp$inline_452 = "oninput" in document;
2123
+ if (!isSupported$jscomp$inline_452) {
2124
+ var element$jscomp$inline_453 = document.createElement("div");
2125
+ element$jscomp$inline_453.setAttribute("oninput", "return;");
2126
+ isSupported$jscomp$inline_452 =
2127
+ "function" === typeof element$jscomp$inline_453.oninput;
2109
2128
  }
2110
- JSCompiler_inline_result$jscomp$302 = isSupported$jscomp$inline_441;
2111
- } else JSCompiler_inline_result$jscomp$302 = !1;
2129
+ JSCompiler_inline_result$jscomp$311 = isSupported$jscomp$inline_452;
2130
+ } else JSCompiler_inline_result$jscomp$311 = !1;
2112
2131
  isInputEventSupported =
2113
- JSCompiler_inline_result$jscomp$302 &&
2132
+ JSCompiler_inline_result$jscomp$311 &&
2114
2133
  (!document.documentMode || 9 < document.documentMode);
2115
2134
  }
2116
2135
  function stopWatchingForValueChange() {
@@ -2674,6 +2693,11 @@ function createFiberFromText(content, mode, lanes) {
2674
2693
  content.lanes = lanes;
2675
2694
  return content;
2676
2695
  }
2696
+ function createFiberFromDehydratedFragment(dehydratedNode) {
2697
+ var fiber = createFiberImplClass(18, null, null, 0);
2698
+ fiber.stateNode = dehydratedNode;
2699
+ return fiber;
2700
+ }
2677
2701
  function createFiberFromPortal(portal, mode, lanes) {
2678
2702
  mode = createFiberImplClass(
2679
2703
  4,
@@ -2751,6 +2775,14 @@ function popTreeContext(workInProgress) {
2751
2775
  (treeContextId = idStack[--idStackIndex]),
2752
2776
  (idStack[idStackIndex] = null);
2753
2777
  }
2778
+ function restoreSuspendedTreeContext(workInProgress, suspendedContext) {
2779
+ idStack[idStackIndex++] = treeContextId;
2780
+ idStack[idStackIndex++] = treeContextOverflow;
2781
+ idStack[idStackIndex++] = treeContextProvider;
2782
+ treeContextId = suspendedContext.id;
2783
+ treeContextOverflow = suspendedContext.overflow;
2784
+ treeContextProvider = workInProgress;
2785
+ }
2754
2786
  var hydrationParentFiber = null,
2755
2787
  nextHydratableInstance = null,
2756
2788
  isHydrating = !1,
@@ -2847,6 +2879,7 @@ function popToNextHostParent(fiber) {
2847
2879
  for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
2848
2880
  switch (hydrationParentFiber.tag) {
2849
2881
  case 5:
2882
+ case 31:
2850
2883
  case 13:
2851
2884
  rootOrSingletonContext = !1;
2852
2885
  return;
@@ -2877,25 +2910,14 @@ function popHydrationState(fiber) {
2877
2910
  fiber = fiber.memoizedState;
2878
2911
  fiber = null !== fiber ? fiber.dehydrated : null;
2879
2912
  if (!fiber) throw Error(formatProdErrorMessage(317));
2880
- a: {
2881
- fiber = fiber.nextSibling;
2882
- for (tag = 0; fiber; ) {
2883
- if (8 === fiber.nodeType)
2884
- if (((JSCompiler_temp = fiber.data), "/$" === JSCompiler_temp)) {
2885
- if (0 === tag) {
2886
- nextHydratableInstance = getNextHydratable(fiber.nextSibling);
2887
- break a;
2888
- }
2889
- tag--;
2890
- } else
2891
- ("$" !== JSCompiler_temp &&
2892
- "$!" !== JSCompiler_temp &&
2893
- "$?" !== JSCompiler_temp) ||
2894
- tag++;
2895
- fiber = fiber.nextSibling;
2896
- }
2897
- nextHydratableInstance = null;
2898
- }
2913
+ nextHydratableInstance =
2914
+ getNextHydratableInstanceAfterHydrationBoundary(fiber);
2915
+ } else if (31 === tag) {
2916
+ fiber = fiber.memoizedState;
2917
+ fiber = null !== fiber ? fiber.dehydrated : null;
2918
+ if (!fiber) throw Error(formatProdErrorMessage(317));
2919
+ nextHydratableInstance =
2920
+ getNextHydratableInstanceAfterHydrationBoundary(fiber);
2899
2921
  } else
2900
2922
  27 === tag
2901
2923
  ? ((tag = nextHydratableInstance),
@@ -4349,19 +4371,17 @@ function pushPrimaryTreeSuspenseHandler(handler) {
4349
4371
  ? (shellBoundary = handler)
4350
4372
  : null !== current.memoizedState && (shellBoundary = handler));
4351
4373
  }
4374
+ function pushDehydratedActivitySuspenseHandler(fiber) {
4375
+ push(suspenseStackCursor, suspenseStackCursor.current);
4376
+ push(suspenseHandlerStackCursor, fiber);
4377
+ null === shellBoundary && (shellBoundary = fiber);
4378
+ }
4352
4379
  function pushOffscreenSuspenseHandler(fiber) {
4353
- if (22 === fiber.tag) {
4354
- if (
4355
- (push(suspenseStackCursor, suspenseStackCursor.current),
4380
+ 22 === fiber.tag
4381
+ ? (push(suspenseStackCursor, suspenseStackCursor.current),
4356
4382
  push(suspenseHandlerStackCursor, fiber),
4357
- null === shellBoundary)
4358
- ) {
4359
- var current = fiber.alternate;
4360
- null !== current &&
4361
- null !== current.memoizedState &&
4362
- (shellBoundary = fiber);
4363
- }
4364
- } else reuseSuspenseHandlerOnStack(fiber);
4383
+ null === shellBoundary && (shellBoundary = fiber))
4384
+ : reuseSuspenseHandlerOnStack(fiber);
4365
4385
  }
4366
4386
  function reuseSuspenseHandlerOnStack() {
4367
4387
  push(suspenseStackCursor, suspenseStackCursor.current);
@@ -6062,6 +6082,7 @@ function throwException(
6062
6082
  sourceFiber = suspenseHandlerStackCursor.current;
6063
6083
  if (null !== sourceFiber) {
6064
6084
  switch (sourceFiber.tag) {
6085
+ case 31:
6065
6086
  case 13:
6066
6087
  return (
6067
6088
  null === shellBoundary
@@ -6351,7 +6372,18 @@ function updateOffscreenComponent(
6351
6372
  renderLanes
6352
6373
  );
6353
6374
  }
6354
- if (0 === (renderLanes & 536870912) || isHydrating)
6375
+ if (0 !== (renderLanes & 536870912))
6376
+ (workInProgress.memoizedState = { baseLanes: 0, cachePool: null }),
6377
+ null !== current &&
6378
+ pushTransition(
6379
+ workInProgress,
6380
+ null !== prevState ? prevState.cachePool : null
6381
+ ),
6382
+ null !== prevState
6383
+ ? pushHiddenContext(workInProgress, prevState)
6384
+ : reuseHiddenContextOnStack(),
6385
+ pushOffscreenSuspenseHandler(workInProgress);
6386
+ else
6355
6387
  return (
6356
6388
  (workInProgress.lanes = workInProgress.childLanes = 536870912),
6357
6389
  deferHiddenOffscreenComponent(
@@ -6361,16 +6393,6 @@ function updateOffscreenComponent(
6361
6393
  renderLanes
6362
6394
  )
6363
6395
  );
6364
- workInProgress.memoizedState = { baseLanes: 0, cachePool: null };
6365
- null !== current &&
6366
- pushTransition(
6367
- workInProgress,
6368
- null !== prevState ? prevState.cachePool : null
6369
- );
6370
- null !== prevState
6371
- ? pushHiddenContext(workInProgress, prevState)
6372
- : reuseHiddenContextOnStack();
6373
- pushOffscreenSuspenseHandler(workInProgress);
6374
6396
  } else
6375
6397
  null !== prevState
6376
6398
  ? (pushTransition(workInProgress, prevState.cachePool),
@@ -6405,6 +6427,28 @@ function deferHiddenOffscreenComponent(
6405
6427
  propagateParentContextChanges(current, workInProgress, renderLanes, !0);
6406
6428
  return null;
6407
6429
  }
6430
+ function mountActivityChildren(workInProgress, nextProps) {
6431
+ nextProps = mountWorkInProgressOffscreenFiber(
6432
+ { mode: nextProps.mode, children: nextProps.children },
6433
+ workInProgress.mode
6434
+ );
6435
+ nextProps.ref = workInProgress.ref;
6436
+ workInProgress.child = nextProps;
6437
+ nextProps.return = workInProgress;
6438
+ return nextProps;
6439
+ }
6440
+ function retryActivityComponentWithoutHydrating(
6441
+ current,
6442
+ workInProgress,
6443
+ renderLanes
6444
+ ) {
6445
+ reconcileChildFibers(workInProgress, current.child, null, renderLanes);
6446
+ current = mountActivityChildren(workInProgress, workInProgress.pendingProps);
6447
+ current.flags |= 2;
6448
+ popSuspenseHandler(workInProgress);
6449
+ workInProgress.memoizedState = null;
6450
+ return current;
6451
+ }
6408
6452
  function markRef(current, workInProgress) {
6409
6453
  var ref = workInProgress.ref;
6410
6454
  if (null === ref)
@@ -6786,39 +6830,28 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6786
6830
  showFallback
6787
6831
  ? pushPrimaryTreeSuspenseHandler(workInProgress)
6788
6832
  : reuseSuspenseHandlerOnStack(workInProgress);
6789
- if ((current = nextHydratableInstance)) {
6790
- a: {
6791
- renderLanes = current;
6792
- for (current = rootOrSingletonContext; 8 !== renderLanes.nodeType; ) {
6793
- if (!current) {
6794
- current = null;
6795
- break a;
6796
- }
6797
- renderLanes = getNextHydratable(renderLanes.nextSibling);
6798
- if (null === renderLanes) {
6799
- current = null;
6800
- break a;
6801
- }
6802
- }
6803
- current = renderLanes;
6804
- }
6805
- null !== current &&
6806
- ((workInProgress.memoizedState = {
6807
- dehydrated: current,
6808
- treeContext:
6809
- null !== treeContextProvider
6810
- ? { id: treeContextId, overflow: treeContextOverflow }
6811
- : null,
6812
- retryLane: 536870912,
6813
- hydrationErrors: null
6814
- }),
6815
- (renderLanes = createFiberImplClass(18, null, null, 0)),
6816
- (renderLanes.stateNode = current),
6817
- (renderLanes.return = workInProgress),
6818
- (workInProgress.child = renderLanes),
6819
- (hydrationParentFiber = workInProgress),
6820
- (nextHydratableInstance = null));
6821
- } else current = null;
6833
+ (current = nextHydratableInstance)
6834
+ ? ((current = canHydrateHydrationBoundary(
6835
+ current,
6836
+ rootOrSingletonContext
6837
+ )),
6838
+ (current = null !== current && "&" !== current.data ? current : null),
6839
+ null !== current &&
6840
+ ((workInProgress.memoizedState = {
6841
+ dehydrated: current,
6842
+ treeContext:
6843
+ null !== treeContextProvider
6844
+ ? { id: treeContextId, overflow: treeContextOverflow }
6845
+ : null,
6846
+ retryLane: 536870912,
6847
+ hydrationErrors: null
6848
+ }),
6849
+ (renderLanes = createFiberFromDehydratedFragment(current)),
6850
+ (renderLanes.return = workInProgress),
6851
+ (workInProgress.child = renderLanes),
6852
+ (hydrationParentFiber = workInProgress),
6853
+ (nextHydratableInstance = null)))
6854
+ : (current = null);
6822
6855
  if (null === current) throw throwOnHydrationMismatch(workInProgress);
6823
6856
  isSuspenseInstanceFallback(current)
6824
6857
  ? (workInProgress.lanes = 32)
@@ -6827,36 +6860,42 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6827
6860
  }
6828
6861
  var nextPrimaryChildren = nextProps.children;
6829
6862
  nextProps = nextProps.fallback;
6830
- if (showFallback) {
6831
- reuseSuspenseHandlerOnStack(workInProgress);
6832
- var mode = workInProgress.mode;
6833
- nextPrimaryChildren = mountWorkInProgressOffscreenFiber(
6834
- { mode: "hidden", children: nextPrimaryChildren },
6835
- mode
6836
- );
6837
- nextProps = createFiberFromFragment(nextProps, mode, renderLanes, null);
6838
- nextPrimaryChildren.return = workInProgress;
6839
- nextProps.return = workInProgress;
6840
- nextPrimaryChildren.sibling = nextProps;
6841
- workInProgress.child = nextPrimaryChildren;
6842
- nextPrimaryChildren = workInProgress.child;
6843
- nextPrimaryChildren.memoizedState =
6844
- mountSuspenseOffscreenState(renderLanes);
6845
- nextPrimaryChildren.childLanes = getRemainingWorkInPrimaryTree(
6846
- current,
6847
- JSCompiler_temp,
6848
- renderLanes
6863
+ if (showFallback)
6864
+ return (
6865
+ reuseSuspenseHandlerOnStack(workInProgress),
6866
+ (showFallback = workInProgress.mode),
6867
+ (nextPrimaryChildren = mountWorkInProgressOffscreenFiber(
6868
+ { mode: "hidden", children: nextPrimaryChildren },
6869
+ showFallback
6870
+ )),
6871
+ (nextProps = createFiberFromFragment(
6872
+ nextProps,
6873
+ showFallback,
6874
+ renderLanes,
6875
+ null
6876
+ )),
6877
+ (nextPrimaryChildren.return = workInProgress),
6878
+ (nextProps.return = workInProgress),
6879
+ (nextPrimaryChildren.sibling = nextProps),
6880
+ (workInProgress.child = nextPrimaryChildren),
6881
+ (nextPrimaryChildren = workInProgress.child),
6882
+ (nextPrimaryChildren.memoizedState =
6883
+ mountSuspenseOffscreenState(renderLanes)),
6884
+ (nextPrimaryChildren.childLanes = getRemainingWorkInPrimaryTree(
6885
+ current,
6886
+ JSCompiler_temp,
6887
+ renderLanes
6888
+ )),
6889
+ (workInProgress.memoizedState = SUSPENDED_MARKER),
6890
+ nextProps
6849
6891
  );
6850
- workInProgress.memoizedState = SUSPENDED_MARKER;
6851
- return nextProps;
6852
- }
6853
6892
  pushPrimaryTreeSuspenseHandler(workInProgress);
6854
6893
  return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren);
6855
6894
  }
6856
- mode = current.memoizedState;
6895
+ var prevState = current.memoizedState;
6857
6896
  if (
6858
- null !== mode &&
6859
- ((nextPrimaryChildren = mode.dehydrated), null !== nextPrimaryChildren)
6897
+ null !== prevState &&
6898
+ ((nextPrimaryChildren = prevState.dehydrated), null !== nextPrimaryChildren)
6860
6899
  ) {
6861
6900
  if (didSuspend)
6862
6901
  workInProgress.flags & 256
@@ -6874,14 +6913,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6874
6913
  (workInProgress = null))
6875
6914
  : (reuseSuspenseHandlerOnStack(workInProgress),
6876
6915
  (nextPrimaryChildren = nextProps.fallback),
6877
- (mode = workInProgress.mode),
6916
+ (showFallback = workInProgress.mode),
6878
6917
  (nextProps = mountWorkInProgressOffscreenFiber(
6879
6918
  { mode: "visible", children: nextProps.children },
6880
- mode
6919
+ showFallback
6881
6920
  )),
6882
6921
  (nextPrimaryChildren = createFiberFromFragment(
6883
6922
  nextPrimaryChildren,
6884
- mode,
6923
+ showFallback,
6885
6924
  renderLanes,
6886
6925
  null
6887
6926
  )),
@@ -6933,19 +6972,11 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6933
6972
  JSCompiler_temp = workInProgressRoot;
6934
6973
  if (
6935
6974
  null !== JSCompiler_temp &&
6936
- ((nextProps = renderLanes & -renderLanes),
6937
- (nextProps =
6938
- 0 !== (nextProps & 42)
6939
- ? 1
6940
- : getBumpedLaneForHydrationByLane(nextProps)),
6941
- (nextProps =
6942
- 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes))
6943
- ? 0
6944
- : nextProps),
6945
- 0 !== nextProps && nextProps !== mode.retryLane)
6975
+ ((nextProps = getBumpedLaneForHydration(JSCompiler_temp, renderLanes)),
6976
+ 0 !== nextProps && nextProps !== prevState.retryLane)
6946
6977
  )
6947
6978
  throw (
6948
- ((mode.retryLane = nextProps),
6979
+ ((prevState.retryLane = nextProps),
6949
6980
  enqueueConcurrentRenderForLane(current, nextProps),
6950
6981
  scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps),
6951
6982
  SelectiveHydrationException)
@@ -6961,7 +6992,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6961
6992
  ? ((workInProgress.flags |= 192),
6962
6993
  (workInProgress.child = current.child),
6963
6994
  (workInProgress = null))
6964
- : ((current = mode.treeContext),
6995
+ : ((current = prevState.treeContext),
6965
6996
  (nextHydratableInstance = getNextHydratable(
6966
6997
  nextPrimaryChildren.nextSibling
6967
6998
  )),
@@ -6970,12 +7001,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6970
7001
  (hydrationErrors = null),
6971
7002
  (rootOrSingletonContext = !1),
6972
7003
  null !== current &&
6973
- ((idStack[idStackIndex++] = treeContextId),
6974
- (idStack[idStackIndex++] = treeContextOverflow),
6975
- (idStack[idStackIndex++] = treeContextProvider),
6976
- (treeContextId = current.id),
6977
- (treeContextOverflow = current.overflow),
6978
- (treeContextProvider = workInProgress)),
7004
+ restoreSuspendedTreeContext(workInProgress, current),
6979
7005
  (workInProgress = mountSuspensePrimaryChildren(
6980
7006
  workInProgress,
6981
7007
  nextProps.children
@@ -6987,14 +7013,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6987
7013
  return (
6988
7014
  reuseSuspenseHandlerOnStack(workInProgress),
6989
7015
  (nextPrimaryChildren = nextProps.fallback),
6990
- (mode = workInProgress.mode),
6991
- (showFallback = current.child),
6992
- (digest = showFallback.sibling),
6993
- (nextProps = createWorkInProgress(showFallback, {
7016
+ (showFallback = workInProgress.mode),
7017
+ (prevState = current.child),
7018
+ (digest = prevState.sibling),
7019
+ (nextProps = createWorkInProgress(prevState, {
6994
7020
  mode: "hidden",
6995
7021
  children: nextProps.children
6996
7022
  })),
6997
- (nextProps.subtreeFlags = showFallback.subtreeFlags & 65011712),
7023
+ (nextProps.subtreeFlags = prevState.subtreeFlags & 65011712),
6998
7024
  null !== digest
6999
7025
  ? (nextPrimaryChildren = createWorkInProgress(
7000
7026
  digest,
@@ -7002,7 +7028,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
7002
7028
  ))
7003
7029
  : ((nextPrimaryChildren = createFiberFromFragment(
7004
7030
  nextPrimaryChildren,
7005
- mode,
7031
+ showFallback,
7006
7032
  renderLanes,
7007
7033
  null
7008
7034
  )),
@@ -7013,22 +7039,22 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
7013
7039
  (workInProgress.child = nextProps),
7014
7040
  (nextProps = nextPrimaryChildren),
7015
7041
  (nextPrimaryChildren = workInProgress.child),
7016
- (mode = current.child.memoizedState),
7017
- null === mode
7018
- ? (mode = mountSuspenseOffscreenState(renderLanes))
7019
- : ((showFallback = mode.cachePool),
7020
- null !== showFallback
7042
+ (showFallback = current.child.memoizedState),
7043
+ null === showFallback
7044
+ ? (showFallback = mountSuspenseOffscreenState(renderLanes))
7045
+ : ((prevState = showFallback.cachePool),
7046
+ null !== prevState
7021
7047
  ? ((digest = CacheContext._currentValue),
7022
- (showFallback =
7023
- showFallback.parent !== digest
7048
+ (prevState =
7049
+ prevState.parent !== digest
7024
7050
  ? { parent: digest, pool: digest }
7025
- : showFallback))
7026
- : (showFallback = getSuspendedCache()),
7027
- (mode = {
7028
- baseLanes: mode.baseLanes | renderLanes,
7029
- cachePool: showFallback
7051
+ : prevState))
7052
+ : (prevState = getSuspendedCache()),
7053
+ (showFallback = {
7054
+ baseLanes: showFallback.baseLanes | renderLanes,
7055
+ cachePool: prevState
7030
7056
  })),
7031
- (nextPrimaryChildren.memoizedState = mode),
7057
+ (nextPrimaryChildren.memoizedState = showFallback),
7032
7058
  (nextPrimaryChildren.childLanes = getRemainingWorkInPrimaryTree(
7033
7059
  current,
7034
7060
  JSCompiler_temp,
@@ -7272,6 +7298,14 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
7272
7298
  stateNode.effectDuration = -0;
7273
7299
  stateNode.passiveEffectDuration = -0;
7274
7300
  break;
7301
+ case 31:
7302
+ if (null !== workInProgress.memoizedState)
7303
+ return (
7304
+ (workInProgress.flags |= 128),
7305
+ pushDehydratedActivitySuspenseHandler(workInProgress),
7306
+ null
7307
+ );
7308
+ break;
7275
7309
  case 13:
7276
7310
  stateNode = workInProgress.memoizedState;
7277
7311
  if (null !== stateNode) {
@@ -7775,29 +7809,116 @@ function beginWork(current, workInProgress, renderLanes) {
7775
7809
  case 19:
7776
7810
  return updateSuspenseListComponent(current, workInProgress, renderLanes);
7777
7811
  case 31:
7778
- return (
7779
- (lazyComponent = workInProgress.pendingProps),
7780
- (renderLanes = workInProgress.mode),
7781
- (lazyComponent = {
7782
- mode: lazyComponent.mode,
7783
- children: lazyComponent.children
7784
- }),
7785
- null === current
7786
- ? ((renderLanes = mountWorkInProgressOffscreenFiber(
7787
- lazyComponent,
7788
- renderLanes
7789
- )),
7790
- (renderLanes.ref = workInProgress.ref),
7791
- (workInProgress.child = renderLanes),
7792
- (renderLanes.return = workInProgress),
7793
- (workInProgress = renderLanes))
7794
- : ((renderLanes = createWorkInProgress(current.child, lazyComponent)),
7795
- (renderLanes.ref = workInProgress.ref),
7796
- (workInProgress.child = renderLanes),
7797
- (renderLanes.return = workInProgress),
7798
- (workInProgress = renderLanes)),
7799
- workInProgress
7800
- );
7812
+ init = workInProgress.pendingProps;
7813
+ nextState = 0 !== (workInProgress.flags & 128);
7814
+ workInProgress.flags &= -129;
7815
+ if (null === current)
7816
+ if (isHydrating) {
7817
+ if ("hidden" === init.mode)
7818
+ mountActivityChildren(workInProgress, init);
7819
+ else if (
7820
+ (pushDehydratedActivitySuspenseHandler(workInProgress),
7821
+ (renderLanes = nextHydratableInstance)
7822
+ ? ((renderLanes = canHydrateHydrationBoundary(
7823
+ renderLanes,
7824
+ rootOrSingletonContext
7825
+ )),
7826
+ (renderLanes =
7827
+ null !== renderLanes && "&" === renderLanes.data
7828
+ ? renderLanes
7829
+ : null),
7830
+ null !== renderLanes &&
7831
+ ((workInProgress.memoizedState = {
7832
+ dehydrated: renderLanes,
7833
+ treeContext:
7834
+ null !== treeContextProvider
7835
+ ? { id: treeContextId, overflow: treeContextOverflow }
7836
+ : null,
7837
+ retryLane: 536870912,
7838
+ hydrationErrors: null
7839
+ }),
7840
+ (current = createFiberFromDehydratedFragment(renderLanes)),
7841
+ (current.return = workInProgress),
7842
+ (workInProgress.child = current),
7843
+ (hydrationParentFiber = workInProgress),
7844
+ (nextHydratableInstance = null)))
7845
+ : (renderLanes = null),
7846
+ null === renderLanes)
7847
+ )
7848
+ throw throwOnHydrationMismatch(workInProgress);
7849
+ workInProgress.lanes = 536870912;
7850
+ workInProgress = null;
7851
+ } else workInProgress = mountActivityChildren(workInProgress, init);
7852
+ else if (
7853
+ ((lazyComponent = current.memoizedState), null !== lazyComponent)
7854
+ )
7855
+ if (
7856
+ ((prevState = lazyComponent.dehydrated),
7857
+ pushDehydratedActivitySuspenseHandler(workInProgress),
7858
+ nextState)
7859
+ )
7860
+ if (workInProgress.flags & 256)
7861
+ (workInProgress.flags &= -257),
7862
+ (workInProgress = retryActivityComponentWithoutHydrating(
7863
+ current,
7864
+ workInProgress,
7865
+ renderLanes
7866
+ ));
7867
+ else if (null !== workInProgress.memoizedState)
7868
+ (workInProgress.child = current.child),
7869
+ (workInProgress.flags |= 128),
7870
+ (workInProgress = null);
7871
+ else throw Error(formatProdErrorMessage(558));
7872
+ else if (
7873
+ (didReceiveUpdate ||
7874
+ propagateParentContextChanges(
7875
+ current,
7876
+ workInProgress,
7877
+ renderLanes,
7878
+ !1
7879
+ ),
7880
+ (nextState = 0 !== (renderLanes & current.childLanes)),
7881
+ didReceiveUpdate || nextState)
7882
+ ) {
7883
+ init = workInProgressRoot;
7884
+ if (
7885
+ null !== init &&
7886
+ ((prevState = getBumpedLaneForHydration(init, renderLanes)),
7887
+ 0 !== prevState && prevState !== lazyComponent.retryLane)
7888
+ )
7889
+ throw (
7890
+ ((lazyComponent.retryLane = prevState),
7891
+ enqueueConcurrentRenderForLane(current, prevState),
7892
+ scheduleUpdateOnFiber(init, current, prevState),
7893
+ SelectiveHydrationException)
7894
+ );
7895
+ renderDidSuspendDelayIfPossible();
7896
+ workInProgress = retryActivityComponentWithoutHydrating(
7897
+ current,
7898
+ workInProgress,
7899
+ renderLanes
7900
+ );
7901
+ } else
7902
+ (renderLanes = lazyComponent.treeContext),
7903
+ (nextHydratableInstance = getNextHydratable(prevState.nextSibling)),
7904
+ (hydrationParentFiber = workInProgress),
7905
+ (isHydrating = !0),
7906
+ (hydrationErrors = null),
7907
+ (rootOrSingletonContext = !1),
7908
+ null !== renderLanes &&
7909
+ restoreSuspendedTreeContext(workInProgress, renderLanes),
7910
+ (workInProgress = mountActivityChildren(workInProgress, init)),
7911
+ (workInProgress.flags |= 4096);
7912
+ else
7913
+ (renderLanes = createWorkInProgress(current.child, {
7914
+ mode: init.mode,
7915
+ children: init.children
7916
+ })),
7917
+ (renderLanes.ref = workInProgress.ref),
7918
+ (workInProgress.child = renderLanes),
7919
+ (renderLanes.return = workInProgress),
7920
+ (workInProgress = renderLanes);
7921
+ return workInProgress;
7801
7922
  case 22:
7802
7923
  return updateOffscreenComponent(
7803
7924
  current,
@@ -7919,14 +8040,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
7919
8040
  break;
7920
8041
  case "collapsed":
7921
8042
  lastTailNode = renderState.tail;
7922
- for (var lastTailNode$116 = null; null !== lastTailNode; )
7923
- null !== lastTailNode.alternate && (lastTailNode$116 = lastTailNode),
8043
+ for (var lastTailNode$117 = null; null !== lastTailNode; )
8044
+ null !== lastTailNode.alternate && (lastTailNode$117 = lastTailNode),
7924
8045
  (lastTailNode = lastTailNode.sibling);
7925
- null === lastTailNode$116
8046
+ null === lastTailNode$117
7926
8047
  ? hasRenderedATailFallback || null === renderState.tail
7927
8048
  ? (renderState.tail = null)
7928
8049
  : (renderState.tail.sibling = null)
7929
- : (lastTailNode$116.sibling = null);
8050
+ : (lastTailNode$117.sibling = null);
7930
8051
  }
7931
8052
  }
7932
8053
  function bubbleProperties(completedWork) {
@@ -7938,53 +8059,53 @@ function bubbleProperties(completedWork) {
7938
8059
  if (didBailout)
7939
8060
  if (0 !== (completedWork.mode & 2)) {
7940
8061
  for (
7941
- var treeBaseDuration$118 = completedWork.selfBaseDuration,
7942
- child$119 = completedWork.child;
7943
- null !== child$119;
8062
+ var treeBaseDuration$119 = completedWork.selfBaseDuration,
8063
+ child$120 = completedWork.child;
8064
+ null !== child$120;
7944
8065
 
7945
8066
  )
7946
- (newChildLanes |= child$119.lanes | child$119.childLanes),
7947
- (subtreeFlags |= child$119.subtreeFlags & 65011712),
7948
- (subtreeFlags |= child$119.flags & 65011712),
7949
- (treeBaseDuration$118 += child$119.treeBaseDuration),
7950
- (child$119 = child$119.sibling);
7951
- completedWork.treeBaseDuration = treeBaseDuration$118;
8067
+ (newChildLanes |= child$120.lanes | child$120.childLanes),
8068
+ (subtreeFlags |= child$120.subtreeFlags & 65011712),
8069
+ (subtreeFlags |= child$120.flags & 65011712),
8070
+ (treeBaseDuration$119 += child$120.treeBaseDuration),
8071
+ (child$120 = child$120.sibling);
8072
+ completedWork.treeBaseDuration = treeBaseDuration$119;
7952
8073
  } else
7953
8074
  for (
7954
- treeBaseDuration$118 = completedWork.child;
7955
- null !== treeBaseDuration$118;
8075
+ treeBaseDuration$119 = completedWork.child;
8076
+ null !== treeBaseDuration$119;
7956
8077
 
7957
8078
  )
7958
8079
  (newChildLanes |=
7959
- treeBaseDuration$118.lanes | treeBaseDuration$118.childLanes),
7960
- (subtreeFlags |= treeBaseDuration$118.subtreeFlags & 65011712),
7961
- (subtreeFlags |= treeBaseDuration$118.flags & 65011712),
7962
- (treeBaseDuration$118.return = completedWork),
7963
- (treeBaseDuration$118 = treeBaseDuration$118.sibling);
8080
+ treeBaseDuration$119.lanes | treeBaseDuration$119.childLanes),
8081
+ (subtreeFlags |= treeBaseDuration$119.subtreeFlags & 65011712),
8082
+ (subtreeFlags |= treeBaseDuration$119.flags & 65011712),
8083
+ (treeBaseDuration$119.return = completedWork),
8084
+ (treeBaseDuration$119 = treeBaseDuration$119.sibling);
7964
8085
  else if (0 !== (completedWork.mode & 2)) {
7965
- treeBaseDuration$118 = completedWork.actualDuration;
7966
- child$119 = completedWork.selfBaseDuration;
8086
+ treeBaseDuration$119 = completedWork.actualDuration;
8087
+ child$120 = completedWork.selfBaseDuration;
7967
8088
  for (var child = completedWork.child; null !== child; )
7968
8089
  (newChildLanes |= child.lanes | child.childLanes),
7969
8090
  (subtreeFlags |= child.subtreeFlags),
7970
8091
  (subtreeFlags |= child.flags),
7971
- (treeBaseDuration$118 += child.actualDuration),
7972
- (child$119 += child.treeBaseDuration),
8092
+ (treeBaseDuration$119 += child.actualDuration),
8093
+ (child$120 += child.treeBaseDuration),
7973
8094
  (child = child.sibling);
7974
- completedWork.actualDuration = treeBaseDuration$118;
7975
- completedWork.treeBaseDuration = child$119;
8095
+ completedWork.actualDuration = treeBaseDuration$119;
8096
+ completedWork.treeBaseDuration = child$120;
7976
8097
  } else
7977
8098
  for (
7978
- treeBaseDuration$118 = completedWork.child;
7979
- null !== treeBaseDuration$118;
8099
+ treeBaseDuration$119 = completedWork.child;
8100
+ null !== treeBaseDuration$119;
7980
8101
 
7981
8102
  )
7982
8103
  (newChildLanes |=
7983
- treeBaseDuration$118.lanes | treeBaseDuration$118.childLanes),
7984
- (subtreeFlags |= treeBaseDuration$118.subtreeFlags),
7985
- (subtreeFlags |= treeBaseDuration$118.flags),
7986
- (treeBaseDuration$118.return = completedWork),
7987
- (treeBaseDuration$118 = treeBaseDuration$118.sibling);
8104
+ treeBaseDuration$119.lanes | treeBaseDuration$119.childLanes),
8105
+ (subtreeFlags |= treeBaseDuration$119.subtreeFlags),
8106
+ (subtreeFlags |= treeBaseDuration$119.flags),
8107
+ (treeBaseDuration$119.return = completedWork),
8108
+ (treeBaseDuration$119 = treeBaseDuration$119.sibling);
7988
8109
  completedWork.subtreeFlags |= subtreeFlags;
7989
8110
  completedWork.childLanes = newChildLanes;
7990
8111
  return didBailout;
@@ -7993,7 +8114,6 @@ function completeWork(current, workInProgress, renderLanes) {
7993
8114
  var newProps = workInProgress.pendingProps;
7994
8115
  popTreeContext(workInProgress);
7995
8116
  switch (workInProgress.tag) {
7996
- case 31:
7997
8117
  case 16:
7998
8118
  case 15:
7999
8119
  case 0:
@@ -8248,6 +8368,53 @@ function completeWork(current, workInProgress, renderLanes) {
8248
8368
  }
8249
8369
  bubbleProperties(workInProgress);
8250
8370
  return null;
8371
+ case 31:
8372
+ renderLanes = workInProgress.memoizedState;
8373
+ if (null === current || null !== current.memoizedState) {
8374
+ newProps = popHydrationState(workInProgress);
8375
+ if (null !== renderLanes) {
8376
+ if (null === current) {
8377
+ if (!newProps) throw Error(formatProdErrorMessage(318));
8378
+ current = workInProgress.memoizedState;
8379
+ current = null !== current ? current.dehydrated : null;
8380
+ if (!current) throw Error(formatProdErrorMessage(557));
8381
+ current[internalInstanceKey] = workInProgress;
8382
+ bubbleProperties(workInProgress);
8383
+ 0 !== (workInProgress.mode & 2) &&
8384
+ null !== renderLanes &&
8385
+ ((current = workInProgress.child),
8386
+ null !== current &&
8387
+ (workInProgress.treeBaseDuration -= current.treeBaseDuration));
8388
+ } else
8389
+ resetHydrationState(),
8390
+ 0 === (workInProgress.flags & 128) &&
8391
+ (renderLanes = workInProgress.memoizedState = null),
8392
+ (workInProgress.flags |= 4),
8393
+ bubbleProperties(workInProgress),
8394
+ 0 !== (workInProgress.mode & 2) &&
8395
+ null !== renderLanes &&
8396
+ ((current = workInProgress.child),
8397
+ null !== current &&
8398
+ (workInProgress.treeBaseDuration -=
8399
+ current.treeBaseDuration));
8400
+ current = !1;
8401
+ } else
8402
+ (renderLanes = upgradeHydrationErrorsToRecoverable()),
8403
+ null !== current &&
8404
+ null !== current.memoizedState &&
8405
+ (current.memoizedState.hydrationErrors = renderLanes),
8406
+ (current = !0);
8407
+ if (!current) {
8408
+ if (workInProgress.flags & 256)
8409
+ return popSuspenseHandler(workInProgress), workInProgress;
8410
+ popSuspenseHandler(workInProgress);
8411
+ return null;
8412
+ }
8413
+ if (0 !== (workInProgress.flags & 128))
8414
+ throw Error(formatProdErrorMessage(558));
8415
+ }
8416
+ bubbleProperties(workInProgress);
8417
+ return null;
8251
8418
  case 13:
8252
8419
  newProps = workInProgress.memoizedState;
8253
8420
  if (
@@ -8255,28 +8422,30 @@ function completeWork(current, workInProgress, renderLanes) {
8255
8422
  (null !== current.memoizedState &&
8256
8423
  null !== current.memoizedState.dehydrated)
8257
8424
  ) {
8258
- type = popHydrationState(workInProgress);
8259
- if (null !== newProps && null !== newProps.dehydrated) {
8425
+ type = newProps;
8426
+ nextResource = popHydrationState(workInProgress);
8427
+ if (null !== type && null !== type.dehydrated) {
8260
8428
  if (null === current) {
8261
- if (!type) throw Error(formatProdErrorMessage(318));
8262
- type = workInProgress.memoizedState;
8263
- type = null !== type ? type.dehydrated : null;
8264
- if (!type) throw Error(formatProdErrorMessage(317));
8265
- type[internalInstanceKey] = workInProgress;
8429
+ if (!nextResource) throw Error(formatProdErrorMessage(318));
8430
+ nextResource = workInProgress.memoizedState;
8431
+ nextResource =
8432
+ null !== nextResource ? nextResource.dehydrated : null;
8433
+ if (!nextResource) throw Error(formatProdErrorMessage(317));
8434
+ nextResource[internalInstanceKey] = workInProgress;
8266
8435
  bubbleProperties(workInProgress);
8267
8436
  0 !== (workInProgress.mode & 2) &&
8268
- null !== newProps &&
8437
+ null !== type &&
8269
8438
  ((type = workInProgress.child),
8270
8439
  null !== type &&
8271
8440
  (workInProgress.treeBaseDuration -= type.treeBaseDuration));
8272
8441
  } else
8273
8442
  resetHydrationState(),
8274
8443
  0 === (workInProgress.flags & 128) &&
8275
- (workInProgress.memoizedState = null),
8444
+ (type = workInProgress.memoizedState = null),
8276
8445
  (workInProgress.flags |= 4),
8277
8446
  bubbleProperties(workInProgress),
8278
8447
  0 !== (workInProgress.mode & 2) &&
8279
- null !== newProps &&
8448
+ null !== type &&
8280
8449
  ((type = workInProgress.child),
8281
8450
  null !== type &&
8282
8451
  (workInProgress.treeBaseDuration -= type.treeBaseDuration));
@@ -8503,6 +8672,20 @@ function unwindWork(current, workInProgress) {
8503
8672
  case 27:
8504
8673
  case 5:
8505
8674
  return popHostContext(workInProgress), null;
8675
+ case 31:
8676
+ if (null !== workInProgress.memoizedState) {
8677
+ popSuspenseHandler(workInProgress);
8678
+ if (null === workInProgress.alternate)
8679
+ throw Error(formatProdErrorMessage(340));
8680
+ resetHydrationState();
8681
+ }
8682
+ current = workInProgress.flags;
8683
+ return current & 65536
8684
+ ? ((workInProgress.flags = (current & -65537) | 128),
8685
+ 0 !== (workInProgress.mode & 2) &&
8686
+ transferActualDuration(workInProgress),
8687
+ workInProgress)
8688
+ : null;
8506
8689
  case 13:
8507
8690
  popSuspenseHandler(workInProgress);
8508
8691
  current = workInProgress.memoizedState;
@@ -8561,6 +8744,10 @@ function unwindInterruptedWork(current, interruptedWork) {
8561
8744
  case 4:
8562
8745
  popHostContainer();
8563
8746
  break;
8747
+ case 31:
8748
+ null !== interruptedWork.memoizedState &&
8749
+ popSuspenseHandler(interruptedWork);
8750
+ break;
8564
8751
  case 13:
8565
8752
  popSuspenseHandler(interruptedWork);
8566
8753
  break;
@@ -8775,8 +8962,8 @@ function safelyCallComponentWillUnmount(
8775
8962
  } else
8776
8963
  try {
8777
8964
  instance.componentWillUnmount();
8778
- } catch (error$154) {
8779
- captureCommitPhaseError(current, nearestMountedAncestor, error$154);
8965
+ } catch (error$160) {
8966
+ captureCommitPhaseError(current, nearestMountedAncestor, error$160);
8780
8967
  }
8781
8968
  }
8782
8969
  function safelyAttachRef(current, nearestMountedAncestor) {
@@ -8838,8 +9025,8 @@ function safelyDetachRef(current, nearestMountedAncestor) {
8838
9025
  recordEffectDuration(current);
8839
9026
  }
8840
9027
  else ref(null);
8841
- } catch (error$155) {
8842
- captureCommitPhaseError(current, nearestMountedAncestor, error$155);
9028
+ } catch (error$161) {
9029
+ captureCommitPhaseError(current, nearestMountedAncestor, error$161);
8843
9030
  }
8844
9031
  else ref.current = null;
8845
9032
  }
@@ -9190,11 +9377,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
9190
9377
  } else
9191
9378
  try {
9192
9379
  finishedRoot.componentDidMount();
9193
- } catch (error$151) {
9380
+ } catch (error$157) {
9194
9381
  captureCommitPhaseError(
9195
9382
  finishedWork,
9196
9383
  finishedWork.return,
9197
- error$151
9384
+ error$157
9198
9385
  );
9199
9386
  }
9200
9387
  else {
@@ -9211,11 +9398,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
9211
9398
  current,
9212
9399
  finishedRoot.__reactInternalSnapshotBeforeUpdate
9213
9400
  );
9214
- } catch (error$152) {
9401
+ } catch (error$158) {
9215
9402
  captureCommitPhaseError(
9216
9403
  finishedWork,
9217
9404
  finishedWork.return,
9218
- error$152
9405
+ error$158
9219
9406
  );
9220
9407
  }
9221
9408
  recordEffectDuration();
@@ -9226,11 +9413,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
9226
9413
  current,
9227
9414
  finishedRoot.__reactInternalSnapshotBeforeUpdate
9228
9415
  );
9229
- } catch (error$153) {
9416
+ } catch (error$159) {
9230
9417
  captureCommitPhaseError(
9231
9418
  finishedWork,
9232
9419
  finishedWork.return,
9233
- error$153
9420
+ error$159
9234
9421
  );
9235
9422
  }
9236
9423
  }
@@ -9283,6 +9470,10 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
9283
9470
  ))
9284
9471
  : recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
9285
9472
  break;
9473
+ case 31:
9474
+ recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
9475
+ flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork);
9476
+ break;
9286
9477
  case 13:
9287
9478
  recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
9288
9479
  flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
@@ -9440,7 +9631,7 @@ function commitDeletionEffectsOnFiber(
9440
9631
  null !== hostParent &&
9441
9632
  (hostParentIsContainer
9442
9633
  ? ((finishedRoot = hostParent),
9443
- clearSuspenseBoundary(
9634
+ clearHydrationBoundary(
9444
9635
  9 === finishedRoot.nodeType
9445
9636
  ? finishedRoot.body
9446
9637
  : "HTML" === finishedRoot.nodeName
@@ -9449,7 +9640,7 @@ function commitDeletionEffectsOnFiber(
9449
9640
  deletedFiber.stateNode
9450
9641
  ),
9451
9642
  retryIfBlockedOn(finishedRoot))
9452
- : clearSuspenseBoundary(hostParent, deletedFiber.stateNode));
9643
+ : clearHydrationBoundary(hostParent, deletedFiber.stateNode));
9453
9644
  break;
9454
9645
  case 4:
9455
9646
  prevHostParent = hostParent;
@@ -9521,6 +9712,21 @@ function commitDeletionEffectsOnFiber(
9521
9712
  }
9522
9713
  popComponentEffectStart(prevEffectStart);
9523
9714
  }
9715
+ function commitActivityHydrationCallbacks(finishedRoot, finishedWork) {
9716
+ if (
9717
+ null === finishedWork.memoizedState &&
9718
+ ((finishedRoot = finishedWork.alternate),
9719
+ null !== finishedRoot &&
9720
+ ((finishedRoot = finishedRoot.memoizedState), null !== finishedRoot))
9721
+ ) {
9722
+ finishedRoot = finishedRoot.dehydrated;
9723
+ try {
9724
+ retryIfBlockedOn(finishedRoot);
9725
+ } catch (error) {
9726
+ captureCommitPhaseError(finishedWork, finishedWork.return, error);
9727
+ }
9728
+ }
9729
+ }
9524
9730
  function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
9525
9731
  if (
9526
9732
  null === finishedWork.memoizedState &&
@@ -9538,6 +9744,7 @@ function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
9538
9744
  }
9539
9745
  function getRetryCache(finishedWork) {
9540
9746
  switch (finishedWork.tag) {
9747
+ case 31:
9541
9748
  case 13:
9542
9749
  case 19:
9543
9750
  var retryCache = finishedWork.stateNode;
@@ -9656,58 +9863,57 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
9656
9863
  (offscreenSubtreeWasHidden ||
9657
9864
  null === current ||
9658
9865
  safelyDetachRef(current, current.return));
9659
- if (flags & 4)
9660
- if (
9661
- ((root = null !== current ? current.memoizedState : null),
9662
- (flags = finishedWork.memoizedState),
9663
- null === current)
9664
- )
9866
+ if (flags & 4) {
9867
+ var currentResource = null !== current ? current.memoizedState : null;
9868
+ flags = finishedWork.memoizedState;
9869
+ if (null === current)
9665
9870
  if (null === flags)
9666
9871
  if (null === finishedWork.stateNode) {
9667
9872
  a: {
9668
9873
  flags = finishedWork.type;
9669
9874
  current = finishedWork.memoizedProps;
9670
- root = hoistableRoot.ownerDocument || hoistableRoot;
9875
+ hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
9671
9876
  b: switch (flags) {
9672
9877
  case "title":
9673
- hoistableRoot = root.getElementsByTagName("title")[0];
9878
+ currentResource =
9879
+ hoistableRoot.getElementsByTagName("title")[0];
9674
9880
  if (
9675
- !hoistableRoot ||
9676
- hoistableRoot[internalHoistableMarker] ||
9677
- hoistableRoot[internalInstanceKey] ||
9881
+ !currentResource ||
9882
+ currentResource[internalHoistableMarker] ||
9883
+ currentResource[internalInstanceKey] ||
9678
9884
  "http://www.w3.org/2000/svg" ===
9679
- hoistableRoot.namespaceURI ||
9680
- hoistableRoot.hasAttribute("itemprop")
9885
+ currentResource.namespaceURI ||
9886
+ currentResource.hasAttribute("itemprop")
9681
9887
  )
9682
- (hoistableRoot = root.createElement(flags)),
9683
- root.head.insertBefore(
9684
- hoistableRoot,
9685
- root.querySelector("head > title")
9888
+ (currentResource = hoistableRoot.createElement(flags)),
9889
+ hoistableRoot.head.insertBefore(
9890
+ currentResource,
9891
+ hoistableRoot.querySelector("head > title")
9686
9892
  );
9687
- setInitialProperties(hoistableRoot, flags, current);
9688
- hoistableRoot[internalInstanceKey] = finishedWork;
9689
- markNodeAsHoistable(hoistableRoot);
9690
- flags = hoistableRoot;
9893
+ setInitialProperties(currentResource, flags, current);
9894
+ currentResource[internalInstanceKey] = finishedWork;
9895
+ markNodeAsHoistable(currentResource);
9896
+ flags = currentResource;
9691
9897
  break a;
9692
9898
  case "link":
9693
9899
  var maybeNodes = getHydratableHoistableCache(
9694
9900
  "link",
9695
9901
  "href",
9696
- root
9902
+ hoistableRoot
9697
9903
  ).get(flags + (current.href || ""));
9698
9904
  if (maybeNodes)
9699
9905
  for (var i = 0; i < maybeNodes.length; i++)
9700
9906
  if (
9701
- ((hoistableRoot = maybeNodes[i]),
9702
- hoistableRoot.getAttribute("href") ===
9907
+ ((currentResource = maybeNodes[i]),
9908
+ currentResource.getAttribute("href") ===
9703
9909
  (null == current.href || "" === current.href
9704
9910
  ? null
9705
9911
  : current.href) &&
9706
- hoistableRoot.getAttribute("rel") ===
9912
+ currentResource.getAttribute("rel") ===
9707
9913
  (null == current.rel ? null : current.rel) &&
9708
- hoistableRoot.getAttribute("title") ===
9914
+ currentResource.getAttribute("title") ===
9709
9915
  (null == current.title ? null : current.title) &&
9710
- hoistableRoot.getAttribute("crossorigin") ===
9916
+ currentResource.getAttribute("crossorigin") ===
9711
9917
  (null == current.crossOrigin
9712
9918
  ? null
9713
9919
  : current.crossOrigin))
@@ -9715,36 +9921,36 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
9715
9921
  maybeNodes.splice(i, 1);
9716
9922
  break b;
9717
9923
  }
9718
- hoistableRoot = root.createElement(flags);
9719
- setInitialProperties(hoistableRoot, flags, current);
9720
- root.head.appendChild(hoistableRoot);
9924
+ currentResource = hoistableRoot.createElement(flags);
9925
+ setInitialProperties(currentResource, flags, current);
9926
+ hoistableRoot.head.appendChild(currentResource);
9721
9927
  break;
9722
9928
  case "meta":
9723
9929
  if (
9724
9930
  (maybeNodes = getHydratableHoistableCache(
9725
9931
  "meta",
9726
9932
  "content",
9727
- root
9933
+ hoistableRoot
9728
9934
  ).get(flags + (current.content || "")))
9729
9935
  )
9730
9936
  for (i = 0; i < maybeNodes.length; i++)
9731
9937
  if (
9732
- ((hoistableRoot = maybeNodes[i]),
9733
- hoistableRoot.getAttribute("content") ===
9938
+ ((currentResource = maybeNodes[i]),
9939
+ currentResource.getAttribute("content") ===
9734
9940
  (null == current.content
9735
9941
  ? null
9736
9942
  : "" + current.content) &&
9737
- hoistableRoot.getAttribute("name") ===
9943
+ currentResource.getAttribute("name") ===
9738
9944
  (null == current.name ? null : current.name) &&
9739
- hoistableRoot.getAttribute("property") ===
9945
+ currentResource.getAttribute("property") ===
9740
9946
  (null == current.property
9741
9947
  ? null
9742
9948
  : current.property) &&
9743
- hoistableRoot.getAttribute("http-equiv") ===
9949
+ currentResource.getAttribute("http-equiv") ===
9744
9950
  (null == current.httpEquiv
9745
9951
  ? null
9746
9952
  : current.httpEquiv) &&
9747
- hoistableRoot.getAttribute("charset") ===
9953
+ currentResource.getAttribute("charset") ===
9748
9954
  (null == current.charSet
9749
9955
  ? null
9750
9956
  : current.charSet))
@@ -9752,16 +9958,16 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
9752
9958
  maybeNodes.splice(i, 1);
9753
9959
  break b;
9754
9960
  }
9755
- hoistableRoot = root.createElement(flags);
9756
- setInitialProperties(hoistableRoot, flags, current);
9757
- root.head.appendChild(hoistableRoot);
9961
+ currentResource = hoistableRoot.createElement(flags);
9962
+ setInitialProperties(currentResource, flags, current);
9963
+ hoistableRoot.head.appendChild(currentResource);
9758
9964
  break;
9759
9965
  default:
9760
9966
  throw Error(formatProdErrorMessage(468, flags));
9761
9967
  }
9762
- hoistableRoot[internalInstanceKey] = finishedWork;
9763
- markNodeAsHoistable(hoistableRoot);
9764
- flags = hoistableRoot;
9968
+ currentResource[internalInstanceKey] = finishedWork;
9969
+ markNodeAsHoistable(currentResource);
9970
+ flags = currentResource;
9765
9971
  }
9766
9972
  finishedWork.stateNode = flags;
9767
9973
  } else
@@ -9777,12 +9983,12 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
9777
9983
  finishedWork.memoizedProps
9778
9984
  );
9779
9985
  else
9780
- root !== flags
9781
- ? (null === root
9986
+ currentResource !== flags
9987
+ ? (null === currentResource
9782
9988
  ? null !== current.stateNode &&
9783
9989
  ((current = current.stateNode),
9784
9990
  current.parentNode.removeChild(current))
9785
- : root.count--,
9991
+ : currentResource.count--,
9786
9992
  null === flags
9787
9993
  ? mountHoistable(
9788
9994
  hoistableRoot,
@@ -9801,6 +10007,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
9801
10007
  finishedWork.memoizedProps,
9802
10008
  current.memoizedProps
9803
10009
  );
10010
+ }
9804
10011
  break;
9805
10012
  case 27:
9806
10013
  recursivelyTraverseMutationEffects(root, finishedWork);
@@ -9825,20 +10032,20 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
9825
10032
  null === current ||
9826
10033
  safelyDetachRef(current, current.return));
9827
10034
  if (finishedWork.flags & 32) {
9828
- root = finishedWork.stateNode;
10035
+ hoistableRoot = finishedWork.stateNode;
9829
10036
  try {
9830
- setTextContent(root, "");
10037
+ setTextContent(hoistableRoot, "");
9831
10038
  } catch (error) {
9832
10039
  captureCommitPhaseError(finishedWork, finishedWork.return, error);
9833
10040
  }
9834
10041
  }
9835
10042
  flags & 4 &&
9836
10043
  null != finishedWork.stateNode &&
9837
- ((root = finishedWork.memoizedProps),
10044
+ ((hoistableRoot = finishedWork.memoizedProps),
9838
10045
  commitHostUpdate(
9839
10046
  finishedWork,
9840
- root,
9841
- null !== current ? current.memoizedProps : root
10047
+ hoistableRoot,
10048
+ null !== current ? current.memoizedProps : hoistableRoot
9842
10049
  ));
9843
10050
  flags & 1024 && (needsFormReset = !0);
9844
10051
  break;
@@ -9860,10 +10067,10 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
9860
10067
  case 3:
9861
10068
  hoistableRoot = pushNestedEffectDurations();
9862
10069
  tagCaches = null;
9863
- maybeNodes = currentHoistableRoot;
10070
+ currentResource = currentHoistableRoot;
9864
10071
  currentHoistableRoot = getHoistableRoot(root.containerInfo);
9865
10072
  recursivelyTraverseMutationEffects(root, finishedWork);
9866
- currentHoistableRoot = maybeNodes;
10073
+ currentHoistableRoot = currentResource;
9867
10074
  commitReconciliationEffects(finishedWork);
9868
10075
  if (flags & 4 && null !== current && current.memoizedState.isDehydrated)
9869
10076
  try {
@@ -9891,6 +10098,15 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
9891
10098
  finishedWork.stateNode.effectDuration +=
9892
10099
  bubbleNestedEffectDurations(flags);
9893
10100
  break;
10101
+ case 31:
10102
+ recursivelyTraverseMutationEffects(root, finishedWork);
10103
+ commitReconciliationEffects(finishedWork);
10104
+ flags & 4 &&
10105
+ ((flags = finishedWork.updateQueue),
10106
+ null !== flags &&
10107
+ ((finishedWork.updateQueue = null),
10108
+ attachSuspenseRetryListeners(finishedWork, flags)));
10109
+ break;
9894
10110
  case 13:
9895
10111
  recursivelyTraverseMutationEffects(root, finishedWork);
9896
10112
  commitReconciliationEffects(finishedWork);
@@ -9936,21 +10152,21 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
9936
10152
  if (null === current) {
9937
10153
  wasHidden = current = root;
9938
10154
  try {
9939
- if (((maybeNodes = wasHidden.stateNode), hoistableRoot))
9940
- (i = maybeNodes.style),
9941
- "function" === typeof i.setProperty
9942
- ? i.setProperty("display", "none", "important")
9943
- : (i.display = "none");
10155
+ if (((currentResource = wasHidden.stateNode), hoistableRoot))
10156
+ (maybeNodes = currentResource.style),
10157
+ "function" === typeof maybeNodes.setProperty
10158
+ ? maybeNodes.setProperty("display", "none", "important")
10159
+ : (maybeNodes.display = "none");
9944
10160
  else {
9945
- var instance = wasHidden.stateNode,
9946
- styleProp = wasHidden.memoizedProps.style,
10161
+ i = wasHidden.stateNode;
10162
+ var styleProp = wasHidden.memoizedProps.style,
9947
10163
  display =
9948
10164
  void 0 !== styleProp &&
9949
10165
  null !== styleProp &&
9950
10166
  styleProp.hasOwnProperty("display")
9951
10167
  ? styleProp.display
9952
10168
  : null;
9953
- instance.style.display =
10169
+ i.style.display =
9954
10170
  null == display || "boolean" === typeof display
9955
10171
  ? ""
9956
10172
  : ("" + display).trim();
@@ -9970,6 +10186,18 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
9970
10186
  captureCommitPhaseError(wasHidden, wasHidden.return, error);
9971
10187
  }
9972
10188
  }
10189
+ } else if (18 === root.tag) {
10190
+ if (null === current) {
10191
+ wasHidden = root;
10192
+ try {
10193
+ var instance = wasHidden.stateNode;
10194
+ hoistableRoot
10195
+ ? hideOrUnhideDehydratedBoundary(instance, !0)
10196
+ : hideOrUnhideDehydratedBoundary(wasHidden.stateNode, !1);
10197
+ } catch (error) {
10198
+ captureCommitPhaseError(wasHidden, wasHidden.return, error);
10199
+ }
10200
+ }
9973
10201
  } else if (
9974
10202
  ((22 !== root.tag && 23 !== root.tag) ||
9975
10203
  null === root.memoizedState ||
@@ -10040,20 +10268,20 @@ function commitReconciliationEffects(finishedWork) {
10040
10268
  insertOrAppendPlacementNode(finishedWork, before, parent);
10041
10269
  break;
10042
10270
  case 5:
10043
- var parent$156 = hostParentFiber.stateNode;
10271
+ var parent$162 = hostParentFiber.stateNode;
10044
10272
  hostParentFiber.flags & 32 &&
10045
- (setTextContent(parent$156, ""), (hostParentFiber.flags &= -33));
10046
- var before$157 = getHostSibling(finishedWork);
10047
- insertOrAppendPlacementNode(finishedWork, before$157, parent$156);
10273
+ (setTextContent(parent$162, ""), (hostParentFiber.flags &= -33));
10274
+ var before$163 = getHostSibling(finishedWork);
10275
+ insertOrAppendPlacementNode(finishedWork, before$163, parent$162);
10048
10276
  break;
10049
10277
  case 3:
10050
10278
  case 4:
10051
- var parent$158 = hostParentFiber.stateNode.containerInfo,
10052
- before$159 = getHostSibling(finishedWork);
10279
+ var parent$164 = hostParentFiber.stateNode.containerInfo,
10280
+ before$165 = getHostSibling(finishedWork);
10053
10281
  insertOrAppendPlacementNodeIntoContainer(
10054
10282
  finishedWork,
10055
- before$159,
10056
- parent$158
10283
+ before$165,
10284
+ parent$164
10057
10285
  );
10058
10286
  break;
10059
10287
  default:
@@ -10222,6 +10450,16 @@ function recursivelyTraverseReappearLayoutEffects(
10222
10450
  includeWorkInProgressEffects
10223
10451
  );
10224
10452
  break;
10453
+ case 31:
10454
+ recursivelyTraverseReappearLayoutEffects(
10455
+ finishedRoot,
10456
+ finishedWork,
10457
+ includeWorkInProgressEffects
10458
+ );
10459
+ includeWorkInProgressEffects &&
10460
+ flags & 4 &&
10461
+ commitActivityHydrationCallbacks(finishedRoot, finishedWork);
10462
+ break;
10225
10463
  case 13:
10226
10464
  recursivelyTraverseReappearLayoutEffects(
10227
10465
  finishedRoot,
@@ -10376,6 +10614,14 @@ function commitPassiveMountOnFiber(
10376
10614
  committedTransitions
10377
10615
  );
10378
10616
  break;
10617
+ case 31:
10618
+ recursivelyTraversePassiveMountEffects(
10619
+ finishedRoot,
10620
+ finishedWork,
10621
+ committedLanes,
10622
+ committedTransitions
10623
+ );
10624
+ break;
10379
10625
  case 13:
10380
10626
  recursivelyTraversePassiveMountEffects(
10381
10627
  finishedRoot,
@@ -11343,8 +11589,8 @@ function renderRootSync(root, lanes, shouldYieldForPrerendering) {
11343
11589
  workLoopSync();
11344
11590
  memoizedUpdaters = workInProgressRootExitStatus;
11345
11591
  break;
11346
- } catch (thrownValue$183) {
11347
- handleThrow(root, thrownValue$183);
11592
+ } catch (thrownValue$190) {
11593
+ handleThrow(root, thrownValue$190);
11348
11594
  }
11349
11595
  while (1);
11350
11596
  lanes && root.shellSuspendCounter++;
@@ -11471,8 +11717,8 @@ function renderRootConcurrent(root, lanes) {
11471
11717
  }
11472
11718
  workLoopConcurrentByScheduler();
11473
11719
  break;
11474
- } catch (thrownValue$185) {
11475
- handleThrow(root, thrownValue$185);
11720
+ } catch (thrownValue$192) {
11721
+ handleThrow(root, thrownValue$192);
11476
11722
  }
11477
11723
  while (1);
11478
11724
  lastContextDependency = currentlyRenderingFiber$1 = null;
@@ -12149,6 +12395,7 @@ function retryDehydratedSuspenseBoundary(boundaryFiber) {
12149
12395
  function resolveRetryWakeable(boundaryFiber, wakeable) {
12150
12396
  var retryLane = 0;
12151
12397
  switch (boundaryFiber.tag) {
12398
+ case 31:
12152
12399
  case 13:
12153
12400
  var retryCache = boundaryFiber.stateNode;
12154
12401
  var suspenseState = boundaryFiber.memoizedState;
@@ -12196,14 +12443,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
12196
12443
  isFlushingWork = !0;
12197
12444
  do {
12198
12445
  var didPerformSomeWork = !1;
12199
- for (var root$190 = firstScheduledRoot; null !== root$190; ) {
12446
+ for (var root$197 = firstScheduledRoot; null !== root$197; ) {
12200
12447
  if (!onlyLegacy)
12201
12448
  if (0 !== syncTransitionLanes) {
12202
- var pendingLanes = root$190.pendingLanes;
12449
+ var pendingLanes = root$197.pendingLanes;
12203
12450
  if (0 === pendingLanes) var JSCompiler_inline_result = 0;
12204
12451
  else {
12205
- var suspendedLanes = root$190.suspendedLanes,
12206
- pingedLanes = root$190.pingedLanes;
12452
+ var suspendedLanes = root$197.suspendedLanes,
12453
+ pingedLanes = root$197.pingedLanes;
12207
12454
  JSCompiler_inline_result =
12208
12455
  (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;
12209
12456
  JSCompiler_inline_result &=
@@ -12217,20 +12464,20 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
12217
12464
  }
12218
12465
  0 !== JSCompiler_inline_result &&
12219
12466
  ((didPerformSomeWork = !0),
12220
- performSyncWorkOnRoot(root$190, JSCompiler_inline_result));
12467
+ performSyncWorkOnRoot(root$197, JSCompiler_inline_result));
12221
12468
  } else
12222
12469
  (JSCompiler_inline_result = workInProgressRootRenderLanes),
12223
12470
  (JSCompiler_inline_result = getNextLanes(
12224
- root$190,
12225
- root$190 === workInProgressRoot ? JSCompiler_inline_result : 0,
12226
- null !== root$190.cancelPendingCommit ||
12227
- -1 !== root$190.timeoutHandle
12471
+ root$197,
12472
+ root$197 === workInProgressRoot ? JSCompiler_inline_result : 0,
12473
+ null !== root$197.cancelPendingCommit ||
12474
+ -1 !== root$197.timeoutHandle
12228
12475
  )),
12229
12476
  0 === (JSCompiler_inline_result & 3) ||
12230
- checkIfRootIsPrerendering(root$190, JSCompiler_inline_result) ||
12477
+ checkIfRootIsPrerendering(root$197, JSCompiler_inline_result) ||
12231
12478
  ((didPerformSomeWork = !0),
12232
- performSyncWorkOnRoot(root$190, JSCompiler_inline_result));
12233
- root$190 = root$190.next;
12479
+ performSyncWorkOnRoot(root$197, JSCompiler_inline_result));
12480
+ root$197 = root$197.next;
12234
12481
  }
12235
12482
  } while (didPerformSomeWork);
12236
12483
  isFlushingWork = !1;
@@ -12474,20 +12721,20 @@ function extractEvents$1(
12474
12721
  }
12475
12722
  }
12476
12723
  for (
12477
- var i$jscomp$inline_1627 = 0;
12478
- i$jscomp$inline_1627 < simpleEventPluginEvents.length;
12479
- i$jscomp$inline_1627++
12724
+ var i$jscomp$inline_1675 = 0;
12725
+ i$jscomp$inline_1675 < simpleEventPluginEvents.length;
12726
+ i$jscomp$inline_1675++
12480
12727
  ) {
12481
- var eventName$jscomp$inline_1628 =
12482
- simpleEventPluginEvents[i$jscomp$inline_1627],
12483
- domEventName$jscomp$inline_1629 =
12484
- eventName$jscomp$inline_1628.toLowerCase(),
12485
- capitalizedEvent$jscomp$inline_1630 =
12486
- eventName$jscomp$inline_1628[0].toUpperCase() +
12487
- eventName$jscomp$inline_1628.slice(1);
12728
+ var eventName$jscomp$inline_1676 =
12729
+ simpleEventPluginEvents[i$jscomp$inline_1675],
12730
+ domEventName$jscomp$inline_1677 =
12731
+ eventName$jscomp$inline_1676.toLowerCase(),
12732
+ capitalizedEvent$jscomp$inline_1678 =
12733
+ eventName$jscomp$inline_1676[0].toUpperCase() +
12734
+ eventName$jscomp$inline_1676.slice(1);
12488
12735
  registerSimpleEvent(
12489
- domEventName$jscomp$inline_1629,
12490
- "on" + capitalizedEvent$jscomp$inline_1630
12736
+ domEventName$jscomp$inline_1677,
12737
+ "on" + capitalizedEvent$jscomp$inline_1678
12491
12738
  );
12492
12739
  }
12493
12740
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -13664,34 +13911,34 @@ function setInitialProperties(domElement, tag, props) {
13664
13911
  defaultChecked = null;
13665
13912
  for (hasSrc in props)
13666
13913
  if (props.hasOwnProperty(hasSrc)) {
13667
- var propValue$204 = props[hasSrc];
13668
- if (null != propValue$204)
13914
+ var propValue$211 = props[hasSrc];
13915
+ if (null != propValue$211)
13669
13916
  switch (hasSrc) {
13670
13917
  case "name":
13671
- hasSrcSet = propValue$204;
13918
+ hasSrcSet = propValue$211;
13672
13919
  break;
13673
13920
  case "type":
13674
- propValue = propValue$204;
13921
+ propValue = propValue$211;
13675
13922
  break;
13676
13923
  case "checked":
13677
- checked = propValue$204;
13924
+ checked = propValue$211;
13678
13925
  break;
13679
13926
  case "defaultChecked":
13680
- defaultChecked = propValue$204;
13927
+ defaultChecked = propValue$211;
13681
13928
  break;
13682
13929
  case "value":
13683
- propKey = propValue$204;
13930
+ propKey = propValue$211;
13684
13931
  break;
13685
13932
  case "defaultValue":
13686
- defaultValue = propValue$204;
13933
+ defaultValue = propValue$211;
13687
13934
  break;
13688
13935
  case "children":
13689
13936
  case "dangerouslySetInnerHTML":
13690
- if (null != propValue$204)
13937
+ if (null != propValue$211)
13691
13938
  throw Error(formatProdErrorMessage(137, tag));
13692
13939
  break;
13693
13940
  default:
13694
- setProp(domElement, tag, hasSrc, propValue$204, props, null);
13941
+ setProp(domElement, tag, hasSrc, propValue$211, props, null);
13695
13942
  }
13696
13943
  }
13697
13944
  initInput(
@@ -13830,14 +14077,14 @@ function setInitialProperties(domElement, tag, props) {
13830
14077
  return;
13831
14078
  default:
13832
14079
  if (isCustomElement(tag)) {
13833
- for (propValue$204 in props)
13834
- props.hasOwnProperty(propValue$204) &&
13835
- ((hasSrc = props[propValue$204]),
14080
+ for (propValue$211 in props)
14081
+ props.hasOwnProperty(propValue$211) &&
14082
+ ((hasSrc = props[propValue$211]),
13836
14083
  void 0 !== hasSrc &&
13837
14084
  setPropOnCustomElement(
13838
14085
  domElement,
13839
14086
  tag,
13840
- propValue$204,
14087
+ propValue$211,
13841
14088
  hasSrc,
13842
14089
  props,
13843
14090
  void 0
@@ -13885,14 +14132,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13885
14132
  setProp(domElement, tag, propKey, null, nextProps, lastProp);
13886
14133
  }
13887
14134
  }
13888
- for (var propKey$221 in nextProps) {
13889
- var propKey = nextProps[propKey$221];
13890
- lastProp = lastProps[propKey$221];
14135
+ for (var propKey$228 in nextProps) {
14136
+ var propKey = nextProps[propKey$228];
14137
+ lastProp = lastProps[propKey$228];
13891
14138
  if (
13892
- nextProps.hasOwnProperty(propKey$221) &&
14139
+ nextProps.hasOwnProperty(propKey$228) &&
13893
14140
  (null != propKey || null != lastProp)
13894
14141
  )
13895
- switch (propKey$221) {
14142
+ switch (propKey$228) {
13896
14143
  case "type":
13897
14144
  type = propKey;
13898
14145
  break;
@@ -13921,7 +14168,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13921
14168
  setProp(
13922
14169
  domElement,
13923
14170
  tag,
13924
- propKey$221,
14171
+ propKey$228,
13925
14172
  propKey,
13926
14173
  nextProps,
13927
14174
  lastProp
@@ -13940,7 +14187,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13940
14187
  );
13941
14188
  return;
13942
14189
  case "select":
13943
- propKey = value = defaultValue = propKey$221 = null;
14190
+ propKey = value = defaultValue = propKey$228 = null;
13944
14191
  for (type in lastProps)
13945
14192
  if (
13946
14193
  ((lastDefaultValue = lastProps[type]),
@@ -13971,7 +14218,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13971
14218
  )
13972
14219
  switch (name) {
13973
14220
  case "value":
13974
- propKey$221 = type;
14221
+ propKey$228 = type;
13975
14222
  break;
13976
14223
  case "defaultValue":
13977
14224
  defaultValue = type;
@@ -13992,15 +14239,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13992
14239
  tag = defaultValue;
13993
14240
  lastProps = value;
13994
14241
  nextProps = propKey;
13995
- null != propKey$221
13996
- ? updateOptions(domElement, !!lastProps, propKey$221, !1)
14242
+ null != propKey$228
14243
+ ? updateOptions(domElement, !!lastProps, propKey$228, !1)
13997
14244
  : !!nextProps !== !!lastProps &&
13998
14245
  (null != tag
13999
14246
  ? updateOptions(domElement, !!lastProps, tag, !0)
14000
14247
  : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1));
14001
14248
  return;
14002
14249
  case "textarea":
14003
- propKey = propKey$221 = null;
14250
+ propKey = propKey$228 = null;
14004
14251
  for (defaultValue in lastProps)
14005
14252
  if (
14006
14253
  ((name = lastProps[defaultValue]),
@@ -14024,7 +14271,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
14024
14271
  )
14025
14272
  switch (value) {
14026
14273
  case "value":
14027
- propKey$221 = name;
14274
+ propKey$228 = name;
14028
14275
  break;
14029
14276
  case "defaultValue":
14030
14277
  propKey = name;
@@ -14038,17 +14285,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
14038
14285
  name !== type &&
14039
14286
  setProp(domElement, tag, value, name, nextProps, type);
14040
14287
  }
14041
- updateTextarea(domElement, propKey$221, propKey);
14288
+ updateTextarea(domElement, propKey$228, propKey);
14042
14289
  return;
14043
14290
  case "option":
14044
- for (var propKey$237 in lastProps)
14291
+ for (var propKey$244 in lastProps)
14045
14292
  if (
14046
- ((propKey$221 = lastProps[propKey$237]),
14047
- lastProps.hasOwnProperty(propKey$237) &&
14048
- null != propKey$221 &&
14049
- !nextProps.hasOwnProperty(propKey$237))
14293
+ ((propKey$228 = lastProps[propKey$244]),
14294
+ lastProps.hasOwnProperty(propKey$244) &&
14295
+ null != propKey$228 &&
14296
+ !nextProps.hasOwnProperty(propKey$244))
14050
14297
  )
14051
- switch (propKey$237) {
14298
+ switch (propKey$244) {
14052
14299
  case "selected":
14053
14300
  domElement.selected = !1;
14054
14301
  break;
@@ -14056,33 +14303,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
14056
14303
  setProp(
14057
14304
  domElement,
14058
14305
  tag,
14059
- propKey$237,
14306
+ propKey$244,
14060
14307
  null,
14061
14308
  nextProps,
14062
- propKey$221
14309
+ propKey$228
14063
14310
  );
14064
14311
  }
14065
14312
  for (lastDefaultValue in nextProps)
14066
14313
  if (
14067
- ((propKey$221 = nextProps[lastDefaultValue]),
14314
+ ((propKey$228 = nextProps[lastDefaultValue]),
14068
14315
  (propKey = lastProps[lastDefaultValue]),
14069
14316
  nextProps.hasOwnProperty(lastDefaultValue) &&
14070
- propKey$221 !== propKey &&
14071
- (null != propKey$221 || null != propKey))
14317
+ propKey$228 !== propKey &&
14318
+ (null != propKey$228 || null != propKey))
14072
14319
  )
14073
14320
  switch (lastDefaultValue) {
14074
14321
  case "selected":
14075
14322
  domElement.selected =
14076
- propKey$221 &&
14077
- "function" !== typeof propKey$221 &&
14078
- "symbol" !== typeof propKey$221;
14323
+ propKey$228 &&
14324
+ "function" !== typeof propKey$228 &&
14325
+ "symbol" !== typeof propKey$228;
14079
14326
  break;
14080
14327
  default:
14081
14328
  setProp(
14082
14329
  domElement,
14083
14330
  tag,
14084
14331
  lastDefaultValue,
14085
- propKey$221,
14332
+ propKey$228,
14086
14333
  nextProps,
14087
14334
  propKey
14088
14335
  );
@@ -14103,24 +14350,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
14103
14350
  case "track":
14104
14351
  case "wbr":
14105
14352
  case "menuitem":
14106
- for (var propKey$242 in lastProps)
14107
- (propKey$221 = lastProps[propKey$242]),
14108
- lastProps.hasOwnProperty(propKey$242) &&
14109
- null != propKey$221 &&
14110
- !nextProps.hasOwnProperty(propKey$242) &&
14111
- setProp(domElement, tag, propKey$242, null, nextProps, propKey$221);
14353
+ for (var propKey$249 in lastProps)
14354
+ (propKey$228 = lastProps[propKey$249]),
14355
+ lastProps.hasOwnProperty(propKey$249) &&
14356
+ null != propKey$228 &&
14357
+ !nextProps.hasOwnProperty(propKey$249) &&
14358
+ setProp(domElement, tag, propKey$249, null, nextProps, propKey$228);
14112
14359
  for (checked in nextProps)
14113
14360
  if (
14114
- ((propKey$221 = nextProps[checked]),
14361
+ ((propKey$228 = nextProps[checked]),
14115
14362
  (propKey = lastProps[checked]),
14116
14363
  nextProps.hasOwnProperty(checked) &&
14117
- propKey$221 !== propKey &&
14118
- (null != propKey$221 || null != propKey))
14364
+ propKey$228 !== propKey &&
14365
+ (null != propKey$228 || null != propKey))
14119
14366
  )
14120
14367
  switch (checked) {
14121
14368
  case "children":
14122
14369
  case "dangerouslySetInnerHTML":
14123
- if (null != propKey$221)
14370
+ if (null != propKey$228)
14124
14371
  throw Error(formatProdErrorMessage(137, tag));
14125
14372
  break;
14126
14373
  default:
@@ -14128,7 +14375,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
14128
14375
  domElement,
14129
14376
  tag,
14130
14377
  checked,
14131
- propKey$221,
14378
+ propKey$228,
14132
14379
  nextProps,
14133
14380
  propKey
14134
14381
  );
@@ -14136,49 +14383,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
14136
14383
  return;
14137
14384
  default:
14138
14385
  if (isCustomElement(tag)) {
14139
- for (var propKey$247 in lastProps)
14140
- (propKey$221 = lastProps[propKey$247]),
14141
- lastProps.hasOwnProperty(propKey$247) &&
14142
- void 0 !== propKey$221 &&
14143
- !nextProps.hasOwnProperty(propKey$247) &&
14386
+ for (var propKey$254 in lastProps)
14387
+ (propKey$228 = lastProps[propKey$254]),
14388
+ lastProps.hasOwnProperty(propKey$254) &&
14389
+ void 0 !== propKey$228 &&
14390
+ !nextProps.hasOwnProperty(propKey$254) &&
14144
14391
  setPropOnCustomElement(
14145
14392
  domElement,
14146
14393
  tag,
14147
- propKey$247,
14394
+ propKey$254,
14148
14395
  void 0,
14149
14396
  nextProps,
14150
- propKey$221
14397
+ propKey$228
14151
14398
  );
14152
14399
  for (defaultChecked in nextProps)
14153
- (propKey$221 = nextProps[defaultChecked]),
14400
+ (propKey$228 = nextProps[defaultChecked]),
14154
14401
  (propKey = lastProps[defaultChecked]),
14155
14402
  !nextProps.hasOwnProperty(defaultChecked) ||
14156
- propKey$221 === propKey ||
14157
- (void 0 === propKey$221 && void 0 === propKey) ||
14403
+ propKey$228 === propKey ||
14404
+ (void 0 === propKey$228 && void 0 === propKey) ||
14158
14405
  setPropOnCustomElement(
14159
14406
  domElement,
14160
14407
  tag,
14161
14408
  defaultChecked,
14162
- propKey$221,
14409
+ propKey$228,
14163
14410
  nextProps,
14164
14411
  propKey
14165
14412
  );
14166
14413
  return;
14167
14414
  }
14168
14415
  }
14169
- for (var propKey$252 in lastProps)
14170
- (propKey$221 = lastProps[propKey$252]),
14171
- lastProps.hasOwnProperty(propKey$252) &&
14172
- null != propKey$221 &&
14173
- !nextProps.hasOwnProperty(propKey$252) &&
14174
- setProp(domElement, tag, propKey$252, null, nextProps, propKey$221);
14416
+ for (var propKey$259 in lastProps)
14417
+ (propKey$228 = lastProps[propKey$259]),
14418
+ lastProps.hasOwnProperty(propKey$259) &&
14419
+ null != propKey$228 &&
14420
+ !nextProps.hasOwnProperty(propKey$259) &&
14421
+ setProp(domElement, tag, propKey$259, null, nextProps, propKey$228);
14175
14422
  for (lastProp in nextProps)
14176
- (propKey$221 = nextProps[lastProp]),
14423
+ (propKey$228 = nextProps[lastProp]),
14177
14424
  (propKey = lastProps[lastProp]),
14178
14425
  !nextProps.hasOwnProperty(lastProp) ||
14179
- propKey$221 === propKey ||
14180
- (null == propKey$221 && null == propKey) ||
14181
- setProp(domElement, tag, lastProp, propKey$221, nextProps, propKey);
14426
+ propKey$228 === propKey ||
14427
+ (null == propKey$228 && null == propKey) ||
14428
+ setProp(domElement, tag, lastProp, propKey$228, nextProps, propKey);
14182
14429
  }
14183
14430
  var eventsEnabled = null,
14184
14431
  selectionInformation = null;
@@ -14256,21 +14503,22 @@ function handleErrorInNextTick(error) {
14256
14503
  function isSingletonScope(type) {
14257
14504
  return "head" === type;
14258
14505
  }
14259
- function clearSuspenseBoundary(parentInstance, suspenseInstance) {
14260
- var node = suspenseInstance,
14506
+ function clearHydrationBoundary(parentInstance, hydrationInstance) {
14507
+ var node = hydrationInstance,
14261
14508
  depth = 0;
14262
14509
  do {
14263
14510
  var nextNode = node.nextSibling;
14264
14511
  parentInstance.removeChild(node);
14265
14512
  if (nextNode && 8 === nextNode.nodeType)
14266
- if (((node = nextNode.data), "/$" === node)) {
14513
+ if (((node = nextNode.data), "/$" === node || "/&" === node)) {
14267
14514
  if (0 === depth) {
14268
14515
  parentInstance.removeChild(nextNode);
14269
- retryIfBlockedOn(suspenseInstance);
14516
+ retryIfBlockedOn(hydrationInstance);
14270
14517
  return;
14271
14518
  }
14272
14519
  depth--;
14273
- } else if ("$" === node || "$?" === node || "$!" === node) depth++;
14520
+ } else if ("$" === node || "$?" === node || "$!" === node || "&" === node)
14521
+ depth++;
14274
14522
  else if ("html" === node)
14275
14523
  releaseSingletonInstance(parentInstance.ownerDocument.documentElement);
14276
14524
  else if ("head" === node) {
@@ -14292,7 +14540,31 @@ function clearSuspenseBoundary(parentInstance, suspenseInstance) {
14292
14540
  releaseSingletonInstance(parentInstance.ownerDocument.body);
14293
14541
  node = nextNode;
14294
14542
  } while (node);
14295
- retryIfBlockedOn(suspenseInstance);
14543
+ retryIfBlockedOn(hydrationInstance);
14544
+ }
14545
+ function hideOrUnhideDehydratedBoundary(suspenseInstance, isHidden) {
14546
+ var node = suspenseInstance;
14547
+ suspenseInstance = 0;
14548
+ do {
14549
+ var nextNode = node.nextSibling;
14550
+ 1 === node.nodeType
14551
+ ? isHidden
14552
+ ? ((node._stashedDisplay = node.style.display),
14553
+ (node.style.display = "none"))
14554
+ : ((node.style.display = node._stashedDisplay || ""),
14555
+ "" === node.getAttribute("style") && node.removeAttribute("style"))
14556
+ : 3 === node.nodeType &&
14557
+ (isHidden
14558
+ ? ((node._stashedText = node.nodeValue), (node.nodeValue = ""))
14559
+ : (node.nodeValue = node._stashedText || ""));
14560
+ if (nextNode && 8 === nextNode.nodeType)
14561
+ if (((node = nextNode.data), "/$" === node))
14562
+ if (0 === suspenseInstance) break;
14563
+ else suspenseInstance--;
14564
+ else
14565
+ ("$" !== node && "$?" !== node && "$!" !== node) || suspenseInstance++;
14566
+ node = nextNode;
14567
+ } while (node);
14296
14568
  }
14297
14569
  function clearContainerSparingly(container) {
14298
14570
  var nextNode = container.firstChild;
@@ -14396,6 +14668,14 @@ function canHydrateTextInstance(instance, text, inRootOrSingleton) {
14396
14668
  }
14397
14669
  return instance;
14398
14670
  }
14671
+ function canHydrateHydrationBoundary(instance, inRootOrSingleton) {
14672
+ for (; 8 !== instance.nodeType; ) {
14673
+ if (!inRootOrSingleton) return null;
14674
+ instance = getNextHydratable(instance.nextSibling);
14675
+ if (null === instance) return null;
14676
+ }
14677
+ return instance;
14678
+ }
14399
14679
  function isSuspenseInstanceFallback(instance) {
14400
14680
  return (
14401
14681
  "$!" === instance.data ||
@@ -14425,25 +14705,43 @@ function getNextHydratable(node) {
14425
14705
  "$" === nodeType ||
14426
14706
  "$!" === nodeType ||
14427
14707
  "$?" === nodeType ||
14708
+ "&" === nodeType ||
14428
14709
  "F!" === nodeType ||
14429
14710
  "F" === nodeType
14430
14711
  )
14431
14712
  break;
14432
- if ("/$" === nodeType) return null;
14713
+ if ("/$" === nodeType || "/&" === nodeType) return null;
14433
14714
  }
14434
14715
  }
14435
14716
  return node;
14436
14717
  }
14437
14718
  var previousHydratableOnEnteringScopedSingleton = null;
14438
- function getParentSuspenseInstance(targetInstance) {
14719
+ function getNextHydratableInstanceAfterHydrationBoundary(hydrationInstance) {
14720
+ hydrationInstance = hydrationInstance.nextSibling;
14721
+ for (var depth = 0; hydrationInstance; ) {
14722
+ if (8 === hydrationInstance.nodeType) {
14723
+ var data = hydrationInstance.data;
14724
+ if ("/$" === data || "/&" === data) {
14725
+ if (0 === depth)
14726
+ return getNextHydratable(hydrationInstance.nextSibling);
14727
+ depth--;
14728
+ } else
14729
+ ("$" !== data && "$!" !== data && "$?" !== data && "&" !== data) ||
14730
+ depth++;
14731
+ }
14732
+ hydrationInstance = hydrationInstance.nextSibling;
14733
+ }
14734
+ return null;
14735
+ }
14736
+ function getParentHydrationBoundary(targetInstance) {
14439
14737
  targetInstance = targetInstance.previousSibling;
14440
14738
  for (var depth = 0; targetInstance; ) {
14441
14739
  if (8 === targetInstance.nodeType) {
14442
14740
  var data = targetInstance.data;
14443
- if ("$" === data || "$!" === data || "$?" === data) {
14741
+ if ("$" === data || "$!" === data || "$?" === data || "&" === data) {
14444
14742
  if (0 === depth) return targetInstance;
14445
14743
  depth--;
14446
- } else "/$" === data && depth++;
14744
+ } else ("/$" !== data && "/&" !== data) || depth++;
14447
14745
  }
14448
14746
  targetInstance = targetInstance.previousSibling;
14449
14747
  }
@@ -14774,26 +15072,26 @@ function getResource(type, currentProps, pendingProps, currentResource) {
14774
15072
  "string" === typeof pendingProps.precedence
14775
15073
  ) {
14776
15074
  type = getStyleKey(pendingProps.href);
14777
- var styles$263 = getResourcesFromRoot(
15075
+ var styles$270 = getResourcesFromRoot(
14778
15076
  JSCompiler_inline_result
14779
15077
  ).hoistableStyles,
14780
- resource$264 = styles$263.get(type);
14781
- resource$264 ||
15078
+ resource$271 = styles$270.get(type);
15079
+ resource$271 ||
14782
15080
  ((JSCompiler_inline_result =
14783
15081
  JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),
14784
- (resource$264 = {
15082
+ (resource$271 = {
14785
15083
  type: "stylesheet",
14786
15084
  instance: null,
14787
15085
  count: 0,
14788
15086
  state: { loading: 0, preload: null }
14789
15087
  }),
14790
- styles$263.set(type, resource$264),
14791
- (styles$263 = JSCompiler_inline_result.querySelector(
15088
+ styles$270.set(type, resource$271),
15089
+ (styles$270 = JSCompiler_inline_result.querySelector(
14792
15090
  getStylesheetSelectorFromKey(type)
14793
15091
  )) &&
14794
- !styles$263._p &&
14795
- ((resource$264.instance = styles$263),
14796
- (resource$264.state.loading = 5)),
15092
+ !styles$270._p &&
15093
+ ((resource$271.instance = styles$270),
15094
+ (resource$271.state.loading = 5)),
14797
15095
  preloadPropsMap.has(type) ||
14798
15096
  ((pendingProps = {
14799
15097
  rel: "preload",
@@ -14806,16 +15104,16 @@ function getResource(type, currentProps, pendingProps, currentResource) {
14806
15104
  referrerPolicy: pendingProps.referrerPolicy
14807
15105
  }),
14808
15106
  preloadPropsMap.set(type, pendingProps),
14809
- styles$263 ||
15107
+ styles$270 ||
14810
15108
  preloadStylesheet(
14811
15109
  JSCompiler_inline_result,
14812
15110
  type,
14813
15111
  pendingProps,
14814
- resource$264.state
15112
+ resource$271.state
14815
15113
  )));
14816
15114
  if (currentProps && null === currentResource)
14817
15115
  throw Error(formatProdErrorMessage(528, ""));
14818
- return resource$264;
15116
+ return resource$271;
14819
15117
  }
14820
15118
  if (currentProps && null !== currentResource)
14821
15119
  throw Error(formatProdErrorMessage(529, ""));
@@ -14912,37 +15210,37 @@ function acquireResource(hoistableRoot, resource, props) {
14912
15210
  return (resource.instance = instance);
14913
15211
  case "stylesheet":
14914
15212
  styleProps = getStyleKey(props.href);
14915
- var instance$269 = hoistableRoot.querySelector(
15213
+ var instance$276 = hoistableRoot.querySelector(
14916
15214
  getStylesheetSelectorFromKey(styleProps)
14917
15215
  );
14918
- if (instance$269)
15216
+ if (instance$276)
14919
15217
  return (
14920
15218
  (resource.state.loading |= 4),
14921
- (resource.instance = instance$269),
14922
- markNodeAsHoistable(instance$269),
14923
- instance$269
15219
+ (resource.instance = instance$276),
15220
+ markNodeAsHoistable(instance$276),
15221
+ instance$276
14924
15222
  );
14925
15223
  instance = stylesheetPropsFromRawProps(props);
14926
15224
  (styleProps = preloadPropsMap.get(styleProps)) &&
14927
15225
  adoptPreloadPropsForStylesheet(instance, styleProps);
14928
- instance$269 = (
15226
+ instance$276 = (
14929
15227
  hoistableRoot.ownerDocument || hoistableRoot
14930
15228
  ).createElement("link");
14931
- markNodeAsHoistable(instance$269);
14932
- var linkInstance = instance$269;
15229
+ markNodeAsHoistable(instance$276);
15230
+ var linkInstance = instance$276;
14933
15231
  linkInstance._p = new Promise(function (resolve, reject) {
14934
15232
  linkInstance.onload = resolve;
14935
15233
  linkInstance.onerror = reject;
14936
15234
  });
14937
- setInitialProperties(instance$269, "link", instance);
15235
+ setInitialProperties(instance$276, "link", instance);
14938
15236
  resource.state.loading |= 4;
14939
- insertStylesheet(instance$269, props.precedence, hoistableRoot);
14940
- return (resource.instance = instance$269);
15237
+ insertStylesheet(instance$276, props.precedence, hoistableRoot);
15238
+ return (resource.instance = instance$276);
14941
15239
  case "script":
14942
- instance$269 = getScriptKey(props.src);
15240
+ instance$276 = getScriptKey(props.src);
14943
15241
  if (
14944
15242
  (styleProps = hoistableRoot.querySelector(
14945
- getScriptSelectorFromKey(instance$269)
15243
+ getScriptSelectorFromKey(instance$276)
14946
15244
  ))
14947
15245
  )
14948
15246
  return (
@@ -14951,7 +15249,7 @@ function acquireResource(hoistableRoot, resource, props) {
14951
15249
  styleProps
14952
15250
  );
14953
15251
  instance = props;
14954
- if ((styleProps = preloadPropsMap.get(instance$269)))
15252
+ if ((styleProps = preloadPropsMap.get(instance$276)))
14955
15253
  (instance = assign({}, props)),
14956
15254
  adoptPreloadPropsForScript(instance, styleProps);
14957
15255
  hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
@@ -15383,12 +15681,21 @@ function markRetryLaneIfNotHydrated(fiber, retryLane) {
15383
15681
  (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane);
15384
15682
  }
15385
15683
  function attemptContinuousHydration(fiber) {
15386
- if (13 === fiber.tag) {
15684
+ if (13 === fiber.tag || 31 === fiber.tag) {
15387
15685
  var root = enqueueConcurrentRenderForLane(fiber, 67108864);
15388
15686
  null !== root && scheduleUpdateOnFiber(root, fiber, 67108864);
15389
15687
  markRetryLaneIfNotHydrated(fiber, 67108864);
15390
15688
  }
15391
15689
  }
15690
+ function attemptHydrationAtCurrentPriority(fiber) {
15691
+ if (13 === fiber.tag || 31 === fiber.tag) {
15692
+ var lane = requestUpdateLane();
15693
+ lane = getBumpedLaneForHydrationByLane(lane);
15694
+ var root = enqueueConcurrentRenderForLane(fiber, lane);
15695
+ null !== root && scheduleUpdateOnFiber(root, fiber, lane);
15696
+ markRetryLaneIfNotHydrated(fiber, lane);
15697
+ }
15698
+ }
15392
15699
  var _enabled = !0;
15393
15700
  function dispatchDiscreteEvent(
15394
15701
  domEventName,
@@ -15479,6 +15786,7 @@ function dispatchEvent(
15479
15786
  }
15480
15787
  }
15481
15788
  break;
15789
+ case 31:
15482
15790
  case 13:
15483
15791
  (root = enqueueConcurrentRenderForLane(fiber, 2)),
15484
15792
  null !== root && scheduleUpdateOnFiber(root, fiber, 2),
@@ -15525,6 +15833,10 @@ function findInstanceBlockingTarget(targetNode) {
15525
15833
  targetNode = getSuspenseInstanceFromFiber(nearestMounted);
15526
15834
  if (null !== targetNode) return targetNode;
15527
15835
  targetNode = null;
15836
+ } else if (31 === tag) {
15837
+ targetNode = getActivityInstanceFromFiber(nearestMounted);
15838
+ if (null !== targetNode) return targetNode;
15839
+ targetNode = null;
15528
15840
  } else if (3 === tag) {
15529
15841
  if (nearestMounted.stateNode.current.memoizedState.isDehydrated)
15530
15842
  return 3 === nearestMounted.tag
@@ -15785,14 +16097,18 @@ function attemptExplicitHydrationTarget(queuedTarget) {
15785
16097
  ) {
15786
16098
  queuedTarget.blockedOn = targetInst;
15787
16099
  runWithPriority(queuedTarget.priority, function () {
15788
- if (13 === nearestMounted.tag) {
15789
- var lane = requestUpdateLane();
15790
- lane = getBumpedLaneForHydrationByLane(lane);
15791
- var root = enqueueConcurrentRenderForLane(nearestMounted, lane);
15792
- null !== root &&
15793
- scheduleUpdateOnFiber(root, nearestMounted, lane);
15794
- markRetryLaneIfNotHydrated(nearestMounted, lane);
15795
- }
16100
+ attemptHydrationAtCurrentPriority(nearestMounted);
16101
+ });
16102
+ return;
16103
+ }
16104
+ } else if (31 === targetInst) {
16105
+ if (
16106
+ ((targetInst = getActivityInstanceFromFiber(nearestMounted)),
16107
+ null !== targetInst)
16108
+ ) {
16109
+ queuedTarget.blockedOn = targetInst;
16110
+ runWithPriority(queuedTarget.priority, function () {
16111
+ attemptHydrationAtCurrentPriority(nearestMounted);
15796
16112
  });
15797
16113
  return;
15798
16114
  }
@@ -15989,16 +16305,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15989
16305
  0 === i && attemptExplicitHydrationTarget(target);
15990
16306
  }
15991
16307
  };
15992
- var isomorphicReactPackageVersion$jscomp$inline_1886 = React.version;
16308
+ var isomorphicReactPackageVersion$jscomp$inline_1933 = React.version;
15993
16309
  if (
15994
- "19.2.0-canary-72135096-20250421" !==
15995
- isomorphicReactPackageVersion$jscomp$inline_1886
16310
+ "19.2.0-canary-197d6a04-20250424" !==
16311
+ isomorphicReactPackageVersion$jscomp$inline_1933
15996
16312
  )
15997
16313
  throw Error(
15998
16314
  formatProdErrorMessage(
15999
16315
  527,
16000
- isomorphicReactPackageVersion$jscomp$inline_1886,
16001
- "19.2.0-canary-72135096-20250421"
16316
+ isomorphicReactPackageVersion$jscomp$inline_1933,
16317
+ "19.2.0-canary-197d6a04-20250424"
16002
16318
  )
16003
16319
  );
16004
16320
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16018,17 +16334,17 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
16018
16334
  null === componentOrElement ? null : componentOrElement.stateNode;
16019
16335
  return componentOrElement;
16020
16336
  };
16021
- var internals$jscomp$inline_1893 = {
16337
+ var internals$jscomp$inline_1940 = {
16022
16338
  bundleType: 0,
16023
- version: "19.2.0-canary-72135096-20250421",
16339
+ version: "19.2.0-canary-197d6a04-20250424",
16024
16340
  rendererPackageName: "react-dom",
16025
16341
  currentDispatcherRef: ReactSharedInternals,
16026
- reconcilerVersion: "19.2.0-canary-72135096-20250421",
16342
+ reconcilerVersion: "19.2.0-canary-197d6a04-20250424",
16027
16343
  getLaneLabelMap: function () {
16028
16344
  for (
16029
- var map = new Map(), lane = 1, index$286 = 0;
16030
- 31 > index$286;
16031
- index$286++
16345
+ var map = new Map(), lane = 1, index$293 = 0;
16346
+ 31 > index$293;
16347
+ index$293++
16032
16348
  ) {
16033
16349
  var label = getLabelForLane(lane);
16034
16350
  map.set(lane, label);
@@ -16041,16 +16357,16 @@ var internals$jscomp$inline_1893 = {
16041
16357
  }
16042
16358
  };
16043
16359
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
16044
- var hook$jscomp$inline_2328 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
16360
+ var hook$jscomp$inline_2390 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
16045
16361
  if (
16046
- !hook$jscomp$inline_2328.isDisabled &&
16047
- hook$jscomp$inline_2328.supportsFiber
16362
+ !hook$jscomp$inline_2390.isDisabled &&
16363
+ hook$jscomp$inline_2390.supportsFiber
16048
16364
  )
16049
16365
  try {
16050
- (rendererID = hook$jscomp$inline_2328.inject(
16051
- internals$jscomp$inline_1893
16366
+ (rendererID = hook$jscomp$inline_2390.inject(
16367
+ internals$jscomp$inline_1940
16052
16368
  )),
16053
- (injectedHook = hook$jscomp$inline_2328);
16369
+ (injectedHook = hook$jscomp$inline_2390);
16054
16370
  } catch (err) {}
16055
16371
  }
16056
16372
  function noop() {}
@@ -16303,7 +16619,7 @@ exports.useFormState = function (action, initialState, permalink) {
16303
16619
  exports.useFormStatus = function () {
16304
16620
  return ReactSharedInternals.H.useHostTransitionStatus();
16305
16621
  };
16306
- exports.version = "19.2.0-canary-72135096-20250421";
16622
+ exports.version = "19.2.0-canary-197d6a04-20250424";
16307
16623
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
16308
16624
  "function" ===
16309
16625
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&