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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -415,11 +415,7 @@
415
415
  break;
416
416
  default:
417
417
  if (
418
- ((nextRootInstance =
419
- 8 === nextRootContext
420
- ? nextRootInstance.parentNode
421
- : nextRootInstance),
422
- (nextRootContext = nextRootInstance.tagName),
418
+ ((nextRootContext = nextRootInstance.tagName),
423
419
  (nextRootInstance = nextRootInstance.namespaceURI))
424
420
  )
425
421
  (nextRootInstance = getOwnHostContext(nextRootInstance)),
@@ -8848,32 +8844,32 @@
8848
8844
  return current;
8849
8845
  }
8850
8846
  function updateSuspenseComponent(current, workInProgress, renderLanes) {
8851
- var JSCompiler_object_inline_digest_2387;
8852
- var JSCompiler_object_inline_stack_2388 = workInProgress.pendingProps;
8847
+ var JSCompiler_object_inline_digest_2407;
8848
+ var JSCompiler_object_inline_stack_2408 = workInProgress.pendingProps;
8853
8849
  shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
8854
- var JSCompiler_object_inline_componentStack_2389 = !1;
8850
+ var JSCompiler_object_inline_componentStack_2409 = !1;
8855
8851
  var didSuspend = 0 !== (workInProgress.flags & 128);
8856
- (JSCompiler_object_inline_digest_2387 = didSuspend) ||
8857
- (JSCompiler_object_inline_digest_2387 =
8852
+ (JSCompiler_object_inline_digest_2407 = didSuspend) ||
8853
+ (JSCompiler_object_inline_digest_2407 =
8858
8854
  null !== current && null === current.memoizedState
8859
8855
  ? !1
8860
8856
  : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
8861
- JSCompiler_object_inline_digest_2387 &&
8862
- ((JSCompiler_object_inline_componentStack_2389 = !0),
8857
+ JSCompiler_object_inline_digest_2407 &&
8858
+ ((JSCompiler_object_inline_componentStack_2409 = !0),
8863
8859
  (workInProgress.flags &= -129));
8864
- JSCompiler_object_inline_digest_2387 = 0 !== (workInProgress.flags & 32);
8860
+ JSCompiler_object_inline_digest_2407 = 0 !== (workInProgress.flags & 32);
8865
8861
  workInProgress.flags &= -33;
8866
8862
  if (null === current) {
8867
8863
  if (isHydrating) {
8868
- JSCompiler_object_inline_componentStack_2389
8864
+ JSCompiler_object_inline_componentStack_2409
8869
8865
  ? pushPrimaryTreeSuspenseHandler(workInProgress)
8870
8866
  : reuseSuspenseHandlerOnStack(workInProgress);
8871
8867
  if (isHydrating) {
8872
- var JSCompiler_object_inline_message_2386 = nextHydratableInstance;
8868
+ var JSCompiler_object_inline_message_2406 = nextHydratableInstance;
8873
8869
  var JSCompiler_temp;
8874
- if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2386)) {
8870
+ if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2406)) {
8875
8871
  c: {
8876
- var instance = JSCompiler_object_inline_message_2386;
8872
+ var instance = JSCompiler_object_inline_message_2406;
8877
8873
  for (
8878
8874
  JSCompiler_temp = rootOrSingletonContext;
8879
8875
  8 !== instance.nodeType;
@@ -8915,77 +8911,77 @@
8915
8911
  JSCompiler_temp &&
8916
8912
  (warnNonHydratedInstance(
8917
8913
  workInProgress,
8918
- JSCompiler_object_inline_message_2386
8914
+ JSCompiler_object_inline_message_2406
8919
8915
  ),
8920
8916
  throwOnHydrationMismatch(workInProgress));
8921
8917
  }
8922
- JSCompiler_object_inline_message_2386 = workInProgress.memoizedState;
8918
+ JSCompiler_object_inline_message_2406 = workInProgress.memoizedState;
8923
8919
  if (
8924
- null !== JSCompiler_object_inline_message_2386 &&
8925
- ((JSCompiler_object_inline_message_2386 =
8926
- JSCompiler_object_inline_message_2386.dehydrated),
8927
- null !== JSCompiler_object_inline_message_2386)
8920
+ null !== JSCompiler_object_inline_message_2406 &&
8921
+ ((JSCompiler_object_inline_message_2406 =
8922
+ JSCompiler_object_inline_message_2406.dehydrated),
8923
+ null !== JSCompiler_object_inline_message_2406)
8928
8924
  )
8929
8925
  return (
8930
- isSuspenseInstanceFallback(JSCompiler_object_inline_message_2386)
8926
+ isSuspenseInstanceFallback(JSCompiler_object_inline_message_2406)
8931
8927
  ? (workInProgress.lanes = 32)
8932
8928
  : (workInProgress.lanes = 536870912),
8933
8929
  null
8934
8930
  );
8935
8931
  popSuspenseHandler(workInProgress);
8936
8932
  }
8937
- JSCompiler_object_inline_message_2386 =
8938
- JSCompiler_object_inline_stack_2388.children;
8939
- JSCompiler_object_inline_stack_2388 =
8940
- JSCompiler_object_inline_stack_2388.fallback;
8941
- if (JSCompiler_object_inline_componentStack_2389)
8933
+ JSCompiler_object_inline_message_2406 =
8934
+ JSCompiler_object_inline_stack_2408.children;
8935
+ JSCompiler_object_inline_stack_2408 =
8936
+ JSCompiler_object_inline_stack_2408.fallback;
8937
+ if (JSCompiler_object_inline_componentStack_2409)
8942
8938
  return (
8943
8939
  reuseSuspenseHandlerOnStack(workInProgress),
8944
- (JSCompiler_object_inline_componentStack_2389 =
8940
+ (JSCompiler_object_inline_componentStack_2409 =
8945
8941
  workInProgress.mode),
8946
- (JSCompiler_object_inline_message_2386 =
8942
+ (JSCompiler_object_inline_message_2406 =
8947
8943
  mountWorkInProgressOffscreenFiber(
8948
8944
  {
8949
8945
  mode: "hidden",
8950
- children: JSCompiler_object_inline_message_2386
8946
+ children: JSCompiler_object_inline_message_2406
8951
8947
  },
8952
- JSCompiler_object_inline_componentStack_2389
8948
+ JSCompiler_object_inline_componentStack_2409
8953
8949
  )),
8954
- (JSCompiler_object_inline_stack_2388 = createFiberFromFragment(
8955
- JSCompiler_object_inline_stack_2388,
8956
- JSCompiler_object_inline_componentStack_2389,
8950
+ (JSCompiler_object_inline_stack_2408 = createFiberFromFragment(
8951
+ JSCompiler_object_inline_stack_2408,
8952
+ JSCompiler_object_inline_componentStack_2409,
8957
8953
  renderLanes,
8958
8954
  null
8959
8955
  )),
8960
- (JSCompiler_object_inline_message_2386.return = workInProgress),
8961
- (JSCompiler_object_inline_stack_2388.return = workInProgress),
8962
- (JSCompiler_object_inline_message_2386.sibling =
8963
- JSCompiler_object_inline_stack_2388),
8964
- (workInProgress.child = JSCompiler_object_inline_message_2386),
8965
- (JSCompiler_object_inline_componentStack_2389 =
8956
+ (JSCompiler_object_inline_message_2406.return = workInProgress),
8957
+ (JSCompiler_object_inline_stack_2408.return = workInProgress),
8958
+ (JSCompiler_object_inline_message_2406.sibling =
8959
+ JSCompiler_object_inline_stack_2408),
8960
+ (workInProgress.child = JSCompiler_object_inline_message_2406),
8961
+ (JSCompiler_object_inline_componentStack_2409 =
8966
8962
  workInProgress.child),
8967
- (JSCompiler_object_inline_componentStack_2389.memoizedState =
8963
+ (JSCompiler_object_inline_componentStack_2409.memoizedState =
8968
8964
  mountSuspenseOffscreenState(renderLanes)),
8969
- (JSCompiler_object_inline_componentStack_2389.childLanes =
8965
+ (JSCompiler_object_inline_componentStack_2409.childLanes =
8970
8966
  getRemainingWorkInPrimaryTree(
8971
8967
  current,
8972
- JSCompiler_object_inline_digest_2387,
8968
+ JSCompiler_object_inline_digest_2407,
8973
8969
  renderLanes
8974
8970
  )),
8975
8971
  (workInProgress.memoizedState = SUSPENDED_MARKER),
8976
- JSCompiler_object_inline_stack_2388
8972
+ JSCompiler_object_inline_stack_2408
8977
8973
  );
8978
8974
  pushPrimaryTreeSuspenseHandler(workInProgress);
8979
8975
  return mountSuspensePrimaryChildren(
8980
8976
  workInProgress,
8981
- JSCompiler_object_inline_message_2386
8977
+ JSCompiler_object_inline_message_2406
8982
8978
  );
8983
8979
  }
8984
8980
  var prevState = current.memoizedState;
8985
8981
  if (
8986
8982
  null !== prevState &&
8987
- ((JSCompiler_object_inline_message_2386 = prevState.dehydrated),
8988
- null !== JSCompiler_object_inline_message_2386)
8983
+ ((JSCompiler_object_inline_message_2406 = prevState.dehydrated),
8984
+ null !== JSCompiler_object_inline_message_2406)
8989
8985
  ) {
8990
8986
  if (didSuspend)
8991
8987
  workInProgress.flags & 256
@@ -9002,94 +8998,94 @@
9002
8998
  (workInProgress.flags |= 128),
9003
8999
  (workInProgress = null))
9004
9000
  : (reuseSuspenseHandlerOnStack(workInProgress),
9005
- (JSCompiler_object_inline_componentStack_2389 =
9006
- JSCompiler_object_inline_stack_2388.fallback),
9007
- (JSCompiler_object_inline_message_2386 = workInProgress.mode),
9008
- (JSCompiler_object_inline_stack_2388 =
9001
+ (JSCompiler_object_inline_componentStack_2409 =
9002
+ JSCompiler_object_inline_stack_2408.fallback),
9003
+ (JSCompiler_object_inline_message_2406 = workInProgress.mode),
9004
+ (JSCompiler_object_inline_stack_2408 =
9009
9005
  mountWorkInProgressOffscreenFiber(
9010
9006
  {
9011
9007
  mode: "visible",
9012
- children: JSCompiler_object_inline_stack_2388.children
9008
+ children: JSCompiler_object_inline_stack_2408.children
9013
9009
  },
9014
- JSCompiler_object_inline_message_2386
9010
+ JSCompiler_object_inline_message_2406
9015
9011
  )),
9016
- (JSCompiler_object_inline_componentStack_2389 =
9012
+ (JSCompiler_object_inline_componentStack_2409 =
9017
9013
  createFiberFromFragment(
9018
- JSCompiler_object_inline_componentStack_2389,
9019
- JSCompiler_object_inline_message_2386,
9014
+ JSCompiler_object_inline_componentStack_2409,
9015
+ JSCompiler_object_inline_message_2406,
9020
9016
  renderLanes,
9021
9017
  null
9022
9018
  )),
9023
- (JSCompiler_object_inline_componentStack_2389.flags |= 2),
9024
- (JSCompiler_object_inline_stack_2388.return = workInProgress),
9025
- (JSCompiler_object_inline_componentStack_2389.return =
9019
+ (JSCompiler_object_inline_componentStack_2409.flags |= 2),
9020
+ (JSCompiler_object_inline_stack_2408.return = workInProgress),
9021
+ (JSCompiler_object_inline_componentStack_2409.return =
9026
9022
  workInProgress),
9027
- (JSCompiler_object_inline_stack_2388.sibling =
9028
- JSCompiler_object_inline_componentStack_2389),
9029
- (workInProgress.child = JSCompiler_object_inline_stack_2388),
9023
+ (JSCompiler_object_inline_stack_2408.sibling =
9024
+ JSCompiler_object_inline_componentStack_2409),
9025
+ (workInProgress.child = JSCompiler_object_inline_stack_2408),
9030
9026
  reconcileChildFibers(
9031
9027
  workInProgress,
9032
9028
  current.child,
9033
9029
  null,
9034
9030
  renderLanes
9035
9031
  ),
9036
- (JSCompiler_object_inline_stack_2388 = workInProgress.child),
9037
- (JSCompiler_object_inline_stack_2388.memoizedState =
9032
+ (JSCompiler_object_inline_stack_2408 = workInProgress.child),
9033
+ (JSCompiler_object_inline_stack_2408.memoizedState =
9038
9034
  mountSuspenseOffscreenState(renderLanes)),
9039
- (JSCompiler_object_inline_stack_2388.childLanes =
9035
+ (JSCompiler_object_inline_stack_2408.childLanes =
9040
9036
  getRemainingWorkInPrimaryTree(
9041
9037
  current,
9042
- JSCompiler_object_inline_digest_2387,
9038
+ JSCompiler_object_inline_digest_2407,
9043
9039
  renderLanes
9044
9040
  )),
9045
9041
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9046
9042
  (workInProgress =
9047
- JSCompiler_object_inline_componentStack_2389));
9043
+ JSCompiler_object_inline_componentStack_2409));
9048
9044
  else if (
9049
9045
  (pushPrimaryTreeSuspenseHandler(workInProgress),
9050
9046
  isHydrating &&
9051
9047
  console.error(
9052
9048
  "We should not be hydrating here. This is a bug in React. Please file a bug."
9053
9049
  ),
9054
- isSuspenseInstanceFallback(JSCompiler_object_inline_message_2386))
9050
+ isSuspenseInstanceFallback(JSCompiler_object_inline_message_2406))
9055
9051
  ) {
9056
- JSCompiler_object_inline_digest_2387 =
9057
- JSCompiler_object_inline_message_2386.nextSibling &&
9058
- JSCompiler_object_inline_message_2386.nextSibling.dataset;
9059
- if (JSCompiler_object_inline_digest_2387) {
9060
- JSCompiler_temp = JSCompiler_object_inline_digest_2387.dgst;
9061
- var message = JSCompiler_object_inline_digest_2387.msg;
9062
- instance = JSCompiler_object_inline_digest_2387.stck;
9063
- var componentStack = JSCompiler_object_inline_digest_2387.cstck;
9052
+ JSCompiler_object_inline_digest_2407 =
9053
+ JSCompiler_object_inline_message_2406.nextSibling &&
9054
+ JSCompiler_object_inline_message_2406.nextSibling.dataset;
9055
+ if (JSCompiler_object_inline_digest_2407) {
9056
+ JSCompiler_temp = JSCompiler_object_inline_digest_2407.dgst;
9057
+ var message = JSCompiler_object_inline_digest_2407.msg;
9058
+ instance = JSCompiler_object_inline_digest_2407.stck;
9059
+ var componentStack = JSCompiler_object_inline_digest_2407.cstck;
9064
9060
  }
9065
- JSCompiler_object_inline_message_2386 = message;
9066
- JSCompiler_object_inline_digest_2387 = JSCompiler_temp;
9067
- JSCompiler_object_inline_stack_2388 = instance;
9068
- JSCompiler_temp = JSCompiler_object_inline_componentStack_2389 =
9061
+ JSCompiler_object_inline_message_2406 = message;
9062
+ JSCompiler_object_inline_digest_2407 = JSCompiler_temp;
9063
+ JSCompiler_object_inline_stack_2408 = instance;
9064
+ JSCompiler_temp = JSCompiler_object_inline_componentStack_2409 =
9069
9065
  componentStack;
9070
- JSCompiler_object_inline_componentStack_2389 =
9071
- JSCompiler_object_inline_message_2386
9072
- ? Error(JSCompiler_object_inline_message_2386)
9066
+ JSCompiler_object_inline_componentStack_2409 =
9067
+ JSCompiler_object_inline_message_2406
9068
+ ? Error(JSCompiler_object_inline_message_2406)
9073
9069
  : Error(
9074
9070
  "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
9075
9071
  );
9076
- JSCompiler_object_inline_componentStack_2389.stack =
9077
- JSCompiler_object_inline_stack_2388 || "";
9078
- JSCompiler_object_inline_componentStack_2389.digest =
9079
- JSCompiler_object_inline_digest_2387;
9080
- JSCompiler_object_inline_digest_2387 =
9072
+ JSCompiler_object_inline_componentStack_2409.stack =
9073
+ JSCompiler_object_inline_stack_2408 || "";
9074
+ JSCompiler_object_inline_componentStack_2409.digest =
9075
+ JSCompiler_object_inline_digest_2407;
9076
+ JSCompiler_object_inline_digest_2407 =
9081
9077
  void 0 === JSCompiler_temp ? null : JSCompiler_temp;
9082
- JSCompiler_object_inline_stack_2388 = {
9083
- value: JSCompiler_object_inline_componentStack_2389,
9078
+ JSCompiler_object_inline_stack_2408 = {
9079
+ value: JSCompiler_object_inline_componentStack_2409,
9084
9080
  source: null,
9085
- stack: JSCompiler_object_inline_digest_2387
9081
+ stack: JSCompiler_object_inline_digest_2407
9086
9082
  };
9087
- "string" === typeof JSCompiler_object_inline_digest_2387 &&
9083
+ "string" === typeof JSCompiler_object_inline_digest_2407 &&
9088
9084
  CapturedStacks.set(
9089
- JSCompiler_object_inline_componentStack_2389,
9090
- JSCompiler_object_inline_stack_2388
9085
+ JSCompiler_object_inline_componentStack_2409,
9086
+ JSCompiler_object_inline_stack_2408
9091
9087
  );
9092
- queueHydrationError(JSCompiler_object_inline_stack_2388);
9088
+ queueHydrationError(JSCompiler_object_inline_stack_2408);
9093
9089
  workInProgress = retrySuspenseComponentWithoutHydrating(
9094
9090
  current,
9095
9091
  workInProgress,
@@ -9103,44 +9099,44 @@
9103
9099
  renderLanes,
9104
9100
  !1
9105
9101
  ),
9106
- (JSCompiler_object_inline_digest_2387 =
9102
+ (JSCompiler_object_inline_digest_2407 =
9107
9103
  0 !== (renderLanes & current.childLanes)),
9108
- didReceiveUpdate || JSCompiler_object_inline_digest_2387)
9104
+ didReceiveUpdate || JSCompiler_object_inline_digest_2407)
9109
9105
  ) {
9110
- JSCompiler_object_inline_digest_2387 = workInProgressRoot;
9106
+ JSCompiler_object_inline_digest_2407 = workInProgressRoot;
9111
9107
  if (
9112
- null !== JSCompiler_object_inline_digest_2387 &&
9113
- ((JSCompiler_object_inline_stack_2388 = renderLanes & -renderLanes),
9114
- (JSCompiler_object_inline_stack_2388 =
9115
- 0 !== (JSCompiler_object_inline_stack_2388 & 42)
9108
+ null !== JSCompiler_object_inline_digest_2407 &&
9109
+ ((JSCompiler_object_inline_stack_2408 = renderLanes & -renderLanes),
9110
+ (JSCompiler_object_inline_stack_2408 =
9111
+ 0 !== (JSCompiler_object_inline_stack_2408 & 42)
9116
9112
  ? 1
9117
9113
  : getBumpedLaneForHydrationByLane(
9118
- JSCompiler_object_inline_stack_2388
9114
+ JSCompiler_object_inline_stack_2408
9119
9115
  )),
9120
- (JSCompiler_object_inline_stack_2388 =
9116
+ (JSCompiler_object_inline_stack_2408 =
9121
9117
  0 !==
9122
- (JSCompiler_object_inline_stack_2388 &
9123
- (JSCompiler_object_inline_digest_2387.suspendedLanes |
9118
+ (JSCompiler_object_inline_stack_2408 &
9119
+ (JSCompiler_object_inline_digest_2407.suspendedLanes |
9124
9120
  renderLanes))
9125
9121
  ? 0
9126
- : JSCompiler_object_inline_stack_2388),
9127
- 0 !== JSCompiler_object_inline_stack_2388 &&
9128
- JSCompiler_object_inline_stack_2388 !== prevState.retryLane)
9122
+ : JSCompiler_object_inline_stack_2408),
9123
+ 0 !== JSCompiler_object_inline_stack_2408 &&
9124
+ JSCompiler_object_inline_stack_2408 !== prevState.retryLane)
9129
9125
  )
9130
9126
  throw (
9131
- ((prevState.retryLane = JSCompiler_object_inline_stack_2388),
9127
+ ((prevState.retryLane = JSCompiler_object_inline_stack_2408),
9132
9128
  enqueueConcurrentRenderForLane(
9133
9129
  current,
9134
- JSCompiler_object_inline_stack_2388
9130
+ JSCompiler_object_inline_stack_2408
9135
9131
  ),
9136
9132
  scheduleUpdateOnFiber(
9137
- JSCompiler_object_inline_digest_2387,
9133
+ JSCompiler_object_inline_digest_2407,
9138
9134
  current,
9139
- JSCompiler_object_inline_stack_2388
9135
+ JSCompiler_object_inline_stack_2408
9140
9136
  ),
9141
9137
  SelectiveHydrationException)
9142
9138
  );
9143
- JSCompiler_object_inline_message_2386.data ===
9139
+ JSCompiler_object_inline_message_2406.data ===
9144
9140
  SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
9145
9141
  workInProgress = retrySuspenseComponentWithoutHydrating(
9146
9142
  current,
@@ -9148,14 +9144,14 @@
9148
9144
  renderLanes
9149
9145
  );
9150
9146
  } else
9151
- JSCompiler_object_inline_message_2386.data ===
9147
+ JSCompiler_object_inline_message_2406.data ===
9152
9148
  SUSPENSE_PENDING_START_DATA
9153
9149
  ? ((workInProgress.flags |= 192),
9154
9150
  (workInProgress.child = current.child),
9155
9151
  (workInProgress = null))
9156
9152
  : ((current = prevState.treeContext),
9157
9153
  (nextHydratableInstance = getNextHydratable(
9158
- JSCompiler_object_inline_message_2386.nextSibling
9154
+ JSCompiler_object_inline_message_2406.nextSibling
9159
9155
  )),
9160
9156
  (hydrationParentFiber = workInProgress),
9161
9157
  (isHydrating = !0),
@@ -9173,57 +9169,57 @@
9173
9169
  (treeContextProvider = workInProgress)),
9174
9170
  (workInProgress = mountSuspensePrimaryChildren(
9175
9171
  workInProgress,
9176
- JSCompiler_object_inline_stack_2388.children
9172
+ JSCompiler_object_inline_stack_2408.children
9177
9173
  )),
9178
9174
  (workInProgress.flags |= 4096));
9179
9175
  return workInProgress;
9180
9176
  }
9181
- if (JSCompiler_object_inline_componentStack_2389)
9177
+ if (JSCompiler_object_inline_componentStack_2409)
9182
9178
  return (
9183
9179
  reuseSuspenseHandlerOnStack(workInProgress),
9184
- (JSCompiler_object_inline_componentStack_2389 =
9185
- JSCompiler_object_inline_stack_2388.fallback),
9186
- (JSCompiler_object_inline_message_2386 = workInProgress.mode),
9180
+ (JSCompiler_object_inline_componentStack_2409 =
9181
+ JSCompiler_object_inline_stack_2408.fallback),
9182
+ (JSCompiler_object_inline_message_2406 = workInProgress.mode),
9187
9183
  (JSCompiler_temp = current.child),
9188
9184
  (instance = JSCompiler_temp.sibling),
9189
- (JSCompiler_object_inline_stack_2388 = createWorkInProgress(
9185
+ (JSCompiler_object_inline_stack_2408 = createWorkInProgress(
9190
9186
  JSCompiler_temp,
9191
9187
  {
9192
9188
  mode: "hidden",
9193
- children: JSCompiler_object_inline_stack_2388.children
9189
+ children: JSCompiler_object_inline_stack_2408.children
9194
9190
  }
9195
9191
  )),
9196
- (JSCompiler_object_inline_stack_2388.subtreeFlags =
9192
+ (JSCompiler_object_inline_stack_2408.subtreeFlags =
9197
9193
  JSCompiler_temp.subtreeFlags & 65011712),
9198
9194
  null !== instance
9199
- ? (JSCompiler_object_inline_componentStack_2389 =
9195
+ ? (JSCompiler_object_inline_componentStack_2409 =
9200
9196
  createWorkInProgress(
9201
9197
  instance,
9202
- JSCompiler_object_inline_componentStack_2389
9198
+ JSCompiler_object_inline_componentStack_2409
9203
9199
  ))
9204
- : ((JSCompiler_object_inline_componentStack_2389 =
9200
+ : ((JSCompiler_object_inline_componentStack_2409 =
9205
9201
  createFiberFromFragment(
9206
- JSCompiler_object_inline_componentStack_2389,
9207
- JSCompiler_object_inline_message_2386,
9202
+ JSCompiler_object_inline_componentStack_2409,
9203
+ JSCompiler_object_inline_message_2406,
9208
9204
  renderLanes,
9209
9205
  null
9210
9206
  )),
9211
- (JSCompiler_object_inline_componentStack_2389.flags |= 2)),
9212
- (JSCompiler_object_inline_componentStack_2389.return =
9207
+ (JSCompiler_object_inline_componentStack_2409.flags |= 2)),
9208
+ (JSCompiler_object_inline_componentStack_2409.return =
9213
9209
  workInProgress),
9214
- (JSCompiler_object_inline_stack_2388.return = workInProgress),
9215
- (JSCompiler_object_inline_stack_2388.sibling =
9216
- JSCompiler_object_inline_componentStack_2389),
9217
- (workInProgress.child = JSCompiler_object_inline_stack_2388),
9218
- (JSCompiler_object_inline_stack_2388 =
9219
- JSCompiler_object_inline_componentStack_2389),
9220
- (JSCompiler_object_inline_componentStack_2389 = workInProgress.child),
9221
- (JSCompiler_object_inline_message_2386 = current.child.memoizedState),
9222
- null === JSCompiler_object_inline_message_2386
9223
- ? (JSCompiler_object_inline_message_2386 =
9210
+ (JSCompiler_object_inline_stack_2408.return = workInProgress),
9211
+ (JSCompiler_object_inline_stack_2408.sibling =
9212
+ JSCompiler_object_inline_componentStack_2409),
9213
+ (workInProgress.child = JSCompiler_object_inline_stack_2408),
9214
+ (JSCompiler_object_inline_stack_2408 =
9215
+ JSCompiler_object_inline_componentStack_2409),
9216
+ (JSCompiler_object_inline_componentStack_2409 = workInProgress.child),
9217
+ (JSCompiler_object_inline_message_2406 = current.child.memoizedState),
9218
+ null === JSCompiler_object_inline_message_2406
9219
+ ? (JSCompiler_object_inline_message_2406 =
9224
9220
  mountSuspenseOffscreenState(renderLanes))
9225
9221
  : ((JSCompiler_temp =
9226
- JSCompiler_object_inline_message_2386.cachePool),
9222
+ JSCompiler_object_inline_message_2406.cachePool),
9227
9223
  null !== JSCompiler_temp
9228
9224
  ? ((instance = CacheContext._currentValue),
9229
9225
  (JSCompiler_temp =
@@ -9231,37 +9227,37 @@
9231
9227
  ? { parent: instance, pool: instance }
9232
9228
  : JSCompiler_temp))
9233
9229
  : (JSCompiler_temp = getSuspendedCache()),
9234
- (JSCompiler_object_inline_message_2386 = {
9230
+ (JSCompiler_object_inline_message_2406 = {
9235
9231
  baseLanes:
9236
- JSCompiler_object_inline_message_2386.baseLanes | renderLanes,
9232
+ JSCompiler_object_inline_message_2406.baseLanes | renderLanes,
9237
9233
  cachePool: JSCompiler_temp
9238
9234
  })),
9239
- (JSCompiler_object_inline_componentStack_2389.memoizedState =
9240
- JSCompiler_object_inline_message_2386),
9241
- (JSCompiler_object_inline_componentStack_2389.childLanes =
9235
+ (JSCompiler_object_inline_componentStack_2409.memoizedState =
9236
+ JSCompiler_object_inline_message_2406),
9237
+ (JSCompiler_object_inline_componentStack_2409.childLanes =
9242
9238
  getRemainingWorkInPrimaryTree(
9243
9239
  current,
9244
- JSCompiler_object_inline_digest_2387,
9240
+ JSCompiler_object_inline_digest_2407,
9245
9241
  renderLanes
9246
9242
  )),
9247
9243
  (workInProgress.memoizedState = SUSPENDED_MARKER),
9248
- JSCompiler_object_inline_stack_2388
9244
+ JSCompiler_object_inline_stack_2408
9249
9245
  );
9250
9246
  pushPrimaryTreeSuspenseHandler(workInProgress);
9251
9247
  renderLanes = current.child;
9252
9248
  current = renderLanes.sibling;
9253
9249
  renderLanes = createWorkInProgress(renderLanes, {
9254
9250
  mode: "visible",
9255
- children: JSCompiler_object_inline_stack_2388.children
9251
+ children: JSCompiler_object_inline_stack_2408.children
9256
9252
  });
9257
9253
  renderLanes.return = workInProgress;
9258
9254
  renderLanes.sibling = null;
9259
9255
  null !== current &&
9260
- ((JSCompiler_object_inline_digest_2387 = workInProgress.deletions),
9261
- null === JSCompiler_object_inline_digest_2387
9256
+ ((JSCompiler_object_inline_digest_2407 = workInProgress.deletions),
9257
+ null === JSCompiler_object_inline_digest_2407
9262
9258
  ? ((workInProgress.deletions = [current]),
9263
9259
  (workInProgress.flags |= 16))
9264
- : JSCompiler_object_inline_digest_2387.push(current));
9260
+ : JSCompiler_object_inline_digest_2407.push(current));
9265
9261
  workInProgress.child = renderLanes;
9266
9262
  workInProgress.memoizedState = null;
9267
9263
  return renderLanes;
@@ -9801,10 +9797,10 @@
9801
9797
  current.$$typeof === REACT_LAZY_TYPE &&
9802
9798
  (workInProgress =
9803
9799
  " Did you wrap a component in React.lazy() more than once?");
9804
- current = getComponentNameFromType(current) || current;
9800
+ renderLanes = getComponentNameFromType(current) || current;
9805
9801
  throw Error(
9806
9802
  "Element type is invalid. Received a promise that resolves to: " +
9807
- current +
9803
+ renderLanes +
9808
9804
  ". Lazy element type must resolve to a class or function." +
9809
9805
  workInProgress
9810
9806
  );
@@ -9843,15 +9839,15 @@
9843
9839
  throw Error(
9844
9840
  "Should have a current fiber. This is a bug in React."
9845
9841
  );
9846
- var nextProps = workInProgress.pendingProps;
9847
- prevSibling = workInProgress.memoizedState;
9848
- returnFiber = prevSibling.element;
9842
+ returnFiber = workInProgress.pendingProps;
9843
+ var prevState = workInProgress.memoizedState;
9844
+ prevSibling = prevState.element;
9849
9845
  cloneUpdateQueue(current, workInProgress);
9850
- processUpdateQueue(workInProgress, nextProps, null, renderLanes);
9846
+ processUpdateQueue(workInProgress, returnFiber, null, renderLanes);
9851
9847
  var nextState = workInProgress.memoizedState;
9852
- nextProps = nextState.cache;
9853
- pushProvider(workInProgress, CacheContext, nextProps);
9854
- nextProps !== prevSibling.cache &&
9848
+ returnFiber = nextState.cache;
9849
+ pushProvider(workInProgress, CacheContext, returnFiber);
9850
+ returnFiber !== prevState.cache &&
9855
9851
  propagateContextChanges(
9856
9852
  workInProgress,
9857
9853
  [CacheContext],
@@ -9859,66 +9855,72 @@
9859
9855
  !0
9860
9856
  );
9861
9857
  suspendIfUpdateReadFromEntangledAsyncAction();
9862
- nextProps = nextState.element;
9863
- if (prevSibling.isDehydrated)
9858
+ returnFiber = nextState.element;
9859
+ if (prevState.isDehydrated)
9864
9860
  if (
9865
- ((prevSibling = {
9866
- element: nextProps,
9861
+ ((prevState = {
9862
+ element: returnFiber,
9867
9863
  isDehydrated: !1,
9868
9864
  cache: nextState.cache
9869
9865
  }),
9870
- (workInProgress.updateQueue.baseState = prevSibling),
9871
- (workInProgress.memoizedState = prevSibling),
9866
+ (workInProgress.updateQueue.baseState = prevState),
9867
+ (workInProgress.memoizedState = prevState),
9872
9868
  workInProgress.flags & 256)
9873
9869
  ) {
9874
9870
  workInProgress = mountHostRootWithoutHydrating(
9875
9871
  current,
9876
9872
  workInProgress,
9877
- nextProps,
9873
+ returnFiber,
9878
9874
  renderLanes
9879
9875
  );
9880
9876
  break a;
9881
- } else if (nextProps !== returnFiber) {
9882
- returnFiber = createCapturedValueAtFiber(
9877
+ } else if (returnFiber !== prevSibling) {
9878
+ prevSibling = createCapturedValueAtFiber(
9883
9879
  Error(
9884
9880
  "This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."
9885
9881
  ),
9886
9882
  workInProgress
9887
9883
  );
9888
- queueHydrationError(returnFiber);
9884
+ queueHydrationError(prevSibling);
9889
9885
  workInProgress = mountHostRootWithoutHydrating(
9890
9886
  current,
9891
9887
  workInProgress,
9892
- nextProps,
9888
+ returnFiber,
9893
9889
  renderLanes
9894
9890
  );
9895
9891
  break a;
9896
- } else
9897
- for (
9898
- nextHydratableInstance = getNextHydratable(
9899
- workInProgress.stateNode.containerInfo.firstChild
9900
- ),
9901
- hydrationParentFiber = workInProgress,
9902
- isHydrating = !0,
9903
- hydrationErrors = null,
9904
- didSuspendOrErrorDEV = !1,
9905
- hydrationDiffRootDEV = null,
9906
- rootOrSingletonContext = !0,
9907
- current = mountChildFibers(
9908
- workInProgress,
9909
- null,
9910
- nextProps,
9911
- renderLanes
9912
- ),
9913
- workInProgress.child = current;
9914
- current;
9915
-
9916
- )
9917
- (current.flags = (current.flags & -3) | 4096),
9918
- (current = current.sibling);
9892
+ } else {
9893
+ current = workInProgress.stateNode.containerInfo;
9894
+ switch (current.nodeType) {
9895
+ case 9:
9896
+ current = current.body;
9897
+ break;
9898
+ default:
9899
+ current =
9900
+ "HTML" === current.nodeName
9901
+ ? current.ownerDocument.body
9902
+ : current;
9903
+ }
9904
+ nextHydratableInstance = getNextHydratable(current.firstChild);
9905
+ hydrationParentFiber = workInProgress;
9906
+ isHydrating = !0;
9907
+ hydrationErrors = null;
9908
+ didSuspendOrErrorDEV = !1;
9909
+ hydrationDiffRootDEV = null;
9910
+ rootOrSingletonContext = !0;
9911
+ renderLanes = mountChildFibers(
9912
+ workInProgress,
9913
+ null,
9914
+ returnFiber,
9915
+ renderLanes
9916
+ );
9917
+ for (workInProgress.child = renderLanes; renderLanes; )
9918
+ (renderLanes.flags = (renderLanes.flags & -3) | 4096),
9919
+ (renderLanes = renderLanes.sibling);
9920
+ }
9919
9921
  else {
9920
9922
  resetHydrationState();
9921
- if (nextProps === returnFiber) {
9923
+ if (returnFiber === prevSibling) {
9922
9924
  workInProgress = bailoutOnAlreadyFinishedWork(
9923
9925
  current,
9924
9926
  workInProgress,
@@ -9929,7 +9931,7 @@
9929
9931
  reconcileChildren(
9930
9932
  current,
9931
9933
  workInProgress,
9932
- nextProps,
9934
+ returnFiber,
9933
9935
  renderLanes
9934
9936
  );
9935
9937
  }
@@ -9940,26 +9942,26 @@
9940
9942
  return (
9941
9943
  markRef(current, workInProgress),
9942
9944
  null === current
9943
- ? (current = getResource(
9945
+ ? (renderLanes = getResource(
9944
9946
  workInProgress.type,
9945
9947
  null,
9946
9948
  workInProgress.pendingProps,
9947
9949
  null
9948
9950
  ))
9949
- ? (workInProgress.memoizedState = current)
9951
+ ? (workInProgress.memoizedState = renderLanes)
9950
9952
  : isHydrating ||
9951
- ((current = workInProgress.type),
9952
- (renderLanes = workInProgress.pendingProps),
9953
+ ((renderLanes = workInProgress.type),
9954
+ (current = workInProgress.pendingProps),
9953
9955
  (returnFiber = requiredContext(
9954
9956
  rootInstanceStackCursor.current
9955
9957
  )),
9956
9958
  (returnFiber =
9957
9959
  getOwnerDocumentFromRootContainer(
9958
9960
  returnFiber
9959
- ).createElement(current)),
9961
+ ).createElement(renderLanes)),
9960
9962
  (returnFiber[internalInstanceKey] = workInProgress),
9961
- (returnFiber[internalPropsKey] = renderLanes),
9962
- setInitialProperties(returnFiber, current, renderLanes),
9963
+ (returnFiber[internalPropsKey] = current),
9964
+ setInitialProperties(returnFiber, renderLanes, current),
9963
9965
  markNodeAsHoistable(returnFiber),
9964
9966
  (workInProgress.stateNode = returnFiber))
9965
9967
  : (workInProgress.memoizedState = getResource(
@@ -9975,31 +9977,35 @@
9975
9977
  pushHostContext(workInProgress),
9976
9978
  null === current &&
9977
9979
  isHydrating &&
9978
- ((prevSibling = requiredContext(rootInstanceStackCursor.current)),
9979
- (returnFiber = getHostContext()),
9980
- (prevSibling = workInProgress.stateNode =
9980
+ ((returnFiber = requiredContext(rootInstanceStackCursor.current)),
9981
+ (prevSibling = getHostContext()),
9982
+ (returnFiber = workInProgress.stateNode =
9981
9983
  resolveSingletonInstance(
9982
9984
  workInProgress.type,
9983
9985
  workInProgress.pendingProps,
9984
- prevSibling,
9985
9986
  returnFiber,
9987
+ prevSibling,
9986
9988
  !1
9987
9989
  )),
9988
9990
  didSuspendOrErrorDEV ||
9989
- ((returnFiber = diffHydratedProperties(
9990
- prevSibling,
9991
+ ((prevSibling = diffHydratedProperties(
9992
+ returnFiber,
9991
9993
  workInProgress.type,
9992
9994
  workInProgress.pendingProps,
9993
- returnFiber
9995
+ prevSibling
9994
9996
  )),
9995
- null !== returnFiber &&
9997
+ null !== prevSibling &&
9996
9998
  (buildHydrationDiffNode(workInProgress, 0).serverProps =
9997
- returnFiber)),
9999
+ prevSibling)),
9998
10000
  (hydrationParentFiber = workInProgress),
9999
10001
  (rootOrSingletonContext = !0),
10000
- (nextHydratableInstance = getNextHydratable(
10001
- prevSibling.firstChild
10002
- ))),
10002
+ (prevSibling = nextHydratableInstance),
10003
+ isSingletonScope(workInProgress.type)
10004
+ ? ((previousHydratableOnEnteringScopedSingleton = prevSibling),
10005
+ (nextHydratableInstance = getNextHydratable(
10006
+ returnFiber.firstChild
10007
+ )))
10008
+ : (nextHydratableInstance = prevSibling)),
10003
10009
  reconcileChildren(
10004
10010
  current,
10005
10011
  workInProgress,
@@ -10014,10 +10020,10 @@
10014
10020
  return (
10015
10021
  null === current &&
10016
10022
  isHydrating &&
10017
- ((nextProps = getHostContext()),
10023
+ ((prevState = getHostContext()),
10018
10024
  (returnFiber = validateDOMNesting(
10019
10025
  workInProgress.type,
10020
- nextProps.ancestorInfo
10026
+ prevState.ancestorInfo
10021
10027
  )),
10022
10028
  (prevSibling = nextHydratableInstance),
10023
10029
  (nextState = !prevSibling) ||
@@ -10030,33 +10036,33 @@
10030
10036
  null !== nextState
10031
10037
  ? ((workInProgress.stateNode = nextState),
10032
10038
  didSuspendOrErrorDEV ||
10033
- ((nextProps = diffHydratedProperties(
10039
+ ((prevState = diffHydratedProperties(
10034
10040
  nextState,
10035
10041
  workInProgress.type,
10036
10042
  workInProgress.pendingProps,
10037
- nextProps
10043
+ prevState
10038
10044
  )),
10039
- null !== nextProps &&
10045
+ null !== prevState &&
10040
10046
  (buildHydrationDiffNode(workInProgress, 0).serverProps =
10041
- nextProps)),
10047
+ prevState)),
10042
10048
  (hydrationParentFiber = workInProgress),
10043
10049
  (nextHydratableInstance = getNextHydratable(
10044
10050
  nextState.firstChild
10045
10051
  )),
10046
10052
  (rootOrSingletonContext = !1),
10047
- (nextProps = !0))
10048
- : (nextProps = !1),
10049
- (nextState = !nextProps)),
10053
+ (prevState = !0))
10054
+ : (prevState = !1),
10055
+ (nextState = !prevState)),
10050
10056
  nextState &&
10051
10057
  (returnFiber &&
10052
10058
  warnNonHydratedInstance(workInProgress, prevSibling),
10053
10059
  throwOnHydrationMismatch(workInProgress))),
10054
10060
  pushHostContext(workInProgress),
10055
10061
  (prevSibling = workInProgress.type),
10056
- (nextProps = workInProgress.pendingProps),
10062
+ (prevState = workInProgress.pendingProps),
10057
10063
  (nextState = null !== current ? current.memoizedProps : null),
10058
- (returnFiber = nextProps.children),
10059
- shouldSetTextContent(prevSibling, nextProps)
10064
+ (returnFiber = prevState.children),
10065
+ shouldSetTextContent(prevSibling, prevState)
10060
10066
  ? (returnFiber = null)
10061
10067
  : null !== nextState &&
10062
10068
  shouldSetTextContent(prevSibling, nextState) &&
@@ -10084,16 +10090,16 @@
10084
10090
  return (
10085
10091
  null === current &&
10086
10092
  isHydrating &&
10087
- ((current = workInProgress.pendingProps),
10088
- (renderLanes = getHostContext().ancestorInfo.current),
10089
- (current =
10090
- null != renderLanes
10091
- ? validateTextNesting(current, renderLanes.tag)
10093
+ ((renderLanes = workInProgress.pendingProps),
10094
+ (current = getHostContext().ancestorInfo.current),
10095
+ (renderLanes =
10096
+ null != current
10097
+ ? validateTextNesting(renderLanes, current.tag)
10092
10098
  : !0),
10093
- (renderLanes = nextHydratableInstance),
10094
- (returnFiber = !renderLanes) ||
10099
+ (current = nextHydratableInstance),
10100
+ (returnFiber = !current) ||
10095
10101
  ((returnFiber = canHydrateTextInstance(
10096
- renderLanes,
10102
+ current,
10097
10103
  workInProgress.pendingProps,
10098
10104
  rootOrSingletonContext
10099
10105
  )),
@@ -10105,8 +10111,8 @@
10105
10111
  : (returnFiber = !1),
10106
10112
  (returnFiber = !returnFiber)),
10107
10113
  returnFiber &&
10108
- (current &&
10109
- warnNonHydratedInstance(workInProgress, renderLanes),
10114
+ (renderLanes &&
10115
+ warnNonHydratedInstance(workInProgress, current),
10110
10116
  throwOnHydrationMismatch(workInProgress))),
10111
10117
  null
10112
10118
  );
@@ -10181,14 +10187,14 @@
10181
10187
  return (
10182
10188
  (returnFiber = workInProgress.type),
10183
10189
  (prevSibling = workInProgress.pendingProps),
10184
- (nextProps = prevSibling.value),
10190
+ (prevState = prevSibling.value),
10185
10191
  "value" in prevSibling ||
10186
10192
  hasWarnedAboutUsingNoValuePropOnContextProvider ||
10187
10193
  ((hasWarnedAboutUsingNoValuePropOnContextProvider = !0),
10188
10194
  console.error(
10189
10195
  "The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"
10190
10196
  )),
10191
- pushProvider(workInProgress, returnFiber, nextProps),
10197
+ pushProvider(workInProgress, returnFiber, prevState),
10192
10198
  reconcileChildren(
10193
10199
  current,
10194
10200
  workInProgress,
@@ -10255,12 +10261,12 @@
10255
10261
  ? ((prevSibling = peekCacheFromPool()),
10256
10262
  null === prevSibling &&
10257
10263
  ((prevSibling = workInProgressRoot),
10258
- (nextProps = createCache()),
10259
- (prevSibling.pooledCache = nextProps),
10260
- retainCache(nextProps),
10261
- null !== nextProps &&
10264
+ (prevState = createCache()),
10265
+ (prevSibling.pooledCache = prevState),
10266
+ retainCache(prevState),
10267
+ null !== prevState &&
10262
10268
  (prevSibling.pooledCacheLanes |= renderLanes),
10263
- (prevSibling = nextProps)),
10269
+ (prevSibling = prevState)),
10264
10270
  (workInProgress.memoizedState = {
10265
10271
  parent: returnFiber,
10266
10272
  cache: prevSibling
@@ -10272,7 +10278,7 @@
10272
10278
  processUpdateQueue(workInProgress, null, null, renderLanes),
10273
10279
  suspendIfUpdateReadFromEntangledAsyncAction()),
10274
10280
  (prevSibling = current.memoizedState),
10275
- (nextProps = workInProgress.memoizedState),
10281
+ (prevState = workInProgress.memoizedState),
10276
10282
  prevSibling.parent !== returnFiber
10277
10283
  ? ((prevSibling = {
10278
10284
  parent: returnFiber,
@@ -10284,7 +10290,7 @@
10284
10290
  workInProgress.updateQueue.baseState =
10285
10291
  prevSibling),
10286
10292
  pushProvider(workInProgress, CacheContext, returnFiber))
10287
- : ((returnFiber = nextProps.cache),
10293
+ : ((returnFiber = prevState.cache),
10288
10294
  pushProvider(workInProgress, CacheContext, returnFiber),
10289
10295
  returnFiber !== prevSibling.cache &&
10290
10296
  propagateContextChanges(
@@ -10772,7 +10778,7 @@
10772
10778
  5 === fiber.tag ||
10773
10779
  3 === fiber.tag ||
10774
10780
  26 === fiber.tag ||
10775
- (27 === fiber.tag && "head" === fiber.type) ||
10781
+ (27 === fiber.tag && isSingletonScope(fiber.type)) ||
10776
10782
  4 === fiber.tag
10777
10783
  );
10778
10784
  }
@@ -10788,7 +10794,7 @@
10788
10794
  5 !== fiber.tag && 6 !== fiber.tag && 18 !== fiber.tag;
10789
10795
 
10790
10796
  ) {
10791
- if (27 === fiber.tag && "head" === fiber.type) continue a;
10797
+ if (27 === fiber.tag && isSingletonScope(fiber.type)) continue a;
10792
10798
  if (fiber.flags & 2) continue a;
10793
10799
  if (null === fiber.child || 4 === fiber.tag) continue a;
10794
10800
  else (fiber.child.return = fiber), (fiber = fiber.child);
@@ -10799,44 +10805,30 @@
10799
10805
  function insertOrAppendPlacementNodeIntoContainer(node, before, parent) {
10800
10806
  var tag = node.tag;
10801
10807
  if (5 === tag || 6 === tag)
10802
- if (((node = node.stateNode), before)) {
10803
- switch (parent.nodeType) {
10804
- case 8:
10805
- parent = parent.parentNode;
10806
- break;
10807
- case 9:
10808
- parent = parent.body;
10809
- break;
10810
- default:
10811
- parent =
10812
- "HTML" === parent.nodeName ? parent.ownerDocument.body : parent;
10813
- }
10814
- parent.insertBefore(node, before);
10815
- } else
10816
- a: {
10817
- switch (parent.nodeType) {
10818
- case 8:
10819
- before = parent.parentNode;
10820
- before.insertBefore(node, parent);
10821
- break a;
10822
- case 9:
10823
- before = parent.body;
10824
- break;
10825
- default:
10826
- before =
10827
- "HTML" === parent.nodeName
10808
+ (node = node.stateNode),
10809
+ before
10810
+ ? (9 === parent.nodeType
10811
+ ? parent.body
10812
+ : "HTML" === parent.nodeName
10813
+ ? parent.ownerDocument.body
10814
+ : parent
10815
+ ).insertBefore(node, before)
10816
+ : ((before =
10817
+ 9 === parent.nodeType
10818
+ ? parent.body
10819
+ : "HTML" === parent.nodeName
10828
10820
  ? parent.ownerDocument.body
10829
- : parent;
10830
- }
10831
- before.appendChild(node);
10832
- parent = parent._reactRootContainer;
10833
- (null !== parent && void 0 !== parent) ||
10834
- null !== before.onclick ||
10835
- (before.onclick = noop$1);
10836
- }
10821
+ : parent),
10822
+ before.appendChild(node),
10823
+ (parent = parent._reactRootContainer),
10824
+ (null !== parent && void 0 !== parent) ||
10825
+ null !== before.onclick ||
10826
+ (before.onclick = noop$1));
10837
10827
  else if (
10838
10828
  4 !== tag &&
10839
- (27 === tag && "head" === node.type && (parent = node.stateNode),
10829
+ (27 === tag &&
10830
+ isSingletonScope(node.type) &&
10831
+ ((parent = node.stateNode), (before = null)),
10840
10832
  (node = node.child),
10841
10833
  null !== node)
10842
10834
  )
@@ -10856,7 +10848,7 @@
10856
10848
  before ? parent.insertBefore(node, before) : parent.appendChild(node);
10857
10849
  else if (
10858
10850
  4 !== tag &&
10859
- (27 === tag && "head" === node.type && (parent = node.stateNode),
10851
+ (27 === tag && isSingletonScope(node.type) && (parent = node.stateNode),
10860
10852
  (node = node.child),
10861
10853
  null !== node)
10862
10854
  )
@@ -11328,7 +11320,7 @@
11328
11320
  safelyDetachRef(deletedFiber, nearestMountedAncestor);
11329
11321
  var prevHostParent = hostParent,
11330
11322
  prevHostParentIsContainer = hostParentIsContainer;
11331
- "head" === deletedFiber.type &&
11323
+ isSingletonScope(deletedFiber.type) &&
11332
11324
  ((hostParent = deletedFiber.stateNode),
11333
11325
  (hostParentIsContainer = !1));
11334
11326
  recursivelyTraverseDeletionEffects(
@@ -11394,17 +11386,14 @@
11394
11386
  null !== hostParent &&
11395
11387
  (hostParentIsContainer
11396
11388
  ? ((finishedRoot = hostParent),
11397
- (deletedFiber = deletedFiber.stateNode),
11398
- 8 === finishedRoot.nodeType
11399
- ? clearSuspenseBoundary(finishedRoot.parentNode, deletedFiber)
11400
- : 9 === finishedRoot.nodeType
11401
- ? clearSuspenseBoundary(finishedRoot.body, deletedFiber)
11389
+ clearSuspenseBoundary(
11390
+ 9 === finishedRoot.nodeType
11391
+ ? finishedRoot.body
11402
11392
  : "HTML" === finishedRoot.nodeName
11403
- ? clearSuspenseBoundary(
11404
- finishedRoot.ownerDocument.body,
11405
- deletedFiber
11406
- )
11407
- : clearSuspenseBoundary(finishedRoot, deletedFiber),
11393
+ ? finishedRoot.ownerDocument.body
11394
+ : finishedRoot,
11395
+ deletedFiber.stateNode
11396
+ ),
11408
11397
  retryIfBlockedOn(finishedRoot))
11409
11398
  : clearSuspenseBoundary(hostParent, deletedFiber.stateNode));
11410
11399
  break;
@@ -11558,7 +11547,7 @@
11558
11547
  a: for (; null !== parent; ) {
11559
11548
  switch (parent.tag) {
11560
11549
  case 27:
11561
- if ("head" === parent.type) {
11550
+ if (isSingletonScope(parent.type)) {
11562
11551
  hostParent = parent.stateNode;
11563
11552
  hostParentIsContainer = !1;
11564
11553
  break a;
@@ -13271,14 +13260,14 @@
13271
13260
  function popToNextHostParent(fiber) {
13272
13261
  for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
13273
13262
  switch (hydrationParentFiber.tag) {
13274
- case 3:
13275
- case 27:
13276
- rootOrSingletonContext = !0;
13277
- return;
13278
13263
  case 5:
13279
13264
  case 13:
13280
13265
  rootOrSingletonContext = !1;
13281
13266
  return;
13267
+ case 27:
13268
+ case 3:
13269
+ rootOrSingletonContext = !0;
13270
+ return;
13282
13271
  default:
13283
13272
  hydrationParentFiber = hydrationParentFiber.return;
13284
13273
  }
@@ -13287,32 +13276,31 @@
13287
13276
  if (fiber !== hydrationParentFiber) return !1;
13288
13277
  if (!isHydrating)
13289
13278
  return popToNextHostParent(fiber), (isHydrating = !0), !1;
13290
- var shouldClear = !1,
13279
+ var tag = fiber.tag,
13291
13280
  JSCompiler_temp;
13292
- if ((JSCompiler_temp = 3 !== fiber.tag && 27 !== fiber.tag)) {
13293
- if ((JSCompiler_temp = 5 === fiber.tag))
13281
+ if ((JSCompiler_temp = 3 !== tag && 27 !== tag)) {
13282
+ if ((JSCompiler_temp = 5 === tag))
13294
13283
  (JSCompiler_temp = fiber.type),
13295
13284
  (JSCompiler_temp =
13296
13285
  !("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
13297
13286
  shouldSetTextContent(fiber.type, fiber.memoizedProps));
13298
13287
  JSCompiler_temp = !JSCompiler_temp;
13299
13288
  }
13300
- JSCompiler_temp && (shouldClear = !0);
13301
- if (shouldClear && nextHydratableInstance) {
13302
- for (shouldClear = nextHydratableInstance; shouldClear; ) {
13303
- JSCompiler_temp = buildHydrationDiffNode(fiber, 0);
13304
- var description =
13305
- describeHydratableInstanceForDevWarnings(shouldClear);
13306
- JSCompiler_temp.serverTail.push(description);
13307
- shouldClear =
13289
+ if (JSCompiler_temp && nextHydratableInstance) {
13290
+ for (JSCompiler_temp = nextHydratableInstance; JSCompiler_temp; ) {
13291
+ var diffNode = buildHydrationDiffNode(fiber, 0),
13292
+ description =
13293
+ describeHydratableInstanceForDevWarnings(JSCompiler_temp);
13294
+ diffNode.serverTail.push(description);
13295
+ JSCompiler_temp =
13308
13296
  "Suspense" === description.type
13309
- ? getNextHydratableInstanceAfterSuspenseInstance(shouldClear)
13310
- : getNextHydratable(shouldClear.nextSibling);
13297
+ ? getNextHydratableInstanceAfterSuspenseInstance(JSCompiler_temp)
13298
+ : getNextHydratable(JSCompiler_temp.nextSibling);
13311
13299
  }
13312
13300
  throwOnHydrationMismatch(fiber);
13313
13301
  }
13314
13302
  popToNextHostParent(fiber);
13315
- if (13 === fiber.tag) {
13303
+ if (13 === tag) {
13316
13304
  fiber = fiber.memoizedState;
13317
13305
  fiber = null !== fiber ? fiber.dehydrated : null;
13318
13306
  if (!fiber)
@@ -13322,9 +13310,16 @@
13322
13310
  nextHydratableInstance =
13323
13311
  getNextHydratableInstanceAfterSuspenseInstance(fiber);
13324
13312
  } else
13325
- nextHydratableInstance = hydrationParentFiber
13326
- ? getNextHydratable(fiber.stateNode.nextSibling)
13327
- : null;
13313
+ 27 === tag
13314
+ ? ((tag = nextHydratableInstance),
13315
+ isSingletonScope(fiber.type)
13316
+ ? ((fiber = previousHydratableOnEnteringScopedSingleton),
13317
+ (previousHydratableOnEnteringScopedSingleton = null),
13318
+ (nextHydratableInstance = fiber))
13319
+ : (nextHydratableInstance = tag))
13320
+ : (nextHydratableInstance = hydrationParentFiber
13321
+ ? getNextHydratable(fiber.stateNode.nextSibling)
13322
+ : null);
13328
13323
  return !0;
13329
13324
  }
13330
13325
  function resetHydrationState() {
@@ -16365,23 +16360,15 @@
16365
16360
  var nodeTag = targetInst$jscomp$0.tag;
16366
16361
  if (3 === nodeTag || 4 === nodeTag) {
16367
16362
  var container = targetInst$jscomp$0.stateNode.containerInfo;
16368
- if (
16369
- container === targetContainer ||
16370
- (8 === container.nodeType &&
16371
- container.parentNode === targetContainer)
16372
- )
16373
- break;
16363
+ if (container === targetContainer) break;
16374
16364
  if (4 === nodeTag)
16375
16365
  for (nodeTag = targetInst$jscomp$0.return; null !== nodeTag; ) {
16376
16366
  var grandTag = nodeTag.tag;
16377
- if (3 === grandTag || 4 === grandTag)
16378
- if (
16379
- ((grandTag = nodeTag.stateNode.containerInfo),
16380
- grandTag === targetContainer ||
16381
- (8 === grandTag.nodeType &&
16382
- grandTag.parentNode === targetContainer))
16383
- )
16384
- return;
16367
+ if (
16368
+ (3 === grandTag || 4 === grandTag) &&
16369
+ nodeTag.stateNode.containerInfo === targetContainer
16370
+ )
16371
+ return;
16385
16372
  nodeTag = nodeTag.return;
16386
16373
  }
16387
16374
  for (; null !== container; ) {
@@ -19182,33 +19169,58 @@
19182
19169
  function commitTextUpdate(textInstance, oldText, newText) {
19183
19170
  textInstance.nodeValue = newText;
19184
19171
  }
19172
+ function isSingletonScope(type) {
19173
+ return "head" === type;
19174
+ }
19185
19175
  function removeChild(parentInstance, child) {
19186
19176
  parentInstance.removeChild(child);
19187
19177
  }
19188
19178
  function removeChildFromContainer(container, child) {
19189
- switch (container.nodeType) {
19190
- case 8:
19191
- container = container.parentNode;
19192
- break;
19193
- case 9:
19194
- container = container.body;
19195
- break;
19196
- default:
19197
- container =
19198
- "HTML" === container.nodeName
19199
- ? container.ownerDocument.body
19200
- : container;
19201
- }
19202
- container.removeChild(child);
19179
+ (9 === container.nodeType
19180
+ ? container.body
19181
+ : "HTML" === container.nodeName
19182
+ ? container.ownerDocument.body
19183
+ : container
19184
+ ).removeChild(child);
19203
19185
  }
19204
19186
  function clearSuspenseBoundary(parentInstance, suspenseInstance) {
19205
19187
  var node = suspenseInstance,
19188
+ possiblePreambleContribution = 0,
19206
19189
  depth = 0;
19207
19190
  do {
19208
19191
  var nextNode = node.nextSibling;
19209
19192
  parentInstance.removeChild(node);
19210
19193
  if (nextNode && 8 === nextNode.nodeType)
19211
19194
  if (((node = nextNode.data), node === SUSPENSE_END_DATA)) {
19195
+ if (
19196
+ 0 < possiblePreambleContribution &&
19197
+ 8 > possiblePreambleContribution
19198
+ ) {
19199
+ node = possiblePreambleContribution;
19200
+ var ownerDocument = parentInstance.ownerDocument;
19201
+ node & PREAMBLE_CONTRIBUTION_HTML &&
19202
+ releaseSingletonInstance(ownerDocument.documentElement);
19203
+ node & PREAMBLE_CONTRIBUTION_BODY &&
19204
+ releaseSingletonInstance(ownerDocument.body);
19205
+ if (node & PREAMBLE_CONTRIBUTION_HEAD)
19206
+ for (
19207
+ node = ownerDocument.head,
19208
+ releaseSingletonInstance(node),
19209
+ ownerDocument = node.firstChild;
19210
+ ownerDocument;
19211
+
19212
+ ) {
19213
+ var nextNode$jscomp$0 = ownerDocument.nextSibling,
19214
+ nodeName = ownerDocument.nodeName;
19215
+ ownerDocument[internalHoistableMarker] ||
19216
+ "SCRIPT" === nodeName ||
19217
+ "STYLE" === nodeName ||
19218
+ ("LINK" === nodeName &&
19219
+ "stylesheet" === ownerDocument.rel.toLowerCase()) ||
19220
+ node.removeChild(ownerDocument);
19221
+ ownerDocument = nextNode$jscomp$0;
19222
+ }
19223
+ }
19212
19224
  if (0 === depth) {
19213
19225
  parentInstance.removeChild(nextNode);
19214
19226
  retryIfBlockedOn(suspenseInstance);
@@ -19216,10 +19228,12 @@
19216
19228
  }
19217
19229
  depth--;
19218
19230
  } else
19219
- (node !== SUSPENSE_START_DATA &&
19220
- node !== SUSPENSE_PENDING_START_DATA &&
19221
- node !== SUSPENSE_FALLBACK_START_DATA) ||
19222
- depth++;
19231
+ node === SUSPENSE_START_DATA ||
19232
+ node === SUSPENSE_PENDING_START_DATA ||
19233
+ node === SUSPENSE_FALLBACK_START_DATA
19234
+ ? depth++
19235
+ : (possiblePreambleContribution = node.charCodeAt(0) - 48);
19236
+ else possiblePreambleContribution = 0;
19223
19237
  node = nextNode;
19224
19238
  } while (node);
19225
19239
  retryIfBlockedOn(suspenseInstance);
@@ -24162,6 +24176,9 @@
24162
24176
  SUSPENSE_END_DATA = "/$",
24163
24177
  SUSPENSE_PENDING_START_DATA = "$?",
24164
24178
  SUSPENSE_FALLBACK_START_DATA = "$!",
24179
+ PREAMBLE_CONTRIBUTION_HTML = 1,
24180
+ PREAMBLE_CONTRIBUTION_BODY = 2,
24181
+ PREAMBLE_CONTRIBUTION_HEAD = 4,
24165
24182
  FORM_STATE_IS_MATCHING = "F!",
24166
24183
  FORM_STATE_IS_NOT_MATCHING = "F",
24167
24184
  DOCUMENT_READY_STATE_COMPLETE = "complete",
@@ -24189,6 +24206,7 @@
24189
24206
  .catch(handleErrorInNextTick);
24190
24207
  }
24191
24208
  : scheduleTimeout,
24209
+ previousHydratableOnEnteringScopedSingleton = null,
24192
24210
  NotLoaded = 0,
24193
24211
  Loaded = 1,
24194
24212
  Errored = 2,
@@ -24604,11 +24622,11 @@
24604
24622
  };
24605
24623
  (function () {
24606
24624
  var isomorphicReactPackageVersion = React.version;
24607
- if ("19.1.0-canary-0a82580b-20250203" !== isomorphicReactPackageVersion)
24625
+ if ("19.1.0-canary-d85cf3e5-20250205" !== isomorphicReactPackageVersion)
24608
24626
  throw Error(
24609
24627
  'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
24610
24628
  (isomorphicReactPackageVersion +
24611
- "\n - react-dom: 19.1.0-canary-0a82580b-20250203\nLearn more: https://react.dev/warnings/version-mismatch")
24629
+ "\n - react-dom: 19.1.0-canary-d85cf3e5-20250205\nLearn more: https://react.dev/warnings/version-mismatch")
24612
24630
  );
24613
24631
  })();
24614
24632
  ("function" === typeof Map &&
@@ -24645,10 +24663,10 @@
24645
24663
  !(function () {
24646
24664
  var internals = {
24647
24665
  bundleType: 1,
24648
- version: "19.1.0-canary-0a82580b-20250203",
24666
+ version: "19.1.0-canary-d85cf3e5-20250205",
24649
24667
  rendererPackageName: "react-dom",
24650
24668
  currentDispatcherRef: ReactSharedInternals,
24651
- reconcilerVersion: "19.1.0-canary-0a82580b-20250203"
24669
+ reconcilerVersion: "19.1.0-canary-d85cf3e5-20250205"
24652
24670
  };
24653
24671
  internals.overrideHookState = overrideHookState;
24654
24672
  internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -24731,9 +24749,7 @@
24731
24749
  null
24732
24750
  );
24733
24751
  container[internalContainerInstanceKey] = options.current;
24734
- listenToAllSupportedEvents(
24735
- 8 === container.nodeType ? container.parentNode : container
24736
- );
24752
+ listenToAllSupportedEvents(container);
24737
24753
  return new ReactDOMRoot(options);
24738
24754
  };
24739
24755
  exports.hydrateRoot = function (container, initialChildren, options) {
@@ -24794,7 +24810,7 @@
24794
24810
  listenToAllSupportedEvents(container);
24795
24811
  return new ReactDOMHydrationRoot(initialChildren);
24796
24812
  };
24797
- exports.version = "19.1.0-canary-0a82580b-20250203";
24813
+ exports.version = "19.1.0-canary-d85cf3e5-20250205";
24798
24814
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
24799
24815
  "function" ===
24800
24816
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&