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.
@@ -60,6 +60,16 @@ function getSuspenseInstanceFromFiber(fiber) {
60
60
  }
61
61
  return null;
62
62
  }
63
+ function getActivityInstanceFromFiber(fiber) {
64
+ if (31 === fiber.tag) {
65
+ var activityState = fiber.memoizedState;
66
+ null === activityState &&
67
+ ((fiber = fiber.alternate),
68
+ null !== fiber && (activityState = fiber.memoizedState));
69
+ if (null !== activityState) return activityState.dehydrated;
70
+ }
71
+ return null;
72
+ }
63
73
  function assertIsMounted(fiber) {
64
74
  if (getNearestMountedFiber(fiber) !== fiber)
65
75
  throw Error(formatProdErrorMessage(188));
@@ -760,6 +770,14 @@ function markRootEntangled(root, entangledLanes) {
760
770
  rootEntangledLanes &= ~lane;
761
771
  }
762
772
  }
773
+ function getBumpedLaneForHydration(root, renderLanes) {
774
+ var renderLane = renderLanes & -renderLanes;
775
+ renderLane =
776
+ 0 !== (renderLane & 42) ? 1 : getBumpedLaneForHydrationByLane(renderLane);
777
+ return 0 !== (renderLane & (root.suspendedLanes | renderLanes))
778
+ ? 0
779
+ : renderLane;
780
+ }
763
781
  function getBumpedLaneForHydrationByLane(lane) {
764
782
  switch (lane) {
765
783
  case 2:
@@ -854,12 +872,12 @@ function getClosestInstanceFromNode(targetNode) {
854
872
  (null !== parentNode && null !== parentNode.child)
855
873
  )
856
874
  for (
857
- targetNode = getParentSuspenseInstance(targetNode);
875
+ targetNode = getParentHydrationBoundary(targetNode);
858
876
  null !== targetNode;
859
877
 
860
878
  ) {
861
879
  if ((parentNode = targetNode[internalInstanceKey])) return parentNode;
862
- targetNode = getParentSuspenseInstance(targetNode);
880
+ targetNode = getParentHydrationBoundary(targetNode);
863
881
  }
864
882
  return targetInst;
865
883
  }
@@ -877,6 +895,7 @@ function getInstanceFromNode(node) {
877
895
  5 === tag ||
878
896
  6 === tag ||
879
897
  13 === tag ||
898
+ 31 === tag ||
880
899
  26 === tag ||
881
900
  27 === tag ||
882
901
  3 === tag
@@ -2016,19 +2035,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
2016
2035
  }
2017
2036
  var isInputEventSupported = !1;
2018
2037
  if (canUseDOM) {
2019
- var JSCompiler_inline_result$jscomp$286;
2038
+ var JSCompiler_inline_result$jscomp$293;
2020
2039
  if (canUseDOM) {
2021
- var isSupported$jscomp$inline_424 = "oninput" in document;
2022
- if (!isSupported$jscomp$inline_424) {
2023
- var element$jscomp$inline_425 = document.createElement("div");
2024
- element$jscomp$inline_425.setAttribute("oninput", "return;");
2025
- isSupported$jscomp$inline_424 =
2026
- "function" === typeof element$jscomp$inline_425.oninput;
2040
+ var isSupported$jscomp$inline_433 = "oninput" in document;
2041
+ if (!isSupported$jscomp$inline_433) {
2042
+ var element$jscomp$inline_434 = document.createElement("div");
2043
+ element$jscomp$inline_434.setAttribute("oninput", "return;");
2044
+ isSupported$jscomp$inline_433 =
2045
+ "function" === typeof element$jscomp$inline_434.oninput;
2027
2046
  }
2028
- JSCompiler_inline_result$jscomp$286 = isSupported$jscomp$inline_424;
2029
- } else JSCompiler_inline_result$jscomp$286 = !1;
2047
+ JSCompiler_inline_result$jscomp$293 = isSupported$jscomp$inline_433;
2048
+ } else JSCompiler_inline_result$jscomp$293 = !1;
2030
2049
  isInputEventSupported =
2031
- JSCompiler_inline_result$jscomp$286 &&
2050
+ JSCompiler_inline_result$jscomp$293 &&
2032
2051
  (!document.documentMode || 9 < document.documentMode);
2033
2052
  }
2034
2053
  function stopWatchingForValueChange() {
@@ -2580,6 +2599,11 @@ function createFiberFromText(content, mode, lanes) {
2580
2599
  content.lanes = lanes;
2581
2600
  return content;
2582
2601
  }
2602
+ function createFiberFromDehydratedFragment(dehydratedNode) {
2603
+ var fiber = createFiberImplClass(18, null, null, 0);
2604
+ fiber.stateNode = dehydratedNode;
2605
+ return fiber;
2606
+ }
2583
2607
  function createFiberFromPortal(portal, mode, lanes) {
2584
2608
  mode = createFiberImplClass(
2585
2609
  4,
@@ -2657,6 +2681,14 @@ function popTreeContext(workInProgress) {
2657
2681
  (treeContextId = idStack[--idStackIndex]),
2658
2682
  (idStack[idStackIndex] = null);
2659
2683
  }
2684
+ function restoreSuspendedTreeContext(workInProgress, suspendedContext) {
2685
+ idStack[idStackIndex++] = treeContextId;
2686
+ idStack[idStackIndex++] = treeContextOverflow;
2687
+ idStack[idStackIndex++] = treeContextProvider;
2688
+ treeContextId = suspendedContext.id;
2689
+ treeContextOverflow = suspendedContext.overflow;
2690
+ treeContextProvider = workInProgress;
2691
+ }
2660
2692
  var hydrationParentFiber = null,
2661
2693
  nextHydratableInstance = null,
2662
2694
  isHydrating = !1,
@@ -2753,6 +2785,7 @@ function popToNextHostParent(fiber) {
2753
2785
  for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
2754
2786
  switch (hydrationParentFiber.tag) {
2755
2787
  case 5:
2788
+ case 31:
2756
2789
  case 13:
2757
2790
  rootOrSingletonContext = !1;
2758
2791
  return;
@@ -2783,25 +2816,14 @@ function popHydrationState(fiber) {
2783
2816
  fiber = fiber.memoizedState;
2784
2817
  fiber = null !== fiber ? fiber.dehydrated : null;
2785
2818
  if (!fiber) throw Error(formatProdErrorMessage(317));
2786
- a: {
2787
- fiber = fiber.nextSibling;
2788
- for (tag = 0; fiber; ) {
2789
- if (8 === fiber.nodeType)
2790
- if (((JSCompiler_temp = fiber.data), "/$" === JSCompiler_temp)) {
2791
- if (0 === tag) {
2792
- nextHydratableInstance = getNextHydratable(fiber.nextSibling);
2793
- break a;
2794
- }
2795
- tag--;
2796
- } else
2797
- ("$" !== JSCompiler_temp &&
2798
- "$!" !== JSCompiler_temp &&
2799
- "$?" !== JSCompiler_temp) ||
2800
- tag++;
2801
- fiber = fiber.nextSibling;
2802
- }
2803
- nextHydratableInstance = null;
2804
- }
2819
+ nextHydratableInstance =
2820
+ getNextHydratableInstanceAfterHydrationBoundary(fiber);
2821
+ } else if (31 === tag) {
2822
+ fiber = fiber.memoizedState;
2823
+ fiber = null !== fiber ? fiber.dehydrated : null;
2824
+ if (!fiber) throw Error(formatProdErrorMessage(317));
2825
+ nextHydratableInstance =
2826
+ getNextHydratableInstanceAfterHydrationBoundary(fiber);
2805
2827
  } else
2806
2828
  27 === tag
2807
2829
  ? ((tag = nextHydratableInstance),
@@ -4190,19 +4212,17 @@ function pushPrimaryTreeSuspenseHandler(handler) {
4190
4212
  ? (shellBoundary = handler)
4191
4213
  : null !== current.memoizedState && (shellBoundary = handler));
4192
4214
  }
4215
+ function pushDehydratedActivitySuspenseHandler(fiber) {
4216
+ push(suspenseStackCursor, suspenseStackCursor.current);
4217
+ push(suspenseHandlerStackCursor, fiber);
4218
+ null === shellBoundary && (shellBoundary = fiber);
4219
+ }
4193
4220
  function pushOffscreenSuspenseHandler(fiber) {
4194
- if (22 === fiber.tag) {
4195
- if (
4196
- (push(suspenseStackCursor, suspenseStackCursor.current),
4221
+ 22 === fiber.tag
4222
+ ? (push(suspenseStackCursor, suspenseStackCursor.current),
4197
4223
  push(suspenseHandlerStackCursor, fiber),
4198
- null === shellBoundary)
4199
- ) {
4200
- var current = fiber.alternate;
4201
- null !== current &&
4202
- null !== current.memoizedState &&
4203
- (shellBoundary = fiber);
4204
- }
4205
- } else reuseSuspenseHandlerOnStack(fiber);
4224
+ null === shellBoundary && (shellBoundary = fiber))
4225
+ : reuseSuspenseHandlerOnStack(fiber);
4206
4226
  }
4207
4227
  function reuseSuspenseHandlerOnStack() {
4208
4228
  push(suspenseStackCursor, suspenseStackCursor.current);
@@ -5894,6 +5914,7 @@ function throwException(
5894
5914
  sourceFiber = suspenseHandlerStackCursor.current;
5895
5915
  if (null !== sourceFiber) {
5896
5916
  switch (sourceFiber.tag) {
5917
+ case 31:
5897
5918
  case 13:
5898
5919
  return (
5899
5920
  null === shellBoundary
@@ -6181,7 +6202,18 @@ function updateOffscreenComponent(
6181
6202
  renderLanes
6182
6203
  );
6183
6204
  }
6184
- if (0 === (renderLanes & 536870912) || isHydrating)
6205
+ if (0 !== (renderLanes & 536870912))
6206
+ (workInProgress.memoizedState = { baseLanes: 0, cachePool: null }),
6207
+ null !== current &&
6208
+ pushTransition(
6209
+ workInProgress,
6210
+ null !== prevState ? prevState.cachePool : null
6211
+ ),
6212
+ null !== prevState
6213
+ ? pushHiddenContext(workInProgress, prevState)
6214
+ : reuseHiddenContextOnStack(),
6215
+ pushOffscreenSuspenseHandler(workInProgress);
6216
+ else
6185
6217
  return (
6186
6218
  (workInProgress.lanes = workInProgress.childLanes = 536870912),
6187
6219
  deferHiddenOffscreenComponent(
@@ -6191,16 +6223,6 @@ function updateOffscreenComponent(
6191
6223
  renderLanes
6192
6224
  )
6193
6225
  );
6194
- workInProgress.memoizedState = { baseLanes: 0, cachePool: null };
6195
- null !== current &&
6196
- pushTransition(
6197
- workInProgress,
6198
- null !== prevState ? prevState.cachePool : null
6199
- );
6200
- null !== prevState
6201
- ? pushHiddenContext(workInProgress, prevState)
6202
- : reuseHiddenContextOnStack();
6203
- pushOffscreenSuspenseHandler(workInProgress);
6204
6226
  } else
6205
6227
  null !== prevState
6206
6228
  ? (pushTransition(workInProgress, prevState.cachePool),
@@ -6235,6 +6257,28 @@ function deferHiddenOffscreenComponent(
6235
6257
  propagateParentContextChanges(current, workInProgress, renderLanes, !0);
6236
6258
  return null;
6237
6259
  }
6260
+ function mountActivityChildren(workInProgress, nextProps) {
6261
+ nextProps = mountWorkInProgressOffscreenFiber(
6262
+ { mode: nextProps.mode, children: nextProps.children },
6263
+ workInProgress.mode
6264
+ );
6265
+ nextProps.ref = workInProgress.ref;
6266
+ workInProgress.child = nextProps;
6267
+ nextProps.return = workInProgress;
6268
+ return nextProps;
6269
+ }
6270
+ function retryActivityComponentWithoutHydrating(
6271
+ current,
6272
+ workInProgress,
6273
+ renderLanes
6274
+ ) {
6275
+ reconcileChildFibers(workInProgress, current.child, null, renderLanes);
6276
+ current = mountActivityChildren(workInProgress, workInProgress.pendingProps);
6277
+ current.flags |= 2;
6278
+ popSuspenseHandler(workInProgress);
6279
+ workInProgress.memoizedState = null;
6280
+ return current;
6281
+ }
6238
6282
  function markRef(current, workInProgress) {
6239
6283
  var ref = workInProgress.ref;
6240
6284
  if (null === ref)
@@ -6611,39 +6655,28 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6611
6655
  showFallback
6612
6656
  ? pushPrimaryTreeSuspenseHandler(workInProgress)
6613
6657
  : reuseSuspenseHandlerOnStack(workInProgress);
6614
- if ((current = nextHydratableInstance)) {
6615
- a: {
6616
- renderLanes = current;
6617
- for (current = rootOrSingletonContext; 8 !== renderLanes.nodeType; ) {
6618
- if (!current) {
6619
- current = null;
6620
- break a;
6621
- }
6622
- renderLanes = getNextHydratable(renderLanes.nextSibling);
6623
- if (null === renderLanes) {
6624
- current = null;
6625
- break a;
6626
- }
6627
- }
6628
- current = renderLanes;
6629
- }
6630
- null !== current &&
6631
- ((workInProgress.memoizedState = {
6632
- dehydrated: current,
6633
- treeContext:
6634
- null !== treeContextProvider
6635
- ? { id: treeContextId, overflow: treeContextOverflow }
6636
- : null,
6637
- retryLane: 536870912,
6638
- hydrationErrors: null
6639
- }),
6640
- (renderLanes = createFiberImplClass(18, null, null, 0)),
6641
- (renderLanes.stateNode = current),
6642
- (renderLanes.return = workInProgress),
6643
- (workInProgress.child = renderLanes),
6644
- (hydrationParentFiber = workInProgress),
6645
- (nextHydratableInstance = null));
6646
- } else current = null;
6658
+ (current = nextHydratableInstance)
6659
+ ? ((current = canHydrateHydrationBoundary(
6660
+ current,
6661
+ rootOrSingletonContext
6662
+ )),
6663
+ (current = null !== current && "&" !== current.data ? current : null),
6664
+ null !== current &&
6665
+ ((workInProgress.memoizedState = {
6666
+ dehydrated: current,
6667
+ treeContext:
6668
+ null !== treeContextProvider
6669
+ ? { id: treeContextId, overflow: treeContextOverflow }
6670
+ : null,
6671
+ retryLane: 536870912,
6672
+ hydrationErrors: null
6673
+ }),
6674
+ (renderLanes = createFiberFromDehydratedFragment(current)),
6675
+ (renderLanes.return = workInProgress),
6676
+ (workInProgress.child = renderLanes),
6677
+ (hydrationParentFiber = workInProgress),
6678
+ (nextHydratableInstance = null)))
6679
+ : (current = null);
6647
6680
  if (null === current) throw throwOnHydrationMismatch(workInProgress);
6648
6681
  isSuspenseInstanceFallback(current)
6649
6682
  ? (workInProgress.lanes = 32)
@@ -6652,36 +6685,42 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6652
6685
  }
6653
6686
  var nextPrimaryChildren = nextProps.children;
6654
6687
  nextProps = nextProps.fallback;
6655
- if (showFallback) {
6656
- reuseSuspenseHandlerOnStack(workInProgress);
6657
- var mode = workInProgress.mode;
6658
- nextPrimaryChildren = mountWorkInProgressOffscreenFiber(
6659
- { mode: "hidden", children: nextPrimaryChildren },
6660
- mode
6661
- );
6662
- nextProps = createFiberFromFragment(nextProps, mode, renderLanes, null);
6663
- nextPrimaryChildren.return = workInProgress;
6664
- nextProps.return = workInProgress;
6665
- nextPrimaryChildren.sibling = nextProps;
6666
- workInProgress.child = nextPrimaryChildren;
6667
- nextPrimaryChildren = workInProgress.child;
6668
- nextPrimaryChildren.memoizedState =
6669
- mountSuspenseOffscreenState(renderLanes);
6670
- nextPrimaryChildren.childLanes = getRemainingWorkInPrimaryTree(
6671
- current,
6672
- JSCompiler_temp,
6673
- renderLanes
6688
+ if (showFallback)
6689
+ return (
6690
+ reuseSuspenseHandlerOnStack(workInProgress),
6691
+ (showFallback = workInProgress.mode),
6692
+ (nextPrimaryChildren = mountWorkInProgressOffscreenFiber(
6693
+ { mode: "hidden", children: nextPrimaryChildren },
6694
+ showFallback
6695
+ )),
6696
+ (nextProps = createFiberFromFragment(
6697
+ nextProps,
6698
+ showFallback,
6699
+ renderLanes,
6700
+ null
6701
+ )),
6702
+ (nextPrimaryChildren.return = workInProgress),
6703
+ (nextProps.return = workInProgress),
6704
+ (nextPrimaryChildren.sibling = nextProps),
6705
+ (workInProgress.child = nextPrimaryChildren),
6706
+ (nextPrimaryChildren = workInProgress.child),
6707
+ (nextPrimaryChildren.memoizedState =
6708
+ mountSuspenseOffscreenState(renderLanes)),
6709
+ (nextPrimaryChildren.childLanes = getRemainingWorkInPrimaryTree(
6710
+ current,
6711
+ JSCompiler_temp,
6712
+ renderLanes
6713
+ )),
6714
+ (workInProgress.memoizedState = SUSPENDED_MARKER),
6715
+ nextProps
6674
6716
  );
6675
- workInProgress.memoizedState = SUSPENDED_MARKER;
6676
- return nextProps;
6677
- }
6678
6717
  pushPrimaryTreeSuspenseHandler(workInProgress);
6679
6718
  return mountSuspensePrimaryChildren(workInProgress, nextPrimaryChildren);
6680
6719
  }
6681
- mode = current.memoizedState;
6720
+ var prevState = current.memoizedState;
6682
6721
  if (
6683
- null !== mode &&
6684
- ((nextPrimaryChildren = mode.dehydrated), null !== nextPrimaryChildren)
6722
+ null !== prevState &&
6723
+ ((nextPrimaryChildren = prevState.dehydrated), null !== nextPrimaryChildren)
6685
6724
  ) {
6686
6725
  if (didSuspend)
6687
6726
  workInProgress.flags & 256
@@ -6699,14 +6738,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6699
6738
  (workInProgress = null))
6700
6739
  : (reuseSuspenseHandlerOnStack(workInProgress),
6701
6740
  (nextPrimaryChildren = nextProps.fallback),
6702
- (mode = workInProgress.mode),
6741
+ (showFallback = workInProgress.mode),
6703
6742
  (nextProps = mountWorkInProgressOffscreenFiber(
6704
6743
  { mode: "visible", children: nextProps.children },
6705
- mode
6744
+ showFallback
6706
6745
  )),
6707
6746
  (nextPrimaryChildren = createFiberFromFragment(
6708
6747
  nextPrimaryChildren,
6709
- mode,
6748
+ showFallback,
6710
6749
  renderLanes,
6711
6750
  null
6712
6751
  )),
@@ -6758,19 +6797,11 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6758
6797
  JSCompiler_temp = workInProgressRoot;
6759
6798
  if (
6760
6799
  null !== JSCompiler_temp &&
6761
- ((nextProps = renderLanes & -renderLanes),
6762
- (nextProps =
6763
- 0 !== (nextProps & 42)
6764
- ? 1
6765
- : getBumpedLaneForHydrationByLane(nextProps)),
6766
- (nextProps =
6767
- 0 !== (nextProps & (JSCompiler_temp.suspendedLanes | renderLanes))
6768
- ? 0
6769
- : nextProps),
6770
- 0 !== nextProps && nextProps !== mode.retryLane)
6800
+ ((nextProps = getBumpedLaneForHydration(JSCompiler_temp, renderLanes)),
6801
+ 0 !== nextProps && nextProps !== prevState.retryLane)
6771
6802
  )
6772
6803
  throw (
6773
- ((mode.retryLane = nextProps),
6804
+ ((prevState.retryLane = nextProps),
6774
6805
  enqueueConcurrentRenderForLane(current, nextProps),
6775
6806
  scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps),
6776
6807
  SelectiveHydrationException)
@@ -6786,7 +6817,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6786
6817
  ? ((workInProgress.flags |= 192),
6787
6818
  (workInProgress.child = current.child),
6788
6819
  (workInProgress = null))
6789
- : ((current = mode.treeContext),
6820
+ : ((current = prevState.treeContext),
6790
6821
  (nextHydratableInstance = getNextHydratable(
6791
6822
  nextPrimaryChildren.nextSibling
6792
6823
  )),
@@ -6795,12 +6826,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6795
6826
  (hydrationErrors = null),
6796
6827
  (rootOrSingletonContext = !1),
6797
6828
  null !== current &&
6798
- ((idStack[idStackIndex++] = treeContextId),
6799
- (idStack[idStackIndex++] = treeContextOverflow),
6800
- (idStack[idStackIndex++] = treeContextProvider),
6801
- (treeContextId = current.id),
6802
- (treeContextOverflow = current.overflow),
6803
- (treeContextProvider = workInProgress)),
6829
+ restoreSuspendedTreeContext(workInProgress, current),
6804
6830
  (workInProgress = mountSuspensePrimaryChildren(
6805
6831
  workInProgress,
6806
6832
  nextProps.children
@@ -6812,14 +6838,14 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6812
6838
  return (
6813
6839
  reuseSuspenseHandlerOnStack(workInProgress),
6814
6840
  (nextPrimaryChildren = nextProps.fallback),
6815
- (mode = workInProgress.mode),
6816
- (showFallback = current.child),
6817
- (digest = showFallback.sibling),
6818
- (nextProps = createWorkInProgress(showFallback, {
6841
+ (showFallback = workInProgress.mode),
6842
+ (prevState = current.child),
6843
+ (digest = prevState.sibling),
6844
+ (nextProps = createWorkInProgress(prevState, {
6819
6845
  mode: "hidden",
6820
6846
  children: nextProps.children
6821
6847
  })),
6822
- (nextProps.subtreeFlags = showFallback.subtreeFlags & 65011712),
6848
+ (nextProps.subtreeFlags = prevState.subtreeFlags & 65011712),
6823
6849
  null !== digest
6824
6850
  ? (nextPrimaryChildren = createWorkInProgress(
6825
6851
  digest,
@@ -6827,7 +6853,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6827
6853
  ))
6828
6854
  : ((nextPrimaryChildren = createFiberFromFragment(
6829
6855
  nextPrimaryChildren,
6830
- mode,
6856
+ showFallback,
6831
6857
  renderLanes,
6832
6858
  null
6833
6859
  )),
@@ -6838,22 +6864,22 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
6838
6864
  (workInProgress.child = nextProps),
6839
6865
  (nextProps = nextPrimaryChildren),
6840
6866
  (nextPrimaryChildren = workInProgress.child),
6841
- (mode = current.child.memoizedState),
6842
- null === mode
6843
- ? (mode = mountSuspenseOffscreenState(renderLanes))
6844
- : ((showFallback = mode.cachePool),
6845
- null !== showFallback
6867
+ (showFallback = current.child.memoizedState),
6868
+ null === showFallback
6869
+ ? (showFallback = mountSuspenseOffscreenState(renderLanes))
6870
+ : ((prevState = showFallback.cachePool),
6871
+ null !== prevState
6846
6872
  ? ((digest = CacheContext._currentValue),
6847
- (showFallback =
6848
- showFallback.parent !== digest
6873
+ (prevState =
6874
+ prevState.parent !== digest
6849
6875
  ? { parent: digest, pool: digest }
6850
- : showFallback))
6851
- : (showFallback = getSuspendedCache()),
6852
- (mode = {
6853
- baseLanes: mode.baseLanes | renderLanes,
6854
- cachePool: showFallback
6876
+ : prevState))
6877
+ : (prevState = getSuspendedCache()),
6878
+ (showFallback = {
6879
+ baseLanes: showFallback.baseLanes | renderLanes,
6880
+ cachePool: prevState
6855
6881
  })),
6856
- (nextPrimaryChildren.memoizedState = mode),
6882
+ (nextPrimaryChildren.memoizedState = showFallback),
6857
6883
  (nextPrimaryChildren.childLanes = getRemainingWorkInPrimaryTree(
6858
6884
  current,
6859
6885
  JSCompiler_temp,
@@ -7088,10 +7114,18 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
7088
7114
  workInProgress.memoizedProps.value
7089
7115
  );
7090
7116
  break;
7117
+ case 31:
7118
+ if (null !== workInProgress.memoizedState)
7119
+ return (
7120
+ (workInProgress.flags |= 128),
7121
+ pushDehydratedActivitySuspenseHandler(workInProgress),
7122
+ null
7123
+ );
7124
+ break;
7091
7125
  case 13:
7092
- var state = workInProgress.memoizedState;
7093
- if (null !== state) {
7094
- if (null !== state.dehydrated)
7126
+ var state$103 = workInProgress.memoizedState;
7127
+ if (null !== state$103) {
7128
+ if (null !== state$103.dehydrated)
7095
7129
  return (
7096
7130
  pushPrimaryTreeSuspenseHandler(workInProgress),
7097
7131
  (workInProgress.flags |= 128),
@@ -7111,17 +7145,17 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
7111
7145
  break;
7112
7146
  case 19:
7113
7147
  var didSuspendBefore = 0 !== (current.flags & 128);
7114
- state = 0 !== (renderLanes & workInProgress.childLanes);
7115
- state ||
7148
+ state$103 = 0 !== (renderLanes & workInProgress.childLanes);
7149
+ state$103 ||
7116
7150
  (propagateParentContextChanges(
7117
7151
  current,
7118
7152
  workInProgress,
7119
7153
  renderLanes,
7120
7154
  !1
7121
7155
  ),
7122
- (state = 0 !== (renderLanes & workInProgress.childLanes)));
7156
+ (state$103 = 0 !== (renderLanes & workInProgress.childLanes)));
7123
7157
  if (didSuspendBefore) {
7124
- if (state)
7158
+ if (state$103)
7125
7159
  return updateSuspenseListComponent(
7126
7160
  current,
7127
7161
  workInProgress,
@@ -7135,7 +7169,7 @@ function attemptEarlyBailoutIfNoScheduledUpdate(
7135
7169
  (didSuspendBefore.tail = null),
7136
7170
  (didSuspendBefore.lastEffect = null));
7137
7171
  push(suspenseStackCursor, suspenseStackCursor.current);
7138
- if (state) break;
7172
+ if (state$103) break;
7139
7173
  else return null;
7140
7174
  case 22:
7141
7175
  return (
@@ -7584,29 +7618,116 @@ function beginWork(current, workInProgress, renderLanes) {
7584
7618
  case 19:
7585
7619
  return updateSuspenseListComponent(current, workInProgress, renderLanes);
7586
7620
  case 31:
7587
- return (
7588
- (lazyComponent = workInProgress.pendingProps),
7589
- (renderLanes = workInProgress.mode),
7590
- (lazyComponent = {
7591
- mode: lazyComponent.mode,
7592
- children: lazyComponent.children
7593
- }),
7594
- null === current
7595
- ? ((renderLanes = mountWorkInProgressOffscreenFiber(
7596
- lazyComponent,
7597
- renderLanes
7598
- )),
7599
- (renderLanes.ref = workInProgress.ref),
7600
- (workInProgress.child = renderLanes),
7601
- (renderLanes.return = workInProgress),
7602
- (workInProgress = renderLanes))
7603
- : ((renderLanes = createWorkInProgress(current.child, lazyComponent)),
7604
- (renderLanes.ref = workInProgress.ref),
7605
- (workInProgress.child = renderLanes),
7606
- (renderLanes.return = workInProgress),
7607
- (workInProgress = renderLanes)),
7608
- workInProgress
7609
- );
7621
+ init = workInProgress.pendingProps;
7622
+ nextState = 0 !== (workInProgress.flags & 128);
7623
+ workInProgress.flags &= -129;
7624
+ if (null === current)
7625
+ if (isHydrating) {
7626
+ if ("hidden" === init.mode)
7627
+ mountActivityChildren(workInProgress, init);
7628
+ else if (
7629
+ (pushDehydratedActivitySuspenseHandler(workInProgress),
7630
+ (renderLanes = nextHydratableInstance)
7631
+ ? ((renderLanes = canHydrateHydrationBoundary(
7632
+ renderLanes,
7633
+ rootOrSingletonContext
7634
+ )),
7635
+ (renderLanes =
7636
+ null !== renderLanes && "&" === renderLanes.data
7637
+ ? renderLanes
7638
+ : null),
7639
+ null !== renderLanes &&
7640
+ ((workInProgress.memoizedState = {
7641
+ dehydrated: renderLanes,
7642
+ treeContext:
7643
+ null !== treeContextProvider
7644
+ ? { id: treeContextId, overflow: treeContextOverflow }
7645
+ : null,
7646
+ retryLane: 536870912,
7647
+ hydrationErrors: null
7648
+ }),
7649
+ (current = createFiberFromDehydratedFragment(renderLanes)),
7650
+ (current.return = workInProgress),
7651
+ (workInProgress.child = current),
7652
+ (hydrationParentFiber = workInProgress),
7653
+ (nextHydratableInstance = null)))
7654
+ : (renderLanes = null),
7655
+ null === renderLanes)
7656
+ )
7657
+ throw throwOnHydrationMismatch(workInProgress);
7658
+ workInProgress.lanes = 536870912;
7659
+ workInProgress = null;
7660
+ } else workInProgress = mountActivityChildren(workInProgress, init);
7661
+ else if (
7662
+ ((lazyComponent = current.memoizedState), null !== lazyComponent)
7663
+ )
7664
+ if (
7665
+ ((prevState = lazyComponent.dehydrated),
7666
+ pushDehydratedActivitySuspenseHandler(workInProgress),
7667
+ nextState)
7668
+ )
7669
+ if (workInProgress.flags & 256)
7670
+ (workInProgress.flags &= -257),
7671
+ (workInProgress = retryActivityComponentWithoutHydrating(
7672
+ current,
7673
+ workInProgress,
7674
+ renderLanes
7675
+ ));
7676
+ else if (null !== workInProgress.memoizedState)
7677
+ (workInProgress.child = current.child),
7678
+ (workInProgress.flags |= 128),
7679
+ (workInProgress = null);
7680
+ else throw Error(formatProdErrorMessage(558));
7681
+ else if (
7682
+ (didReceiveUpdate ||
7683
+ propagateParentContextChanges(
7684
+ current,
7685
+ workInProgress,
7686
+ renderLanes,
7687
+ !1
7688
+ ),
7689
+ (nextState = 0 !== (renderLanes & current.childLanes)),
7690
+ didReceiveUpdate || nextState)
7691
+ ) {
7692
+ init = workInProgressRoot;
7693
+ if (
7694
+ null !== init &&
7695
+ ((prevState = getBumpedLaneForHydration(init, renderLanes)),
7696
+ 0 !== prevState && prevState !== lazyComponent.retryLane)
7697
+ )
7698
+ throw (
7699
+ ((lazyComponent.retryLane = prevState),
7700
+ enqueueConcurrentRenderForLane(current, prevState),
7701
+ scheduleUpdateOnFiber(init, current, prevState),
7702
+ SelectiveHydrationException)
7703
+ );
7704
+ renderDidSuspendDelayIfPossible();
7705
+ workInProgress = retryActivityComponentWithoutHydrating(
7706
+ current,
7707
+ workInProgress,
7708
+ renderLanes
7709
+ );
7710
+ } else
7711
+ (renderLanes = lazyComponent.treeContext),
7712
+ (nextHydratableInstance = getNextHydratable(prevState.nextSibling)),
7713
+ (hydrationParentFiber = workInProgress),
7714
+ (isHydrating = !0),
7715
+ (hydrationErrors = null),
7716
+ (rootOrSingletonContext = !1),
7717
+ null !== renderLanes &&
7718
+ restoreSuspendedTreeContext(workInProgress, renderLanes),
7719
+ (workInProgress = mountActivityChildren(workInProgress, init)),
7720
+ (workInProgress.flags |= 4096);
7721
+ else
7722
+ (renderLanes = createWorkInProgress(current.child, {
7723
+ mode: init.mode,
7724
+ children: init.children
7725
+ })),
7726
+ (renderLanes.ref = workInProgress.ref),
7727
+ (workInProgress.child = renderLanes),
7728
+ (renderLanes.return = workInProgress),
7729
+ (workInProgress = renderLanes);
7730
+ return workInProgress;
7610
7731
  case 22:
7611
7732
  return updateOffscreenComponent(
7612
7733
  current,
@@ -7728,14 +7849,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) {
7728
7849
  break;
7729
7850
  case "collapsed":
7730
7851
  lastTailNode = renderState.tail;
7731
- for (var lastTailNode$113 = null; null !== lastTailNode; )
7732
- null !== lastTailNode.alternate && (lastTailNode$113 = lastTailNode),
7852
+ for (var lastTailNode$114 = null; null !== lastTailNode; )
7853
+ null !== lastTailNode.alternate && (lastTailNode$114 = lastTailNode),
7733
7854
  (lastTailNode = lastTailNode.sibling);
7734
- null === lastTailNode$113
7855
+ null === lastTailNode$114
7735
7856
  ? hasRenderedATailFallback || null === renderState.tail
7736
7857
  ? (renderState.tail = null)
7737
7858
  : (renderState.tail.sibling = null)
7738
- : (lastTailNode$113.sibling = null);
7859
+ : (lastTailNode$114.sibling = null);
7739
7860
  }
7740
7861
  }
7741
7862
  function bubbleProperties(completedWork) {
@@ -7745,19 +7866,19 @@ function bubbleProperties(completedWork) {
7745
7866
  newChildLanes = 0,
7746
7867
  subtreeFlags = 0;
7747
7868
  if (didBailout)
7748
- for (var child$114 = completedWork.child; null !== child$114; )
7749
- (newChildLanes |= child$114.lanes | child$114.childLanes),
7750
- (subtreeFlags |= child$114.subtreeFlags & 65011712),
7751
- (subtreeFlags |= child$114.flags & 65011712),
7752
- (child$114.return = completedWork),
7753
- (child$114 = child$114.sibling);
7869
+ for (var child$115 = completedWork.child; null !== child$115; )
7870
+ (newChildLanes |= child$115.lanes | child$115.childLanes),
7871
+ (subtreeFlags |= child$115.subtreeFlags & 65011712),
7872
+ (subtreeFlags |= child$115.flags & 65011712),
7873
+ (child$115.return = completedWork),
7874
+ (child$115 = child$115.sibling);
7754
7875
  else
7755
- for (child$114 = completedWork.child; null !== child$114; )
7756
- (newChildLanes |= child$114.lanes | child$114.childLanes),
7757
- (subtreeFlags |= child$114.subtreeFlags),
7758
- (subtreeFlags |= child$114.flags),
7759
- (child$114.return = completedWork),
7760
- (child$114 = child$114.sibling);
7876
+ for (child$115 = completedWork.child; null !== child$115; )
7877
+ (newChildLanes |= child$115.lanes | child$115.childLanes),
7878
+ (subtreeFlags |= child$115.subtreeFlags),
7879
+ (subtreeFlags |= child$115.flags),
7880
+ (child$115.return = completedWork),
7881
+ (child$115 = child$115.sibling);
7761
7882
  completedWork.subtreeFlags |= subtreeFlags;
7762
7883
  completedWork.childLanes = newChildLanes;
7763
7884
  return didBailout;
@@ -7766,7 +7887,6 @@ function completeWork(current, workInProgress, renderLanes) {
7766
7887
  var newProps = workInProgress.pendingProps;
7767
7888
  popTreeContext(workInProgress);
7768
7889
  switch (workInProgress.tag) {
7769
- case 31:
7770
7890
  case 16:
7771
7891
  case 15:
7772
7892
  case 0:
@@ -8021,6 +8141,41 @@ function completeWork(current, workInProgress, renderLanes) {
8021
8141
  }
8022
8142
  bubbleProperties(workInProgress);
8023
8143
  return null;
8144
+ case 31:
8145
+ renderLanes = workInProgress.memoizedState;
8146
+ if (null === current || null !== current.memoizedState) {
8147
+ newProps = popHydrationState(workInProgress);
8148
+ if (null !== renderLanes) {
8149
+ if (null === current) {
8150
+ if (!newProps) throw Error(formatProdErrorMessage(318));
8151
+ current = workInProgress.memoizedState;
8152
+ current = null !== current ? current.dehydrated : null;
8153
+ if (!current) throw Error(formatProdErrorMessage(557));
8154
+ current[internalInstanceKey] = workInProgress;
8155
+ } else
8156
+ resetHydrationState(),
8157
+ 0 === (workInProgress.flags & 128) &&
8158
+ (workInProgress.memoizedState = null),
8159
+ (workInProgress.flags |= 4);
8160
+ bubbleProperties(workInProgress);
8161
+ current = !1;
8162
+ } else
8163
+ (renderLanes = upgradeHydrationErrorsToRecoverable()),
8164
+ null !== current &&
8165
+ null !== current.memoizedState &&
8166
+ (current.memoizedState.hydrationErrors = renderLanes),
8167
+ (current = !0);
8168
+ if (!current) {
8169
+ if (workInProgress.flags & 256)
8170
+ return popSuspenseHandler(workInProgress), workInProgress;
8171
+ popSuspenseHandler(workInProgress);
8172
+ return null;
8173
+ }
8174
+ if (0 !== (workInProgress.flags & 128))
8175
+ throw Error(formatProdErrorMessage(558));
8176
+ }
8177
+ bubbleProperties(workInProgress);
8178
+ return null;
8024
8179
  case 13:
8025
8180
  newProps = workInProgress.memoizedState;
8026
8181
  if (
@@ -8252,6 +8407,17 @@ function unwindWork(current, workInProgress) {
8252
8407
  case 27:
8253
8408
  case 5:
8254
8409
  return popHostContext(workInProgress), null;
8410
+ case 31:
8411
+ if (null !== workInProgress.memoizedState) {
8412
+ popSuspenseHandler(workInProgress);
8413
+ if (null === workInProgress.alternate)
8414
+ throw Error(formatProdErrorMessage(340));
8415
+ resetHydrationState();
8416
+ }
8417
+ current = workInProgress.flags;
8418
+ return current & 65536
8419
+ ? ((workInProgress.flags = (current & -65537) | 128), workInProgress)
8420
+ : null;
8255
8421
  case 13:
8256
8422
  popSuspenseHandler(workInProgress);
8257
8423
  current = workInProgress.memoizedState;
@@ -8304,6 +8470,10 @@ function unwindInterruptedWork(current, interruptedWork) {
8304
8470
  case 4:
8305
8471
  popHostContainer();
8306
8472
  break;
8473
+ case 31:
8474
+ null !== interruptedWork.memoizedState &&
8475
+ popSuspenseHandler(interruptedWork);
8476
+ break;
8307
8477
  case 13:
8308
8478
  popSuspenseHandler(interruptedWork);
8309
8479
  break;
@@ -8451,8 +8621,8 @@ function safelyDetachRef(current, nearestMountedAncestor) {
8451
8621
  else if ("function" === typeof ref)
8452
8622
  try {
8453
8623
  ref(null);
8454
- } catch (error$144) {
8455
- captureCommitPhaseError(current, nearestMountedAncestor, error$144);
8624
+ } catch (error$148) {
8625
+ captureCommitPhaseError(current, nearestMountedAncestor, error$148);
8456
8626
  }
8457
8627
  else ref.current = null;
8458
8628
  }
@@ -8778,11 +8948,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
8778
8948
  current,
8779
8949
  finishedRoot.__reactInternalSnapshotBeforeUpdate
8780
8950
  );
8781
- } catch (error$143) {
8951
+ } catch (error$147) {
8782
8952
  captureCommitPhaseError(
8783
8953
  finishedWork,
8784
8954
  finishedWork.return,
8785
- error$143
8955
+ error$147
8786
8956
  );
8787
8957
  }
8788
8958
  }
@@ -8825,6 +8995,10 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) {
8825
8995
  case 12:
8826
8996
  recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
8827
8997
  break;
8998
+ case 31:
8999
+ recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
9000
+ flags & 4 && commitActivityHydrationCallbacks(finishedRoot, finishedWork);
9001
+ break;
8828
9002
  case 13:
8829
9003
  recursivelyTraverseLayoutEffects(finishedRoot, finishedWork);
8830
9004
  flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork);
@@ -8980,7 +9154,7 @@ function commitDeletionEffectsOnFiber(
8980
9154
  null !== hostParent &&
8981
9155
  (hostParentIsContainer
8982
9156
  ? ((finishedRoot = hostParent),
8983
- clearSuspenseBoundary(
9157
+ clearHydrationBoundary(
8984
9158
  9 === finishedRoot.nodeType
8985
9159
  ? finishedRoot.body
8986
9160
  : "HTML" === finishedRoot.nodeName
@@ -8989,7 +9163,7 @@ function commitDeletionEffectsOnFiber(
8989
9163
  deletedFiber.stateNode
8990
9164
  ),
8991
9165
  retryIfBlockedOn(finishedRoot))
8992
- : clearSuspenseBoundary(hostParent, deletedFiber.stateNode));
9166
+ : clearHydrationBoundary(hostParent, deletedFiber.stateNode));
8993
9167
  break;
8994
9168
  case 4:
8995
9169
  prevHostParent = hostParent;
@@ -9060,6 +9234,21 @@ function commitDeletionEffectsOnFiber(
9060
9234
  );
9061
9235
  }
9062
9236
  }
9237
+ function commitActivityHydrationCallbacks(finishedRoot, finishedWork) {
9238
+ if (
9239
+ null === finishedWork.memoizedState &&
9240
+ ((finishedRoot = finishedWork.alternate),
9241
+ null !== finishedRoot &&
9242
+ ((finishedRoot = finishedRoot.memoizedState), null !== finishedRoot))
9243
+ ) {
9244
+ finishedRoot = finishedRoot.dehydrated;
9245
+ try {
9246
+ retryIfBlockedOn(finishedRoot);
9247
+ } catch (error) {
9248
+ captureCommitPhaseError(finishedWork, finishedWork.return, error);
9249
+ }
9250
+ }
9251
+ }
9063
9252
  function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
9064
9253
  if (
9065
9254
  null === finishedWork.memoizedState &&
@@ -9077,6 +9266,7 @@ function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) {
9077
9266
  }
9078
9267
  function getRetryCache(finishedWork) {
9079
9268
  switch (finishedWork.tag) {
9269
+ case 31:
9080
9270
  case 13:
9081
9271
  case 19:
9082
9272
  var retryCache = finishedWork.stateNode;
@@ -9416,6 +9606,15 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
9416
9606
  recursivelyTraverseMutationEffects(root, finishedWork);
9417
9607
  commitReconciliationEffects(finishedWork);
9418
9608
  break;
9609
+ case 31:
9610
+ recursivelyTraverseMutationEffects(root, finishedWork);
9611
+ commitReconciliationEffects(finishedWork);
9612
+ flags & 4 &&
9613
+ ((flags = finishedWork.updateQueue),
9614
+ null !== flags &&
9615
+ ((finishedWork.updateQueue = null),
9616
+ attachSuspenseRetryListeners(finishedWork, flags)));
9617
+ break;
9419
9618
  case 13:
9420
9619
  recursivelyTraverseMutationEffects(root, finishedWork);
9421
9620
  commitReconciliationEffects(finishedWork);
@@ -9495,6 +9694,18 @@ function commitMutationEffectsOnFiber(finishedWork, root) {
9495
9694
  captureCommitPhaseError(wasHidden, wasHidden.return, error);
9496
9695
  }
9497
9696
  }
9697
+ } else if (18 === root.tag) {
9698
+ if (null === current) {
9699
+ wasHidden = root;
9700
+ try {
9701
+ var instance = wasHidden.stateNode;
9702
+ hoistableRoot
9703
+ ? hideOrUnhideDehydratedBoundary(instance, !0)
9704
+ : hideOrUnhideDehydratedBoundary(wasHidden.stateNode, !1);
9705
+ } catch (error) {
9706
+ captureCommitPhaseError(wasHidden, wasHidden.return, error);
9707
+ }
9708
+ }
9498
9709
  } else if (
9499
9710
  ((22 !== root.tag && 23 !== root.tag) ||
9500
9711
  null === root.memoizedState ||
@@ -9564,20 +9775,20 @@ function commitReconciliationEffects(finishedWork) {
9564
9775
  insertOrAppendPlacementNode(finishedWork, before, parent);
9565
9776
  break;
9566
9777
  case 5:
9567
- var parent$145 = hostParentFiber.stateNode;
9778
+ var parent$149 = hostParentFiber.stateNode;
9568
9779
  hostParentFiber.flags & 32 &&
9569
- (setTextContent(parent$145, ""), (hostParentFiber.flags &= -33));
9570
- var before$146 = getHostSibling(finishedWork);
9571
- insertOrAppendPlacementNode(finishedWork, before$146, parent$145);
9780
+ (setTextContent(parent$149, ""), (hostParentFiber.flags &= -33));
9781
+ var before$150 = getHostSibling(finishedWork);
9782
+ insertOrAppendPlacementNode(finishedWork, before$150, parent$149);
9572
9783
  break;
9573
9784
  case 3:
9574
9785
  case 4:
9575
- var parent$147 = hostParentFiber.stateNode.containerInfo,
9576
- before$148 = getHostSibling(finishedWork);
9786
+ var parent$151 = hostParentFiber.stateNode.containerInfo,
9787
+ before$152 = getHostSibling(finishedWork);
9577
9788
  insertOrAppendPlacementNodeIntoContainer(
9578
9789
  finishedWork,
9579
- before$148,
9580
- parent$147
9790
+ before$152,
9791
+ parent$151
9581
9792
  );
9582
9793
  break;
9583
9794
  default:
@@ -9728,6 +9939,16 @@ function recursivelyTraverseReappearLayoutEffects(
9728
9939
  includeWorkInProgressEffects
9729
9940
  );
9730
9941
  break;
9942
+ case 31:
9943
+ recursivelyTraverseReappearLayoutEffects(
9944
+ finishedRoot,
9945
+ finishedWork,
9946
+ includeWorkInProgressEffects
9947
+ );
9948
+ includeWorkInProgressEffects &&
9949
+ flags & 4 &&
9950
+ commitActivityHydrationCallbacks(finishedRoot, finishedWork);
9951
+ break;
9731
9952
  case 13:
9732
9953
  recursivelyTraverseReappearLayoutEffects(
9733
9954
  finishedRoot,
@@ -9871,6 +10092,14 @@ function commitPassiveMountOnFiber(
9871
10092
  committedTransitions
9872
10093
  );
9873
10094
  break;
10095
+ case 31:
10096
+ recursivelyTraversePassiveMountEffects(
10097
+ finishedRoot,
10098
+ finishedWork,
10099
+ committedLanes,
10100
+ committedTransitions
10101
+ );
10102
+ break;
9874
10103
  case 13:
9875
10104
  recursivelyTraversePassiveMountEffects(
9876
10105
  finishedRoot,
@@ -10778,8 +11007,8 @@ function renderRootSync(root, lanes, shouldYieldForPrerendering) {
10778
11007
  workLoopSync();
10779
11008
  exitStatus = workInProgressRootExitStatus;
10780
11009
  break;
10781
- } catch (thrownValue$168) {
10782
- handleThrow(root, thrownValue$168);
11010
+ } catch (thrownValue$173) {
11011
+ handleThrow(root, thrownValue$173);
10783
11012
  }
10784
11013
  while (1);
10785
11014
  lanes && root.shellSuspendCounter++;
@@ -10898,8 +11127,8 @@ function renderRootConcurrent(root, lanes) {
10898
11127
  }
10899
11128
  workLoopConcurrentByScheduler();
10900
11129
  break;
10901
- } catch (thrownValue$170) {
10902
- handleThrow(root, thrownValue$170);
11130
+ } catch (thrownValue$175) {
11131
+ handleThrow(root, thrownValue$175);
10903
11132
  }
10904
11133
  while (1);
10905
11134
  lastContextDependency = currentlyRenderingFiber$1 = null;
@@ -11493,6 +11722,7 @@ function retryDehydratedSuspenseBoundary(boundaryFiber) {
11493
11722
  function resolveRetryWakeable(boundaryFiber, wakeable) {
11494
11723
  var retryLane = 0;
11495
11724
  switch (boundaryFiber.tag) {
11725
+ case 31:
11496
11726
  case 13:
11497
11727
  var retryCache = boundaryFiber.stateNode;
11498
11728
  var suspenseState = boundaryFiber.memoizedState;
@@ -11534,14 +11764,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
11534
11764
  isFlushingWork = !0;
11535
11765
  do {
11536
11766
  var didPerformSomeWork = !1;
11537
- for (var root$175 = firstScheduledRoot; null !== root$175; ) {
11767
+ for (var root$180 = firstScheduledRoot; null !== root$180; ) {
11538
11768
  if (!onlyLegacy)
11539
11769
  if (0 !== syncTransitionLanes) {
11540
- var pendingLanes = root$175.pendingLanes;
11770
+ var pendingLanes = root$180.pendingLanes;
11541
11771
  if (0 === pendingLanes) var JSCompiler_inline_result = 0;
11542
11772
  else {
11543
- var suspendedLanes = root$175.suspendedLanes,
11544
- pingedLanes = root$175.pingedLanes;
11773
+ var suspendedLanes = root$180.suspendedLanes,
11774
+ pingedLanes = root$180.pingedLanes;
11545
11775
  JSCompiler_inline_result =
11546
11776
  (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;
11547
11777
  JSCompiler_inline_result &=
@@ -11555,20 +11785,20 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
11555
11785
  }
11556
11786
  0 !== JSCompiler_inline_result &&
11557
11787
  ((didPerformSomeWork = !0),
11558
- performSyncWorkOnRoot(root$175, JSCompiler_inline_result));
11788
+ performSyncWorkOnRoot(root$180, JSCompiler_inline_result));
11559
11789
  } else
11560
11790
  (JSCompiler_inline_result = workInProgressRootRenderLanes),
11561
11791
  (JSCompiler_inline_result = getNextLanes(
11562
- root$175,
11563
- root$175 === workInProgressRoot ? JSCompiler_inline_result : 0,
11564
- null !== root$175.cancelPendingCommit ||
11565
- -1 !== root$175.timeoutHandle
11792
+ root$180,
11793
+ root$180 === workInProgressRoot ? JSCompiler_inline_result : 0,
11794
+ null !== root$180.cancelPendingCommit ||
11795
+ -1 !== root$180.timeoutHandle
11566
11796
  )),
11567
11797
  0 === (JSCompiler_inline_result & 3) ||
11568
- checkIfRootIsPrerendering(root$175, JSCompiler_inline_result) ||
11798
+ checkIfRootIsPrerendering(root$180, JSCompiler_inline_result) ||
11569
11799
  ((didPerformSomeWork = !0),
11570
- performSyncWorkOnRoot(root$175, JSCompiler_inline_result));
11571
- root$175 = root$175.next;
11800
+ performSyncWorkOnRoot(root$180, JSCompiler_inline_result));
11801
+ root$180 = root$180.next;
11572
11802
  }
11573
11803
  } while (didPerformSomeWork);
11574
11804
  isFlushingWork = !1;
@@ -11809,20 +12039,20 @@ function extractEvents$1(
11809
12039
  }
11810
12040
  }
11811
12041
  for (
11812
- var i$jscomp$inline_1531 = 0;
11813
- i$jscomp$inline_1531 < simpleEventPluginEvents.length;
11814
- i$jscomp$inline_1531++
12042
+ var i$jscomp$inline_1573 = 0;
12043
+ i$jscomp$inline_1573 < simpleEventPluginEvents.length;
12044
+ i$jscomp$inline_1573++
11815
12045
  ) {
11816
- var eventName$jscomp$inline_1532 =
11817
- simpleEventPluginEvents[i$jscomp$inline_1531],
11818
- domEventName$jscomp$inline_1533 =
11819
- eventName$jscomp$inline_1532.toLowerCase(),
11820
- capitalizedEvent$jscomp$inline_1534 =
11821
- eventName$jscomp$inline_1532[0].toUpperCase() +
11822
- eventName$jscomp$inline_1532.slice(1);
12046
+ var eventName$jscomp$inline_1574 =
12047
+ simpleEventPluginEvents[i$jscomp$inline_1573],
12048
+ domEventName$jscomp$inline_1575 =
12049
+ eventName$jscomp$inline_1574.toLowerCase(),
12050
+ capitalizedEvent$jscomp$inline_1576 =
12051
+ eventName$jscomp$inline_1574[0].toUpperCase() +
12052
+ eventName$jscomp$inline_1574.slice(1);
11823
12053
  registerSimpleEvent(
11824
- domEventName$jscomp$inline_1533,
11825
- "on" + capitalizedEvent$jscomp$inline_1534
12054
+ domEventName$jscomp$inline_1575,
12055
+ "on" + capitalizedEvent$jscomp$inline_1576
11826
12056
  );
11827
12057
  }
11828
12058
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -12999,34 +13229,34 @@ function setInitialProperties(domElement, tag, props) {
12999
13229
  defaultChecked = null;
13000
13230
  for (hasSrc in props)
13001
13231
  if (props.hasOwnProperty(hasSrc)) {
13002
- var propValue$189 = props[hasSrc];
13003
- if (null != propValue$189)
13232
+ var propValue$194 = props[hasSrc];
13233
+ if (null != propValue$194)
13004
13234
  switch (hasSrc) {
13005
13235
  case "name":
13006
- hasSrcSet = propValue$189;
13236
+ hasSrcSet = propValue$194;
13007
13237
  break;
13008
13238
  case "type":
13009
- propValue = propValue$189;
13239
+ propValue = propValue$194;
13010
13240
  break;
13011
13241
  case "checked":
13012
- checked = propValue$189;
13242
+ checked = propValue$194;
13013
13243
  break;
13014
13244
  case "defaultChecked":
13015
- defaultChecked = propValue$189;
13245
+ defaultChecked = propValue$194;
13016
13246
  break;
13017
13247
  case "value":
13018
- propKey = propValue$189;
13248
+ propKey = propValue$194;
13019
13249
  break;
13020
13250
  case "defaultValue":
13021
- defaultValue = propValue$189;
13251
+ defaultValue = propValue$194;
13022
13252
  break;
13023
13253
  case "children":
13024
13254
  case "dangerouslySetInnerHTML":
13025
- if (null != propValue$189)
13255
+ if (null != propValue$194)
13026
13256
  throw Error(formatProdErrorMessage(137, tag));
13027
13257
  break;
13028
13258
  default:
13029
- setProp(domElement, tag, hasSrc, propValue$189, props, null);
13259
+ setProp(domElement, tag, hasSrc, propValue$194, props, null);
13030
13260
  }
13031
13261
  }
13032
13262
  initInput(
@@ -13165,14 +13395,14 @@ function setInitialProperties(domElement, tag, props) {
13165
13395
  return;
13166
13396
  default:
13167
13397
  if (isCustomElement(tag)) {
13168
- for (propValue$189 in props)
13169
- props.hasOwnProperty(propValue$189) &&
13170
- ((hasSrc = props[propValue$189]),
13398
+ for (propValue$194 in props)
13399
+ props.hasOwnProperty(propValue$194) &&
13400
+ ((hasSrc = props[propValue$194]),
13171
13401
  void 0 !== hasSrc &&
13172
13402
  setPropOnCustomElement(
13173
13403
  domElement,
13174
13404
  tag,
13175
- propValue$189,
13405
+ propValue$194,
13176
13406
  hasSrc,
13177
13407
  props,
13178
13408
  void 0
@@ -13220,14 +13450,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13220
13450
  setProp(domElement, tag, propKey, null, nextProps, lastProp);
13221
13451
  }
13222
13452
  }
13223
- for (var propKey$206 in nextProps) {
13224
- var propKey = nextProps[propKey$206];
13225
- lastProp = lastProps[propKey$206];
13453
+ for (var propKey$211 in nextProps) {
13454
+ var propKey = nextProps[propKey$211];
13455
+ lastProp = lastProps[propKey$211];
13226
13456
  if (
13227
- nextProps.hasOwnProperty(propKey$206) &&
13457
+ nextProps.hasOwnProperty(propKey$211) &&
13228
13458
  (null != propKey || null != lastProp)
13229
13459
  )
13230
- switch (propKey$206) {
13460
+ switch (propKey$211) {
13231
13461
  case "type":
13232
13462
  type = propKey;
13233
13463
  break;
@@ -13256,7 +13486,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13256
13486
  setProp(
13257
13487
  domElement,
13258
13488
  tag,
13259
- propKey$206,
13489
+ propKey$211,
13260
13490
  propKey,
13261
13491
  nextProps,
13262
13492
  lastProp
@@ -13275,7 +13505,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13275
13505
  );
13276
13506
  return;
13277
13507
  case "select":
13278
- propKey = value = defaultValue = propKey$206 = null;
13508
+ propKey = value = defaultValue = propKey$211 = null;
13279
13509
  for (type in lastProps)
13280
13510
  if (
13281
13511
  ((lastDefaultValue = lastProps[type]),
@@ -13306,7 +13536,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13306
13536
  )
13307
13537
  switch (name) {
13308
13538
  case "value":
13309
- propKey$206 = type;
13539
+ propKey$211 = type;
13310
13540
  break;
13311
13541
  case "defaultValue":
13312
13542
  defaultValue = type;
@@ -13327,15 +13557,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13327
13557
  tag = defaultValue;
13328
13558
  lastProps = value;
13329
13559
  nextProps = propKey;
13330
- null != propKey$206
13331
- ? updateOptions(domElement, !!lastProps, propKey$206, !1)
13560
+ null != propKey$211
13561
+ ? updateOptions(domElement, !!lastProps, propKey$211, !1)
13332
13562
  : !!nextProps !== !!lastProps &&
13333
13563
  (null != tag
13334
13564
  ? updateOptions(domElement, !!lastProps, tag, !0)
13335
13565
  : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1));
13336
13566
  return;
13337
13567
  case "textarea":
13338
- propKey = propKey$206 = null;
13568
+ propKey = propKey$211 = null;
13339
13569
  for (defaultValue in lastProps)
13340
13570
  if (
13341
13571
  ((name = lastProps[defaultValue]),
@@ -13359,7 +13589,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13359
13589
  )
13360
13590
  switch (value) {
13361
13591
  case "value":
13362
- propKey$206 = name;
13592
+ propKey$211 = name;
13363
13593
  break;
13364
13594
  case "defaultValue":
13365
13595
  propKey = name;
@@ -13373,17 +13603,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13373
13603
  name !== type &&
13374
13604
  setProp(domElement, tag, value, name, nextProps, type);
13375
13605
  }
13376
- updateTextarea(domElement, propKey$206, propKey);
13606
+ updateTextarea(domElement, propKey$211, propKey);
13377
13607
  return;
13378
13608
  case "option":
13379
- for (var propKey$222 in lastProps)
13609
+ for (var propKey$227 in lastProps)
13380
13610
  if (
13381
- ((propKey$206 = lastProps[propKey$222]),
13382
- lastProps.hasOwnProperty(propKey$222) &&
13383
- null != propKey$206 &&
13384
- !nextProps.hasOwnProperty(propKey$222))
13611
+ ((propKey$211 = lastProps[propKey$227]),
13612
+ lastProps.hasOwnProperty(propKey$227) &&
13613
+ null != propKey$211 &&
13614
+ !nextProps.hasOwnProperty(propKey$227))
13385
13615
  )
13386
- switch (propKey$222) {
13616
+ switch (propKey$227) {
13387
13617
  case "selected":
13388
13618
  domElement.selected = !1;
13389
13619
  break;
@@ -13391,33 +13621,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13391
13621
  setProp(
13392
13622
  domElement,
13393
13623
  tag,
13394
- propKey$222,
13624
+ propKey$227,
13395
13625
  null,
13396
13626
  nextProps,
13397
- propKey$206
13627
+ propKey$211
13398
13628
  );
13399
13629
  }
13400
13630
  for (lastDefaultValue in nextProps)
13401
13631
  if (
13402
- ((propKey$206 = nextProps[lastDefaultValue]),
13632
+ ((propKey$211 = nextProps[lastDefaultValue]),
13403
13633
  (propKey = lastProps[lastDefaultValue]),
13404
13634
  nextProps.hasOwnProperty(lastDefaultValue) &&
13405
- propKey$206 !== propKey &&
13406
- (null != propKey$206 || null != propKey))
13635
+ propKey$211 !== propKey &&
13636
+ (null != propKey$211 || null != propKey))
13407
13637
  )
13408
13638
  switch (lastDefaultValue) {
13409
13639
  case "selected":
13410
13640
  domElement.selected =
13411
- propKey$206 &&
13412
- "function" !== typeof propKey$206 &&
13413
- "symbol" !== typeof propKey$206;
13641
+ propKey$211 &&
13642
+ "function" !== typeof propKey$211 &&
13643
+ "symbol" !== typeof propKey$211;
13414
13644
  break;
13415
13645
  default:
13416
13646
  setProp(
13417
13647
  domElement,
13418
13648
  tag,
13419
13649
  lastDefaultValue,
13420
- propKey$206,
13650
+ propKey$211,
13421
13651
  nextProps,
13422
13652
  propKey
13423
13653
  );
@@ -13438,24 +13668,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13438
13668
  case "track":
13439
13669
  case "wbr":
13440
13670
  case "menuitem":
13441
- for (var propKey$227 in lastProps)
13442
- (propKey$206 = lastProps[propKey$227]),
13443
- lastProps.hasOwnProperty(propKey$227) &&
13444
- null != propKey$206 &&
13445
- !nextProps.hasOwnProperty(propKey$227) &&
13446
- setProp(domElement, tag, propKey$227, null, nextProps, propKey$206);
13671
+ for (var propKey$232 in lastProps)
13672
+ (propKey$211 = lastProps[propKey$232]),
13673
+ lastProps.hasOwnProperty(propKey$232) &&
13674
+ null != propKey$211 &&
13675
+ !nextProps.hasOwnProperty(propKey$232) &&
13676
+ setProp(domElement, tag, propKey$232, null, nextProps, propKey$211);
13447
13677
  for (checked in nextProps)
13448
13678
  if (
13449
- ((propKey$206 = nextProps[checked]),
13679
+ ((propKey$211 = nextProps[checked]),
13450
13680
  (propKey = lastProps[checked]),
13451
13681
  nextProps.hasOwnProperty(checked) &&
13452
- propKey$206 !== propKey &&
13453
- (null != propKey$206 || null != propKey))
13682
+ propKey$211 !== propKey &&
13683
+ (null != propKey$211 || null != propKey))
13454
13684
  )
13455
13685
  switch (checked) {
13456
13686
  case "children":
13457
13687
  case "dangerouslySetInnerHTML":
13458
- if (null != propKey$206)
13688
+ if (null != propKey$211)
13459
13689
  throw Error(formatProdErrorMessage(137, tag));
13460
13690
  break;
13461
13691
  default:
@@ -13463,7 +13693,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13463
13693
  domElement,
13464
13694
  tag,
13465
13695
  checked,
13466
- propKey$206,
13696
+ propKey$211,
13467
13697
  nextProps,
13468
13698
  propKey
13469
13699
  );
@@ -13471,49 +13701,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) {
13471
13701
  return;
13472
13702
  default:
13473
13703
  if (isCustomElement(tag)) {
13474
- for (var propKey$232 in lastProps)
13475
- (propKey$206 = lastProps[propKey$232]),
13476
- lastProps.hasOwnProperty(propKey$232) &&
13477
- void 0 !== propKey$206 &&
13478
- !nextProps.hasOwnProperty(propKey$232) &&
13704
+ for (var propKey$237 in lastProps)
13705
+ (propKey$211 = lastProps[propKey$237]),
13706
+ lastProps.hasOwnProperty(propKey$237) &&
13707
+ void 0 !== propKey$211 &&
13708
+ !nextProps.hasOwnProperty(propKey$237) &&
13479
13709
  setPropOnCustomElement(
13480
13710
  domElement,
13481
13711
  tag,
13482
- propKey$232,
13712
+ propKey$237,
13483
13713
  void 0,
13484
13714
  nextProps,
13485
- propKey$206
13715
+ propKey$211
13486
13716
  );
13487
13717
  for (defaultChecked in nextProps)
13488
- (propKey$206 = nextProps[defaultChecked]),
13718
+ (propKey$211 = nextProps[defaultChecked]),
13489
13719
  (propKey = lastProps[defaultChecked]),
13490
13720
  !nextProps.hasOwnProperty(defaultChecked) ||
13491
- propKey$206 === propKey ||
13492
- (void 0 === propKey$206 && void 0 === propKey) ||
13721
+ propKey$211 === propKey ||
13722
+ (void 0 === propKey$211 && void 0 === propKey) ||
13493
13723
  setPropOnCustomElement(
13494
13724
  domElement,
13495
13725
  tag,
13496
13726
  defaultChecked,
13497
- propKey$206,
13727
+ propKey$211,
13498
13728
  nextProps,
13499
13729
  propKey
13500
13730
  );
13501
13731
  return;
13502
13732
  }
13503
13733
  }
13504
- for (var propKey$237 in lastProps)
13505
- (propKey$206 = lastProps[propKey$237]),
13506
- lastProps.hasOwnProperty(propKey$237) &&
13507
- null != propKey$206 &&
13508
- !nextProps.hasOwnProperty(propKey$237) &&
13509
- setProp(domElement, tag, propKey$237, null, nextProps, propKey$206);
13734
+ for (var propKey$242 in lastProps)
13735
+ (propKey$211 = lastProps[propKey$242]),
13736
+ lastProps.hasOwnProperty(propKey$242) &&
13737
+ null != propKey$211 &&
13738
+ !nextProps.hasOwnProperty(propKey$242) &&
13739
+ setProp(domElement, tag, propKey$242, null, nextProps, propKey$211);
13510
13740
  for (lastProp in nextProps)
13511
- (propKey$206 = nextProps[lastProp]),
13741
+ (propKey$211 = nextProps[lastProp]),
13512
13742
  (propKey = lastProps[lastProp]),
13513
13743
  !nextProps.hasOwnProperty(lastProp) ||
13514
- propKey$206 === propKey ||
13515
- (null == propKey$206 && null == propKey) ||
13516
- setProp(domElement, tag, lastProp, propKey$206, nextProps, propKey);
13744
+ propKey$211 === propKey ||
13745
+ (null == propKey$211 && null == propKey) ||
13746
+ setProp(domElement, tag, lastProp, propKey$211, nextProps, propKey);
13517
13747
  }
13518
13748
  var eventsEnabled = null,
13519
13749
  selectionInformation = null;
@@ -13591,21 +13821,22 @@ function handleErrorInNextTick(error) {
13591
13821
  function isSingletonScope(type) {
13592
13822
  return "head" === type;
13593
13823
  }
13594
- function clearSuspenseBoundary(parentInstance, suspenseInstance) {
13595
- var node = suspenseInstance,
13824
+ function clearHydrationBoundary(parentInstance, hydrationInstance) {
13825
+ var node = hydrationInstance,
13596
13826
  depth = 0;
13597
13827
  do {
13598
13828
  var nextNode = node.nextSibling;
13599
13829
  parentInstance.removeChild(node);
13600
13830
  if (nextNode && 8 === nextNode.nodeType)
13601
- if (((node = nextNode.data), "/$" === node)) {
13831
+ if (((node = nextNode.data), "/$" === node || "/&" === node)) {
13602
13832
  if (0 === depth) {
13603
13833
  parentInstance.removeChild(nextNode);
13604
- retryIfBlockedOn(suspenseInstance);
13834
+ retryIfBlockedOn(hydrationInstance);
13605
13835
  return;
13606
13836
  }
13607
13837
  depth--;
13608
- } else if ("$" === node || "$?" === node || "$!" === node) depth++;
13838
+ } else if ("$" === node || "$?" === node || "$!" === node || "&" === node)
13839
+ depth++;
13609
13840
  else if ("html" === node)
13610
13841
  releaseSingletonInstance(parentInstance.ownerDocument.documentElement);
13611
13842
  else if ("head" === node) {
@@ -13627,7 +13858,31 @@ function clearSuspenseBoundary(parentInstance, suspenseInstance) {
13627
13858
  releaseSingletonInstance(parentInstance.ownerDocument.body);
13628
13859
  node = nextNode;
13629
13860
  } while (node);
13630
- retryIfBlockedOn(suspenseInstance);
13861
+ retryIfBlockedOn(hydrationInstance);
13862
+ }
13863
+ function hideOrUnhideDehydratedBoundary(suspenseInstance, isHidden) {
13864
+ var node = suspenseInstance;
13865
+ suspenseInstance = 0;
13866
+ do {
13867
+ var nextNode = node.nextSibling;
13868
+ 1 === node.nodeType
13869
+ ? isHidden
13870
+ ? ((node._stashedDisplay = node.style.display),
13871
+ (node.style.display = "none"))
13872
+ : ((node.style.display = node._stashedDisplay || ""),
13873
+ "" === node.getAttribute("style") && node.removeAttribute("style"))
13874
+ : 3 === node.nodeType &&
13875
+ (isHidden
13876
+ ? ((node._stashedText = node.nodeValue), (node.nodeValue = ""))
13877
+ : (node.nodeValue = node._stashedText || ""));
13878
+ if (nextNode && 8 === nextNode.nodeType)
13879
+ if (((node = nextNode.data), "/$" === node))
13880
+ if (0 === suspenseInstance) break;
13881
+ else suspenseInstance--;
13882
+ else
13883
+ ("$" !== node && "$?" !== node && "$!" !== node) || suspenseInstance++;
13884
+ node = nextNode;
13885
+ } while (node);
13631
13886
  }
13632
13887
  function clearContainerSparingly(container) {
13633
13888
  var nextNode = container.firstChild;
@@ -13731,6 +13986,14 @@ function canHydrateTextInstance(instance, text, inRootOrSingleton) {
13731
13986
  }
13732
13987
  return instance;
13733
13988
  }
13989
+ function canHydrateHydrationBoundary(instance, inRootOrSingleton) {
13990
+ for (; 8 !== instance.nodeType; ) {
13991
+ if (!inRootOrSingleton) return null;
13992
+ instance = getNextHydratable(instance.nextSibling);
13993
+ if (null === instance) return null;
13994
+ }
13995
+ return instance;
13996
+ }
13734
13997
  function isSuspenseInstanceFallback(instance) {
13735
13998
  return (
13736
13999
  "$!" === instance.data ||
@@ -13760,25 +14023,43 @@ function getNextHydratable(node) {
13760
14023
  "$" === nodeType ||
13761
14024
  "$!" === nodeType ||
13762
14025
  "$?" === nodeType ||
14026
+ "&" === nodeType ||
13763
14027
  "F!" === nodeType ||
13764
14028
  "F" === nodeType
13765
14029
  )
13766
14030
  break;
13767
- if ("/$" === nodeType) return null;
14031
+ if ("/$" === nodeType || "/&" === nodeType) return null;
13768
14032
  }
13769
14033
  }
13770
14034
  return node;
13771
14035
  }
13772
14036
  var previousHydratableOnEnteringScopedSingleton = null;
13773
- function getParentSuspenseInstance(targetInstance) {
14037
+ function getNextHydratableInstanceAfterHydrationBoundary(hydrationInstance) {
14038
+ hydrationInstance = hydrationInstance.nextSibling;
14039
+ for (var depth = 0; hydrationInstance; ) {
14040
+ if (8 === hydrationInstance.nodeType) {
14041
+ var data = hydrationInstance.data;
14042
+ if ("/$" === data || "/&" === data) {
14043
+ if (0 === depth)
14044
+ return getNextHydratable(hydrationInstance.nextSibling);
14045
+ depth--;
14046
+ } else
14047
+ ("$" !== data && "$!" !== data && "$?" !== data && "&" !== data) ||
14048
+ depth++;
14049
+ }
14050
+ hydrationInstance = hydrationInstance.nextSibling;
14051
+ }
14052
+ return null;
14053
+ }
14054
+ function getParentHydrationBoundary(targetInstance) {
13774
14055
  targetInstance = targetInstance.previousSibling;
13775
14056
  for (var depth = 0; targetInstance; ) {
13776
14057
  if (8 === targetInstance.nodeType) {
13777
14058
  var data = targetInstance.data;
13778
- if ("$" === data || "$!" === data || "$?" === data) {
14059
+ if ("$" === data || "$!" === data || "$?" === data || "&" === data) {
13779
14060
  if (0 === depth) return targetInstance;
13780
14061
  depth--;
13781
- } else "/$" === data && depth++;
14062
+ } else ("/$" !== data && "/&" !== data) || depth++;
13782
14063
  }
13783
14064
  targetInstance = targetInstance.previousSibling;
13784
14065
  }
@@ -14109,26 +14390,26 @@ function getResource(type, currentProps, pendingProps, currentResource) {
14109
14390
  "string" === typeof pendingProps.precedence
14110
14391
  ) {
14111
14392
  type = getStyleKey(pendingProps.href);
14112
- var styles$248 = getResourcesFromRoot(
14393
+ var styles$253 = getResourcesFromRoot(
14113
14394
  JSCompiler_inline_result
14114
14395
  ).hoistableStyles,
14115
- resource$249 = styles$248.get(type);
14116
- resource$249 ||
14396
+ resource$254 = styles$253.get(type);
14397
+ resource$254 ||
14117
14398
  ((JSCompiler_inline_result =
14118
14399
  JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result),
14119
- (resource$249 = {
14400
+ (resource$254 = {
14120
14401
  type: "stylesheet",
14121
14402
  instance: null,
14122
14403
  count: 0,
14123
14404
  state: { loading: 0, preload: null }
14124
14405
  }),
14125
- styles$248.set(type, resource$249),
14126
- (styles$248 = JSCompiler_inline_result.querySelector(
14406
+ styles$253.set(type, resource$254),
14407
+ (styles$253 = JSCompiler_inline_result.querySelector(
14127
14408
  getStylesheetSelectorFromKey(type)
14128
14409
  )) &&
14129
- !styles$248._p &&
14130
- ((resource$249.instance = styles$248),
14131
- (resource$249.state.loading = 5)),
14410
+ !styles$253._p &&
14411
+ ((resource$254.instance = styles$253),
14412
+ (resource$254.state.loading = 5)),
14132
14413
  preloadPropsMap.has(type) ||
14133
14414
  ((pendingProps = {
14134
14415
  rel: "preload",
@@ -14141,16 +14422,16 @@ function getResource(type, currentProps, pendingProps, currentResource) {
14141
14422
  referrerPolicy: pendingProps.referrerPolicy
14142
14423
  }),
14143
14424
  preloadPropsMap.set(type, pendingProps),
14144
- styles$248 ||
14425
+ styles$253 ||
14145
14426
  preloadStylesheet(
14146
14427
  JSCompiler_inline_result,
14147
14428
  type,
14148
14429
  pendingProps,
14149
- resource$249.state
14430
+ resource$254.state
14150
14431
  )));
14151
14432
  if (currentProps && null === currentResource)
14152
14433
  throw Error(formatProdErrorMessage(528, ""));
14153
- return resource$249;
14434
+ return resource$254;
14154
14435
  }
14155
14436
  if (currentProps && null !== currentResource)
14156
14437
  throw Error(formatProdErrorMessage(529, ""));
@@ -14247,37 +14528,37 @@ function acquireResource(hoistableRoot, resource, props) {
14247
14528
  return (resource.instance = instance);
14248
14529
  case "stylesheet":
14249
14530
  styleProps = getStyleKey(props.href);
14250
- var instance$254 = hoistableRoot.querySelector(
14531
+ var instance$259 = hoistableRoot.querySelector(
14251
14532
  getStylesheetSelectorFromKey(styleProps)
14252
14533
  );
14253
- if (instance$254)
14534
+ if (instance$259)
14254
14535
  return (
14255
14536
  (resource.state.loading |= 4),
14256
- (resource.instance = instance$254),
14257
- markNodeAsHoistable(instance$254),
14258
- instance$254
14537
+ (resource.instance = instance$259),
14538
+ markNodeAsHoistable(instance$259),
14539
+ instance$259
14259
14540
  );
14260
14541
  instance = stylesheetPropsFromRawProps(props);
14261
14542
  (styleProps = preloadPropsMap.get(styleProps)) &&
14262
14543
  adoptPreloadPropsForStylesheet(instance, styleProps);
14263
- instance$254 = (
14544
+ instance$259 = (
14264
14545
  hoistableRoot.ownerDocument || hoistableRoot
14265
14546
  ).createElement("link");
14266
- markNodeAsHoistable(instance$254);
14267
- var linkInstance = instance$254;
14547
+ markNodeAsHoistable(instance$259);
14548
+ var linkInstance = instance$259;
14268
14549
  linkInstance._p = new Promise(function (resolve, reject) {
14269
14550
  linkInstance.onload = resolve;
14270
14551
  linkInstance.onerror = reject;
14271
14552
  });
14272
- setInitialProperties(instance$254, "link", instance);
14553
+ setInitialProperties(instance$259, "link", instance);
14273
14554
  resource.state.loading |= 4;
14274
- insertStylesheet(instance$254, props.precedence, hoistableRoot);
14275
- return (resource.instance = instance$254);
14555
+ insertStylesheet(instance$259, props.precedence, hoistableRoot);
14556
+ return (resource.instance = instance$259);
14276
14557
  case "script":
14277
- instance$254 = getScriptKey(props.src);
14558
+ instance$259 = getScriptKey(props.src);
14278
14559
  if (
14279
14560
  (styleProps = hoistableRoot.querySelector(
14280
- getScriptSelectorFromKey(instance$254)
14561
+ getScriptSelectorFromKey(instance$259)
14281
14562
  ))
14282
14563
  )
14283
14564
  return (
@@ -14286,7 +14567,7 @@ function acquireResource(hoistableRoot, resource, props) {
14286
14567
  styleProps
14287
14568
  );
14288
14569
  instance = props;
14289
- if ((styleProps = preloadPropsMap.get(instance$254)))
14570
+ if ((styleProps = preloadPropsMap.get(instance$259)))
14290
14571
  (instance = assign({}, props)),
14291
14572
  adoptPreloadPropsForScript(instance, styleProps);
14292
14573
  hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot;
@@ -14699,12 +14980,21 @@ function markRetryLaneIfNotHydrated(fiber, retryLane) {
14699
14980
  (fiber = fiber.alternate) && markRetryLaneImpl(fiber, retryLane);
14700
14981
  }
14701
14982
  function attemptContinuousHydration(fiber) {
14702
- if (13 === fiber.tag) {
14983
+ if (13 === fiber.tag || 31 === fiber.tag) {
14703
14984
  var root = enqueueConcurrentRenderForLane(fiber, 67108864);
14704
14985
  null !== root && scheduleUpdateOnFiber(root, fiber, 67108864);
14705
14986
  markRetryLaneIfNotHydrated(fiber, 67108864);
14706
14987
  }
14707
14988
  }
14989
+ function attemptHydrationAtCurrentPriority(fiber) {
14990
+ if (13 === fiber.tag || 31 === fiber.tag) {
14991
+ var lane = requestUpdateLane();
14992
+ lane = getBumpedLaneForHydrationByLane(lane);
14993
+ var root = enqueueConcurrentRenderForLane(fiber, lane);
14994
+ null !== root && scheduleUpdateOnFiber(root, fiber, lane);
14995
+ markRetryLaneIfNotHydrated(fiber, lane);
14996
+ }
14997
+ }
14708
14998
  var _enabled = !0;
14709
14999
  function dispatchDiscreteEvent(
14710
15000
  domEventName,
@@ -14795,6 +15085,7 @@ function dispatchEvent(
14795
15085
  }
14796
15086
  }
14797
15087
  break;
15088
+ case 31:
14798
15089
  case 13:
14799
15090
  (root = enqueueConcurrentRenderForLane(fiber, 2)),
14800
15091
  null !== root && scheduleUpdateOnFiber(root, fiber, 2),
@@ -14841,6 +15132,10 @@ function findInstanceBlockingTarget(targetNode) {
14841
15132
  targetNode = getSuspenseInstanceFromFiber(nearestMounted);
14842
15133
  if (null !== targetNode) return targetNode;
14843
15134
  targetNode = null;
15135
+ } else if (31 === tag) {
15136
+ targetNode = getActivityInstanceFromFiber(nearestMounted);
15137
+ if (null !== targetNode) return targetNode;
15138
+ targetNode = null;
14844
15139
  } else if (3 === tag) {
14845
15140
  if (nearestMounted.stateNode.current.memoizedState.isDehydrated)
14846
15141
  return 3 === nearestMounted.tag
@@ -15101,14 +15396,18 @@ function attemptExplicitHydrationTarget(queuedTarget) {
15101
15396
  ) {
15102
15397
  queuedTarget.blockedOn = targetInst;
15103
15398
  runWithPriority(queuedTarget.priority, function () {
15104
- if (13 === nearestMounted.tag) {
15105
- var lane = requestUpdateLane();
15106
- lane = getBumpedLaneForHydrationByLane(lane);
15107
- var root = enqueueConcurrentRenderForLane(nearestMounted, lane);
15108
- null !== root &&
15109
- scheduleUpdateOnFiber(root, nearestMounted, lane);
15110
- markRetryLaneIfNotHydrated(nearestMounted, lane);
15111
- }
15399
+ attemptHydrationAtCurrentPriority(nearestMounted);
15400
+ });
15401
+ return;
15402
+ }
15403
+ } else if (31 === targetInst) {
15404
+ if (
15405
+ ((targetInst = getActivityInstanceFromFiber(nearestMounted)),
15406
+ null !== targetInst)
15407
+ ) {
15408
+ queuedTarget.blockedOn = targetInst;
15409
+ runWithPriority(queuedTarget.priority, function () {
15410
+ attemptHydrationAtCurrentPriority(nearestMounted);
15112
15411
  });
15113
15412
  return;
15114
15413
  }
@@ -15305,16 +15604,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15305
15604
  0 === i && attemptExplicitHydrationTarget(target);
15306
15605
  }
15307
15606
  };
15308
- var isomorphicReactPackageVersion$jscomp$inline_1788 = React.version;
15607
+ var isomorphicReactPackageVersion$jscomp$inline_1829 = React.version;
15309
15608
  if (
15310
- "19.2.0-canary-72135096-20250421" !==
15311
- isomorphicReactPackageVersion$jscomp$inline_1788
15609
+ "19.2.0-canary-197d6a04-20250424" !==
15610
+ isomorphicReactPackageVersion$jscomp$inline_1829
15312
15611
  )
15313
15612
  throw Error(
15314
15613
  formatProdErrorMessage(
15315
15614
  527,
15316
- isomorphicReactPackageVersion$jscomp$inline_1788,
15317
- "19.2.0-canary-72135096-20250421"
15615
+ isomorphicReactPackageVersion$jscomp$inline_1829,
15616
+ "19.2.0-canary-197d6a04-20250424"
15318
15617
  )
15319
15618
  );
15320
15619
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15334,24 +15633,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15334
15633
  null === componentOrElement ? null : componentOrElement.stateNode;
15335
15634
  return componentOrElement;
15336
15635
  };
15337
- var internals$jscomp$inline_2262 = {
15636
+ var internals$jscomp$inline_2318 = {
15338
15637
  bundleType: 0,
15339
- version: "19.2.0-canary-72135096-20250421",
15638
+ version: "19.2.0-canary-197d6a04-20250424",
15340
15639
  rendererPackageName: "react-dom",
15341
15640
  currentDispatcherRef: ReactSharedInternals,
15342
- reconcilerVersion: "19.2.0-canary-72135096-20250421"
15641
+ reconcilerVersion: "19.2.0-canary-197d6a04-20250424"
15343
15642
  };
15344
15643
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15345
- var hook$jscomp$inline_2263 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15644
+ var hook$jscomp$inline_2319 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15346
15645
  if (
15347
- !hook$jscomp$inline_2263.isDisabled &&
15348
- hook$jscomp$inline_2263.supportsFiber
15646
+ !hook$jscomp$inline_2319.isDisabled &&
15647
+ hook$jscomp$inline_2319.supportsFiber
15349
15648
  )
15350
15649
  try {
15351
- (rendererID = hook$jscomp$inline_2263.inject(
15352
- internals$jscomp$inline_2262
15650
+ (rendererID = hook$jscomp$inline_2319.inject(
15651
+ internals$jscomp$inline_2318
15353
15652
  )),
15354
- (injectedHook = hook$jscomp$inline_2263);
15653
+ (injectedHook = hook$jscomp$inline_2319);
15355
15654
  } catch (err) {}
15356
15655
  }
15357
15656
  exports.createRoot = function (container, options) {
@@ -15443,4 +15742,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
15443
15742
  listenToAllSupportedEvents(container);
15444
15743
  return new ReactDOMHydrationRoot(initialChildren);
15445
15744
  };
15446
- exports.version = "19.2.0-canary-72135096-20250421";
15745
+ exports.version = "19.2.0-canary-197d6a04-20250424";