react-dom 19.1.0-canary-a4b2d0d5-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.
- package/cjs/react-dom-client.development.js +377 -361
- package/cjs/react-dom-client.production.js +214 -191
- package/cjs/react-dom-profiling.development.js +377 -361
- package/cjs/react-dom-profiling.profiling.js +214 -191
- package/cjs/react-dom-server-legacy.browser.development.js +73 -28
- package/cjs/react-dom-server-legacy.browser.production.js +97 -52
- package/cjs/react-dom-server-legacy.node.development.js +73 -28
- package/cjs/react-dom-server-legacy.node.production.js +97 -52
- package/cjs/react-dom-server.browser.development.js +90 -38
- package/cjs/react-dom-server.browser.production.js +94 -39
- package/cjs/react-dom-server.bun.development.js +91 -37
- package/cjs/react-dom-server.bun.production.js +94 -42
- package/cjs/react-dom-server.edge.development.js +90 -38
- package/cjs/react-dom-server.edge.production.js +97 -42
- package/cjs/react-dom-server.node.development.js +90 -38
- package/cjs/react-dom-server.node.production.js +97 -42
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -415,11 +415,7 @@
|
|
415
415
|
break;
|
416
416
|
default:
|
417
417
|
if (
|
418
|
-
((
|
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
|
8852
|
-
var
|
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
|
8850
|
+
var JSCompiler_object_inline_componentStack_2409 = !1;
|
8855
8851
|
var didSuspend = 0 !== (workInProgress.flags & 128);
|
8856
|
-
(
|
8857
|
-
(
|
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
|
-
|
8862
|
-
((
|
8857
|
+
JSCompiler_object_inline_digest_2407 &&
|
8858
|
+
((JSCompiler_object_inline_componentStack_2409 = !0),
|
8863
8859
|
(workInProgress.flags &= -129));
|
8864
|
-
|
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
|
-
|
8864
|
+
JSCompiler_object_inline_componentStack_2409
|
8869
8865
|
? pushPrimaryTreeSuspenseHandler(workInProgress)
|
8870
8866
|
: reuseSuspenseHandlerOnStack(workInProgress);
|
8871
8867
|
if (isHydrating) {
|
8872
|
-
var
|
8868
|
+
var JSCompiler_object_inline_message_2406 = nextHydratableInstance;
|
8873
8869
|
var JSCompiler_temp;
|
8874
|
-
if (!(JSCompiler_temp = !
|
8870
|
+
if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2406)) {
|
8875
8871
|
c: {
|
8876
|
-
var instance =
|
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
|
-
|
8914
|
+
JSCompiler_object_inline_message_2406
|
8919
8915
|
),
|
8920
8916
|
throwOnHydrationMismatch(workInProgress));
|
8921
8917
|
}
|
8922
|
-
|
8918
|
+
JSCompiler_object_inline_message_2406 = workInProgress.memoizedState;
|
8923
8919
|
if (
|
8924
|
-
null !==
|
8925
|
-
((
|
8926
|
-
|
8927
|
-
null !==
|
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(
|
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
|
-
|
8938
|
-
|
8939
|
-
|
8940
|
-
|
8941
|
-
if (
|
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
|
-
(
|
8940
|
+
(JSCompiler_object_inline_componentStack_2409 =
|
8945
8941
|
workInProgress.mode),
|
8946
|
-
(
|
8942
|
+
(JSCompiler_object_inline_message_2406 =
|
8947
8943
|
mountWorkInProgressOffscreenFiber(
|
8948
8944
|
{
|
8949
8945
|
mode: "hidden",
|
8950
|
-
children:
|
8946
|
+
children: JSCompiler_object_inline_message_2406
|
8951
8947
|
},
|
8952
|
-
|
8948
|
+
JSCompiler_object_inline_componentStack_2409
|
8953
8949
|
)),
|
8954
|
-
(
|
8955
|
-
|
8956
|
-
|
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
|
-
(
|
8961
|
-
(
|
8962
|
-
(
|
8963
|
-
|
8964
|
-
(workInProgress.child =
|
8965
|
-
(
|
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
|
-
(
|
8963
|
+
(JSCompiler_object_inline_componentStack_2409.memoizedState =
|
8968
8964
|
mountSuspenseOffscreenState(renderLanes)),
|
8969
|
-
(
|
8965
|
+
(JSCompiler_object_inline_componentStack_2409.childLanes =
|
8970
8966
|
getRemainingWorkInPrimaryTree(
|
8971
8967
|
current,
|
8972
|
-
|
8968
|
+
JSCompiler_object_inline_digest_2407,
|
8973
8969
|
renderLanes
|
8974
8970
|
)),
|
8975
8971
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
8976
|
-
|
8972
|
+
JSCompiler_object_inline_stack_2408
|
8977
8973
|
);
|
8978
8974
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
8979
8975
|
return mountSuspensePrimaryChildren(
|
8980
8976
|
workInProgress,
|
8981
|
-
|
8977
|
+
JSCompiler_object_inline_message_2406
|
8982
8978
|
);
|
8983
8979
|
}
|
8984
8980
|
var prevState = current.memoizedState;
|
8985
8981
|
if (
|
8986
8982
|
null !== prevState &&
|
8987
|
-
((
|
8988
|
-
null !==
|
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
|
-
(
|
9006
|
-
|
9007
|
-
(
|
9008
|
-
(
|
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:
|
9008
|
+
children: JSCompiler_object_inline_stack_2408.children
|
9013
9009
|
},
|
9014
|
-
|
9010
|
+
JSCompiler_object_inline_message_2406
|
9015
9011
|
)),
|
9016
|
-
(
|
9012
|
+
(JSCompiler_object_inline_componentStack_2409 =
|
9017
9013
|
createFiberFromFragment(
|
9018
|
-
|
9019
|
-
|
9014
|
+
JSCompiler_object_inline_componentStack_2409,
|
9015
|
+
JSCompiler_object_inline_message_2406,
|
9020
9016
|
renderLanes,
|
9021
9017
|
null
|
9022
9018
|
)),
|
9023
|
-
(
|
9024
|
-
(
|
9025
|
-
(
|
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
|
-
(
|
9028
|
-
|
9029
|
-
(workInProgress.child =
|
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
|
-
(
|
9037
|
-
(
|
9032
|
+
(JSCompiler_object_inline_stack_2408 = workInProgress.child),
|
9033
|
+
(JSCompiler_object_inline_stack_2408.memoizedState =
|
9038
9034
|
mountSuspenseOffscreenState(renderLanes)),
|
9039
|
-
(
|
9035
|
+
(JSCompiler_object_inline_stack_2408.childLanes =
|
9040
9036
|
getRemainingWorkInPrimaryTree(
|
9041
9037
|
current,
|
9042
|
-
|
9038
|
+
JSCompiler_object_inline_digest_2407,
|
9043
9039
|
renderLanes
|
9044
9040
|
)),
|
9045
9041
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9046
9042
|
(workInProgress =
|
9047
|
-
|
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(
|
9050
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2406))
|
9055
9051
|
) {
|
9056
|
-
|
9057
|
-
|
9058
|
-
|
9059
|
-
if (
|
9060
|
-
JSCompiler_temp =
|
9061
|
-
var message =
|
9062
|
-
instance =
|
9063
|
-
var componentStack =
|
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
|
-
|
9066
|
-
|
9067
|
-
|
9068
|
-
JSCompiler_temp =
|
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
|
-
|
9071
|
-
|
9072
|
-
? Error(
|
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
|
-
|
9077
|
-
|
9078
|
-
|
9079
|
-
|
9080
|
-
|
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
|
-
|
9083
|
-
value:
|
9078
|
+
JSCompiler_object_inline_stack_2408 = {
|
9079
|
+
value: JSCompiler_object_inline_componentStack_2409,
|
9084
9080
|
source: null,
|
9085
|
-
stack:
|
9081
|
+
stack: JSCompiler_object_inline_digest_2407
|
9086
9082
|
};
|
9087
|
-
"string" === typeof
|
9083
|
+
"string" === typeof JSCompiler_object_inline_digest_2407 &&
|
9088
9084
|
CapturedStacks.set(
|
9089
|
-
|
9090
|
-
|
9085
|
+
JSCompiler_object_inline_componentStack_2409,
|
9086
|
+
JSCompiler_object_inline_stack_2408
|
9091
9087
|
);
|
9092
|
-
queueHydrationError(
|
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
|
-
(
|
9102
|
+
(JSCompiler_object_inline_digest_2407 =
|
9107
9103
|
0 !== (renderLanes & current.childLanes)),
|
9108
|
-
didReceiveUpdate ||
|
9104
|
+
didReceiveUpdate || JSCompiler_object_inline_digest_2407)
|
9109
9105
|
) {
|
9110
|
-
|
9106
|
+
JSCompiler_object_inline_digest_2407 = workInProgressRoot;
|
9111
9107
|
if (
|
9112
|
-
null !==
|
9113
|
-
((
|
9114
|
-
(
|
9115
|
-
0 !== (
|
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
|
-
|
9114
|
+
JSCompiler_object_inline_stack_2408
|
9119
9115
|
)),
|
9120
|
-
(
|
9116
|
+
(JSCompiler_object_inline_stack_2408 =
|
9121
9117
|
0 !==
|
9122
|
-
(
|
9123
|
-
(
|
9118
|
+
(JSCompiler_object_inline_stack_2408 &
|
9119
|
+
(JSCompiler_object_inline_digest_2407.suspendedLanes |
|
9124
9120
|
renderLanes))
|
9125
9121
|
? 0
|
9126
|
-
:
|
9127
|
-
0 !==
|
9128
|
-
|
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 =
|
9127
|
+
((prevState.retryLane = JSCompiler_object_inline_stack_2408),
|
9132
9128
|
enqueueConcurrentRenderForLane(
|
9133
9129
|
current,
|
9134
|
-
|
9130
|
+
JSCompiler_object_inline_stack_2408
|
9135
9131
|
),
|
9136
9132
|
scheduleUpdateOnFiber(
|
9137
|
-
|
9133
|
+
JSCompiler_object_inline_digest_2407,
|
9138
9134
|
current,
|
9139
|
-
|
9135
|
+
JSCompiler_object_inline_stack_2408
|
9140
9136
|
),
|
9141
9137
|
SelectiveHydrationException)
|
9142
9138
|
);
|
9143
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
9172
|
+
JSCompiler_object_inline_stack_2408.children
|
9177
9173
|
)),
|
9178
9174
|
(workInProgress.flags |= 4096));
|
9179
9175
|
return workInProgress;
|
9180
9176
|
}
|
9181
|
-
if (
|
9177
|
+
if (JSCompiler_object_inline_componentStack_2409)
|
9182
9178
|
return (
|
9183
9179
|
reuseSuspenseHandlerOnStack(workInProgress),
|
9184
|
-
(
|
9185
|
-
|
9186
|
-
(
|
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
|
-
(
|
9185
|
+
(JSCompiler_object_inline_stack_2408 = createWorkInProgress(
|
9190
9186
|
JSCompiler_temp,
|
9191
9187
|
{
|
9192
9188
|
mode: "hidden",
|
9193
|
-
children:
|
9189
|
+
children: JSCompiler_object_inline_stack_2408.children
|
9194
9190
|
}
|
9195
9191
|
)),
|
9196
|
-
(
|
9192
|
+
(JSCompiler_object_inline_stack_2408.subtreeFlags =
|
9197
9193
|
JSCompiler_temp.subtreeFlags & 65011712),
|
9198
9194
|
null !== instance
|
9199
|
-
? (
|
9195
|
+
? (JSCompiler_object_inline_componentStack_2409 =
|
9200
9196
|
createWorkInProgress(
|
9201
9197
|
instance,
|
9202
|
-
|
9198
|
+
JSCompiler_object_inline_componentStack_2409
|
9203
9199
|
))
|
9204
|
-
: ((
|
9200
|
+
: ((JSCompiler_object_inline_componentStack_2409 =
|
9205
9201
|
createFiberFromFragment(
|
9206
|
-
|
9207
|
-
|
9202
|
+
JSCompiler_object_inline_componentStack_2409,
|
9203
|
+
JSCompiler_object_inline_message_2406,
|
9208
9204
|
renderLanes,
|
9209
9205
|
null
|
9210
9206
|
)),
|
9211
|
-
(
|
9212
|
-
(
|
9207
|
+
(JSCompiler_object_inline_componentStack_2409.flags |= 2)),
|
9208
|
+
(JSCompiler_object_inline_componentStack_2409.return =
|
9213
9209
|
workInProgress),
|
9214
|
-
(
|
9215
|
-
(
|
9216
|
-
|
9217
|
-
(workInProgress.child =
|
9218
|
-
(
|
9219
|
-
|
9220
|
-
(
|
9221
|
-
(
|
9222
|
-
null ===
|
9223
|
-
? (
|
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
|
-
|
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
|
-
(
|
9230
|
+
(JSCompiler_object_inline_message_2406 = {
|
9235
9231
|
baseLanes:
|
9236
|
-
|
9232
|
+
JSCompiler_object_inline_message_2406.baseLanes | renderLanes,
|
9237
9233
|
cachePool: JSCompiler_temp
|
9238
9234
|
})),
|
9239
|
-
(
|
9240
|
-
|
9241
|
-
(
|
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
|
-
|
9240
|
+
JSCompiler_object_inline_digest_2407,
|
9245
9241
|
renderLanes
|
9246
9242
|
)),
|
9247
9243
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
9248
|
-
|
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:
|
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
|
-
((
|
9261
|
-
null ===
|
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
|
-
:
|
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
|
-
|
9800
|
+
renderLanes = getComponentNameFromType(current) || current;
|
9805
9801
|
throw Error(
|
9806
9802
|
"Element type is invalid. Received a promise that resolves to: " +
|
9807
|
-
|
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
|
-
|
9847
|
-
|
9848
|
-
|
9842
|
+
returnFiber = workInProgress.pendingProps;
|
9843
|
+
var prevState = workInProgress.memoizedState;
|
9844
|
+
prevSibling = prevState.element;
|
9849
9845
|
cloneUpdateQueue(current, workInProgress);
|
9850
|
-
processUpdateQueue(workInProgress,
|
9846
|
+
processUpdateQueue(workInProgress, returnFiber, null, renderLanes);
|
9851
9847
|
var nextState = workInProgress.memoizedState;
|
9852
|
-
|
9853
|
-
pushProvider(workInProgress, CacheContext,
|
9854
|
-
|
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
|
-
|
9863
|
-
if (
|
9858
|
+
returnFiber = nextState.element;
|
9859
|
+
if (prevState.isDehydrated)
|
9864
9860
|
if (
|
9865
|
-
((
|
9866
|
-
element:
|
9861
|
+
((prevState = {
|
9862
|
+
element: returnFiber,
|
9867
9863
|
isDehydrated: !1,
|
9868
9864
|
cache: nextState.cache
|
9869
9865
|
}),
|
9870
|
-
(workInProgress.updateQueue.baseState =
|
9871
|
-
(workInProgress.memoizedState =
|
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
|
-
|
9873
|
+
returnFiber,
|
9878
9874
|
renderLanes
|
9879
9875
|
);
|
9880
9876
|
break a;
|
9881
|
-
} else if (
|
9882
|
-
|
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(
|
9884
|
+
queueHydrationError(prevSibling);
|
9889
9885
|
workInProgress = mountHostRootWithoutHydrating(
|
9890
9886
|
current,
|
9891
9887
|
workInProgress,
|
9892
|
-
|
9888
|
+
returnFiber,
|
9893
9889
|
renderLanes
|
9894
9890
|
);
|
9895
9891
|
break a;
|
9896
|
-
} else
|
9897
|
-
|
9898
|
-
|
9899
|
-
|
9900
|
-
|
9901
|
-
|
9902
|
-
|
9903
|
-
|
9904
|
-
|
9905
|
-
|
9906
|
-
|
9907
|
-
|
9908
|
-
|
9909
|
-
|
9910
|
-
|
9911
|
-
|
9912
|
-
|
9913
|
-
|
9914
|
-
|
9915
|
-
|
9916
|
-
|
9917
|
-
|
9918
|
-
|
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 (
|
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
|
-
|
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
|
-
? (
|
9945
|
+
? (renderLanes = getResource(
|
9944
9946
|
workInProgress.type,
|
9945
9947
|
null,
|
9946
9948
|
workInProgress.pendingProps,
|
9947
9949
|
null
|
9948
9950
|
))
|
9949
|
-
? (workInProgress.memoizedState =
|
9951
|
+
? (workInProgress.memoizedState = renderLanes)
|
9950
9952
|
: isHydrating ||
|
9951
|
-
((
|
9952
|
-
(
|
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(
|
9961
|
+
).createElement(renderLanes)),
|
9960
9962
|
(returnFiber[internalInstanceKey] = workInProgress),
|
9961
|
-
(returnFiber[internalPropsKey] =
|
9962
|
-
setInitialProperties(returnFiber,
|
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
|
-
((
|
9979
|
-
(
|
9980
|
-
(
|
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
|
-
((
|
9990
|
-
|
9991
|
+
((prevSibling = diffHydratedProperties(
|
9992
|
+
returnFiber,
|
9991
9993
|
workInProgress.type,
|
9992
9994
|
workInProgress.pendingProps,
|
9993
|
-
|
9995
|
+
prevSibling
|
9994
9996
|
)),
|
9995
|
-
null !==
|
9997
|
+
null !== prevSibling &&
|
9996
9998
|
(buildHydrationDiffNode(workInProgress, 0).serverProps =
|
9997
|
-
|
9999
|
+
prevSibling)),
|
9998
10000
|
(hydrationParentFiber = workInProgress),
|
9999
10001
|
(rootOrSingletonContext = !0),
|
10000
|
-
(
|
10001
|
-
|
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
|
-
((
|
10023
|
+
((prevState = getHostContext()),
|
10018
10024
|
(returnFiber = validateDOMNesting(
|
10019
10025
|
workInProgress.type,
|
10020
|
-
|
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
|
-
((
|
10039
|
+
((prevState = diffHydratedProperties(
|
10034
10040
|
nextState,
|
10035
10041
|
workInProgress.type,
|
10036
10042
|
workInProgress.pendingProps,
|
10037
|
-
|
10043
|
+
prevState
|
10038
10044
|
)),
|
10039
|
-
null !==
|
10045
|
+
null !== prevState &&
|
10040
10046
|
(buildHydrationDiffNode(workInProgress, 0).serverProps =
|
10041
|
-
|
10047
|
+
prevState)),
|
10042
10048
|
(hydrationParentFiber = workInProgress),
|
10043
10049
|
(nextHydratableInstance = getNextHydratable(
|
10044
10050
|
nextState.firstChild
|
10045
10051
|
)),
|
10046
10052
|
(rootOrSingletonContext = !1),
|
10047
|
-
(
|
10048
|
-
: (
|
10049
|
-
(nextState = !
|
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
|
-
(
|
10062
|
+
(prevState = workInProgress.pendingProps),
|
10057
10063
|
(nextState = null !== current ? current.memoizedProps : null),
|
10058
|
-
(returnFiber =
|
10059
|
-
shouldSetTextContent(prevSibling,
|
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
|
-
((
|
10088
|
-
(
|
10089
|
-
(
|
10090
|
-
null !=
|
10091
|
-
? validateTextNesting(
|
10093
|
+
((renderLanes = workInProgress.pendingProps),
|
10094
|
+
(current = getHostContext().ancestorInfo.current),
|
10095
|
+
(renderLanes =
|
10096
|
+
null != current
|
10097
|
+
? validateTextNesting(renderLanes, current.tag)
|
10092
10098
|
: !0),
|
10093
|
-
(
|
10094
|
-
(returnFiber = !
|
10099
|
+
(current = nextHydratableInstance),
|
10100
|
+
(returnFiber = !current) ||
|
10095
10101
|
((returnFiber = canHydrateTextInstance(
|
10096
|
-
|
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
|
-
(
|
10109
|
-
warnNonHydratedInstance(workInProgress,
|
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
|
-
(
|
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,
|
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
|
-
(
|
10259
|
-
(prevSibling.pooledCache =
|
10260
|
-
retainCache(
|
10261
|
-
null !==
|
10264
|
+
(prevState = createCache()),
|
10265
|
+
(prevSibling.pooledCache = prevState),
|
10266
|
+
retainCache(prevState),
|
10267
|
+
null !== prevState &&
|
10262
10268
|
(prevSibling.pooledCacheLanes |= renderLanes),
|
10263
|
-
(prevSibling =
|
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
|
-
(
|
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 =
|
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 &&
|
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 &&
|
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
|
-
|
10803
|
-
|
10804
|
-
|
10805
|
-
|
10806
|
-
|
10807
|
-
|
10808
|
-
|
10809
|
-
|
10810
|
-
|
10811
|
-
|
10812
|
-
|
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
|
-
|
10832
|
-
|
10833
|
-
|
10834
|
-
|
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 &&
|
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 &&
|
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
|
-
|
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
|
-
(
|
11398
|
-
|
11399
|
-
|
11400
|
-
: 9 === finishedRoot.nodeType
|
11401
|
-
? clearSuspenseBoundary(finishedRoot.body, deletedFiber)
|
11389
|
+
clearSuspenseBoundary(
|
11390
|
+
9 === finishedRoot.nodeType
|
11391
|
+
? finishedRoot.body
|
11402
11392
|
: "HTML" === finishedRoot.nodeName
|
11403
|
-
?
|
11404
|
-
|
11405
|
-
|
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 (
|
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
|
13279
|
+
var tag = fiber.tag,
|
13291
13280
|
JSCompiler_temp;
|
13292
|
-
if ((JSCompiler_temp = 3 !==
|
13293
|
-
if ((JSCompiler_temp = 5 ===
|
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 &&
|
13301
|
-
|
13302
|
-
|
13303
|
-
|
13304
|
-
|
13305
|
-
|
13306
|
-
JSCompiler_temp
|
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(
|
13310
|
-
: getNextHydratable(
|
13297
|
+
? getNextHydratableInstanceAfterSuspenseInstance(JSCompiler_temp)
|
13298
|
+
: getNextHydratable(JSCompiler_temp.nextSibling);
|
13311
13299
|
}
|
13312
13300
|
throwOnHydrationMismatch(fiber);
|
13313
13301
|
}
|
13314
13302
|
popToNextHostParent(fiber);
|
13315
|
-
if (13 ===
|
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
|
-
|
13326
|
-
?
|
13327
|
-
|
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 (
|
16378
|
-
|
16379
|
-
|
16380
|
-
|
16381
|
-
|
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
|
-
|
19190
|
-
|
19191
|
-
|
19192
|
-
|
19193
|
-
|
19194
|
-
|
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
|
-
|
19220
|
-
|
19221
|
-
|
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-
|
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-
|
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-
|
24666
|
+
version: "19.1.0-canary-d85cf3e5-20250205",
|
24649
24667
|
rendererPackageName: "react-dom",
|
24650
24668
|
currentDispatcherRef: ReactSharedInternals,
|
24651
|
-
reconcilerVersion: "19.1.0-canary-
|
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-
|
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 &&
|