react-dom 19.1.0-canary-056073de-20250109 → 19.1.0-canary-540efebc-20250112
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 +829 -820
- package/cjs/react-dom-client.production.js +364 -357
- package/cjs/react-dom-profiling.development.js +829 -820
- package/cjs/react-dom-profiling.profiling.js +364 -357
- package/cjs/react-dom-server-legacy.browser.development.js +1 -1
- package/cjs/react-dom-server-legacy.browser.production.js +1 -1
- package/cjs/react-dom-server-legacy.node.development.js +1 -1
- package/cjs/react-dom-server-legacy.node.production.js +1 -1
- package/cjs/react-dom-server.browser.development.js +3 -3
- package/cjs/react-dom-server.browser.production.js +3 -3
- package/cjs/react-dom-server.bun.development.js +3 -3
- package/cjs/react-dom-server.bun.production.js +3 -3
- package/cjs/react-dom-server.edge.development.js +3 -3
- package/cjs/react-dom-server.edge.production.js +3 -3
- package/cjs/react-dom-server.node.development.js +3 -3
- package/cjs/react-dom-server.node.production.js +3 -3
- 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
|
@@ -3635,6 +3635,24 @@
|
|
|
3635
3635
|
topLevelEventsToReactNames.set(domEventName, reactName);
|
|
3636
3636
|
registerTwoPhaseEvent(reactName, [domEventName]);
|
|
3637
3637
|
}
|
|
3638
|
+
function createCapturedValueAtFiber(value, source) {
|
|
3639
|
+
if ("object" === typeof value && null !== value) {
|
|
3640
|
+
var existing = CapturedStacks.get(value);
|
|
3641
|
+
if (void 0 !== existing) return existing;
|
|
3642
|
+
source = {
|
|
3643
|
+
value: value,
|
|
3644
|
+
source: source,
|
|
3645
|
+
stack: getStackByFiberInDevAndProd(source)
|
|
3646
|
+
};
|
|
3647
|
+
CapturedStacks.set(value, source);
|
|
3648
|
+
return source;
|
|
3649
|
+
}
|
|
3650
|
+
return {
|
|
3651
|
+
value: value,
|
|
3652
|
+
source: source,
|
|
3653
|
+
stack: getStackByFiberInDevAndProd(source)
|
|
3654
|
+
};
|
|
3655
|
+
}
|
|
3638
3656
|
function finishQueueingConcurrentUpdates() {
|
|
3639
3657
|
for (
|
|
3640
3658
|
var endIndex = concurrentQueuesIndex,
|
|
@@ -4494,23 +4512,128 @@
|
|
|
4494
4512
|
cache.controller.abort();
|
|
4495
4513
|
});
|
|
4496
4514
|
}
|
|
4497
|
-
function
|
|
4498
|
-
if (
|
|
4499
|
-
var
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
CapturedStacks.set(value, source);
|
|
4507
|
-
return source;
|
|
4515
|
+
function warnOnInvalidCallback(callback) {
|
|
4516
|
+
if (null !== callback && "function" !== typeof callback) {
|
|
4517
|
+
var key = String(callback);
|
|
4518
|
+
didWarnOnInvalidCallback.has(key) ||
|
|
4519
|
+
(didWarnOnInvalidCallback.add(key),
|
|
4520
|
+
console.error(
|
|
4521
|
+
"Expected the last optional `callback` argument to be a function. Instead received: %s.",
|
|
4522
|
+
callback
|
|
4523
|
+
));
|
|
4508
4524
|
}
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4525
|
+
}
|
|
4526
|
+
function applyDerivedStateFromProps(
|
|
4527
|
+
workInProgress,
|
|
4528
|
+
ctor,
|
|
4529
|
+
getDerivedStateFromProps,
|
|
4530
|
+
nextProps
|
|
4531
|
+
) {
|
|
4532
|
+
var prevState = workInProgress.memoizedState,
|
|
4533
|
+
partialState = getDerivedStateFromProps(nextProps, prevState);
|
|
4534
|
+
if (workInProgress.mode & StrictLegacyMode) {
|
|
4535
|
+
setIsStrictModeForDevtools(!0);
|
|
4536
|
+
try {
|
|
4537
|
+
partialState = getDerivedStateFromProps(nextProps, prevState);
|
|
4538
|
+
} finally {
|
|
4539
|
+
setIsStrictModeForDevtools(!1);
|
|
4540
|
+
}
|
|
4541
|
+
}
|
|
4542
|
+
void 0 === partialState &&
|
|
4543
|
+
((ctor = getComponentNameFromType(ctor) || "Component"),
|
|
4544
|
+
didWarnAboutUndefinedDerivedState.has(ctor) ||
|
|
4545
|
+
(didWarnAboutUndefinedDerivedState.add(ctor),
|
|
4546
|
+
console.error(
|
|
4547
|
+
"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
|
|
4548
|
+
ctor
|
|
4549
|
+
)));
|
|
4550
|
+
prevState =
|
|
4551
|
+
null === partialState || void 0 === partialState
|
|
4552
|
+
? prevState
|
|
4553
|
+
: assign({}, prevState, partialState);
|
|
4554
|
+
workInProgress.memoizedState = prevState;
|
|
4555
|
+
0 === workInProgress.lanes &&
|
|
4556
|
+
(workInProgress.updateQueue.baseState = prevState);
|
|
4557
|
+
}
|
|
4558
|
+
function checkShouldComponentUpdate(
|
|
4559
|
+
workInProgress,
|
|
4560
|
+
ctor,
|
|
4561
|
+
oldProps,
|
|
4562
|
+
newProps,
|
|
4563
|
+
oldState,
|
|
4564
|
+
newState,
|
|
4565
|
+
nextContext
|
|
4566
|
+
) {
|
|
4567
|
+
var instance = workInProgress.stateNode;
|
|
4568
|
+
if ("function" === typeof instance.shouldComponentUpdate) {
|
|
4569
|
+
oldProps = instance.shouldComponentUpdate(
|
|
4570
|
+
newProps,
|
|
4571
|
+
newState,
|
|
4572
|
+
nextContext
|
|
4573
|
+
);
|
|
4574
|
+
if (workInProgress.mode & StrictLegacyMode) {
|
|
4575
|
+
setIsStrictModeForDevtools(!0);
|
|
4576
|
+
try {
|
|
4577
|
+
oldProps = instance.shouldComponentUpdate(
|
|
4578
|
+
newProps,
|
|
4579
|
+
newState,
|
|
4580
|
+
nextContext
|
|
4581
|
+
);
|
|
4582
|
+
} finally {
|
|
4583
|
+
setIsStrictModeForDevtools(!1);
|
|
4584
|
+
}
|
|
4585
|
+
}
|
|
4586
|
+
void 0 === oldProps &&
|
|
4587
|
+
console.error(
|
|
4588
|
+
"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",
|
|
4589
|
+
getComponentNameFromType(ctor) || "Component"
|
|
4590
|
+
);
|
|
4591
|
+
return oldProps;
|
|
4592
|
+
}
|
|
4593
|
+
return ctor.prototype && ctor.prototype.isPureReactComponent
|
|
4594
|
+
? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
|
|
4595
|
+
: !0;
|
|
4596
|
+
}
|
|
4597
|
+
function callComponentWillReceiveProps(
|
|
4598
|
+
workInProgress,
|
|
4599
|
+
instance,
|
|
4600
|
+
newProps,
|
|
4601
|
+
nextContext
|
|
4602
|
+
) {
|
|
4603
|
+
var oldState = instance.state;
|
|
4604
|
+
"function" === typeof instance.componentWillReceiveProps &&
|
|
4605
|
+
instance.componentWillReceiveProps(newProps, nextContext);
|
|
4606
|
+
"function" === typeof instance.UNSAFE_componentWillReceiveProps &&
|
|
4607
|
+
instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
|
|
4608
|
+
instance.state !== oldState &&
|
|
4609
|
+
((workInProgress =
|
|
4610
|
+
getComponentNameFromFiber(workInProgress) || "Component"),
|
|
4611
|
+
didWarnAboutStateAssignmentForComponent.has(workInProgress) ||
|
|
4612
|
+
(didWarnAboutStateAssignmentForComponent.add(workInProgress),
|
|
4613
|
+
console.error(
|
|
4614
|
+
"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
|
|
4615
|
+
workInProgress
|
|
4616
|
+
)),
|
|
4617
|
+
classComponentUpdater.enqueueReplaceState(
|
|
4618
|
+
instance,
|
|
4619
|
+
instance.state,
|
|
4620
|
+
null
|
|
4621
|
+
));
|
|
4622
|
+
}
|
|
4623
|
+
function resolveClassComponentProps(Component, baseProps) {
|
|
4624
|
+
var newProps = baseProps;
|
|
4625
|
+
if ("ref" in baseProps) {
|
|
4626
|
+
newProps = {};
|
|
4627
|
+
for (var propName in baseProps)
|
|
4628
|
+
"ref" !== propName && (newProps[propName] = baseProps[propName]);
|
|
4629
|
+
}
|
|
4630
|
+
if ((Component = Component.defaultProps)) {
|
|
4631
|
+
newProps === baseProps && (newProps = assign({}, newProps));
|
|
4632
|
+
for (var _propName in Component)
|
|
4633
|
+
void 0 === newProps[_propName] &&
|
|
4634
|
+
(newProps[_propName] = Component[_propName]);
|
|
4635
|
+
}
|
|
4636
|
+
return newProps;
|
|
4514
4637
|
}
|
|
4515
4638
|
function pushTreeFork(workInProgress, totalChildren) {
|
|
4516
4639
|
warnIfNotHydrating();
|
|
@@ -4574,496 +4697,127 @@
|
|
|
4574
4697
|
"Expected to be hydrating. This is a bug in React. Please file an issue."
|
|
4575
4698
|
);
|
|
4576
4699
|
}
|
|
4577
|
-
function
|
|
4578
|
-
|
|
4579
|
-
if (null === hydrationDiffRootDEV)
|
|
4580
|
-
hydrationDiffRootDEV = {
|
|
4581
|
-
fiber: fiber,
|
|
4582
|
-
children: [],
|
|
4583
|
-
serverProps: void 0,
|
|
4584
|
-
serverTail: [],
|
|
4585
|
-
distanceFromLeaf: distanceFromLeaf
|
|
4586
|
-
};
|
|
4587
|
-
else {
|
|
4588
|
-
if (hydrationDiffRootDEV.fiber !== fiber)
|
|
4589
|
-
throw Error(
|
|
4590
|
-
"Saw multiple hydration diff roots in a pass. This is a bug in React."
|
|
4591
|
-
);
|
|
4592
|
-
hydrationDiffRootDEV.distanceFromLeaf > distanceFromLeaf &&
|
|
4593
|
-
(hydrationDiffRootDEV.distanceFromLeaf = distanceFromLeaf);
|
|
4594
|
-
}
|
|
4595
|
-
return hydrationDiffRootDEV;
|
|
4596
|
-
}
|
|
4597
|
-
var siblings = buildHydrationDiffNode(
|
|
4598
|
-
fiber.return,
|
|
4599
|
-
distanceFromLeaf + 1
|
|
4600
|
-
).children;
|
|
4601
|
-
if (0 < siblings.length && siblings[siblings.length - 1].fiber === fiber)
|
|
4602
|
-
return (
|
|
4603
|
-
(siblings = siblings[siblings.length - 1]),
|
|
4604
|
-
siblings.distanceFromLeaf > distanceFromLeaf &&
|
|
4605
|
-
(siblings.distanceFromLeaf = distanceFromLeaf),
|
|
4606
|
-
siblings
|
|
4607
|
-
);
|
|
4608
|
-
distanceFromLeaf = {
|
|
4609
|
-
fiber: fiber,
|
|
4610
|
-
children: [],
|
|
4611
|
-
serverProps: void 0,
|
|
4612
|
-
serverTail: [],
|
|
4613
|
-
distanceFromLeaf: distanceFromLeaf
|
|
4614
|
-
};
|
|
4615
|
-
siblings.push(distanceFromLeaf);
|
|
4616
|
-
return distanceFromLeaf;
|
|
4617
|
-
}
|
|
4618
|
-
function warnNonHydratedInstance(fiber, rejectedCandidate) {
|
|
4619
|
-
didSuspendOrErrorDEV ||
|
|
4620
|
-
((fiber = buildHydrationDiffNode(fiber, 0)),
|
|
4621
|
-
(fiber.serverProps = null),
|
|
4622
|
-
null !== rejectedCandidate &&
|
|
4623
|
-
((rejectedCandidate =
|
|
4624
|
-
describeHydratableInstanceForDevWarnings(rejectedCandidate)),
|
|
4625
|
-
fiber.serverTail.push(rejectedCandidate)));
|
|
4700
|
+
function createThenableState() {
|
|
4701
|
+
return { didWarnAboutUncachedPromise: !1, thenables: [] };
|
|
4626
4702
|
}
|
|
4627
|
-
function
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
null !== diffRoot &&
|
|
4631
|
-
((hydrationDiffRootDEV = null), (diff = describeDiff(diffRoot)));
|
|
4632
|
-
queueHydrationError(
|
|
4633
|
-
createCapturedValueAtFiber(
|
|
4634
|
-
Error(
|
|
4635
|
-
"Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch" +
|
|
4636
|
-
diff
|
|
4637
|
-
),
|
|
4638
|
-
fiber
|
|
4639
|
-
)
|
|
4640
|
-
);
|
|
4641
|
-
throw HydrationMismatchException;
|
|
4703
|
+
function isThenableResolved(thenable) {
|
|
4704
|
+
thenable = thenable.status;
|
|
4705
|
+
return "fulfilled" === thenable || "rejected" === thenable;
|
|
4642
4706
|
}
|
|
4643
|
-
function
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
|
|
4652
|
-
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
case "
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
break;
|
|
4668
|
-
case "img":
|
|
4669
|
-
case "image":
|
|
4670
|
-
case "link":
|
|
4671
|
-
listenToNonDelegatedEvent("error", didHydrate);
|
|
4672
|
-
listenToNonDelegatedEvent("load", didHydrate);
|
|
4673
|
-
break;
|
|
4674
|
-
case "details":
|
|
4675
|
-
listenToNonDelegatedEvent("toggle", didHydrate);
|
|
4676
|
-
break;
|
|
4677
|
-
case "input":
|
|
4678
|
-
checkControlledValueProps("input", props);
|
|
4679
|
-
listenToNonDelegatedEvent("invalid", didHydrate);
|
|
4680
|
-
validateInputProps(didHydrate, props);
|
|
4681
|
-
initInput(
|
|
4682
|
-
didHydrate,
|
|
4683
|
-
props.value,
|
|
4684
|
-
props.defaultValue,
|
|
4685
|
-
props.checked,
|
|
4686
|
-
props.defaultChecked,
|
|
4687
|
-
props.type,
|
|
4688
|
-
props.name,
|
|
4689
|
-
!0
|
|
4707
|
+
function noop$3() {}
|
|
4708
|
+
function trackUsedThenable(thenableState, thenable, index) {
|
|
4709
|
+
null !== ReactSharedInternals.actQueue &&
|
|
4710
|
+
(ReactSharedInternals.didUsePromise = !0);
|
|
4711
|
+
var trackedThenables = thenableState.thenables;
|
|
4712
|
+
index = trackedThenables[index];
|
|
4713
|
+
void 0 === index
|
|
4714
|
+
? trackedThenables.push(thenable)
|
|
4715
|
+
: index !== thenable &&
|
|
4716
|
+
(thenableState.didWarnAboutUncachedPromise ||
|
|
4717
|
+
((thenableState.didWarnAboutUncachedPromise = !0),
|
|
4718
|
+
console.error(
|
|
4719
|
+
"A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework."
|
|
4720
|
+
)),
|
|
4721
|
+
thenable.then(noop$3, noop$3),
|
|
4722
|
+
(thenable = index));
|
|
4723
|
+
switch (thenable.status) {
|
|
4724
|
+
case "fulfilled":
|
|
4725
|
+
return thenable.value;
|
|
4726
|
+
case "rejected":
|
|
4727
|
+
throw (
|
|
4728
|
+
((thenableState = thenable.reason),
|
|
4729
|
+
checkIfUseWrappedInAsyncCatch(thenableState),
|
|
4730
|
+
thenableState)
|
|
4690
4731
|
);
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
4704
|
-
|
|
4705
|
-
|
|
4706
|
-
|
|
4707
|
-
|
|
4708
|
-
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4732
|
+
default:
|
|
4733
|
+
if ("string" === typeof thenable.status)
|
|
4734
|
+
thenable.then(noop$3, noop$3);
|
|
4735
|
+
else {
|
|
4736
|
+
thenableState = workInProgressRoot;
|
|
4737
|
+
if (
|
|
4738
|
+
null !== thenableState &&
|
|
4739
|
+
100 < thenableState.shellSuspendCounter
|
|
4740
|
+
)
|
|
4741
|
+
throw Error(
|
|
4742
|
+
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
|
4743
|
+
);
|
|
4744
|
+
thenableState = thenable;
|
|
4745
|
+
thenableState.status = "pending";
|
|
4746
|
+
thenableState.then(
|
|
4747
|
+
function (fulfilledValue) {
|
|
4748
|
+
if ("pending" === thenable.status) {
|
|
4749
|
+
var fulfilledThenable = thenable;
|
|
4750
|
+
fulfilledThenable.status = "fulfilled";
|
|
4751
|
+
fulfilledThenable.value = fulfilledValue;
|
|
4752
|
+
}
|
|
4753
|
+
},
|
|
4754
|
+
function (error) {
|
|
4755
|
+
if ("pending" === thenable.status) {
|
|
4756
|
+
var rejectedThenable = thenable;
|
|
4757
|
+
rejectedThenable.status = "rejected";
|
|
4758
|
+
rejectedThenable.reason = error;
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4761
|
+
);
|
|
4762
|
+
}
|
|
4763
|
+
switch (thenable.status) {
|
|
4764
|
+
case "fulfilled":
|
|
4765
|
+
return thenable.value;
|
|
4766
|
+
case "rejected":
|
|
4767
|
+
throw (
|
|
4768
|
+
((thenableState = thenable.reason),
|
|
4769
|
+
checkIfUseWrappedInAsyncCatch(thenableState),
|
|
4770
|
+
thenableState)
|
|
4771
|
+
);
|
|
4772
|
+
}
|
|
4773
|
+
suspendedThenable = thenable;
|
|
4774
|
+
needsToResetSuspendedThenableDEV = !0;
|
|
4775
|
+
throw SuspenseException;
|
|
4712
4776
|
}
|
|
4713
|
-
type = props.children;
|
|
4714
|
-
("string" !== typeof type &&
|
|
4715
|
-
"number" !== typeof type &&
|
|
4716
|
-
"bigint" !== typeof type) ||
|
|
4717
|
-
didHydrate.textContent === "" + type ||
|
|
4718
|
-
!0 === props.suppressHydrationWarning ||
|
|
4719
|
-
checkForUnmatchedText(didHydrate.textContent, type)
|
|
4720
|
-
? (null != props.popover &&
|
|
4721
|
-
(listenToNonDelegatedEvent("beforetoggle", didHydrate),
|
|
4722
|
-
listenToNonDelegatedEvent("toggle", didHydrate)),
|
|
4723
|
-
null != props.onScroll &&
|
|
4724
|
-
listenToNonDelegatedEvent("scroll", didHydrate),
|
|
4725
|
-
null != props.onScrollEnd &&
|
|
4726
|
-
listenToNonDelegatedEvent("scrollend", didHydrate),
|
|
4727
|
-
null != props.onClick && (didHydrate.onclick = noop$1),
|
|
4728
|
-
(didHydrate = !0))
|
|
4729
|
-
: (didHydrate = !1);
|
|
4730
|
-
didHydrate || throwOnHydrationMismatch(fiber);
|
|
4731
|
-
}
|
|
4732
|
-
function popToNextHostParent(fiber) {
|
|
4733
|
-
for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
|
|
4734
|
-
switch (hydrationParentFiber.tag) {
|
|
4735
|
-
case 3:
|
|
4736
|
-
case 27:
|
|
4737
|
-
rootOrSingletonContext = !0;
|
|
4738
|
-
return;
|
|
4739
|
-
case 5:
|
|
4740
|
-
case 13:
|
|
4741
|
-
rootOrSingletonContext = !1;
|
|
4742
|
-
return;
|
|
4743
|
-
default:
|
|
4744
|
-
hydrationParentFiber = hydrationParentFiber.return;
|
|
4745
|
-
}
|
|
4746
4777
|
}
|
|
4747
|
-
function
|
|
4748
|
-
if (
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
(JSCompiler_temp =
|
|
4757
|
-
!("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
|
|
4758
|
-
shouldSetTextContent(fiber.type, fiber.memoizedProps));
|
|
4759
|
-
JSCompiler_temp = !JSCompiler_temp;
|
|
4760
|
-
}
|
|
4761
|
-
JSCompiler_temp && (shouldClear = !0);
|
|
4762
|
-
if (shouldClear && nextHydratableInstance) {
|
|
4763
|
-
for (shouldClear = nextHydratableInstance; shouldClear; ) {
|
|
4764
|
-
JSCompiler_temp = buildHydrationDiffNode(fiber, 0);
|
|
4765
|
-
var description =
|
|
4766
|
-
describeHydratableInstanceForDevWarnings(shouldClear);
|
|
4767
|
-
JSCompiler_temp.serverTail.push(description);
|
|
4768
|
-
shouldClear =
|
|
4769
|
-
"Suspense" === description.type
|
|
4770
|
-
? getNextHydratableInstanceAfterSuspenseInstance(shouldClear)
|
|
4771
|
-
: getNextHydratable(shouldClear.nextSibling);
|
|
4772
|
-
}
|
|
4773
|
-
throwOnHydrationMismatch(fiber);
|
|
4774
|
-
}
|
|
4775
|
-
popToNextHostParent(fiber);
|
|
4776
|
-
if (13 === fiber.tag) {
|
|
4777
|
-
fiber = fiber.memoizedState;
|
|
4778
|
-
fiber = null !== fiber ? fiber.dehydrated : null;
|
|
4779
|
-
if (!fiber)
|
|
4780
|
-
throw Error(
|
|
4781
|
-
"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."
|
|
4782
|
-
);
|
|
4783
|
-
nextHydratableInstance =
|
|
4784
|
-
getNextHydratableInstanceAfterSuspenseInstance(fiber);
|
|
4785
|
-
} else
|
|
4786
|
-
nextHydratableInstance = hydrationParentFiber
|
|
4787
|
-
? getNextHydratable(fiber.stateNode.nextSibling)
|
|
4788
|
-
: null;
|
|
4789
|
-
return !0;
|
|
4778
|
+
function getSuspendedThenable() {
|
|
4779
|
+
if (null === suspendedThenable)
|
|
4780
|
+
throw Error(
|
|
4781
|
+
"Expected a suspended thenable. This is a bug in React. Please file an issue."
|
|
4782
|
+
);
|
|
4783
|
+
var thenable = suspendedThenable;
|
|
4784
|
+
suspendedThenable = null;
|
|
4785
|
+
needsToResetSuspendedThenableDEV = !1;
|
|
4786
|
+
return thenable;
|
|
4790
4787
|
}
|
|
4791
|
-
function
|
|
4792
|
-
|
|
4793
|
-
|
|
4788
|
+
function checkIfUseWrappedInAsyncCatch(rejectedReason) {
|
|
4789
|
+
if (
|
|
4790
|
+
rejectedReason === SuspenseException ||
|
|
4791
|
+
rejectedReason === SuspenseActionException
|
|
4792
|
+
)
|
|
4793
|
+
throw Error(
|
|
4794
|
+
"Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
|
4795
|
+
);
|
|
4794
4796
|
}
|
|
4795
|
-
function
|
|
4796
|
-
var
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
: workInProgressRootRecoverableErrors.push.apply(
|
|
4801
|
-
workInProgressRootRecoverableErrors,
|
|
4802
|
-
queuedErrors
|
|
4803
|
-
),
|
|
4804
|
-
(hydrationErrors = null));
|
|
4805
|
-
return queuedErrors;
|
|
4797
|
+
function pushHiddenContext(fiber, context) {
|
|
4798
|
+
var prevEntangledRenderLanes = entangledRenderLanes;
|
|
4799
|
+
push(prevEntangledRenderLanesCursor, prevEntangledRenderLanes, fiber);
|
|
4800
|
+
push(currentTreeHiddenStackCursor, context, fiber);
|
|
4801
|
+
entangledRenderLanes = prevEntangledRenderLanes | context.baseLanes;
|
|
4806
4802
|
}
|
|
4807
|
-
function
|
|
4808
|
-
|
|
4809
|
-
|
|
4810
|
-
|
|
4803
|
+
function reuseHiddenContextOnStack(fiber) {
|
|
4804
|
+
push(prevEntangledRenderLanesCursor, entangledRenderLanes, fiber);
|
|
4805
|
+
push(
|
|
4806
|
+
currentTreeHiddenStackCursor,
|
|
4807
|
+
currentTreeHiddenStackCursor.current,
|
|
4808
|
+
fiber
|
|
4809
|
+
);
|
|
4811
4810
|
}
|
|
4812
|
-
function
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
(diffRoot = describeDiff(diffRoot)),
|
|
4817
|
-
console.error(
|
|
4818
|
-
"A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s",
|
|
4819
|
-
"https://react.dev/link/hydration-mismatch",
|
|
4820
|
-
diffRoot
|
|
4821
|
-
));
|
|
4811
|
+
function popHiddenContext(fiber) {
|
|
4812
|
+
entangledRenderLanes = prevEntangledRenderLanesCursor.current;
|
|
4813
|
+
pop(currentTreeHiddenStackCursor, fiber);
|
|
4814
|
+
pop(prevEntangledRenderLanesCursor, fiber);
|
|
4822
4815
|
}
|
|
4823
|
-
function
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
console.error(
|
|
4829
|
-
"Expected the last optional `callback` argument to be a function. Instead received: %s.",
|
|
4830
|
-
callback
|
|
4831
|
-
));
|
|
4832
|
-
}
|
|
4833
|
-
}
|
|
4834
|
-
function applyDerivedStateFromProps(
|
|
4835
|
-
workInProgress,
|
|
4836
|
-
ctor,
|
|
4837
|
-
getDerivedStateFromProps,
|
|
4838
|
-
nextProps
|
|
4839
|
-
) {
|
|
4840
|
-
var prevState = workInProgress.memoizedState,
|
|
4841
|
-
partialState = getDerivedStateFromProps(nextProps, prevState);
|
|
4842
|
-
if (workInProgress.mode & StrictLegacyMode) {
|
|
4843
|
-
setIsStrictModeForDevtools(!0);
|
|
4844
|
-
try {
|
|
4845
|
-
partialState = getDerivedStateFromProps(nextProps, prevState);
|
|
4846
|
-
} finally {
|
|
4847
|
-
setIsStrictModeForDevtools(!1);
|
|
4848
|
-
}
|
|
4849
|
-
}
|
|
4850
|
-
void 0 === partialState &&
|
|
4851
|
-
((ctor = getComponentNameFromType(ctor) || "Component"),
|
|
4852
|
-
didWarnAboutUndefinedDerivedState.has(ctor) ||
|
|
4853
|
-
(didWarnAboutUndefinedDerivedState.add(ctor),
|
|
4854
|
-
console.error(
|
|
4855
|
-
"%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",
|
|
4856
|
-
ctor
|
|
4857
|
-
)));
|
|
4858
|
-
prevState =
|
|
4859
|
-
null === partialState || void 0 === partialState
|
|
4860
|
-
? prevState
|
|
4861
|
-
: assign({}, prevState, partialState);
|
|
4862
|
-
workInProgress.memoizedState = prevState;
|
|
4863
|
-
0 === workInProgress.lanes &&
|
|
4864
|
-
(workInProgress.updateQueue.baseState = prevState);
|
|
4865
|
-
}
|
|
4866
|
-
function checkShouldComponentUpdate(
|
|
4867
|
-
workInProgress,
|
|
4868
|
-
ctor,
|
|
4869
|
-
oldProps,
|
|
4870
|
-
newProps,
|
|
4871
|
-
oldState,
|
|
4872
|
-
newState,
|
|
4873
|
-
nextContext
|
|
4874
|
-
) {
|
|
4875
|
-
var instance = workInProgress.stateNode;
|
|
4876
|
-
if ("function" === typeof instance.shouldComponentUpdate) {
|
|
4877
|
-
oldProps = instance.shouldComponentUpdate(
|
|
4878
|
-
newProps,
|
|
4879
|
-
newState,
|
|
4880
|
-
nextContext
|
|
4881
|
-
);
|
|
4882
|
-
if (workInProgress.mode & StrictLegacyMode) {
|
|
4883
|
-
setIsStrictModeForDevtools(!0);
|
|
4884
|
-
try {
|
|
4885
|
-
oldProps = instance.shouldComponentUpdate(
|
|
4886
|
-
newProps,
|
|
4887
|
-
newState,
|
|
4888
|
-
nextContext
|
|
4889
|
-
);
|
|
4890
|
-
} finally {
|
|
4891
|
-
setIsStrictModeForDevtools(!1);
|
|
4892
|
-
}
|
|
4893
|
-
}
|
|
4894
|
-
void 0 === oldProps &&
|
|
4895
|
-
console.error(
|
|
4896
|
-
"%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",
|
|
4897
|
-
getComponentNameFromType(ctor) || "Component"
|
|
4898
|
-
);
|
|
4899
|
-
return oldProps;
|
|
4900
|
-
}
|
|
4901
|
-
return ctor.prototype && ctor.prototype.isPureReactComponent
|
|
4902
|
-
? !shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)
|
|
4903
|
-
: !0;
|
|
4904
|
-
}
|
|
4905
|
-
function callComponentWillReceiveProps(
|
|
4906
|
-
workInProgress,
|
|
4907
|
-
instance,
|
|
4908
|
-
newProps,
|
|
4909
|
-
nextContext
|
|
4910
|
-
) {
|
|
4911
|
-
var oldState = instance.state;
|
|
4912
|
-
"function" === typeof instance.componentWillReceiveProps &&
|
|
4913
|
-
instance.componentWillReceiveProps(newProps, nextContext);
|
|
4914
|
-
"function" === typeof instance.UNSAFE_componentWillReceiveProps &&
|
|
4915
|
-
instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
|
|
4916
|
-
instance.state !== oldState &&
|
|
4917
|
-
((workInProgress =
|
|
4918
|
-
getComponentNameFromFiber(workInProgress) || "Component"),
|
|
4919
|
-
didWarnAboutStateAssignmentForComponent.has(workInProgress) ||
|
|
4920
|
-
(didWarnAboutStateAssignmentForComponent.add(workInProgress),
|
|
4921
|
-
console.error(
|
|
4922
|
-
"%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
|
|
4923
|
-
workInProgress
|
|
4924
|
-
)),
|
|
4925
|
-
classComponentUpdater.enqueueReplaceState(
|
|
4926
|
-
instance,
|
|
4927
|
-
instance.state,
|
|
4928
|
-
null
|
|
4929
|
-
));
|
|
4930
|
-
}
|
|
4931
|
-
function resolveClassComponentProps(Component, baseProps) {
|
|
4932
|
-
var newProps = baseProps;
|
|
4933
|
-
if ("ref" in baseProps) {
|
|
4934
|
-
newProps = {};
|
|
4935
|
-
for (var propName in baseProps)
|
|
4936
|
-
"ref" !== propName && (newProps[propName] = baseProps[propName]);
|
|
4937
|
-
}
|
|
4938
|
-
if ((Component = Component.defaultProps)) {
|
|
4939
|
-
newProps === baseProps && (newProps = assign({}, newProps));
|
|
4940
|
-
for (var _propName in Component)
|
|
4941
|
-
void 0 === newProps[_propName] &&
|
|
4942
|
-
(newProps[_propName] = Component[_propName]);
|
|
4943
|
-
}
|
|
4944
|
-
return newProps;
|
|
4945
|
-
}
|
|
4946
|
-
function createThenableState() {
|
|
4947
|
-
return { didWarnAboutUncachedPromise: !1, thenables: [] };
|
|
4948
|
-
}
|
|
4949
|
-
function isThenableResolved(thenable) {
|
|
4950
|
-
thenable = thenable.status;
|
|
4951
|
-
return "fulfilled" === thenable || "rejected" === thenable;
|
|
4952
|
-
}
|
|
4953
|
-
function noop$3() {}
|
|
4954
|
-
function trackUsedThenable(thenableState, thenable, index) {
|
|
4955
|
-
null !== ReactSharedInternals.actQueue &&
|
|
4956
|
-
(ReactSharedInternals.didUsePromise = !0);
|
|
4957
|
-
var trackedThenables = thenableState.thenables;
|
|
4958
|
-
index = trackedThenables[index];
|
|
4959
|
-
void 0 === index
|
|
4960
|
-
? trackedThenables.push(thenable)
|
|
4961
|
-
: index !== thenable &&
|
|
4962
|
-
(thenableState.didWarnAboutUncachedPromise ||
|
|
4963
|
-
((thenableState.didWarnAboutUncachedPromise = !0),
|
|
4964
|
-
console.error(
|
|
4965
|
-
"A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework."
|
|
4966
|
-
)),
|
|
4967
|
-
thenable.then(noop$3, noop$3),
|
|
4968
|
-
(thenable = index));
|
|
4969
|
-
switch (thenable.status) {
|
|
4970
|
-
case "fulfilled":
|
|
4971
|
-
return thenable.value;
|
|
4972
|
-
case "rejected":
|
|
4973
|
-
throw (
|
|
4974
|
-
((thenableState = thenable.reason),
|
|
4975
|
-
checkIfUseWrappedInAsyncCatch(thenableState),
|
|
4976
|
-
thenableState)
|
|
4977
|
-
);
|
|
4978
|
-
default:
|
|
4979
|
-
if ("string" === typeof thenable.status)
|
|
4980
|
-
thenable.then(noop$3, noop$3);
|
|
4981
|
-
else {
|
|
4982
|
-
thenableState = workInProgressRoot;
|
|
4983
|
-
if (
|
|
4984
|
-
null !== thenableState &&
|
|
4985
|
-
100 < thenableState.shellSuspendCounter
|
|
4986
|
-
)
|
|
4987
|
-
throw Error(
|
|
4988
|
-
"async/await is not yet supported in Client Components, only Server Components. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
|
4989
|
-
);
|
|
4990
|
-
thenableState = thenable;
|
|
4991
|
-
thenableState.status = "pending";
|
|
4992
|
-
thenableState.then(
|
|
4993
|
-
function (fulfilledValue) {
|
|
4994
|
-
if ("pending" === thenable.status) {
|
|
4995
|
-
var fulfilledThenable = thenable;
|
|
4996
|
-
fulfilledThenable.status = "fulfilled";
|
|
4997
|
-
fulfilledThenable.value = fulfilledValue;
|
|
4998
|
-
}
|
|
4999
|
-
},
|
|
5000
|
-
function (error) {
|
|
5001
|
-
if ("pending" === thenable.status) {
|
|
5002
|
-
var rejectedThenable = thenable;
|
|
5003
|
-
rejectedThenable.status = "rejected";
|
|
5004
|
-
rejectedThenable.reason = error;
|
|
5005
|
-
}
|
|
5006
|
-
}
|
|
5007
|
-
);
|
|
5008
|
-
}
|
|
5009
|
-
switch (thenable.status) {
|
|
5010
|
-
case "fulfilled":
|
|
5011
|
-
return thenable.value;
|
|
5012
|
-
case "rejected":
|
|
5013
|
-
throw (
|
|
5014
|
-
((thenableState = thenable.reason),
|
|
5015
|
-
checkIfUseWrappedInAsyncCatch(thenableState),
|
|
5016
|
-
thenableState)
|
|
5017
|
-
);
|
|
5018
|
-
}
|
|
5019
|
-
suspendedThenable = thenable;
|
|
5020
|
-
needsToResetSuspendedThenableDEV = !0;
|
|
5021
|
-
throw SuspenseException;
|
|
5022
|
-
}
|
|
5023
|
-
}
|
|
5024
|
-
function getSuspendedThenable() {
|
|
5025
|
-
if (null === suspendedThenable)
|
|
5026
|
-
throw Error(
|
|
5027
|
-
"Expected a suspended thenable. This is a bug in React. Please file an issue."
|
|
5028
|
-
);
|
|
5029
|
-
var thenable = suspendedThenable;
|
|
5030
|
-
suspendedThenable = null;
|
|
5031
|
-
needsToResetSuspendedThenableDEV = !1;
|
|
5032
|
-
return thenable;
|
|
5033
|
-
}
|
|
5034
|
-
function checkIfUseWrappedInAsyncCatch(rejectedReason) {
|
|
5035
|
-
if (
|
|
5036
|
-
rejectedReason === SuspenseException ||
|
|
5037
|
-
rejectedReason === SuspenseActionException
|
|
5038
|
-
)
|
|
5039
|
-
throw Error(
|
|
5040
|
-
"Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server."
|
|
5041
|
-
);
|
|
5042
|
-
}
|
|
5043
|
-
function pushHiddenContext(fiber, context) {
|
|
5044
|
-
var prevEntangledRenderLanes = entangledRenderLanes;
|
|
5045
|
-
push(prevEntangledRenderLanesCursor, prevEntangledRenderLanes, fiber);
|
|
5046
|
-
push(currentTreeHiddenStackCursor, context, fiber);
|
|
5047
|
-
entangledRenderLanes = prevEntangledRenderLanes | context.baseLanes;
|
|
5048
|
-
}
|
|
5049
|
-
function reuseHiddenContextOnStack(fiber) {
|
|
5050
|
-
push(prevEntangledRenderLanesCursor, entangledRenderLanes, fiber);
|
|
5051
|
-
push(
|
|
5052
|
-
currentTreeHiddenStackCursor,
|
|
5053
|
-
currentTreeHiddenStackCursor.current,
|
|
5054
|
-
fiber
|
|
5055
|
-
);
|
|
5056
|
-
}
|
|
5057
|
-
function popHiddenContext(fiber) {
|
|
5058
|
-
entangledRenderLanes = prevEntangledRenderLanesCursor.current;
|
|
5059
|
-
pop(currentTreeHiddenStackCursor, fiber);
|
|
5060
|
-
pop(prevEntangledRenderLanesCursor, fiber);
|
|
5061
|
-
}
|
|
5062
|
-
function peekCacheFromPool() {
|
|
5063
|
-
var cacheResumedFromPreviousRender = resumedCache.current;
|
|
5064
|
-
return null !== cacheResumedFromPreviousRender
|
|
5065
|
-
? cacheResumedFromPreviousRender
|
|
5066
|
-
: workInProgressRoot.pooledCache;
|
|
4816
|
+
function peekCacheFromPool() {
|
|
4817
|
+
var cacheResumedFromPreviousRender = resumedCache.current;
|
|
4818
|
+
return null !== cacheResumedFromPreviousRender
|
|
4819
|
+
? cacheResumedFromPreviousRender
|
|
4820
|
+
: workInProgressRoot.pooledCache;
|
|
5067
4821
|
}
|
|
5068
4822
|
function pushTransition(offscreenWorkInProgress, prevCachePool) {
|
|
5069
4823
|
null === prevCachePool
|
|
@@ -9094,32 +8848,32 @@
|
|
|
9094
8848
|
return current;
|
|
9095
8849
|
}
|
|
9096
8850
|
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
|
9097
|
-
var
|
|
9098
|
-
var
|
|
8851
|
+
var JSCompiler_object_inline_digest_2395;
|
|
8852
|
+
var JSCompiler_object_inline_stack_2396 = workInProgress.pendingProps;
|
|
9099
8853
|
shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
|
|
9100
|
-
var
|
|
8854
|
+
var JSCompiler_object_inline_componentStack_2397 = !1;
|
|
9101
8855
|
var didSuspend = 0 !== (workInProgress.flags & 128);
|
|
9102
|
-
(
|
|
9103
|
-
(
|
|
8856
|
+
(JSCompiler_object_inline_digest_2395 = didSuspend) ||
|
|
8857
|
+
(JSCompiler_object_inline_digest_2395 =
|
|
9104
8858
|
null !== current && null === current.memoizedState
|
|
9105
8859
|
? !1
|
|
9106
8860
|
: 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
|
|
9107
|
-
|
|
9108
|
-
((
|
|
8861
|
+
JSCompiler_object_inline_digest_2395 &&
|
|
8862
|
+
((JSCompiler_object_inline_componentStack_2397 = !0),
|
|
9109
8863
|
(workInProgress.flags &= -129));
|
|
9110
|
-
|
|
8864
|
+
JSCompiler_object_inline_digest_2395 = 0 !== (workInProgress.flags & 32);
|
|
9111
8865
|
workInProgress.flags &= -33;
|
|
9112
8866
|
if (null === current) {
|
|
9113
8867
|
if (isHydrating) {
|
|
9114
|
-
|
|
8868
|
+
JSCompiler_object_inline_componentStack_2397
|
|
9115
8869
|
? pushPrimaryTreeSuspenseHandler(workInProgress)
|
|
9116
8870
|
: reuseSuspenseHandlerOnStack(workInProgress);
|
|
9117
8871
|
if (isHydrating) {
|
|
9118
|
-
var
|
|
8872
|
+
var JSCompiler_object_inline_message_2394 = nextHydratableInstance;
|
|
9119
8873
|
var JSCompiler_temp;
|
|
9120
|
-
if (!(JSCompiler_temp = !
|
|
8874
|
+
if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2394)) {
|
|
9121
8875
|
c: {
|
|
9122
|
-
var instance =
|
|
8876
|
+
var instance = JSCompiler_object_inline_message_2394;
|
|
9123
8877
|
for (
|
|
9124
8878
|
JSCompiler_temp = rootOrSingletonContext;
|
|
9125
8879
|
8 !== instance.nodeType;
|
|
@@ -9161,77 +8915,77 @@
|
|
|
9161
8915
|
JSCompiler_temp &&
|
|
9162
8916
|
(warnNonHydratedInstance(
|
|
9163
8917
|
workInProgress,
|
|
9164
|
-
|
|
8918
|
+
JSCompiler_object_inline_message_2394
|
|
9165
8919
|
),
|
|
9166
8920
|
throwOnHydrationMismatch(workInProgress));
|
|
9167
8921
|
}
|
|
9168
|
-
|
|
8922
|
+
JSCompiler_object_inline_message_2394 = workInProgress.memoizedState;
|
|
9169
8923
|
if (
|
|
9170
|
-
null !==
|
|
9171
|
-
((
|
|
9172
|
-
|
|
9173
|
-
null !==
|
|
8924
|
+
null !== JSCompiler_object_inline_message_2394 &&
|
|
8925
|
+
((JSCompiler_object_inline_message_2394 =
|
|
8926
|
+
JSCompiler_object_inline_message_2394.dehydrated),
|
|
8927
|
+
null !== JSCompiler_object_inline_message_2394)
|
|
9174
8928
|
)
|
|
9175
8929
|
return (
|
|
9176
|
-
isSuspenseInstanceFallback(
|
|
8930
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2394)
|
|
9177
8931
|
? (workInProgress.lanes = 32)
|
|
9178
8932
|
: (workInProgress.lanes = 536870912),
|
|
9179
8933
|
null
|
|
9180
8934
|
);
|
|
9181
8935
|
popSuspenseHandler(workInProgress);
|
|
9182
8936
|
}
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
if (
|
|
8937
|
+
JSCompiler_object_inline_message_2394 =
|
|
8938
|
+
JSCompiler_object_inline_stack_2396.children;
|
|
8939
|
+
JSCompiler_object_inline_stack_2396 =
|
|
8940
|
+
JSCompiler_object_inline_stack_2396.fallback;
|
|
8941
|
+
if (JSCompiler_object_inline_componentStack_2397)
|
|
9188
8942
|
return (
|
|
9189
8943
|
reuseSuspenseHandlerOnStack(workInProgress),
|
|
9190
|
-
(
|
|
8944
|
+
(JSCompiler_object_inline_componentStack_2397 =
|
|
9191
8945
|
workInProgress.mode),
|
|
9192
|
-
(
|
|
8946
|
+
(JSCompiler_object_inline_message_2394 =
|
|
9193
8947
|
mountWorkInProgressOffscreenFiber(
|
|
9194
8948
|
{
|
|
9195
8949
|
mode: "hidden",
|
|
9196
|
-
children:
|
|
8950
|
+
children: JSCompiler_object_inline_message_2394
|
|
9197
8951
|
},
|
|
9198
|
-
|
|
8952
|
+
JSCompiler_object_inline_componentStack_2397
|
|
9199
8953
|
)),
|
|
9200
|
-
(
|
|
9201
|
-
|
|
9202
|
-
|
|
8954
|
+
(JSCompiler_object_inline_stack_2396 = createFiberFromFragment(
|
|
8955
|
+
JSCompiler_object_inline_stack_2396,
|
|
8956
|
+
JSCompiler_object_inline_componentStack_2397,
|
|
9203
8957
|
renderLanes,
|
|
9204
8958
|
null
|
|
9205
8959
|
)),
|
|
9206
|
-
(
|
|
9207
|
-
(
|
|
9208
|
-
(
|
|
9209
|
-
|
|
9210
|
-
(workInProgress.child =
|
|
9211
|
-
(
|
|
8960
|
+
(JSCompiler_object_inline_message_2394.return = workInProgress),
|
|
8961
|
+
(JSCompiler_object_inline_stack_2396.return = workInProgress),
|
|
8962
|
+
(JSCompiler_object_inline_message_2394.sibling =
|
|
8963
|
+
JSCompiler_object_inline_stack_2396),
|
|
8964
|
+
(workInProgress.child = JSCompiler_object_inline_message_2394),
|
|
8965
|
+
(JSCompiler_object_inline_componentStack_2397 =
|
|
9212
8966
|
workInProgress.child),
|
|
9213
|
-
(
|
|
8967
|
+
(JSCompiler_object_inline_componentStack_2397.memoizedState =
|
|
9214
8968
|
mountSuspenseOffscreenState(renderLanes)),
|
|
9215
|
-
(
|
|
8969
|
+
(JSCompiler_object_inline_componentStack_2397.childLanes =
|
|
9216
8970
|
getRemainingWorkInPrimaryTree(
|
|
9217
8971
|
current,
|
|
9218
|
-
|
|
8972
|
+
JSCompiler_object_inline_digest_2395,
|
|
9219
8973
|
renderLanes
|
|
9220
8974
|
)),
|
|
9221
8975
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
9222
|
-
|
|
8976
|
+
JSCompiler_object_inline_stack_2396
|
|
9223
8977
|
);
|
|
9224
8978
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
|
9225
8979
|
return mountSuspensePrimaryChildren(
|
|
9226
8980
|
workInProgress,
|
|
9227
|
-
|
|
8981
|
+
JSCompiler_object_inline_message_2394
|
|
9228
8982
|
);
|
|
9229
8983
|
}
|
|
9230
8984
|
var prevState = current.memoizedState;
|
|
9231
8985
|
if (
|
|
9232
8986
|
null !== prevState &&
|
|
9233
|
-
((
|
|
9234
|
-
null !==
|
|
8987
|
+
((JSCompiler_object_inline_message_2394 = prevState.dehydrated),
|
|
8988
|
+
null !== JSCompiler_object_inline_message_2394)
|
|
9235
8989
|
) {
|
|
9236
8990
|
if (didSuspend)
|
|
9237
8991
|
workInProgress.flags & 256
|
|
@@ -9248,94 +9002,94 @@
|
|
|
9248
9002
|
(workInProgress.flags |= 128),
|
|
9249
9003
|
(workInProgress = null))
|
|
9250
9004
|
: (reuseSuspenseHandlerOnStack(workInProgress),
|
|
9251
|
-
(
|
|
9252
|
-
|
|
9253
|
-
(
|
|
9254
|
-
(
|
|
9005
|
+
(JSCompiler_object_inline_componentStack_2397 =
|
|
9006
|
+
JSCompiler_object_inline_stack_2396.fallback),
|
|
9007
|
+
(JSCompiler_object_inline_message_2394 = workInProgress.mode),
|
|
9008
|
+
(JSCompiler_object_inline_stack_2396 =
|
|
9255
9009
|
mountWorkInProgressOffscreenFiber(
|
|
9256
9010
|
{
|
|
9257
9011
|
mode: "visible",
|
|
9258
|
-
children:
|
|
9012
|
+
children: JSCompiler_object_inline_stack_2396.children
|
|
9259
9013
|
},
|
|
9260
|
-
|
|
9014
|
+
JSCompiler_object_inline_message_2394
|
|
9261
9015
|
)),
|
|
9262
|
-
(
|
|
9016
|
+
(JSCompiler_object_inline_componentStack_2397 =
|
|
9263
9017
|
createFiberFromFragment(
|
|
9264
|
-
|
|
9265
|
-
|
|
9018
|
+
JSCompiler_object_inline_componentStack_2397,
|
|
9019
|
+
JSCompiler_object_inline_message_2394,
|
|
9266
9020
|
renderLanes,
|
|
9267
9021
|
null
|
|
9268
9022
|
)),
|
|
9269
|
-
(
|
|
9270
|
-
(
|
|
9271
|
-
(
|
|
9023
|
+
(JSCompiler_object_inline_componentStack_2397.flags |= 2),
|
|
9024
|
+
(JSCompiler_object_inline_stack_2396.return = workInProgress),
|
|
9025
|
+
(JSCompiler_object_inline_componentStack_2397.return =
|
|
9272
9026
|
workInProgress),
|
|
9273
|
-
(
|
|
9274
|
-
|
|
9275
|
-
(workInProgress.child =
|
|
9027
|
+
(JSCompiler_object_inline_stack_2396.sibling =
|
|
9028
|
+
JSCompiler_object_inline_componentStack_2397),
|
|
9029
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2396),
|
|
9276
9030
|
reconcileChildFibers(
|
|
9277
9031
|
workInProgress,
|
|
9278
9032
|
current.child,
|
|
9279
9033
|
null,
|
|
9280
9034
|
renderLanes
|
|
9281
9035
|
),
|
|
9282
|
-
(
|
|
9283
|
-
(
|
|
9036
|
+
(JSCompiler_object_inline_stack_2396 = workInProgress.child),
|
|
9037
|
+
(JSCompiler_object_inline_stack_2396.memoizedState =
|
|
9284
9038
|
mountSuspenseOffscreenState(renderLanes)),
|
|
9285
|
-
(
|
|
9039
|
+
(JSCompiler_object_inline_stack_2396.childLanes =
|
|
9286
9040
|
getRemainingWorkInPrimaryTree(
|
|
9287
9041
|
current,
|
|
9288
|
-
|
|
9042
|
+
JSCompiler_object_inline_digest_2395,
|
|
9289
9043
|
renderLanes
|
|
9290
9044
|
)),
|
|
9291
9045
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
9292
9046
|
(workInProgress =
|
|
9293
|
-
|
|
9047
|
+
JSCompiler_object_inline_componentStack_2397));
|
|
9294
9048
|
else if (
|
|
9295
9049
|
(pushPrimaryTreeSuspenseHandler(workInProgress),
|
|
9296
9050
|
isHydrating &&
|
|
9297
9051
|
console.error(
|
|
9298
9052
|
"We should not be hydrating here. This is a bug in React. Please file a bug."
|
|
9299
9053
|
),
|
|
9300
|
-
isSuspenseInstanceFallback(
|
|
9054
|
+
isSuspenseInstanceFallback(JSCompiler_object_inline_message_2394))
|
|
9301
9055
|
) {
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
if (
|
|
9306
|
-
JSCompiler_temp =
|
|
9307
|
-
var message =
|
|
9308
|
-
instance =
|
|
9309
|
-
var componentStack =
|
|
9056
|
+
JSCompiler_object_inline_digest_2395 =
|
|
9057
|
+
JSCompiler_object_inline_message_2394.nextSibling &&
|
|
9058
|
+
JSCompiler_object_inline_message_2394.nextSibling.dataset;
|
|
9059
|
+
if (JSCompiler_object_inline_digest_2395) {
|
|
9060
|
+
JSCompiler_temp = JSCompiler_object_inline_digest_2395.dgst;
|
|
9061
|
+
var message = JSCompiler_object_inline_digest_2395.msg;
|
|
9062
|
+
instance = JSCompiler_object_inline_digest_2395.stck;
|
|
9063
|
+
var componentStack = JSCompiler_object_inline_digest_2395.cstck;
|
|
9310
9064
|
}
|
|
9311
|
-
|
|
9312
|
-
|
|
9313
|
-
|
|
9314
|
-
JSCompiler_temp =
|
|
9065
|
+
JSCompiler_object_inline_message_2394 = message;
|
|
9066
|
+
JSCompiler_object_inline_digest_2395 = JSCompiler_temp;
|
|
9067
|
+
JSCompiler_object_inline_stack_2396 = instance;
|
|
9068
|
+
JSCompiler_temp = JSCompiler_object_inline_componentStack_2397 =
|
|
9315
9069
|
componentStack;
|
|
9316
|
-
|
|
9317
|
-
|
|
9318
|
-
? Error(
|
|
9070
|
+
JSCompiler_object_inline_componentStack_2397 =
|
|
9071
|
+
JSCompiler_object_inline_message_2394
|
|
9072
|
+
? Error(JSCompiler_object_inline_message_2394)
|
|
9319
9073
|
: Error(
|
|
9320
9074
|
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
|
9321
9075
|
);
|
|
9322
|
-
|
|
9323
|
-
|
|
9324
|
-
|
|
9325
|
-
|
|
9326
|
-
|
|
9076
|
+
JSCompiler_object_inline_componentStack_2397.stack =
|
|
9077
|
+
JSCompiler_object_inline_stack_2396 || "";
|
|
9078
|
+
JSCompiler_object_inline_componentStack_2397.digest =
|
|
9079
|
+
JSCompiler_object_inline_digest_2395;
|
|
9080
|
+
JSCompiler_object_inline_digest_2395 =
|
|
9327
9081
|
void 0 === JSCompiler_temp ? null : JSCompiler_temp;
|
|
9328
|
-
|
|
9329
|
-
value:
|
|
9082
|
+
JSCompiler_object_inline_stack_2396 = {
|
|
9083
|
+
value: JSCompiler_object_inline_componentStack_2397,
|
|
9330
9084
|
source: null,
|
|
9331
|
-
stack:
|
|
9085
|
+
stack: JSCompiler_object_inline_digest_2395
|
|
9332
9086
|
};
|
|
9333
|
-
"string" === typeof
|
|
9087
|
+
"string" === typeof JSCompiler_object_inline_digest_2395 &&
|
|
9334
9088
|
CapturedStacks.set(
|
|
9335
|
-
|
|
9336
|
-
|
|
9089
|
+
JSCompiler_object_inline_componentStack_2397,
|
|
9090
|
+
JSCompiler_object_inline_stack_2396
|
|
9337
9091
|
);
|
|
9338
|
-
queueHydrationError(
|
|
9092
|
+
queueHydrationError(JSCompiler_object_inline_stack_2396);
|
|
9339
9093
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
|
9340
9094
|
current,
|
|
9341
9095
|
workInProgress,
|
|
@@ -9349,44 +9103,44 @@
|
|
|
9349
9103
|
renderLanes,
|
|
9350
9104
|
!1
|
|
9351
9105
|
),
|
|
9352
|
-
(
|
|
9106
|
+
(JSCompiler_object_inline_digest_2395 =
|
|
9353
9107
|
0 !== (renderLanes & current.childLanes)),
|
|
9354
|
-
didReceiveUpdate ||
|
|
9108
|
+
didReceiveUpdate || JSCompiler_object_inline_digest_2395)
|
|
9355
9109
|
) {
|
|
9356
|
-
|
|
9110
|
+
JSCompiler_object_inline_digest_2395 = workInProgressRoot;
|
|
9357
9111
|
if (
|
|
9358
|
-
null !==
|
|
9359
|
-
((
|
|
9360
|
-
(
|
|
9361
|
-
0 !== (
|
|
9112
|
+
null !== JSCompiler_object_inline_digest_2395 &&
|
|
9113
|
+
((JSCompiler_object_inline_stack_2396 = renderLanes & -renderLanes),
|
|
9114
|
+
(JSCompiler_object_inline_stack_2396 =
|
|
9115
|
+
0 !== (JSCompiler_object_inline_stack_2396 & 42)
|
|
9362
9116
|
? 1
|
|
9363
9117
|
: getBumpedLaneForHydrationByLane(
|
|
9364
|
-
|
|
9118
|
+
JSCompiler_object_inline_stack_2396
|
|
9365
9119
|
)),
|
|
9366
|
-
(
|
|
9120
|
+
(JSCompiler_object_inline_stack_2396 =
|
|
9367
9121
|
0 !==
|
|
9368
|
-
(
|
|
9369
|
-
(
|
|
9122
|
+
(JSCompiler_object_inline_stack_2396 &
|
|
9123
|
+
(JSCompiler_object_inline_digest_2395.suspendedLanes |
|
|
9370
9124
|
renderLanes))
|
|
9371
9125
|
? 0
|
|
9372
|
-
:
|
|
9373
|
-
0 !==
|
|
9374
|
-
|
|
9126
|
+
: JSCompiler_object_inline_stack_2396),
|
|
9127
|
+
0 !== JSCompiler_object_inline_stack_2396 &&
|
|
9128
|
+
JSCompiler_object_inline_stack_2396 !== prevState.retryLane)
|
|
9375
9129
|
)
|
|
9376
9130
|
throw (
|
|
9377
|
-
((prevState.retryLane =
|
|
9131
|
+
((prevState.retryLane = JSCompiler_object_inline_stack_2396),
|
|
9378
9132
|
enqueueConcurrentRenderForLane(
|
|
9379
9133
|
current,
|
|
9380
|
-
|
|
9134
|
+
JSCompiler_object_inline_stack_2396
|
|
9381
9135
|
),
|
|
9382
9136
|
scheduleUpdateOnFiber(
|
|
9383
|
-
|
|
9137
|
+
JSCompiler_object_inline_digest_2395,
|
|
9384
9138
|
current,
|
|
9385
|
-
|
|
9139
|
+
JSCompiler_object_inline_stack_2396
|
|
9386
9140
|
),
|
|
9387
9141
|
SelectiveHydrationException)
|
|
9388
9142
|
);
|
|
9389
|
-
|
|
9143
|
+
JSCompiler_object_inline_message_2394.data ===
|
|
9390
9144
|
SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
|
|
9391
9145
|
workInProgress = retrySuspenseComponentWithoutHydrating(
|
|
9392
9146
|
current,
|
|
@@ -9394,14 +9148,14 @@
|
|
|
9394
9148
|
renderLanes
|
|
9395
9149
|
);
|
|
9396
9150
|
} else
|
|
9397
|
-
|
|
9151
|
+
JSCompiler_object_inline_message_2394.data ===
|
|
9398
9152
|
SUSPENSE_PENDING_START_DATA
|
|
9399
9153
|
? ((workInProgress.flags |= 192),
|
|
9400
9154
|
(workInProgress.child = current.child),
|
|
9401
9155
|
(workInProgress = null))
|
|
9402
9156
|
: ((current = prevState.treeContext),
|
|
9403
9157
|
(nextHydratableInstance = getNextHydratable(
|
|
9404
|
-
|
|
9158
|
+
JSCompiler_object_inline_message_2394.nextSibling
|
|
9405
9159
|
)),
|
|
9406
9160
|
(hydrationParentFiber = workInProgress),
|
|
9407
9161
|
(isHydrating = !0),
|
|
@@ -9419,57 +9173,57 @@
|
|
|
9419
9173
|
(treeContextProvider = workInProgress)),
|
|
9420
9174
|
(workInProgress = mountSuspensePrimaryChildren(
|
|
9421
9175
|
workInProgress,
|
|
9422
|
-
|
|
9176
|
+
JSCompiler_object_inline_stack_2396.children
|
|
9423
9177
|
)),
|
|
9424
9178
|
(workInProgress.flags |= 4096));
|
|
9425
9179
|
return workInProgress;
|
|
9426
9180
|
}
|
|
9427
|
-
if (
|
|
9181
|
+
if (JSCompiler_object_inline_componentStack_2397)
|
|
9428
9182
|
return (
|
|
9429
9183
|
reuseSuspenseHandlerOnStack(workInProgress),
|
|
9430
|
-
(
|
|
9431
|
-
|
|
9432
|
-
(
|
|
9184
|
+
(JSCompiler_object_inline_componentStack_2397 =
|
|
9185
|
+
JSCompiler_object_inline_stack_2396.fallback),
|
|
9186
|
+
(JSCompiler_object_inline_message_2394 = workInProgress.mode),
|
|
9433
9187
|
(JSCompiler_temp = current.child),
|
|
9434
9188
|
(instance = JSCompiler_temp.sibling),
|
|
9435
|
-
(
|
|
9189
|
+
(JSCompiler_object_inline_stack_2396 = createWorkInProgress(
|
|
9436
9190
|
JSCompiler_temp,
|
|
9437
9191
|
{
|
|
9438
9192
|
mode: "hidden",
|
|
9439
|
-
children:
|
|
9193
|
+
children: JSCompiler_object_inline_stack_2396.children
|
|
9440
9194
|
}
|
|
9441
9195
|
)),
|
|
9442
|
-
(
|
|
9196
|
+
(JSCompiler_object_inline_stack_2396.subtreeFlags =
|
|
9443
9197
|
JSCompiler_temp.subtreeFlags & 65011712),
|
|
9444
9198
|
null !== instance
|
|
9445
|
-
? (
|
|
9199
|
+
? (JSCompiler_object_inline_componentStack_2397 =
|
|
9446
9200
|
createWorkInProgress(
|
|
9447
9201
|
instance,
|
|
9448
|
-
|
|
9202
|
+
JSCompiler_object_inline_componentStack_2397
|
|
9449
9203
|
))
|
|
9450
|
-
: ((
|
|
9204
|
+
: ((JSCompiler_object_inline_componentStack_2397 =
|
|
9451
9205
|
createFiberFromFragment(
|
|
9452
|
-
|
|
9453
|
-
|
|
9206
|
+
JSCompiler_object_inline_componentStack_2397,
|
|
9207
|
+
JSCompiler_object_inline_message_2394,
|
|
9454
9208
|
renderLanes,
|
|
9455
9209
|
null
|
|
9456
9210
|
)),
|
|
9457
|
-
(
|
|
9458
|
-
(
|
|
9211
|
+
(JSCompiler_object_inline_componentStack_2397.flags |= 2)),
|
|
9212
|
+
(JSCompiler_object_inline_componentStack_2397.return =
|
|
9459
9213
|
workInProgress),
|
|
9460
|
-
(
|
|
9461
|
-
(
|
|
9462
|
-
|
|
9463
|
-
(workInProgress.child =
|
|
9464
|
-
(
|
|
9465
|
-
|
|
9466
|
-
(
|
|
9467
|
-
(
|
|
9468
|
-
null ===
|
|
9469
|
-
? (
|
|
9214
|
+
(JSCompiler_object_inline_stack_2396.return = workInProgress),
|
|
9215
|
+
(JSCompiler_object_inline_stack_2396.sibling =
|
|
9216
|
+
JSCompiler_object_inline_componentStack_2397),
|
|
9217
|
+
(workInProgress.child = JSCompiler_object_inline_stack_2396),
|
|
9218
|
+
(JSCompiler_object_inline_stack_2396 =
|
|
9219
|
+
JSCompiler_object_inline_componentStack_2397),
|
|
9220
|
+
(JSCompiler_object_inline_componentStack_2397 = workInProgress.child),
|
|
9221
|
+
(JSCompiler_object_inline_message_2394 = current.child.memoizedState),
|
|
9222
|
+
null === JSCompiler_object_inline_message_2394
|
|
9223
|
+
? (JSCompiler_object_inline_message_2394 =
|
|
9470
9224
|
mountSuspenseOffscreenState(renderLanes))
|
|
9471
9225
|
: ((JSCompiler_temp =
|
|
9472
|
-
|
|
9226
|
+
JSCompiler_object_inline_message_2394.cachePool),
|
|
9473
9227
|
null !== JSCompiler_temp
|
|
9474
9228
|
? ((instance = CacheContext._currentValue),
|
|
9475
9229
|
(JSCompiler_temp =
|
|
@@ -9477,37 +9231,37 @@
|
|
|
9477
9231
|
? { parent: instance, pool: instance }
|
|
9478
9232
|
: JSCompiler_temp))
|
|
9479
9233
|
: (JSCompiler_temp = getSuspendedCache()),
|
|
9480
|
-
(
|
|
9234
|
+
(JSCompiler_object_inline_message_2394 = {
|
|
9481
9235
|
baseLanes:
|
|
9482
|
-
|
|
9236
|
+
JSCompiler_object_inline_message_2394.baseLanes | renderLanes,
|
|
9483
9237
|
cachePool: JSCompiler_temp
|
|
9484
9238
|
})),
|
|
9485
|
-
(
|
|
9486
|
-
|
|
9487
|
-
(
|
|
9239
|
+
(JSCompiler_object_inline_componentStack_2397.memoizedState =
|
|
9240
|
+
JSCompiler_object_inline_message_2394),
|
|
9241
|
+
(JSCompiler_object_inline_componentStack_2397.childLanes =
|
|
9488
9242
|
getRemainingWorkInPrimaryTree(
|
|
9489
9243
|
current,
|
|
9490
|
-
|
|
9244
|
+
JSCompiler_object_inline_digest_2395,
|
|
9491
9245
|
renderLanes
|
|
9492
9246
|
)),
|
|
9493
9247
|
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
|
9494
|
-
|
|
9248
|
+
JSCompiler_object_inline_stack_2396
|
|
9495
9249
|
);
|
|
9496
9250
|
pushPrimaryTreeSuspenseHandler(workInProgress);
|
|
9497
9251
|
renderLanes = current.child;
|
|
9498
9252
|
current = renderLanes.sibling;
|
|
9499
9253
|
renderLanes = createWorkInProgress(renderLanes, {
|
|
9500
9254
|
mode: "visible",
|
|
9501
|
-
children:
|
|
9255
|
+
children: JSCompiler_object_inline_stack_2396.children
|
|
9502
9256
|
});
|
|
9503
9257
|
renderLanes.return = workInProgress;
|
|
9504
9258
|
renderLanes.sibling = null;
|
|
9505
9259
|
null !== current &&
|
|
9506
|
-
((
|
|
9507
|
-
null ===
|
|
9260
|
+
((JSCompiler_object_inline_digest_2395 = workInProgress.deletions),
|
|
9261
|
+
null === JSCompiler_object_inline_digest_2395
|
|
9508
9262
|
? ((workInProgress.deletions = [current]),
|
|
9509
9263
|
(workInProgress.flags |= 16))
|
|
9510
|
-
:
|
|
9264
|
+
: JSCompiler_object_inline_digest_2395.push(current));
|
|
9511
9265
|
workInProgress.child = renderLanes;
|
|
9512
9266
|
workInProgress.memoizedState = null;
|
|
9513
9267
|
return renderLanes;
|
|
@@ -10870,15 +10624,24 @@
|
|
|
10870
10624
|
function commitAttachRef(finishedWork) {
|
|
10871
10625
|
var ref = finishedWork.ref;
|
|
10872
10626
|
if (null !== ref) {
|
|
10873
|
-
|
|
10627
|
+
switch (finishedWork.tag) {
|
|
10628
|
+
case 26:
|
|
10629
|
+
case 27:
|
|
10630
|
+
case 5:
|
|
10631
|
+
var instanceToUse = finishedWork.stateNode;
|
|
10632
|
+
break;
|
|
10633
|
+
default:
|
|
10634
|
+
instanceToUse = finishedWork.stateNode;
|
|
10635
|
+
}
|
|
10874
10636
|
if ("function" === typeof ref)
|
|
10875
10637
|
if (shouldProfile(finishedWork))
|
|
10876
10638
|
try {
|
|
10877
|
-
startEffectTimer(),
|
|
10639
|
+
startEffectTimer(),
|
|
10640
|
+
(finishedWork.refCleanup = ref(instanceToUse));
|
|
10878
10641
|
} finally {
|
|
10879
10642
|
recordEffectDuration();
|
|
10880
10643
|
}
|
|
10881
|
-
else finishedWork.refCleanup = ref(
|
|
10644
|
+
else finishedWork.refCleanup = ref(instanceToUse);
|
|
10882
10645
|
else
|
|
10883
10646
|
"string" === typeof ref
|
|
10884
10647
|
? console.error("String refs are no longer supported.")
|
|
@@ -10887,7 +10650,7 @@
|
|
|
10887
10650
|
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
|
10888
10651
|
getComponentNameFromFiber(finishedWork)
|
|
10889
10652
|
),
|
|
10890
|
-
(ref.current =
|
|
10653
|
+
(ref.current = instanceToUse);
|
|
10891
10654
|
}
|
|
10892
10655
|
}
|
|
10893
10656
|
function safelyAttachRef(current, nearestMountedAncestor) {
|
|
@@ -13177,144 +12940,390 @@
|
|
|
13177
12940
|
case REACT_OFFSCREEN_TYPE:
|
|
13178
12941
|
return createFiberFromOffscreen(pendingProps, mode, lanes, key);
|
|
13179
12942
|
default:
|
|
13180
|
-
if ("object" === typeof type && null !== type)
|
|
13181
|
-
switch (type.$$typeof) {
|
|
13182
|
-
case REACT_PROVIDER_TYPE:
|
|
13183
|
-
case REACT_CONTEXT_TYPE:
|
|
13184
|
-
fiberTag = 10;
|
|
13185
|
-
break a;
|
|
13186
|
-
case REACT_CONSUMER_TYPE:
|
|
13187
|
-
fiberTag = 9;
|
|
13188
|
-
break a;
|
|
13189
|
-
case REACT_FORWARD_REF_TYPE:
|
|
13190
|
-
fiberTag = 11;
|
|
13191
|
-
resolvedType = resolveForwardRefForHotReloading(resolvedType);
|
|
13192
|
-
break a;
|
|
13193
|
-
case REACT_MEMO_TYPE:
|
|
13194
|
-
fiberTag = 14;
|
|
13195
|
-
break a;
|
|
13196
|
-
case REACT_LAZY_TYPE:
|
|
13197
|
-
fiberTag = 16;
|
|
13198
|
-
resolvedType = null;
|
|
13199
|
-
break a;
|
|
13200
|
-
}
|
|
13201
|
-
resolvedType = "";
|
|
13202
|
-
if (
|
|
13203
|
-
void 0 === type ||
|
|
13204
|
-
("object" === typeof type &&
|
|
13205
|
-
null !== type &&
|
|
13206
|
-
0 === Object.keys(type).length)
|
|
13207
|
-
)
|
|
13208
|
-
resolvedType +=
|
|
13209
|
-
" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
13210
|
-
null === type
|
|
13211
|
-
? (pendingProps = "null")
|
|
13212
|
-
: isArrayImpl(type)
|
|
13213
|
-
? (pendingProps = "array")
|
|
13214
|
-
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
|
|
13215
|
-
? ((pendingProps =
|
|
13216
|
-
"<" +
|
|
13217
|
-
(getComponentNameFromType(type.type) || "Unknown") +
|
|
13218
|
-
" />"),
|
|
13219
|
-
(resolvedType =
|
|
13220
|
-
" Did you accidentally export a JSX literal instead of a component?"))
|
|
13221
|
-
: (pendingProps = typeof type);
|
|
13222
|
-
(fiberTag = owner ? getComponentNameFromOwner(owner) : null) &&
|
|
13223
|
-
(resolvedType +=
|
|
13224
|
-
"\n\nCheck the render method of `" + fiberTag + "`.");
|
|
13225
|
-
fiberTag = 29;
|
|
13226
|
-
pendingProps = Error(
|
|
13227
|
-
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
|
|
13228
|
-
(pendingProps + "." + resolvedType)
|
|
13229
|
-
);
|
|
13230
|
-
resolvedType = null;
|
|
12943
|
+
if ("object" === typeof type && null !== type)
|
|
12944
|
+
switch (type.$$typeof) {
|
|
12945
|
+
case REACT_PROVIDER_TYPE:
|
|
12946
|
+
case REACT_CONTEXT_TYPE:
|
|
12947
|
+
fiberTag = 10;
|
|
12948
|
+
break a;
|
|
12949
|
+
case REACT_CONSUMER_TYPE:
|
|
12950
|
+
fiberTag = 9;
|
|
12951
|
+
break a;
|
|
12952
|
+
case REACT_FORWARD_REF_TYPE:
|
|
12953
|
+
fiberTag = 11;
|
|
12954
|
+
resolvedType = resolveForwardRefForHotReloading(resolvedType);
|
|
12955
|
+
break a;
|
|
12956
|
+
case REACT_MEMO_TYPE:
|
|
12957
|
+
fiberTag = 14;
|
|
12958
|
+
break a;
|
|
12959
|
+
case REACT_LAZY_TYPE:
|
|
12960
|
+
fiberTag = 16;
|
|
12961
|
+
resolvedType = null;
|
|
12962
|
+
break a;
|
|
12963
|
+
}
|
|
12964
|
+
resolvedType = "";
|
|
12965
|
+
if (
|
|
12966
|
+
void 0 === type ||
|
|
12967
|
+
("object" === typeof type &&
|
|
12968
|
+
null !== type &&
|
|
12969
|
+
0 === Object.keys(type).length)
|
|
12970
|
+
)
|
|
12971
|
+
resolvedType +=
|
|
12972
|
+
" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
12973
|
+
null === type
|
|
12974
|
+
? (pendingProps = "null")
|
|
12975
|
+
: isArrayImpl(type)
|
|
12976
|
+
? (pendingProps = "array")
|
|
12977
|
+
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
|
|
12978
|
+
? ((pendingProps =
|
|
12979
|
+
"<" +
|
|
12980
|
+
(getComponentNameFromType(type.type) || "Unknown") +
|
|
12981
|
+
" />"),
|
|
12982
|
+
(resolvedType =
|
|
12983
|
+
" Did you accidentally export a JSX literal instead of a component?"))
|
|
12984
|
+
: (pendingProps = typeof type);
|
|
12985
|
+
(fiberTag = owner ? getComponentNameFromOwner(owner) : null) &&
|
|
12986
|
+
(resolvedType +=
|
|
12987
|
+
"\n\nCheck the render method of `" + fiberTag + "`.");
|
|
12988
|
+
fiberTag = 29;
|
|
12989
|
+
pendingProps = Error(
|
|
12990
|
+
"Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: " +
|
|
12991
|
+
(pendingProps + "." + resolvedType)
|
|
12992
|
+
);
|
|
12993
|
+
resolvedType = null;
|
|
12994
|
+
}
|
|
12995
|
+
key = createFiber(fiberTag, pendingProps, key, mode);
|
|
12996
|
+
key.elementType = type;
|
|
12997
|
+
key.type = resolvedType;
|
|
12998
|
+
key.lanes = lanes;
|
|
12999
|
+
key._debugOwner = owner;
|
|
13000
|
+
return key;
|
|
13001
|
+
}
|
|
13002
|
+
function createFiberFromElement(element, mode, lanes) {
|
|
13003
|
+
mode = createFiberFromTypeAndProps(
|
|
13004
|
+
element.type,
|
|
13005
|
+
element.key,
|
|
13006
|
+
element.props,
|
|
13007
|
+
element._owner,
|
|
13008
|
+
mode,
|
|
13009
|
+
lanes
|
|
13010
|
+
);
|
|
13011
|
+
mode._debugOwner = element._owner;
|
|
13012
|
+
return mode;
|
|
13013
|
+
}
|
|
13014
|
+
function createFiberFromFragment(elements, mode, lanes, key) {
|
|
13015
|
+
elements = createFiber(7, elements, key, mode);
|
|
13016
|
+
elements.lanes = lanes;
|
|
13017
|
+
return elements;
|
|
13018
|
+
}
|
|
13019
|
+
function createFiberFromOffscreen(pendingProps, mode, lanes, key) {
|
|
13020
|
+
pendingProps = createFiber(22, pendingProps, key, mode);
|
|
13021
|
+
pendingProps.elementType = REACT_OFFSCREEN_TYPE;
|
|
13022
|
+
pendingProps.lanes = lanes;
|
|
13023
|
+
var primaryChildInstance = {
|
|
13024
|
+
_visibility: OffscreenVisible,
|
|
13025
|
+
_pendingVisibility: OffscreenVisible,
|
|
13026
|
+
_pendingMarkers: null,
|
|
13027
|
+
_retryCache: null,
|
|
13028
|
+
_transitions: null,
|
|
13029
|
+
_current: null,
|
|
13030
|
+
detach: function () {
|
|
13031
|
+
var instance = primaryChildInstance,
|
|
13032
|
+
fiber = instance._current;
|
|
13033
|
+
if (null === fiber)
|
|
13034
|
+
throw Error(
|
|
13035
|
+
"Calling Offscreen.detach before instance handle has been set."
|
|
13036
|
+
);
|
|
13037
|
+
if (0 === (instance._pendingVisibility & OffscreenDetached)) {
|
|
13038
|
+
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
|
13039
|
+
null !== root &&
|
|
13040
|
+
((instance._pendingVisibility |= OffscreenDetached),
|
|
13041
|
+
scheduleUpdateOnFiber(root, fiber, 2));
|
|
13042
|
+
}
|
|
13043
|
+
},
|
|
13044
|
+
attach: function () {
|
|
13045
|
+
var instance = primaryChildInstance,
|
|
13046
|
+
fiber = instance._current;
|
|
13047
|
+
if (null === fiber)
|
|
13048
|
+
throw Error(
|
|
13049
|
+
"Calling Offscreen.detach before instance handle has been set."
|
|
13050
|
+
);
|
|
13051
|
+
if (0 !== (instance._pendingVisibility & OffscreenDetached)) {
|
|
13052
|
+
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
|
13053
|
+
null !== root &&
|
|
13054
|
+
((instance._pendingVisibility &= ~OffscreenDetached),
|
|
13055
|
+
scheduleUpdateOnFiber(root, fiber, 2));
|
|
13056
|
+
}
|
|
13057
|
+
}
|
|
13058
|
+
};
|
|
13059
|
+
pendingProps.stateNode = primaryChildInstance;
|
|
13060
|
+
return pendingProps;
|
|
13061
|
+
}
|
|
13062
|
+
function createFiberFromText(content, mode, lanes) {
|
|
13063
|
+
content = createFiber(6, content, null, mode);
|
|
13064
|
+
content.lanes = lanes;
|
|
13065
|
+
return content;
|
|
13066
|
+
}
|
|
13067
|
+
function createFiberFromPortal(portal, mode, lanes) {
|
|
13068
|
+
mode = createFiber(
|
|
13069
|
+
4,
|
|
13070
|
+
null !== portal.children ? portal.children : [],
|
|
13071
|
+
portal.key,
|
|
13072
|
+
mode
|
|
13073
|
+
);
|
|
13074
|
+
mode.lanes = lanes;
|
|
13075
|
+
mode.stateNode = {
|
|
13076
|
+
containerInfo: portal.containerInfo,
|
|
13077
|
+
pendingChildren: null,
|
|
13078
|
+
implementation: portal.implementation
|
|
13079
|
+
};
|
|
13080
|
+
return mode;
|
|
13081
|
+
}
|
|
13082
|
+
function buildHydrationDiffNode(fiber, distanceFromLeaf) {
|
|
13083
|
+
if (null === fiber.return) {
|
|
13084
|
+
if (null === hydrationDiffRootDEV)
|
|
13085
|
+
hydrationDiffRootDEV = {
|
|
13086
|
+
fiber: fiber,
|
|
13087
|
+
children: [],
|
|
13088
|
+
serverProps: void 0,
|
|
13089
|
+
serverTail: [],
|
|
13090
|
+
distanceFromLeaf: distanceFromLeaf
|
|
13091
|
+
};
|
|
13092
|
+
else {
|
|
13093
|
+
if (hydrationDiffRootDEV.fiber !== fiber)
|
|
13094
|
+
throw Error(
|
|
13095
|
+
"Saw multiple hydration diff roots in a pass. This is a bug in React."
|
|
13096
|
+
);
|
|
13097
|
+
hydrationDiffRootDEV.distanceFromLeaf > distanceFromLeaf &&
|
|
13098
|
+
(hydrationDiffRootDEV.distanceFromLeaf = distanceFromLeaf);
|
|
13099
|
+
}
|
|
13100
|
+
return hydrationDiffRootDEV;
|
|
13101
|
+
}
|
|
13102
|
+
var siblings = buildHydrationDiffNode(
|
|
13103
|
+
fiber.return,
|
|
13104
|
+
distanceFromLeaf + 1
|
|
13105
|
+
).children;
|
|
13106
|
+
if (0 < siblings.length && siblings[siblings.length - 1].fiber === fiber)
|
|
13107
|
+
return (
|
|
13108
|
+
(siblings = siblings[siblings.length - 1]),
|
|
13109
|
+
siblings.distanceFromLeaf > distanceFromLeaf &&
|
|
13110
|
+
(siblings.distanceFromLeaf = distanceFromLeaf),
|
|
13111
|
+
siblings
|
|
13112
|
+
);
|
|
13113
|
+
distanceFromLeaf = {
|
|
13114
|
+
fiber: fiber,
|
|
13115
|
+
children: [],
|
|
13116
|
+
serverProps: void 0,
|
|
13117
|
+
serverTail: [],
|
|
13118
|
+
distanceFromLeaf: distanceFromLeaf
|
|
13119
|
+
};
|
|
13120
|
+
siblings.push(distanceFromLeaf);
|
|
13121
|
+
return distanceFromLeaf;
|
|
13122
|
+
}
|
|
13123
|
+
function warnNonHydratedInstance(fiber, rejectedCandidate) {
|
|
13124
|
+
didSuspendOrErrorDEV ||
|
|
13125
|
+
((fiber = buildHydrationDiffNode(fiber, 0)),
|
|
13126
|
+
(fiber.serverProps = null),
|
|
13127
|
+
null !== rejectedCandidate &&
|
|
13128
|
+
((rejectedCandidate =
|
|
13129
|
+
describeHydratableInstanceForDevWarnings(rejectedCandidate)),
|
|
13130
|
+
fiber.serverTail.push(rejectedCandidate)));
|
|
13131
|
+
}
|
|
13132
|
+
function throwOnHydrationMismatch(fiber) {
|
|
13133
|
+
var diff = "",
|
|
13134
|
+
diffRoot = hydrationDiffRootDEV;
|
|
13135
|
+
null !== diffRoot &&
|
|
13136
|
+
((hydrationDiffRootDEV = null), (diff = describeDiff(diffRoot)));
|
|
13137
|
+
queueHydrationError(
|
|
13138
|
+
createCapturedValueAtFiber(
|
|
13139
|
+
Error(
|
|
13140
|
+
"Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\nhttps://react.dev/link/hydration-mismatch" +
|
|
13141
|
+
diff
|
|
13142
|
+
),
|
|
13143
|
+
fiber
|
|
13144
|
+
)
|
|
13145
|
+
);
|
|
13146
|
+
throw HydrationMismatchException;
|
|
13147
|
+
}
|
|
13148
|
+
function prepareToHydrateHostInstance(fiber) {
|
|
13149
|
+
var didHydrate = fiber.stateNode;
|
|
13150
|
+
var type = fiber.type,
|
|
13151
|
+
props = fiber.memoizedProps;
|
|
13152
|
+
didHydrate[internalInstanceKey] = fiber;
|
|
13153
|
+
didHydrate[internalPropsKey] = props;
|
|
13154
|
+
validatePropertiesInDevelopment(type, props);
|
|
13155
|
+
switch (type) {
|
|
13156
|
+
case "dialog":
|
|
13157
|
+
listenToNonDelegatedEvent("cancel", didHydrate);
|
|
13158
|
+
listenToNonDelegatedEvent("close", didHydrate);
|
|
13159
|
+
break;
|
|
13160
|
+
case "iframe":
|
|
13161
|
+
case "object":
|
|
13162
|
+
case "embed":
|
|
13163
|
+
listenToNonDelegatedEvent("load", didHydrate);
|
|
13164
|
+
break;
|
|
13165
|
+
case "video":
|
|
13166
|
+
case "audio":
|
|
13167
|
+
for (type = 0; type < mediaEventTypes.length; type++)
|
|
13168
|
+
listenToNonDelegatedEvent(mediaEventTypes[type], didHydrate);
|
|
13169
|
+
break;
|
|
13170
|
+
case "source":
|
|
13171
|
+
listenToNonDelegatedEvent("error", didHydrate);
|
|
13172
|
+
break;
|
|
13173
|
+
case "img":
|
|
13174
|
+
case "image":
|
|
13175
|
+
case "link":
|
|
13176
|
+
listenToNonDelegatedEvent("error", didHydrate);
|
|
13177
|
+
listenToNonDelegatedEvent("load", didHydrate);
|
|
13178
|
+
break;
|
|
13179
|
+
case "details":
|
|
13180
|
+
listenToNonDelegatedEvent("toggle", didHydrate);
|
|
13181
|
+
break;
|
|
13182
|
+
case "input":
|
|
13183
|
+
checkControlledValueProps("input", props);
|
|
13184
|
+
listenToNonDelegatedEvent("invalid", didHydrate);
|
|
13185
|
+
validateInputProps(didHydrate, props);
|
|
13186
|
+
initInput(
|
|
13187
|
+
didHydrate,
|
|
13188
|
+
props.value,
|
|
13189
|
+
props.defaultValue,
|
|
13190
|
+
props.checked,
|
|
13191
|
+
props.defaultChecked,
|
|
13192
|
+
props.type,
|
|
13193
|
+
props.name,
|
|
13194
|
+
!0
|
|
13195
|
+
);
|
|
13196
|
+
track(didHydrate);
|
|
13197
|
+
break;
|
|
13198
|
+
case "option":
|
|
13199
|
+
validateOptionProps(didHydrate, props);
|
|
13200
|
+
break;
|
|
13201
|
+
case "select":
|
|
13202
|
+
checkControlledValueProps("select", props);
|
|
13203
|
+
listenToNonDelegatedEvent("invalid", didHydrate);
|
|
13204
|
+
validateSelectProps(didHydrate, props);
|
|
13205
|
+
break;
|
|
13206
|
+
case "textarea":
|
|
13207
|
+
checkControlledValueProps("textarea", props),
|
|
13208
|
+
listenToNonDelegatedEvent("invalid", didHydrate),
|
|
13209
|
+
validateTextareaProps(didHydrate, props),
|
|
13210
|
+
initTextarea(
|
|
13211
|
+
didHydrate,
|
|
13212
|
+
props.value,
|
|
13213
|
+
props.defaultValue,
|
|
13214
|
+
props.children
|
|
13215
|
+
),
|
|
13216
|
+
track(didHydrate);
|
|
13217
|
+
}
|
|
13218
|
+
type = props.children;
|
|
13219
|
+
("string" !== typeof type &&
|
|
13220
|
+
"number" !== typeof type &&
|
|
13221
|
+
"bigint" !== typeof type) ||
|
|
13222
|
+
didHydrate.textContent === "" + type ||
|
|
13223
|
+
!0 === props.suppressHydrationWarning ||
|
|
13224
|
+
checkForUnmatchedText(didHydrate.textContent, type)
|
|
13225
|
+
? (null != props.popover &&
|
|
13226
|
+
(listenToNonDelegatedEvent("beforetoggle", didHydrate),
|
|
13227
|
+
listenToNonDelegatedEvent("toggle", didHydrate)),
|
|
13228
|
+
null != props.onScroll &&
|
|
13229
|
+
listenToNonDelegatedEvent("scroll", didHydrate),
|
|
13230
|
+
null != props.onScrollEnd &&
|
|
13231
|
+
listenToNonDelegatedEvent("scrollend", didHydrate),
|
|
13232
|
+
null != props.onClick && (didHydrate.onclick = noop$1),
|
|
13233
|
+
(didHydrate = !0))
|
|
13234
|
+
: (didHydrate = !1);
|
|
13235
|
+
didHydrate || throwOnHydrationMismatch(fiber);
|
|
13236
|
+
}
|
|
13237
|
+
function popToNextHostParent(fiber) {
|
|
13238
|
+
for (hydrationParentFiber = fiber.return; hydrationParentFiber; )
|
|
13239
|
+
switch (hydrationParentFiber.tag) {
|
|
13240
|
+
case 3:
|
|
13241
|
+
case 27:
|
|
13242
|
+
rootOrSingletonContext = !0;
|
|
13243
|
+
return;
|
|
13244
|
+
case 5:
|
|
13245
|
+
case 13:
|
|
13246
|
+
rootOrSingletonContext = !1;
|
|
13247
|
+
return;
|
|
13248
|
+
default:
|
|
13249
|
+
hydrationParentFiber = hydrationParentFiber.return;
|
|
13231
13250
|
}
|
|
13232
|
-
key = createFiber(fiberTag, pendingProps, key, mode);
|
|
13233
|
-
key.elementType = type;
|
|
13234
|
-
key.type = resolvedType;
|
|
13235
|
-
key.lanes = lanes;
|
|
13236
|
-
key._debugOwner = owner;
|
|
13237
|
-
return key;
|
|
13238
13251
|
}
|
|
13239
|
-
function
|
|
13240
|
-
|
|
13241
|
-
|
|
13242
|
-
|
|
13243
|
-
|
|
13244
|
-
|
|
13245
|
-
|
|
13246
|
-
|
|
13247
|
-
|
|
13248
|
-
|
|
13249
|
-
|
|
13252
|
+
function popHydrationState(fiber) {
|
|
13253
|
+
if (fiber !== hydrationParentFiber) return !1;
|
|
13254
|
+
if (!isHydrating)
|
|
13255
|
+
return popToNextHostParent(fiber), (isHydrating = !0), !1;
|
|
13256
|
+
var shouldClear = !1,
|
|
13257
|
+
JSCompiler_temp;
|
|
13258
|
+
if ((JSCompiler_temp = 3 !== fiber.tag && 27 !== fiber.tag)) {
|
|
13259
|
+
if ((JSCompiler_temp = 5 === fiber.tag))
|
|
13260
|
+
(JSCompiler_temp = fiber.type),
|
|
13261
|
+
(JSCompiler_temp =
|
|
13262
|
+
!("form" !== JSCompiler_temp && "button" !== JSCompiler_temp) ||
|
|
13263
|
+
shouldSetTextContent(fiber.type, fiber.memoizedProps));
|
|
13264
|
+
JSCompiler_temp = !JSCompiler_temp;
|
|
13265
|
+
}
|
|
13266
|
+
JSCompiler_temp && (shouldClear = !0);
|
|
13267
|
+
if (shouldClear && nextHydratableInstance) {
|
|
13268
|
+
for (shouldClear = nextHydratableInstance; shouldClear; ) {
|
|
13269
|
+
JSCompiler_temp = buildHydrationDiffNode(fiber, 0);
|
|
13270
|
+
var description =
|
|
13271
|
+
describeHydratableInstanceForDevWarnings(shouldClear);
|
|
13272
|
+
JSCompiler_temp.serverTail.push(description);
|
|
13273
|
+
shouldClear =
|
|
13274
|
+
"Suspense" === description.type
|
|
13275
|
+
? getNextHydratableInstanceAfterSuspenseInstance(shouldClear)
|
|
13276
|
+
: getNextHydratable(shouldClear.nextSibling);
|
|
13277
|
+
}
|
|
13278
|
+
throwOnHydrationMismatch(fiber);
|
|
13279
|
+
}
|
|
13280
|
+
popToNextHostParent(fiber);
|
|
13281
|
+
if (13 === fiber.tag) {
|
|
13282
|
+
fiber = fiber.memoizedState;
|
|
13283
|
+
fiber = null !== fiber ? fiber.dehydrated : null;
|
|
13284
|
+
if (!fiber)
|
|
13285
|
+
throw Error(
|
|
13286
|
+
"Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue."
|
|
13287
|
+
);
|
|
13288
|
+
nextHydratableInstance =
|
|
13289
|
+
getNextHydratableInstanceAfterSuspenseInstance(fiber);
|
|
13290
|
+
} else
|
|
13291
|
+
nextHydratableInstance = hydrationParentFiber
|
|
13292
|
+
? getNextHydratable(fiber.stateNode.nextSibling)
|
|
13293
|
+
: null;
|
|
13294
|
+
return !0;
|
|
13250
13295
|
}
|
|
13251
|
-
function
|
|
13252
|
-
|
|
13253
|
-
|
|
13254
|
-
return elements;
|
|
13296
|
+
function resetHydrationState() {
|
|
13297
|
+
nextHydratableInstance = hydrationParentFiber = null;
|
|
13298
|
+
didSuspendOrErrorDEV = isHydrating = !1;
|
|
13255
13299
|
}
|
|
13256
|
-
function
|
|
13257
|
-
|
|
13258
|
-
|
|
13259
|
-
|
|
13260
|
-
|
|
13261
|
-
|
|
13262
|
-
|
|
13263
|
-
|
|
13264
|
-
|
|
13265
|
-
|
|
13266
|
-
|
|
13267
|
-
detach: function () {
|
|
13268
|
-
var instance = primaryChildInstance,
|
|
13269
|
-
fiber = instance._current;
|
|
13270
|
-
if (null === fiber)
|
|
13271
|
-
throw Error(
|
|
13272
|
-
"Calling Offscreen.detach before instance handle has been set."
|
|
13273
|
-
);
|
|
13274
|
-
if (0 === (instance._pendingVisibility & OffscreenDetached)) {
|
|
13275
|
-
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
|
13276
|
-
null !== root &&
|
|
13277
|
-
((instance._pendingVisibility |= OffscreenDetached),
|
|
13278
|
-
scheduleUpdateOnFiber(root, fiber, 2));
|
|
13279
|
-
}
|
|
13280
|
-
},
|
|
13281
|
-
attach: function () {
|
|
13282
|
-
var instance = primaryChildInstance,
|
|
13283
|
-
fiber = instance._current;
|
|
13284
|
-
if (null === fiber)
|
|
13285
|
-
throw Error(
|
|
13286
|
-
"Calling Offscreen.detach before instance handle has been set."
|
|
13287
|
-
);
|
|
13288
|
-
if (0 !== (instance._pendingVisibility & OffscreenDetached)) {
|
|
13289
|
-
var root = enqueueConcurrentRenderForLane(fiber, 2);
|
|
13290
|
-
null !== root &&
|
|
13291
|
-
((instance._pendingVisibility &= ~OffscreenDetached),
|
|
13292
|
-
scheduleUpdateOnFiber(root, fiber, 2));
|
|
13293
|
-
}
|
|
13294
|
-
}
|
|
13295
|
-
};
|
|
13296
|
-
pendingProps.stateNode = primaryChildInstance;
|
|
13297
|
-
return pendingProps;
|
|
13300
|
+
function upgradeHydrationErrorsToRecoverable() {
|
|
13301
|
+
var queuedErrors = hydrationErrors;
|
|
13302
|
+
null !== queuedErrors &&
|
|
13303
|
+
(null === workInProgressRootRecoverableErrors
|
|
13304
|
+
? (workInProgressRootRecoverableErrors = queuedErrors)
|
|
13305
|
+
: workInProgressRootRecoverableErrors.push.apply(
|
|
13306
|
+
workInProgressRootRecoverableErrors,
|
|
13307
|
+
queuedErrors
|
|
13308
|
+
),
|
|
13309
|
+
(hydrationErrors = null));
|
|
13310
|
+
return queuedErrors;
|
|
13298
13311
|
}
|
|
13299
|
-
function
|
|
13300
|
-
|
|
13301
|
-
|
|
13302
|
-
|
|
13312
|
+
function queueHydrationError(error) {
|
|
13313
|
+
null === hydrationErrors
|
|
13314
|
+
? (hydrationErrors = [error])
|
|
13315
|
+
: hydrationErrors.push(error);
|
|
13303
13316
|
}
|
|
13304
|
-
function
|
|
13305
|
-
|
|
13306
|
-
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13311
|
-
|
|
13312
|
-
|
|
13313
|
-
|
|
13314
|
-
pendingChildren: null,
|
|
13315
|
-
implementation: portal.implementation
|
|
13316
|
-
};
|
|
13317
|
-
return mode;
|
|
13317
|
+
function emitPendingHydrationWarnings() {
|
|
13318
|
+
var diffRoot = hydrationDiffRootDEV;
|
|
13319
|
+
null !== diffRoot &&
|
|
13320
|
+
((hydrationDiffRootDEV = null),
|
|
13321
|
+
(diffRoot = describeDiff(diffRoot)),
|
|
13322
|
+
console.error(
|
|
13323
|
+
"A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:\n\n- A server/client branch `if (typeof window !== 'undefined')`.\n- Variable input such as `Date.now()` or `Math.random()` which changes each time it's called.\n- Date formatting in a user's locale which doesn't match the server.\n- External changing data without sending a snapshot of it along with the HTML.\n- Invalid HTML tag nesting.\n\nIt can also happen if the client has a browser extension installed which messes with the HTML before React loaded.\n\n%s%s",
|
|
13324
|
+
"https://react.dev/link/hydration-mismatch",
|
|
13325
|
+
diffRoot
|
|
13326
|
+
));
|
|
13318
13327
|
}
|
|
13319
13328
|
function markUpdate(workInProgress) {
|
|
13320
13329
|
workInProgress.flags |= 4;
|
|
@@ -22263,6 +22272,7 @@
|
|
|
22263
22272
|
"abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll scrollEnd toggle touchMove waiting wheel".split(
|
|
22264
22273
|
" "
|
|
22265
22274
|
),
|
|
22275
|
+
CapturedStacks = new WeakMap(),
|
|
22266
22276
|
OffscreenVisible = 1,
|
|
22267
22277
|
OffscreenDetached = 2,
|
|
22268
22278
|
OffscreenPassiveEffectsConnected = 4,
|
|
@@ -22339,26 +22349,6 @@
|
|
|
22339
22349
|
_currentRenderer: null,
|
|
22340
22350
|
_currentRenderer2: null
|
|
22341
22351
|
},
|
|
22342
|
-
CapturedStacks = new WeakMap(),
|
|
22343
|
-
forkStack = [],
|
|
22344
|
-
forkStackIndex = 0,
|
|
22345
|
-
treeForkProvider = null,
|
|
22346
|
-
treeForkCount = 0,
|
|
22347
|
-
idStack = [],
|
|
22348
|
-
idStackIndex = 0,
|
|
22349
|
-
treeContextProvider = null,
|
|
22350
|
-
treeContextId = 1,
|
|
22351
|
-
treeContextOverflow = "",
|
|
22352
|
-
hydrationParentFiber = null,
|
|
22353
|
-
nextHydratableInstance = null,
|
|
22354
|
-
isHydrating = !1,
|
|
22355
|
-
didSuspendOrErrorDEV = !1,
|
|
22356
|
-
hydrationDiffRootDEV = null,
|
|
22357
|
-
hydrationErrors = null,
|
|
22358
|
-
rootOrSingletonContext = !1,
|
|
22359
|
-
HydrationMismatchException = Error(
|
|
22360
|
-
"Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."
|
|
22361
|
-
),
|
|
22362
22352
|
ReactStrictModeWarnings = {
|
|
22363
22353
|
recordUnsafeLifecycleWarnings: function () {},
|
|
22364
22354
|
flushPendingUnsafeLifecycleWarnings: function () {},
|
|
@@ -22613,6 +22603,15 @@
|
|
|
22613
22603
|
injectedProfilingHooks.markForceUpdateScheduled(inst, lane);
|
|
22614
22604
|
}
|
|
22615
22605
|
},
|
|
22606
|
+
forkStack = [],
|
|
22607
|
+
forkStackIndex = 0,
|
|
22608
|
+
treeForkProvider = null,
|
|
22609
|
+
treeForkCount = 0,
|
|
22610
|
+
idStack = [],
|
|
22611
|
+
idStackIndex = 0,
|
|
22612
|
+
treeContextProvider = null,
|
|
22613
|
+
treeContextId = 1,
|
|
22614
|
+
treeContextOverflow = "",
|
|
22616
22615
|
SuspenseException = Error(
|
|
22617
22616
|
"Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
|
|
22618
22617
|
),
|
|
@@ -23932,19 +23931,29 @@
|
|
|
23932
23931
|
} catch (e$7) {
|
|
23933
23932
|
hasBadMapPolyfill = !0;
|
|
23934
23933
|
}
|
|
23935
|
-
var
|
|
23936
|
-
|
|
23937
|
-
|
|
23938
|
-
|
|
23939
|
-
|
|
23940
|
-
|
|
23941
|
-
|
|
23942
|
-
|
|
23943
|
-
|
|
23944
|
-
|
|
23945
|
-
|
|
23946
|
-
|
|
23947
|
-
|
|
23934
|
+
var hydrationParentFiber = null,
|
|
23935
|
+
nextHydratableInstance = null,
|
|
23936
|
+
isHydrating = !1,
|
|
23937
|
+
didSuspendOrErrorDEV = !1,
|
|
23938
|
+
hydrationDiffRootDEV = null,
|
|
23939
|
+
hydrationErrors = null,
|
|
23940
|
+
rootOrSingletonContext = !1,
|
|
23941
|
+
HydrationMismatchException = Error(
|
|
23942
|
+
"Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."
|
|
23943
|
+
),
|
|
23944
|
+
DefaultAsyncDispatcher = {
|
|
23945
|
+
getCacheForType: function (resourceType) {
|
|
23946
|
+
var cache = readContext(CacheContext),
|
|
23947
|
+
cacheForType = cache.data.get(resourceType);
|
|
23948
|
+
void 0 === cacheForType &&
|
|
23949
|
+
((cacheForType = resourceType()),
|
|
23950
|
+
cache.data.set(resourceType, cacheForType));
|
|
23951
|
+
return cacheForType;
|
|
23952
|
+
},
|
|
23953
|
+
getOwner: function () {
|
|
23954
|
+
return current;
|
|
23955
|
+
}
|
|
23956
|
+
};
|
|
23948
23957
|
if ("function" === typeof Symbol && Symbol.for) {
|
|
23949
23958
|
var symbolFor = Symbol.for;
|
|
23950
23959
|
symbolFor("selector.component");
|
|
@@ -24561,11 +24570,11 @@
|
|
|
24561
24570
|
};
|
|
24562
24571
|
(function () {
|
|
24563
24572
|
var isomorphicReactPackageVersion = React.version;
|
|
24564
|
-
if ("19.1.0-canary-
|
|
24573
|
+
if ("19.1.0-canary-540efebc-20250112" !== isomorphicReactPackageVersion)
|
|
24565
24574
|
throw Error(
|
|
24566
24575
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
|
24567
24576
|
(isomorphicReactPackageVersion +
|
|
24568
|
-
"\n - react-dom: 19.1.0-canary-
|
|
24577
|
+
"\n - react-dom: 19.1.0-canary-540efebc-20250112\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
24569
24578
|
);
|
|
24570
24579
|
})();
|
|
24571
24580
|
("function" === typeof Map &&
|
|
@@ -24602,10 +24611,10 @@
|
|
|
24602
24611
|
!(function () {
|
|
24603
24612
|
var internals = {
|
|
24604
24613
|
bundleType: 1,
|
|
24605
|
-
version: "19.1.0-canary-
|
|
24614
|
+
version: "19.1.0-canary-540efebc-20250112",
|
|
24606
24615
|
rendererPackageName: "react-dom",
|
|
24607
24616
|
currentDispatcherRef: ReactSharedInternals,
|
|
24608
|
-
reconcilerVersion: "19.1.0-canary-
|
|
24617
|
+
reconcilerVersion: "19.1.0-canary-540efebc-20250112"
|
|
24609
24618
|
};
|
|
24610
24619
|
internals.overrideHookState = overrideHookState;
|
|
24611
24620
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
|
@@ -24751,7 +24760,7 @@
|
|
|
24751
24760
|
listenToAllSupportedEvents(container);
|
|
24752
24761
|
return new ReactDOMHydrationRoot(initialChildren);
|
|
24753
24762
|
};
|
|
24754
|
-
exports.version = "19.1.0-canary-
|
|
24763
|
+
exports.version = "19.1.0-canary-540efebc-20250112";
|
|
24755
24764
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
24756
24765
|
"function" ===
|
|
24757
24766
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|