From 58fa44d4ba676c6af07e058f24a9fe0eacbd2b6f Mon Sep 17 00:00:00 2001 From: acdlite Date: Wed, 4 Sep 2024 11:04:04 -0700 Subject: [PATCH] Schedule prerender after something suspends (#30800) Adds the concept of a "prerender". These special renders are spawned whenever something suspends (and we're not already prerendering). The purpose is to move speculative rendering work into a separate phase that does not block the UI from updating. For example, during a transition, if something suspends, we should not speculatively prerender siblings that will be replaced by a fallback in the UI until *after* the fallback has been shown to the user. DiffTrain build for [e10e8681824e56c10fdb14e0359d878bcd748937](https://github.com/facebook/react/commit/e10e8681824e56c10fdb14e0359d878bcd748937) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 193 ++-- compiled/facebook-www/ReactART-dev.modern.js | 193 ++-- .../facebook-www/ReactART-prod.classic.js | 442 ++++---- compiled/facebook-www/ReactART-prod.modern.js | 440 ++++---- compiled/facebook-www/ReactDOM-dev.classic.js | 202 ++-- compiled/facebook-www/ReactDOM-dev.modern.js | 202 ++-- .../facebook-www/ReactDOM-prod.classic.js | 850 ++++++++------- compiled/facebook-www/ReactDOM-prod.modern.js | 820 ++++++++------- .../ReactDOM-profiling.classic.js | 971 ++++++++++-------- .../facebook-www/ReactDOM-profiling.modern.js | 941 +++++++++-------- .../ReactDOMServer-dev.classic.js | 2 +- .../facebook-www/ReactDOMServer-dev.modern.js | 2 +- .../ReactDOMServer-prod.classic.js | 2 +- .../ReactDOMServer-prod.modern.js | 2 +- .../ReactDOMTesting-dev.classic.js | 202 ++-- .../ReactDOMTesting-dev.modern.js | 202 ++-- .../ReactDOMTesting-prod.classic.js | 858 +++++++++------- .../ReactDOMTesting-prod.modern.js | 828 ++++++++------- .../ReactReconciler-dev.classic.js | 194 ++-- .../ReactReconciler-dev.modern.js | 194 ++-- .../ReactReconciler-prod.classic.js | 558 +++++----- .../ReactReconciler-prod.modern.js | 556 +++++----- .../ReactTestRenderer-dev.classic.js | 186 ++-- .../ReactTestRenderer-dev.modern.js | 186 ++-- compiled/facebook-www/VERSION_CLASSIC | 2 +- compiled/facebook-www/VERSION_MODERN | 2 +- .../__test_utils__/ReactAllWarnings.js | 1 - 35 files changed, 5247 insertions(+), 4000 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 839d4ae96b21d..0359cb1887c17 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -8b4c54c00f5c047a72a4cecc2689196786c3e5ff +e10e8681824e56c10fdb14e0359d878bcd748937 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 839d4ae96b21d..0359cb1887c17 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -8b4c54c00f5c047a72a4cecc2689196786c3e5ff +e10e8681824e56c10fdb14e0359d878bcd748937 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index d2ab55f7adc5d..1cfa485f85717 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -2001,7 +2001,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; + exports.version = "19.0.0-www-classic-e10e8681-20240904"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index d4cffd1a81da6..2b460d1dc61b2 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1981,7 +1981,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; + exports.version = "19.0.0-www-modern-e10e8681-20240904"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 037eef110e771..3e394f394e30a 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -665,4 +665,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; +exports.version = "19.0.0-www-classic-e10e8681-20240904"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 4b12dcb89d506..3ccc023f9974c 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -665,4 +665,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; +exports.version = "19.0.0-www-modern-e10e8681-20240904"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 87959dd4e5830..85508526efc41 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -669,7 +669,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; +exports.version = "19.0.0-www-classic-e10e8681-20240904"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index 95e0fc34e4420..e7642d3b886e2 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -669,7 +669,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; +exports.version = "19.0.0-www-modern-e10e8681-20240904"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 28ac6f80c2444..cce523226a65f 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -859,28 +859,37 @@ __DEV__ && var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -961,6 +970,7 @@ __DEV__ && root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -12280,7 +12290,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if ( @@ -12338,7 +12349,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); 2 !== lane || @@ -12373,7 +12385,12 @@ __DEV__ && var renderWasConcurrent = shouldTimeSlice; do { if (didTimeout === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { shouldTimeSlice = root.current.alternate; if ( @@ -12405,7 +12422,12 @@ __DEV__ && } if (didTimeout === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = shouldTimeSlice; @@ -12421,7 +12443,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -12456,7 +12479,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -12468,7 +12492,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), didTimeout ); @@ -12481,7 +12506,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -12583,7 +12609,9 @@ __DEV__ && function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), + (root.pingedLanes = 0), + (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -12591,19 +12619,22 @@ __DEV__ && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didSkipSuspendedSiblings[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -12633,13 +12664,18 @@ __DEV__ && if (exitStatus === RootFatalErrored) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (exitStatus === RootDidNotComplete) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -12692,6 +12728,12 @@ __DEV__ && workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressDeferredLane = @@ -12818,7 +12860,8 @@ __DEV__ && markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -13168,43 +13211,27 @@ __DEV__ && workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - if (0 !== (root.mode & 2)) { - stopProfilerTimerIfRunningAndRecordDelta(root, !1); - unitOfWork = root.actualDuration; - for (thrownValue = root.child; null !== thrownValue; ) - (unitOfWork += thrownValue.actualDuration), - (thrownValue = thrownValue.sibling); - root.actualDuration = unitOfWork; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = RootDidNotComplete; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? workInProgressSuspendedReason === SuspendedOnError + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - 0 !== (completedWork.flags & 32768) && - error$jscomp$0( - "Internal React error: Expected this fiber to be complete, but it isn't. It should have been unwound. This is a bug in React." + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings ); + return; + } var current = completedWork.alternate; unitOfWork = completedWork.return; 0 === (completedWork.mode & 2) @@ -13238,6 +13265,38 @@ __DEV__ && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); } + function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + if (0 !== (unitOfWork.mode & 2)) { + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !1); + next = unitOfWork.actualDuration; + for (var child = unitOfWork.child; null !== child; ) + (next += child.actualDuration), (child = child.sibling); + unitOfWork.actualDuration = next; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), + (next.subtreeFlags = 0), + (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + } function commitRoot( root, recoverableErrors, @@ -13628,6 +13687,7 @@ __DEV__ && var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -14437,6 +14497,7 @@ __DEV__ && this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -16558,6 +16619,8 @@ __DEV__ && SuspendedOnHydration = 8, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -16816,11 +16879,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-8b4c54c0-20240904", + version: "19.0.0-www-classic-e10e8681-20240904", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-classic-e10e8681-20240904" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16854,7 +16917,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; + exports.version = "19.0.0-www-classic-e10e8681-20240904"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 4af69b223268c..44cb4cf53c86d 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -842,28 +842,37 @@ __DEV__ && var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -944,6 +953,7 @@ __DEV__ && root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -11804,7 +11814,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if ( @@ -11861,7 +11872,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); } @@ -11889,7 +11901,12 @@ __DEV__ && var renderWasConcurrent = shouldTimeSlice; do { if (didTimeout === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { shouldTimeSlice = root.current.alternate; if ( @@ -11921,7 +11938,12 @@ __DEV__ && } if (didTimeout === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = shouldTimeSlice; @@ -11937,7 +11959,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -11972,7 +11995,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -11984,7 +12008,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), didTimeout ); @@ -11997,7 +12022,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -12099,7 +12125,9 @@ __DEV__ && function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), + (root.pingedLanes = 0), + (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -12107,19 +12135,22 @@ __DEV__ && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didSkipSuspendedSiblings[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -12149,13 +12180,18 @@ __DEV__ && if (exitStatus === RootFatalErrored) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (exitStatus === RootDidNotComplete) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -12208,6 +12244,12 @@ __DEV__ && workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressDeferredLane = @@ -12334,7 +12376,8 @@ __DEV__ && markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -12680,43 +12723,27 @@ __DEV__ && workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - if (0 !== (root.mode & 2)) { - stopProfilerTimerIfRunningAndRecordDelta(root, !1); - unitOfWork = root.actualDuration; - for (thrownValue = root.child; null !== thrownValue; ) - (unitOfWork += thrownValue.actualDuration), - (thrownValue = thrownValue.sibling); - root.actualDuration = unitOfWork; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = RootDidNotComplete; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? workInProgressSuspendedReason === SuspendedOnError + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - 0 !== (completedWork.flags & 32768) && - error$jscomp$0( - "Internal React error: Expected this fiber to be complete, but it isn't. It should have been unwound. This is a bug in React." + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings ); + return; + } var current = completedWork.alternate; unitOfWork = completedWork.return; 0 === (completedWork.mode & 2) @@ -12750,6 +12777,38 @@ __DEV__ && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); } + function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + if (0 !== (unitOfWork.mode & 2)) { + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !1); + next = unitOfWork.actualDuration; + for (var child = unitOfWork.child; null !== child; ) + (next += child.actualDuration), (child = child.sibling); + unitOfWork.actualDuration = next; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), + (next.subtreeFlags = 0), + (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + } function commitRoot( root, recoverableErrors, @@ -13138,6 +13197,7 @@ __DEV__ && var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -13900,6 +13960,7 @@ __DEV__ && this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -15972,6 +16033,8 @@ __DEV__ && SuspendedOnHydration = 8, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -16229,11 +16292,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-8b4c54c0-20240904", + version: "19.0.0-www-modern-e10e8681-20240904", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-modern-e10e8681-20240904" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16267,7 +16330,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; + exports.version = "19.0.0-www-modern-e10e8681-20240904"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index 00227954008c4..554cd9479886a 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -586,28 +586,37 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -680,6 +689,7 @@ function markRootFinished(root, remainingLanes, spawnedLane) { root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -691,18 +701,18 @@ function markRootFinished(root, remainingLanes, spawnedLane) { 0 < noLongerPendingLanes; ) { - var index$6 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$6; - remainingLanes[index$6] = 0; - expirationTimes[index$6] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$6]; + var index$7 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$7; + remainingLanes[index$7] = 0; + expirationTimes[index$7] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$7]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$6] = null, index$6 = 0; - index$6 < hiddenUpdatesForLane.length; - index$6++ + hiddenUpdates[index$7] = null, index$7 = 0; + index$7 < hiddenUpdatesForLane.length; + index$7++ ) { - var update = hiddenUpdatesForLane[index$6]; + var update = hiddenUpdatesForLane[index$7]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -722,21 +732,21 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$7 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$7; - (lane & entangledLanes) | (root[index$7] & entangledLanes) && - (root[index$7] |= entangledLanes); + var index$8 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$8; + (lane & entangledLanes) | (root[index$8] & entangledLanes) && + (root[index$8] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - index$9 = root.transitionLanes[index$9]; - null !== index$9 && - index$9.forEach(function (transition) { + var index$10 = 31 - clz32(lanes), + lane = 1 << index$10; + index$10 = root.transitionLanes[index$10]; + null !== index$10 && + index$10.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -746,10 +756,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$10 = 31 - clz32(lanes), - lane = 1 << index$10; - null !== root.transitionLanes[index$10] && - (root.transitionLanes[index$10] = null); + var index$11 = 31 - clz32(lanes), + lane = 1 << index$11; + null !== root.transitionLanes[index$11] && + (root.transitionLanes[index$11] = null); lanes &= ~lane; } } @@ -1247,12 +1257,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$4 = 31 - clz32(pendingLanes), - lane = 1 << index$4, - expirationTime = expirationTimes[index$4]; + var index$5 = 31 - clz32(pendingLanes), + lane = 1 << index$5, + expirationTime = expirationTimes[index$5]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$4] = computeExpirationTime(lane, currentTime); + expirationTimes[index$5] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -1497,20 +1507,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$15 = workInProgress$jscomp$0.alternate; - null !== current$15 && - ((current$15 = current$15.updateQueue), - (pendingQueue = current$15.lastBaseUpdate), + var current$16 = workInProgress$jscomp$0.alternate; + null !== current$16 && + ((current$16 = current$16.updateQueue), + (pendingQueue = current$16.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$15.firstBaseUpdate = firstPendingUpdate) + ? (current$16.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$15.lastBaseUpdate = lastPendingUpdate))); + (current$16.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$15 = firstPendingUpdate = lastPendingUpdate = null; + current$16 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -1523,8 +1533,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$15 && - (current$15 = current$15.next = + null !== current$16 && + (current$16 = current$16.next = { lane: 0, tag: pendingQueue.tag, @@ -1577,10 +1587,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$15 - ? ((firstPendingUpdate = current$15 = isHiddenUpdate), + null === current$16 + ? ((firstPendingUpdate = current$16 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$15 = current$15.next = isHiddenUpdate), + : (current$16 = current$16.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -1593,10 +1603,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$15 && (lastPendingUpdate = newState); + null === current$16 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$15; + queue.lastBaseUpdate = current$16; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -2468,9 +2478,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$44 = fiber.alternate; - null !== current$44 && - null !== current$44.memoizedState && + var current$45 = fiber.alternate; + null !== current$45 && + null !== current$45.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -2730,16 +2740,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$46 = currentlyRenderingFiber$1.alternate; - null !== current$46 && - ((current$46 = current$46.updateQueue), - null !== current$46 && - ((current$46 = current$46.memoCache), - null != current$46 && + var current$47 = currentlyRenderingFiber$1.alternate; + null !== current$47 && + ((current$47 = current$47.updateQueue), + null !== current$47 && + ((current$47 = current$47.memoCache), + null != current$47 && (memoCache = { data: enableNoCloningMemoCache - ? current$46.data - : current$46.data.map(function (array) { + ? current$47.data + : current$47.data.map(function (array) { return array.slice(); }), index: 0 @@ -2754,11 +2764,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$46 = 0; - current$46 < size; - current$46++ + current$47 = 0; + current$47 < size; + current$47++ ) - updateQueue[current$46] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$47] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -2791,7 +2801,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$47 = !1; + didReadFromEntangledAsyncAction$48 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -2812,11 +2822,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$47 = !0); + (didReadFromEntangledAsyncAction$48 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$47 = !0); + (didReadFromEntangledAsyncAction$48 = !0); continue; } else (updateLane = { @@ -2862,7 +2872,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$47 && + didReadFromEntangledAsyncAction$48 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3049,8 +3059,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$51) { - onActionError(actionQueue, node, error$51); + } catch (error$52) { + onActionError(actionQueue, node, error$52); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -3972,9 +3982,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$53 in Component) - void 0 === newProps[propName$53] && - (newProps[propName$53] = Component[propName$53]); + for (var propName$54 in Component) + void 0 === newProps[propName$54] && + (newProps[propName$54] = Component[propName$54]); } return newProps; } @@ -6492,14 +6502,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$100 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$100 = lastTailNode), + for (var lastTailNode$101 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$101 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$100 + null === lastTailNode$101 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$100.sibling = null); + : (lastTailNode$101.sibling = null); } } function bubbleProperties(completedWork) { @@ -6509,19 +6519,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$101 = completedWork.child; null !== child$101; ) - (newChildLanes |= child$101.lanes | child$101.childLanes), - (subtreeFlags |= child$101.subtreeFlags & 31457280), - (subtreeFlags |= child$101.flags & 31457280), - (child$101.return = completedWork), - (child$101 = child$101.sibling); + for (var child$102 = completedWork.child; null !== child$102; ) + (newChildLanes |= child$102.lanes | child$102.childLanes), + (subtreeFlags |= child$102.subtreeFlags & 31457280), + (subtreeFlags |= child$102.flags & 31457280), + (child$102.return = completedWork), + (child$102 = child$102.sibling); else - for (child$101 = completedWork.child; null !== child$101; ) - (newChildLanes |= child$101.lanes | child$101.childLanes), - (subtreeFlags |= child$101.subtreeFlags), - (subtreeFlags |= child$101.flags), - (child$101.return = completedWork), - (child$101 = child$101.sibling); + for (child$102 = completedWork.child; null !== child$102; ) + (newChildLanes |= child$102.lanes | child$102.childLanes), + (subtreeFlags |= child$102.subtreeFlags), + (subtreeFlags |= child$102.flags), + (child$102.return = completedWork), + (child$102 = child$102.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -6700,11 +6710,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (instance = newProps.alternate.memoizedState.cachePool.pool); - var cache$105 = null; + var cache$106 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$105 = newProps.memoizedState.cachePool.pool); - cache$105 !== instance && (newProps.flags |= 2048); + (cache$106 = newProps.memoizedState.cachePool.pool); + cache$106 !== instance && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -6737,8 +6747,8 @@ function completeWork(current, workInProgress, renderLanes) { instance = workInProgress.memoizedState; if (null === instance) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$105 = instance.rendering; - if (null === cache$105) + cache$106 = instance.rendering; + if (null === cache$106) if (newProps) cutOffTailIfNeeded(instance, !1); else { if ( @@ -6746,11 +6756,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$105 = findFirstSuspended(current); - if (null !== cache$105) { + cache$106 = findFirstSuspended(current); + if (null !== cache$106) { workInProgress.flags |= 128; cutOffTailIfNeeded(instance, !1); - current = cache$105.updateQueue; + current = cache$106.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -6775,7 +6785,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$105)), null !== current)) { + if (((current = findFirstSuspended(cache$106)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -6785,7 +6795,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !0), null === instance.tail && "hidden" === instance.tailMode && - !cache$105.alternate) + !cache$106.alternate) ) return bubbleProperties(workInProgress), null; } else @@ -6797,13 +6807,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !1), (workInProgress.lanes = 4194304)); instance.isBackwards - ? ((cache$105.sibling = workInProgress.child), - (workInProgress.child = cache$105)) + ? ((cache$106.sibling = workInProgress.child), + (workInProgress.child = cache$106)) : ((current = instance.last), null !== current - ? (current.sibling = cache$105) - : (workInProgress.child = cache$105), - (instance.last = cache$105)); + ? (current.sibling = cache$106) + : (workInProgress.child = cache$106), + (instance.last = cache$106)); } if (null !== instance.tail) return ( @@ -7085,8 +7095,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$123) { - captureCommitPhaseError(current, nearestMountedAncestor, error$123); + } catch (error$124) { + captureCommitPhaseError(current, nearestMountedAncestor, error$124); } else ref.current = null; } @@ -7290,11 +7300,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$124) { + } catch (error$125) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$124 + error$125 ); } } @@ -7883,8 +7893,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$132) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$132); + } catch (error$133) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$133); } } break; @@ -7917,8 +7927,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = null !== current ? current.memoizedProps : newProps; try { flags._applyProps(flags, newProps, current); - } catch (error$135) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$135); + } catch (error$136) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$136); } } break; @@ -7954,8 +7964,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$137) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$137); + } catch (error$138) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$138); } flags = finishedWork.updateQueue; null !== flags && @@ -8095,12 +8105,12 @@ function commitReconciliationEffects(finishedWork) { break; case 3: case 4: - var parent$127 = JSCompiler_inline_result.stateNode.containerInfo, - before$128 = getHostSibling(finishedWork); + var parent$128 = JSCompiler_inline_result.stateNode.containerInfo, + before$129 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$128, - parent$127 + before$129, + parent$128 ); break; default: @@ -8558,9 +8568,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$147 = finishedWork.stateNode; + var instance$148 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$147._visibility & 4 + ? instance$148._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8573,7 +8583,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$147._visibility |= 4), + : ((instance$148._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8581,7 +8591,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$147._visibility |= 4), + : ((instance$148._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8594,7 +8604,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$147 + instance$148 ); break; case 24: @@ -8688,12 +8698,12 @@ function accumulateSuspenseyCommitOnFiber(fiber) { break; case 22: if (null === fiber.memoizedState) { - var current$152 = fiber.alternate; - null !== current$152 && null !== current$152.memoizedState - ? ((current$152 = suspenseyCommitFlag), + var current$153 = fiber.alternate; + null !== current$153 && null !== current$153.memoizedState + ? ((current$153 = suspenseyCommitFlag), (suspenseyCommitFlag = 16777216), recursivelyAccumulateSuspenseyCommit(fiber), - (suspenseyCommitFlag = current$152)) + (suspenseyCommitFlag = current$153)) : recursivelyAccumulateSuspenseyCommit(fiber); } break; @@ -8910,6 +8920,8 @@ var DefaultAsyncDispatcher = { workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -9025,7 +9037,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) { @@ -9038,11 +9051,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing) ) { var transitionLanesMap = root.transitionLanes, - index$8 = 31 - clz32(lane), - transitions = transitionLanesMap[index$8]; + index$9 = 31 - clz32(lane), + transitions = transitionLanesMap[index$9]; null === transitions && (transitions = new Set()); transitions.add(transition); - transitionLanesMap[index$8] = transitions; + transitionLanesMap[index$9] = transitions; } } root === workInProgressRoot && @@ -9052,7 +9065,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); 2 !== lane || @@ -9082,7 +9096,13 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (0 !== exitStatus) { var renderWasConcurrent = didTimeout; do { - if (6 === exitStatus) markRootSuspended(root, lanes, 0); + if (6 === exitStatus) + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { didTimeout = root.current.alternate; if ( @@ -9114,7 +9134,12 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } if (1 === exitStatus) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = didTimeout; @@ -9130,7 +9155,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -9153,7 +9179,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -9165,7 +9192,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), exitStatus ); @@ -9278,26 +9306,29 @@ function isRenderConsistentWithExternalStores(finishedWork) { function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings +) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { - var index$5 = 31 - clz32(lanes), - lane = 1 << index$5; - expirationTimes[index$5] = -1; + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$6 = 31 - clz32(lanes), + lane = 1 << index$6; + didSkipSuspendedSiblings[index$6] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -9324,13 +9355,18 @@ function performSyncWorkOnRoot(root, lanes) { if (1 === exitStatus) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (6 === exitStatus) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -9383,6 +9419,10 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes); workInProgressRootDidAttachPingListener = !1; workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -9401,9 +9441,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$3 = 31 - clz32(allEntangledLanes), - lane = 1 << index$3; - lanes |= root[index$3]; + var index$4 = 31 - clz32(allEntangledLanes), + lane = 1 << index$4; + lanes |= root[index$4]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -9476,7 +9516,8 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -9511,8 +9552,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$158) { - handleThrow(root, thrownValue$158); + } catch (thrownValue$159) { + handleThrow(root, thrownValue$159); } while (1); lanes && root.shellSuspendCounter++; @@ -9621,8 +9662,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$160) { - handleThrow(root, thrownValue$160); + } catch (thrownValue$161) { + handleThrow(root, thrownValue$161); } while (1); resetContextDependencies(); @@ -9732,31 +9773,27 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = 6; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? 1 === workInProgressSuspendedReason + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings + ); + return; + } unitOfWork = completedWork.return; var next = completeWork( completedWork.alternate, @@ -9776,6 +9813,29 @@ function completeUnitOfWork(unitOfWork) { } while (null !== completedWork); 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); } +function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), (next.subtreeFlags = 0), (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = 6; + workInProgress = null; +} function commitRoot( root, recoverableErrors, @@ -10020,6 +10080,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -10435,6 +10496,7 @@ function FiberRootNode( this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -10645,27 +10707,27 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component); -var internals$jscomp$inline_1371 = { +var internals$jscomp$inline_1374 = { bundleType: 0, - version: "19.0.0-www-classic-8b4c54c0-20240904", + version: "19.0.0-www-classic-e10e8681-20240904", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: function () { return null; }, - reconcilerVersion: "19.0.0-www-classic-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-classic-e10e8681-20240904" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1372 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1375 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1372.isDisabled && - hook$jscomp$inline_1372.supportsFiber + !hook$jscomp$inline_1375.isDisabled && + hook$jscomp$inline_1375.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1372.inject( - internals$jscomp$inline_1371 + (rendererID = hook$jscomp$inline_1375.inject( + internals$jscomp$inline_1374 )), - (injectedHook = hook$jscomp$inline_1372); + (injectedHook = hook$jscomp$inline_1375); } catch (err) {} } var Path = Mode$1.Path; @@ -10679,4 +10741,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; +exports.version = "19.0.0-www-classic-e10e8681-20240904"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index fe233e62f2f42..9604c044b4e66 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -503,28 +503,37 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -597,6 +606,7 @@ function markRootFinished(root, remainingLanes, spawnedLane) { root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -608,18 +618,18 @@ function markRootFinished(root, remainingLanes, spawnedLane) { 0 < noLongerPendingLanes; ) { - var index$6 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$6; - remainingLanes[index$6] = 0; - expirationTimes[index$6] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$6]; + var index$7 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$7; + remainingLanes[index$7] = 0; + expirationTimes[index$7] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$7]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$6] = null, index$6 = 0; - index$6 < hiddenUpdatesForLane.length; - index$6++ + hiddenUpdates[index$7] = null, index$7 = 0; + index$7 < hiddenUpdatesForLane.length; + index$7++ ) { - var update = hiddenUpdatesForLane[index$6]; + var update = hiddenUpdatesForLane[index$7]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -639,21 +649,21 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$7 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$7; - (lane & entangledLanes) | (root[index$7] & entangledLanes) && - (root[index$7] |= entangledLanes); + var index$8 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$8; + (lane & entangledLanes) | (root[index$8] & entangledLanes) && + (root[index$8] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - index$9 = root.transitionLanes[index$9]; - null !== index$9 && - index$9.forEach(function (transition) { + var index$10 = 31 - clz32(lanes), + lane = 1 << index$10; + index$10 = root.transitionLanes[index$10]; + null !== index$10 && + index$10.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -663,10 +673,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$10 = 31 - clz32(lanes), - lane = 1 << index$10; - null !== root.transitionLanes[index$10] && - (root.transitionLanes[index$10] = null); + var index$11 = 31 - clz32(lanes), + lane = 1 << index$11; + null !== root.transitionLanes[index$11] && + (root.transitionLanes[index$11] = null); lanes &= ~lane; } } @@ -1086,12 +1096,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$4 = 31 - clz32(pendingLanes), - lane = 1 << index$4, - expirationTime = expirationTimes[index$4]; + var index$5 = 31 - clz32(pendingLanes), + lane = 1 << index$5, + expirationTime = expirationTimes[index$5]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$4] = computeExpirationTime(lane, currentTime); + expirationTimes[index$5] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -1336,20 +1346,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$15 = workInProgress$jscomp$0.alternate; - null !== current$15 && - ((current$15 = current$15.updateQueue), - (pendingQueue = current$15.lastBaseUpdate), + var current$16 = workInProgress$jscomp$0.alternate; + null !== current$16 && + ((current$16 = current$16.updateQueue), + (pendingQueue = current$16.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$15.firstBaseUpdate = firstPendingUpdate) + ? (current$16.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$15.lastBaseUpdate = lastPendingUpdate))); + (current$16.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$15 = firstPendingUpdate = lastPendingUpdate = null; + current$16 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -1362,8 +1372,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$15 && - (current$15 = current$15.next = + null !== current$16 && + (current$16 = current$16.next = { lane: 0, tag: pendingQueue.tag, @@ -1416,10 +1426,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$15 - ? ((firstPendingUpdate = current$15 = isHiddenUpdate), + null === current$16 + ? ((firstPendingUpdate = current$16 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$15 = current$15.next = isHiddenUpdate), + : (current$16 = current$16.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -1432,10 +1442,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$15 && (lastPendingUpdate = newState); + null === current$16 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$15; + queue.lastBaseUpdate = current$16; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -2299,9 +2309,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$44 = fiber.alternate; - null !== current$44 && - null !== current$44.memoizedState && + var current$45 = fiber.alternate; + null !== current$45 && + null !== current$45.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -2561,16 +2571,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$46 = currentlyRenderingFiber$1.alternate; - null !== current$46 && - ((current$46 = current$46.updateQueue), - null !== current$46 && - ((current$46 = current$46.memoCache), - null != current$46 && + var current$47 = currentlyRenderingFiber$1.alternate; + null !== current$47 && + ((current$47 = current$47.updateQueue), + null !== current$47 && + ((current$47 = current$47.memoCache), + null != current$47 && (memoCache = { data: enableNoCloningMemoCache - ? current$46.data - : current$46.data.map(function (array) { + ? current$47.data + : current$47.data.map(function (array) { return array.slice(); }), index: 0 @@ -2585,11 +2595,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$46 = 0; - current$46 < size; - current$46++ + current$47 = 0; + current$47 < size; + current$47++ ) - updateQueue[current$46] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$47] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -2622,7 +2632,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$47 = !1; + didReadFromEntangledAsyncAction$48 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -2643,11 +2653,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$47 = !0); + (didReadFromEntangledAsyncAction$48 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$47 = !0); + (didReadFromEntangledAsyncAction$48 = !0); continue; } else (updateLane = { @@ -2693,7 +2703,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$47 && + didReadFromEntangledAsyncAction$48 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -2880,8 +2890,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$51) { - onActionError(actionQueue, node, error$51); + } catch (error$52) { + onActionError(actionQueue, node, error$52); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -3757,9 +3767,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$53 in Component) - void 0 === newProps[propName$53] && - (newProps[propName$53] = Component[propName$53]); + for (var propName$54 in Component) + void 0 === newProps[propName$54] && + (newProps[propName$54] = Component[propName$54]); } return newProps; } @@ -6125,14 +6135,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$92 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$92 = lastTailNode), + for (var lastTailNode$93 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$93 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$92 + null === lastTailNode$93 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$92.sibling = null); + : (lastTailNode$93.sibling = null); } } function bubbleProperties(completedWork) { @@ -6142,19 +6152,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$93 = completedWork.child; null !== child$93; ) - (newChildLanes |= child$93.lanes | child$93.childLanes), - (subtreeFlags |= child$93.subtreeFlags & 31457280), - (subtreeFlags |= child$93.flags & 31457280), - (child$93.return = completedWork), - (child$93 = child$93.sibling); + for (var child$94 = completedWork.child; null !== child$94; ) + (newChildLanes |= child$94.lanes | child$94.childLanes), + (subtreeFlags |= child$94.subtreeFlags & 31457280), + (subtreeFlags |= child$94.flags & 31457280), + (child$94.return = completedWork), + (child$94 = child$94.sibling); else - for (child$93 = completedWork.child; null !== child$93; ) - (newChildLanes |= child$93.lanes | child$93.childLanes), - (subtreeFlags |= child$93.subtreeFlags), - (subtreeFlags |= child$93.flags), - (child$93.return = completedWork), - (child$93 = child$93.sibling); + for (child$94 = completedWork.child; null !== child$94; ) + (newChildLanes |= child$94.lanes | child$94.childLanes), + (subtreeFlags |= child$94.subtreeFlags), + (subtreeFlags |= child$94.flags), + (child$94.return = completedWork), + (child$94 = child$94.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -6325,11 +6335,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (instance = newProps.alternate.memoizedState.cachePool.pool); - var cache$97 = null; + var cache$98 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$97 = newProps.memoizedState.cachePool.pool); - cache$97 !== instance && (newProps.flags |= 2048); + (cache$98 = newProps.memoizedState.cachePool.pool); + cache$98 !== instance && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -6357,8 +6367,8 @@ function completeWork(current, workInProgress, renderLanes) { instance = workInProgress.memoizedState; if (null === instance) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$97 = instance.rendering; - if (null === cache$97) + cache$98 = instance.rendering; + if (null === cache$98) if (newProps) cutOffTailIfNeeded(instance, !1); else { if ( @@ -6366,11 +6376,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$97 = findFirstSuspended(current); - if (null !== cache$97) { + cache$98 = findFirstSuspended(current); + if (null !== cache$98) { workInProgress.flags |= 128; cutOffTailIfNeeded(instance, !1); - current = cache$97.updateQueue; + current = cache$98.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -6395,7 +6405,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$97)), null !== current)) { + if (((current = findFirstSuspended(cache$98)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -6405,7 +6415,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !0), null === instance.tail && "hidden" === instance.tailMode && - !cache$97.alternate) + !cache$98.alternate) ) return bubbleProperties(workInProgress), null; } else @@ -6417,13 +6427,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(instance, !1), (workInProgress.lanes = 4194304)); instance.isBackwards - ? ((cache$97.sibling = workInProgress.child), - (workInProgress.child = cache$97)) + ? ((cache$98.sibling = workInProgress.child), + (workInProgress.child = cache$98)) : ((current = instance.last), null !== current - ? (current.sibling = cache$97) - : (workInProgress.child = cache$97), - (instance.last = cache$97)); + ? (current.sibling = cache$98) + : (workInProgress.child = cache$98), + (instance.last = cache$98)); } if (null !== instance.tail) return ( @@ -6694,8 +6704,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$114) { - captureCommitPhaseError(current, nearestMountedAncestor, error$114); + } catch (error$115) { + captureCommitPhaseError(current, nearestMountedAncestor, error$115); } else ref.current = null; } @@ -6899,11 +6909,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$115) { + } catch (error$116) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$115 + error$116 ); } } @@ -7481,8 +7491,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$123) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$123); + } catch (error$124) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$124); } } break; @@ -7515,8 +7525,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = null !== current ? current.memoizedProps : newProps; try { flags._applyProps(flags, newProps, current); - } catch (error$126) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$126); + } catch (error$127) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$127); } } break; @@ -7552,8 +7562,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$128) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$128); + } catch (error$129) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$129); } flags = finishedWork.updateQueue; null !== flags && @@ -7690,12 +7700,12 @@ function commitReconciliationEffects(finishedWork) { break; case 3: case 4: - var parent$118 = JSCompiler_inline_result.stateNode.containerInfo, - before$119 = getHostSibling(finishedWork); + var parent$119 = JSCompiler_inline_result.stateNode.containerInfo, + before$120 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$119, - parent$118 + before$120, + parent$119 ); break; default: @@ -8142,9 +8152,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$138 = finishedWork.stateNode; + var instance$139 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$138._visibility & 4 + ? instance$139._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8156,7 +8166,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$138._visibility |= 4), + : ((instance$139._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8169,7 +8179,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$138 + instance$139 ); break; case 24: @@ -8263,12 +8273,12 @@ function accumulateSuspenseyCommitOnFiber(fiber) { break; case 22: if (null === fiber.memoizedState) { - var current$143 = fiber.alternate; - null !== current$143 && null !== current$143.memoizedState - ? ((current$143 = suspenseyCommitFlag), + var current$144 = fiber.alternate; + null !== current$144 && null !== current$144.memoizedState + ? ((current$144 = suspenseyCommitFlag), (suspenseyCommitFlag = 16777216), recursivelyAccumulateSuspenseyCommit(fiber), - (suspenseyCommitFlag = current$143)) + (suspenseyCommitFlag = current$144)) : recursivelyAccumulateSuspenseyCommit(fiber); } break; @@ -8485,6 +8495,8 @@ var DefaultAsyncDispatcher = { workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -8598,7 +8610,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) { @@ -8611,11 +8624,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$8 = 31 - clz32(lane), - transitions = transitionLanesMap[index$8]; + index$9 = 31 - clz32(lane), + transitions = transitionLanesMap[index$9]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$8] = transitions; + transitionLanesMap[index$9] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -8624,7 +8637,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); } @@ -8648,7 +8662,13 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (0 !== exitStatus) { var renderWasConcurrent = didTimeout; do { - if (6 === exitStatus) markRootSuspended(root, lanes, 0); + if (6 === exitStatus) + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { didTimeout = root.current.alternate; if ( @@ -8680,7 +8700,12 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } if (1 === exitStatus) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = didTimeout; @@ -8696,7 +8721,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -8719,7 +8745,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -8731,7 +8758,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), exitStatus ); @@ -8844,26 +8872,29 @@ function isRenderConsistentWithExternalStores(finishedWork) { function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings +) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { - var index$5 = 31 - clz32(lanes), - lane = 1 << index$5; - expirationTimes[index$5] = -1; + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$6 = 31 - clz32(lanes), + lane = 1 << index$6; + didSkipSuspendedSiblings[index$6] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -8890,13 +8921,18 @@ function performSyncWorkOnRoot(root, lanes) { if (1 === exitStatus) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (6 === exitStatus) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -8949,6 +8985,10 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes); workInProgressRootDidAttachPingListener = !1; workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -8967,9 +9007,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$3 = 31 - clz32(allEntangledLanes), - lane = 1 << index$3; - lanes |= root[index$3]; + var index$4 = 31 - clz32(allEntangledLanes), + lane = 1 << index$4; + lanes |= root[index$4]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -9042,7 +9082,8 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -9077,8 +9118,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$149) { - handleThrow(root, thrownValue$149); + } catch (thrownValue$150) { + handleThrow(root, thrownValue$150); } while (1); lanes && root.shellSuspendCounter++; @@ -9187,8 +9228,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$151) { - handleThrow(root, thrownValue$151); + } catch (thrownValue$152) { + handleThrow(root, thrownValue$152); } while (1); resetContextDependencies(); @@ -9294,31 +9335,27 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = 6; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? 1 === workInProgressSuspendedReason + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings + ); + return; + } unitOfWork = completedWork.return; var next = completeWork( completedWork.alternate, @@ -9338,6 +9375,29 @@ function completeUnitOfWork(unitOfWork) { } while (null !== completedWork); 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); } +function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), (next.subtreeFlags = 0), (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = 6; + workInProgress = null; +} function commitRoot( root, recoverableErrors, @@ -9580,6 +9640,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -9990,6 +10051,7 @@ function FiberRootNode( this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -10159,27 +10221,27 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component); -var internals$jscomp$inline_1363 = { +var internals$jscomp$inline_1366 = { bundleType: 0, - version: "19.0.0-www-modern-8b4c54c0-20240904", + version: "19.0.0-www-modern-e10e8681-20240904", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: function () { return null; }, - reconcilerVersion: "19.0.0-www-modern-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-modern-e10e8681-20240904" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1364 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1367 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1364.isDisabled && - hook$jscomp$inline_1364.supportsFiber + !hook$jscomp$inline_1367.isDisabled && + hook$jscomp$inline_1367.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1364.inject( - internals$jscomp$inline_1363 + (rendererID = hook$jscomp$inline_1367.inject( + internals$jscomp$inline_1366 )), - (injectedHook = hook$jscomp$inline_1364); + (injectedHook = hook$jscomp$inline_1367); } catch (err) {} } var Path = Mode$1.Path; @@ -10193,4 +10255,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; +exports.version = "19.0.0-www-modern-e10e8681-20240904"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index a223fe2742ef1..4602d4421ee91 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -956,28 +956,37 @@ __DEV__ && var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -1058,6 +1067,7 @@ __DEV__ && root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -15535,7 +15545,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if ( @@ -15593,7 +15604,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); 2 !== lane || @@ -15628,7 +15640,12 @@ __DEV__ && var renderWasConcurrent = shouldTimeSlice; do { if (didTimeout === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { shouldTimeSlice = root.current.alternate; if ( @@ -15660,7 +15677,12 @@ __DEV__ && } if (didTimeout === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = shouldTimeSlice; @@ -15676,7 +15698,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -15711,7 +15734,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -15723,7 +15747,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), didTimeout ); @@ -15736,7 +15761,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -15791,7 +15817,8 @@ __DEV__ && transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -15810,7 +15837,7 @@ __DEV__ && didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -15858,7 +15885,9 @@ __DEV__ && function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), + (root.pingedLanes = 0), + (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -15866,19 +15895,22 @@ __DEV__ && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didSkipSuspendedSiblings[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -15908,13 +15940,18 @@ __DEV__ && if (exitStatus === RootFatalErrored) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (exitStatus === RootDidNotComplete) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -15981,6 +16018,12 @@ __DEV__ && workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressDeferredLane = @@ -16106,7 +16149,8 @@ __DEV__ && markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -16456,43 +16500,27 @@ __DEV__ && workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - if ((root.mode & ProfileMode) !== NoMode) { - stopProfilerTimerIfRunningAndRecordDelta(root, !1); - unitOfWork = root.actualDuration; - for (thrownValue = root.child; null !== thrownValue; ) - (unitOfWork += thrownValue.actualDuration), - (thrownValue = thrownValue.sibling); - root.actualDuration = unitOfWork; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = RootDidNotComplete; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || workInProgressSuspendedReason === SuspendedOnError + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - 0 !== (completedWork.flags & 32768) && - error$jscomp$0( - "Internal React error: Expected this fiber to be complete, but it isn't. It should have been unwound. This is a bug in React." + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings ); + return; + } var current = completedWork.alternate; unitOfWork = completedWork.return; (completedWork.mode & ProfileMode) === NoMode @@ -16526,6 +16554,38 @@ __DEV__ && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); } + function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + if ((unitOfWork.mode & ProfileMode) !== NoMode) { + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !1); + next = unitOfWork.actualDuration; + for (var child = unitOfWork.child; null !== child; ) + (next += child.actualDuration), (child = child.sibling); + unitOfWork.actualDuration = next; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), + (next.subtreeFlags = 0), + (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + } function commitRoot( root, recoverableErrors, @@ -16945,6 +17005,7 @@ __DEV__ && var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -17756,6 +17817,7 @@ __DEV__ && this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -26707,6 +26769,8 @@ __DEV__ && SuspendedOnHydration = 8, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -27557,11 +27621,11 @@ __DEV__ && : flushSyncErrorInBuildsThatSupportLegacyMode; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-8b4c54c0-20240904" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-e10e8681-20240904" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-classic-8b4c54c0-20240904\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-e10e8681-20240904\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27605,11 +27669,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-8b4c54c0-20240904", + version: "19.0.0-www-classic-e10e8681-20240904", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-classic-e10e8681-20240904" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28262,7 +28326,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; + exports.version = "19.0.0-www-classic-e10e8681-20240904"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 9ef0b34548672..d0a5de91061cc 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -940,28 +940,37 @@ __DEV__ && var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -1042,6 +1051,7 @@ __DEV__ && root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -14993,7 +15003,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if ( @@ -15050,7 +15061,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); } @@ -15078,7 +15090,12 @@ __DEV__ && var renderWasConcurrent = shouldTimeSlice; do { if (didTimeout === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { shouldTimeSlice = root.current.alternate; if ( @@ -15110,7 +15127,12 @@ __DEV__ && } if (didTimeout === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = shouldTimeSlice; @@ -15126,7 +15148,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -15161,7 +15184,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -15173,7 +15197,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), didTimeout ); @@ -15186,7 +15211,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -15241,7 +15267,8 @@ __DEV__ && transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -15260,7 +15287,7 @@ __DEV__ && didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -15308,7 +15335,9 @@ __DEV__ && function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), + (root.pingedLanes = 0), + (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -15316,19 +15345,22 @@ __DEV__ && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didSkipSuspendedSiblings[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -15358,13 +15390,18 @@ __DEV__ && if (exitStatus === RootFatalErrored) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (exitStatus === RootDidNotComplete) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -15417,6 +15454,12 @@ __DEV__ && workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressDeferredLane = @@ -15542,7 +15585,8 @@ __DEV__ && markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -15888,43 +15932,27 @@ __DEV__ && workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - if ((root.mode & ProfileMode) !== NoMode) { - stopProfilerTimerIfRunningAndRecordDelta(root, !1); - unitOfWork = root.actualDuration; - for (thrownValue = root.child; null !== thrownValue; ) - (unitOfWork += thrownValue.actualDuration), - (thrownValue = thrownValue.sibling); - root.actualDuration = unitOfWork; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = RootDidNotComplete; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || workInProgressSuspendedReason === SuspendedOnError + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - 0 !== (completedWork.flags & 32768) && - error$jscomp$0( - "Internal React error: Expected this fiber to be complete, but it isn't. It should have been unwound. This is a bug in React." + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings ); + return; + } var current = completedWork.alternate; unitOfWork = completedWork.return; (completedWork.mode & ProfileMode) === NoMode @@ -15958,6 +15986,38 @@ __DEV__ && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); } + function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + if ((unitOfWork.mode & ProfileMode) !== NoMode) { + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !1); + next = unitOfWork.actualDuration; + for (var child = unitOfWork.child; null !== child; ) + (next += child.actualDuration), (child = child.sibling); + unitOfWork.actualDuration = next; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), + (next.subtreeFlags = 0), + (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + } function commitRoot( root, recoverableErrors, @@ -16375,6 +16435,7 @@ __DEV__ && var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -17138,6 +17199,7 @@ __DEV__ && this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -25792,6 +25854,8 @@ __DEV__ && SuspendedOnHydration = 8, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -26642,11 +26706,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-8b4c54c0-20240904" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-e10e8681-20240904" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-modern-8b4c54c0-20240904\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-e10e8681-20240904\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -26689,11 +26753,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-8b4c54c0-20240904", + version: "19.0.0-www-modern-e10e8681-20240904", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-modern-e10e8681-20240904" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27298,7 +27362,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; + exports.version = "19.0.0-www-modern-e10e8681-20240904"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 01876e5a96546..f433a48aeaf16 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -634,28 +634,37 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -728,6 +737,7 @@ function markRootFinished(root, remainingLanes, spawnedLane) { root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -739,18 +749,18 @@ function markRootFinished(root, remainingLanes, spawnedLane) { 0 < noLongerPendingLanes; ) { - var index$8 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$8; - remainingLanes[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$9 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$9; + remainingLanes[index$9] = 0; + expirationTimes[index$9] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$9]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$9] = null, index$9 = 0; + index$9 < hiddenUpdatesForLane.length; + index$9++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$9]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -770,21 +780,21 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$10 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$10; + (lane & entangledLanes) | (root[index$10] & entangledLanes) && + (root[index$10] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - index$12 = root.transitionLanes[index$12]; - null !== index$12 && - index$12.forEach(function (transition) { + var index$13 = 31 - clz32(lanes), + lane = 1 << index$13; + index$13 = root.transitionLanes[index$13]; + null !== index$13 && + index$13.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -794,10 +804,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$13 = 31 - clz32(lanes), - lane = 1 << index$13; - null !== root.transitionLanes[index$13] && - (root.transitionLanes[index$13] = null); + var index$14 = 31 - clz32(lanes), + lane = 1 << index$14; + null !== root.transitionLanes[index$14] && + (root.transitionLanes[index$14] = null); lanes &= ~lane; } } @@ -971,8 +981,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$14 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$14 && "aria-" !== prefix$14) { + var prefix$15 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$15 && "aria-" !== prefix$15) { node.removeAttribute(name); return; } @@ -1313,15 +1323,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$20 in styles) - (styleName = styles[styleName$20]), - styles.hasOwnProperty(styleName$20) && - prevStyles[styleName$20] !== styleName && - setValueForStyle(node, styleName$20, styleName); - } else for (var styleName$21 in styles) - styles.hasOwnProperty(styleName$21) && - setValueForStyle(node, styleName$21, styles[styleName$21]); + (styleName = styles[styleName$21]), + styles.hasOwnProperty(styleName$21) && + prevStyles[styleName$21] !== styleName && + setValueForStyle(node, styleName$21, styleName); + } else + for (var styleName$22 in styles) + styles.hasOwnProperty(styleName$22) && + setValueForStyle(node, styleName$22, styles[styleName$22]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1927,14 +1937,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$26 = firstScheduledRoot; null !== root$26; ) { - if (!onlyLegacy || (!disableLegacyMode && 0 === root$26.tag)) + for (var root$27 = firstScheduledRoot; null !== root$27; ) { + if (!onlyLegacy || (!disableLegacyMode && 0 === root$27.tag)) if (0 !== syncTransitionLanes) { - var pendingLanes = root$26.pendingLanes; + var pendingLanes = root$27.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$26.suspendedLanes, - pingedLanes = root$26.pingedLanes; + var suspendedLanes = root$27.suspendedLanes, + pingedLanes = root$27.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -1948,17 +1958,17 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$27, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$26, - root$26 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$27, + root$27 === workInProgressRoot ? JSCompiler_inline_result : 0 )), 0 !== (JSCompiler_inline_result & 3) && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); - root$26 = root$26.next; + performSyncWorkOnRoot(root$27, JSCompiler_inline_result)); + root$27 = root$27.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -2002,12 +2012,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$7 = 31 - clz32(pendingLanes), + lane = 1 << index$7, + expirationTime = expirationTimes[index$7]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$7] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -2259,20 +2269,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$31 = workInProgress$jscomp$0.alternate; - null !== current$31 && - ((current$31 = current$31.updateQueue), - (pendingQueue = current$31.lastBaseUpdate), + var current$32 = workInProgress$jscomp$0.alternate; + null !== current$32 && + ((current$32 = current$32.updateQueue), + (pendingQueue = current$32.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$31.firstBaseUpdate = firstPendingUpdate) + ? (current$32.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$31.lastBaseUpdate = lastPendingUpdate))); + (current$32.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$31 = firstPendingUpdate = lastPendingUpdate = null; + current$32 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -2285,8 +2295,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$31 && - (current$31 = current$31.next = + null !== current$32 && + (current$32 = current$32.next = { lane: 0, tag: pendingQueue.tag, @@ -2339,10 +2349,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$31 - ? ((firstPendingUpdate = current$31 = isHiddenUpdate), + null === current$32 + ? ((firstPendingUpdate = current$32 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$31 = current$31.next = isHiddenUpdate), + : (current$32 = current$32.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -2355,10 +2365,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$31 && (lastPendingUpdate = newState); + null === current$32 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$31; + queue.lastBaseUpdate = current$32; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -3237,9 +3247,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$66 = fiber.alternate; - null !== current$66 && - null !== current$66.memoizedState && + var current$67 = fiber.alternate; + null !== current$67 && + null !== current$67.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -3509,16 +3519,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$68 = currentlyRenderingFiber$1.alternate; - null !== current$68 && - ((current$68 = current$68.updateQueue), - null !== current$68 && - ((current$68 = current$68.memoCache), - null != current$68 && + var current$69 = currentlyRenderingFiber$1.alternate; + null !== current$69 && + ((current$69 = current$69.updateQueue), + null !== current$69 && + ((current$69 = current$69.memoCache), + null != current$69 && (memoCache = { data: enableNoCloningMemoCache - ? current$68.data - : current$68.data.map(function (array) { + ? current$69.data + : current$69.data.map(function (array) { return array.slice(); }), index: 0 @@ -3533,11 +3543,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$68 = 0; - current$68 < size; - current$68++ + current$69 = 0; + current$69 < size; + current$69++ ) - updateQueue[current$68] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$69] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -3570,7 +3580,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$69 = !1; + didReadFromEntangledAsyncAction$70 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3591,11 +3601,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$69 = !0); + (didReadFromEntangledAsyncAction$70 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$69 = !0); + (didReadFromEntangledAsyncAction$70 = !0); continue; } else (updateLane = { @@ -3641,7 +3651,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$69 && + didReadFromEntangledAsyncAction$70 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3839,8 +3849,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$75) { - onActionError(actionQueue, node, error$75); + } catch (error$76) { + onActionError(actionQueue, node, error$76); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4289,14 +4299,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$78 = enqueueUpdate(provider, fiber, lane); - null !== root$78 && - (scheduleUpdateOnFiber(root$78, provider, lane), - entangleTransitions(root$78, provider, lane)); + var root$79 = enqueueUpdate(provider, fiber, lane); + null !== root$79 && + (scheduleUpdateOnFiber(root$79, provider, lane), + entangleTransitions(root$79, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$78 && + null !== root$79 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4895,9 +4905,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$82 in Component) - void 0 === newProps[propName$82] && - (newProps[propName$82] = Component[propName$82]); + for (var propName$83 in Component) + void 0 === newProps[propName$83] && + (newProps[propName$83] = Component[propName$83]); } return newProps; } @@ -5339,10 +5349,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$96 = workInProgress.stateNode; + root$97 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$96.incompleteTransitions.has(transition)) { + if (!root$97.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5350,11 +5360,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$96.incompleteTransitions.set(transition, markerInstance); + root$97.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$96.incompleteTransitions.forEach(function (markerInstance) { + root$97.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -7747,14 +7757,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$138 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$138 = lastTailNode), + for (var lastTailNode$139 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$139 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$138 + null === lastTailNode$139 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$138.sibling = null); + : (lastTailNode$139.sibling = null); } } function bubbleProperties(completedWork) { @@ -7764,19 +7774,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$139 = completedWork.child; null !== child$139; ) - (newChildLanes |= child$139.lanes | child$139.childLanes), - (subtreeFlags |= child$139.subtreeFlags & 31457280), - (subtreeFlags |= child$139.flags & 31457280), - (child$139.return = completedWork), - (child$139 = child$139.sibling); + for (var child$140 = completedWork.child; null !== child$140; ) + (newChildLanes |= child$140.lanes | child$140.childLanes), + (subtreeFlags |= child$140.subtreeFlags & 31457280), + (subtreeFlags |= child$140.flags & 31457280), + (child$140.return = completedWork), + (child$140 = child$140.sibling); else - for (child$139 = completedWork.child; null !== child$139; ) - (newChildLanes |= child$139.lanes | child$139.childLanes), - (subtreeFlags |= child$139.subtreeFlags), - (subtreeFlags |= child$139.flags), - (child$139.return = completedWork), - (child$139 = child$139.sibling); + for (child$140 = completedWork.child; null !== child$140; ) + (newChildLanes |= child$140.lanes | child$140.childLanes), + (subtreeFlags |= child$140.subtreeFlags), + (subtreeFlags |= child$140.flags), + (child$140.return = completedWork), + (child$140 = child$140.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -8073,11 +8083,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$151 = null; + var cache$152 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$151 = newProps.memoizedState.cachePool.pool); - cache$151 !== type && (newProps.flags |= 2048); + (cache$152 = newProps.memoizedState.cachePool.pool); + cache$152 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -8116,8 +8126,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$151 = type.rendering; - if (null === cache$151) + cache$152 = type.rendering; + if (null === cache$152) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -8125,11 +8135,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$151 = findFirstSuspended(current); - if (null !== cache$151) { + cache$152 = findFirstSuspended(current); + if (null !== cache$152) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$151.updateQueue; + current = cache$152.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -8154,7 +8164,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$151)), null !== current)) { + if (((current = findFirstSuspended(cache$152)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -8164,7 +8174,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$151.alternate && + !cache$152.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -8177,13 +8187,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$151.sibling = workInProgress.child), - (workInProgress.child = cache$151)) + ? ((cache$152.sibling = workInProgress.child), + (workInProgress.child = cache$152)) : ((current = type.last), null !== current - ? (current.sibling = cache$151) - : (workInProgress.child = cache$151), - (type.last = cache$151)); + ? (current.sibling = cache$152) + : (workInProgress.child = cache$152), + (type.last = cache$152)); } if (null !== type.tail) return ( @@ -8468,8 +8478,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$169) { - captureCommitPhaseError(current, nearestMountedAncestor, error$169); + } catch (error$170) { + captureCommitPhaseError(current, nearestMountedAncestor, error$170); } else ref.current = null; } @@ -8506,7 +8516,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$229) { + } catch (e$230) { JSCompiler_temp = null; break a; } @@ -8776,11 +8786,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$171) { + } catch (error$172) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$171 + error$172 ); } } @@ -9327,19 +9337,19 @@ function commitDeletionEffectsOnFiber( } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (null === finishedWork.memoizedState) { - var current$183 = finishedWork.alternate; + var current$184 = finishedWork.alternate; if ( - null !== current$183 && - ((current$183 = current$183.memoizedState), - null !== current$183 && - ((current$183 = current$183.dehydrated), null !== current$183)) + null !== current$184 && + ((current$184 = current$184.memoizedState), + null !== current$184 && + ((current$184 = current$184.dehydrated), null !== current$184)) ) try { - retryIfBlockedOn(current$183); + retryIfBlockedOn(current$184); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$183); + onHydrated && onHydrated(current$184); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9457,8 +9467,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$185) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$185); + } catch (error$186) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$186); } } break; @@ -9631,11 +9641,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$186) { + } catch (error$187) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$186 + error$187 ); } break; @@ -9672,8 +9682,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$187) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$187); + } catch (error$188) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$188); } } if (flags & 4 && ((root = finishedWork.stateNode), null != root)) { @@ -9683,8 +9693,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(root, maybeNodes, current, hoistableRoot), (root[internalPropsKey] = hoistableRoot); - } catch (error$189) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$189); + } catch (error$190) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$190); } } flags & 1024 && (needsFormReset = !0); @@ -9699,8 +9709,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = finishedWork.memoizedProps; try { flags.nodeValue = current; - } catch (error$190) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$190); + } catch (error$191) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$191); } } break; @@ -9714,8 +9724,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$191) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$191); + } catch (error$192) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$192); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); @@ -9747,8 +9757,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$193) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$193); + } catch (error$194) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$194); } flags = finishedWork.updateQueue; null !== flags && @@ -9826,11 +9836,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$174) { + } catch (error$175) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$174 + error$175 ); } } else if ( @@ -9905,21 +9915,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$175 = JSCompiler_inline_result.stateNode; + var parent$176 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$175, ""), + (setTextContent(parent$176, ""), (JSCompiler_inline_result.flags &= -33)); - var before$176 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$176, parent$175); + var before$177 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$177, parent$176); break; case 3: case 4: - var parent$177 = JSCompiler_inline_result.stateNode.containerInfo, - before$178 = getHostSibling(finishedWork); + var parent$178 = JSCompiler_inline_result.stateNode.containerInfo, + before$179 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$178, - parent$177 + before$179, + parent$178 ); break; default: @@ -9995,7 +10005,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$197 = parentFiber.alternate, + var current$198 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -10023,16 +10033,16 @@ function recursivelyTraverseReappearLayoutEffects( } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$197 = finishedWork.updateQueue; - if (null !== current$197) { - var hiddenCallbacks = current$197.shared.hiddenCallbacks; + current$198 = finishedWork.updateQueue; + if (null !== current$198) { + var hiddenCallbacks = current$198.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$197.shared.hiddenCallbacks = null, current$197 = 0; - current$197 < hiddenCallbacks.length; - current$197++ + current$198.shared.hiddenCallbacks = null, current$198 = 0; + current$198 < hiddenCallbacks.length; + current$198++ ) - callCallback(hiddenCallbacks[current$197], finishedRoot); + callCallback(hiddenCallbacks[current$198], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -10048,7 +10058,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$197 && + null === current$198 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -10395,9 +10405,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$204 = finishedWork.stateNode; + var instance$205 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$204._visibility & 4 + ? instance$205._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10410,7 +10420,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$204._visibility |= 4), + : ((instance$205._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10418,7 +10428,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$204._visibility |= 4), + : ((instance$205._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10431,7 +10441,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$204 + instance$205 ); break; case 24: @@ -10767,6 +10777,8 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -10882,7 +10894,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) { @@ -10895,11 +10908,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing) ) { var transitionLanesMap = root.transitionLanes, - index$11 = 31 - clz32(lane), - transitions = transitionLanesMap[index$11]; + index$12 = 31 - clz32(lane), + transitions = transitionLanesMap[index$12]; null === transitions && (transitions = new Set()); transitions.add(transition); - transitionLanesMap[index$11] = transitions; + transitionLanesMap[index$12] = transitions; } } root === workInProgressRoot && @@ -10909,7 +10922,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); 2 !== lane || @@ -10939,7 +10953,13 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (0 !== exitStatus) { var renderWasConcurrent = didTimeout; do { - if (6 === exitStatus) markRootSuspended(root, lanes, 0); + if (6 === exitStatus) + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { didTimeout = root.current.alternate; if ( @@ -10971,7 +10991,12 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } if (1 === exitStatus) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = didTimeout; @@ -10987,7 +11012,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -11010,7 +11036,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -11022,7 +11049,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), exitStatus ); @@ -11035,7 +11063,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -11087,7 +11116,8 @@ function commitRootWhenReady( transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -11106,7 +11136,7 @@ function commitRootWhenReady( didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -11154,26 +11184,29 @@ function isRenderConsistentWithExternalStores(finishedWork) { function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings +) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - expirationTimes[index$7] = -1; + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + didSkipSuspendedSiblings[index$8] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11200,13 +11233,18 @@ function performSyncWorkOnRoot(root, lanes) { if (1 === exitStatus) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (6 === exitStatus) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -11272,6 +11310,10 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes); workInProgressRootDidAttachPingListener = !1; workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11290,9 +11332,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$6 = 31 - clz32(allEntangledLanes), + lane = 1 << index$6; + lanes |= root[index$6]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -11364,7 +11406,8 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -11399,8 +11442,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$215) { - handleThrow(root, thrownValue$215); + } catch (thrownValue$216) { + handleThrow(root, thrownValue$216); } while (1); lanes && root.shellSuspendCounter++; @@ -11509,8 +11552,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$217) { - handleThrow(root, thrownValue$217); + } catch (thrownValue$218) { + handleThrow(root, thrownValue$218); } while (1); resetContextDependencies(); @@ -11620,31 +11663,27 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = 6; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || 1 === workInProgressSuspendedReason + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings + ); + return; + } unitOfWork = completedWork.return; var next = completeWork( completedWork.alternate, @@ -11664,6 +11703,29 @@ function completeUnitOfWork(unitOfWork) { } while (null !== completedWork); 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); } +function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), (next.subtreeFlags = 0), (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = 6; + workInProgress = null; +} function commitRoot( root, recoverableErrors, @@ -11735,12 +11797,12 @@ function commitRootImpl( Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$223 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$224 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$223 && + shouldFireAfterActiveInstanceBlur$224 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11812,7 +11874,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$224 = rootWithPendingPassiveEffects, + var root$225 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11827,7 +11889,7 @@ function flushPassiveEffects() { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$224, remainingLanes); + releaseRootPooledCache(root$225, remainingLanes); } } return !1; @@ -11935,6 +11997,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -12359,6 +12422,7 @@ function FiberRootNode( this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -13142,19 +13206,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$390; + var JSCompiler_inline_result$jscomp$391; if (canUseDOM) { - var isSupported$jscomp$inline_1541 = "oninput" in document; - if (!isSupported$jscomp$inline_1541) { - var element$jscomp$inline_1542 = document.createElement("div"); - element$jscomp$inline_1542.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1541 = - "function" === typeof element$jscomp$inline_1542.oninput; + var isSupported$jscomp$inline_1544 = "oninput" in document; + if (!isSupported$jscomp$inline_1544) { + var element$jscomp$inline_1545 = document.createElement("div"); + element$jscomp$inline_1545.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1544 = + "function" === typeof element$jscomp$inline_1545.oninput; } - JSCompiler_inline_result$jscomp$390 = isSupported$jscomp$inline_1541; - } else JSCompiler_inline_result$jscomp$390 = !1; + JSCompiler_inline_result$jscomp$391 = isSupported$jscomp$inline_1544; + } else JSCompiler_inline_result$jscomp$391 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$390 && + JSCompiler_inline_result$jscomp$391 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13565,20 +13629,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1582 = 0; - i$jscomp$inline_1582 < simpleEventPluginEvents.length; - i$jscomp$inline_1582++ + var i$jscomp$inline_1585 = 0; + i$jscomp$inline_1585 < simpleEventPluginEvents.length; + i$jscomp$inline_1585++ ) { - var eventName$jscomp$inline_1583 = - simpleEventPluginEvents[i$jscomp$inline_1582], - domEventName$jscomp$inline_1584 = - eventName$jscomp$inline_1583.toLowerCase(), - capitalizedEvent$jscomp$inline_1585 = - eventName$jscomp$inline_1583[0].toUpperCase() + - eventName$jscomp$inline_1583.slice(1); + var eventName$jscomp$inline_1586 = + simpleEventPluginEvents[i$jscomp$inline_1585], + domEventName$jscomp$inline_1587 = + eventName$jscomp$inline_1586.toLowerCase(), + capitalizedEvent$jscomp$inline_1588 = + eventName$jscomp$inline_1586[0].toUpperCase() + + eventName$jscomp$inline_1586.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1584, - "on" + capitalizedEvent$jscomp$inline_1585 + domEventName$jscomp$inline_1587, + "on" + capitalizedEvent$jscomp$inline_1588 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14871,34 +14935,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$243 = props[hasSrc]; - if (null != propValue$243) + var propValue$244 = props[hasSrc]; + if (null != propValue$244) switch (hasSrc) { case "name": - hasSrcSet = propValue$243; + hasSrcSet = propValue$244; break; case "type": - propValue = propValue$243; + propValue = propValue$244; break; case "checked": - checked = propValue$243; + checked = propValue$244; break; case "defaultChecked": - defaultChecked = propValue$243; + defaultChecked = propValue$244; break; case "value": - propKey = propValue$243; + propKey = propValue$244; break; case "defaultValue": - defaultValue = propValue$243; + defaultValue = propValue$244; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$243) + if (null != propValue$244) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$243, props, null); + setProp(domElement, tag, hasSrc, propValue$244, props, null); } } initInput( @@ -15035,14 +15099,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$243 in props) - props.hasOwnProperty(propValue$243) && - ((hasSrc = props[propValue$243]), + for (propValue$244 in props) + props.hasOwnProperty(propValue$244) && + ((hasSrc = props[propValue$244]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$243, + propValue$244, hasSrc, props, void 0 @@ -15090,14 +15154,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$260 in nextProps) { - var propKey = nextProps[propKey$260]; - lastProp = lastProps[propKey$260]; + for (var propKey$261 in nextProps) { + var propKey = nextProps[propKey$261]; + lastProp = lastProps[propKey$261]; if ( - nextProps.hasOwnProperty(propKey$260) && + nextProps.hasOwnProperty(propKey$261) && (null != propKey || null != lastProp) ) - switch (propKey$260) { + switch (propKey$261) { case "type": type = propKey; break; @@ -15126,7 +15190,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$260, + propKey$261, propKey, nextProps, lastProp @@ -15145,7 +15209,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$260 = null; + propKey = value = defaultValue = propKey$261 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15176,7 +15240,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$260 = type; + propKey$261 = type; break; case "defaultValue": defaultValue = type; @@ -15197,15 +15261,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$260 - ? updateOptions(domElement, !!lastProps, propKey$260, !1) + null != propKey$261 + ? updateOptions(domElement, !!lastProps, propKey$261, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$260 = null; + propKey = propKey$261 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15229,7 +15293,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$260 = name; + propKey$261 = name; break; case "defaultValue": propKey = name; @@ -15243,17 +15307,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$260, propKey); + updateTextarea(domElement, propKey$261, propKey); return; case "option": - for (var propKey$276 in lastProps) + for (var propKey$277 in lastProps) if ( - ((propKey$260 = lastProps[propKey$276]), - lastProps.hasOwnProperty(propKey$276) && - null != propKey$260 && - !nextProps.hasOwnProperty(propKey$276)) + ((propKey$261 = lastProps[propKey$277]), + lastProps.hasOwnProperty(propKey$277) && + null != propKey$261 && + !nextProps.hasOwnProperty(propKey$277)) ) - switch (propKey$276) { + switch (propKey$277) { case "selected": domElement.selected = !1; break; @@ -15261,33 +15325,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$276, + propKey$277, null, nextProps, - propKey$260 + propKey$261 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$260 = nextProps[lastDefaultValue]), + ((propKey$261 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$260 !== propKey && - (null != propKey$260 || null != propKey)) + propKey$261 !== propKey && + (null != propKey$261 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$260 && - "function" !== typeof propKey$260 && - "symbol" !== typeof propKey$260; + propKey$261 && + "function" !== typeof propKey$261 && + "symbol" !== typeof propKey$261; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$260, + propKey$261, nextProps, propKey ); @@ -15308,24 +15372,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$281 in lastProps) - (propKey$260 = lastProps[propKey$281]), - lastProps.hasOwnProperty(propKey$281) && - null != propKey$260 && - !nextProps.hasOwnProperty(propKey$281) && - setProp(domElement, tag, propKey$281, null, nextProps, propKey$260); + for (var propKey$282 in lastProps) + (propKey$261 = lastProps[propKey$282]), + lastProps.hasOwnProperty(propKey$282) && + null != propKey$261 && + !nextProps.hasOwnProperty(propKey$282) && + setProp(domElement, tag, propKey$282, null, nextProps, propKey$261); for (checked in nextProps) if ( - ((propKey$260 = nextProps[checked]), + ((propKey$261 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$260 !== propKey && - (null != propKey$260 || null != propKey)) + propKey$261 !== propKey && + (null != propKey$261 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$260) + if (null != propKey$261) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15333,7 +15397,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$260, + propKey$261, nextProps, propKey ); @@ -15341,49 +15405,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$286 in lastProps) - (propKey$260 = lastProps[propKey$286]), - lastProps.hasOwnProperty(propKey$286) && - void 0 !== propKey$260 && - !nextProps.hasOwnProperty(propKey$286) && + for (var propKey$287 in lastProps) + (propKey$261 = lastProps[propKey$287]), + lastProps.hasOwnProperty(propKey$287) && + void 0 !== propKey$261 && + !nextProps.hasOwnProperty(propKey$287) && setPropOnCustomElement( domElement, tag, - propKey$286, + propKey$287, void 0, nextProps, - propKey$260 + propKey$261 ); for (defaultChecked in nextProps) - (propKey$260 = nextProps[defaultChecked]), + (propKey$261 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$260 === propKey || - (void 0 === propKey$260 && void 0 === propKey) || + propKey$261 === propKey || + (void 0 === propKey$261 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$260, + propKey$261, nextProps, propKey ); return; } } - for (var propKey$291 in lastProps) - (propKey$260 = lastProps[propKey$291]), - lastProps.hasOwnProperty(propKey$291) && - null != propKey$260 && - !nextProps.hasOwnProperty(propKey$291) && - setProp(domElement, tag, propKey$291, null, nextProps, propKey$260); + for (var propKey$292 in lastProps) + (propKey$261 = lastProps[propKey$292]), + lastProps.hasOwnProperty(propKey$292) && + null != propKey$261 && + !nextProps.hasOwnProperty(propKey$292) && + setProp(domElement, tag, propKey$292, null, nextProps, propKey$261); for (lastProp in nextProps) - (propKey$260 = nextProps[lastProp]), + (propKey$261 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$260 === propKey || - (null == propKey$260 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$260, nextProps, propKey); + propKey$261 === propKey || + (null == propKey$261 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$261, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15978,26 +16042,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$299 = getResourcesFromRoot( + var styles$300 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$300 = styles$299.get(type); - resource$300 || + resource$301 = styles$300.get(type); + resource$301 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$300 = { + (resource$301 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$299.set(type, resource$300), - (styles$299 = JSCompiler_inline_result.querySelector( + styles$300.set(type, resource$301), + (styles$300 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$299._p && - ((resource$300.instance = styles$299), - (resource$300.state.loading = 5)), + !styles$300._p && + ((resource$301.instance = styles$300), + (resource$301.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16010,16 +16074,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$299 || + styles$300 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$300.state + resource$301.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$300; + return resource$301; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16116,37 +16180,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$305 = hoistableRoot.querySelector( + var instance$306 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$305) + if (instance$306) return ( (resource.state.loading |= 4), - (resource.instance = instance$305), - markNodeAsHoistable(instance$305), - instance$305 + (resource.instance = instance$306), + markNodeAsHoistable(instance$306), + instance$306 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$305 = ( + instance$306 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$305); - var linkInstance = instance$305; + markNodeAsHoistable(instance$306); + var linkInstance = instance$306; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$305, "link", instance); + setInitialProperties(instance$306, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$305, props.precedence, hoistableRoot); - return (resource.instance = instance$305); + insertStylesheet(instance$306, props.precedence, hoistableRoot); + return (resource.instance = instance$306); case "script": - instance$305 = getScriptKey(props.src); + instance$306 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$305) + getScriptSelectorFromKey(instance$306) )) ) return ( @@ -16155,7 +16219,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$305))) + if ((styleProps = preloadPropsMap.get(instance$306))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17187,16 +17251,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1755 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1758 = React.version; if ( - "19.0.0-www-classic-8b4c54c0-20240904" !== - isomorphicReactPackageVersion$jscomp$inline_1755 + "19.0.0-www-classic-e10e8681-20240904" !== + isomorphicReactPackageVersion$jscomp$inline_1758 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1755, - "19.0.0-www-classic-8b4c54c0-20240904" + isomorphicReactPackageVersion$jscomp$inline_1758, + "19.0.0-www-classic-e10e8681-20240904" ) ); function flushSyncFromReconciler(fn) { @@ -17239,25 +17303,25 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2219 = { +var internals$jscomp$inline_2222 = { bundleType: 0, - version: "19.0.0-www-classic-8b4c54c0-20240904", + version: "19.0.0-www-classic-e10e8681-20240904", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-classic-e10e8681-20240904" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2220 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2223 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2220.isDisabled && - hook$jscomp$inline_2220.supportsFiber + !hook$jscomp$inline_2223.isDisabled && + hook$jscomp$inline_2223.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2220.inject( - internals$jscomp$inline_2219 + (rendererID = hook$jscomp$inline_2223.inject( + internals$jscomp$inline_2222 )), - (injectedHook = hook$jscomp$inline_2220); + (injectedHook = hook$jscomp$inline_2223); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17331,11 +17395,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$326); + var instance = getPublicRootInstance(root$327); originalCallback.call(instance); }; } - var root$326 = createHydrationContainer( + var root$327 = createHydrationContainer( initialChildren, callback, container, @@ -17350,23 +17414,23 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$326; - container[internalContainerInstanceKey] = root$326.current; + container._reactRootContainer = root$327; + container[internalContainerInstanceKey] = root$327.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSyncWork$1(); - return root$326; + return root$327; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$327 = callback; + var originalCallback$328 = callback; callback = function () { - var instance = getPublicRootInstance(root$328); - originalCallback$327.call(instance); + var instance = getPublicRootInstance(root$329); + originalCallback$328.call(instance); }; } - var root$328 = createFiberRoot( + var root$329 = createFiberRoot( container, 0, !1, @@ -17380,14 +17444,14 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$328; - container[internalContainerInstanceKey] = root$328.current; + container._reactRootContainer = root$329; + container[internalContainerInstanceKey] = root$329.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); - updateContainerSync(initialChildren, root$328, parentComponent, callback); + updateContainerSync(initialChildren, root$329, parentComponent, callback); flushSyncWork$1(); - return root$328; + return root$329; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -17701,4 +17765,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; +exports.version = "19.0.0-www-classic-e10e8681-20240904"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 61dfd5fbe09ad..658c27e365d39 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -565,28 +565,37 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -659,6 +668,7 @@ function markRootFinished(root, remainingLanes, spawnedLane) { root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -670,18 +680,18 @@ function markRootFinished(root, remainingLanes, spawnedLane) { 0 < noLongerPendingLanes; ) { - var index$8 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$8; - remainingLanes[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$9 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$9; + remainingLanes[index$9] = 0; + expirationTimes[index$9] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$9]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$9] = null, index$9 = 0; + index$9 < hiddenUpdatesForLane.length; + index$9++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$9]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -701,21 +711,21 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$10 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$10; + (lane & entangledLanes) | (root[index$10] & entangledLanes) && + (root[index$10] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - index$12 = root.transitionLanes[index$12]; - null !== index$12 && - index$12.forEach(function (transition) { + var index$13 = 31 - clz32(lanes), + lane = 1 << index$13; + index$13 = root.transitionLanes[index$13]; + null !== index$13 && + index$13.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -725,10 +735,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$13 = 31 - clz32(lanes), - lane = 1 << index$13; - null !== root.transitionLanes[index$13] && - (root.transitionLanes[index$13] = null); + var index$14 = 31 - clz32(lanes), + lane = 1 << index$14; + null !== root.transitionLanes[index$14] && + (root.transitionLanes[index$14] = null); lanes &= ~lane; } } @@ -902,8 +912,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$14 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$14 && "aria-" !== prefix$14) { + var prefix$15 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$15 && "aria-" !== prefix$15) { node.removeAttribute(name); return; } @@ -1234,15 +1244,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$20 in styles) - (styleName = styles[styleName$20]), - styles.hasOwnProperty(styleName$20) && - prevStyles[styleName$20] !== styleName && - setValueForStyle(node, styleName$20, styleName); - } else for (var styleName$21 in styles) - styles.hasOwnProperty(styleName$21) && - setValueForStyle(node, styleName$21, styles[styleName$21]); + (styleName = styles[styleName$21]), + styles.hasOwnProperty(styleName$21) && + prevStyles[styleName$21] !== styleName && + setValueForStyle(node, styleName$21, styleName); + } else + for (var styleName$22 in styles) + styles.hasOwnProperty(styleName$22) && + setValueForStyle(node, styleName$22, styles[styleName$22]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1770,14 +1780,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$26 = firstScheduledRoot; null !== root$26; ) { + for (var root$27 = firstScheduledRoot; null !== root$27; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$26.pendingLanes; + var pendingLanes = root$27.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$26.suspendedLanes, - pingedLanes = root$26.pingedLanes; + var suspendedLanes = root$27.suspendedLanes, + pingedLanes = root$27.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -1791,17 +1801,17 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$27, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$26, - root$26 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$27, + root$27 === workInProgressRoot ? JSCompiler_inline_result : 0 )), 0 !== (JSCompiler_inline_result & 3) && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); - root$26 = root$26.next; + performSyncWorkOnRoot(root$27, JSCompiler_inline_result)); + root$27 = root$27.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -1845,12 +1855,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$7 = 31 - clz32(pendingLanes), + lane = 1 << index$7, + expirationTime = expirationTimes[index$7]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$7] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -2102,20 +2112,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$31 = workInProgress$jscomp$0.alternate; - null !== current$31 && - ((current$31 = current$31.updateQueue), - (pendingQueue = current$31.lastBaseUpdate), + var current$32 = workInProgress$jscomp$0.alternate; + null !== current$32 && + ((current$32 = current$32.updateQueue), + (pendingQueue = current$32.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$31.firstBaseUpdate = firstPendingUpdate) + ? (current$32.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$31.lastBaseUpdate = lastPendingUpdate))); + (current$32.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$31 = firstPendingUpdate = lastPendingUpdate = null; + current$32 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -2128,8 +2138,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$31 && - (current$31 = current$31.next = + null !== current$32 && + (current$32 = current$32.next = { lane: 0, tag: pendingQueue.tag, @@ -2182,10 +2192,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$31 - ? ((firstPendingUpdate = current$31 = isHiddenUpdate), + null === current$32 + ? ((firstPendingUpdate = current$32 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$31 = current$31.next = isHiddenUpdate), + : (current$32 = current$32.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -2198,10 +2208,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$31 && (lastPendingUpdate = newState); + null === current$32 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$31; + queue.lastBaseUpdate = current$32; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -3072,9 +3082,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$66 = fiber.alternate; - null !== current$66 && - null !== current$66.memoizedState && + var current$67 = fiber.alternate; + null !== current$67 && + null !== current$67.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -3344,16 +3354,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$68 = currentlyRenderingFiber$1.alternate; - null !== current$68 && - ((current$68 = current$68.updateQueue), - null !== current$68 && - ((current$68 = current$68.memoCache), - null != current$68 && + var current$69 = currentlyRenderingFiber$1.alternate; + null !== current$69 && + ((current$69 = current$69.updateQueue), + null !== current$69 && + ((current$69 = current$69.memoCache), + null != current$69 && (memoCache = { data: enableNoCloningMemoCache - ? current$68.data - : current$68.data.map(function (array) { + ? current$69.data + : current$69.data.map(function (array) { return array.slice(); }), index: 0 @@ -3368,11 +3378,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$68 = 0; - current$68 < size; - current$68++ + current$69 = 0; + current$69 < size; + current$69++ ) - updateQueue[current$68] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$69] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -3405,7 +3415,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$69 = !1; + didReadFromEntangledAsyncAction$70 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3426,11 +3436,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$69 = !0); + (didReadFromEntangledAsyncAction$70 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$69 = !0); + (didReadFromEntangledAsyncAction$70 = !0); continue; } else (updateLane = { @@ -3476,7 +3486,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$69 && + didReadFromEntangledAsyncAction$70 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3674,8 +3684,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$75) { - onActionError(actionQueue, node, error$75); + } catch (error$76) { + onActionError(actionQueue, node, error$76); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4124,14 +4134,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$78 = enqueueUpdate(provider, fiber, lane); - null !== root$78 && - (scheduleUpdateOnFiber(root$78, provider, lane), - entangleTransitions(root$78, provider, lane)); + var root$79 = enqueueUpdate(provider, fiber, lane); + null !== root$79 && + (scheduleUpdateOnFiber(root$79, provider, lane), + entangleTransitions(root$79, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$78 && + null !== root$79 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4668,9 +4678,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$82 in Component) - void 0 === newProps[propName$82] && - (newProps[propName$82] = Component[propName$82]); + for (var propName$83 in Component) + void 0 === newProps[propName$83] && + (newProps[propName$83] = Component[propName$83]); } return newProps; } @@ -5046,10 +5056,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$95 = workInProgress.stateNode; + root$96 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$95.incompleteTransitions.has(transition)) { + if (!root$96.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5057,11 +5067,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$95.incompleteTransitions.set(transition, markerInstance); + root$96.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$95.incompleteTransitions.forEach(function (markerInstance) { + root$96.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -7339,14 +7349,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$130 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$130 = lastTailNode), + for (var lastTailNode$131 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$131 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$130 + null === lastTailNode$131 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$130.sibling = null); + : (lastTailNode$131.sibling = null); } } function bubbleProperties(completedWork) { @@ -7356,19 +7366,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$131 = completedWork.child; null !== child$131; ) - (newChildLanes |= child$131.lanes | child$131.childLanes), - (subtreeFlags |= child$131.subtreeFlags & 31457280), - (subtreeFlags |= child$131.flags & 31457280), - (child$131.return = completedWork), - (child$131 = child$131.sibling); + for (var child$132 = completedWork.child; null !== child$132; ) + (newChildLanes |= child$132.lanes | child$132.childLanes), + (subtreeFlags |= child$132.subtreeFlags & 31457280), + (subtreeFlags |= child$132.flags & 31457280), + (child$132.return = completedWork), + (child$132 = child$132.sibling); else - for (child$131 = completedWork.child; null !== child$131; ) - (newChildLanes |= child$131.lanes | child$131.childLanes), - (subtreeFlags |= child$131.subtreeFlags), - (subtreeFlags |= child$131.flags), - (child$131.return = completedWork), - (child$131 = child$131.sibling); + for (child$132 = completedWork.child; null !== child$132; ) + (newChildLanes |= child$132.lanes | child$132.childLanes), + (subtreeFlags |= child$132.subtreeFlags), + (subtreeFlags |= child$132.flags), + (child$132.return = completedWork), + (child$132 = child$132.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7657,11 +7667,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$143 = null; + var cache$144 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$143 = newProps.memoizedState.cachePool.pool); - cache$143 !== type && (newProps.flags |= 2048); + (cache$144 = newProps.memoizedState.cachePool.pool); + cache$144 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -7695,8 +7705,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$143 = type.rendering; - if (null === cache$143) + cache$144 = type.rendering; + if (null === cache$144) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -7704,11 +7714,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$143 = findFirstSuspended(current); - if (null !== cache$143) { + cache$144 = findFirstSuspended(current); + if (null !== cache$144) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$143.updateQueue; + current = cache$144.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -7733,7 +7743,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$143)), null !== current)) { + if (((current = findFirstSuspended(cache$144)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -7743,7 +7753,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$143.alternate && + !cache$144.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -7756,13 +7766,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$143.sibling = workInProgress.child), - (workInProgress.child = cache$143)) + ? ((cache$144.sibling = workInProgress.child), + (workInProgress.child = cache$144)) : ((current = type.last), null !== current - ? (current.sibling = cache$143) - : (workInProgress.child = cache$143), - (type.last = cache$143)); + ? (current.sibling = cache$144) + : (workInProgress.child = cache$144), + (type.last = cache$144)); } if (null !== type.tail) return ( @@ -8036,8 +8046,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$160) { - captureCommitPhaseError(current, nearestMountedAncestor, error$160); + } catch (error$161) { + captureCommitPhaseError(current, nearestMountedAncestor, error$161); } else ref.current = null; } @@ -8074,7 +8084,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$220) { + } catch (e$221) { JSCompiler_temp = null; break a; } @@ -8357,11 +8367,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$162) { + } catch (error$163) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$162 + error$163 ); } } @@ -8897,19 +8907,19 @@ function commitDeletionEffectsOnFiber( } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (null === finishedWork.memoizedState) { - var current$174 = finishedWork.alternate; + var current$175 = finishedWork.alternate; if ( - null !== current$174 && - ((current$174 = current$174.memoizedState), - null !== current$174 && - ((current$174 = current$174.dehydrated), null !== current$174)) + null !== current$175 && + ((current$175 = current$175.memoizedState), + null !== current$175 && + ((current$175 = current$175.dehydrated), null !== current$175)) ) try { - retryIfBlockedOn(current$174); + retryIfBlockedOn(current$175); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$174); + onHydrated && onHydrated(current$175); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9027,8 +9037,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$176) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$176); + } catch (error$177) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$177); } } break; @@ -9201,11 +9211,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$177) { + } catch (error$178) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$177 + error$178 ); } break; @@ -9242,8 +9252,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$178) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$178); + } catch (error$179) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$179); } } if (flags & 4 && ((root = finishedWork.stateNode), null != root)) { @@ -9253,8 +9263,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(root, maybeNodes, current, hoistableRoot), (root[internalPropsKey] = hoistableRoot); - } catch (error$180) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$180); + } catch (error$181) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$181); } } flags & 1024 && (needsFormReset = !0); @@ -9269,8 +9279,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = finishedWork.memoizedProps; try { flags.nodeValue = current; - } catch (error$181) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$181); + } catch (error$182) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$182); } } break; @@ -9284,8 +9294,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$182) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$182); + } catch (error$183) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$183); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); @@ -9317,8 +9327,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$184) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$184); + } catch (error$185) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$185); } flags = finishedWork.updateQueue; null !== flags && @@ -9393,11 +9403,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$165) { + } catch (error$166) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$165 + error$166 ); } } else if ( @@ -9472,21 +9482,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$166 = JSCompiler_inline_result.stateNode; + var parent$167 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$166, ""), + (setTextContent(parent$167, ""), (JSCompiler_inline_result.flags &= -33)); - var before$167 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$167, parent$166); + var before$168 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$168, parent$167); break; case 3: case 4: - var parent$168 = JSCompiler_inline_result.stateNode.containerInfo, - before$169 = getHostSibling(finishedWork); + var parent$169 = JSCompiler_inline_result.stateNode.containerInfo, + before$170 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$169, - parent$168 + before$170, + parent$169 ); break; default: @@ -9562,7 +9572,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$188 = parentFiber.alternate, + var current$189 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -9590,16 +9600,16 @@ function recursivelyTraverseReappearLayoutEffects( } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$188 = finishedWork.updateQueue; - if (null !== current$188) { - var hiddenCallbacks = current$188.shared.hiddenCallbacks; + current$189 = finishedWork.updateQueue; + if (null !== current$189) { + var hiddenCallbacks = current$189.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$188.shared.hiddenCallbacks = null, current$188 = 0; - current$188 < hiddenCallbacks.length; - current$188++ + current$189.shared.hiddenCallbacks = null, current$189 = 0; + current$189 < hiddenCallbacks.length; + current$189++ ) - callCallback(hiddenCallbacks[current$188], finishedRoot); + callCallback(hiddenCallbacks[current$189], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -9615,7 +9625,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$188 && + null === current$189 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -9951,9 +9961,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$195 = finishedWork.stateNode; + var instance$196 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$195._visibility & 4 + ? instance$196._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9965,7 +9975,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$195._visibility |= 4), + : ((instance$196._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9978,7 +9988,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$195 + instance$196 ); break; case 24: @@ -10314,6 +10324,8 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -10427,7 +10439,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) { @@ -10440,11 +10453,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$11 = 31 - clz32(lane), - transitions = transitionLanesMap[index$11]; + index$12 = 31 - clz32(lane), + transitions = transitionLanesMap[index$12]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$11] = transitions; + transitionLanesMap[index$12] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -10453,7 +10466,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); } @@ -10477,7 +10491,13 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (0 !== exitStatus) { var renderWasConcurrent = didTimeout; do { - if (6 === exitStatus) markRootSuspended(root, lanes, 0); + if (6 === exitStatus) + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { didTimeout = root.current.alternate; if ( @@ -10509,7 +10529,12 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } if (1 === exitStatus) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = didTimeout; @@ -10525,7 +10550,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -10548,7 +10574,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -10560,7 +10587,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), exitStatus ); @@ -10573,7 +10601,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -10625,7 +10654,8 @@ function commitRootWhenReady( transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -10644,7 +10674,7 @@ function commitRootWhenReady( didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -10692,26 +10722,29 @@ function isRenderConsistentWithExternalStores(finishedWork) { function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings +) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - expirationTimes[index$7] = -1; + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + didSkipSuspendedSiblings[index$8] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10738,13 +10771,18 @@ function performSyncWorkOnRoot(root, lanes) { if (1 === exitStatus) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (6 === exitStatus) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -10797,6 +10835,10 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes); workInProgressRootDidAttachPingListener = !1; workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -10815,9 +10857,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$6 = 31 - clz32(allEntangledLanes), + lane = 1 << index$6; + lanes |= root[index$6]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -10889,7 +10931,8 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -10924,8 +10967,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$206) { - handleThrow(root, thrownValue$206); + } catch (thrownValue$207) { + handleThrow(root, thrownValue$207); } while (1); lanes && root.shellSuspendCounter++; @@ -11034,8 +11077,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$208) { - handleThrow(root, thrownValue$208); + } catch (thrownValue$209) { + handleThrow(root, thrownValue$209); } while (1); resetContextDependencies(); @@ -11141,31 +11184,27 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = 6; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || 1 === workInProgressSuspendedReason + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings + ); + return; + } unitOfWork = completedWork.return; var next = completeWork( completedWork.alternate, @@ -11185,6 +11224,29 @@ function completeUnitOfWork(unitOfWork) { } while (null !== completedWork); 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); } +function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), (next.subtreeFlags = 0), (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = 6; + workInProgress = null; +} function commitRoot( root, recoverableErrors, @@ -11256,12 +11318,12 @@ function commitRootImpl( Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$214 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$215 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$214 && + shouldFireAfterActiveInstanceBlur$215 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11331,7 +11393,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$215 = rootWithPendingPassiveEffects, + var root$216 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11346,7 +11408,7 @@ function flushPassiveEffects() { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$215, remainingLanes); + releaseRootPooledCache(root$216, remainingLanes); } } return !1; @@ -11454,6 +11516,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -11873,6 +11936,7 @@ function FiberRootNode( this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -12567,19 +12631,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$377; + var JSCompiler_inline_result$jscomp$378; if (canUseDOM) { - var isSupported$jscomp$inline_1512 = "oninput" in document; - if (!isSupported$jscomp$inline_1512) { - var element$jscomp$inline_1513 = document.createElement("div"); - element$jscomp$inline_1513.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1512 = - "function" === typeof element$jscomp$inline_1513.oninput; + var isSupported$jscomp$inline_1515 = "oninput" in document; + if (!isSupported$jscomp$inline_1515) { + var element$jscomp$inline_1516 = document.createElement("div"); + element$jscomp$inline_1516.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1515 = + "function" === typeof element$jscomp$inline_1516.oninput; } - JSCompiler_inline_result$jscomp$377 = isSupported$jscomp$inline_1512; - } else JSCompiler_inline_result$jscomp$377 = !1; + JSCompiler_inline_result$jscomp$378 = isSupported$jscomp$inline_1515; + } else JSCompiler_inline_result$jscomp$378 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$377 && + JSCompiler_inline_result$jscomp$378 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -12990,20 +13054,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1553 = 0; - i$jscomp$inline_1553 < simpleEventPluginEvents.length; - i$jscomp$inline_1553++ + var i$jscomp$inline_1556 = 0; + i$jscomp$inline_1556 < simpleEventPluginEvents.length; + i$jscomp$inline_1556++ ) { - var eventName$jscomp$inline_1554 = - simpleEventPluginEvents[i$jscomp$inline_1553], - domEventName$jscomp$inline_1555 = - eventName$jscomp$inline_1554.toLowerCase(), - capitalizedEvent$jscomp$inline_1556 = - eventName$jscomp$inline_1554[0].toUpperCase() + - eventName$jscomp$inline_1554.slice(1); + var eventName$jscomp$inline_1557 = + simpleEventPluginEvents[i$jscomp$inline_1556], + domEventName$jscomp$inline_1558 = + eventName$jscomp$inline_1557.toLowerCase(), + capitalizedEvent$jscomp$inline_1559 = + eventName$jscomp$inline_1557[0].toUpperCase() + + eventName$jscomp$inline_1557.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1555, - "on" + capitalizedEvent$jscomp$inline_1556 + domEventName$jscomp$inline_1558, + "on" + capitalizedEvent$jscomp$inline_1559 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14292,34 +14356,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$234 = props[hasSrc]; - if (null != propValue$234) + var propValue$235 = props[hasSrc]; + if (null != propValue$235) switch (hasSrc) { case "name": - hasSrcSet = propValue$234; + hasSrcSet = propValue$235; break; case "type": - propKey = propValue$234; + propKey = propValue$235; break; case "checked": - checked = propValue$234; + checked = propValue$235; break; case "defaultChecked": - defaultChecked = propValue$234; + defaultChecked = propValue$235; break; case "value": - propValue = propValue$234; + propValue = propValue$235; break; case "defaultValue": - defaultValue = propValue$234; + defaultValue = propValue$235; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$234) + if (null != propValue$235) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$234, props, null); + setProp(domElement, tag, hasSrc, propValue$235, props, null); } } initInput( @@ -14455,14 +14519,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$234 in props) - props.hasOwnProperty(propValue$234) && - ((hasSrc = props[propValue$234]), + for (propValue$235 in props) + props.hasOwnProperty(propValue$235) && + ((hasSrc = props[propValue$235]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$234, + propValue$235, hasSrc, props, void 0 @@ -14510,14 +14574,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$251 in nextProps) { - var propKey = nextProps[propKey$251]; - lastProp = lastProps[propKey$251]; + for (var propKey$252 in nextProps) { + var propKey = nextProps[propKey$252]; + lastProp = lastProps[propKey$252]; if ( - nextProps.hasOwnProperty(propKey$251) && + nextProps.hasOwnProperty(propKey$252) && (null != propKey || null != lastProp) ) - switch (propKey$251) { + switch (propKey$252) { case "type": type = propKey; break; @@ -14546,7 +14610,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$251, + propKey$252, propKey, nextProps, lastProp @@ -14565,7 +14629,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$251 = null; + propKey = value = defaultValue = propKey$252 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -14596,7 +14660,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$251 = type; + propKey$252 = type; break; case "defaultValue": defaultValue = type; @@ -14617,15 +14681,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$251 - ? updateOptions(domElement, !!lastProps, propKey$251, !1) + null != propKey$252 + ? updateOptions(domElement, !!lastProps, propKey$252, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$251 = null; + propKey = propKey$252 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -14649,7 +14713,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$251 = name; + propKey$252 = name; break; case "defaultValue": propKey = name; @@ -14663,17 +14727,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$251, propKey); + updateTextarea(domElement, propKey$252, propKey); return; case "option": - for (var propKey$267 in lastProps) + for (var propKey$268 in lastProps) if ( - ((propKey$251 = lastProps[propKey$267]), - lastProps.hasOwnProperty(propKey$267) && - null != propKey$251 && - !nextProps.hasOwnProperty(propKey$267)) + ((propKey$252 = lastProps[propKey$268]), + lastProps.hasOwnProperty(propKey$268) && + null != propKey$252 && + !nextProps.hasOwnProperty(propKey$268)) ) - switch (propKey$267) { + switch (propKey$268) { case "selected": domElement.selected = !1; break; @@ -14681,33 +14745,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$267, + propKey$268, null, nextProps, - propKey$251 + propKey$252 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$251 = nextProps[lastDefaultValue]), + ((propKey$252 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$251 !== propKey && - (null != propKey$251 || null != propKey)) + propKey$252 !== propKey && + (null != propKey$252 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$251 && - "function" !== typeof propKey$251 && - "symbol" !== typeof propKey$251; + propKey$252 && + "function" !== typeof propKey$252 && + "symbol" !== typeof propKey$252; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$251, + propKey$252, nextProps, propKey ); @@ -14728,24 +14792,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$272 in lastProps) - (propKey$251 = lastProps[propKey$272]), - lastProps.hasOwnProperty(propKey$272) && - null != propKey$251 && - !nextProps.hasOwnProperty(propKey$272) && - setProp(domElement, tag, propKey$272, null, nextProps, propKey$251); + for (var propKey$273 in lastProps) + (propKey$252 = lastProps[propKey$273]), + lastProps.hasOwnProperty(propKey$273) && + null != propKey$252 && + !nextProps.hasOwnProperty(propKey$273) && + setProp(domElement, tag, propKey$273, null, nextProps, propKey$252); for (checked in nextProps) if ( - ((propKey$251 = nextProps[checked]), + ((propKey$252 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$251 !== propKey && - (null != propKey$251 || null != propKey)) + propKey$252 !== propKey && + (null != propKey$252 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$251) + if (null != propKey$252) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -14753,7 +14817,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$251, + propKey$252, nextProps, propKey ); @@ -14761,49 +14825,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$277 in lastProps) - (propKey$251 = lastProps[propKey$277]), - lastProps.hasOwnProperty(propKey$277) && - void 0 !== propKey$251 && - !nextProps.hasOwnProperty(propKey$277) && + for (var propKey$278 in lastProps) + (propKey$252 = lastProps[propKey$278]), + lastProps.hasOwnProperty(propKey$278) && + void 0 !== propKey$252 && + !nextProps.hasOwnProperty(propKey$278) && setPropOnCustomElement( domElement, tag, - propKey$277, + propKey$278, void 0, nextProps, - propKey$251 + propKey$252 ); for (defaultChecked in nextProps) - (propKey$251 = nextProps[defaultChecked]), + (propKey$252 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$251 === propKey || - (void 0 === propKey$251 && void 0 === propKey) || + propKey$252 === propKey || + (void 0 === propKey$252 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$251, + propKey$252, nextProps, propKey ); return; } } - for (var propKey$282 in lastProps) - (propKey$251 = lastProps[propKey$282]), - lastProps.hasOwnProperty(propKey$282) && - null != propKey$251 && - !nextProps.hasOwnProperty(propKey$282) && - setProp(domElement, tag, propKey$282, null, nextProps, propKey$251); + for (var propKey$283 in lastProps) + (propKey$252 = lastProps[propKey$283]), + lastProps.hasOwnProperty(propKey$283) && + null != propKey$252 && + !nextProps.hasOwnProperty(propKey$283) && + setProp(domElement, tag, propKey$283, null, nextProps, propKey$252); for (lastProp in nextProps) - (propKey$251 = nextProps[lastProp]), + (propKey$252 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$251 === propKey || - (null == propKey$251 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$251, nextProps, propKey); + propKey$252 === propKey || + (null == propKey$252 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$252, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15381,26 +15445,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$290 = getResourcesFromRoot( + var styles$291 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$291 = styles$290.get(type); - resource$291 || + resource$292 = styles$291.get(type); + resource$292 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$291 = { + (resource$292 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$290.set(type, resource$291), - (styles$290 = JSCompiler_inline_result.querySelector( + styles$291.set(type, resource$292), + (styles$291 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$290._p && - ((resource$291.instance = styles$290), - (resource$291.state.loading = 5)), + !styles$291._p && + ((resource$292.instance = styles$291), + (resource$292.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -15413,16 +15477,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$290 || + styles$291 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$291.state + resource$292.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$291; + return resource$292; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -15519,37 +15583,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$296 = hoistableRoot.querySelector( + var instance$297 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$296) + if (instance$297) return ( (resource.state.loading |= 4), - (resource.instance = instance$296), - markNodeAsHoistable(instance$296), - instance$296 + (resource.instance = instance$297), + markNodeAsHoistable(instance$297), + instance$297 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$296 = ( + instance$297 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$296); - var linkInstance = instance$296; + markNodeAsHoistable(instance$297); + var linkInstance = instance$297; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$296, "link", instance); + setInitialProperties(instance$297, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$296, props.precedence, hoistableRoot); - return (resource.instance = instance$296); + insertStylesheet(instance$297, props.precedence, hoistableRoot); + return (resource.instance = instance$297); case "script": - instance$296 = getScriptKey(props.src); + instance$297 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$296) + getScriptSelectorFromKey(instance$297) )) ) return ( @@ -15558,7 +15622,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$296))) + if ((styleProps = preloadPropsMap.get(instance$297))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16561,16 +16625,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1726 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1729 = React.version; if ( - "19.0.0-www-modern-8b4c54c0-20240904" !== - isomorphicReactPackageVersion$jscomp$inline_1726 + "19.0.0-www-modern-e10e8681-20240904" !== + isomorphicReactPackageVersion$jscomp$inline_1729 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1726, - "19.0.0-www-modern-8b4c54c0-20240904" + isomorphicReactPackageVersion$jscomp$inline_1729, + "19.0.0-www-modern-e10e8681-20240904" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -16586,25 +16650,25 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2210 = { +var internals$jscomp$inline_2213 = { bundleType: 0, - version: "19.0.0-www-modern-8b4c54c0-20240904", + version: "19.0.0-www-modern-e10e8681-20240904", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-modern-e10e8681-20240904" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2211 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2214 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2211.isDisabled && - hook$jscomp$inline_2211.supportsFiber + !hook$jscomp$inline_2214.isDisabled && + hook$jscomp$inline_2214.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2211.inject( - internals$jscomp$inline_2210 + (rendererID = hook$jscomp$inline_2214.inject( + internals$jscomp$inline_2213 )), - (injectedHook = hook$jscomp$inline_2211); + (injectedHook = hook$jscomp$inline_2214); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -16955,4 +17019,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; +exports.version = "19.0.0-www-modern-e10e8681-20240904"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 1741e866adeb1..ec745c6e4688f 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -729,28 +729,37 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -823,6 +832,7 @@ function markRootFinished(root, remainingLanes, spawnedLane) { root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -834,18 +844,18 @@ function markRootFinished(root, remainingLanes, spawnedLane) { 0 < noLongerPendingLanes; ) { - var index$8 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$8; - remainingLanes[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$9 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$9; + remainingLanes[index$9] = 0; + expirationTimes[index$9] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$9]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$9] = null, index$9 = 0; + index$9 < hiddenUpdatesForLane.length; + index$9++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$9]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -865,19 +875,19 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$10 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$10; + (lane & entangledLanes) | (root[index$10] & entangledLanes) && + (root[index$10] |= entangledLanes); rootEntangledLanes &= ~lane; } } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index$11 = 31 - clz32(lanes), - lane = 1 << index$11; - root[index$11].add(fiber); + var index$12 = 31 - clz32(lanes), + lane = 1 << index$12; + root[index$12].add(fiber); lanes &= ~lane; } } @@ -889,27 +899,27 @@ function movePendingFibersToMemoized(root, lanes) { 0 < lanes; ) { - var index$12 = 31 - clz32(lanes); - root = 1 << index$12; - index$12 = pendingUpdatersLaneMap[index$12]; - 0 < index$12.size && - (index$12.forEach(function (fiber) { + var index$13 = 31 - clz32(lanes); + root = 1 << index$13; + index$13 = pendingUpdatersLaneMap[index$13]; + 0 < index$13.size && + (index$13.forEach(function (fiber) { var alternate = fiber.alternate; (null !== alternate && memoizedUpdaters.has(alternate)) || memoizedUpdaters.add(fiber); }), - index$12.clear()); + index$13.clear()); lanes &= ~root; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$14 = 31 - clz32(lanes), - lane = 1 << index$14; - index$14 = root.transitionLanes[index$14]; - null !== index$14 && - index$14.forEach(function (transition) { + var index$15 = 31 - clz32(lanes), + lane = 1 << index$15; + index$15 = root.transitionLanes[index$15]; + null !== index$15 && + index$15.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -919,10 +929,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$15 = 31 - clz32(lanes), - lane = 1 << index$15; - null !== root.transitionLanes[index$15] && - (root.transitionLanes[index$15] = null); + var index$16 = 31 - clz32(lanes), + lane = 1 << index$16; + null !== root.transitionLanes[index$16] && + (root.transitionLanes[index$16] = null); lanes &= ~lane; } } @@ -1096,8 +1106,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$16 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$16 && "aria-" !== prefix$16) { + var prefix$17 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$17 && "aria-" !== prefix$17) { node.removeAttribute(name); return; } @@ -1438,15 +1448,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$22 in styles) - (styleName = styles[styleName$22]), - styles.hasOwnProperty(styleName$22) && - prevStyles[styleName$22] !== styleName && - setValueForStyle(node, styleName$22, styleName); - } else for (var styleName$23 in styles) - styles.hasOwnProperty(styleName$23) && - setValueForStyle(node, styleName$23, styles[styleName$23]); + (styleName = styles[styleName$23]), + styles.hasOwnProperty(styleName$23) && + prevStyles[styleName$23] !== styleName && + setValueForStyle(node, styleName$23, styleName); + } else + for (var styleName$24 in styles) + styles.hasOwnProperty(styleName$24) && + setValueForStyle(node, styleName$24, styles[styleName$24]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -2052,14 +2062,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$28 = firstScheduledRoot; null !== root$28; ) { - if (!onlyLegacy || (!disableLegacyMode && 0 === root$28.tag)) + for (var root$29 = firstScheduledRoot; null !== root$29; ) { + if (!onlyLegacy || (!disableLegacyMode && 0 === root$29.tag)) if (0 !== syncTransitionLanes) { - var pendingLanes = root$28.pendingLanes; + var pendingLanes = root$29.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$28.suspendedLanes, - pingedLanes = root$28.pingedLanes; + var suspendedLanes = root$29.suspendedLanes, + pingedLanes = root$29.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -2073,17 +2083,17 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$28, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$29, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$28, - root$28 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$29, + root$29 === workInProgressRoot ? JSCompiler_inline_result : 0 )), 0 !== (JSCompiler_inline_result & 3) && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$28, JSCompiler_inline_result)); - root$28 = root$28.next; + performSyncWorkOnRoot(root$29, JSCompiler_inline_result)); + root$29 = root$29.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -2127,12 +2137,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$7 = 31 - clz32(pendingLanes), + lane = 1 << index$7, + expirationTime = expirationTimes[index$7]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$7] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -2384,20 +2394,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$33 = workInProgress$jscomp$0.alternate; - null !== current$33 && - ((current$33 = current$33.updateQueue), - (pendingQueue = current$33.lastBaseUpdate), + var current$34 = workInProgress$jscomp$0.alternate; + null !== current$34 && + ((current$34 = current$34.updateQueue), + (pendingQueue = current$34.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$33.firstBaseUpdate = firstPendingUpdate) + ? (current$34.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$33.lastBaseUpdate = lastPendingUpdate))); + (current$34.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$33 = firstPendingUpdate = lastPendingUpdate = null; + current$34 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -2410,8 +2420,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$33 && - (current$33 = current$33.next = + null !== current$34 && + (current$34 = current$34.next = { lane: 0, tag: pendingQueue.tag, @@ -2464,10 +2474,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$33 - ? ((firstPendingUpdate = current$33 = isHiddenUpdate), + null === current$34 + ? ((firstPendingUpdate = current$34 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$33 = current$33.next = isHiddenUpdate), + : (current$34 = current$34.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -2480,10 +2490,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$33 && (lastPendingUpdate = newState); + null === current$34 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$33; + queue.lastBaseUpdate = current$34; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -3362,9 +3372,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$68 = fiber.alternate; - null !== current$68 && - null !== current$68.memoizedState && + var current$69 = fiber.alternate; + null !== current$69 && + null !== current$69.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -3634,16 +3644,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$70 = currentlyRenderingFiber$1.alternate; - null !== current$70 && - ((current$70 = current$70.updateQueue), - null !== current$70 && - ((current$70 = current$70.memoCache), - null != current$70 && + var current$71 = currentlyRenderingFiber$1.alternate; + null !== current$71 && + ((current$71 = current$71.updateQueue), + null !== current$71 && + ((current$71 = current$71.memoCache), + null != current$71 && (memoCache = { data: enableNoCloningMemoCache - ? current$70.data - : current$70.data.map(function (array) { + ? current$71.data + : current$71.data.map(function (array) { return array.slice(); }), index: 0 @@ -3658,11 +3668,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$70 = 0; - current$70 < size; - current$70++ + current$71 = 0; + current$71 < size; + current$71++ ) - updateQueue[current$70] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$71] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -3695,7 +3705,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$71 = !1; + didReadFromEntangledAsyncAction$72 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3716,11 +3726,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$71 = !0); + (didReadFromEntangledAsyncAction$72 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$71 = !0); + (didReadFromEntangledAsyncAction$72 = !0); continue; } else (updateLane = { @@ -3766,7 +3776,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$71 && + didReadFromEntangledAsyncAction$72 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3964,8 +3974,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$77) { - onActionError(actionQueue, node, error$77); + } catch (error$78) { + onActionError(actionQueue, node, error$78); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4414,14 +4424,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$80 = enqueueUpdate(provider, fiber, lane); - null !== root$80 && - (scheduleUpdateOnFiber(root$80, provider, lane), - entangleTransitions(root$80, provider, lane)); + var root$81 = enqueueUpdate(provider, fiber, lane); + null !== root$81 && + (scheduleUpdateOnFiber(root$81, provider, lane), + entangleTransitions(root$81, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$80 && + null !== root$81 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -5092,9 +5102,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$86 in Component) - void 0 === newProps[propName$86] && - (newProps[propName$86] = Component[propName$86]); + for (var propName$87 in Component) + void 0 === newProps[propName$87] && + (newProps[propName$87] = Component[propName$87]); } return newProps; } @@ -5537,10 +5547,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$100 = workInProgress.stateNode; + root$101 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$100.incompleteTransitions.has(transition)) { + if (!root$101.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5548,11 +5558,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$100.incompleteTransitions.set(transition, markerInstance); + root$101.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$100.incompleteTransitions.forEach(function (markerInstance) { + root$101.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -7984,14 +7994,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$143 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$143 = lastTailNode), + for (var lastTailNode$144 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$144 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$143 + null === lastTailNode$144 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$143.sibling = null); + : (lastTailNode$144.sibling = null); } } function bubbleProperties(completedWork) { @@ -8003,53 +8013,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$145 = completedWork.selfBaseDuration, - child$146 = completedWork.child; - null !== child$146; + var treeBaseDuration$146 = completedWork.selfBaseDuration, + child$147 = completedWork.child; + null !== child$147; ) - (newChildLanes |= child$146.lanes | child$146.childLanes), - (subtreeFlags |= child$146.subtreeFlags & 31457280), - (subtreeFlags |= child$146.flags & 31457280), - (treeBaseDuration$145 += child$146.treeBaseDuration), - (child$146 = child$146.sibling); - completedWork.treeBaseDuration = treeBaseDuration$145; + (newChildLanes |= child$147.lanes | child$147.childLanes), + (subtreeFlags |= child$147.subtreeFlags & 31457280), + (subtreeFlags |= child$147.flags & 31457280), + (treeBaseDuration$146 += child$147.treeBaseDuration), + (child$147 = child$147.sibling); + completedWork.treeBaseDuration = treeBaseDuration$146; } else for ( - treeBaseDuration$145 = completedWork.child; - null !== treeBaseDuration$145; + treeBaseDuration$146 = completedWork.child; + null !== treeBaseDuration$146; ) (newChildLanes |= - treeBaseDuration$145.lanes | treeBaseDuration$145.childLanes), - (subtreeFlags |= treeBaseDuration$145.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$145.flags & 31457280), - (treeBaseDuration$145.return = completedWork), - (treeBaseDuration$145 = treeBaseDuration$145.sibling); + treeBaseDuration$146.lanes | treeBaseDuration$146.childLanes), + (subtreeFlags |= treeBaseDuration$146.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$146.flags & 31457280), + (treeBaseDuration$146.return = completedWork), + (treeBaseDuration$146 = treeBaseDuration$146.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$145 = completedWork.actualDuration; - child$146 = completedWork.selfBaseDuration; + treeBaseDuration$146 = completedWork.actualDuration; + child$147 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$145 += child.actualDuration), - (child$146 += child.treeBaseDuration), + (treeBaseDuration$146 += child.actualDuration), + (child$147 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$145; - completedWork.treeBaseDuration = child$146; + completedWork.actualDuration = treeBaseDuration$146; + completedWork.treeBaseDuration = child$147; } else for ( - treeBaseDuration$145 = completedWork.child; - null !== treeBaseDuration$145; + treeBaseDuration$146 = completedWork.child; + null !== treeBaseDuration$146; ) (newChildLanes |= - treeBaseDuration$145.lanes | treeBaseDuration$145.childLanes), - (subtreeFlags |= treeBaseDuration$145.subtreeFlags), - (subtreeFlags |= treeBaseDuration$145.flags), - (treeBaseDuration$145.return = completedWork), - (treeBaseDuration$145 = treeBaseDuration$145.sibling); + treeBaseDuration$146.lanes | treeBaseDuration$146.childLanes), + (subtreeFlags |= treeBaseDuration$146.subtreeFlags), + (subtreeFlags |= treeBaseDuration$146.flags), + (treeBaseDuration$146.return = completedWork), + (treeBaseDuration$146 = treeBaseDuration$146.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -8362,11 +8372,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$161 = null; + var cache$162 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$161 = newProps.memoizedState.cachePool.pool); - cache$161 !== type && (newProps.flags |= 2048); + (cache$162 = newProps.memoizedState.cachePool.pool); + cache$162 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -8410,8 +8420,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$161 = type.rendering; - if (null === cache$161) + cache$162 = type.rendering; + if (null === cache$162) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -8419,11 +8429,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$161 = findFirstSuspended(current); - if (null !== cache$161) { + cache$162 = findFirstSuspended(current); + if (null !== cache$162) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$161.updateQueue; + current = cache$162.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -8448,7 +8458,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$161)), null !== current)) { + if (((current = findFirstSuspended(cache$162)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -8458,7 +8468,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$161.alternate && + !cache$162.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -8471,13 +8481,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$161.sibling = workInProgress.child), - (workInProgress.child = cache$161)) + ? ((cache$162.sibling = workInProgress.child), + (workInProgress.child = cache$162)) : ((current = type.last), null !== current - ? (current.sibling = cache$161) - : (workInProgress.child = cache$161), - (type.last = cache$161)); + ? (current.sibling = cache$162) + : (workInProgress.child = cache$162), + (type.last = cache$162)); } if (null !== type.tail) return ( @@ -8741,8 +8751,8 @@ function safelyCallComponentWillUnmount( } else try { instance.componentWillUnmount(); - } catch (error$179) { - captureCommitPhaseError(current, nearestMountedAncestor, error$179); + } catch (error$180) { + captureCommitPhaseError(current, nearestMountedAncestor, error$180); } } function safelyAttachRef(current, nearestMountedAncestor) { @@ -8803,8 +8813,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$180) { - captureCommitPhaseError(current, nearestMountedAncestor, error$180); + } catch (error$181) { + captureCommitPhaseError(current, nearestMountedAncestor, error$181); } else ref.current = null; } @@ -8841,7 +8851,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$251) { + } catch (e$252) { JSCompiler_temp = null; break a; } @@ -9099,11 +9109,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$182 = commitTime, + var commitTime$183 = commitTime, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof _finishedWork$memoize && - _finishedWork$memoize(id, phase, finishedRoot, commitTime$182); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$183); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -9130,8 +9140,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$184) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$184); + } catch (error$185) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$185); } } function commitClassCallbacks(finishedWork) { @@ -9233,11 +9243,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$185) { + } catch (error$186) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$185 + error$186 ); } else { @@ -9255,11 +9265,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$186) { + } catch (error$187) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$186 + error$187 ); } recordLayoutEffectDuration(finishedWork); @@ -9270,11 +9280,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$187) { + } catch (error$188) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$187 + error$188 ); } } @@ -9835,19 +9845,19 @@ function commitDeletionEffectsOnFiber( } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (null === finishedWork.memoizedState) { - var current$201 = finishedWork.alternate; + var current$202 = finishedWork.alternate; if ( - null !== current$201 && - ((current$201 = current$201.memoizedState), - null !== current$201 && - ((current$201 = current$201.dehydrated), null !== current$201)) + null !== current$202 && + ((current$202 = current$202.memoizedState), + null !== current$202 && + ((current$202 = current$202.dehydrated), null !== current$202)) ) try { - retryIfBlockedOn(current$201); + retryIfBlockedOn(current$202); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$201); + onHydrated && onHydrated(current$202); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9979,22 +9989,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$203) { + } catch (error$204) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$203 + error$204 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$204) { + } catch (error$205) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$204 + error$205 ); } } @@ -10168,11 +10178,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$205) { + } catch (error$206) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$205 + error$206 ); } break; @@ -10209,8 +10219,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$206) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$206); + } catch (error$207) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$207); } } if (flags & 4 && ((root = finishedWork.stateNode), null != root)) { @@ -10220,8 +10230,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(root, maybeNodes, current, hoistableRoot), (root[internalPropsKey] = hoistableRoot); - } catch (error$208) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$208); + } catch (error$209) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$209); } } flags & 1024 && (needsFormReset = !0); @@ -10236,8 +10246,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = finishedWork.memoizedProps; try { flags.nodeValue = current; - } catch (error$209) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$209); + } catch (error$210) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$210); } } break; @@ -10251,8 +10261,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$210) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$210); + } catch (error$211) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$211); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); @@ -10284,8 +10294,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$212) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$212); + } catch (error$213) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$213); } flags = finishedWork.updateQueue; null !== flags && @@ -10363,11 +10373,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$192) { + } catch (error$193) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$192 + error$193 ); } } else if ( @@ -10442,21 +10452,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$193 = JSCompiler_inline_result.stateNode; + var parent$194 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$193, ""), + (setTextContent(parent$194, ""), (JSCompiler_inline_result.flags &= -33)); - var before$194 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$194, parent$193); + var before$195 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$195, parent$194); break; case 3: case 4: - var parent$195 = JSCompiler_inline_result.stateNode.containerInfo, - before$196 = getHostSibling(finishedWork); + var parent$196 = JSCompiler_inline_result.stateNode.containerInfo, + before$197 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$196, - parent$195 + before$197, + parent$196 ); break; default: @@ -10545,7 +10555,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$216 = parentFiber.alternate, + var current$217 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -10573,16 +10583,16 @@ function recursivelyTraverseReappearLayoutEffects( } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$216 = finishedWork.updateQueue; - if (null !== current$216) { - var hiddenCallbacks = current$216.shared.hiddenCallbacks; + current$217 = finishedWork.updateQueue; + if (null !== current$217) { + var hiddenCallbacks = current$217.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$216.shared.hiddenCallbacks = null, current$216 = 0; - current$216 < hiddenCallbacks.length; - current$216++ + current$217.shared.hiddenCallbacks = null, current$217 = 0; + current$217 < hiddenCallbacks.length; + current$217++ ) - callCallback(hiddenCallbacks[current$216], finishedRoot); + callCallback(hiddenCallbacks[current$217], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -10598,7 +10608,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$216 && + null === current$217 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -10611,7 +10621,7 @@ function recursivelyTraverseReappearLayoutEffects( ); includeWorkInProgressEffects && flags & 4 && - commitProfilerUpdate(finishedWork, current$216); + commitProfilerUpdate(finishedWork, current$217); break; case 13: recursivelyTraverseReappearLayoutEffects( @@ -10654,8 +10664,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$217) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$217); + } catch (error$218) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$218); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -10957,9 +10967,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$224 = finishedWork.stateNode; + var instance$225 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$224._visibility & 4 + ? instance$225._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10972,7 +10982,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$224._visibility |= 4), + : ((instance$225._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10980,7 +10990,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$224._visibility |= 4), + : ((instance$225._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10993,7 +11003,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$224 + instance$225 ); break; case 24: @@ -11348,6 +11358,8 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -11464,7 +11476,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) { @@ -11478,11 +11491,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing) ) { var transitionLanesMap = root.transitionLanes, - index$13 = 31 - clz32(lane), - transitions = transitionLanesMap[index$13]; + index$14 = 31 - clz32(lane), + transitions = transitionLanesMap[index$14]; null === transitions && (transitions = new Set()); transitions.add(transition); - transitionLanesMap[index$13] = transitions; + transitionLanesMap[index$14] = transitions; } } root === workInProgressRoot && @@ -11492,7 +11505,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); 2 !== lane || @@ -11523,7 +11537,13 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (0 !== exitStatus) { var renderWasConcurrent = didTimeout; do { - if (6 === exitStatus) markRootSuspended(root, lanes, 0); + if (6 === exitStatus) + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { didTimeout = root.current.alternate; if ( @@ -11555,7 +11575,12 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } if (1 === exitStatus) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = didTimeout; @@ -11571,7 +11596,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -11594,7 +11620,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -11606,7 +11633,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), exitStatus ); @@ -11619,7 +11647,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -11671,7 +11700,8 @@ function commitRootWhenReady( transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -11690,7 +11720,7 @@ function commitRootWhenReady( didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -11738,26 +11768,29 @@ function isRenderConsistentWithExternalStores(finishedWork) { function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings +) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - expirationTimes[index$7] = -1; + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + didSkipSuspendedSiblings[index$8] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11786,13 +11819,18 @@ function performSyncWorkOnRoot(root, lanes) { if (1 === exitStatus) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (6 === exitStatus) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -11858,6 +11896,10 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes); workInProgressRootDidAttachPingListener = !1; workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11876,9 +11918,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$6 = 31 - clz32(allEntangledLanes), + lane = 1 << index$6; + lanes |= root[index$6]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -11980,7 +12022,8 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -12024,8 +12067,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$235) { - handleThrow(root, thrownValue$235); + } catch (thrownValue$236) { + handleThrow(root, thrownValue$236); } while (1); lanes && root.shellSuspendCounter++; @@ -12145,8 +12188,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$237) { - handleThrow(root, thrownValue$237); + } catch (thrownValue$238) { + handleThrow(root, thrownValue$238); } while (1); resetContextDependencies(); @@ -12288,56 +12331,44 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - if (0 !== (root.mode & 2)) { - stopProfilerTimerIfRunningAndRecordDelta(root, !1); - unitOfWork = root.actualDuration; - for (thrownValue = root.child; null !== thrownValue; ) - (unitOfWork += thrownValue.actualDuration), - (thrownValue = thrownValue.sibling); - root.actualDuration = unitOfWork; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = 6; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || 1 === workInProgressSuspendedReason + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - var current$241 = completedWork.alternate; + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings + ); + return; + } + var current$242 = completedWork.alternate; unitOfWork = completedWork.return; 0 === (completedWork.mode & 2) - ? (current$241 = completeWork( - current$241, + ? (current$242 = completeWork( + current$242, completedWork, entangledRenderLanes )) : (startProfilerTimer(completedWork), - (current$241 = completeWork( - current$241, + (current$242 = completeWork( + current$242, completedWork, entangledRenderLanes )), stopProfilerTimerIfRunningAndRecordDelta(completedWork, !1)); - if (null !== current$241) { - workInProgress = current$241; + if (null !== current$242) { + workInProgress = current$242; return; } completedWork = completedWork.sibling; @@ -12349,6 +12380,36 @@ function completeUnitOfWork(unitOfWork) { } while (null !== completedWork); 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); } +function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + if (0 !== (unitOfWork.mode & 2)) { + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !1); + next = unitOfWork.actualDuration; + for (var child = unitOfWork.child; null !== child; ) + (next += child.actualDuration), (child = child.sibling); + unitOfWork.actualDuration = next; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), (next.subtreeFlags = 0), (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = 6; + workInProgress = null; +} function commitRoot( root, recoverableErrors, @@ -12426,13 +12487,13 @@ function commitRootImpl( Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$243 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$244 = commitBeforeMutationEffects( root, finishedWork ); commitTime = now(); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$243 && + shouldFireAfterActiveInstanceBlur$244 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -12517,7 +12578,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$244 = rootWithPendingPassiveEffects, + var root$245 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12532,7 +12593,7 @@ function flushPassiveEffects() { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$244, remainingLanes); + releaseRootPooledCache(root$245, remainingLanes); } } return !1; @@ -12667,6 +12728,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -13113,6 +13175,7 @@ function FiberRootNode( this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -13373,9 +13436,9 @@ function attemptContinuousHydration(fiber) { function getLaneLabelMap() { if (enableSchedulingProfiler) { for ( - var map = new Map(), lane = 1, index$249 = 0; - 31 > index$249; - index$249++ + var map = new Map(), lane = 1, index$250 = 0; + 31 > index$250; + index$250++ ) { var label = getLabelForLane(lane); map.set(lane, label); @@ -13921,19 +13984,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$412; + var JSCompiler_inline_result$jscomp$413; if (canUseDOM) { - var isSupported$jscomp$inline_1629 = "oninput" in document; - if (!isSupported$jscomp$inline_1629) { - var element$jscomp$inline_1630 = document.createElement("div"); - element$jscomp$inline_1630.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1629 = - "function" === typeof element$jscomp$inline_1630.oninput; + var isSupported$jscomp$inline_1630 = "oninput" in document; + if (!isSupported$jscomp$inline_1630) { + var element$jscomp$inline_1631 = document.createElement("div"); + element$jscomp$inline_1631.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1630 = + "function" === typeof element$jscomp$inline_1631.oninput; } - JSCompiler_inline_result$jscomp$412 = isSupported$jscomp$inline_1629; - } else JSCompiler_inline_result$jscomp$412 = !1; + JSCompiler_inline_result$jscomp$413 = isSupported$jscomp$inline_1630; + } else JSCompiler_inline_result$jscomp$413 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$412 && + JSCompiler_inline_result$jscomp$413 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -14344,20 +14407,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1670 = 0; - i$jscomp$inline_1670 < simpleEventPluginEvents.length; - i$jscomp$inline_1670++ + var i$jscomp$inline_1671 = 0; + i$jscomp$inline_1671 < simpleEventPluginEvents.length; + i$jscomp$inline_1671++ ) { - var eventName$jscomp$inline_1671 = - simpleEventPluginEvents[i$jscomp$inline_1670], - domEventName$jscomp$inline_1672 = - eventName$jscomp$inline_1671.toLowerCase(), - capitalizedEvent$jscomp$inline_1673 = - eventName$jscomp$inline_1671[0].toUpperCase() + - eventName$jscomp$inline_1671.slice(1); + var eventName$jscomp$inline_1672 = + simpleEventPluginEvents[i$jscomp$inline_1671], + domEventName$jscomp$inline_1673 = + eventName$jscomp$inline_1672.toLowerCase(), + capitalizedEvent$jscomp$inline_1674 = + eventName$jscomp$inline_1672[0].toUpperCase() + + eventName$jscomp$inline_1672.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1672, - "on" + capitalizedEvent$jscomp$inline_1673 + domEventName$jscomp$inline_1673, + "on" + capitalizedEvent$jscomp$inline_1674 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15650,34 +15713,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$265 = props[hasSrc]; - if (null != propValue$265) + var propValue$266 = props[hasSrc]; + if (null != propValue$266) switch (hasSrc) { case "name": - hasSrcSet = propValue$265; + hasSrcSet = propValue$266; break; case "type": - propValue = propValue$265; + propValue = propValue$266; break; case "checked": - checked = propValue$265; + checked = propValue$266; break; case "defaultChecked": - defaultChecked = propValue$265; + defaultChecked = propValue$266; break; case "value": - propKey = propValue$265; + propKey = propValue$266; break; case "defaultValue": - defaultValue = propValue$265; + defaultValue = propValue$266; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$265) + if (null != propValue$266) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$265, props, null); + setProp(domElement, tag, hasSrc, propValue$266, props, null); } } initInput( @@ -15814,14 +15877,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$265 in props) - props.hasOwnProperty(propValue$265) && - ((hasSrc = props[propValue$265]), + for (propValue$266 in props) + props.hasOwnProperty(propValue$266) && + ((hasSrc = props[propValue$266]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$265, + propValue$266, hasSrc, props, void 0 @@ -15869,14 +15932,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$282 in nextProps) { - var propKey = nextProps[propKey$282]; - lastProp = lastProps[propKey$282]; + for (var propKey$283 in nextProps) { + var propKey = nextProps[propKey$283]; + lastProp = lastProps[propKey$283]; if ( - nextProps.hasOwnProperty(propKey$282) && + nextProps.hasOwnProperty(propKey$283) && (null != propKey || null != lastProp) ) - switch (propKey$282) { + switch (propKey$283) { case "type": type = propKey; break; @@ -15905,7 +15968,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$282, + propKey$283, propKey, nextProps, lastProp @@ -15924,7 +15987,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$282 = null; + propKey = value = defaultValue = propKey$283 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15955,7 +16018,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$282 = type; + propKey$283 = type; break; case "defaultValue": defaultValue = type; @@ -15976,15 +16039,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$282 - ? updateOptions(domElement, !!lastProps, propKey$282, !1) + null != propKey$283 + ? updateOptions(domElement, !!lastProps, propKey$283, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$282 = null; + propKey = propKey$283 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -16008,7 +16071,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$282 = name; + propKey$283 = name; break; case "defaultValue": propKey = name; @@ -16022,17 +16085,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$282, propKey); + updateTextarea(domElement, propKey$283, propKey); return; case "option": - for (var propKey$298 in lastProps) + for (var propKey$299 in lastProps) if ( - ((propKey$282 = lastProps[propKey$298]), - lastProps.hasOwnProperty(propKey$298) && - null != propKey$282 && - !nextProps.hasOwnProperty(propKey$298)) + ((propKey$283 = lastProps[propKey$299]), + lastProps.hasOwnProperty(propKey$299) && + null != propKey$283 && + !nextProps.hasOwnProperty(propKey$299)) ) - switch (propKey$298) { + switch (propKey$299) { case "selected": domElement.selected = !1; break; @@ -16040,33 +16103,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$298, + propKey$299, null, nextProps, - propKey$282 + propKey$283 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$282 = nextProps[lastDefaultValue]), + ((propKey$283 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$282 !== propKey && - (null != propKey$282 || null != propKey)) + propKey$283 !== propKey && + (null != propKey$283 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$282 && - "function" !== typeof propKey$282 && - "symbol" !== typeof propKey$282; + propKey$283 && + "function" !== typeof propKey$283 && + "symbol" !== typeof propKey$283; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$282, + propKey$283, nextProps, propKey ); @@ -16087,24 +16150,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$303 in lastProps) - (propKey$282 = lastProps[propKey$303]), - lastProps.hasOwnProperty(propKey$303) && - null != propKey$282 && - !nextProps.hasOwnProperty(propKey$303) && - setProp(domElement, tag, propKey$303, null, nextProps, propKey$282); + for (var propKey$304 in lastProps) + (propKey$283 = lastProps[propKey$304]), + lastProps.hasOwnProperty(propKey$304) && + null != propKey$283 && + !nextProps.hasOwnProperty(propKey$304) && + setProp(domElement, tag, propKey$304, null, nextProps, propKey$283); for (checked in nextProps) if ( - ((propKey$282 = nextProps[checked]), + ((propKey$283 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$282 !== propKey && - (null != propKey$282 || null != propKey)) + propKey$283 !== propKey && + (null != propKey$283 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$282) + if (null != propKey$283) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -16112,7 +16175,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$282, + propKey$283, nextProps, propKey ); @@ -16120,49 +16183,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$308 in lastProps) - (propKey$282 = lastProps[propKey$308]), - lastProps.hasOwnProperty(propKey$308) && - void 0 !== propKey$282 && - !nextProps.hasOwnProperty(propKey$308) && + for (var propKey$309 in lastProps) + (propKey$283 = lastProps[propKey$309]), + lastProps.hasOwnProperty(propKey$309) && + void 0 !== propKey$283 && + !nextProps.hasOwnProperty(propKey$309) && setPropOnCustomElement( domElement, tag, - propKey$308, + propKey$309, void 0, nextProps, - propKey$282 + propKey$283 ); for (defaultChecked in nextProps) - (propKey$282 = nextProps[defaultChecked]), + (propKey$283 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$282 === propKey || - (void 0 === propKey$282 && void 0 === propKey) || + propKey$283 === propKey || + (void 0 === propKey$283 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$282, + propKey$283, nextProps, propKey ); return; } } - for (var propKey$313 in lastProps) - (propKey$282 = lastProps[propKey$313]), - lastProps.hasOwnProperty(propKey$313) && - null != propKey$282 && - !nextProps.hasOwnProperty(propKey$313) && - setProp(domElement, tag, propKey$313, null, nextProps, propKey$282); + for (var propKey$314 in lastProps) + (propKey$283 = lastProps[propKey$314]), + lastProps.hasOwnProperty(propKey$314) && + null != propKey$283 && + !nextProps.hasOwnProperty(propKey$314) && + setProp(domElement, tag, propKey$314, null, nextProps, propKey$283); for (lastProp in nextProps) - (propKey$282 = nextProps[lastProp]), + (propKey$283 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$282 === propKey || - (null == propKey$282 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$282, nextProps, propKey); + propKey$283 === propKey || + (null == propKey$283 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$283, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -16757,26 +16820,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$321 = getResourcesFromRoot( + var styles$322 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$322 = styles$321.get(type); - resource$322 || + resource$323 = styles$322.get(type); + resource$323 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$322 = { + (resource$323 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$321.set(type, resource$322), - (styles$321 = JSCompiler_inline_result.querySelector( + styles$322.set(type, resource$323), + (styles$322 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$321._p && - ((resource$322.instance = styles$321), - (resource$322.state.loading = 5)), + !styles$322._p && + ((resource$323.instance = styles$322), + (resource$323.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16789,16 +16852,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$321 || + styles$322 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$322.state + resource$323.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$322; + return resource$323; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16895,37 +16958,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$327 = hoistableRoot.querySelector( + var instance$328 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$327) + if (instance$328) return ( (resource.state.loading |= 4), - (resource.instance = instance$327), - markNodeAsHoistable(instance$327), - instance$327 + (resource.instance = instance$328), + markNodeAsHoistable(instance$328), + instance$328 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$327 = ( + instance$328 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$327); - var linkInstance = instance$327; + markNodeAsHoistable(instance$328); + var linkInstance = instance$328; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$327, "link", instance); + setInitialProperties(instance$328, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$327, props.precedence, hoistableRoot); - return (resource.instance = instance$327); + insertStylesheet(instance$328, props.precedence, hoistableRoot); + return (resource.instance = instance$328); case "script": - instance$327 = getScriptKey(props.src); + instance$328 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$327) + getScriptSelectorFromKey(instance$328) )) ) return ( @@ -16934,7 +16997,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$327))) + if ((styleProps = preloadPropsMap.get(instance$328))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17966,16 +18029,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1843 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1844 = React.version; if ( - "19.0.0-www-classic-8b4c54c0-20240904" !== - isomorphicReactPackageVersion$jscomp$inline_1843 + "19.0.0-www-classic-e10e8681-20240904" !== + isomorphicReactPackageVersion$jscomp$inline_1844 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1843, - "19.0.0-www-classic-8b4c54c0-20240904" + isomorphicReactPackageVersion$jscomp$inline_1844, + "19.0.0-www-classic-e10e8681-20240904" ) ); function flushSyncFromReconciler(fn) { @@ -18018,28 +18081,28 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_1850 = { +var internals$jscomp$inline_1851 = { bundleType: 0, - version: "19.0.0-www-classic-8b4c54c0-20240904", + version: "19.0.0-www-classic-e10e8681-20240904", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-classic-e10e8681-20240904" }; enableSchedulingProfiler && - ((internals$jscomp$inline_1850.getLaneLabelMap = getLaneLabelMap), - (internals$jscomp$inline_1850.injectProfilingHooks = injectProfilingHooks)); + ((internals$jscomp$inline_1851.getLaneLabelMap = getLaneLabelMap), + (internals$jscomp$inline_1851.injectProfilingHooks = injectProfilingHooks)); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2292 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2293 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2292.isDisabled && - hook$jscomp$inline_2292.supportsFiber + !hook$jscomp$inline_2293.isDisabled && + hook$jscomp$inline_2293.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2292.inject( - internals$jscomp$inline_1850 + (rendererID = hook$jscomp$inline_2293.inject( + internals$jscomp$inline_1851 )), - (injectedHook = hook$jscomp$inline_2292); + (injectedHook = hook$jscomp$inline_2293); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -18113,11 +18176,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$348); + var instance = getPublicRootInstance(root$349); originalCallback.call(instance); }; } - var root$348 = createHydrationContainer( + var root$349 = createHydrationContainer( initialChildren, callback, container, @@ -18132,23 +18195,23 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$348; - container[internalContainerInstanceKey] = root$348.current; + container._reactRootContainer = root$349; + container[internalContainerInstanceKey] = root$349.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSyncWork$1(); - return root$348; + return root$349; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$349 = callback; + var originalCallback$350 = callback; callback = function () { - var instance = getPublicRootInstance(root$350); - originalCallback$349.call(instance); + var instance = getPublicRootInstance(root$351); + originalCallback$350.call(instance); }; } - var root$350 = createFiberRoot( + var root$351 = createFiberRoot( container, 0, !1, @@ -18162,14 +18225,14 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$350; - container[internalContainerInstanceKey] = root$350.current; + container._reactRootContainer = root$351; + container[internalContainerInstanceKey] = root$351.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); - updateContainerSync(initialChildren, root$350, parentComponent, callback); + updateContainerSync(initialChildren, root$351, parentComponent, callback); flushSyncWork$1(); - return root$350; + return root$351; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -18483,7 +18546,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; +exports.version = "19.0.0-www-classic-e10e8681-20240904"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index ccd7dcf0f0e4e..1041adb17f86e 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -660,28 +660,37 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -754,6 +763,7 @@ function markRootFinished(root, remainingLanes, spawnedLane) { root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -765,18 +775,18 @@ function markRootFinished(root, remainingLanes, spawnedLane) { 0 < noLongerPendingLanes; ) { - var index$8 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$8; - remainingLanes[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$9 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$9; + remainingLanes[index$9] = 0; + expirationTimes[index$9] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$9]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$9] = null, index$9 = 0; + index$9 < hiddenUpdatesForLane.length; + index$9++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$9]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -796,19 +806,19 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$10 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$10; + (lane & entangledLanes) | (root[index$10] & entangledLanes) && + (root[index$10] |= entangledLanes); rootEntangledLanes &= ~lane; } } function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index$11 = 31 - clz32(lanes), - lane = 1 << index$11; - root[index$11].add(fiber); + var index$12 = 31 - clz32(lanes), + lane = 1 << index$12; + root[index$12].add(fiber); lanes &= ~lane; } } @@ -820,27 +830,27 @@ function movePendingFibersToMemoized(root, lanes) { 0 < lanes; ) { - var index$12 = 31 - clz32(lanes); - root = 1 << index$12; - index$12 = pendingUpdatersLaneMap[index$12]; - 0 < index$12.size && - (index$12.forEach(function (fiber) { + var index$13 = 31 - clz32(lanes); + root = 1 << index$13; + index$13 = pendingUpdatersLaneMap[index$13]; + 0 < index$13.size && + (index$13.forEach(function (fiber) { var alternate = fiber.alternate; (null !== alternate && memoizedUpdaters.has(alternate)) || memoizedUpdaters.add(fiber); }), - index$12.clear()); + index$13.clear()); lanes &= ~root; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$14 = 31 - clz32(lanes), - lane = 1 << index$14; - index$14 = root.transitionLanes[index$14]; - null !== index$14 && - index$14.forEach(function (transition) { + var index$15 = 31 - clz32(lanes), + lane = 1 << index$15; + index$15 = root.transitionLanes[index$15]; + null !== index$15 && + index$15.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -850,10 +860,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$15 = 31 - clz32(lanes), - lane = 1 << index$15; - null !== root.transitionLanes[index$15] && - (root.transitionLanes[index$15] = null); + var index$16 = 31 - clz32(lanes), + lane = 1 << index$16; + null !== root.transitionLanes[index$16] && + (root.transitionLanes[index$16] = null); lanes &= ~lane; } } @@ -1027,8 +1037,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$16 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$16 && "aria-" !== prefix$16) { + var prefix$17 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$17 && "aria-" !== prefix$17) { node.removeAttribute(name); return; } @@ -1359,15 +1369,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$22 in styles) - (styleName = styles[styleName$22]), - styles.hasOwnProperty(styleName$22) && - prevStyles[styleName$22] !== styleName && - setValueForStyle(node, styleName$22, styleName); - } else for (var styleName$23 in styles) - styles.hasOwnProperty(styleName$23) && - setValueForStyle(node, styleName$23, styles[styleName$23]); + (styleName = styles[styleName$23]), + styles.hasOwnProperty(styleName$23) && + prevStyles[styleName$23] !== styleName && + setValueForStyle(node, styleName$23, styleName); + } else + for (var styleName$24 in styles) + styles.hasOwnProperty(styleName$24) && + setValueForStyle(node, styleName$24, styles[styleName$24]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1895,14 +1905,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$28 = firstScheduledRoot; null !== root$28; ) { + for (var root$29 = firstScheduledRoot; null !== root$29; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$28.pendingLanes; + var pendingLanes = root$29.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$28.suspendedLanes, - pingedLanes = root$28.pingedLanes; + var suspendedLanes = root$29.suspendedLanes, + pingedLanes = root$29.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -1916,17 +1926,17 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$28, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$29, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$28, - root$28 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$29, + root$29 === workInProgressRoot ? JSCompiler_inline_result : 0 )), 0 !== (JSCompiler_inline_result & 3) && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$28, JSCompiler_inline_result)); - root$28 = root$28.next; + performSyncWorkOnRoot(root$29, JSCompiler_inline_result)); + root$29 = root$29.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -1970,12 +1980,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$7 = 31 - clz32(pendingLanes), + lane = 1 << index$7, + expirationTime = expirationTimes[index$7]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$7] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -2227,20 +2237,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$33 = workInProgress$jscomp$0.alternate; - null !== current$33 && - ((current$33 = current$33.updateQueue), - (pendingQueue = current$33.lastBaseUpdate), + var current$34 = workInProgress$jscomp$0.alternate; + null !== current$34 && + ((current$34 = current$34.updateQueue), + (pendingQueue = current$34.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$33.firstBaseUpdate = firstPendingUpdate) + ? (current$34.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$33.lastBaseUpdate = lastPendingUpdate))); + (current$34.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$33 = firstPendingUpdate = lastPendingUpdate = null; + current$34 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -2253,8 +2263,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$33 && - (current$33 = current$33.next = + null !== current$34 && + (current$34 = current$34.next = { lane: 0, tag: pendingQueue.tag, @@ -2307,10 +2317,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$33 - ? ((firstPendingUpdate = current$33 = isHiddenUpdate), + null === current$34 + ? ((firstPendingUpdate = current$34 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$33 = current$33.next = isHiddenUpdate), + : (current$34 = current$34.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -2323,10 +2333,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$33 && (lastPendingUpdate = newState); + null === current$34 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$33; + queue.lastBaseUpdate = current$34; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -3197,9 +3207,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$68 = fiber.alternate; - null !== current$68 && - null !== current$68.memoizedState && + var current$69 = fiber.alternate; + null !== current$69 && + null !== current$69.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -3469,16 +3479,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$70 = currentlyRenderingFiber$1.alternate; - null !== current$70 && - ((current$70 = current$70.updateQueue), - null !== current$70 && - ((current$70 = current$70.memoCache), - null != current$70 && + var current$71 = currentlyRenderingFiber$1.alternate; + null !== current$71 && + ((current$71 = current$71.updateQueue), + null !== current$71 && + ((current$71 = current$71.memoCache), + null != current$71 && (memoCache = { data: enableNoCloningMemoCache - ? current$70.data - : current$70.data.map(function (array) { + ? current$71.data + : current$71.data.map(function (array) { return array.slice(); }), index: 0 @@ -3493,11 +3503,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$70 = 0; - current$70 < size; - current$70++ + current$71 = 0; + current$71 < size; + current$71++ ) - updateQueue[current$70] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$71] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -3530,7 +3540,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$71 = !1; + didReadFromEntangledAsyncAction$72 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3551,11 +3561,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$71 = !0); + (didReadFromEntangledAsyncAction$72 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$71 = !0); + (didReadFromEntangledAsyncAction$72 = !0); continue; } else (updateLane = { @@ -3601,7 +3611,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$71 && + didReadFromEntangledAsyncAction$72 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3799,8 +3809,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$77) { - onActionError(actionQueue, node, error$77); + } catch (error$78) { + onActionError(actionQueue, node, error$78); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4249,14 +4259,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$80 = enqueueUpdate(provider, fiber, lane); - null !== root$80 && - (scheduleUpdateOnFiber(root$80, provider, lane), - entangleTransitions(root$80, provider, lane)); + var root$81 = enqueueUpdate(provider, fiber, lane); + null !== root$81 && + (scheduleUpdateOnFiber(root$81, provider, lane), + entangleTransitions(root$81, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$80 && + null !== root$81 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4865,9 +4875,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$86 in Component) - void 0 === newProps[propName$86] && - (newProps[propName$86] = Component[propName$86]); + for (var propName$87 in Component) + void 0 === newProps[propName$87] && + (newProps[propName$87] = Component[propName$87]); } return newProps; } @@ -5244,10 +5254,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$99 = workInProgress.stateNode; + root$100 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$99.incompleteTransitions.has(transition)) { + if (!root$100.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5255,11 +5265,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$99.incompleteTransitions.set(transition, markerInstance); + root$100.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$99.incompleteTransitions.forEach(function (markerInstance) { + root$100.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -7559,14 +7569,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$135 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$135 = lastTailNode), + for (var lastTailNode$136 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$136 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$135 + null === lastTailNode$136 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$135.sibling = null); + : (lastTailNode$136.sibling = null); } } function bubbleProperties(completedWork) { @@ -7578,53 +7588,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$137 = completedWork.selfBaseDuration, - child$138 = completedWork.child; - null !== child$138; + var treeBaseDuration$138 = completedWork.selfBaseDuration, + child$139 = completedWork.child; + null !== child$139; ) - (newChildLanes |= child$138.lanes | child$138.childLanes), - (subtreeFlags |= child$138.subtreeFlags & 31457280), - (subtreeFlags |= child$138.flags & 31457280), - (treeBaseDuration$137 += child$138.treeBaseDuration), - (child$138 = child$138.sibling); - completedWork.treeBaseDuration = treeBaseDuration$137; + (newChildLanes |= child$139.lanes | child$139.childLanes), + (subtreeFlags |= child$139.subtreeFlags & 31457280), + (subtreeFlags |= child$139.flags & 31457280), + (treeBaseDuration$138 += child$139.treeBaseDuration), + (child$139 = child$139.sibling); + completedWork.treeBaseDuration = treeBaseDuration$138; } else for ( - treeBaseDuration$137 = completedWork.child; - null !== treeBaseDuration$137; + treeBaseDuration$138 = completedWork.child; + null !== treeBaseDuration$138; ) (newChildLanes |= - treeBaseDuration$137.lanes | treeBaseDuration$137.childLanes), - (subtreeFlags |= treeBaseDuration$137.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$137.flags & 31457280), - (treeBaseDuration$137.return = completedWork), - (treeBaseDuration$137 = treeBaseDuration$137.sibling); + treeBaseDuration$138.lanes | treeBaseDuration$138.childLanes), + (subtreeFlags |= treeBaseDuration$138.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$138.flags & 31457280), + (treeBaseDuration$138.return = completedWork), + (treeBaseDuration$138 = treeBaseDuration$138.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$137 = completedWork.actualDuration; - child$138 = completedWork.selfBaseDuration; + treeBaseDuration$138 = completedWork.actualDuration; + child$139 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$137 += child.actualDuration), - (child$138 += child.treeBaseDuration), + (treeBaseDuration$138 += child.actualDuration), + (child$139 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$137; - completedWork.treeBaseDuration = child$138; + completedWork.actualDuration = treeBaseDuration$138; + completedWork.treeBaseDuration = child$139; } else for ( - treeBaseDuration$137 = completedWork.child; - null !== treeBaseDuration$137; + treeBaseDuration$138 = completedWork.child; + null !== treeBaseDuration$138; ) (newChildLanes |= - treeBaseDuration$137.lanes | treeBaseDuration$137.childLanes), - (subtreeFlags |= treeBaseDuration$137.subtreeFlags), - (subtreeFlags |= treeBaseDuration$137.flags), - (treeBaseDuration$137.return = completedWork), - (treeBaseDuration$137 = treeBaseDuration$137.sibling); + treeBaseDuration$138.lanes | treeBaseDuration$138.childLanes), + (subtreeFlags |= treeBaseDuration$138.subtreeFlags), + (subtreeFlags |= treeBaseDuration$138.flags), + (treeBaseDuration$138.return = completedWork), + (treeBaseDuration$138 = treeBaseDuration$138.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7929,11 +7939,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$153 = null; + var cache$154 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$153 = newProps.memoizedState.cachePool.pool); - cache$153 !== type && (newProps.flags |= 2048); + (cache$154 = newProps.memoizedState.cachePool.pool); + cache$154 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -7972,8 +7982,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$153 = type.rendering; - if (null === cache$153) + cache$154 = type.rendering; + if (null === cache$154) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -7981,11 +7991,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$153 = findFirstSuspended(current); - if (null !== cache$153) { + cache$154 = findFirstSuspended(current); + if (null !== cache$154) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$153.updateQueue; + current = cache$154.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -8010,7 +8020,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$153)), null !== current)) { + if (((current = findFirstSuspended(cache$154)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -8020,7 +8030,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$153.alternate && + !cache$154.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -8033,13 +8043,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$153.sibling = workInProgress.child), - (workInProgress.child = cache$153)) + ? ((cache$154.sibling = workInProgress.child), + (workInProgress.child = cache$154)) : ((current = type.last), null !== current - ? (current.sibling = cache$153) - : (workInProgress.child = cache$153), - (type.last = cache$153)); + ? (current.sibling = cache$154) + : (workInProgress.child = cache$154), + (type.last = cache$154)); } if (null !== type.tail) return ( @@ -8292,8 +8302,8 @@ function safelyCallComponentWillUnmount( } else try { instance.componentWillUnmount(); - } catch (error$170) { - captureCommitPhaseError(current, nearestMountedAncestor, error$170); + } catch (error$171) { + captureCommitPhaseError(current, nearestMountedAncestor, error$171); } } function safelyAttachRef(current, nearestMountedAncestor) { @@ -8354,8 +8364,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordLayoutEffectDuration(current); } else ref(null); - } catch (error$171) { - captureCommitPhaseError(current, nearestMountedAncestor, error$171); + } catch (error$172) { + captureCommitPhaseError(current, nearestMountedAncestor, error$172); } else ref.current = null; } @@ -8392,7 +8402,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$242) { + } catch (e$243) { JSCompiler_temp = null; break a; } @@ -8663,11 +8673,11 @@ function commitPassiveEffectDurations(finishedRoot, finishedWork) { var _finishedWork$memoize = finishedWork.memoizedProps, id = _finishedWork$memoize.id; _finishedWork$memoize = _finishedWork$memoize.onPostCommit; - var commitTime$173 = commitTime, + var commitTime$174 = commitTime, phase = null === finishedWork.alternate ? "mount" : "update"; currentUpdateIsNested && (phase = "nested-update"); "function" === typeof _finishedWork$memoize && - _finishedWork$memoize(id, phase, finishedRoot, commitTime$173); + _finishedWork$memoize(id, phase, finishedRoot, commitTime$174); finishedWork = finishedWork.return; a: for (; null !== finishedWork; ) { switch (finishedWork.tag) { @@ -8694,8 +8704,8 @@ function commitHookLayoutEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$175) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$175); + } catch (error$176) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$176); } } function commitClassCallbacks(finishedWork) { @@ -8797,11 +8807,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$176) { + } catch (error$177) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$176 + error$177 ); } else { @@ -8819,11 +8829,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$177) { + } catch (error$178) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$177 + error$178 ); } recordLayoutEffectDuration(finishedWork); @@ -8834,11 +8844,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$178) { + } catch (error$179) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$178 + error$179 ); } } @@ -9388,19 +9398,19 @@ function commitDeletionEffectsOnFiber( } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (null === finishedWork.memoizedState) { - var current$192 = finishedWork.alternate; + var current$193 = finishedWork.alternate; if ( - null !== current$192 && - ((current$192 = current$192.memoizedState), - null !== current$192 && - ((current$192 = current$192.dehydrated), null !== current$192)) + null !== current$193 && + ((current$193 = current$193.memoizedState), + null !== current$193 && + ((current$193 = current$193.dehydrated), null !== current$193)) ) try { - retryIfBlockedOn(current$192); + retryIfBlockedOn(current$193); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$192); + onHydrated && onHydrated(current$193); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9532,22 +9542,22 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { startLayoutEffectTimer(), commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$194) { + } catch (error$195) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$194 + error$195 ); } recordLayoutEffectDuration(finishedWork); } else try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$195) { + } catch (error$196) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$195 + error$196 ); } } @@ -9721,11 +9731,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$196) { + } catch (error$197) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$196 + error$197 ); } break; @@ -9762,8 +9772,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$197) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$197); + } catch (error$198) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$198); } } if (flags & 4 && ((root = finishedWork.stateNode), null != root)) { @@ -9773,8 +9783,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(root, maybeNodes, current, hoistableRoot), (root[internalPropsKey] = hoistableRoot); - } catch (error$199) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$199); + } catch (error$200) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$200); } } flags & 1024 && (needsFormReset = !0); @@ -9789,8 +9799,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = finishedWork.memoizedProps; try { flags.nodeValue = current; - } catch (error$200) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$200); + } catch (error$201) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$201); } } break; @@ -9804,8 +9814,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$201) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$201); + } catch (error$202) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$202); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); @@ -9837,8 +9847,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$203) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$203); + } catch (error$204) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$204); } flags = finishedWork.updateQueue; null !== flags && @@ -9913,11 +9923,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$183) { + } catch (error$184) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$183 + error$184 ); } } else if ( @@ -9992,21 +10002,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$184 = JSCompiler_inline_result.stateNode; + var parent$185 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$184, ""), + (setTextContent(parent$185, ""), (JSCompiler_inline_result.flags &= -33)); - var before$185 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$185, parent$184); + var before$186 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$186, parent$185); break; case 3: case 4: - var parent$186 = JSCompiler_inline_result.stateNode.containerInfo, - before$187 = getHostSibling(finishedWork); + var parent$187 = JSCompiler_inline_result.stateNode.containerInfo, + before$188 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$187, - parent$186 + before$188, + parent$187 ); break; default: @@ -10095,7 +10105,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$207 = parentFiber.alternate, + var current$208 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -10123,16 +10133,16 @@ function recursivelyTraverseReappearLayoutEffects( } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$207 = finishedWork.updateQueue; - if (null !== current$207) { - var hiddenCallbacks = current$207.shared.hiddenCallbacks; + current$208 = finishedWork.updateQueue; + if (null !== current$208) { + var hiddenCallbacks = current$208.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$207.shared.hiddenCallbacks = null, current$207 = 0; - current$207 < hiddenCallbacks.length; - current$207++ + current$208.shared.hiddenCallbacks = null, current$208 = 0; + current$208 < hiddenCallbacks.length; + current$208++ ) - callCallback(hiddenCallbacks[current$207], finishedRoot); + callCallback(hiddenCallbacks[current$208], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -10148,7 +10158,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$207 && + null === current$208 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -10161,7 +10171,7 @@ function recursivelyTraverseReappearLayoutEffects( ); includeWorkInProgressEffects && flags & 4 && - commitProfilerUpdate(finishedWork, current$207); + commitProfilerUpdate(finishedWork, current$208); break; case 13: recursivelyTraverseReappearLayoutEffects( @@ -10204,8 +10214,8 @@ function commitHookPassiveMountEffects(finishedWork, hookFlags) { } else try { commitHookEffectListMount(hookFlags, finishedWork); - } catch (error$208) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$208); + } catch (error$209) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$209); } } function commitOffscreenPassiveMountEffects(current, finishedWork, instance) { @@ -10496,9 +10506,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$215 = finishedWork.stateNode; + var instance$216 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$215._visibility & 4 + ? instance$216._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10510,7 +10520,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$215._visibility |= 4), + : ((instance$216._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10523,7 +10533,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$215 + instance$216 ); break; case 24: @@ -10878,6 +10888,8 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -10992,7 +11004,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) { @@ -11006,11 +11019,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$13 = 31 - clz32(lane), - transitions = transitionLanesMap[index$13]; + index$14 = 31 - clz32(lane), + transitions = transitionLanesMap[index$14]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$13] = transitions; + transitionLanesMap[index$14] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -11019,7 +11032,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); } @@ -11044,7 +11058,13 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (0 !== exitStatus) { var renderWasConcurrent = didTimeout; do { - if (6 === exitStatus) markRootSuspended(root, lanes, 0); + if (6 === exitStatus) + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { didTimeout = root.current.alternate; if ( @@ -11076,7 +11096,12 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } if (1 === exitStatus) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = didTimeout; @@ -11092,7 +11117,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -11115,7 +11141,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -11127,7 +11154,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), exitStatus ); @@ -11140,7 +11168,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -11192,7 +11221,8 @@ function commitRootWhenReady( transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -11211,7 +11241,7 @@ function commitRootWhenReady( didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -11259,26 +11289,29 @@ function isRenderConsistentWithExternalStores(finishedWork) { function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings +) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - expirationTimes[index$7] = -1; + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + didSkipSuspendedSiblings[index$8] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11307,13 +11340,18 @@ function performSyncWorkOnRoot(root, lanes) { if (1 === exitStatus) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (6 === exitStatus) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -11366,6 +11404,10 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes); workInProgressRootDidAttachPingListener = !1; workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11384,9 +11426,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$6 = 31 - clz32(allEntangledLanes), + lane = 1 << index$6; + lanes |= root[index$6]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -11488,7 +11530,8 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -11532,8 +11575,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$226) { - handleThrow(root, thrownValue$226); + } catch (thrownValue$227) { + handleThrow(root, thrownValue$227); } while (1); lanes && root.shellSuspendCounter++; @@ -11653,8 +11696,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$228) { - handleThrow(root, thrownValue$228); + } catch (thrownValue$229) { + handleThrow(root, thrownValue$229); } while (1); resetContextDependencies(); @@ -11792,56 +11835,44 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - if (0 !== (root.mode & 2)) { - stopProfilerTimerIfRunningAndRecordDelta(root, !1); - unitOfWork = root.actualDuration; - for (thrownValue = root.child; null !== thrownValue; ) - (unitOfWork += thrownValue.actualDuration), - (thrownValue = thrownValue.sibling); - root.actualDuration = unitOfWork; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = 6; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || 1 === workInProgressSuspendedReason + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - var current$232 = completedWork.alternate; + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings + ); + return; + } + var current$233 = completedWork.alternate; unitOfWork = completedWork.return; 0 === (completedWork.mode & 2) - ? (current$232 = completeWork( - current$232, + ? (current$233 = completeWork( + current$233, completedWork, entangledRenderLanes )) : (startProfilerTimer(completedWork), - (current$232 = completeWork( - current$232, + (current$233 = completeWork( + current$233, completedWork, entangledRenderLanes )), stopProfilerTimerIfRunningAndRecordDelta(completedWork, !1)); - if (null !== current$232) { - workInProgress = current$232; + if (null !== current$233) { + workInProgress = current$233; return; } completedWork = completedWork.sibling; @@ -11853,6 +11884,36 @@ function completeUnitOfWork(unitOfWork) { } while (null !== completedWork); 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); } +function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + if (0 !== (unitOfWork.mode & 2)) { + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !1); + next = unitOfWork.actualDuration; + for (var child = unitOfWork.child; null !== child; ) + (next += child.actualDuration), (child = child.sibling); + unitOfWork.actualDuration = next; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), (next.subtreeFlags = 0), (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = 6; + workInProgress = null; +} function commitRoot( root, recoverableErrors, @@ -11930,13 +11991,13 @@ function commitRootImpl( Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$234 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$235 = commitBeforeMutationEffects( root, finishedWork ); commitTime = now(); commitMutationEffects(root, finishedWork, lanes); - shouldFireAfterActiveInstanceBlur$234 && + shouldFireAfterActiveInstanceBlur$235 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -12019,7 +12080,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$235 = rootWithPendingPassiveEffects, + var root$236 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12034,7 +12095,7 @@ function flushPassiveEffects() { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$235, remainingLanes); + releaseRootPooledCache(root$236, remainingLanes); } } return !1; @@ -12169,6 +12230,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -12610,6 +12672,7 @@ function FiberRootNode( this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -12753,9 +12816,9 @@ function attemptContinuousHydration(fiber) { function getLaneLabelMap() { if (enableSchedulingProfiler) { for ( - var map = new Map(), lane = 1, index$240 = 0; - 31 > index$240; - index$240++ + var map = new Map(), lane = 1, index$241 = 0; + 31 > index$241; + index$241++ ) { var label = getLabelForLane(lane); map.set(lane, label); @@ -13329,19 +13392,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$399; + var JSCompiler_inline_result$jscomp$400; if (canUseDOM) { - var isSupported$jscomp$inline_1600 = "oninput" in document; - if (!isSupported$jscomp$inline_1600) { - var element$jscomp$inline_1601 = document.createElement("div"); - element$jscomp$inline_1601.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1600 = - "function" === typeof element$jscomp$inline_1601.oninput; + var isSupported$jscomp$inline_1601 = "oninput" in document; + if (!isSupported$jscomp$inline_1601) { + var element$jscomp$inline_1602 = document.createElement("div"); + element$jscomp$inline_1602.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1601 = + "function" === typeof element$jscomp$inline_1602.oninput; } - JSCompiler_inline_result$jscomp$399 = isSupported$jscomp$inline_1600; - } else JSCompiler_inline_result$jscomp$399 = !1; + JSCompiler_inline_result$jscomp$400 = isSupported$jscomp$inline_1601; + } else JSCompiler_inline_result$jscomp$400 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$399 && + JSCompiler_inline_result$jscomp$400 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13752,20 +13815,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1641 = 0; - i$jscomp$inline_1641 < simpleEventPluginEvents.length; - i$jscomp$inline_1641++ + var i$jscomp$inline_1642 = 0; + i$jscomp$inline_1642 < simpleEventPluginEvents.length; + i$jscomp$inline_1642++ ) { - var eventName$jscomp$inline_1642 = - simpleEventPluginEvents[i$jscomp$inline_1641], - domEventName$jscomp$inline_1643 = - eventName$jscomp$inline_1642.toLowerCase(), - capitalizedEvent$jscomp$inline_1644 = - eventName$jscomp$inline_1642[0].toUpperCase() + - eventName$jscomp$inline_1642.slice(1); + var eventName$jscomp$inline_1643 = + simpleEventPluginEvents[i$jscomp$inline_1642], + domEventName$jscomp$inline_1644 = + eventName$jscomp$inline_1643.toLowerCase(), + capitalizedEvent$jscomp$inline_1645 = + eventName$jscomp$inline_1643[0].toUpperCase() + + eventName$jscomp$inline_1643.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1643, - "on" + capitalizedEvent$jscomp$inline_1644 + domEventName$jscomp$inline_1644, + "on" + capitalizedEvent$jscomp$inline_1645 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15054,34 +15117,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$256 = props[hasSrc]; - if (null != propValue$256) + var propValue$257 = props[hasSrc]; + if (null != propValue$257) switch (hasSrc) { case "name": - hasSrcSet = propValue$256; + hasSrcSet = propValue$257; break; case "type": - propKey = propValue$256; + propKey = propValue$257; break; case "checked": - checked = propValue$256; + checked = propValue$257; break; case "defaultChecked": - defaultChecked = propValue$256; + defaultChecked = propValue$257; break; case "value": - propValue = propValue$256; + propValue = propValue$257; break; case "defaultValue": - defaultValue = propValue$256; + defaultValue = propValue$257; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$256) + if (null != propValue$257) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$256, props, null); + setProp(domElement, tag, hasSrc, propValue$257, props, null); } } initInput( @@ -15217,14 +15280,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$256 in props) - props.hasOwnProperty(propValue$256) && - ((hasSrc = props[propValue$256]), + for (propValue$257 in props) + props.hasOwnProperty(propValue$257) && + ((hasSrc = props[propValue$257]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$256, + propValue$257, hasSrc, props, void 0 @@ -15272,14 +15335,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$273 in nextProps) { - var propKey = nextProps[propKey$273]; - lastProp = lastProps[propKey$273]; + for (var propKey$274 in nextProps) { + var propKey = nextProps[propKey$274]; + lastProp = lastProps[propKey$274]; if ( - nextProps.hasOwnProperty(propKey$273) && + nextProps.hasOwnProperty(propKey$274) && (null != propKey || null != lastProp) ) - switch (propKey$273) { + switch (propKey$274) { case "type": type = propKey; break; @@ -15308,7 +15371,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$273, + propKey$274, propKey, nextProps, lastProp @@ -15327,7 +15390,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$273 = null; + propKey = value = defaultValue = propKey$274 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15358,7 +15421,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$273 = type; + propKey$274 = type; break; case "defaultValue": defaultValue = type; @@ -15379,15 +15442,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$273 - ? updateOptions(domElement, !!lastProps, propKey$273, !1) + null != propKey$274 + ? updateOptions(domElement, !!lastProps, propKey$274, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$273 = null; + propKey = propKey$274 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15411,7 +15474,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$273 = name; + propKey$274 = name; break; case "defaultValue": propKey = name; @@ -15425,17 +15488,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$273, propKey); + updateTextarea(domElement, propKey$274, propKey); return; case "option": - for (var propKey$289 in lastProps) + for (var propKey$290 in lastProps) if ( - ((propKey$273 = lastProps[propKey$289]), - lastProps.hasOwnProperty(propKey$289) && - null != propKey$273 && - !nextProps.hasOwnProperty(propKey$289)) + ((propKey$274 = lastProps[propKey$290]), + lastProps.hasOwnProperty(propKey$290) && + null != propKey$274 && + !nextProps.hasOwnProperty(propKey$290)) ) - switch (propKey$289) { + switch (propKey$290) { case "selected": domElement.selected = !1; break; @@ -15443,33 +15506,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$289, + propKey$290, null, nextProps, - propKey$273 + propKey$274 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$273 = nextProps[lastDefaultValue]), + ((propKey$274 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$273 !== propKey && - (null != propKey$273 || null != propKey)) + propKey$274 !== propKey && + (null != propKey$274 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$273 && - "function" !== typeof propKey$273 && - "symbol" !== typeof propKey$273; + propKey$274 && + "function" !== typeof propKey$274 && + "symbol" !== typeof propKey$274; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$273, + propKey$274, nextProps, propKey ); @@ -15490,24 +15553,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$294 in lastProps) - (propKey$273 = lastProps[propKey$294]), - lastProps.hasOwnProperty(propKey$294) && - null != propKey$273 && - !nextProps.hasOwnProperty(propKey$294) && - setProp(domElement, tag, propKey$294, null, nextProps, propKey$273); + for (var propKey$295 in lastProps) + (propKey$274 = lastProps[propKey$295]), + lastProps.hasOwnProperty(propKey$295) && + null != propKey$274 && + !nextProps.hasOwnProperty(propKey$295) && + setProp(domElement, tag, propKey$295, null, nextProps, propKey$274); for (checked in nextProps) if ( - ((propKey$273 = nextProps[checked]), + ((propKey$274 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$273 !== propKey && - (null != propKey$273 || null != propKey)) + propKey$274 !== propKey && + (null != propKey$274 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$273) + if (null != propKey$274) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15515,7 +15578,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$273, + propKey$274, nextProps, propKey ); @@ -15523,49 +15586,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$299 in lastProps) - (propKey$273 = lastProps[propKey$299]), - lastProps.hasOwnProperty(propKey$299) && - void 0 !== propKey$273 && - !nextProps.hasOwnProperty(propKey$299) && + for (var propKey$300 in lastProps) + (propKey$274 = lastProps[propKey$300]), + lastProps.hasOwnProperty(propKey$300) && + void 0 !== propKey$274 && + !nextProps.hasOwnProperty(propKey$300) && setPropOnCustomElement( domElement, tag, - propKey$299, + propKey$300, void 0, nextProps, - propKey$273 + propKey$274 ); for (defaultChecked in nextProps) - (propKey$273 = nextProps[defaultChecked]), + (propKey$274 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$273 === propKey || - (void 0 === propKey$273 && void 0 === propKey) || + propKey$274 === propKey || + (void 0 === propKey$274 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$273, + propKey$274, nextProps, propKey ); return; } } - for (var propKey$304 in lastProps) - (propKey$273 = lastProps[propKey$304]), - lastProps.hasOwnProperty(propKey$304) && - null != propKey$273 && - !nextProps.hasOwnProperty(propKey$304) && - setProp(domElement, tag, propKey$304, null, nextProps, propKey$273); + for (var propKey$305 in lastProps) + (propKey$274 = lastProps[propKey$305]), + lastProps.hasOwnProperty(propKey$305) && + null != propKey$274 && + !nextProps.hasOwnProperty(propKey$305) && + setProp(domElement, tag, propKey$305, null, nextProps, propKey$274); for (lastProp in nextProps) - (propKey$273 = nextProps[lastProp]), + (propKey$274 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$273 === propKey || - (null == propKey$273 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$273, nextProps, propKey); + propKey$274 === propKey || + (null == propKey$274 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$274, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -16143,26 +16206,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$312 = getResourcesFromRoot( + var styles$313 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$313 = styles$312.get(type); - resource$313 || + resource$314 = styles$313.get(type); + resource$314 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$313 = { + (resource$314 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$312.set(type, resource$313), - (styles$312 = JSCompiler_inline_result.querySelector( + styles$313.set(type, resource$314), + (styles$313 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$312._p && - ((resource$313.instance = styles$312), - (resource$313.state.loading = 5)), + !styles$313._p && + ((resource$314.instance = styles$313), + (resource$314.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16175,16 +16238,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$312 || + styles$313 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$313.state + resource$314.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$313; + return resource$314; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16281,37 +16344,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$318 = hoistableRoot.querySelector( + var instance$319 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$318) + if (instance$319) return ( (resource.state.loading |= 4), - (resource.instance = instance$318), - markNodeAsHoistable(instance$318), - instance$318 + (resource.instance = instance$319), + markNodeAsHoistable(instance$319), + instance$319 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$318 = ( + instance$319 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$318); - var linkInstance = instance$318; + markNodeAsHoistable(instance$319); + var linkInstance = instance$319; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$318, "link", instance); + setInitialProperties(instance$319, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$318, props.precedence, hoistableRoot); - return (resource.instance = instance$318); + insertStylesheet(instance$319, props.precedence, hoistableRoot); + return (resource.instance = instance$319); case "script": - instance$318 = getScriptKey(props.src); + instance$319 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$318) + getScriptSelectorFromKey(instance$319) )) ) return ( @@ -16320,7 +16383,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$318))) + if ((styleProps = preloadPropsMap.get(instance$319))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17323,16 +17386,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1814 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1815 = React.version; if ( - "19.0.0-www-modern-8b4c54c0-20240904" !== - isomorphicReactPackageVersion$jscomp$inline_1814 + "19.0.0-www-modern-e10e8681-20240904" !== + isomorphicReactPackageVersion$jscomp$inline_1815 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1814, - "19.0.0-www-modern-8b4c54c0-20240904" + isomorphicReactPackageVersion$jscomp$inline_1815, + "19.0.0-www-modern-e10e8681-20240904" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17348,28 +17411,28 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_1816 = { +var internals$jscomp$inline_1817 = { bundleType: 0, - version: "19.0.0-www-modern-8b4c54c0-20240904", + version: "19.0.0-www-modern-e10e8681-20240904", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-modern-e10e8681-20240904" }; enableSchedulingProfiler && - ((internals$jscomp$inline_1816.getLaneLabelMap = getLaneLabelMap), - (internals$jscomp$inline_1816.injectProfilingHooks = injectProfilingHooks)); + ((internals$jscomp$inline_1817.getLaneLabelMap = getLaneLabelMap), + (internals$jscomp$inline_1817.injectProfilingHooks = injectProfilingHooks)); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2284 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2285 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2284.isDisabled && - hook$jscomp$inline_2284.supportsFiber + !hook$jscomp$inline_2285.isDisabled && + hook$jscomp$inline_2285.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2284.inject( - internals$jscomp$inline_1816 + (rendererID = hook$jscomp$inline_2285.inject( + internals$jscomp$inline_1817 )), - (injectedHook = hook$jscomp$inline_2284); + (injectedHook = hook$jscomp$inline_2285); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17720,7 +17783,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; +exports.version = "19.0.0-www-modern-e10e8681-20240904"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 59b02c5ca451e..9af3fec59a69b 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -8987,5 +8987,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; + exports.version = "19.0.0-www-classic-e10e8681-20240904"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index b794e9c2d8d11..bff90e371c3be 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -8805,5 +8805,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; + exports.version = "19.0.0-www-modern-e10e8681-20240904"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 9c06627355839..e39f10ee04ee7 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -5912,4 +5912,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; +exports.version = "19.0.0-www-classic-e10e8681-20240904"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index fe822184e7014..4e27e590b5062 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -5824,4 +5824,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; +exports.version = "19.0.0-www-modern-e10e8681-20240904"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index a2e23a93fc7d0..00cde92565d81 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -956,28 +956,37 @@ __DEV__ && var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -1058,6 +1067,7 @@ __DEV__ && root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -15758,7 +15768,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if ( @@ -15816,7 +15827,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); 2 !== lane || @@ -15851,7 +15863,12 @@ __DEV__ && var renderWasConcurrent = shouldTimeSlice; do { if (didTimeout === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { shouldTimeSlice = root.current.alternate; if ( @@ -15883,7 +15900,12 @@ __DEV__ && } if (didTimeout === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = shouldTimeSlice; @@ -15899,7 +15921,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -15934,7 +15957,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -15946,7 +15970,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), didTimeout ); @@ -15959,7 +15984,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -16014,7 +16040,8 @@ __DEV__ && transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -16033,7 +16060,7 @@ __DEV__ && didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -16081,7 +16108,9 @@ __DEV__ && function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), + (root.pingedLanes = 0), + (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -16089,19 +16118,22 @@ __DEV__ && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didSkipSuspendedSiblings[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -16131,13 +16163,18 @@ __DEV__ && if (exitStatus === RootFatalErrored) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (exitStatus === RootDidNotComplete) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -16204,6 +16241,12 @@ __DEV__ && workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressDeferredLane = @@ -16329,7 +16372,8 @@ __DEV__ && markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -16679,43 +16723,27 @@ __DEV__ && workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - if ((root.mode & ProfileMode) !== NoMode) { - stopProfilerTimerIfRunningAndRecordDelta(root, !1); - unitOfWork = root.actualDuration; - for (thrownValue = root.child; null !== thrownValue; ) - (unitOfWork += thrownValue.actualDuration), - (thrownValue = thrownValue.sibling); - root.actualDuration = unitOfWork; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = RootDidNotComplete; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || workInProgressSuspendedReason === SuspendedOnError + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - 0 !== (completedWork.flags & 32768) && - error$jscomp$0( - "Internal React error: Expected this fiber to be complete, but it isn't. It should have been unwound. This is a bug in React." + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings ); + return; + } var current = completedWork.alternate; unitOfWork = completedWork.return; (completedWork.mode & ProfileMode) === NoMode @@ -16749,6 +16777,38 @@ __DEV__ && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); } + function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + if ((unitOfWork.mode & ProfileMode) !== NoMode) { + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !1); + next = unitOfWork.actualDuration; + for (var child = unitOfWork.child; null !== child; ) + (next += child.actualDuration), (child = child.sibling); + unitOfWork.actualDuration = next; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), + (next.subtreeFlags = 0), + (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + } function commitRoot( root, recoverableErrors, @@ -17168,6 +17228,7 @@ __DEV__ && var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -17979,6 +18040,7 @@ __DEV__ && this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -27041,6 +27103,8 @@ __DEV__ && SuspendedOnHydration = 8, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -27891,11 +27955,11 @@ __DEV__ && : flushSyncErrorInBuildsThatSupportLegacyMode; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-8b4c54c0-20240904" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-e10e8681-20240904" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-classic-8b4c54c0-20240904\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-e10e8681-20240904\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27939,11 +28003,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-8b4c54c0-20240904", + version: "19.0.0-www-classic-e10e8681-20240904", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-classic-e10e8681-20240904" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28762,5 +28826,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; + exports.version = "19.0.0-www-classic-e10e8681-20240904"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index bf49c55c38207..55c167b0b0c8e 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -940,28 +940,37 @@ __DEV__ && var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -1042,6 +1051,7 @@ __DEV__ && root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -15216,7 +15226,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if ( @@ -15273,7 +15284,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); } @@ -15301,7 +15313,12 @@ __DEV__ && var renderWasConcurrent = shouldTimeSlice; do { if (didTimeout === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { shouldTimeSlice = root.current.alternate; if ( @@ -15333,7 +15350,12 @@ __DEV__ && } if (didTimeout === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = shouldTimeSlice; @@ -15349,7 +15371,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -15384,7 +15407,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -15396,7 +15420,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), didTimeout ); @@ -15409,7 +15434,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -15464,7 +15490,8 @@ __DEV__ && transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -15483,7 +15510,7 @@ __DEV__ && didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -15531,7 +15558,9 @@ __DEV__ && function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), + (root.pingedLanes = 0), + (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -15539,19 +15568,22 @@ __DEV__ && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didSkipSuspendedSiblings[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -15581,13 +15613,18 @@ __DEV__ && if (exitStatus === RootFatalErrored) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (exitStatus === RootDidNotComplete) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -15640,6 +15677,12 @@ __DEV__ && workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressDeferredLane = @@ -15765,7 +15808,8 @@ __DEV__ && markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -16111,43 +16155,27 @@ __DEV__ && workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - if ((root.mode & ProfileMode) !== NoMode) { - stopProfilerTimerIfRunningAndRecordDelta(root, !1); - unitOfWork = root.actualDuration; - for (thrownValue = root.child; null !== thrownValue; ) - (unitOfWork += thrownValue.actualDuration), - (thrownValue = thrownValue.sibling); - root.actualDuration = unitOfWork; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = RootDidNotComplete; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || workInProgressSuspendedReason === SuspendedOnError + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - 0 !== (completedWork.flags & 32768) && - error$jscomp$0( - "Internal React error: Expected this fiber to be complete, but it isn't. It should have been unwound. This is a bug in React." + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings ); + return; + } var current = completedWork.alternate; unitOfWork = completedWork.return; (completedWork.mode & ProfileMode) === NoMode @@ -16181,6 +16209,38 @@ __DEV__ && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); } + function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + if ((unitOfWork.mode & ProfileMode) !== NoMode) { + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !1); + next = unitOfWork.actualDuration; + for (var child = unitOfWork.child; null !== child; ) + (next += child.actualDuration), (child = child.sibling); + unitOfWork.actualDuration = next; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), + (next.subtreeFlags = 0), + (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + } function commitRoot( root, recoverableErrors, @@ -16598,6 +16658,7 @@ __DEV__ && var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -17361,6 +17422,7 @@ __DEV__ && this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -26126,6 +26188,8 @@ __DEV__ && SuspendedOnHydration = 8, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -26976,11 +27040,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-8b4c54c0-20240904" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-e10e8681-20240904" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-modern-8b4c54c0-20240904\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-e10e8681-20240904\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27023,11 +27087,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-8b4c54c0-20240904", + version: "19.0.0-www-modern-e10e8681-20240904", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-modern-e10e8681-20240904" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27798,5 +27862,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; + exports.version = "19.0.0-www-modern-e10e8681-20240904"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 1d5661ec8887e..c73cb8337e091 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -634,28 +634,37 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -728,6 +737,7 @@ function markRootFinished(root, remainingLanes, spawnedLane) { root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -739,18 +749,18 @@ function markRootFinished(root, remainingLanes, spawnedLane) { 0 < noLongerPendingLanes; ) { - var index$8 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$8; - remainingLanes[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$9 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$9; + remainingLanes[index$9] = 0; + expirationTimes[index$9] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$9]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$9] = null, index$9 = 0; + index$9 < hiddenUpdatesForLane.length; + index$9++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$9]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -770,21 +780,21 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$10 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$10; + (lane & entangledLanes) | (root[index$10] & entangledLanes) && + (root[index$10] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - index$12 = root.transitionLanes[index$12]; - null !== index$12 && - index$12.forEach(function (transition) { + var index$13 = 31 - clz32(lanes), + lane = 1 << index$13; + index$13 = root.transitionLanes[index$13]; + null !== index$13 && + index$13.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -794,10 +804,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$13 = 31 - clz32(lanes), - lane = 1 << index$13; - null !== root.transitionLanes[index$13] && - (root.transitionLanes[index$13] = null); + var index$14 = 31 - clz32(lanes), + lane = 1 << index$14; + null !== root.transitionLanes[index$14] && + (root.transitionLanes[index$14] = null); lanes &= ~lane; } } @@ -1057,8 +1067,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$14 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$14 && "aria-" !== prefix$14) { + var prefix$15 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$15 && "aria-" !== prefix$15) { node.removeAttribute(name); return; } @@ -1399,15 +1409,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$20 in styles) - (styleName = styles[styleName$20]), - styles.hasOwnProperty(styleName$20) && - prevStyles[styleName$20] !== styleName && - setValueForStyle(node, styleName$20, styleName); - } else for (var styleName$21 in styles) - styles.hasOwnProperty(styleName$21) && - setValueForStyle(node, styleName$21, styles[styleName$21]); + (styleName = styles[styleName$21]), + styles.hasOwnProperty(styleName$21) && + prevStyles[styleName$21] !== styleName && + setValueForStyle(node, styleName$21, styleName); + } else + for (var styleName$22 in styles) + styles.hasOwnProperty(styleName$22) && + setValueForStyle(node, styleName$22, styles[styleName$22]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -2013,14 +2023,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$26 = firstScheduledRoot; null !== root$26; ) { - if (!onlyLegacy || (!disableLegacyMode && 0 === root$26.tag)) + for (var root$27 = firstScheduledRoot; null !== root$27; ) { + if (!onlyLegacy || (!disableLegacyMode && 0 === root$27.tag)) if (0 !== syncTransitionLanes) { - var pendingLanes = root$26.pendingLanes; + var pendingLanes = root$27.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$26.suspendedLanes, - pingedLanes = root$26.pingedLanes; + var suspendedLanes = root$27.suspendedLanes, + pingedLanes = root$27.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -2034,17 +2044,17 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$27, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$26, - root$26 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$27, + root$27 === workInProgressRoot ? JSCompiler_inline_result : 0 )), 0 !== (JSCompiler_inline_result & 3) && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); - root$26 = root$26.next; + performSyncWorkOnRoot(root$27, JSCompiler_inline_result)); + root$27 = root$27.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -2088,12 +2098,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$7 = 31 - clz32(pendingLanes), + lane = 1 << index$7, + expirationTime = expirationTimes[index$7]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$7] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -2345,20 +2355,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$31 = workInProgress$jscomp$0.alternate; - null !== current$31 && - ((current$31 = current$31.updateQueue), - (pendingQueue = current$31.lastBaseUpdate), + var current$32 = workInProgress$jscomp$0.alternate; + null !== current$32 && + ((current$32 = current$32.updateQueue), + (pendingQueue = current$32.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$31.firstBaseUpdate = firstPendingUpdate) + ? (current$32.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$31.lastBaseUpdate = lastPendingUpdate))); + (current$32.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$31 = firstPendingUpdate = lastPendingUpdate = null; + current$32 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -2371,8 +2381,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$31 && - (current$31 = current$31.next = + null !== current$32 && + (current$32 = current$32.next = { lane: 0, tag: pendingQueue.tag, @@ -2425,10 +2435,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$31 - ? ((firstPendingUpdate = current$31 = isHiddenUpdate), + null === current$32 + ? ((firstPendingUpdate = current$32 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$31 = current$31.next = isHiddenUpdate), + : (current$32 = current$32.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -2441,10 +2451,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$31 && (lastPendingUpdate = newState); + null === current$32 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$31; + queue.lastBaseUpdate = current$32; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -3323,9 +3333,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$66 = fiber.alternate; - null !== current$66 && - null !== current$66.memoizedState && + var current$67 = fiber.alternate; + null !== current$67 && + null !== current$67.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -3595,16 +3605,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$68 = currentlyRenderingFiber$1.alternate; - null !== current$68 && - ((current$68 = current$68.updateQueue), - null !== current$68 && - ((current$68 = current$68.memoCache), - null != current$68 && + var current$69 = currentlyRenderingFiber$1.alternate; + null !== current$69 && + ((current$69 = current$69.updateQueue), + null !== current$69 && + ((current$69 = current$69.memoCache), + null != current$69 && (memoCache = { data: enableNoCloningMemoCache - ? current$68.data - : current$68.data.map(function (array) { + ? current$69.data + : current$69.data.map(function (array) { return array.slice(); }), index: 0 @@ -3619,11 +3629,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$68 = 0; - current$68 < size; - current$68++ + current$69 = 0; + current$69 < size; + current$69++ ) - updateQueue[current$68] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$69] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -3656,7 +3666,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$69 = !1; + didReadFromEntangledAsyncAction$70 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3677,11 +3687,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$69 = !0); + (didReadFromEntangledAsyncAction$70 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$69 = !0); + (didReadFromEntangledAsyncAction$70 = !0); continue; } else (updateLane = { @@ -3727,7 +3737,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$69 && + didReadFromEntangledAsyncAction$70 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3925,8 +3935,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$75) { - onActionError(actionQueue, node, error$75); + } catch (error$76) { + onActionError(actionQueue, node, error$76); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4375,14 +4385,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(provider); fiber = createUpdate(lane); - var root$78 = enqueueUpdate(provider, fiber, lane); - null !== root$78 && - (scheduleUpdateOnFiber(root$78, provider, lane), - entangleTransitions(root$78, provider, lane)); + var root$79 = enqueueUpdate(provider, fiber, lane); + null !== root$79 && + (scheduleUpdateOnFiber(root$79, provider, lane), + entangleTransitions(root$79, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$78 && + null !== root$79 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4981,9 +4991,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$82 in Component) - void 0 === newProps[propName$82] && - (newProps[propName$82] = Component[propName$82]); + for (var propName$83 in Component) + void 0 === newProps[propName$83] && + (newProps[propName$83] = Component[propName$83]); } return newProps; } @@ -5425,10 +5435,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$96 = workInProgress.stateNode; + root$97 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$96.incompleteTransitions.has(transition)) { + if (!root$97.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5436,11 +5446,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$96.incompleteTransitions.set(transition, markerInstance); + root$97.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$96.incompleteTransitions.forEach(function (markerInstance) { + root$97.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -7833,14 +7843,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$138 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$138 = lastTailNode), + for (var lastTailNode$139 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$139 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$138 + null === lastTailNode$139 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$138.sibling = null); + : (lastTailNode$139.sibling = null); } } function bubbleProperties(completedWork) { @@ -7850,19 +7860,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$139 = completedWork.child; null !== child$139; ) - (newChildLanes |= child$139.lanes | child$139.childLanes), - (subtreeFlags |= child$139.subtreeFlags & 31457280), - (subtreeFlags |= child$139.flags & 31457280), - (child$139.return = completedWork), - (child$139 = child$139.sibling); + for (var child$140 = completedWork.child; null !== child$140; ) + (newChildLanes |= child$140.lanes | child$140.childLanes), + (subtreeFlags |= child$140.subtreeFlags & 31457280), + (subtreeFlags |= child$140.flags & 31457280), + (child$140.return = completedWork), + (child$140 = child$140.sibling); else - for (child$139 = completedWork.child; null !== child$139; ) - (newChildLanes |= child$139.lanes | child$139.childLanes), - (subtreeFlags |= child$139.subtreeFlags), - (subtreeFlags |= child$139.flags), - (child$139.return = completedWork), - (child$139 = child$139.sibling); + for (child$140 = completedWork.child; null !== child$140; ) + (newChildLanes |= child$140.lanes | child$140.childLanes), + (subtreeFlags |= child$140.subtreeFlags), + (subtreeFlags |= child$140.flags), + (child$140.return = completedWork), + (child$140 = child$140.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -8159,11 +8169,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$151 = null; + var cache$152 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$151 = newProps.memoizedState.cachePool.pool); - cache$151 !== type && (newProps.flags |= 2048); + (cache$152 = newProps.memoizedState.cachePool.pool); + cache$152 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -8202,8 +8212,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$151 = type.rendering; - if (null === cache$151) + cache$152 = type.rendering; + if (null === cache$152) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -8211,11 +8221,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$151 = findFirstSuspended(current); - if (null !== cache$151) { + cache$152 = findFirstSuspended(current); + if (null !== cache$152) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$151.updateQueue; + current = cache$152.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -8240,7 +8250,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$151)), null !== current)) { + if (((current = findFirstSuspended(cache$152)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -8250,7 +8260,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$151.alternate && + !cache$152.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -8263,13 +8273,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$151.sibling = workInProgress.child), - (workInProgress.child = cache$151)) + ? ((cache$152.sibling = workInProgress.child), + (workInProgress.child = cache$152)) : ((current = type.last), null !== current - ? (current.sibling = cache$151) - : (workInProgress.child = cache$151), - (type.last = cache$151)); + ? (current.sibling = cache$152) + : (workInProgress.child = cache$152), + (type.last = cache$152)); } if (null !== type.tail) return ( @@ -8554,8 +8564,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$169) { - captureCommitPhaseError(current, nearestMountedAncestor, error$169); + } catch (error$170) { + captureCommitPhaseError(current, nearestMountedAncestor, error$170); } else ref.current = null; } @@ -8592,7 +8602,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$230) { + } catch (e$231) { JSCompiler_temp = null; break a; } @@ -8862,11 +8872,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$171) { + } catch (error$172) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$171 + error$172 ); } } @@ -9413,19 +9423,19 @@ function commitDeletionEffectsOnFiber( } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (null === finishedWork.memoizedState) { - var current$183 = finishedWork.alternate; + var current$184 = finishedWork.alternate; if ( - null !== current$183 && - ((current$183 = current$183.memoizedState), - null !== current$183 && - ((current$183 = current$183.dehydrated), null !== current$183)) + null !== current$184 && + ((current$184 = current$184.memoizedState), + null !== current$184 && + ((current$184 = current$184.dehydrated), null !== current$184)) ) try { - retryIfBlockedOn(current$183); + retryIfBlockedOn(current$184); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$183); + onHydrated && onHydrated(current$184); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9543,8 +9553,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$185) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$185); + } catch (error$186) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$186); } } break; @@ -9717,11 +9727,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$186) { + } catch (error$187) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$186 + error$187 ); } break; @@ -9758,8 +9768,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$187) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$187); + } catch (error$188) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$188); } } if (flags & 4 && ((root = finishedWork.stateNode), null != root)) { @@ -9769,8 +9779,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(root, maybeNodes, current, hoistableRoot), (root[internalPropsKey] = hoistableRoot); - } catch (error$189) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$189); + } catch (error$190) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$190); } } flags & 1024 && (needsFormReset = !0); @@ -9785,8 +9795,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = finishedWork.memoizedProps; try { flags.nodeValue = current; - } catch (error$190) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$190); + } catch (error$191) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$191); } } break; @@ -9800,8 +9810,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$191) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$191); + } catch (error$192) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$192); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); @@ -9833,8 +9843,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$193) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$193); + } catch (error$194) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$194); } flags = finishedWork.updateQueue; null !== flags && @@ -9912,11 +9922,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$174) { + } catch (error$175) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$174 + error$175 ); } } else if ( @@ -9991,21 +10001,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$175 = JSCompiler_inline_result.stateNode; + var parent$176 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$175, ""), + (setTextContent(parent$176, ""), (JSCompiler_inline_result.flags &= -33)); - var before$176 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$176, parent$175); + var before$177 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$177, parent$176); break; case 3: case 4: - var parent$177 = JSCompiler_inline_result.stateNode.containerInfo, - before$178 = getHostSibling(finishedWork); + var parent$178 = JSCompiler_inline_result.stateNode.containerInfo, + before$179 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$178, - parent$177 + before$179, + parent$178 ); break; default: @@ -10081,7 +10091,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$197 = parentFiber.alternate, + var current$198 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -10109,16 +10119,16 @@ function recursivelyTraverseReappearLayoutEffects( } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$197 = finishedWork.updateQueue; - if (null !== current$197) { - var hiddenCallbacks = current$197.shared.hiddenCallbacks; + current$198 = finishedWork.updateQueue; + if (null !== current$198) { + var hiddenCallbacks = current$198.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$197.shared.hiddenCallbacks = null, current$197 = 0; - current$197 < hiddenCallbacks.length; - current$197++ + current$198.shared.hiddenCallbacks = null, current$198 = 0; + current$198 < hiddenCallbacks.length; + current$198++ ) - callCallback(hiddenCallbacks[current$197], finishedRoot); + callCallback(hiddenCallbacks[current$198], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -10134,7 +10144,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$197 && + null === current$198 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -10481,9 +10491,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$204 = finishedWork.stateNode; + var instance$205 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$204._visibility & 4 + ? instance$205._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10496,7 +10506,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$204._visibility |= 4), + : ((instance$205._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10504,7 +10514,7 @@ function recursivelyTraverseReconnectPassiveEffects( committedTransitions, includeWorkInProgressEffects )) - : ((instance$204._visibility |= 4), + : ((instance$205._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10517,7 +10527,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$204 + instance$205 ); break; case 24: @@ -10857,12 +10867,12 @@ function findFiberRootForHostRoot(hostRoot) { a: { hostRoot = [hostRoot]; for (maybeFiber = 0; maybeFiber < hostRoot.length; ) { - var current$299 = hostRoot[maybeFiber++]; - if (current$299[internalContainerInstanceKey]) { - hostRoot = getInstanceFromNode(current$299); + var current$300 = hostRoot[maybeFiber++]; + if (current$300[internalContainerInstanceKey]) { + hostRoot = getInstanceFromNode(current$300); break a; } - hostRoot.push.apply(hostRoot, current$299.children); + hostRoot.push.apply(hostRoot, current$300.children); } hostRoot = null; } @@ -11039,6 +11049,8 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -11154,7 +11166,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) { @@ -11167,11 +11180,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing) ) { var transitionLanesMap = root.transitionLanes, - index$11 = 31 - clz32(lane), - transitions = transitionLanesMap[index$11]; + index$12 = 31 - clz32(lane), + transitions = transitionLanesMap[index$12]; null === transitions && (transitions = new Set()); transitions.add(transition); - transitionLanesMap[index$11] = transitions; + transitionLanesMap[index$12] = transitions; } } root === workInProgressRoot && @@ -11181,7 +11194,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); 2 !== lane || @@ -11211,7 +11225,13 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (0 !== exitStatus) { var renderWasConcurrent = didTimeout; do { - if (6 === exitStatus) markRootSuspended(root, lanes, 0); + if (6 === exitStatus) + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { didTimeout = root.current.alternate; if ( @@ -11243,7 +11263,12 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } if (1 === exitStatus) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = didTimeout; @@ -11259,7 +11284,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -11282,7 +11308,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -11294,7 +11321,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), exitStatus ); @@ -11307,7 +11335,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -11359,7 +11388,8 @@ function commitRootWhenReady( transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -11378,7 +11408,7 @@ function commitRootWhenReady( didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -11426,26 +11456,29 @@ function isRenderConsistentWithExternalStores(finishedWork) { function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings +) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - expirationTimes[index$7] = -1; + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + didSkipSuspendedSiblings[index$8] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11472,13 +11505,18 @@ function performSyncWorkOnRoot(root, lanes) { if (1 === exitStatus) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (6 === exitStatus) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -11544,6 +11582,10 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes); workInProgressRootDidAttachPingListener = !1; workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11562,9 +11604,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$6 = 31 - clz32(allEntangledLanes), + lane = 1 << index$6; + lanes |= root[index$6]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -11636,7 +11678,8 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -11671,8 +11714,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$216) { - handleThrow(root, thrownValue$216); + } catch (thrownValue$217) { + handleThrow(root, thrownValue$217); } while (1); lanes && root.shellSuspendCounter++; @@ -11781,8 +11824,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$218) { - handleThrow(root, thrownValue$218); + } catch (thrownValue$219) { + handleThrow(root, thrownValue$219); } while (1); resetContextDependencies(); @@ -11892,31 +11935,27 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = 6; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || 1 === workInProgressSuspendedReason + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings + ); + return; + } unitOfWork = completedWork.return; var next = completeWork( completedWork.alternate, @@ -11936,6 +11975,29 @@ function completeUnitOfWork(unitOfWork) { } while (null !== completedWork); 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); } +function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), (next.subtreeFlags = 0), (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = 6; + workInProgress = null; +} function commitRoot( root, recoverableErrors, @@ -12007,12 +12069,12 @@ function commitRootImpl( Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$224 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$225 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$224 && + shouldFireAfterActiveInstanceBlur$225 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -12084,7 +12146,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$225 = rootWithPendingPassiveEffects, + var root$226 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12099,7 +12161,7 @@ function flushPassiveEffects() { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$225, remainingLanes); + releaseRootPooledCache(root$226, remainingLanes); } } return !1; @@ -12207,6 +12269,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -12631,6 +12694,7 @@ function FiberRootNode( this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -13414,19 +13478,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$393; + var JSCompiler_inline_result$jscomp$394; if (canUseDOM) { - var isSupported$jscomp$inline_1571 = "oninput" in document; - if (!isSupported$jscomp$inline_1571) { - var element$jscomp$inline_1572 = document.createElement("div"); - element$jscomp$inline_1572.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1571 = - "function" === typeof element$jscomp$inline_1572.oninput; + var isSupported$jscomp$inline_1574 = "oninput" in document; + if (!isSupported$jscomp$inline_1574) { + var element$jscomp$inline_1575 = document.createElement("div"); + element$jscomp$inline_1575.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1574 = + "function" === typeof element$jscomp$inline_1575.oninput; } - JSCompiler_inline_result$jscomp$393 = isSupported$jscomp$inline_1571; - } else JSCompiler_inline_result$jscomp$393 = !1; + JSCompiler_inline_result$jscomp$394 = isSupported$jscomp$inline_1574; + } else JSCompiler_inline_result$jscomp$394 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$393 && + JSCompiler_inline_result$jscomp$394 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13837,20 +13901,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1612 = 0; - i$jscomp$inline_1612 < simpleEventPluginEvents.length; - i$jscomp$inline_1612++ + var i$jscomp$inline_1615 = 0; + i$jscomp$inline_1615 < simpleEventPluginEvents.length; + i$jscomp$inline_1615++ ) { - var eventName$jscomp$inline_1613 = - simpleEventPluginEvents[i$jscomp$inline_1612], - domEventName$jscomp$inline_1614 = - eventName$jscomp$inline_1613.toLowerCase(), - capitalizedEvent$jscomp$inline_1615 = - eventName$jscomp$inline_1613[0].toUpperCase() + - eventName$jscomp$inline_1613.slice(1); + var eventName$jscomp$inline_1616 = + simpleEventPluginEvents[i$jscomp$inline_1615], + domEventName$jscomp$inline_1617 = + eventName$jscomp$inline_1616.toLowerCase(), + capitalizedEvent$jscomp$inline_1618 = + eventName$jscomp$inline_1616[0].toUpperCase() + + eventName$jscomp$inline_1616.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1614, - "on" + capitalizedEvent$jscomp$inline_1615 + domEventName$jscomp$inline_1617, + "on" + capitalizedEvent$jscomp$inline_1618 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15143,34 +15207,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$244 = props[hasSrc]; - if (null != propValue$244) + var propValue$245 = props[hasSrc]; + if (null != propValue$245) switch (hasSrc) { case "name": - hasSrcSet = propValue$244; + hasSrcSet = propValue$245; break; case "type": - propValue = propValue$244; + propValue = propValue$245; break; case "checked": - checked = propValue$244; + checked = propValue$245; break; case "defaultChecked": - defaultChecked = propValue$244; + defaultChecked = propValue$245; break; case "value": - propKey = propValue$244; + propKey = propValue$245; break; case "defaultValue": - defaultValue = propValue$244; + defaultValue = propValue$245; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$244) + if (null != propValue$245) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$244, props, null); + setProp(domElement, tag, hasSrc, propValue$245, props, null); } } initInput( @@ -15307,14 +15371,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$244 in props) - props.hasOwnProperty(propValue$244) && - ((hasSrc = props[propValue$244]), + for (propValue$245 in props) + props.hasOwnProperty(propValue$245) && + ((hasSrc = props[propValue$245]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$244, + propValue$245, hasSrc, props, void 0 @@ -15362,14 +15426,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$261 in nextProps) { - var propKey = nextProps[propKey$261]; - lastProp = lastProps[propKey$261]; + for (var propKey$262 in nextProps) { + var propKey = nextProps[propKey$262]; + lastProp = lastProps[propKey$262]; if ( - nextProps.hasOwnProperty(propKey$261) && + nextProps.hasOwnProperty(propKey$262) && (null != propKey || null != lastProp) ) - switch (propKey$261) { + switch (propKey$262) { case "type": type = propKey; break; @@ -15398,7 +15462,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$261, + propKey$262, propKey, nextProps, lastProp @@ -15417,7 +15481,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$261 = null; + propKey = value = defaultValue = propKey$262 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -15448,7 +15512,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$261 = type; + propKey$262 = type; break; case "defaultValue": defaultValue = type; @@ -15469,15 +15533,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$261 - ? updateOptions(domElement, !!lastProps, propKey$261, !1) + null != propKey$262 + ? updateOptions(domElement, !!lastProps, propKey$262, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$261 = null; + propKey = propKey$262 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -15501,7 +15565,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$261 = name; + propKey$262 = name; break; case "defaultValue": propKey = name; @@ -15515,17 +15579,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$261, propKey); + updateTextarea(domElement, propKey$262, propKey); return; case "option": - for (var propKey$277 in lastProps) + for (var propKey$278 in lastProps) if ( - ((propKey$261 = lastProps[propKey$277]), - lastProps.hasOwnProperty(propKey$277) && - null != propKey$261 && - !nextProps.hasOwnProperty(propKey$277)) + ((propKey$262 = lastProps[propKey$278]), + lastProps.hasOwnProperty(propKey$278) && + null != propKey$262 && + !nextProps.hasOwnProperty(propKey$278)) ) - switch (propKey$277) { + switch (propKey$278) { case "selected": domElement.selected = !1; break; @@ -15533,33 +15597,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$277, + propKey$278, null, nextProps, - propKey$261 + propKey$262 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$261 = nextProps[lastDefaultValue]), + ((propKey$262 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$261 !== propKey && - (null != propKey$261 || null != propKey)) + propKey$262 !== propKey && + (null != propKey$262 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$261 && - "function" !== typeof propKey$261 && - "symbol" !== typeof propKey$261; + propKey$262 && + "function" !== typeof propKey$262 && + "symbol" !== typeof propKey$262; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$261, + propKey$262, nextProps, propKey ); @@ -15580,24 +15644,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$282 in lastProps) - (propKey$261 = lastProps[propKey$282]), - lastProps.hasOwnProperty(propKey$282) && - null != propKey$261 && - !nextProps.hasOwnProperty(propKey$282) && - setProp(domElement, tag, propKey$282, null, nextProps, propKey$261); + for (var propKey$283 in lastProps) + (propKey$262 = lastProps[propKey$283]), + lastProps.hasOwnProperty(propKey$283) && + null != propKey$262 && + !nextProps.hasOwnProperty(propKey$283) && + setProp(domElement, tag, propKey$283, null, nextProps, propKey$262); for (checked in nextProps) if ( - ((propKey$261 = nextProps[checked]), + ((propKey$262 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$261 !== propKey && - (null != propKey$261 || null != propKey)) + propKey$262 !== propKey && + (null != propKey$262 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$261) + if (null != propKey$262) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15605,7 +15669,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$261, + propKey$262, nextProps, propKey ); @@ -15613,49 +15677,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$287 in lastProps) - (propKey$261 = lastProps[propKey$287]), - lastProps.hasOwnProperty(propKey$287) && - void 0 !== propKey$261 && - !nextProps.hasOwnProperty(propKey$287) && + for (var propKey$288 in lastProps) + (propKey$262 = lastProps[propKey$288]), + lastProps.hasOwnProperty(propKey$288) && + void 0 !== propKey$262 && + !nextProps.hasOwnProperty(propKey$288) && setPropOnCustomElement( domElement, tag, - propKey$287, + propKey$288, void 0, nextProps, - propKey$261 + propKey$262 ); for (defaultChecked in nextProps) - (propKey$261 = nextProps[defaultChecked]), + (propKey$262 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$261 === propKey || - (void 0 === propKey$261 && void 0 === propKey) || + propKey$262 === propKey || + (void 0 === propKey$262 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$261, + propKey$262, nextProps, propKey ); return; } } - for (var propKey$292 in lastProps) - (propKey$261 = lastProps[propKey$292]), - lastProps.hasOwnProperty(propKey$292) && - null != propKey$261 && - !nextProps.hasOwnProperty(propKey$292) && - setProp(domElement, tag, propKey$292, null, nextProps, propKey$261); + for (var propKey$293 in lastProps) + (propKey$262 = lastProps[propKey$293]), + lastProps.hasOwnProperty(propKey$293) && + null != propKey$262 && + !nextProps.hasOwnProperty(propKey$293) && + setProp(domElement, tag, propKey$293, null, nextProps, propKey$262); for (lastProp in nextProps) - (propKey$261 = nextProps[lastProp]), + (propKey$262 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$261 === propKey || - (null == propKey$261 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$261, nextProps, propKey); + propKey$262 === propKey || + (null == propKey$262 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$262, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -16307,26 +16371,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$301 = getResourcesFromRoot( + var styles$302 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$302 = styles$301.get(type); - resource$302 || + resource$303 = styles$302.get(type); + resource$303 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$302 = { + (resource$303 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$301.set(type, resource$302), - (styles$301 = JSCompiler_inline_result.querySelector( + styles$302.set(type, resource$303), + (styles$302 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$301._p && - ((resource$302.instance = styles$301), - (resource$302.state.loading = 5)), + !styles$302._p && + ((resource$303.instance = styles$302), + (resource$303.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -16339,16 +16403,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$301 || + styles$302 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$302.state + resource$303.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$302; + return resource$303; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -16445,37 +16509,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$307 = hoistableRoot.querySelector( + var instance$308 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$307) + if (instance$308) return ( (resource.state.loading |= 4), - (resource.instance = instance$307), - markNodeAsHoistable(instance$307), - instance$307 + (resource.instance = instance$308), + markNodeAsHoistable(instance$308), + instance$308 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$307 = ( + instance$308 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$307); - var linkInstance = instance$307; + markNodeAsHoistable(instance$308); + var linkInstance = instance$308; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$307, "link", instance); + setInitialProperties(instance$308, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$307, props.precedence, hoistableRoot); - return (resource.instance = instance$307); + insertStylesheet(instance$308, props.precedence, hoistableRoot); + return (resource.instance = instance$308); case "script": - instance$307 = getScriptKey(props.src); + instance$308 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$307) + getScriptSelectorFromKey(instance$308) )) ) return ( @@ -16484,7 +16548,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$307))) + if ((styleProps = preloadPropsMap.get(instance$308))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -17516,16 +17580,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1785 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1788 = React.version; if ( - "19.0.0-www-classic-8b4c54c0-20240904" !== - isomorphicReactPackageVersion$jscomp$inline_1785 + "19.0.0-www-classic-e10e8681-20240904" !== + isomorphicReactPackageVersion$jscomp$inline_1788 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1785, - "19.0.0-www-classic-8b4c54c0-20240904" + isomorphicReactPackageVersion$jscomp$inline_1788, + "19.0.0-www-classic-e10e8681-20240904" ) ); function flushSyncFromReconciler(fn) { @@ -17568,25 +17632,25 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2254 = { +var internals$jscomp$inline_2257 = { bundleType: 0, - version: "19.0.0-www-classic-8b4c54c0-20240904", + version: "19.0.0-www-classic-e10e8681-20240904", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-classic-e10e8681-20240904" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2255 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2258 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2255.isDisabled && - hook$jscomp$inline_2255.supportsFiber + !hook$jscomp$inline_2258.isDisabled && + hook$jscomp$inline_2258.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2255.inject( - internals$jscomp$inline_2254 + (rendererID = hook$jscomp$inline_2258.inject( + internals$jscomp$inline_2257 )), - (injectedHook = hook$jscomp$inline_2255); + (injectedHook = hook$jscomp$inline_2258); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17660,11 +17724,11 @@ function legacyCreateRootFromDOMContainer( if ("function" === typeof callback) { var originalCallback = callback; callback = function () { - var instance = getPublicRootInstance(root$328); + var instance = getPublicRootInstance(root$329); originalCallback.call(instance); }; } - var root$328 = createHydrationContainer( + var root$329 = createHydrationContainer( initialChildren, callback, container, @@ -17679,23 +17743,23 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$328; - container[internalContainerInstanceKey] = root$328.current; + container._reactRootContainer = root$329; + container[internalContainerInstanceKey] = root$329.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); flushSyncWork$1(); - return root$328; + return root$329; } clearContainer(container); if ("function" === typeof callback) { - var originalCallback$329 = callback; + var originalCallback$330 = callback; callback = function () { - var instance = getPublicRootInstance(root$330); - originalCallback$329.call(instance); + var instance = getPublicRootInstance(root$331); + originalCallback$330.call(instance); }; } - var root$330 = createFiberRoot( + var root$331 = createFiberRoot( container, 0, !1, @@ -17709,14 +17773,14 @@ function legacyCreateRootFromDOMContainer( null, null ); - container._reactRootContainer = root$330; - container[internalContainerInstanceKey] = root$330.current; + container._reactRootContainer = root$331; + container[internalContainerInstanceKey] = root$331.current; listenToAllSupportedEvents( 8 === container.nodeType ? container.parentNode : container ); - updateContainerSync(initialChildren, root$330, parentComponent, callback); + updateContainerSync(initialChildren, root$331, parentComponent, callback); flushSyncWork$1(); - return root$330; + return root$331; } function legacyRenderSubtreeIntoContainer( parentComponent, @@ -18181,4 +18245,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; +exports.version = "19.0.0-www-classic-e10e8681-20240904"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 487e88b773f7a..8f648266fad2e 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -565,28 +565,37 @@ function getNextLanes(root, wipLanes) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -659,6 +668,7 @@ function markRootFinished(root, remainingLanes, spawnedLane) { root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -670,18 +680,18 @@ function markRootFinished(root, remainingLanes, spawnedLane) { 0 < noLongerPendingLanes; ) { - var index$8 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$8; - remainingLanes[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$9 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$9; + remainingLanes[index$9] = 0; + expirationTimes[index$9] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$9]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$9] = null, index$9 = 0; + index$9 < hiddenUpdatesForLane.length; + index$9++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$9]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -701,21 +711,21 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$10 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$10; + (lane & entangledLanes) | (root[index$10] & entangledLanes) && + (root[index$10] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - index$12 = root.transitionLanes[index$12]; - null !== index$12 && - index$12.forEach(function (transition) { + var index$13 = 31 - clz32(lanes), + lane = 1 << index$13; + index$13 = root.transitionLanes[index$13]; + null !== index$13 && + index$13.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -725,10 +735,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$13 = 31 - clz32(lanes), - lane = 1 << index$13; - null !== root.transitionLanes[index$13] && - (root.transitionLanes[index$13] = null); + var index$14 = 31 - clz32(lanes), + lane = 1 << index$14; + null !== root.transitionLanes[index$14] && + (root.transitionLanes[index$14] = null); lanes &= ~lane; } } @@ -988,8 +998,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$14 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$14 && "aria-" !== prefix$14) { + var prefix$15 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$15 && "aria-" !== prefix$15) { node.removeAttribute(name); return; } @@ -1320,15 +1330,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$20 in styles) - (styleName = styles[styleName$20]), - styles.hasOwnProperty(styleName$20) && - prevStyles[styleName$20] !== styleName && - setValueForStyle(node, styleName$20, styleName); - } else for (var styleName$21 in styles) - styles.hasOwnProperty(styleName$21) && - setValueForStyle(node, styleName$21, styles[styleName$21]); + (styleName = styles[styleName$21]), + styles.hasOwnProperty(styleName$21) && + prevStyles[styleName$21] !== styleName && + setValueForStyle(node, styleName$21, styleName); + } else + for (var styleName$22 in styles) + styles.hasOwnProperty(styleName$22) && + setValueForStyle(node, styleName$22, styles[styleName$22]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1856,14 +1866,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$26 = firstScheduledRoot; null !== root$26; ) { + for (var root$27 = firstScheduledRoot; null !== root$27; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$26.pendingLanes; + var pendingLanes = root$27.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$26.suspendedLanes, - pingedLanes = root$26.pingedLanes; + var suspendedLanes = root$27.suspendedLanes, + pingedLanes = root$27.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -1877,17 +1887,17 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$27, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$26, - root$26 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$27, + root$27 === workInProgressRoot ? JSCompiler_inline_result : 0 )), 0 !== (JSCompiler_inline_result & 3) && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$26, JSCompiler_inline_result)); - root$26 = root$26.next; + performSyncWorkOnRoot(root$27, JSCompiler_inline_result)); + root$27 = root$27.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -1931,12 +1941,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$7 = 31 - clz32(pendingLanes), + lane = 1 << index$7, + expirationTime = expirationTimes[index$7]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$7] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -2188,20 +2198,20 @@ function processUpdateQueue( ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$31 = workInProgress$jscomp$0.alternate; - null !== current$31 && - ((current$31 = current$31.updateQueue), - (pendingQueue = current$31.lastBaseUpdate), + var current$32 = workInProgress$jscomp$0.alternate; + null !== current$32 && + ((current$32 = current$32.updateQueue), + (pendingQueue = current$32.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$31.firstBaseUpdate = firstPendingUpdate) + ? (current$32.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$31.lastBaseUpdate = lastPendingUpdate))); + (current$32.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$31 = firstPendingUpdate = lastPendingUpdate = null; + current$32 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -2214,8 +2224,8 @@ function processUpdateQueue( 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$31 && - (current$31 = current$31.next = + null !== current$32 && + (current$32 = current$32.next = { lane: 0, tag: pendingQueue.tag, @@ -2268,10 +2278,10 @@ function processUpdateQueue( callback: pendingQueue.callback, next: null }), - null === current$31 - ? ((firstPendingUpdate = current$31 = isHiddenUpdate), + null === current$32 + ? ((firstPendingUpdate = current$32 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$31 = current$31.next = isHiddenUpdate), + : (current$32 = current$32.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -2284,10 +2294,10 @@ function processUpdateQueue( (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$31 && (lastPendingUpdate = newState); + null === current$32 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$31; + queue.lastBaseUpdate = current$32; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -3158,9 +3168,9 @@ function pushOffscreenSuspenseHandler(fiber) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$66 = fiber.alternate; - null !== current$66 && - null !== current$66.memoizedState && + var current$67 = fiber.alternate; + null !== current$67 && + null !== current$67.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -3430,16 +3440,16 @@ function useMemoCache(size) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$68 = currentlyRenderingFiber$1.alternate; - null !== current$68 && - ((current$68 = current$68.updateQueue), - null !== current$68 && - ((current$68 = current$68.memoCache), - null != current$68 && + var current$69 = currentlyRenderingFiber$1.alternate; + null !== current$69 && + ((current$69 = current$69.updateQueue), + null !== current$69 && + ((current$69 = current$69.memoCache), + null != current$69 && (memoCache = { data: enableNoCloningMemoCache - ? current$68.data - : current$68.data.map(function (array) { + ? current$69.data + : current$69.data.map(function (array) { return array.slice(); }), index: 0 @@ -3454,11 +3464,11 @@ function useMemoCache(size) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$68 = 0; - current$68 < size; - current$68++ + current$69 = 0; + current$69 < size; + current$69++ ) - updateQueue[current$68] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$69] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -3491,7 +3501,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$69 = !1; + didReadFromEntangledAsyncAction$70 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3512,11 +3522,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$69 = !0); + (didReadFromEntangledAsyncAction$70 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$69 = !0); + (didReadFromEntangledAsyncAction$70 = !0); continue; } else (updateLane = { @@ -3562,7 +3572,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$69 && + didReadFromEntangledAsyncAction$70 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -3760,8 +3770,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$75) { - onActionError(actionQueue, node, error$75); + } catch (error$76) { + onActionError(actionQueue, node, error$76); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4210,14 +4220,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$78 = enqueueUpdate(provider, fiber, lane); - null !== root$78 && - (scheduleUpdateOnFiber(root$78, provider, lane), - entangleTransitions(root$78, provider, lane)); + var root$79 = enqueueUpdate(provider, fiber, lane); + null !== root$79 && + (scheduleUpdateOnFiber(root$79, provider, lane), + entangleTransitions(root$79, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$78 && + null !== root$79 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -4754,9 +4764,9 @@ function resolveClassComponentProps( (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$82 in Component) - void 0 === newProps[propName$82] && - (newProps[propName$82] = Component[propName$82]); + for (var propName$83 in Component) + void 0 === newProps[propName$83] && + (newProps[propName$83] = Component[propName$83]); } return newProps; } @@ -5132,10 +5142,10 @@ var markerInstanceStack = createCursor(null); function pushRootMarkerInstance(workInProgress) { if (enableTransitionTracing) { var transitions = workInProgressTransitions, - root$95 = workInProgress.stateNode; + root$96 = workInProgress.stateNode; null !== transitions && transitions.forEach(function (transition) { - if (!root$95.incompleteTransitions.has(transition)) { + if (!root$96.incompleteTransitions.has(transition)) { var markerInstance = { tag: 0, transitions: new Set([transition]), @@ -5143,11 +5153,11 @@ function pushRootMarkerInstance(workInProgress) { aborts: null, name: null }; - root$95.incompleteTransitions.set(transition, markerInstance); + root$96.incompleteTransitions.set(transition, markerInstance); } }); var markerInstances = []; - root$95.incompleteTransitions.forEach(function (markerInstance) { + root$96.incompleteTransitions.forEach(function (markerInstance) { markerInstances.push(markerInstance); }); push(markerInstanceStack, markerInstances); @@ -7425,14 +7435,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$130 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$130 = lastTailNode), + for (var lastTailNode$131 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$131 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$130 + null === lastTailNode$131 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$130.sibling = null); + : (lastTailNode$131.sibling = null); } } function bubbleProperties(completedWork) { @@ -7442,19 +7452,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$131 = completedWork.child; null !== child$131; ) - (newChildLanes |= child$131.lanes | child$131.childLanes), - (subtreeFlags |= child$131.subtreeFlags & 31457280), - (subtreeFlags |= child$131.flags & 31457280), - (child$131.return = completedWork), - (child$131 = child$131.sibling); + for (var child$132 = completedWork.child; null !== child$132; ) + (newChildLanes |= child$132.lanes | child$132.childLanes), + (subtreeFlags |= child$132.subtreeFlags & 31457280), + (subtreeFlags |= child$132.flags & 31457280), + (child$132.return = completedWork), + (child$132 = child$132.sibling); else - for (child$131 = completedWork.child; null !== child$131; ) - (newChildLanes |= child$131.lanes | child$131.childLanes), - (subtreeFlags |= child$131.subtreeFlags), - (subtreeFlags |= child$131.flags), - (child$131.return = completedWork), - (child$131 = child$131.sibling); + for (child$132 = completedWork.child; null !== child$132; ) + (newChildLanes |= child$132.lanes | child$132.childLanes), + (subtreeFlags |= child$132.subtreeFlags), + (subtreeFlags |= child$132.flags), + (child$132.return = completedWork), + (child$132 = child$132.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7743,11 +7753,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$143 = null; + var cache$144 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$143 = newProps.memoizedState.cachePool.pool); - cache$143 !== type && (newProps.flags |= 2048); + (cache$144 = newProps.memoizedState.cachePool.pool); + cache$144 !== type && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -7781,8 +7791,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$143 = type.rendering; - if (null === cache$143) + cache$144 = type.rendering; + if (null === cache$144) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -7790,11 +7800,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$143 = findFirstSuspended(current); - if (null !== cache$143) { + cache$144 = findFirstSuspended(current); + if (null !== cache$144) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$143.updateQueue; + current = cache$144.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -7819,7 +7829,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$143)), null !== current)) { + if (((current = findFirstSuspended(cache$144)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -7829,7 +7839,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$143.alternate && + !cache$144.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -7842,13 +7852,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$143.sibling = workInProgress.child), - (workInProgress.child = cache$143)) + ? ((cache$144.sibling = workInProgress.child), + (workInProgress.child = cache$144)) : ((current = type.last), null !== current - ? (current.sibling = cache$143) - : (workInProgress.child = cache$143), - (type.last = cache$143)); + ? (current.sibling = cache$144) + : (workInProgress.child = cache$144), + (type.last = cache$144)); } if (null !== type.tail) return ( @@ -8122,8 +8132,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$160) { - captureCommitPhaseError(current, nearestMountedAncestor, error$160); + } catch (error$161) { + captureCommitPhaseError(current, nearestMountedAncestor, error$161); } else ref.current = null; } @@ -8160,7 +8170,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$221) { + } catch (e$222) { JSCompiler_temp = null; break a; } @@ -8443,11 +8453,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$162) { + } catch (error$163) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$162 + error$163 ); } } @@ -8983,19 +8993,19 @@ function commitDeletionEffectsOnFiber( } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (null === finishedWork.memoizedState) { - var current$174 = finishedWork.alternate; + var current$175 = finishedWork.alternate; if ( - null !== current$174 && - ((current$174 = current$174.memoizedState), - null !== current$174 && - ((current$174 = current$174.dehydrated), null !== current$174)) + null !== current$175 && + ((current$175 = current$175.memoizedState), + null !== current$175 && + ((current$175 = current$175.dehydrated), null !== current$175)) ) try { - retryIfBlockedOn(current$174); + retryIfBlockedOn(current$175); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$174); + onHydrated && onHydrated(current$175); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -9113,8 +9123,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$176) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$176); + } catch (error$177) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$177); } } break; @@ -9287,11 +9297,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { newProps ); domElement[internalPropsKey] = newProps; - } catch (error$177) { + } catch (error$178) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$177 + error$178 ); } break; @@ -9328,8 +9338,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { root = finishedWork.stateNode; try { setTextContent(root, ""); - } catch (error$178) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$178); + } catch (error$179) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$179); } } if (flags & 4 && ((root = finishedWork.stateNode), null != root)) { @@ -9339,8 +9349,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { try { updateProperties(root, maybeNodes, current, hoistableRoot), (root[internalPropsKey] = hoistableRoot); - } catch (error$180) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$180); + } catch (error$181) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$181); } } flags & 1024 && (needsFormReset = !0); @@ -9355,8 +9365,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { current = finishedWork.memoizedProps; try { flags.nodeValue = current; - } catch (error$181) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$181); + } catch (error$182) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$182); } } break; @@ -9370,8 +9380,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (flags & 4 && null !== current && current.memoizedState.isDehydrated) try { retryIfBlockedOn(root.containerInfo); - } catch (error$182) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$182); + } catch (error$183) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$183); } needsFormReset && ((needsFormReset = !1), recursivelyResetForms(finishedWork)); @@ -9403,8 +9413,8 @@ function commitMutationEffectsOnFiber(finishedWork, root) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$184) { - captureCommitPhaseError(finishedWork, finishedWork.return, error$184); + } catch (error$185) { + captureCommitPhaseError(finishedWork, finishedWork.return, error$185); } flags = finishedWork.updateQueue; null !== flags && @@ -9479,11 +9489,11 @@ function commitMutationEffectsOnFiber(finishedWork, root) { if (null === current) try { root.stateNode.nodeValue = domElement ? "" : root.memoizedProps; - } catch (error$165) { + } catch (error$166) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$165 + error$166 ); } } else if ( @@ -9558,21 +9568,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$166 = JSCompiler_inline_result.stateNode; + var parent$167 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$166, ""), + (setTextContent(parent$167, ""), (JSCompiler_inline_result.flags &= -33)); - var before$167 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$167, parent$166); + var before$168 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$168, parent$167); break; case 3: case 4: - var parent$168 = JSCompiler_inline_result.stateNode.containerInfo, - before$169 = getHostSibling(finishedWork); + var parent$169 = JSCompiler_inline_result.stateNode.containerInfo, + before$170 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$169, - parent$168 + before$170, + parent$169 ); break; default: @@ -9648,7 +9658,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$188 = parentFiber.alternate, + var current$189 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -9676,16 +9686,16 @@ function recursivelyTraverseReappearLayoutEffects( } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$188 = finishedWork.updateQueue; - if (null !== current$188) { - var hiddenCallbacks = current$188.shared.hiddenCallbacks; + current$189 = finishedWork.updateQueue; + if (null !== current$189) { + var hiddenCallbacks = current$189.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$188.shared.hiddenCallbacks = null, current$188 = 0; - current$188 < hiddenCallbacks.length; - current$188++ + current$189.shared.hiddenCallbacks = null, current$189 = 0; + current$189 < hiddenCallbacks.length; + current$189++ ) - callCallback(hiddenCallbacks[current$188], finishedRoot); + callCallback(hiddenCallbacks[current$189], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -9701,7 +9711,7 @@ function recursivelyTraverseReappearLayoutEffects( includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$188 && + null === current$189 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -10037,9 +10047,9 @@ function recursivelyTraverseReconnectPassiveEffects( ); break; case 22: - var instance$195 = finishedWork.stateNode; + var instance$196 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$195._visibility & 4 + ? instance$196._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10051,7 +10061,7 @@ function recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork ) - : ((instance$195._visibility |= 4), + : ((instance$196._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -10064,7 +10074,7 @@ function recursivelyTraverseReconnectPassiveEffects( commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$195 + instance$196 ); break; case 24: @@ -10404,12 +10414,12 @@ function findFiberRootForHostRoot(hostRoot) { a: { hostRoot = [hostRoot]; for (maybeFiber = 0; maybeFiber < hostRoot.length; ) { - var current$290 = hostRoot[maybeFiber++]; - if (current$290[internalContainerInstanceKey]) { - hostRoot = getInstanceFromNode(current$290); + var current$291 = hostRoot[maybeFiber++]; + if (current$291[internalContainerInstanceKey]) { + hostRoot = getInstanceFromNode(current$291); break a; } - hostRoot.push.apply(hostRoot, current$290.children); + hostRoot.push.apply(hostRoot, current$291.children); } hostRoot = null; } @@ -10586,6 +10596,8 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -10699,7 +10711,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) { @@ -10712,11 +10725,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$11 = 31 - clz32(lane), - transitions = transitionLanesMap[index$11]; + index$12 = 31 - clz32(lane), + transitions = transitionLanesMap[index$12]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$11] = transitions; + transitionLanesMap[index$12] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -10725,7 +10738,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); } @@ -10749,7 +10763,13 @@ function performConcurrentWorkOnRoot(root, didTimeout) { if (0 !== exitStatus) { var renderWasConcurrent = didTimeout; do { - if (6 === exitStatus) markRootSuspended(root, lanes, 0); + if (6 === exitStatus) + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { didTimeout = root.current.alternate; if ( @@ -10781,7 +10801,12 @@ function performConcurrentWorkOnRoot(root, didTimeout) { } if (1 === exitStatus) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = didTimeout; @@ -10797,7 +10822,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -10820,7 +10846,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -10832,7 +10859,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), exitStatus ); @@ -10845,7 +10873,8 @@ function performConcurrentWorkOnRoot(root, didTimeout) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -10897,7 +10926,8 @@ function commitRootWhenReady( transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -10916,7 +10946,7 @@ function commitRootWhenReady( didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -10964,26 +10994,29 @@ function isRenderConsistentWithExternalStores(finishedWork) { function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings +) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - expirationTimes[index$7] = -1; + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + didSkipSuspendedSiblings[index$8] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11010,13 +11043,18 @@ function performSyncWorkOnRoot(root, lanes) { if (1 === exitStatus) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (6 === exitStatus) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -11069,6 +11107,10 @@ function prepareFreshStack(root, lanes) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes); workInProgressRootDidAttachPingListener = !1; workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11087,9 +11129,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$6 = 31 - clz32(allEntangledLanes), + lane = 1 << index$6; + lanes |= root[index$6]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -11161,7 +11203,8 @@ function renderDidSuspendDelayIfPossible() { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -11196,8 +11239,8 @@ function renderRootSync(root, lanes) { } workLoopSync(); break; - } catch (thrownValue$207) { - handleThrow(root, thrownValue$207); + } catch (thrownValue$208) { + handleThrow(root, thrownValue$208); } while (1); lanes && root.shellSuspendCounter++; @@ -11306,8 +11349,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$209) { - handleThrow(root, thrownValue$209); + } catch (thrownValue$210) { + handleThrow(root, thrownValue$210); } while (1); resetContextDependencies(); @@ -11413,31 +11456,27 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = 6; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || 1 === workInProgressSuspendedReason + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings + ); + return; + } unitOfWork = completedWork.return; var next = completeWork( completedWork.alternate, @@ -11457,6 +11496,29 @@ function completeUnitOfWork(unitOfWork) { } while (null !== completedWork); 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); } +function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), (next.subtreeFlags = 0), (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = 6; + workInProgress = null; +} function commitRoot( root, recoverableErrors, @@ -11528,12 +11590,12 @@ function commitRootImpl( Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$215 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$216 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$215 && + shouldFireAfterActiveInstanceBlur$216 && ((_enabled = !0), dispatchAfterDetachedBlur(selectionInformation.focusedElem), (_enabled = !1)); @@ -11603,7 +11665,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$216 = rootWithPendingPassiveEffects, + var root$217 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11618,7 +11680,7 @@ function flushPassiveEffects() { } finally { (Internals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$216, remainingLanes); + releaseRootPooledCache(root$217, remainingLanes); } } return !1; @@ -11726,6 +11788,7 @@ function pingSuspendedRoot(root, wakeable, pingedLanes) { var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -12145,6 +12208,7 @@ function FiberRootNode( this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -12839,19 +12903,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$380; + var JSCompiler_inline_result$jscomp$381; if (canUseDOM) { - var isSupported$jscomp$inline_1542 = "oninput" in document; - if (!isSupported$jscomp$inline_1542) { - var element$jscomp$inline_1543 = document.createElement("div"); - element$jscomp$inline_1543.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1542 = - "function" === typeof element$jscomp$inline_1543.oninput; + var isSupported$jscomp$inline_1545 = "oninput" in document; + if (!isSupported$jscomp$inline_1545) { + var element$jscomp$inline_1546 = document.createElement("div"); + element$jscomp$inline_1546.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1545 = + "function" === typeof element$jscomp$inline_1546.oninput; } - JSCompiler_inline_result$jscomp$380 = isSupported$jscomp$inline_1542; - } else JSCompiler_inline_result$jscomp$380 = !1; + JSCompiler_inline_result$jscomp$381 = isSupported$jscomp$inline_1545; + } else JSCompiler_inline_result$jscomp$381 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$380 && + JSCompiler_inline_result$jscomp$381 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -13262,20 +13326,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1583 = 0; - i$jscomp$inline_1583 < simpleEventPluginEvents.length; - i$jscomp$inline_1583++ + var i$jscomp$inline_1586 = 0; + i$jscomp$inline_1586 < simpleEventPluginEvents.length; + i$jscomp$inline_1586++ ) { - var eventName$jscomp$inline_1584 = - simpleEventPluginEvents[i$jscomp$inline_1583], - domEventName$jscomp$inline_1585 = - eventName$jscomp$inline_1584.toLowerCase(), - capitalizedEvent$jscomp$inline_1586 = - eventName$jscomp$inline_1584[0].toUpperCase() + - eventName$jscomp$inline_1584.slice(1); + var eventName$jscomp$inline_1587 = + simpleEventPluginEvents[i$jscomp$inline_1586], + domEventName$jscomp$inline_1588 = + eventName$jscomp$inline_1587.toLowerCase(), + capitalizedEvent$jscomp$inline_1589 = + eventName$jscomp$inline_1587[0].toUpperCase() + + eventName$jscomp$inline_1587.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1585, - "on" + capitalizedEvent$jscomp$inline_1586 + domEventName$jscomp$inline_1588, + "on" + capitalizedEvent$jscomp$inline_1589 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14564,34 +14628,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$235 = props[hasSrc]; - if (null != propValue$235) + var propValue$236 = props[hasSrc]; + if (null != propValue$236) switch (hasSrc) { case "name": - hasSrcSet = propValue$235; + hasSrcSet = propValue$236; break; case "type": - propKey = propValue$235; + propKey = propValue$236; break; case "checked": - checked = propValue$235; + checked = propValue$236; break; case "defaultChecked": - defaultChecked = propValue$235; + defaultChecked = propValue$236; break; case "value": - propValue = propValue$235; + propValue = propValue$236; break; case "defaultValue": - defaultValue = propValue$235; + defaultValue = propValue$236; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$235) + if (null != propValue$236) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$235, props, null); + setProp(domElement, tag, hasSrc, propValue$236, props, null); } } initInput( @@ -14727,14 +14791,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$235 in props) - props.hasOwnProperty(propValue$235) && - ((hasSrc = props[propValue$235]), + for (propValue$236 in props) + props.hasOwnProperty(propValue$236) && + ((hasSrc = props[propValue$236]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$235, + propValue$236, hasSrc, props, void 0 @@ -14782,14 +14846,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$252 in nextProps) { - var propKey = nextProps[propKey$252]; - lastProp = lastProps[propKey$252]; + for (var propKey$253 in nextProps) { + var propKey = nextProps[propKey$253]; + lastProp = lastProps[propKey$253]; if ( - nextProps.hasOwnProperty(propKey$252) && + nextProps.hasOwnProperty(propKey$253) && (null != propKey || null != lastProp) ) - switch (propKey$252) { + switch (propKey$253) { case "type": type = propKey; break; @@ -14818,7 +14882,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$252, + propKey$253, propKey, nextProps, lastProp @@ -14837,7 +14901,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$252 = null; + propKey = value = defaultValue = propKey$253 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -14868,7 +14932,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$252 = type; + propKey$253 = type; break; case "defaultValue": defaultValue = type; @@ -14889,15 +14953,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$252 - ? updateOptions(domElement, !!lastProps, propKey$252, !1) + null != propKey$253 + ? updateOptions(domElement, !!lastProps, propKey$253, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$252 = null; + propKey = propKey$253 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -14921,7 +14985,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$252 = name; + propKey$253 = name; break; case "defaultValue": propKey = name; @@ -14935,17 +14999,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$252, propKey); + updateTextarea(domElement, propKey$253, propKey); return; case "option": - for (var propKey$268 in lastProps) + for (var propKey$269 in lastProps) if ( - ((propKey$252 = lastProps[propKey$268]), - lastProps.hasOwnProperty(propKey$268) && - null != propKey$252 && - !nextProps.hasOwnProperty(propKey$268)) + ((propKey$253 = lastProps[propKey$269]), + lastProps.hasOwnProperty(propKey$269) && + null != propKey$253 && + !nextProps.hasOwnProperty(propKey$269)) ) - switch (propKey$268) { + switch (propKey$269) { case "selected": domElement.selected = !1; break; @@ -14953,33 +15017,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$268, + propKey$269, null, nextProps, - propKey$252 + propKey$253 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$252 = nextProps[lastDefaultValue]), + ((propKey$253 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$252 !== propKey && - (null != propKey$252 || null != propKey)) + propKey$253 !== propKey && + (null != propKey$253 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$252 && - "function" !== typeof propKey$252 && - "symbol" !== typeof propKey$252; + propKey$253 && + "function" !== typeof propKey$253 && + "symbol" !== typeof propKey$253; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$252, + propKey$253, nextProps, propKey ); @@ -15000,24 +15064,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$273 in lastProps) - (propKey$252 = lastProps[propKey$273]), - lastProps.hasOwnProperty(propKey$273) && - null != propKey$252 && - !nextProps.hasOwnProperty(propKey$273) && - setProp(domElement, tag, propKey$273, null, nextProps, propKey$252); + for (var propKey$274 in lastProps) + (propKey$253 = lastProps[propKey$274]), + lastProps.hasOwnProperty(propKey$274) && + null != propKey$253 && + !nextProps.hasOwnProperty(propKey$274) && + setProp(domElement, tag, propKey$274, null, nextProps, propKey$253); for (checked in nextProps) if ( - ((propKey$252 = nextProps[checked]), + ((propKey$253 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$252 !== propKey && - (null != propKey$252 || null != propKey)) + propKey$253 !== propKey && + (null != propKey$253 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$252) + if (null != propKey$253) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -15025,7 +15089,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$252, + propKey$253, nextProps, propKey ); @@ -15033,49 +15097,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$278 in lastProps) - (propKey$252 = lastProps[propKey$278]), - lastProps.hasOwnProperty(propKey$278) && - void 0 !== propKey$252 && - !nextProps.hasOwnProperty(propKey$278) && + for (var propKey$279 in lastProps) + (propKey$253 = lastProps[propKey$279]), + lastProps.hasOwnProperty(propKey$279) && + void 0 !== propKey$253 && + !nextProps.hasOwnProperty(propKey$279) && setPropOnCustomElement( domElement, tag, - propKey$278, + propKey$279, void 0, nextProps, - propKey$252 + propKey$253 ); for (defaultChecked in nextProps) - (propKey$252 = nextProps[defaultChecked]), + (propKey$253 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$252 === propKey || - (void 0 === propKey$252 && void 0 === propKey) || + propKey$253 === propKey || + (void 0 === propKey$253 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$252, + propKey$253, nextProps, propKey ); return; } } - for (var propKey$283 in lastProps) - (propKey$252 = lastProps[propKey$283]), - lastProps.hasOwnProperty(propKey$283) && - null != propKey$252 && - !nextProps.hasOwnProperty(propKey$283) && - setProp(domElement, tag, propKey$283, null, nextProps, propKey$252); + for (var propKey$284 in lastProps) + (propKey$253 = lastProps[propKey$284]), + lastProps.hasOwnProperty(propKey$284) && + null != propKey$253 && + !nextProps.hasOwnProperty(propKey$284) && + setProp(domElement, tag, propKey$284, null, nextProps, propKey$253); for (lastProp in nextProps) - (propKey$252 = nextProps[lastProp]), + (propKey$253 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$252 === propKey || - (null == propKey$252 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$252, nextProps, propKey); + propKey$253 === propKey || + (null == propKey$253 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$253, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -15710,26 +15774,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$292 = getResourcesFromRoot( + var styles$293 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$293 = styles$292.get(type); - resource$293 || + resource$294 = styles$293.get(type); + resource$294 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$293 = { + (resource$294 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$292.set(type, resource$293), - (styles$292 = JSCompiler_inline_result.querySelector( + styles$293.set(type, resource$294), + (styles$293 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$292._p && - ((resource$293.instance = styles$292), - (resource$293.state.loading = 5)), + !styles$293._p && + ((resource$294.instance = styles$293), + (resource$294.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -15742,16 +15806,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$292 || + styles$293 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$293.state + resource$294.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$293; + return resource$294; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -15848,37 +15912,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$298 = hoistableRoot.querySelector( + var instance$299 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$298) + if (instance$299) return ( (resource.state.loading |= 4), - (resource.instance = instance$298), - markNodeAsHoistable(instance$298), - instance$298 + (resource.instance = instance$299), + markNodeAsHoistable(instance$299), + instance$299 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$298 = ( + instance$299 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$298); - var linkInstance = instance$298; + markNodeAsHoistable(instance$299); + var linkInstance = instance$299; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$298, "link", instance); + setInitialProperties(instance$299, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$298, props.precedence, hoistableRoot); - return (resource.instance = instance$298); + insertStylesheet(instance$299, props.precedence, hoistableRoot); + return (resource.instance = instance$299); case "script": - instance$298 = getScriptKey(props.src); + instance$299 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$298) + getScriptSelectorFromKey(instance$299) )) ) return ( @@ -15887,7 +15951,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$298))) + if ((styleProps = preloadPropsMap.get(instance$299))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16890,16 +16954,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1756 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1759 = React.version; if ( - "19.0.0-www-modern-8b4c54c0-20240904" !== - isomorphicReactPackageVersion$jscomp$inline_1756 + "19.0.0-www-modern-e10e8681-20240904" !== + isomorphicReactPackageVersion$jscomp$inline_1759 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1756, - "19.0.0-www-modern-8b4c54c0-20240904" + isomorphicReactPackageVersion$jscomp$inline_1759, + "19.0.0-www-modern-e10e8681-20240904" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -16915,25 +16979,25 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2245 = { +var internals$jscomp$inline_2248 = { bundleType: 0, - version: "19.0.0-www-modern-8b4c54c0-20240904", + version: "19.0.0-www-modern-e10e8681-20240904", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-modern-e10e8681-20240904" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2246 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2249 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2246.isDisabled && - hook$jscomp$inline_2246.supportsFiber + !hook$jscomp$inline_2249.isDisabled && + hook$jscomp$inline_2249.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2246.inject( - internals$jscomp$inline_2245 + (rendererID = hook$jscomp$inline_2249.inject( + internals$jscomp$inline_2248 )), - (injectedHook = hook$jscomp$inline_2246); + (injectedHook = hook$jscomp$inline_2249); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17435,4 +17499,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; +exports.version = "19.0.0-www-modern-e10e8681-20240904"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index b8aacc47e284e..65d15af6ad056 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -920,28 +920,37 @@ __DEV__ && var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -1022,6 +1031,7 @@ __DEV__ && root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -13848,7 +13858,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if ( @@ -13906,7 +13917,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); 2 !== lane || @@ -13941,7 +13953,12 @@ __DEV__ && var renderWasConcurrent = shouldTimeSlice; do { if (didTimeout === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { shouldTimeSlice = root.current.alternate; if ( @@ -13973,7 +13990,12 @@ __DEV__ && } if (didTimeout === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = shouldTimeSlice; @@ -13989,7 +14011,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -14024,7 +14047,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -14036,7 +14060,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), didTimeout ); @@ -14049,7 +14074,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -14105,7 +14131,8 @@ __DEV__ && transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -14124,7 +14151,7 @@ __DEV__ && didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -14172,7 +14199,9 @@ __DEV__ && function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), + (root.pingedLanes = 0), + (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -14180,19 +14209,22 @@ __DEV__ && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didSkipSuspendedSiblings[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -14222,13 +14254,18 @@ __DEV__ && if (exitStatus === RootFatalErrored) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (exitStatus === RootDidNotComplete) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -14281,6 +14318,12 @@ __DEV__ && workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressDeferredLane = @@ -14406,7 +14449,8 @@ __DEV__ && markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -14762,43 +14806,27 @@ __DEV__ && workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - if ((root.mode & 2) !== NoMode) { - stopProfilerTimerIfRunningAndRecordDelta(root, !1); - unitOfWork = root.actualDuration; - for (thrownValue = root.child; null !== thrownValue; ) - (unitOfWork += thrownValue.actualDuration), - (thrownValue = thrownValue.sibling); - root.actualDuration = unitOfWork; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = RootDidNotComplete; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || workInProgressSuspendedReason === SuspendedOnError + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - 0 !== (completedWork.flags & 32768) && - error$jscomp$0( - "Internal React error: Expected this fiber to be complete, but it isn't. It should have been unwound. This is a bug in React." + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings ); + return; + } var current = completedWork.alternate; unitOfWork = completedWork.return; (completedWork.mode & 2) === NoMode @@ -14832,6 +14860,38 @@ __DEV__ && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); } + function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + if ((unitOfWork.mode & 2) !== NoMode) { + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !1); + next = unitOfWork.actualDuration; + for (var child = unitOfWork.child; null !== child; ) + (next += child.actualDuration), (child = child.sibling); + unitOfWork.actualDuration = next; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), + (next.subtreeFlags = 0), + (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + } function commitRoot( root, recoverableErrors, @@ -15243,6 +15303,7 @@ __DEV__ && var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -16072,6 +16133,7 @@ __DEV__ && this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -18438,6 +18500,8 @@ __DEV__ && SuspendedOnHydration = 8, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -19038,7 +19102,7 @@ __DEV__ && rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-classic-e10e8681-20240904" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index 6bc26efd2d8f7..0cf214296cbbf 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -823,28 +823,37 @@ __DEV__ && var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -925,6 +934,7 @@ __DEV__ && root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -13339,7 +13349,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if ( @@ -13396,7 +13407,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); } @@ -13424,7 +13436,12 @@ __DEV__ && var renderWasConcurrent = shouldTimeSlice; do { if (didTimeout === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { shouldTimeSlice = root.current.alternate; if ( @@ -13456,7 +13473,12 @@ __DEV__ && } if (didTimeout === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = shouldTimeSlice; @@ -13472,7 +13494,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -13507,7 +13530,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -13519,7 +13543,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), didTimeout ); @@ -13532,7 +13557,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -13588,7 +13614,8 @@ __DEV__ && transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -13607,7 +13634,7 @@ __DEV__ && didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -13655,7 +13682,9 @@ __DEV__ && function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), + (root.pingedLanes = 0), + (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -13663,19 +13692,22 @@ __DEV__ && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didSkipSuspendedSiblings[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -13705,13 +13737,18 @@ __DEV__ && if (exitStatus === RootFatalErrored) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (exitStatus === RootDidNotComplete) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -13764,6 +13801,12 @@ __DEV__ && workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressDeferredLane = @@ -13889,7 +13932,8 @@ __DEV__ && markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -14241,43 +14285,27 @@ __DEV__ && workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - if ((root.mode & 2) !== NoMode) { - stopProfilerTimerIfRunningAndRecordDelta(root, !1); - unitOfWork = root.actualDuration; - for (thrownValue = root.child; null !== thrownValue; ) - (unitOfWork += thrownValue.actualDuration), - (thrownValue = thrownValue.sibling); - root.actualDuration = unitOfWork; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = RootDidNotComplete; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || workInProgressSuspendedReason === SuspendedOnError + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - 0 !== (completedWork.flags & 32768) && - error$jscomp$0( - "Internal React error: Expected this fiber to be complete, but it isn't. It should have been unwound. This is a bug in React." + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings ); + return; + } var current = completedWork.alternate; unitOfWork = completedWork.return; (completedWork.mode & 2) === NoMode @@ -14311,6 +14339,38 @@ __DEV__ && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); } + function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + if ((unitOfWork.mode & 2) !== NoMode) { + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !1); + next = unitOfWork.actualDuration; + for (var child = unitOfWork.child; null !== child; ) + (next += child.actualDuration), (child = child.sibling); + unitOfWork.actualDuration = next; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), + (next.subtreeFlags = 0), + (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + } function commitRoot( root, recoverableErrors, @@ -14720,6 +14780,7 @@ __DEV__ && var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & RenderContext ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -15499,6 +15560,7 @@ __DEV__ && this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -17813,6 +17875,8 @@ __DEV__ && SuspendedOnHydration = 8, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -18400,7 +18464,7 @@ __DEV__ && rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-modern-e10e8681-20240904" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index 3702da67cdef2..3c1d3ea6e247a 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -628,28 +628,37 @@ module.exports = function ($$$config) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -722,6 +731,7 @@ module.exports = function ($$$config) { root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -733,18 +743,18 @@ module.exports = function ($$$config) { 0 < noLongerPendingLanes; ) { - var index$7 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$7; - remainingLanes[index$7] = 0; - expirationTimes[index$7] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$7]; + var index$8 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$8; + remainingLanes[index$8] = 0; + expirationTimes[index$8] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$8]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$7] = null, index$7 = 0; - index$7 < hiddenUpdatesForLane.length; - index$7++ + hiddenUpdates[index$8] = null, index$8 = 0; + index$8 < hiddenUpdatesForLane.length; + index$8++ ) { - var update = hiddenUpdatesForLane[index$7]; + var update = hiddenUpdatesForLane[index$8]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -764,21 +774,21 @@ module.exports = function ($$$config) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$8 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$8; - (lane & entangledLanes) | (root[index$8] & entangledLanes) && - (root[index$8] |= entangledLanes); + var index$9 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$9; + (lane & entangledLanes) | (root[index$9] & entangledLanes) && + (root[index$9] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$11 = 31 - clz32(lanes), - lane = 1 << index$11; - index$11 = root.transitionLanes[index$11]; - null !== index$11 && - index$11.forEach(function (transition) { + var index$12 = 31 - clz32(lanes), + lane = 1 << index$12; + index$12 = root.transitionLanes[index$12]; + null !== index$12 && + index$12.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -788,10 +798,10 @@ module.exports = function ($$$config) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - null !== root.transitionLanes[index$12] && - (root.transitionLanes[index$12] = null); + var index$13 = 31 - clz32(lanes), + lane = 1 << index$13; + null !== root.transitionLanes[index$13] && + (root.transitionLanes[index$13] = null); lanes &= ~lane; } } @@ -1160,12 +1170,12 @@ module.exports = function ($$$config) { 0 < pendingLanes; ) { - var index$5 = 31 - clz32(pendingLanes), - lane = 1 << index$5, - expirationTime = expirationTimes[index$5]; + var index$6 = 31 - clz32(pendingLanes), + lane = 1 << index$6, + expirationTime = expirationTimes[index$6]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$5] = computeExpirationTime(lane, currentTime); + expirationTimes[index$6] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -1413,20 +1423,20 @@ module.exports = function ($$$config) { ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$19 = workInProgress$jscomp$0.alternate; - null !== current$19 && - ((current$19 = current$19.updateQueue), - (pendingQueue = current$19.lastBaseUpdate), + var current$20 = workInProgress$jscomp$0.alternate; + null !== current$20 && + ((current$20 = current$20.updateQueue), + (pendingQueue = current$20.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$19.firstBaseUpdate = firstPendingUpdate) + ? (current$20.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$19.lastBaseUpdate = lastPendingUpdate))); + (current$20.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$19 = firstPendingUpdate = lastPendingUpdate = null; + current$20 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -1439,8 +1449,8 @@ module.exports = function ($$$config) { 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$19 && - (current$19 = current$19.next = + null !== current$20 && + (current$20 = current$20.next = { lane: 0, tag: pendingQueue.tag, @@ -1497,10 +1507,10 @@ module.exports = function ($$$config) { callback: pendingQueue.callback, next: null }), - null === current$19 - ? ((firstPendingUpdate = current$19 = isHiddenUpdate), + null === current$20 + ? ((firstPendingUpdate = current$20 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$19 = current$19.next = isHiddenUpdate), + : (current$20 = current$20.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -1513,10 +1523,10 @@ module.exports = function ($$$config) { (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$19 && (lastPendingUpdate = newState); + null === current$20 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$19; + queue.lastBaseUpdate = current$20; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -2395,9 +2405,9 @@ module.exports = function ($$$config) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$53 = fiber.alternate; - null !== current$53 && - null !== current$53.memoizedState && + var current$54 = fiber.alternate; + null !== current$54 && + null !== current$54.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -2657,16 +2667,16 @@ module.exports = function ($$$config) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$55 = currentlyRenderingFiber$1.alternate; - null !== current$55 && - ((current$55 = current$55.updateQueue), - null !== current$55 && - ((current$55 = current$55.memoCache), - null != current$55 && + var current$56 = currentlyRenderingFiber$1.alternate; + null !== current$56 && + ((current$56 = current$56.updateQueue), + null !== current$56 && + ((current$56 = current$56.memoCache), + null != current$56 && (memoCache = { data: enableNoCloningMemoCache - ? current$55.data - : current$55.data.map(function (array) { + ? current$56.data + : current$56.data.map(function (array) { return array.slice(); }), index: 0 @@ -2681,11 +2691,11 @@ module.exports = function ($$$config) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$55 = 0; - current$55 < size; - current$55++ + current$56 = 0; + current$56 < size; + current$56++ ) - updateQueue[current$55] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$56] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -2718,7 +2728,7 @@ module.exports = function ($$$config) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$56 = !1; + didReadFromEntangledAsyncAction$57 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -2739,11 +2749,11 @@ module.exports = function ($$$config) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$56 = !0); + (didReadFromEntangledAsyncAction$57 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$56 = !0); + (didReadFromEntangledAsyncAction$57 = !0); continue; } else (updateLane = { @@ -2789,7 +2799,7 @@ module.exports = function ($$$config) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$56 && + didReadFromEntangledAsyncAction$57 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -2988,8 +2998,8 @@ module.exports = function ($$$config) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$60) { - onActionError(actionQueue, node, error$60); + } catch (error$61) { + onActionError(actionQueue, node, error$61); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -3652,9 +3662,9 @@ module.exports = function ($$$config) { (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$62 in Component) - void 0 === newProps[propName$62] && - (newProps[propName$62] = Component[propName$62]); + for (var propName$63 in Component) + void 0 === newProps[propName$63] && + (newProps[propName$63] = Component[propName$63]); } return newProps; } @@ -6511,44 +6521,44 @@ module.exports = function ($$$config) { needsVisibilityToggle = needsVisibilityToggle.sibling; } else if (supportsPersistence) - for (var node$115 = workInProgress.child; null !== node$115; ) { - if (5 === node$115.tag) { - var instance = node$115.stateNode; + for (var node$116 = workInProgress.child; null !== node$116; ) { + if (5 === node$116.tag) { + var instance = node$116.stateNode; needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance( instance, - node$115.type, - node$115.memoizedProps + node$116.type, + node$116.memoizedProps )); appendInitialChild(parent, instance); - } else if (6 === node$115.tag) - (instance = node$115.stateNode), + } else if (6 === node$116.tag) + (instance = node$116.stateNode), needsVisibilityToggle && isHidden && (instance = cloneHiddenTextInstance( instance, - node$115.memoizedProps + node$116.memoizedProps )), appendInitialChild(parent, instance); - else if (4 !== node$115.tag) - if (22 === node$115.tag && null !== node$115.memoizedState) - (instance = node$115.child), - null !== instance && (instance.return = node$115), - appendAllChildren(parent, node$115, !0, !0); - else if (null !== node$115.child) { - node$115.child.return = node$115; - node$115 = node$115.child; + else if (4 !== node$116.tag) + if (22 === node$116.tag && null !== node$116.memoizedState) + (instance = node$116.child), + null !== instance && (instance.return = node$116), + appendAllChildren(parent, node$116, !0, !0); + else if (null !== node$116.child) { + node$116.child.return = node$116; + node$116 = node$116.child; continue; } - if (node$115 === workInProgress) break; - for (; null === node$115.sibling; ) { - if (null === node$115.return || node$115.return === workInProgress) + if (node$116 === workInProgress) break; + for (; null === node$116.sibling; ) { + if (null === node$116.return || node$116.return === workInProgress) return; - node$115 = node$115.return; + node$116 = node$116.return; } - node$115.sibling.return = node$115.return; - node$115 = node$115.sibling; + node$116.sibling.return = node$116.return; + node$116 = node$116.sibling; } } function appendAllChildrenToContainer( @@ -6621,31 +6631,31 @@ module.exports = function ($$$config) { current.memoizedProps !== newProps && markUpdate(workInProgress); else if (supportsPersistence) { var currentInstance = current.stateNode, - oldProps$118 = current.memoizedProps; + oldProps$119 = current.memoizedProps; if ( (current = doesRequireClone(current, workInProgress)) || - oldProps$118 !== newProps + oldProps$119 !== newProps ) { var currentHostContext = contextStackCursor.current; - oldProps$118 = cloneInstance( + oldProps$119 = cloneInstance( currentInstance, type, - oldProps$118, + oldProps$119, newProps, !current, null ); - oldProps$118 === currentInstance + oldProps$119 === currentInstance ? (workInProgress.stateNode = currentInstance) : (finalizeInitialChildren( - oldProps$118, + oldProps$119, type, newProps, currentHostContext ) && markUpdate(workInProgress), - (workInProgress.stateNode = oldProps$118), + (workInProgress.stateNode = oldProps$119), current - ? appendAllChildren(oldProps$118, workInProgress, !1, !1) + ? appendAllChildren(oldProps$119, workInProgress, !1, !1) : markUpdate(workInProgress)); } else workInProgress.stateNode = currentInstance; } @@ -6695,15 +6705,15 @@ module.exports = function ($$$config) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$120 = null; null !== lastTailNode; ) + for (var lastTailNode$121 = null; null !== lastTailNode; ) null !== lastTailNode.alternate && - (lastTailNode$120 = lastTailNode), + (lastTailNode$121 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$120 + null === lastTailNode$121 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$120.sibling = null); + : (lastTailNode$121.sibling = null); } } function bubbleProperties(completedWork) { @@ -6713,19 +6723,19 @@ module.exports = function ($$$config) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$121 = completedWork.child; null !== child$121; ) - (newChildLanes |= child$121.lanes | child$121.childLanes), - (subtreeFlags |= child$121.subtreeFlags & 31457280), - (subtreeFlags |= child$121.flags & 31457280), - (child$121.return = completedWork), - (child$121 = child$121.sibling); + for (var child$122 = completedWork.child; null !== child$122; ) + (newChildLanes |= child$122.lanes | child$122.childLanes), + (subtreeFlags |= child$122.subtreeFlags & 31457280), + (subtreeFlags |= child$122.flags & 31457280), + (child$122.return = completedWork), + (child$122 = child$122.sibling); else - for (child$121 = completedWork.child; null !== child$121; ) - (newChildLanes |= child$121.lanes | child$121.childLanes), - (subtreeFlags |= child$121.subtreeFlags), - (subtreeFlags |= child$121.flags), - (child$121.return = completedWork), - (child$121 = child$121.sibling); + for (child$122 = completedWork.child; null !== child$122; ) + (newChildLanes |= child$122.lanes | child$122.childLanes), + (subtreeFlags |= child$122.subtreeFlags), + (subtreeFlags |= child$122.flags), + (child$122.return = completedWork), + (child$122 = child$122.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -7006,11 +7016,11 @@ module.exports = function ($$$config) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (nextResource = newProps.alternate.memoizedState.cachePool.pool); - var cache$134 = null; + var cache$135 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$134 = newProps.memoizedState.cachePool.pool); - cache$134 !== nextResource && (newProps.flags |= 2048); + (cache$135 = newProps.memoizedState.cachePool.pool); + cache$135 !== nextResource && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -7051,8 +7061,8 @@ module.exports = function ($$$config) { if (null === nextResource) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$134 = nextResource.rendering; - if (null === cache$134) + cache$135 = nextResource.rendering; + if (null === cache$135) if (newProps) cutOffTailIfNeeded(nextResource, !1); else { if ( @@ -7060,11 +7070,11 @@ module.exports = function ($$$config) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$134 = findFirstSuspended(current); - if (null !== cache$134) { + cache$135 = findFirstSuspended(current); + if (null !== cache$135) { workInProgress.flags |= 128; cutOffTailIfNeeded(nextResource, !1); - current = cache$134.updateQueue; + current = cache$135.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -7093,7 +7103,7 @@ module.exports = function ($$$config) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$134)), null !== current)) { + if (((current = findFirstSuspended(cache$135)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -7103,7 +7113,7 @@ module.exports = function ($$$config) { cutOffTailIfNeeded(nextResource, !0), null === nextResource.tail && "hidden" === nextResource.tailMode && - !cache$134.alternate && + !cache$135.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -7116,13 +7126,13 @@ module.exports = function ($$$config) { cutOffTailIfNeeded(nextResource, !1), (workInProgress.lanes = 4194304)); nextResource.isBackwards - ? ((cache$134.sibling = workInProgress.child), - (workInProgress.child = cache$134)) + ? ((cache$135.sibling = workInProgress.child), + (workInProgress.child = cache$135)) : ((current = nextResource.last), null !== current - ? (current.sibling = cache$134) - : (workInProgress.child = cache$134), - (nextResource.last = cache$134)); + ? (current.sibling = cache$135) + : (workInProgress.child = cache$135), + (nextResource.last = cache$135)); } if (null !== nextResource.tail) return ( @@ -7408,8 +7418,8 @@ module.exports = function ($$$config) { else if ("function" === typeof ref) try { ref(null); - } catch (error$152) { - captureCommitPhaseError(current, nearestMountedAncestor, error$152); + } catch (error$153) { + captureCommitPhaseError(current, nearestMountedAncestor, error$153); } else ref.current = null; } @@ -7632,11 +7642,11 @@ module.exports = function ($$$config) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$153) { + } catch (error$154) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$153 + error$154 ); } } @@ -8203,19 +8213,19 @@ module.exports = function ($$$config) { } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (supportsHydration && null === finishedWork.memoizedState) { - var current$164 = finishedWork.alternate; + var current$165 = finishedWork.alternate; if ( - null !== current$164 && - ((current$164 = current$164.memoizedState), - null !== current$164 && - ((current$164 = current$164.dehydrated), null !== current$164)) + null !== current$165 && + ((current$165 = current$165.memoizedState), + null !== current$165 && + ((current$165 = current$165.dehydrated), null !== current$165)) ) try { - commitHydratedSuspenseInstance(current$164); + commitHydratedSuspenseInstance(current$165); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$164); + onHydrated && onHydrated(current$165); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -8334,11 +8344,11 @@ module.exports = function ($$$config) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$166) { + } catch (error$167) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$166 + error$167 ); } } @@ -8416,11 +8426,11 @@ module.exports = function ($$$config) { finishedWork.memoizedProps, finishedWork ); - } catch (error$167) { + } catch (error$168) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$167 + error$168 ); } break; @@ -8452,11 +8462,11 @@ module.exports = function ($$$config) { root = finishedWork.stateNode; try { resetTextContent(root); - } catch (error$168) { + } catch (error$169) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$168 + error$169 ); } } @@ -8466,11 +8476,11 @@ module.exports = function ($$$config) { props = finishedWork.type; try { commitUpdate(root, props, current, hoistableRoot, finishedWork); - } catch (error$170) { + } catch (error$171) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$170 + error$171 ); } } @@ -8488,11 +8498,11 @@ module.exports = function ($$$config) { current = null !== current ? current.memoizedProps : root; try { commitTextUpdate(flags, current, root); - } catch (error$171) { + } catch (error$172) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$171 + error$172 ); } } @@ -8515,11 +8525,11 @@ module.exports = function ($$$config) { ) try { commitHydratedContainer(root.containerInfo); - } catch (error$172) { + } catch (error$173) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$172 + error$173 ); } if (supportsPersistence) { @@ -8527,11 +8537,11 @@ module.exports = function ($$$config) { current = root.pendingChildren; try { replaceContainerChildren(flags, current); - } catch (error$173) { + } catch (error$174) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$173 + error$174 ); } } @@ -8556,11 +8566,11 @@ module.exports = function ($$$config) { current = current.pendingChildren; try { replaceContainerChildren(flags, current); - } catch (error$177) { + } catch (error$178) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$177 + error$178 ); } } @@ -8584,11 +8594,11 @@ module.exports = function ($$$config) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$178) { + } catch (error$179) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$178 + error$179 ); } flags = finishedWork.updateQueue; @@ -8664,11 +8674,11 @@ module.exports = function ($$$config) { suspenseCallback ? hideTextInstance(props) : unhideTextInstance(props, root.memoizedProps); - } catch (error$155) { + } catch (error$156) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$155 + error$156 ); } } else if ( @@ -8754,21 +8764,21 @@ module.exports = function ($$$config) { break; } case 5: - var parent$156 = JSCompiler_inline_result.stateNode; + var parent$157 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (resetTextContent(parent$156), + (resetTextContent(parent$157), (JSCompiler_inline_result.flags &= -33)); - var before$157 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$157, parent$156); + var before$158 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$158, parent$157); break; case 3: case 4: - var parent$158 = JSCompiler_inline_result.stateNode.containerInfo, - before$159 = getHostSibling(finishedWork); + var parent$159 = JSCompiler_inline_result.stateNode.containerInfo, + before$160 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$159, - parent$158 + before$160, + parent$159 ); break; default: @@ -8846,7 +8856,7 @@ module.exports = function ($$$config) { includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$182 = parentFiber.alternate, + var current$183 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -8874,16 +8884,16 @@ module.exports = function ($$$config) { } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$182 = finishedWork.updateQueue; - if (null !== current$182) { - var hiddenCallbacks = current$182.shared.hiddenCallbacks; + current$183 = finishedWork.updateQueue; + if (null !== current$183) { + var hiddenCallbacks = current$183.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$182.shared.hiddenCallbacks = null, current$182 = 0; - current$182 < hiddenCallbacks.length; - current$182++ + current$183.shared.hiddenCallbacks = null, current$183 = 0; + current$183 < hiddenCallbacks.length; + current$183++ ) - callCallback(hiddenCallbacks[current$182], finishedRoot); + callCallback(hiddenCallbacks[current$183], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -8899,7 +8909,7 @@ module.exports = function ($$$config) { includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$182 && + null === current$183 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -9250,9 +9260,9 @@ module.exports = function ($$$config) { ); break; case 22: - var instance$188 = finishedWork.stateNode; + var instance$189 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$188._visibility & 4 + ? instance$189._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9265,7 +9275,7 @@ module.exports = function ($$$config) { finishedRoot, finishedWork ) - : ((instance$188._visibility |= 4), + : ((instance$189._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9273,7 +9283,7 @@ module.exports = function ($$$config) { committedTransitions, includeWorkInProgressEffects )) - : ((instance$188._visibility |= 4), + : ((instance$189._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -9286,7 +9296,7 @@ module.exports = function ($$$config) { commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$188 + instance$189 ); break; case 24: @@ -9845,7 +9855,8 @@ module.exports = function ($$$config) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) { @@ -9858,11 +9869,11 @@ module.exports = function ($$$config) { enableTransitionTracing) ) { var transitionLanesMap = root.transitionLanes, - index$10 = 31 - clz32(lane), - transitions = transitionLanesMap[index$10]; + index$11 = 31 - clz32(lane), + transitions = transitionLanesMap[index$11]; null === transitions && (transitions = new Set()); transitions.add(transition); - transitionLanesMap[index$10] = transitions; + transitionLanesMap[index$11] = transitions; } } root === workInProgressRoot && @@ -9872,7 +9883,8 @@ module.exports = function ($$$config) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); 2 !== lane || @@ -9902,7 +9914,13 @@ module.exports = function ($$$config) { if (0 !== exitStatus) { var renderWasConcurrent = didTimeout; do { - if (6 === exitStatus) markRootSuspended(root, lanes, 0); + if (6 === exitStatus) + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { didTimeout = root.current.alternate; if ( @@ -9934,7 +9952,12 @@ module.exports = function ($$$config) { } if (1 === exitStatus) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = didTimeout; @@ -9950,7 +9973,8 @@ module.exports = function ($$$config) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -9973,7 +9997,8 @@ module.exports = function ($$$config) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -9985,7 +10010,8 @@ module.exports = function ($$$config) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), exitStatus ); @@ -9998,7 +10024,8 @@ module.exports = function ($$$config) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -10053,7 +10080,8 @@ module.exports = function ($$$config) { transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -10072,7 +10100,7 @@ module.exports = function ($$$config) { didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -10120,26 +10148,29 @@ module.exports = function ($$$config) { function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { - var index$6 = 31 - clz32(lanes), - lane = 1 << index$6; - expirationTimes[index$6] = -1; + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$7 = 31 - clz32(lanes), + lane = 1 << index$7; + didSkipSuspendedSiblings[index$7] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10166,13 +10197,18 @@ module.exports = function ($$$config) { if (1 === exitStatus) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (6 === exitStatus) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -10225,6 +10261,10 @@ module.exports = function ($$$config) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes); workInProgressRootDidAttachPingListener = !1; workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -10243,9 +10283,9 @@ module.exports = function ($$$config) { 0 < allEntangledLanes; ) { - var index$4 = 31 - clz32(allEntangledLanes), - lane = 1 << index$4; - lanes |= root[index$4]; + var index$5 = 31 - clz32(allEntangledLanes), + lane = 1 << index$5; + lanes |= root[index$5]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -10317,7 +10357,8 @@ module.exports = function ($$$config) { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -10352,8 +10393,8 @@ module.exports = function ($$$config) { } workLoopSync(); break; - } catch (thrownValue$202) { - handleThrow(root, thrownValue$202); + } catch (thrownValue$203) { + handleThrow(root, thrownValue$203); } while (1); lanes && root.shellSuspendCounter++; @@ -10468,8 +10509,8 @@ module.exports = function ($$$config) { } workLoopConcurrent(); break; - } catch (thrownValue$204) { - handleThrow(root, thrownValue$204); + } catch (thrownValue$205) { + handleThrow(root, thrownValue$205); } while (1); resetContextDependencies(); @@ -10589,31 +10630,27 @@ module.exports = function ($$$config) { workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = 6; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || 1 === workInProgressSuspendedReason + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings + ); + return; + } unitOfWork = completedWork.return; var next = completeWork( completedWork.alternate, @@ -10633,6 +10670,31 @@ module.exports = function ($$$config) { } while (null !== completedWork); 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); } + function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), + (next.subtreeFlags = 0), + (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = 6; + workInProgress = null; + } function commitRoot( root, recoverableErrors, @@ -10704,12 +10766,12 @@ module.exports = function ($$$config) { setCurrentUpdatePriority(2); var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$210 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$211 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$210 && afterActiveInstanceBlur(); + shouldFireAfterActiveInstanceBlur$211 && afterActiveInstanceBlur(); resetAfterCommit(root.containerInfo); root.current = finishedWork; commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); @@ -10904,6 +10966,7 @@ module.exports = function ($$$config) { var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -11348,6 +11411,7 @@ module.exports = function ($$$config) { this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -12283,6 +12347,8 @@ module.exports = function ($$$config) { workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -12669,7 +12735,7 @@ module.exports = function ($$$config) { rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-classic-e10e8681-20240904" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index 6024c789eeb4e..d1c327071c055 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -487,28 +487,37 @@ module.exports = function ($$$config) { var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -581,6 +590,7 @@ module.exports = function ($$$config) { root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -592,18 +602,18 @@ module.exports = function ($$$config) { 0 < noLongerPendingLanes; ) { - var index$7 = 31 - clz32(noLongerPendingLanes), - lane = 1 << index$7; - remainingLanes[index$7] = 0; - expirationTimes[index$7] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$7]; + var index$8 = 31 - clz32(noLongerPendingLanes), + lane = 1 << index$8; + remainingLanes[index$8] = 0; + expirationTimes[index$8] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$8]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$7] = null, index$7 = 0; - index$7 < hiddenUpdatesForLane.length; - index$7++ + hiddenUpdates[index$8] = null, index$8 = 0; + index$8 < hiddenUpdatesForLane.length; + index$8++ ) { - var update = hiddenUpdatesForLane[index$7]; + var update = hiddenUpdatesForLane[index$8]; null !== update && (update.lane &= -536870913); } noLongerPendingLanes &= ~lane; @@ -623,21 +633,21 @@ module.exports = function ($$$config) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$8 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$8; - (lane & entangledLanes) | (root[index$8] & entangledLanes) && - (root[index$8] |= entangledLanes); + var index$9 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$9; + (lane & entangledLanes) | (root[index$9] & entangledLanes) && + (root[index$9] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$11 = 31 - clz32(lanes), - lane = 1 << index$11; - index$11 = root.transitionLanes[index$11]; - null !== index$11 && - index$11.forEach(function (transition) { + var index$12 = 31 - clz32(lanes), + lane = 1 << index$12; + index$12 = root.transitionLanes[index$12]; + null !== index$12 && + index$12.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -647,10 +657,10 @@ module.exports = function ($$$config) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - null !== root.transitionLanes[index$12] && - (root.transitionLanes[index$12] = null); + var index$13 = 31 - clz32(lanes), + lane = 1 << index$13; + null !== root.transitionLanes[index$13] && + (root.transitionLanes[index$13] = null); lanes &= ~lane; } } @@ -1019,12 +1029,12 @@ module.exports = function ($$$config) { 0 < pendingLanes; ) { - var index$5 = 31 - clz32(pendingLanes), - lane = 1 << index$5, - expirationTime = expirationTimes[index$5]; + var index$6 = 31 - clz32(pendingLanes), + lane = 1 << index$6, + expirationTime = expirationTimes[index$6]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$5] = computeExpirationTime(lane, currentTime); + expirationTimes[index$6] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -1272,20 +1282,20 @@ module.exports = function ($$$config) { ? (firstBaseUpdate = firstPendingUpdate) : (lastBaseUpdate.next = firstPendingUpdate); lastBaseUpdate = lastPendingUpdate; - var current$19 = workInProgress$jscomp$0.alternate; - null !== current$19 && - ((current$19 = current$19.updateQueue), - (pendingQueue = current$19.lastBaseUpdate), + var current$20 = workInProgress$jscomp$0.alternate; + null !== current$20 && + ((current$20 = current$20.updateQueue), + (pendingQueue = current$20.lastBaseUpdate), pendingQueue !== lastBaseUpdate && (null === pendingQueue - ? (current$19.firstBaseUpdate = firstPendingUpdate) + ? (current$20.firstBaseUpdate = firstPendingUpdate) : (pendingQueue.next = firstPendingUpdate), - (current$19.lastBaseUpdate = lastPendingUpdate))); + (current$20.lastBaseUpdate = lastPendingUpdate))); } if (null !== firstBaseUpdate) { var newState = queue.baseState; lastBaseUpdate = 0; - current$19 = firstPendingUpdate = lastPendingUpdate = null; + current$20 = firstPendingUpdate = lastPendingUpdate = null; pendingQueue = firstBaseUpdate; do { var updateLane = pendingQueue.lane & -536870913, @@ -1298,8 +1308,8 @@ module.exports = function ($$$config) { 0 !== updateLane && updateLane === currentEntangledLane && (didReadFromEntangledAsyncAction = !0); - null !== current$19 && - (current$19 = current$19.next = + null !== current$20 && + (current$20 = current$20.next = { lane: 0, tag: pendingQueue.tag, @@ -1356,10 +1366,10 @@ module.exports = function ($$$config) { callback: pendingQueue.callback, next: null }), - null === current$19 - ? ((firstPendingUpdate = current$19 = isHiddenUpdate), + null === current$20 + ? ((firstPendingUpdate = current$20 = isHiddenUpdate), (lastPendingUpdate = newState)) - : (current$19 = current$19.next = isHiddenUpdate), + : (current$20 = current$20.next = isHiddenUpdate), (lastBaseUpdate |= updateLane); pendingQueue = pendingQueue.next; if (null === pendingQueue) @@ -1372,10 +1382,10 @@ module.exports = function ($$$config) { (queue.lastBaseUpdate = isHiddenUpdate), (queue.shared.pending = null); } while (1); - null === current$19 && (lastPendingUpdate = newState); + null === current$20 && (lastPendingUpdate = newState); queue.baseState = lastPendingUpdate; queue.firstBaseUpdate = firstPendingUpdate; - queue.lastBaseUpdate = current$19; + queue.lastBaseUpdate = current$20; null === firstBaseUpdate && (queue.shared.lanes = 0); workInProgressRootSkippedLanes |= lastBaseUpdate; workInProgress$jscomp$0.lanes = lastBaseUpdate; @@ -2246,9 +2256,9 @@ module.exports = function ($$$config) { push(suspenseHandlerStackCursor, fiber), null === shellBoundary) ) { - var current$53 = fiber.alternate; - null !== current$53 && - null !== current$53.memoizedState && + var current$54 = fiber.alternate; + null !== current$54 && + null !== current$54.memoizedState && (shellBoundary = fiber); } } else reuseSuspenseHandlerOnStack(fiber); @@ -2508,16 +2518,16 @@ module.exports = function ($$$config) { updateQueue = currentlyRenderingFiber$1.updateQueue; null !== updateQueue && (memoCache = updateQueue.memoCache); if (null == memoCache) { - var current$55 = currentlyRenderingFiber$1.alternate; - null !== current$55 && - ((current$55 = current$55.updateQueue), - null !== current$55 && - ((current$55 = current$55.memoCache), - null != current$55 && + var current$56 = currentlyRenderingFiber$1.alternate; + null !== current$56 && + ((current$56 = current$56.updateQueue), + null !== current$56 && + ((current$56 = current$56.memoCache), + null != current$56 && (memoCache = { data: enableNoCloningMemoCache - ? current$55.data - : current$55.data.map(function (array) { + ? current$56.data + : current$56.data.map(function (array) { return array.slice(); }), index: 0 @@ -2532,11 +2542,11 @@ module.exports = function ($$$config) { if (void 0 === updateQueue) for ( updateQueue = memoCache.data[memoCache.index] = Array(size), - current$55 = 0; - current$55 < size; - current$55++ + current$56 = 0; + current$56 < size; + current$56++ ) - updateQueue[current$55] = REACT_MEMO_CACHE_SENTINEL; + updateQueue[current$56] = REACT_MEMO_CACHE_SENTINEL; memoCache.index++; return updateQueue; } @@ -2569,7 +2579,7 @@ module.exports = function ($$$config) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$56 = !1; + didReadFromEntangledAsyncAction$57 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -2590,11 +2600,11 @@ module.exports = function ($$$config) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$56 = !0); + (didReadFromEntangledAsyncAction$57 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$56 = !0); + (didReadFromEntangledAsyncAction$57 = !0); continue; } else (updateLane = { @@ -2640,7 +2650,7 @@ module.exports = function ($$$config) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$56 && + didReadFromEntangledAsyncAction$57 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -2839,8 +2849,8 @@ module.exports = function ($$$config) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$60) { - onActionError(actionQueue, node, error$60); + } catch (error$61) { + onActionError(actionQueue, node, error$61); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -3436,9 +3446,9 @@ module.exports = function ($$$config) { (disableDefaultPropsExceptForClasses || !alreadyResolvedDefaultProps) ) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$62 in Component) - void 0 === newProps[propName$62] && - (newProps[propName$62] = Component[propName$62]); + for (var propName$63 in Component) + void 0 === newProps[propName$63] && + (newProps[propName$63] = Component[propName$63]); } return newProps; } @@ -6136,44 +6146,44 @@ module.exports = function ($$$config) { needsVisibilityToggle = needsVisibilityToggle.sibling; } else if (supportsPersistence) - for (var node$107 = workInProgress.child; null !== node$107; ) { - if (5 === node$107.tag) { - var instance = node$107.stateNode; + for (var node$108 = workInProgress.child; null !== node$108; ) { + if (5 === node$108.tag) { + var instance = node$108.stateNode; needsVisibilityToggle && isHidden && (instance = cloneHiddenInstance( instance, - node$107.type, - node$107.memoizedProps + node$108.type, + node$108.memoizedProps )); appendInitialChild(parent, instance); - } else if (6 === node$107.tag) - (instance = node$107.stateNode), + } else if (6 === node$108.tag) + (instance = node$108.stateNode), needsVisibilityToggle && isHidden && (instance = cloneHiddenTextInstance( instance, - node$107.memoizedProps + node$108.memoizedProps )), appendInitialChild(parent, instance); - else if (4 !== node$107.tag) - if (22 === node$107.tag && null !== node$107.memoizedState) - (instance = node$107.child), - null !== instance && (instance.return = node$107), - appendAllChildren(parent, node$107, !0, !0); - else if (null !== node$107.child) { - node$107.child.return = node$107; - node$107 = node$107.child; + else if (4 !== node$108.tag) + if (22 === node$108.tag && null !== node$108.memoizedState) + (instance = node$108.child), + null !== instance && (instance.return = node$108), + appendAllChildren(parent, node$108, !0, !0); + else if (null !== node$108.child) { + node$108.child.return = node$108; + node$108 = node$108.child; continue; } - if (node$107 === workInProgress) break; - for (; null === node$107.sibling; ) { - if (null === node$107.return || node$107.return === workInProgress) + if (node$108 === workInProgress) break; + for (; null === node$108.sibling; ) { + if (null === node$108.return || node$108.return === workInProgress) return; - node$107 = node$107.return; + node$108 = node$108.return; } - node$107.sibling.return = node$107.return; - node$107 = node$107.sibling; + node$108.sibling.return = node$108.return; + node$108 = node$108.sibling; } } function appendAllChildrenToContainer( @@ -6246,31 +6256,31 @@ module.exports = function ($$$config) { current.memoizedProps !== newProps && markUpdate(workInProgress); else if (supportsPersistence) { var currentInstance = current.stateNode, - oldProps$110 = current.memoizedProps; + oldProps$111 = current.memoizedProps; if ( (current = doesRequireClone(current, workInProgress)) || - oldProps$110 !== newProps + oldProps$111 !== newProps ) { var currentHostContext = contextStackCursor.current; - oldProps$110 = cloneInstance( + oldProps$111 = cloneInstance( currentInstance, type, - oldProps$110, + oldProps$111, newProps, !current, null ); - oldProps$110 === currentInstance + oldProps$111 === currentInstance ? (workInProgress.stateNode = currentInstance) : (finalizeInitialChildren( - oldProps$110, + oldProps$111, type, newProps, currentHostContext ) && markUpdate(workInProgress), - (workInProgress.stateNode = oldProps$110), + (workInProgress.stateNode = oldProps$111), current - ? appendAllChildren(oldProps$110, workInProgress, !1, !1) + ? appendAllChildren(oldProps$111, workInProgress, !1, !1) : markUpdate(workInProgress)); } else workInProgress.stateNode = currentInstance; } @@ -6320,15 +6330,15 @@ module.exports = function ($$$config) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$112 = null; null !== lastTailNode; ) + for (var lastTailNode$113 = null; null !== lastTailNode; ) null !== lastTailNode.alternate && - (lastTailNode$112 = lastTailNode), + (lastTailNode$113 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$112 + null === lastTailNode$113 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$112.sibling = null); + : (lastTailNode$113.sibling = null); } } function bubbleProperties(completedWork) { @@ -6338,19 +6348,19 @@ module.exports = function ($$$config) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$113 = completedWork.child; null !== child$113; ) - (newChildLanes |= child$113.lanes | child$113.childLanes), - (subtreeFlags |= child$113.subtreeFlags & 31457280), - (subtreeFlags |= child$113.flags & 31457280), - (child$113.return = completedWork), - (child$113 = child$113.sibling); + for (var child$114 = completedWork.child; null !== child$114; ) + (newChildLanes |= child$114.lanes | child$114.childLanes), + (subtreeFlags |= child$114.subtreeFlags & 31457280), + (subtreeFlags |= child$114.flags & 31457280), + (child$114.return = completedWork), + (child$114 = child$114.sibling); else - for (child$113 = completedWork.child; null !== child$113; ) - (newChildLanes |= child$113.lanes | child$113.childLanes), - (subtreeFlags |= child$113.subtreeFlags), - (subtreeFlags |= child$113.flags), - (child$113.return = completedWork), - (child$113 = child$113.sibling); + for (child$114 = completedWork.child; null !== child$114; ) + (newChildLanes |= child$114.lanes | child$114.childLanes), + (subtreeFlags |= child$114.subtreeFlags), + (subtreeFlags |= child$114.flags), + (child$114.return = completedWork), + (child$114 = child$114.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -6623,11 +6633,11 @@ module.exports = function ($$$config) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (nextResource = newProps.alternate.memoizedState.cachePool.pool); - var cache$126 = null; + var cache$127 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$126 = newProps.memoizedState.cachePool.pool); - cache$126 !== nextResource && (newProps.flags |= 2048); + (cache$127 = newProps.memoizedState.cachePool.pool); + cache$127 !== nextResource && (newProps.flags |= 2048); } renderLanes !== current && (enableTransitionTracing && (workInProgress.child.flags |= 2048), @@ -6663,8 +6673,8 @@ module.exports = function ($$$config) { if (null === nextResource) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$126 = nextResource.rendering; - if (null === cache$126) + cache$127 = nextResource.rendering; + if (null === cache$127) if (newProps) cutOffTailIfNeeded(nextResource, !1); else { if ( @@ -6672,11 +6682,11 @@ module.exports = function ($$$config) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$126 = findFirstSuspended(current); - if (null !== cache$126) { + cache$127 = findFirstSuspended(current); + if (null !== cache$127) { workInProgress.flags |= 128; cutOffTailIfNeeded(nextResource, !1); - current = cache$126.updateQueue; + current = cache$127.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -6705,7 +6715,7 @@ module.exports = function ($$$config) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$126)), null !== current)) { + if (((current = findFirstSuspended(cache$127)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -6715,7 +6725,7 @@ module.exports = function ($$$config) { cutOffTailIfNeeded(nextResource, !0), null === nextResource.tail && "hidden" === nextResource.tailMode && - !cache$126.alternate && + !cache$127.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -6728,13 +6738,13 @@ module.exports = function ($$$config) { cutOffTailIfNeeded(nextResource, !1), (workInProgress.lanes = 4194304)); nextResource.isBackwards - ? ((cache$126.sibling = workInProgress.child), - (workInProgress.child = cache$126)) + ? ((cache$127.sibling = workInProgress.child), + (workInProgress.child = cache$127)) : ((current = nextResource.last), null !== current - ? (current.sibling = cache$126) - : (workInProgress.child = cache$126), - (nextResource.last = cache$126)); + ? (current.sibling = cache$127) + : (workInProgress.child = cache$127), + (nextResource.last = cache$127)); } if (null !== nextResource.tail) return ( @@ -7009,8 +7019,8 @@ module.exports = function ($$$config) { else if ("function" === typeof ref) try { ref(null); - } catch (error$143) { - captureCommitPhaseError(current, nearestMountedAncestor, error$143); + } catch (error$144) { + captureCommitPhaseError(current, nearestMountedAncestor, error$144); } else ref.current = null; } @@ -7233,11 +7243,11 @@ module.exports = function ($$$config) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$144) { + } catch (error$145) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$144 + error$145 ); } } @@ -7794,19 +7804,19 @@ module.exports = function ($$$config) { } function commitSuspenseHydrationCallbacks(finishedRoot, finishedWork) { if (supportsHydration && null === finishedWork.memoizedState) { - var current$155 = finishedWork.alternate; + var current$156 = finishedWork.alternate; if ( - null !== current$155 && - ((current$155 = current$155.memoizedState), - null !== current$155 && - ((current$155 = current$155.dehydrated), null !== current$155)) + null !== current$156 && + ((current$156 = current$156.memoizedState), + null !== current$156 && + ((current$156 = current$156.dehydrated), null !== current$156)) ) try { - commitHydratedSuspenseInstance(current$155); + commitHydratedSuspenseInstance(current$156); var hydrationCallbacks = finishedRoot.hydrationCallbacks; if (null !== hydrationCallbacks) { var onHydrated = hydrationCallbacks.onHydrated; - onHydrated && onHydrated(current$155); + onHydrated && onHydrated(current$156); } } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); @@ -7925,11 +7935,11 @@ module.exports = function ($$$config) { } try { commitHookEffectListUnmount(5, finishedWork, finishedWork.return); - } catch (error$157) { + } catch (error$158) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$157 + error$158 ); } } @@ -8007,11 +8017,11 @@ module.exports = function ($$$config) { finishedWork.memoizedProps, finishedWork ); - } catch (error$158) { + } catch (error$159) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$158 + error$159 ); } break; @@ -8043,11 +8053,11 @@ module.exports = function ($$$config) { root = finishedWork.stateNode; try { resetTextContent(root); - } catch (error$159) { + } catch (error$160) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$159 + error$160 ); } } @@ -8057,11 +8067,11 @@ module.exports = function ($$$config) { props = finishedWork.type; try { commitUpdate(root, props, current, hoistableRoot, finishedWork); - } catch (error$161) { + } catch (error$162) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$161 + error$162 ); } } @@ -8079,11 +8089,11 @@ module.exports = function ($$$config) { current = null !== current ? current.memoizedProps : root; try { commitTextUpdate(flags, current, root); - } catch (error$162) { + } catch (error$163) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$162 + error$163 ); } } @@ -8106,11 +8116,11 @@ module.exports = function ($$$config) { ) try { commitHydratedContainer(root.containerInfo); - } catch (error$163) { + } catch (error$164) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$163 + error$164 ); } if (supportsPersistence) { @@ -8118,11 +8128,11 @@ module.exports = function ($$$config) { current = root.pendingChildren; try { replaceContainerChildren(flags, current); - } catch (error$164) { + } catch (error$165) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$164 + error$165 ); } } @@ -8147,11 +8157,11 @@ module.exports = function ($$$config) { current = current.pendingChildren; try { replaceContainerChildren(flags, current); - } catch (error$168) { + } catch (error$169) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$168 + error$169 ); } } @@ -8175,11 +8185,11 @@ module.exports = function ($$$config) { null !== retryQueue && suspenseCallback(new Set(retryQueue)); } } - } catch (error$169) { + } catch (error$170) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$169 + error$170 ); } flags = finishedWork.updateQueue; @@ -8251,11 +8261,11 @@ module.exports = function ($$$config) { suspenseCallback ? hideTextInstance(props) : unhideTextInstance(props, root.memoizedProps); - } catch (error$146) { + } catch (error$147) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$146 + error$147 ); } } else if ( @@ -8341,21 +8351,21 @@ module.exports = function ($$$config) { break; } case 5: - var parent$147 = JSCompiler_inline_result.stateNode; + var parent$148 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (resetTextContent(parent$147), + (resetTextContent(parent$148), (JSCompiler_inline_result.flags &= -33)); - var before$148 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$148, parent$147); + var before$149 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$149, parent$148); break; case 3: case 4: - var parent$149 = JSCompiler_inline_result.stateNode.containerInfo, - before$150 = getHostSibling(finishedWork); + var parent$150 = JSCompiler_inline_result.stateNode.containerInfo, + before$151 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$150, - parent$149 + before$151, + parent$150 ); break; default: @@ -8433,7 +8443,7 @@ module.exports = function ($$$config) { includeWorkInProgressEffects = includeWorkInProgressEffects && 0 !== (parentFiber.subtreeFlags & 8772); for (parentFiber = parentFiber.child; null !== parentFiber; ) { - var current$173 = parentFiber.alternate, + var current$174 = parentFiber.alternate, finishedRoot = finishedRoot$jscomp$0, finishedWork = parentFiber, flags = finishedWork.flags; @@ -8461,16 +8471,16 @@ module.exports = function ($$$config) { } catch (error) { captureCommitPhaseError(finishedWork, finishedWork.return, error); } - current$173 = finishedWork.updateQueue; - if (null !== current$173) { - var hiddenCallbacks = current$173.shared.hiddenCallbacks; + current$174 = finishedWork.updateQueue; + if (null !== current$174) { + var hiddenCallbacks = current$174.shared.hiddenCallbacks; if (null !== hiddenCallbacks) for ( - current$173.shared.hiddenCallbacks = null, current$173 = 0; - current$173 < hiddenCallbacks.length; - current$173++ + current$174.shared.hiddenCallbacks = null, current$174 = 0; + current$174 < hiddenCallbacks.length; + current$174++ ) - callCallback(hiddenCallbacks[current$173], finishedRoot); + callCallback(hiddenCallbacks[current$174], finishedRoot); } includeWorkInProgressEffects && flags & 64 && @@ -8486,7 +8496,7 @@ module.exports = function ($$$config) { includeWorkInProgressEffects ); includeWorkInProgressEffects && - null === current$173 && + null === current$174 && flags & 4 && commitHostComponentMount(finishedWork); safelyAttachRef(finishedWork, finishedWork.return); @@ -8829,9 +8839,9 @@ module.exports = function ($$$config) { ); break; case 22: - var instance$179 = finishedWork.stateNode; + var instance$180 = finishedWork.stateNode; null !== finishedWork.memoizedState - ? instance$179._visibility & 4 + ? instance$180._visibility & 4 ? recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8843,7 +8853,7 @@ module.exports = function ($$$config) { finishedRoot, finishedWork ) - : ((instance$179._visibility |= 4), + : ((instance$180._visibility |= 4), recursivelyTraverseReconnectPassiveEffects( finishedRoot, finishedWork, @@ -8856,7 +8866,7 @@ module.exports = function ($$$config) { commitOffscreenPassiveMountEffects( finishedWork.alternate, finishedWork, - instance$179 + instance$180 ); break; case 24: @@ -9410,7 +9420,8 @@ module.exports = function ($$$config) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) { @@ -9423,11 +9434,11 @@ module.exports = function ($$$config) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$10 = 31 - clz32(lane), - transitions = transitionLanesMap[index$10]; + index$11 = 31 - clz32(lane), + transitions = transitionLanesMap[index$11]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$10] = transitions; + transitionLanesMap[index$11] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -9436,7 +9447,8 @@ module.exports = function ($$$config) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )); ensureRootIsScheduled(root); } @@ -9460,7 +9472,13 @@ module.exports = function ($$$config) { if (0 !== exitStatus) { var renderWasConcurrent = didTimeout; do { - if (6 === exitStatus) markRootSuspended(root, lanes, 0); + if (6 === exitStatus) + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { didTimeout = root.current.alternate; if ( @@ -9492,7 +9510,12 @@ module.exports = function ($$$config) { } if (1 === exitStatus) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = didTimeout; @@ -9508,7 +9531,8 @@ module.exports = function ($$$config) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -9531,7 +9555,8 @@ module.exports = function ($$$config) { markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -9543,7 +9568,8 @@ module.exports = function ($$$config) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), exitStatus ); @@ -9556,7 +9582,8 @@ module.exports = function ($$$config) { workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -9611,7 +9638,8 @@ module.exports = function ($$$config) { transitions, didIncludeRenderPhaseUpdate, lanes, - spawnedLane + spawnedLane, + didSkipSuspendedSiblings ) { var subtreeFlags = finishedWork.subtreeFlags; if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) @@ -9630,7 +9658,7 @@ module.exports = function ($$$config) { didIncludeRenderPhaseUpdate ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, didSkipSuspendedSiblings); return; } commitRoot( @@ -9678,26 +9706,29 @@ module.exports = function ($$$config) { function markRootUpdated(root, updatedLanes) { root.pendingLanes |= updatedLanes; 268435456 !== updatedLanes && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) : executionContext & 4 && (didIncludeCommitPhaseUpdate = !0), throwIfInfiniteUpdateLoopDetected()); } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { - var index$6 = 31 - clz32(lanes), - lane = 1 << index$6; - expirationTimes[index$6] = -1; + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$7 = 31 - clz32(lanes), + lane = 1 << index$7; + didSkipSuspendedSiblings[index$7] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -9724,13 +9755,18 @@ module.exports = function ($$$config) { if (1 === exitStatus) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (6 === exitStatus) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -9783,6 +9819,10 @@ module.exports = function ($$$config) { workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = 0; workInProgressThrownValue = null; + workInProgressRootDidSkipSuspendedSiblings = !1; + workInProgressRootIsPrerendering = + 0 === + (root.pendingLanes & ~(root.suspendedLanes & ~root.pingedLanes) & lanes); workInProgressRootDidAttachPingListener = !1; workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -9801,9 +9841,9 @@ module.exports = function ($$$config) { 0 < allEntangledLanes; ) { - var index$4 = 31 - clz32(allEntangledLanes), - lane = 1 << index$4; - lanes |= root[index$4]; + var index$5 = 31 - clz32(allEntangledLanes), + lane = 1 << index$5; + lanes |= root[index$5]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -9875,7 +9915,8 @@ module.exports = function ($$$config) { markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -9910,8 +9951,8 @@ module.exports = function ($$$config) { } workLoopSync(); break; - } catch (thrownValue$193) { - handleThrow(root, thrownValue$193); + } catch (thrownValue$194) { + handleThrow(root, thrownValue$194); } while (1); lanes && root.shellSuspendCounter++; @@ -10026,8 +10067,8 @@ module.exports = function ($$$config) { } workLoopConcurrent(); break; - } catch (thrownValue$195) { - handleThrow(root, thrownValue$195); + } catch (thrownValue$196) { + handleThrow(root, thrownValue$196); } while (1); resetContextDependencies(); @@ -10143,31 +10184,27 @@ module.exports = function ($$$config) { workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = 6; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? (enableSiblingPrerendering + ? isHydrating || 1 === workInProgressSuspendedReason + ? (root = !0) + : workInProgressRootIsPrerendering + ? (root = !1) + : (workInProgressRootDidSkipSuspendedSiblings = root = !0) + : (root = !0), + unwindUnitOfWork(unitOfWork, root)) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings + ); + return; + } unitOfWork = completedWork.return; var next = completeWork( completedWork.alternate, @@ -10187,6 +10224,31 @@ module.exports = function ($$$config) { } while (null !== completedWork); 0 === workInProgressRootExitStatus && (workInProgressRootExitStatus = 5); } + function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), + (next.subtreeFlags = 0), + (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = 6; + workInProgress = null; + } function commitRoot( root, recoverableErrors, @@ -10258,12 +10320,12 @@ module.exports = function ($$$config) { setCurrentUpdatePriority(2); var prevExecutionContext = executionContext; executionContext |= 4; - var shouldFireAfterActiveInstanceBlur$201 = commitBeforeMutationEffects( + var shouldFireAfterActiveInstanceBlur$202 = commitBeforeMutationEffects( root, finishedWork ); commitMutationEffectsOnFiber(finishedWork, root); - shouldFireAfterActiveInstanceBlur$201 && afterActiveInstanceBlur(); + shouldFireAfterActiveInstanceBlur$202 && afterActiveInstanceBlur(); resetAfterCommit(root.containerInfo); root.current = finishedWork; commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); @@ -10456,6 +10518,7 @@ module.exports = function ($$$config) { var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; enableInfiniteRenderLoopDetection && (executionContext & 2 ? (workInProgressRootDidIncludeRecursiveRenderUpdate = !0) @@ -10895,6 +10958,7 @@ module.exports = function ($$$config) { this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -11789,6 +11853,8 @@ module.exports = function ($$$config) { workInProgressRootRenderLanes = 0, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -12162,7 +12228,7 @@ module.exports = function ($$$config) { rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-modern-e10e8681-20240904" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index b72faded96194..5228076af57ec 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -13,7 +13,7 @@ "use strict"; __DEV__ && (function () { - function JSCompiler_object_inline_createNodeMock_1071() { + function JSCompiler_object_inline_createNodeMock_1064() { return null; } function findHook(fiber, id) { @@ -805,28 +805,37 @@ __DEV__ && var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -903,13 +912,16 @@ __DEV__ && function markRootUpdated$1(root, updateLane) { root.pendingLanes |= updateLane; 268435456 !== updateLane && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), + (root.pingedLanes = 0), + (root.warmLanes = 0)); } function markRootFinished(root, remainingLanes, spawnedLane) { var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -10567,7 +10579,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated$1(root, lane); if ( @@ -10608,7 +10621,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )), ensureRootIsScheduled(root); } @@ -10633,7 +10647,12 @@ __DEV__ && var renderWasConcurrent = shouldTimeSlice; do { if (didTimeout === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { shouldTimeSlice = root.current.alternate; if ( @@ -10665,7 +10684,12 @@ __DEV__ && } if (didTimeout === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = shouldTimeSlice; @@ -10681,7 +10705,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -10715,7 +10740,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -10727,7 +10753,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), didTimeout ); @@ -10740,7 +10767,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -10839,19 +10867,22 @@ __DEV__ && } return !0; } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didSkipSuspendedSiblings[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10881,13 +10912,18 @@ __DEV__ && if (exitStatus === RootFatalErrored) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (exitStatus === RootDidNotComplete) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -10960,7 +10996,8 @@ __DEV__ && workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = !1; + workInProgressRootDidAttachPingListener = + workInProgressRootDidSkipSuspendedSiblings = !1; workInProgressRootExitStatus = RootInProgress; workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11049,7 +11086,8 @@ __DEV__ && markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -11363,43 +11401,20 @@ __DEV__ && workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - if (0 !== (root.mode & 2)) { - stopProfilerTimerIfRunningAndRecordDelta(root, !1); - unitOfWork = root.actualDuration; - for (thrownValue = root.child; null !== thrownValue; ) - (unitOfWork += thrownValue.actualDuration), - (thrownValue = thrownValue.sibling); - root.actualDuration = unitOfWork; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = RootDidNotComplete; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? unwindUnitOfWork(unitOfWork, !0) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - 0 !== (completedWork.flags & 32768) && - error$jscomp$0( - "Internal React error: Expected this fiber to be complete, but it isn't. It should have been unwound. This is a bug in React." + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings ); + return; + } var current = completedWork.alternate; unitOfWork = completedWork.return; 0 === (completedWork.mode & 2) @@ -11433,6 +11448,38 @@ __DEV__ && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); } + function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + if (0 !== (unitOfWork.mode & 2)) { + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !1); + next = unitOfWork.actualDuration; + for (var child = unitOfWork.child; null !== child; ) + (next += child.actualDuration), (child = child.sibling); + unitOfWork.actualDuration = next; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), + (next.subtreeFlags = 0), + (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + } function commitRoot( root, recoverableErrors, @@ -11826,6 +11873,7 @@ __DEV__ && var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; isConcurrentActEnvironment() && null === ReactSharedInternals.actQueue && error$jscomp$0( @@ -12444,6 +12492,7 @@ __DEV__ && this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -14589,6 +14638,7 @@ __DEV__ && SuspendedOnHydration = 8, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -14837,11 +14887,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-8b4c54c0-20240904", + version: "19.0.0-www-classic-e10e8681-20240904", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-classic-e10e8681-20240904" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -14861,7 +14911,7 @@ __DEV__ && exports._Scheduler = Scheduler; exports.act = act; exports.create = function (element, options) { - var createNodeMock = JSCompiler_object_inline_createNodeMock_1071, + var createNodeMock = JSCompiler_object_inline_createNodeMock_1064, isConcurrentOnly = !0 !== global.IS_REACT_NATIVE_TEST_ENVIRONMENT, isConcurrent = isConcurrentOnly, isStrictMode = !1; @@ -14976,5 +15026,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.0.0-www-classic-8b4c54c0-20240904"; + exports.version = "19.0.0-www-classic-e10e8681-20240904"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 195b00faa5ad3..ce4e5e98c15a5 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -13,7 +13,7 @@ "use strict"; __DEV__ && (function () { - function JSCompiler_object_inline_createNodeMock_1071() { + function JSCompiler_object_inline_createNodeMock_1064() { return null; } function findHook(fiber, id) { @@ -805,28 +805,37 @@ __DEV__ && var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; var nonIdlePendingLanes = pendingLanes & 134217727; 0 !== nonIdlePendingLanes ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), 0 !== pendingLanes ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((root &= nonIdlePendingLanes), - 0 !== root && (nextLanes = getHighestPriorityLanes(root)))) - : ((pendingLanes &= ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : 0 !== root && (nextLanes = getHighestPriorityLanes(root))); + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = nonIdlePendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : ((pingedLanes = pendingLanes & ~root), + 0 !== pingedLanes && + (nextLanes = getHighestPriorityLanes(pingedLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (pingedLanes = wipLanes & -wipLanes), + suspendedLanes >= pingedLanes || + (32 === suspendedLanes && 0 !== (pingedLanes & 4194176))) ? wipLanes : nextLanes; } @@ -903,13 +912,16 @@ __DEV__ && function markRootUpdated$1(root, updateLane) { root.pendingLanes |= updateLane; 268435456 !== updateLane && - ((root.suspendedLanes = 0), (root.pingedLanes = 0)); + ((root.suspendedLanes = 0), + (root.pingedLanes = 0), + (root.warmLanes = 0)); } function markRootFinished(root, remainingLanes, spawnedLane) { var noLongerPendingLanes = root.pendingLanes & ~remainingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; root.pingedLanes = 0; + root.warmLanes = 0; root.expiredLanes &= remainingLanes; root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; @@ -10567,7 +10579,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); markRootUpdated$1(root, lane); if ( @@ -10608,7 +10621,8 @@ __DEV__ && markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings )), ensureRootIsScheduled(root); } @@ -10633,7 +10647,12 @@ __DEV__ && var renderWasConcurrent = shouldTimeSlice; do { if (didTimeout === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); else { shouldTimeSlice = root.current.alternate; if ( @@ -10665,7 +10684,12 @@ __DEV__ && } if (didTimeout === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended( + root, + lanes, + 0, + workInProgressRootDidSkipSuspendedSiblings + ); break; } root.finishedWork = shouldTimeSlice; @@ -10681,7 +10705,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -10715,7 +10740,8 @@ __DEV__ && markRootSuspended( renderWasConcurrent, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; renderWasConcurrent.timeoutHandle = scheduleTimeout( @@ -10727,7 +10753,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ), didTimeout ); @@ -10740,7 +10767,8 @@ __DEV__ && workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } } @@ -10839,19 +10867,22 @@ __DEV__ && } return !0; } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didSkipSuspendedSiblings + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didSkipSuspendedSiblings || (root.warmLanes |= suspendedLanes); + didSkipSuspendedSiblings = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didSkipSuspendedSiblings[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10881,13 +10912,18 @@ __DEV__ && if (exitStatus === RootFatalErrored) return ( prepareFreshStack(root, 0), - markRootSuspended(root, lanes, 0), + markRootSuspended(root, lanes, 0, !1), ensureRootIsScheduled(root), null ); if (exitStatus === RootDidNotComplete) return ( - markRootSuspended(root, lanes, workInProgressDeferredLane), + markRootSuspended( + root, + lanes, + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings + ), ensureRootIsScheduled(root), null ); @@ -10960,7 +10996,8 @@ __DEV__ && workInProgressRootRenderLanes = lanes; workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; - workInProgressRootDidAttachPingListener = !1; + workInProgressRootDidAttachPingListener = + workInProgressRootDidSkipSuspendedSiblings = !1; workInProgressRootExitStatus = RootInProgress; workInProgressDeferredLane = workInProgressRootPingedLanes = @@ -11049,7 +11086,8 @@ __DEV__ && markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + workInProgressRootDidSkipSuspendedSiblings ); } function renderRootSync(root, lanes) { @@ -11363,43 +11401,20 @@ __DEV__ && workInProgress = null; return; } - if (unitOfWork.flags & 32768) - a: { - root = unitOfWork; - do { - unitOfWork = unwindWork(root.alternate, root); - if (null !== unitOfWork) { - unitOfWork.flags &= 32767; - workInProgress = unitOfWork; - break a; - } - if (0 !== (root.mode & 2)) { - stopProfilerTimerIfRunningAndRecordDelta(root, !1); - unitOfWork = root.actualDuration; - for (thrownValue = root.child; null !== thrownValue; ) - (unitOfWork += thrownValue.actualDuration), - (thrownValue = thrownValue.sibling); - root.actualDuration = unitOfWork; - } - root = root.return; - null !== root && - ((root.flags |= 32768), - (root.subtreeFlags = 0), - (root.deletions = null)); - workInProgress = root; - } while (null !== root); - workInProgressRootExitStatus = RootDidNotComplete; - workInProgress = null; - } - else completeUnitOfWork(unitOfWork); + unitOfWork.flags & 32768 + ? unwindUnitOfWork(unitOfWork, !0) + : completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; do { - 0 !== (completedWork.flags & 32768) && - error$jscomp$0( - "Internal React error: Expected this fiber to be complete, but it isn't. It should have been unwound. This is a bug in React." + if (0 !== (completedWork.flags & 32768)) { + unwindUnitOfWork( + completedWork, + workInProgressRootDidSkipSuspendedSiblings ); + return; + } var current = completedWork.alternate; unitOfWork = completedWork.return; 0 === (completedWork.mode & 2) @@ -11433,6 +11448,38 @@ __DEV__ && workInProgressRootExitStatus === RootInProgress && (workInProgressRootExitStatus = RootCompleted); } + function unwindUnitOfWork(unitOfWork, skipSiblings) { + do { + var next = unwindWork(unitOfWork.alternate, unitOfWork); + if (null !== next) { + next.flags &= 32767; + workInProgress = next; + return; + } + if (0 !== (unitOfWork.mode & 2)) { + stopProfilerTimerIfRunningAndRecordDelta(unitOfWork, !1); + next = unitOfWork.actualDuration; + for (var child = unitOfWork.child; null !== child; ) + (next += child.actualDuration), (child = child.sibling); + unitOfWork.actualDuration = next; + } + next = unitOfWork.return; + null !== next && + ((next.flags |= 32768), + (next.subtreeFlags = 0), + (next.deletions = null)); + if ( + !skipSiblings && + ((unitOfWork = unitOfWork.sibling), null !== unitOfWork) + ) { + workInProgress = unitOfWork; + return; + } + workInProgress = unitOfWork = next; + } while (null !== unitOfWork); + workInProgressRootExitStatus = RootDidNotComplete; + workInProgress = null; + } function commitRoot( root, recoverableErrors, @@ -11826,6 +11873,7 @@ __DEV__ && var pingCache = root.pingCache; null !== pingCache && pingCache.delete(wakeable); root.pingedLanes |= root.suspendedLanes & pingedLanes; + root.warmLanes &= ~pingedLanes; isConcurrentActEnvironment() && null === ReactSharedInternals.actQueue && error$jscomp$0( @@ -12444,6 +12492,7 @@ __DEV__ && this.errorRecoveryDisabledLanes = this.finishedLanes = this.expiredLanes = + this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = @@ -14589,6 +14638,7 @@ __DEV__ && SuspendedOnHydration = 8, workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, + workInProgressRootDidSkipSuspendedSiblings = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -14837,11 +14887,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-8b4c54c0-20240904", + version: "19.0.0-www-modern-e10e8681-20240904", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-8b4c54c0-20240904" + reconcilerVersion: "19.0.0-www-modern-e10e8681-20240904" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -14861,7 +14911,7 @@ __DEV__ && exports._Scheduler = Scheduler; exports.act = act; exports.create = function (element, options) { - var createNodeMock = JSCompiler_object_inline_createNodeMock_1071, + var createNodeMock = JSCompiler_object_inline_createNodeMock_1064, isConcurrentOnly = !0 !== global.IS_REACT_NATIVE_TEST_ENVIRONMENT, isConcurrent = isConcurrentOnly, isStrictMode = !1; @@ -14976,5 +15026,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.0.0-www-modern-8b4c54c0-20240904"; + exports.version = "19.0.0-www-modern-e10e8681-20240904"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index abda514a3dbd4..673e76c4af7b4 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.0.0-www-classic-8b4c54c0-20240904 \ No newline at end of file +19.0.0-www-classic-e10e8681-20240904 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index a1f4bc542f1a2..f1a48b9a1bb35 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.0.0-www-modern-8b4c54c0-20240904 \ No newline at end of file +19.0.0-www-modern-e10e8681-20240904 \ No newline at end of file diff --git a/compiled/facebook-www/__test_utils__/ReactAllWarnings.js b/compiled/facebook-www/__test_utils__/ReactAllWarnings.js index 284aedeeabb11..096df7d3cb773 100644 --- a/compiled/facebook-www/__test_utils__/ReactAllWarnings.js +++ b/compiled/facebook-www/__test_utils__/ReactAllWarnings.js @@ -177,7 +177,6 @@ export default [ "Internal React error: A listener was unexpectedly attached to a \"noop\" thenable. This is a bug in React. Please file an issue.", "Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.\n\nError message:\n\n%s", "Internal React error: Expected static flag was missing. Please notify the React team.", - "Internal React error: Expected this fiber to be complete, but it isn't. It should have been unwound. This is a bug in React.", "Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.", "Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.", "Invalid ARIA attribute `%s`. Did you mean `%s`?",