diff --git a/examples/reproduction-template/package.json b/examples/reproduction-template/package.json index 5bd4480086b6a..35491cf7e18d7 100644 --- a/examples/reproduction-template/package.json +++ b/examples/reproduction-template/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "next": "canary", - "react": "19.0.0-rc-380f5d67-20241113", - "react-dom": "19.0.0-rc-380f5d67-20241113" + "react": "19.0.0-rc-b01722d5-20241114", + "react-dom": "19.0.0-rc-b01722d5-20241114" }, "devDependencies": { "@types/node": "20.12.12", diff --git a/package.json b/package.json index 89ba79ec92f87..09ca4af8dc4e1 100644 --- a/package.json +++ b/package.json @@ -209,19 +209,19 @@ "pretty-bytes": "5.3.0", "pretty-ms": "7.0.0", "random-seed": "0.3.0", - "react": "19.0.0-rc-380f5d67-20241113", + "react": "19.0.0-rc-b01722d5-20241114", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@19.0.0-rc-380f5d67-20241113", - "react-dom": "19.0.0-rc-380f5d67-20241113", + "react-builtin": "npm:react@19.0.0-rc-b01722d5-20241114", + "react-dom": "19.0.0-rc-b01722d5-20241114", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@19.0.0-rc-380f5d67-20241113", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-380f5d67-20241113", - "react-experimental-builtin": "npm:react@0.0.0-experimental-380f5d67-20241113", - "react-is-builtin": "npm:react-is@19.0.0-rc-380f5d67-20241113", - "react-server-dom-turbopack": "19.0.0-rc-380f5d67-20241113", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-380f5d67-20241113", - "react-server-dom-webpack": "19.0.0-rc-380f5d67-20241113", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-380f5d67-20241113", + "react-dom-builtin": "npm:react-dom@19.0.0-rc-b01722d5-20241114", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-b01722d5-20241114", + "react-experimental-builtin": "npm:react@0.0.0-experimental-b01722d5-20241114", + "react-is-builtin": "npm:react-is@19.0.0-rc-b01722d5-20241114", + "react-server-dom-turbopack": "19.0.0-rc-b01722d5-20241114", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-b01722d5-20241114", + "react-server-dom-webpack": "19.0.0-rc-b01722d5-20241114", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-b01722d5-20241114", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -231,8 +231,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.10.9", - "scheduler-builtin": "npm:scheduler@0.25.0-rc-380f5d67-20241113", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-380f5d67-20241113", + "scheduler-builtin": "npm:scheduler@0.25.0-rc-b01722d5-20241114", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-b01722d5-20241114", "seedrandom": "3.0.5", "semver": "7.3.7", "shell-quote": "1.7.3", @@ -272,10 +272,10 @@ "@babel/traverse": "7.22.5", "@types/react": "npm:types-react@19.0.0-rc.0", "@types/react-dom": "npm:types-react-dom@19.0.0-rc.0", - "react": "19.0.0-rc-380f5d67-20241113", - "react-dom": "19.0.0-rc-380f5d67-20241113", - "react-is": "19.0.0-rc-380f5d67-20241113", - "scheduler": "0.25.0-rc-380f5d67-20241113" + "react": "19.0.0-rc-b01722d5-20241114", + "react-dom": "19.0.0-rc-b01722d5-20241114", + "react-is": "19.0.0-rc-b01722d5-20241114", + "scheduler": "0.25.0-rc-b01722d5-20241114" }, "patchedDependencies": { "webpack-sources@3.2.3": "patches/webpack-sources@3.2.3.patch" diff --git a/packages/create-next-app/templates/index.ts b/packages/create-next-app/templates/index.ts index 21bdfd98c4bb4..5e564a4e1ce0b 100644 --- a/packages/create-next-app/templates/index.ts +++ b/packages/create-next-app/templates/index.ts @@ -13,7 +13,7 @@ import { GetTemplateFileArgs, InstallTemplateArgs } from "./types"; // Do not rename or format. sync-react script relies on this line. // prettier-ignore -const nextjsReactPeerVersion = "19.0.0-rc-380f5d67-20241113"; +const nextjsReactPeerVersion = "19.0.0-rc-b01722d5-20241114"; /** * Get the file path for a given file in a template, e.g. "next.config.js". diff --git a/packages/next/package.json b/packages/next/package.json index bdc39869dfa46..8a424560f29a1 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -109,8 +109,8 @@ "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.41.2", "babel-plugin-react-compiler": "*", - "react": "^18.2.0 || 19.0.0-rc-380f5d67-20241113", - "react-dom": "^18.2.0 || 19.0.0-rc-380f5d67-20241113", + "react": "^18.2.0 || 19.0.0-rc-b01722d5-20241114", + "react-dom": "^18.2.0 || 19.0.0-rc-b01722d5-20241114", "sass": "^1.3.0" }, "peerDependenciesMeta": { diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js index 56815ee206978..3578695bbb18f 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js @@ -1035,28 +1035,40 @@ var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes, + warmLanes = root.warmLanes; + root = 0 !== root.finishedLanes; 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)) + : root || + ((warmLanes = nonIdlePendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : root || + ((warmLanes = pendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (warmLanes = wipLanes & -wipLanes), + suspendedLanes >= warmLanes || + (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) ? wipLanes : nextLanes; } @@ -1141,7 +1153,9 @@ root, finishedLanes, remainingLanes, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; @@ -1152,17 +1166,17 @@ root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - finishedLanes = root.entanglements; - var expirationTimes = root.expirationTimes, + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index = 31 - clz32(remainingLanes); - previouslyPendingLanes = 1 << index; - finishedLanes[index] = 0; + var index = 31 - clz32(remainingLanes), + lane = 1 << index; + entanglements[index] = 0; expirationTimes[index] = -1; var hiddenUpdatesForLane = hiddenUpdates[index]; if (null !== hiddenUpdatesForLane) @@ -1174,9 +1188,14 @@ var update = hiddenUpdatesForLane[index]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~previouslyPendingLanes; + remainingLanes &= ~lane; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -3779,31 +3798,31 @@ } function logRenderPhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "primary-dark"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Render", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "primary-dark"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Render", reusableLaneOptions)); } function logSuspenseThrottlePhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-light"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Throttled", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "secondary-light"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Throttled", reusableLaneOptions)); } function logSuspendedCommitPhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-light"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Suspended", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "secondary-light"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Suspended", reusableLaneOptions)); } function logCommitPhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Commit", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "secondary-dark"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Commit", reusableLaneOptions)); } function finishQueueingConcurrentUpdates() { for ( @@ -4029,14 +4048,24 @@ JSCompiler_temp ? 0 > blockingUpdateTime && ((blockingUpdateTime = now()), - (blockingEventTime = resolveEventTimeStamp()), - (blockingEventType = resolveEventType())) + (lane = resolveEventTimeStamp()), + (JSCompiler_temp = resolveEventType()), + (blockingEventIsRepeat = + lane === blockingEventTime && + JSCompiler_temp === blockingEventType), + (blockingEventTime = lane), + (blockingEventType = JSCompiler_temp)) : 0 !== (lane & 4194176) && 0 > transitionUpdateTime && ((transitionUpdateTime = now()), 0 > transitionStartTime && - ((transitionEventTime = resolveEventTimeStamp()), - (transitionEventType = resolveEventType()))); + ((lane = resolveEventTimeStamp()), + (JSCompiler_temp = resolveEventType()), + (transitionEventIsRepeat = + lane === transitionEventTime && + JSCompiler_temp === transitionEventType), + (transitionEventTime = lane), + (transitionEventType = JSCompiler_temp))); } function pushNestedEffectDurations() { var prevEffectDuration = profilerEffectDuration; @@ -8908,33 +8937,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2295; - var JSCompiler_object_inline_stack_2294 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2309; + var JSCompiler_object_inline_stack_2308 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2292 = !1; + var JSCompiler_object_inline_message_2306 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2295 = didSuspend) || - (JSCompiler_object_inline_componentStack_2295 = + (JSCompiler_object_inline_componentStack_2309 = didSuspend) || + (JSCompiler_object_inline_componentStack_2309 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2295 && - ((JSCompiler_object_inline_message_2292 = !0), + JSCompiler_object_inline_componentStack_2309 && + ((JSCompiler_object_inline_message_2306 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2295 = + JSCompiler_object_inline_componentStack_2309 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2292 + JSCompiler_object_inline_message_2306 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2293 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2307 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2293)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2307)) { c: { - var instance = JSCompiler_object_inline_digest_2293; + var instance = JSCompiler_object_inline_digest_2307; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8975,19 +9004,19 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2293 + JSCompiler_object_inline_digest_2307 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2293 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2307 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2293 && - ((JSCompiler_object_inline_digest_2293 = - JSCompiler_object_inline_digest_2293.dehydrated), - null !== JSCompiler_object_inline_digest_2293) + null !== JSCompiler_object_inline_digest_2307 && + ((JSCompiler_object_inline_digest_2307 = + JSCompiler_object_inline_digest_2307.dehydrated), + null !== JSCompiler_object_inline_digest_2307) ) return ( - JSCompiler_object_inline_digest_2293.data === + JSCompiler_object_inline_digest_2307.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -8995,68 +9024,68 @@ ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2293 = - JSCompiler_object_inline_stack_2294.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2294.fallback; - if (JSCompiler_object_inline_message_2292) + JSCompiler_object_inline_digest_2307 = + JSCompiler_object_inline_stack_2308.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2308.fallback; + if (JSCompiler_object_inline_message_2306) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2294 = + (JSCompiler_object_inline_stack_2308 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2293, + JSCompiler_object_inline_digest_2307, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2292 = workInProgress.child), - (JSCompiler_object_inline_message_2292.memoizedState = + (JSCompiler_object_inline_message_2306 = workInProgress.child), + (JSCompiler_object_inline_message_2306.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2292.childLanes = + (JSCompiler_object_inline_message_2306.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2295, + JSCompiler_object_inline_componentStack_2309, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2294 + JSCompiler_object_inline_stack_2308 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2294.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2308.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2294 = + (JSCompiler_object_inline_stack_2308 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2293, + JSCompiler_object_inline_digest_2307, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2292 = workInProgress.child), - (JSCompiler_object_inline_message_2292.memoizedState = + (JSCompiler_object_inline_message_2306 = workInProgress.child), + (JSCompiler_object_inline_message_2306.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2292.childLanes = + (JSCompiler_object_inline_message_2306.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2295, + JSCompiler_object_inline_componentStack_2309, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2294 + JSCompiler_object_inline_stack_2308 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2293 + JSCompiler_object_inline_digest_2307 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2293 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2293) + ((JSCompiler_object_inline_digest_2307 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2307) ) { if (didSuspend) workInProgress.flags & 256 @@ -9073,95 +9102,95 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2292 = - JSCompiler_object_inline_stack_2294.fallback), - (JSCompiler_object_inline_digest_2293 = workInProgress.mode), - (JSCompiler_object_inline_stack_2294 = + (JSCompiler_object_inline_message_2306 = + JSCompiler_object_inline_stack_2308.fallback), + (JSCompiler_object_inline_digest_2307 = workInProgress.mode), + (JSCompiler_object_inline_stack_2308 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2294.children + children: JSCompiler_object_inline_stack_2308.children }, - JSCompiler_object_inline_digest_2293 + JSCompiler_object_inline_digest_2307 )), - (JSCompiler_object_inline_message_2292 = + (JSCompiler_object_inline_message_2306 = createFiberFromFragment( - JSCompiler_object_inline_message_2292, - JSCompiler_object_inline_digest_2293, + JSCompiler_object_inline_message_2306, + JSCompiler_object_inline_digest_2307, renderLanes, null )), - (JSCompiler_object_inline_message_2292.flags |= 2), - (JSCompiler_object_inline_stack_2294.return = workInProgress), - (JSCompiler_object_inline_message_2292.return = workInProgress), - (JSCompiler_object_inline_stack_2294.sibling = - JSCompiler_object_inline_message_2292), - (workInProgress.child = JSCompiler_object_inline_stack_2294), + (JSCompiler_object_inline_message_2306.flags |= 2), + (JSCompiler_object_inline_stack_2308.return = workInProgress), + (JSCompiler_object_inline_message_2306.return = workInProgress), + (JSCompiler_object_inline_stack_2308.sibling = + JSCompiler_object_inline_message_2306), + (workInProgress.child = JSCompiler_object_inline_stack_2308), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2294 = workInProgress.child), - (JSCompiler_object_inline_stack_2294.memoizedState = + (JSCompiler_object_inline_stack_2308 = workInProgress.child), + (JSCompiler_object_inline_stack_2308.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2294.childLanes = + (JSCompiler_object_inline_stack_2308.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2295, + JSCompiler_object_inline_componentStack_2309, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2292)); + (workInProgress = JSCompiler_object_inline_message_2306)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_digest_2293.data === + JSCompiler_object_inline_digest_2307.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_componentStack_2295 = - JSCompiler_object_inline_digest_2293.nextSibling && - JSCompiler_object_inline_digest_2293.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2295) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2295.dgst; - var message = JSCompiler_object_inline_componentStack_2295.msg; - instance = JSCompiler_object_inline_componentStack_2295.stck; + JSCompiler_object_inline_componentStack_2309 = + JSCompiler_object_inline_digest_2307.nextSibling && + JSCompiler_object_inline_digest_2307.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2309) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2309.dgst; + var message = JSCompiler_object_inline_componentStack_2309.msg; + instance = JSCompiler_object_inline_componentStack_2309.stck; var componentStack = - JSCompiler_object_inline_componentStack_2295.cstck; + JSCompiler_object_inline_componentStack_2309.cstck; } - JSCompiler_object_inline_message_2292 = message; - JSCompiler_object_inline_digest_2293 = JSCompiler_temp; - JSCompiler_object_inline_stack_2294 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2295 = + JSCompiler_object_inline_message_2306 = message; + JSCompiler_object_inline_digest_2307 = JSCompiler_temp; + JSCompiler_object_inline_stack_2308 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2309 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2293 && - ((JSCompiler_object_inline_componentStack_2295 = - JSCompiler_object_inline_message_2292 - ? Error(JSCompiler_object_inline_message_2292) + "POSTPONE" !== JSCompiler_object_inline_digest_2307 && + ((JSCompiler_object_inline_componentStack_2309 = + JSCompiler_object_inline_message_2306 + ? Error(JSCompiler_object_inline_message_2306) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." )), - (JSCompiler_object_inline_componentStack_2295.stack = - JSCompiler_object_inline_stack_2294 || ""), - (JSCompiler_object_inline_componentStack_2295.digest = - JSCompiler_object_inline_digest_2293), - (JSCompiler_object_inline_stack_2294 = + (JSCompiler_object_inline_componentStack_2309.stack = + JSCompiler_object_inline_stack_2308 || ""), + (JSCompiler_object_inline_componentStack_2309.digest = + JSCompiler_object_inline_digest_2307), + (JSCompiler_object_inline_stack_2308 = void 0 === JSCompiler_temp ? null : JSCompiler_temp), - (JSCompiler_object_inline_message_2292 = { - value: JSCompiler_object_inline_componentStack_2295, + (JSCompiler_object_inline_message_2306 = { + value: JSCompiler_object_inline_componentStack_2309, source: null, - stack: JSCompiler_object_inline_stack_2294 + stack: JSCompiler_object_inline_stack_2308 }), - "string" === typeof JSCompiler_object_inline_stack_2294 && + "string" === typeof JSCompiler_object_inline_stack_2308 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2295, - JSCompiler_object_inline_message_2292 + JSCompiler_object_inline_componentStack_2309, + JSCompiler_object_inline_message_2306 ), - queueHydrationError(JSCompiler_object_inline_message_2292)); + queueHydrationError(JSCompiler_object_inline_message_2306)); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9175,25 +9204,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2295 = + (JSCompiler_object_inline_componentStack_2309 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2295) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2309) ) { - JSCompiler_object_inline_componentStack_2295 = workInProgressRoot; - if (null !== JSCompiler_object_inline_componentStack_2295) { - JSCompiler_object_inline_stack_2294 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2294 & 42)) - JSCompiler_object_inline_stack_2294 = 1; + JSCompiler_object_inline_componentStack_2309 = workInProgressRoot; + if (null !== JSCompiler_object_inline_componentStack_2309) { + JSCompiler_object_inline_stack_2308 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2308 & 42)) + JSCompiler_object_inline_stack_2308 = 1; else - switch (JSCompiler_object_inline_stack_2294) { + switch (JSCompiler_object_inline_stack_2308) { case 2: - JSCompiler_object_inline_stack_2294 = 1; + JSCompiler_object_inline_stack_2308 = 1; break; case 8: - JSCompiler_object_inline_stack_2294 = 4; + JSCompiler_object_inline_stack_2308 = 4; break; case 32: - JSCompiler_object_inline_stack_2294 = 16; + JSCompiler_object_inline_stack_2308 = 16; break; case 128: case 256: @@ -9214,40 +9243,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2294 = 64; + JSCompiler_object_inline_stack_2308 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2294 = 134217728; + JSCompiler_object_inline_stack_2308 = 134217728; break; default: - JSCompiler_object_inline_stack_2294 = 0; + JSCompiler_object_inline_stack_2308 = 0; } - JSCompiler_object_inline_stack_2294 = + JSCompiler_object_inline_stack_2308 = 0 !== - (JSCompiler_object_inline_stack_2294 & - (JSCompiler_object_inline_componentStack_2295.suspendedLanes | + (JSCompiler_object_inline_stack_2308 & + (JSCompiler_object_inline_componentStack_2309.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2294; + : JSCompiler_object_inline_stack_2308; if ( - 0 !== JSCompiler_object_inline_stack_2294 && - JSCompiler_object_inline_stack_2294 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2308 && + JSCompiler_object_inline_stack_2308 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2294), + ((prevState.retryLane = JSCompiler_object_inline_stack_2308), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2294 + JSCompiler_object_inline_stack_2308 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2295, + JSCompiler_object_inline_componentStack_2309, current, - JSCompiler_object_inline_stack_2294 + JSCompiler_object_inline_stack_2308 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_digest_2293.data === + JSCompiler_object_inline_digest_2307.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9255,7 +9284,7 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2293.data === + JSCompiler_object_inline_digest_2307.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9263,12 +9292,12 @@ null, current )), - (JSCompiler_object_inline_digest_2293._reactRetry = + (JSCompiler_object_inline_digest_2307._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2293.nextSibling + JSCompiler_object_inline_digest_2307.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9286,54 +9315,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2294.children + JSCompiler_object_inline_stack_2308.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2292) + if (JSCompiler_object_inline_message_2306) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2292 = - JSCompiler_object_inline_stack_2294.fallback), - (JSCompiler_object_inline_digest_2293 = workInProgress.mode), + (JSCompiler_object_inline_message_2306 = + JSCompiler_object_inline_stack_2308.fallback), + (JSCompiler_object_inline_digest_2307 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2294 = createWorkInProgress( + (JSCompiler_object_inline_stack_2308 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2294.children + children: JSCompiler_object_inline_stack_2308.children } )), - (JSCompiler_object_inline_stack_2294.subtreeFlags = + (JSCompiler_object_inline_stack_2308.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_message_2292 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2306 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2292 + JSCompiler_object_inline_message_2306 )) - : ((JSCompiler_object_inline_message_2292 = createFiberFromFragment( - JSCompiler_object_inline_message_2292, - JSCompiler_object_inline_digest_2293, + : ((JSCompiler_object_inline_message_2306 = createFiberFromFragment( + JSCompiler_object_inline_message_2306, + JSCompiler_object_inline_digest_2307, renderLanes, null )), - (JSCompiler_object_inline_message_2292.flags |= 2)), - (JSCompiler_object_inline_message_2292.return = workInProgress), - (JSCompiler_object_inline_stack_2294.return = workInProgress), - (JSCompiler_object_inline_stack_2294.sibling = - JSCompiler_object_inline_message_2292), - (workInProgress.child = JSCompiler_object_inline_stack_2294), - (JSCompiler_object_inline_stack_2294 = - JSCompiler_object_inline_message_2292), - (JSCompiler_object_inline_message_2292 = workInProgress.child), - (JSCompiler_object_inline_digest_2293 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2293 - ? (JSCompiler_object_inline_digest_2293 = + (JSCompiler_object_inline_message_2306.flags |= 2)), + (JSCompiler_object_inline_message_2306.return = workInProgress), + (JSCompiler_object_inline_stack_2308.return = workInProgress), + (JSCompiler_object_inline_stack_2308.sibling = + JSCompiler_object_inline_message_2306), + (workInProgress.child = JSCompiler_object_inline_stack_2308), + (JSCompiler_object_inline_stack_2308 = + JSCompiler_object_inline_message_2306), + (JSCompiler_object_inline_message_2306 = workInProgress.child), + (JSCompiler_object_inline_digest_2307 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2307 + ? (JSCompiler_object_inline_digest_2307 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2293.cachePool), + JSCompiler_object_inline_digest_2307.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9341,38 +9370,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2293 = { + (JSCompiler_object_inline_digest_2307 = { baseLanes: - JSCompiler_object_inline_digest_2293.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2307.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2292.memoizedState = - JSCompiler_object_inline_digest_2293), - (JSCompiler_object_inline_message_2292.childLanes = + (JSCompiler_object_inline_message_2306.memoizedState = + JSCompiler_object_inline_digest_2307), + (JSCompiler_object_inline_message_2306.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2295, + JSCompiler_object_inline_componentStack_2309, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2294 + JSCompiler_object_inline_stack_2308 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2294.children + children: JSCompiler_object_inline_stack_2308.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2295 = + ((JSCompiler_object_inline_componentStack_2309 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2295 + null === JSCompiler_object_inline_componentStack_2309 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2295.push(current)); + : JSCompiler_object_inline_componentStack_2309.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -13786,20 +13815,34 @@ (resource.state.loading & Inserted) !== NotLoaded ) workInProgress.flags &= -16777217; - else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) - if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; - else + else if ( + ((workInProgress.flags |= 16777216), !preloadResource(resource)) + ) { + resource = suspenseHandlerStackCursor.current; + if ( + null !== resource && + ((workInProgressRootRenderLanes & 4194176) === + workInProgressRootRenderLanes + ? null !== shellBoundary + : ((workInProgressRootRenderLanes & 62914560) !== + workInProgressRootRenderLanes && + 0 === (workInProgressRootRenderLanes & 536870912)) || + resource !== shellBoundary) + ) throw ( ((suspendedThenable = noopSuspenseyCommitThenable), SuspenseyCommitException) ); + workInProgress.flags |= 8192; + } } function scheduleRetryEffect(workInProgress, retryQueue) { null !== retryQueue && (workInProgress.flags |= 4); workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue)); + (workInProgress.lanes |= retryQueue), + (workInProgressSuspendedRetryLanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -14596,7 +14639,8 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); markRootUpdated$1(root, lane); if ( @@ -14638,25 +14682,37 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 )), ensureRootIsScheduled(root); } function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var exitStatus = (forceSync = + var shouldTimeSlice = (!forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) || - !1) + checkIfRootIsPrerendering(root, lanes), + exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes, !0), - renderWasConcurrent = forceSync; + renderWasConcurrent = shouldTimeSlice; do { - if (exitStatus === RootInProgress) break; - else if (exitStatus === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + if (exitStatus === RootInProgress) { + workInProgressRootIsPrerendering && + !shouldTimeSlice && + markRootSuspended(root, lanes, 0, !1); + break; + } else if (exitStatus === RootDidNotComplete) + finalizeRender(lanes, now$1()), + markRootSuspended( + root, + lanes, + 0, + !workInProgressRootDidSkipSuspendedSiblings + ); else { forceSync = root.current.alternate; if ( @@ -14721,22 +14777,24 @@ } if (exitStatus === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended(root, lanes, 0, !0); break; } a: { - renderWasConcurrent = root; - errorRetryLanes = now$1(); + shouldTimeSlice = root; + renderWasConcurrent = now$1(); switch (exitStatus) { case RootInProgress: case RootFatalErrored: throw Error("Root did not complete. This is a bug in React."); case RootSuspendedWithDelay: if ((lanes & 4194176) === lanes) { + finalizeRender(lanes, now$1()); markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -14750,11 +14808,11 @@ default: throw Error("Unknown root exit status."); } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; if (null !== ReactSharedInternals.actQueue) commitRoot( - renderWasConcurrent, + shouldTimeSlice, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, @@ -14763,7 +14821,7 @@ workInProgressSuspendedRetryLanes, IMMEDIATE_COMMIT, renderStartTime, - errorRetryLanes + renderWasConcurrent ); else { if ( @@ -14775,15 +14833,16 @@ 10 < exitStatus) ) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -14795,14 +14854,14 @@ workInProgressRootDidSkipSuspendedSiblings, THROTTLED_COMMIT, renderStartTime, - errorRetryLanes + renderWasConcurrent ), exitStatus ); break a; } commitRootWhenReady( - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -14814,7 +14873,7 @@ workInProgressRootDidSkipSuspendedSiblings, IMMEDIATE_COMMIT, renderStartTime, - errorRetryLanes + renderWasConcurrent ); } } @@ -14846,11 +14905,8 @@ completedRenderStartTime, completedRenderEndTime ) { - didSkipSuspendedSiblings = finishedWork.subtreeFlags; - if ( - didSkipSuspendedSiblings & 8192 || - 16785408 === (didSkipSuspendedSiblings & 16785408) - ) + var subtreeFlags = finishedWork.subtreeFlags; + if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -14872,7 +14928,12 @@ completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended( + root, + lanes, + spawnedLane, + !didSkipSuspendedSiblings + ); return; } commitRoot( @@ -14922,19 +14983,22 @@ } return !0; } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didAttemptEntireTree + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didAttemptEntireTree && (root.warmLanes |= suspendedLanes); + didAttemptEntireTree = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didAttemptEntireTree[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -14964,80 +15028,91 @@ } function finalizeRender(lanes, finalizationTime) { if (0 !== (lanes & 3) || 0 !== (lanes & 60)) - 0 <= blockingUpdateTime && - blockingUpdateTime < finalizationTime && - (blockingUpdateTime = finalizationTime), - 0 <= blockingEventTime && - blockingEventTime < finalizationTime && - (blockingEventTime = finalizationTime); - 0 !== (lanes & 4194176) && - (0 <= transitionStartTime && - transitionStartTime < finalizationTime && - (transitionStartTime = finalizationTime), - 0 <= transitionUpdateTime && - transitionUpdateTime < finalizationTime && - (transitionUpdateTime = finalizationTime), - 0 <= transitionEventTime && - transitionEventTime < finalizationTime && - (transitionEventTime = finalizationTime)); + blockingClampTime = finalizationTime; + 0 !== (lanes & 4194176) && (transitionClampTime = finalizationTime); } function prepareFreshStack(root, lanes) { renderStartTime = now(); finalizeRender(workInProgressRootRenderLanes, renderStartTime); if (0 !== (lanes & 3) || 0 !== (lanes & 60)) { - var updateTime = blockingUpdateTime, - eventTime = blockingEventTime, + var updateTime = + 0 <= blockingUpdateTime && blockingUpdateTime < blockingClampTime + ? blockingClampTime + : blockingUpdateTime, + eventTime = + 0 <= blockingEventTime && blockingEventTime < blockingClampTime + ? blockingClampTime + : blockingEventTime, eventType = blockingEventType, + eventIsRepeat = blockingEventIsRepeat, renderStartTime$jscomp$0 = renderStartTime; supportsUserTiming && - ((reusableComponentDevToolDetails.track = "Blocking"), + ((reusableLaneDevToolDetails.track = "Blocking"), 0 < eventTime && null !== eventType && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = eventTime), - (reusableComponentOptions.end = + ((reusableLaneDevToolDetails.color = eventIsRepeat + ? "secondary-light" + : "warning"), + (reusableLaneOptions.start = eventTime), + (reusableLaneOptions.end = 0 < updateTime ? updateTime : renderStartTime$jscomp$0), - performance.measure(eventType, reusableComponentOptions)), + performance.measure( + eventIsRepeat ? "" : "Event: " + eventType, + reusableLaneOptions + )), 0 < updateTime && - ((reusableComponentDevToolDetails.color = "primary-light"), - (reusableComponentOptions.start = updateTime), - (reusableComponentOptions.end = renderStartTime$jscomp$0), - performance.measure("Blocked", reusableComponentOptions))); + ((reusableLaneDevToolDetails.color = "primary-light"), + (reusableLaneOptions.start = updateTime), + (reusableLaneOptions.end = renderStartTime$jscomp$0), + performance.measure("Blocked", reusableLaneOptions))); blockingUpdateTime = -1.1; } if (0 !== (lanes & 4194176)) { - updateTime = transitionStartTime; - eventTime = transitionUpdateTime; - eventType = transitionEventTime; - renderStartTime$jscomp$0 = transitionEventType; + updateTime = + 0 <= transitionStartTime && transitionStartTime < transitionClampTime + ? transitionClampTime + : transitionStartTime; + eventTime = + 0 <= transitionUpdateTime && + transitionUpdateTime < transitionClampTime + ? transitionClampTime + : transitionUpdateTime; + eventType = + 0 <= transitionEventTime && transitionEventTime < transitionClampTime + ? transitionClampTime + : transitionEventTime; + eventIsRepeat = transitionEventType; + renderStartTime$jscomp$0 = transitionEventIsRepeat; var renderStartTime$jscomp$1 = renderStartTime; supportsUserTiming && - ((reusableComponentDevToolDetails.track = "Transition"), + ((reusableLaneDevToolDetails.track = "Transition"), 0 < eventType && - null !== renderStartTime$jscomp$0 && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = eventType), - (reusableComponentOptions.end = + null !== eventIsRepeat && + ((reusableLaneDevToolDetails.color = renderStartTime$jscomp$0 + ? "secondary-light" + : "warning"), + (reusableLaneOptions.start = eventType), + (reusableLaneOptions.end = 0 < updateTime ? updateTime : 0 < eventTime ? eventTime : renderStartTime$jscomp$1), performance.measure( - renderStartTime$jscomp$0, - reusableComponentOptions + renderStartTime$jscomp$0 ? "" : "Event: " + eventIsRepeat, + reusableLaneOptions )), 0 < updateTime && - ((reusableComponentDevToolDetails.color = "primary-dark"), - (reusableComponentOptions.start = updateTime), - (reusableComponentOptions.end = + ((reusableLaneDevToolDetails.color = "primary-dark"), + (reusableLaneOptions.start = updateTime), + (reusableLaneOptions.end = 0 < eventTime ? eventTime : renderStartTime$jscomp$1), - performance.measure("Action", reusableComponentOptions)), + performance.measure("Action", reusableLaneOptions)), 0 < eventTime && - ((reusableComponentDevToolDetails.color = "primary-light"), - (reusableComponentOptions.start = eventTime), - (reusableComponentOptions.end = renderStartTime$jscomp$1), - performance.measure("Blocked", reusableComponentOptions))); + ((reusableLaneDevToolDetails.color = "primary-light"), + (reusableLaneOptions.start = eventTime), + (reusableLaneOptions.end = renderStartTime$jscomp$1), + performance.measure("Blocked", reusableLaneOptions))); transitionUpdateTime = transitionStartTime = -1.1; } root.finishedWork = null; @@ -15054,7 +15129,7 @@ workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); + workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = @@ -15071,9 +15146,9 @@ if (0 !== eventTime) for (root = root.entanglements, eventTime &= lanes; 0 < eventTime; ) (eventType = 31 - clz32(eventTime)), - (renderStartTime$jscomp$0 = 1 << eventType), + (eventIsRepeat = 1 << eventType), (lanes |= root[eventType]), - (eventTime &= ~renderStartTime$jscomp$0); + (eventTime &= ~eventIsRepeat); entangledRenderLanes = lanes; finishQueueingConcurrentUpdates(); ReactStrictModeWarnings.discardPendingWarnings(); @@ -15087,12 +15162,7 @@ current = null; thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), - (workInProgressSuspendedReason = - shouldRemainOnPreviousScreen() && - 0 === (workInProgressRootSkippedLanes & 134217727) && - 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) - ? SuspendedOnData - : SuspendedOnImmediate)) + (workInProgressSuspendedReason = SuspendedOnImmediate)) : thrownValue === SuspenseyCommitException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = SuspendedOnInstance)) @@ -15115,21 +15185,6 @@ : erroredWork.mode & ProfileMode && stopProfilerTimerIfRunningAndRecordDuration(erroredWork); } - function shouldRemainOnPreviousScreen() { - var handler = suspenseHandlerStackCursor.current; - return null === handler - ? !0 - : (workInProgressRootRenderLanes & 4194176) === - workInProgressRootRenderLanes - ? null === shellBoundary - ? !0 - : !1 - : (workInProgressRootRenderLanes & 62914560) === - workInProgressRootRenderLanes || - 0 !== (workInProgressRootRenderLanes & 536870912) - ? handler === shellBoundary - : !1; - } function pushDispatcher() { var prevDispatcher = ReactSharedInternals.H; ReactSharedInternals.H = ContextOnlyDispatcher; @@ -15142,13 +15197,19 @@ } function renderDidSuspendDelayIfPossible() { workInProgressRootExitStatus = RootSuspendedWithDelay; + workInProgressRootDidSkipSuspendedSiblings || + ((workInProgressRootRenderLanes & 4194176) !== + workInProgressRootRenderLanes && + null !== suspenseHandlerStackCursor.current) || + (workInProgressRootIsPrerendering = !0); (0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) || null === workInProgressRoot || markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); } function queueConcurrentError(error) { @@ -15156,7 +15217,7 @@ ? (workInProgressRootConcurrentErrors = [error]) : workInProgressRootConcurrentErrors.push(error); } - function renderRootSync(root, lanes) { + function renderRootSync(root, lanes, shouldYieldForPrerendering) { var prevExecutionContext = executionContext; executionContext |= RenderContext; var prevDispatcher = pushDispatcher(), @@ -15198,6 +15259,13 @@ workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + if ( + shouldYieldForPrerendering && + workInProgressRootIsPrerendering + ) { + memoizedUpdaters = RootInProgress; + break a; + } break; default: (reason = workInProgressSuspendedReason), @@ -15246,7 +15314,11 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } else + workInProgressRootIsPrerendering = checkIfRootIsPrerendering( + root, + lanes + ); a: do try { if ( @@ -15450,7 +15522,12 @@ stopProfilerTimerIfRunningAndRecordDuration(unitOfWork); return current; } - function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { + function throwAndUnwindWorkLoop( + root, + unitOfWork, + thrownValue, + suspendedReason + ) { resetContextDependencies(); resetHooksOnUnwind(unitOfWork); thenableState$1 = null; @@ -15484,9 +15561,25 @@ workInProgress = null; return; } - unitOfWork.flags & 32768 - ? unwindUnitOfWork(unitOfWork, !0) - : completeUnitOfWork(unitOfWork); + if (unitOfWork.flags & 32768) { + if (isHydrating || suspendedReason === SuspendedOnError) root = !0; + else if ( + workInProgressRootIsPrerendering || + 0 !== (workInProgressRootRenderLanes & 536870912) + ) + root = !1; + else if ( + ((workInProgressRootDidSkipSuspendedSiblings = root = !0), + suspendedReason === SuspendedOnData || + suspendedReason === SuspendedOnImmediate || + suspendedReason === SuspendedOnDeprecatedThrowPromise) + ) + (suspendedReason = suspenseHandlerStackCursor.current), + null !== suspendedReason && + 13 === suspendedReason.tag && + (suspendedReason.flags |= 16384); + unwindUnitOfWork(unitOfWork, root); + } else completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; @@ -15610,46 +15703,49 @@ ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - updatedLanes = root.finishedWork; + var finishedWork = root.finishedWork; didIncludeRenderPhaseUpdate = root.finishedLanes; - reusableComponentDevToolDetails.track = getGroupNameOfHighestPriorityLane( + reusableLaneDevToolDetails.track = getGroupNameOfHighestPriorityLane( didIncludeRenderPhaseUpdate ); logRenderPhase(completedRenderStartTime, completedRenderEndTime); - if (null === updatedLanes) return null; + if (null === finishedWork) return null; 0 === didIncludeRenderPhaseUpdate && console.error( "root.finishedLanes should not be empty during a commit. This is a bug in React." ); root.finishedWork = null; root.finishedLanes = 0; - if (updatedLanes === root.current) + if (finishedWork === root.current) throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); root.callbackNode = null; root.callbackPriority = 0; root.cancelPendingCommit = null; - completedRenderStartTime = updatedLanes.lanes | updatedLanes.childLanes; + completedRenderStartTime = finishedWork.lanes | finishedWork.childLanes; completedRenderStartTime |= concurrentlyUpdatedLanes; markRootFinished( root, didIncludeRenderPhaseUpdate, completedRenderStartTime, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === updatedLanes.actualDuration && - 0 === (updatedLanes.subtreeFlags & 10256) && - 0 === (updatedLanes.flags & 10256)) || + (0 === finishedWork.actualDuration && + 0 === (finishedWork.subtreeFlags & 10256) && + 0 === (finishedWork.flags & 10256)) || rootDoesHavePassiveEffects || ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = completedRenderStartTime), (pendingPassiveEffectsRenderEndTime = completedRenderEndTime), (pendingPassiveTransitions = transitions), scheduleCallback$1(NormalPriority$1, function () { + schedulerEvent = window.event; flushPassiveEffects(!0); return null; })); @@ -15658,33 +15754,38 @@ ? logSuspendedCommitPhase(completedRenderEndTime, commitStartTime) : suspendedCommitReason === THROTTLED_COMMIT && logSuspenseThrottlePhase(completedRenderEndTime, commitStartTime); - transitions = 0 !== (updatedLanes.flags & 15990); - 0 !== (updatedLanes.subtreeFlags & 15990) || transitions + transitions = 0 !== (finishedWork.flags & 15990); + 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), (spawnedLane = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = DiscreteEventPriority), - (suspendedCommitReason = executionContext), + (updatedLanes = executionContext), (executionContext |= CommitContext), - commitBeforeMutationEffects(root, updatedLanes), + commitBeforeMutationEffects(root, finishedWork), commitMutationEffects( root, - updatedLanes, + finishedWork, didIncludeRenderPhaseUpdate ), restoreSelection(selectionInformation, root.containerInfo), (_enabled = !!eventsEnabled), (selectionInformation = eventsEnabled = null), - (root.current = updatedLanes), - commitLayoutEffects(updatedLanes, root, didIncludeRenderPhaseUpdate), + (root.current = finishedWork), + commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), requestPaint(), - (executionContext = suspendedCommitReason), + (executionContext = updatedLanes), (ReactDOMSharedInternals.p = spawnedLane), (ReactSharedInternals.T = transitions)) - : (root.current = updatedLanes); + : (root.current = finishedWork); commitEndTime = now(); - logCommitPhase(commitStartTime, commitEndTime); - (transitions = rootDoesHavePassiveEffects) + logCommitPhase( + suspendedCommitReason === IMMEDIATE_COMMIT + ? completedRenderEndTime + : commitStartTime, + commitEndTime + ); + (suspendedCommitReason = rootDoesHavePassiveEffects) ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) @@ -15694,24 +15795,25 @@ completedRenderStartTime = root.pendingLanes; 0 === completedRenderStartTime && (legacyErrorBoundariesThatAlreadyFailed = null); - transitions || commitDoubleInvokeEffectsInDEV(root); - onCommitRoot$1(updatedLanes.stateNode, renderPriorityLevel); + suspendedCommitReason || commitDoubleInvokeEffectsInDEV(root); + onCommitRoot$1(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); onCommitRoot(); ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( - renderPriorityLevel = root.onRecoverableError, updatedLanes = 0; - updatedLanes < recoverableErrors.length; - updatedLanes++ + renderPriorityLevel = root.onRecoverableError, + completedRenderEndTime = 0; + completedRenderEndTime < recoverableErrors.length; + completedRenderEndTime++ ) - (completedRenderStartTime = recoverableErrors[updatedLanes]), - (spawnedLane = makeErrorInfo(completedRenderStartTime.stack)), + (finishedWork = recoverableErrors[completedRenderEndTime]), + (completedRenderStartTime = makeErrorInfo(finishedWork.stack)), runWithFiberInDEV( - completedRenderStartTime.source, + finishedWork.source, renderPriorityLevel, - completedRenderStartTime.value, - spawnedLane + finishedWork.value, + completedRenderStartTime ); 0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects(); completedRenderStartTime = root.pendingLanes; @@ -15722,7 +15824,8 @@ ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - transitions || finalizeRender(didIncludeRenderPhaseUpdate, now$1()); + suspendedCommitReason || + finalizeRender(didIncludeRenderPhaseUpdate, now$1()); flushSyncWorkAcrossRoots_impl(0, !1); return null; } @@ -15774,7 +15877,7 @@ throw Error( "Cannot flush passive effects while already rendering." ); - reusableComponentDevToolDetails.track = + reusableLaneDevToolDetails.track = getGroupNameOfHighestPriorityLane(lanes); isFlushingPassiveEffects = !0; didScheduleUpdateDuringPassiveEffects = !1; @@ -15782,15 +15885,16 @@ passiveEffectStartTime = now$1(); var startTime = commitEndTime, endTime = passiveEffectStartTime; + wasDelayedCommit = !!wasDelayedCommit; supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-light"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), + ((reusableLaneDevToolDetails.color = "secondary-light"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), performance.measure( - "Waiting for Paint", - reusableComponentOptions + wasDelayedCommit ? "Waiting for Paint" : "", + reusableLaneOptions )); - startTime = executionContext; + wasDelayedCommit = executionContext; executionContext |= CommitContext; var finishedWork = priority.current; resetComponentEffectTimers(); @@ -15806,18 +15910,14 @@ finishedWork ); commitDoubleInvokeEffectsInDEV(priority); - executionContext = startTime; + executionContext = wasDelayedCommit; var passiveEffectsEndTime = now$1(); - wasDelayedCommit && - ((wasDelayedCommit = passiveEffectStartTime), - supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = wasDelayedCommit), - (reusableComponentOptions.end = passiveEffectsEndTime), - performance.measure( - "Remaining Effects", - reusableComponentOptions - ))); + finishedWork$jscomp$0 = passiveEffectStartTime; + supportsUserTiming && + ((reusableLaneDevToolDetails.color = "secondary-dark"), + (reusableLaneOptions.start = finishedWork$jscomp$0), + (reusableLaneOptions.end = passiveEffectsEndTime), + performance.measure("Remaining Effects", reusableLaneOptions)); finalizeRender(lanes, passiveEffectsEndTime); flushSyncWorkAcrossRoots_impl(0, !1); didScheduleUpdateDuringPassiveEffects @@ -16162,6 +16262,7 @@ } } function processRootScheduleInMicrotask() { + schedulerEvent = window.event; mightHavePendingSyncWork = didScheduleMicrotask_act = didScheduleMicrotask = @@ -16226,7 +16327,10 @@ (root.callbackNode = null), (root.callbackPriority = 0) ); - if (0 !== (suspendedLanes & 3)) + if ( + 0 !== (suspendedLanes & 3) && + !checkIfRootIsPrerendering(root, suspendedLanes) + ) return ( null !== pingedLanes && cancelCallback(pingedLanes), (root.callbackPriority = 2), @@ -16266,6 +16370,7 @@ } function performWorkOnRootViaSchedulerTask(root, didTimeout) { nestedUpdateScheduled = currentUpdateIsNested = !1; + schedulerEvent = window.event; var originalCallbackNode = root.callbackNode; if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null; @@ -19398,11 +19503,11 @@ } function resolveEventType() { var event = window.event; - return event ? event.type : null; + return event && event !== schedulerEvent ? event.type : null; } function resolveEventTimeStamp() { var event = window.event; - return event ? event.timeStamp : -1.1; + return event && event !== schedulerEvent ? event.timeStamp : -1.1; } function handleErrorInNextTick(error) { setTimeout(function () { @@ -22500,14 +22605,24 @@ reusableComponentDevToolDetails = { dataType: "track-entry", color: "primary", - track: "Blocking", - trackGroup: "Components \u269b" + track: "Components \u269b" }, reusableComponentOptions = { start: -0, end: -0, detail: { devtools: reusableComponentDevToolDetails } }, + reusableLaneDevToolDetails = { + dataType: "track-entry", + color: "primary", + track: "Blocking", + trackGroup: "Scheduler \u269b" + }, + reusableLaneOptions = { + start: -0, + end: -0, + detail: { devtools: reusableLaneDevToolDetails } + }, OffscreenVisible = 1, OffscreenDetached = 2, OffscreenPassiveEffectsConnected = 4, @@ -22533,13 +22648,17 @@ componentEffectDuration = -0, componentEffectStartTime = -1.1, componentEffectEndTime = -1.1, + blockingClampTime = -0, blockingUpdateTime = -1.1, blockingEventTime = -1.1, blockingEventType = null, + blockingEventIsRepeat = !1, + transitionClampTime = -0, transitionStartTime = -1.1, transitionUpdateTime = -1.1, transitionEventTime = -1.1, transitionEventType = null, + transitionEventIsRepeat = !1, currentUpdateIsNested = !1, nestedUpdateScheduled = !1, ReactStrictModeWarnings = { @@ -22994,15 +23113,23 @@ currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S; ReactSharedInternals.S = function (transition, returnValue) { - "object" === typeof returnValue && + if ( + "object" === typeof returnValue && null !== returnValue && - "function" === typeof returnValue.then && - (0 > transitionStartTime && - 0 > transitionUpdateTime && - ((transitionStartTime = now()), - (transitionEventTime = resolveEventTimeStamp()), - (transitionEventType = resolveEventType())), - entangleAsyncAction(transition, returnValue)); + "function" === typeof returnValue.then + ) { + if (0 > transitionStartTime && 0 > transitionUpdateTime) { + transitionStartTime = now(); + var newEventTime = resolveEventTimeStamp(), + newEventType = resolveEventType(); + transitionEventIsRepeat = + newEventTime === transitionEventTime && + newEventType === transitionEventType; + transitionEventTime = newEventTime; + transitionEventType = newEventType; + } + entangleAsyncAction(transition, returnValue); + } null !== prevOnStartTransitionFinish && prevOnStartTransitionFinish(transition, returnValue); }; @@ -24334,6 +24461,7 @@ workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -24473,6 +24601,7 @@ selectionInformation = null, warnedUnknownTags = { dialog: !0, webview: !0 }, currentPopstateTransitionEvent = null, + schedulerEvent = void 0, scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0, cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0, @@ -24913,11 +25042,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-b01722d5-20241114" !== 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-experimental-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24954,11 +25083,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-380f5d67-20241113", + version: "19.0.0-experimental-b01722d5-20241114", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-380f5d67-20241113" + reconcilerVersion: "19.0.0-experimental-b01722d5-20241114" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25100,7 +25229,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.0.0-experimental-380f5d67-20241113"; + exports.version = "19.0.0-experimental-b01722d5-20241114"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js index 09595723f7156..898ac4402b5e2 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js @@ -599,28 +599,40 @@ 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, + warmLanes = root.warmLanes; + root = 0 !== root.finishedLanes; 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)) + : root || + ((warmLanes = nonIdlePendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : root || + ((warmLanes = pendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (warmLanes = wipLanes & -wipLanes), + suspendedLanes >= warmLanes || + (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) ? wipLanes : nextLanes; } @@ -694,7 +706,14 @@ function markRootUpdated$1(root, updateLane) { 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } -function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { +function markRootFinished( + root, + finishedLanes, + remainingLanes, + spawnedLane, + updatedLanes, + suspendedRetryLanes +) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; @@ -704,31 +723,36 @@ function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - finishedLanes = root.entanglements; - var expirationTimes = root.expirationTimes, + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index$6 = 31 - clz32(remainingLanes); - previouslyPendingLanes = 1 << index$6; - finishedLanes[index$6] = 0; - expirationTimes[index$6] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$6]; + var index$7 = 31 - clz32(remainingLanes), + lane = 1 << index$7; + entanglements[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); } - remainingLanes &= ~previouslyPendingLanes; + remainingLanes &= ~lane; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -743,10 +767,10 @@ 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; } } @@ -896,8 +920,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$9 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$9 && "aria-" !== prefix$9) { + var prefix$10 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$10 && "aria-" !== prefix$10) { node.removeAttribute(name); return; } @@ -1230,15 +1254,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$15 in styles) - (styleName = styles[styleName$15]), - styles.hasOwnProperty(styleName$15) && - prevStyles[styleName$15] !== styleName && - setValueForStyle(node, styleName$15, styleName); - } else for (var styleName$16 in styles) - styles.hasOwnProperty(styleName$16) && - setValueForStyle(node, styleName$16, styles[styleName$16]); + (styleName = styles[styleName$16]), + styles.hasOwnProperty(styleName$16) && + prevStyles[styleName$16] !== styleName && + setValueForStyle(node, styleName$16, styleName); + } else + for (var styleName$17 in styles) + styles.hasOwnProperty(styleName$17) && + setValueForStyle(node, styleName$17, styles[styleName$17]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1967,19 +1991,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$281; + var JSCompiler_inline_result$jscomp$286; if (canUseDOM) { - var isSupported$jscomp$inline_415 = "oninput" in document; - if (!isSupported$jscomp$inline_415) { - var element$jscomp$inline_416 = document.createElement("div"); - element$jscomp$inline_416.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_415 = - "function" === typeof element$jscomp$inline_416.oninput; + var isSupported$jscomp$inline_420 = "oninput" in document; + if (!isSupported$jscomp$inline_420) { + var element$jscomp$inline_421 = document.createElement("div"); + element$jscomp$inline_421.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_420 = + "function" === typeof element$jscomp$inline_421.oninput; } - JSCompiler_inline_result$jscomp$281 = isSupported$jscomp$inline_415; - } else JSCompiler_inline_result$jscomp$281 = !1; + JSCompiler_inline_result$jscomp$286 = isSupported$jscomp$inline_420; + } else JSCompiler_inline_result$jscomp$286 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$281 && + JSCompiler_inline_result$jscomp$286 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -3923,7 +3947,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$54 = !1; + didReadFromEntangledAsyncAction$55 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3944,11 +3968,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$54 = !0); + (didReadFromEntangledAsyncAction$55 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$54 = !0); + (didReadFromEntangledAsyncAction$55 = !0); continue; } else (updateLane = { @@ -3994,7 +4018,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$54 && + didReadFromEntangledAsyncAction$55 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4196,8 +4220,8 @@ function runActionStateAction(actionQueue, node) { 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) { @@ -4650,14 +4674,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$63 = enqueueUpdate(provider, fiber, lane); - null !== root$63 && - (scheduleUpdateOnFiber(root$63, provider, lane), - entangleTransitions(root$63, provider, lane)); + var root$64 = enqueueUpdate(provider, fiber, lane); + null !== root$64 && + (scheduleUpdateOnFiber(root$64, provider, lane), + entangleTransitions(root$64, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$63 && + null !== root$64 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -5196,9 +5220,9 @@ function resolveClassComponentProps(Component, baseProps) { } if ((Component = Component.defaultProps)) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$67 in Component) - void 0 === newProps[propName$67] && - (newProps[propName$67] = Component[propName$67]); + for (var propName$68 in Component) + void 0 === newProps[propName$68] && + (newProps[propName$68] = Component[propName$68]); } return newProps; } @@ -5244,9 +5268,9 @@ function logUncaughtError(root, errorInfo) { try { var onUncaughtError = root.onUncaughtError; onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack }); - } catch (e$68) { + } catch (e$69) { setTimeout(function () { - throw e$68; + throw e$69; }); } } @@ -5257,9 +5281,9 @@ function logCaughtError(root, boundary, errorInfo) { componentStack: errorInfo.stack, errorBoundary: 1 === boundary.tag ? boundary.stateNode : null }); - } catch (e$69) { + } catch (e$70) { setTimeout(function () { - throw e$69; + throw e$70; }); } } @@ -7715,8 +7739,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; } @@ -7850,7 +7874,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$19) { + } catch (e$20) { JSCompiler_temp = null; break a; } @@ -8025,11 +8049,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$113) { + } catch (error$114) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$113 + error$114 ); } } @@ -8183,7 +8207,7 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$121 = hostParentIsContainer; + var prevHostParentIsContainer$122 = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, @@ -8191,7 +8215,7 @@ function commitDeletionEffectsOnFiber( deletedFiber ); hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$121; + hostParentIsContainer = prevHostParentIsContainer$122; if (null !== hostParent) if (hostParentIsContainer) try { @@ -8824,21 +8848,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$115 = JSCompiler_inline_result.stateNode; + var parent$116 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$115, ""), + (setTextContent(parent$116, ""), (JSCompiler_inline_result.flags &= -33)); - var before$116 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$116, parent$115); + var before$117 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$117, parent$116); break; case 3: case 4: - var parent$117 = JSCompiler_inline_result.stateNode.containerInfo, - before$118 = getHostSibling(finishedWork); + var parent$118 = JSCompiler_inline_result.stateNode.containerInfo, + before$119 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$118, - parent$117 + before$119, + parent$118 ); break; default: @@ -9722,20 +9746,32 @@ function markUpdate(workInProgress) { function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4)) workInProgress.flags &= -16777217; - else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) - if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; - else + else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) { + resource = suspenseHandlerStackCursor.current; + if ( + null !== resource && + ((workInProgressRootRenderLanes & 4194176) === + workInProgressRootRenderLanes + ? null !== shellBoundary + : ((workInProgressRootRenderLanes & 62914560) !== + workInProgressRootRenderLanes && + 0 === (workInProgressRootRenderLanes & 536870912)) || + resource !== shellBoundary) + ) throw ( ((suspendedThenable = noopSuspenseyCommitThenable), SuspenseyCommitException) ); + workInProgress.flags |= 8192; + } } function scheduleRetryEffect(workInProgress, retryQueue) { null !== retryQueue && (workInProgress.flags |= 4); workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue)); + (workInProgress.lanes |= retryQueue), + (workInProgressSuspendedRetryLanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -9752,14 +9788,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$133 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$133 = lastTailNode), + for (var lastTailNode$134 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$134 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$133 + null === lastTailNode$134 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$133.sibling = null); + : (lastTailNode$134.sibling = null); } } function bubbleProperties(completedWork) { @@ -9769,19 +9805,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$134 = completedWork.child; null !== child$134; ) - (newChildLanes |= child$134.lanes | child$134.childLanes), - (subtreeFlags |= child$134.subtreeFlags & 31457280), - (subtreeFlags |= child$134.flags & 31457280), - (child$134.return = completedWork), - (child$134 = child$134.sibling); + for (var child$135 = completedWork.child; null !== child$135; ) + (newChildLanes |= child$135.lanes | child$135.childLanes), + (subtreeFlags |= child$135.subtreeFlags & 31457280), + (subtreeFlags |= child$135.flags & 31457280), + (child$135.return = completedWork), + (child$135 = child$135.sibling); else - for (child$134 = completedWork.child; null !== child$134; ) - (newChildLanes |= child$134.lanes | child$134.childLanes), - (subtreeFlags |= child$134.subtreeFlags), - (subtreeFlags |= child$134.flags), - (child$134.return = completedWork), - (child$134 = child$134.sibling); + for (child$135 = completedWork.child; null !== child$135; ) + (newChildLanes |= child$135.lanes | child$135.childLanes), + (subtreeFlags |= child$135.subtreeFlags), + (subtreeFlags |= child$135.flags), + (child$135.return = completedWork), + (child$135 = child$135.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10058,11 +10094,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$146 = null; + var cache$147 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$146 = newProps.memoizedState.cachePool.pool); - cache$146 !== type && (newProps.flags |= 2048); + (cache$147 = newProps.memoizedState.cachePool.pool); + cache$147 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -10087,8 +10123,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$146 = type.rendering; - if (null === cache$146) + cache$147 = type.rendering; + if (null === cache$147) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10096,11 +10132,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$146 = findFirstSuspended(current); - if (null !== cache$146) { + cache$147 = findFirstSuspended(current); + if (null !== cache$147) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$146.updateQueue; + current = cache$147.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -10125,7 +10161,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$146)), null !== current)) { + if (((current = findFirstSuspended(cache$147)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10135,7 +10171,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$146.alternate && + !cache$147.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10148,13 +10184,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$146.sibling = workInProgress.child), - (workInProgress.child = cache$146)) + ? ((cache$147.sibling = workInProgress.child), + (workInProgress.child = cache$147)) : ((current = type.last), null !== current - ? (current.sibling = cache$146) - : (workInProgress.child = cache$146), - (type.last = cache$146)); + ? (current.sibling = cache$147) + : (workInProgress.child = cache$147), + (type.last = cache$147)); } if (null !== type.tail) return ( @@ -10328,6 +10364,7 @@ var DefaultAsyncDispatcher = { workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -10378,7 +10415,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); markRootUpdated$1(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) @@ -10389,23 +10427,35 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 )), ensureRootIsScheduled(root); } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var exitStatus = (forceSync = + var shouldTimeSlice = (!forceSync && 0 === (lanes & 60) && 0 === (lanes & root$jscomp$0.expiredLanes)) || - !1) + checkIfRootIsPrerendering(root$jscomp$0, lanes), + exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, !0), - renderWasConcurrent = forceSync; + renderWasConcurrent = shouldTimeSlice; do { - if (0 === exitStatus) break; - else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + if (0 === exitStatus) { + workInProgressRootIsPrerendering && + !shouldTimeSlice && + markRootSuspended(root$jscomp$0, lanes, 0, !1); + break; + } else if (6 === exitStatus) + markRootSuspended( + root$jscomp$0, + lanes, + 0, + !workInProgressRootDidSkipSuspendedSiblings + ); else { forceSync = root$jscomp$0.current.alternate; if ( @@ -10465,11 +10515,11 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { } if (1 === exitStatus) { prepareFreshStack(root$jscomp$0, 0); - markRootSuspended(root$jscomp$0, lanes, 0); + markRootSuspended(root$jscomp$0, lanes, 0, !0); break; } a: { - renderWasConcurrent = root$jscomp$0; + shouldTimeSlice = root$jscomp$0; switch (exitStatus) { case 0: case 1: @@ -10477,9 +10527,10 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { case 4: if ((lanes & 4194176) === lanes) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -10493,23 +10544,24 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { default: throw Error(formatProdErrorMessage(329)); } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; if ( (lanes & 62914560) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 300 - now()), - 10 < exitStatus) + ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()), + 10 < renderWasConcurrent) ) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -10523,12 +10575,12 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { -0, 0 ), - exitStatus + renderWasConcurrent ); break a; } commitRootWhenReady( - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -10571,11 +10623,8 @@ function commitRootWhenReady( completedRenderStartTime, completedRenderEndTime ) { - didSkipSuspendedSiblings = finishedWork.subtreeFlags; - if ( - didSkipSuspendedSiblings & 8192 || - 16785408 === (didSkipSuspendedSiblings & 16785408) - ) + var subtreeFlags = finishedWork.subtreeFlags; + if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -10597,7 +10646,7 @@ function commitRootWhenReady( completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings); return; } commitRoot( @@ -10647,19 +10696,22 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didAttemptEntireTree +) { 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; + didAttemptEntireTree && (root.warmLanes |= suspendedLanes); + didAttemptEntireTree = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$6 = 31 - clz32(lanes), + lane = 1 << index$6; + didAttemptEntireTree[index$6] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10703,7 +10755,7 @@ function prepareFreshStack(root, lanes) { workInProgressSuspendedReason = 0; workInProgressThrownValue = null; workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); + workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); workInProgressRootDidAttachPingListener = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -10723,9 +10775,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; @@ -10737,12 +10789,7 @@ function handleThrow(root, thrownValue) { ReactSharedInternals.H = ContextOnlyDispatcher; thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), - (workInProgressSuspendedReason = - shouldRemainOnPreviousScreen() && - 0 === (workInProgressRootSkippedLanes & 134217727) && - 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) - ? 2 - : 3)) + (workInProgressSuspendedReason = 3)) : thrownValue === SuspenseyCommitException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = 4)) @@ -10762,21 +10809,6 @@ function handleThrow(root, thrownValue) { createCapturedValueAtFiber(thrownValue, root.current) )); } -function shouldRemainOnPreviousScreen() { - var handler = suspenseHandlerStackCursor.current; - return null === handler - ? !0 - : (workInProgressRootRenderLanes & 4194176) === - workInProgressRootRenderLanes - ? null === shellBoundary - ? !0 - : !1 - : (workInProgressRootRenderLanes & 62914560) === - workInProgressRootRenderLanes || - 0 !== (workInProgressRootRenderLanes & 536870912) - ? handler === shellBoundary - : !1; -} function pushDispatcher() { var prevDispatcher = ReactSharedInternals.H; ReactSharedInternals.H = ContextOnlyDispatcher; @@ -10789,13 +10821,19 @@ function pushAsyncDispatcher() { } function renderDidSuspendDelayIfPossible() { workInProgressRootExitStatus = 4; + workInProgressRootDidSkipSuspendedSiblings || + ((workInProgressRootRenderLanes & 4194176) !== + workInProgressRootRenderLanes && + null !== suspenseHandlerStackCursor.current) || + (workInProgressRootIsPrerendering = !0); (0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) || null === workInProgressRoot || markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); } function queueConcurrentError(error) { @@ -10803,7 +10841,7 @@ function queueConcurrentError(error) { ? (workInProgressRootConcurrentErrors = [error]) : workInProgressRootConcurrentErrors.push(error); } -function renderRootSync(root, lanes) { +function renderRootSync(root, lanes, shouldYieldForPrerendering) { var prevExecutionContext = executionContext; executionContext |= 2; var prevDispatcher = pushDispatcher(), @@ -10830,6 +10868,13 @@ function renderRootSync(root, lanes) { workInProgressSuspendedReason = 0; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + if ( + shouldYieldForPrerendering && + workInProgressRootIsPrerendering + ) { + exitStatus = 0; + break a; + } break; default: (reason = workInProgressSuspendedReason), @@ -10841,8 +10886,8 @@ function renderRootSync(root, lanes) { workLoopSync(); exitStatus = workInProgressRootExitStatus; break; - } catch (thrownValue$162) { - handleThrow(root, thrownValue$162); + } catch (thrownValue$167) { + handleThrow(root, thrownValue$167); } while (1); lanes && root.shellSuspendCounter++; @@ -10868,7 +10913,10 @@ function renderRootConcurrent(root, lanes) { ? ((workInProgressTransitions = null), (workInProgressRootRenderTargetTime = now() + 500), prepareFreshStack(root, lanes)) - : checkIfRootIsPrerendering(root, lanes); + : (workInProgressRootIsPrerendering = checkIfRootIsPrerendering( + root, + lanes + )); a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -10952,8 +11000,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$164) { - handleThrow(root, thrownValue$164); + } catch (thrownValue$169) { + handleThrow(root, thrownValue$169); } while (1); lastContextDependency = currentlyRenderingFiber = null; @@ -11011,7 +11059,12 @@ function replaySuspendedUnitOfWork(unitOfWork) { unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } -function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { +function throwAndUnwindWorkLoop( + root, + unitOfWork, + thrownValue, + suspendedReason +) { lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; @@ -11045,9 +11098,23 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - unitOfWork.flags & 32768 - ? unwindUnitOfWork(unitOfWork, !0) - : completeUnitOfWork(unitOfWork); + if (unitOfWork.flags & 32768) { + if (isHydrating || 1 === suspendedReason) root = !0; + else if ( + workInProgressRootIsPrerendering || + 0 !== (workInProgressRootRenderLanes & 536870912) + ) + root = !1; + else if ( + ((workInProgressRootDidSkipSuspendedSiblings = root = !0), + 2 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason) + ) + (suspendedReason = suspenseHandlerStackCursor.current), + null !== suspendedReason && + 13 === suspendedReason.tag && + (suspendedReason.flags |= 16384); + unwindUnitOfWork(unitOfWork, root); + } else completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; @@ -11142,7 +11209,9 @@ function commitRootImpl( transitions, didIncludeRenderPhaseUpdate, renderPriorityLevel, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ) { do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); @@ -11162,7 +11231,9 @@ function commitRootImpl( root, didIncludeRenderPhaseUpdate, remainingLanes, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), @@ -11178,25 +11249,25 @@ function commitRootImpl( return null; })); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - spawnedLane = ReactDOMSharedInternals.p; - ReactDOMSharedInternals.p = 2; - var prevExecutionContext = executionContext; - executionContext |= 4; - commitBeforeMutationEffects(root, finishedWork); - commitMutationEffectsOnFiber(finishedWork, root); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); - requestPaint(); - executionContext = prevExecutionContext; - ReactDOMSharedInternals.p = spawnedLane; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (spawnedLane = ReactDOMSharedInternals.p), + (ReactDOMSharedInternals.p = 2), + (updatedLanes = executionContext), + (executionContext |= 4), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffectsOnFiber(finishedWork, root), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), + commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), + requestPaint(), + (executionContext = updatedLanes), + (ReactDOMSharedInternals.p = spawnedLane), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -11234,7 +11305,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$168 = rootWithPendingPassiveEffects, + var root$173 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11273,7 +11344,7 @@ function flushPassiveEffects() { } finally { (ReactDOMSharedInternals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$168, remainingLanes); + releaseRootPooledCache(root$173, remainingLanes); } } return !1; @@ -11416,14 +11487,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$170 = firstScheduledRoot; null !== root$170; ) { + for (var root$175 = firstScheduledRoot; null !== root$175; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$170.pendingLanes; + var pendingLanes = root$175.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$170.suspendedLanes, - pingedLanes = root$170.pingedLanes; + var suspendedLanes = root$175.suspendedLanes, + pingedLanes = root$175.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -11437,18 +11508,18 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$170, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$175, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$170, - root$170 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$175, + root$175 === workInProgressRoot ? JSCompiler_inline_result : 0 )), 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$170, JSCompiler_inline_result) || + checkIfRootIsPrerendering(root$175, JSCompiler_inline_result) || ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$170, JSCompiler_inline_result)); - root$170 = root$170.next; + performSyncWorkOnRoot(root$175, JSCompiler_inline_result)); + root$175 = root$175.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -11489,12 +11560,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$4 = 31 - clz32(lanes), - lane = 1 << index$4, - expirationTime = expirationTimes[index$4]; + var index$5 = 31 - clz32(lanes), + 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); lanes &= ~lane; } @@ -11517,37 +11588,37 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { (root.callbackNode = null), (root.callbackPriority = 0) ); - if (0 !== (suspendedLanes & 3)) - return ( - null !== pingedLanes && - null !== pingedLanes && - cancelCallback$1(pingedLanes), - (root.callbackPriority = 2), - (root.callbackNode = null), - 2 - ); - currentTime = suspendedLanes & -suspendedLanes; - if (currentTime === root.callbackPriority) return currentTime; - null !== pingedLanes && cancelCallback$1(pingedLanes); - switch (lanesToEventPriority(suspendedLanes)) { - case 2: - case 8: - suspendedLanes = UserBlockingPriority; - break; - case 32: - suspendedLanes = NormalPriority$1; - break; - case 268435456: - suspendedLanes = IdlePriority; - break; - default: - suspendedLanes = NormalPriority$1; - } - pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); - suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); - root.callbackPriority = currentTime; - root.callbackNode = suspendedLanes; - return currentTime; + if ( + 0 === (suspendedLanes & 3) || + checkIfRootIsPrerendering(root, suspendedLanes) + ) { + currentTime = suspendedLanes & -suspendedLanes; + if (currentTime === root.callbackPriority) return currentTime; + null !== pingedLanes && cancelCallback$1(pingedLanes); + switch (lanesToEventPriority(suspendedLanes)) { + case 2: + case 8: + suspendedLanes = UserBlockingPriority; + break; + case 32: + suspendedLanes = NormalPriority$1; + break; + case 268435456: + suspendedLanes = IdlePriority; + break; + default: + suspendedLanes = NormalPriority$1; + } + pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); + suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); + root.callbackPriority = currentTime; + root.callbackNode = suspendedLanes; + return currentTime; + } + null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes); + root.callbackPriority = 2; + root.callbackNode = null; + return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { var originalCallbackNode = root.callbackNode; @@ -11676,20 +11747,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1423 = 0; - i$jscomp$inline_1423 < simpleEventPluginEvents.length; - i$jscomp$inline_1423++ + var i$jscomp$inline_1432 = 0; + i$jscomp$inline_1432 < simpleEventPluginEvents.length; + i$jscomp$inline_1432++ ) { - var eventName$jscomp$inline_1424 = - simpleEventPluginEvents[i$jscomp$inline_1423], - domEventName$jscomp$inline_1425 = - eventName$jscomp$inline_1424.toLowerCase(), - capitalizedEvent$jscomp$inline_1426 = - eventName$jscomp$inline_1424[0].toUpperCase() + - eventName$jscomp$inline_1424.slice(1); + var eventName$jscomp$inline_1433 = + simpleEventPluginEvents[i$jscomp$inline_1432], + domEventName$jscomp$inline_1434 = + eventName$jscomp$inline_1433.toLowerCase(), + capitalizedEvent$jscomp$inline_1435 = + eventName$jscomp$inline_1433[0].toUpperCase() + + eventName$jscomp$inline_1433.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1425, - "on" + capitalizedEvent$jscomp$inline_1426 + domEventName$jscomp$inline_1434, + "on" + capitalizedEvent$jscomp$inline_1435 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -12872,34 +12943,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$184 = props[hasSrc]; - if (null != propValue$184) + var propValue$189 = props[hasSrc]; + if (null != propValue$189) switch (hasSrc) { case "name": - hasSrcSet = propValue$184; + hasSrcSet = propValue$189; break; case "type": - propValue = propValue$184; + propValue = propValue$189; break; case "checked": - checked = propValue$184; + checked = propValue$189; break; case "defaultChecked": - defaultChecked = propValue$184; + defaultChecked = propValue$189; break; case "value": - propKey = propValue$184; + propKey = propValue$189; break; case "defaultValue": - defaultValue = propValue$184; + defaultValue = propValue$189; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$184) + if (null != propValue$189) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$184, props, null); + setProp(domElement, tag, hasSrc, propValue$189, props, null); } } initInput( @@ -13036,14 +13107,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$184 in props) - props.hasOwnProperty(propValue$184) && - ((hasSrc = props[propValue$184]), + for (propValue$189 in props) + props.hasOwnProperty(propValue$189) && + ((hasSrc = props[propValue$189]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$184, + propValue$189, hasSrc, props, void 0 @@ -13091,14 +13162,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$201 in nextProps) { - var propKey = nextProps[propKey$201]; - lastProp = lastProps[propKey$201]; + for (var propKey$206 in nextProps) { + var propKey = nextProps[propKey$206]; + lastProp = lastProps[propKey$206]; if ( - nextProps.hasOwnProperty(propKey$201) && + nextProps.hasOwnProperty(propKey$206) && (null != propKey || null != lastProp) ) - switch (propKey$201) { + switch (propKey$206) { case "type": type = propKey; break; @@ -13127,7 +13198,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$201, + propKey$206, propKey, nextProps, lastProp @@ -13146,7 +13217,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$201 = null; + propKey = value = defaultValue = propKey$206 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -13177,7 +13248,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$201 = type; + propKey$206 = type; break; case "defaultValue": defaultValue = type; @@ -13198,15 +13269,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$201 - ? updateOptions(domElement, !!lastProps, propKey$201, !1) + null != propKey$206 + ? updateOptions(domElement, !!lastProps, propKey$206, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$201 = null; + propKey = propKey$206 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -13230,7 +13301,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$201 = name; + propKey$206 = name; break; case "defaultValue": propKey = name; @@ -13244,17 +13315,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$201, propKey); + updateTextarea(domElement, propKey$206, propKey); return; case "option": - for (var propKey$217 in lastProps) + for (var propKey$222 in lastProps) if ( - ((propKey$201 = lastProps[propKey$217]), - lastProps.hasOwnProperty(propKey$217) && - null != propKey$201 && - !nextProps.hasOwnProperty(propKey$217)) + ((propKey$206 = lastProps[propKey$222]), + lastProps.hasOwnProperty(propKey$222) && + null != propKey$206 && + !nextProps.hasOwnProperty(propKey$222)) ) - switch (propKey$217) { + switch (propKey$222) { case "selected": domElement.selected = !1; break; @@ -13262,33 +13333,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$217, + propKey$222, null, nextProps, - propKey$201 + propKey$206 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$201 = nextProps[lastDefaultValue]), + ((propKey$206 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$201 !== propKey && - (null != propKey$201 || null != propKey)) + propKey$206 !== propKey && + (null != propKey$206 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$201 && - "function" !== typeof propKey$201 && - "symbol" !== typeof propKey$201; + propKey$206 && + "function" !== typeof propKey$206 && + "symbol" !== typeof propKey$206; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$201, + propKey$206, nextProps, propKey ); @@ -13309,24 +13380,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$222 in lastProps) - (propKey$201 = lastProps[propKey$222]), - lastProps.hasOwnProperty(propKey$222) && - null != propKey$201 && - !nextProps.hasOwnProperty(propKey$222) && - setProp(domElement, tag, propKey$222, null, nextProps, propKey$201); + for (var propKey$227 in lastProps) + (propKey$206 = lastProps[propKey$227]), + lastProps.hasOwnProperty(propKey$227) && + null != propKey$206 && + !nextProps.hasOwnProperty(propKey$227) && + setProp(domElement, tag, propKey$227, null, nextProps, propKey$206); for (checked in nextProps) if ( - ((propKey$201 = nextProps[checked]), + ((propKey$206 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$201 !== propKey && - (null != propKey$201 || null != propKey)) + propKey$206 !== propKey && + (null != propKey$206 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$201) + if (null != propKey$206) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -13334,7 +13405,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$201, + propKey$206, nextProps, propKey ); @@ -13342,49 +13413,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$227 in lastProps) - (propKey$201 = lastProps[propKey$227]), - lastProps.hasOwnProperty(propKey$227) && - void 0 !== propKey$201 && - !nextProps.hasOwnProperty(propKey$227) && + for (var propKey$232 in lastProps) + (propKey$206 = lastProps[propKey$232]), + lastProps.hasOwnProperty(propKey$232) && + void 0 !== propKey$206 && + !nextProps.hasOwnProperty(propKey$232) && setPropOnCustomElement( domElement, tag, - propKey$227, + propKey$232, void 0, nextProps, - propKey$201 + propKey$206 ); for (defaultChecked in nextProps) - (propKey$201 = nextProps[defaultChecked]), + (propKey$206 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$201 === propKey || - (void 0 === propKey$201 && void 0 === propKey) || + propKey$206 === propKey || + (void 0 === propKey$206 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$201, + propKey$206, nextProps, propKey ); return; } } - for (var propKey$232 in lastProps) - (propKey$201 = lastProps[propKey$232]), - lastProps.hasOwnProperty(propKey$232) && - null != propKey$201 && - !nextProps.hasOwnProperty(propKey$232) && - setProp(domElement, tag, propKey$232, null, nextProps, propKey$201); + for (var propKey$237 in lastProps) + (propKey$206 = lastProps[propKey$237]), + lastProps.hasOwnProperty(propKey$237) && + null != propKey$206 && + !nextProps.hasOwnProperty(propKey$237) && + setProp(domElement, tag, propKey$237, null, nextProps, propKey$206); for (lastProp in nextProps) - (propKey$201 = nextProps[lastProp]), + (propKey$206 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$201 === propKey || - (null == propKey$201 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$201, nextProps, propKey); + propKey$206 === propKey || + (null == propKey$206 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$206, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -13929,26 +14000,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$240 = getResourcesFromRoot( + var styles$245 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$241 = styles$240.get(type); - resource$241 || + resource$246 = styles$245.get(type); + resource$246 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$241 = { + (resource$246 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$240.set(type, resource$241), - (styles$240 = JSCompiler_inline_result.querySelector( + styles$245.set(type, resource$246), + (styles$245 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$240._p && - ((resource$241.instance = styles$240), - (resource$241.state.loading = 5)), + !styles$245._p && + ((resource$246.instance = styles$245), + (resource$246.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -13961,16 +14032,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$240 || + styles$245 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$241.state + resource$246.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$241; + return resource$246; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -14067,37 +14138,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$246 = hoistableRoot.querySelector( + var instance$251 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$246) + if (instance$251) return ( (resource.state.loading |= 4), - (resource.instance = instance$246), - markNodeAsHoistable(instance$246), - instance$246 + (resource.instance = instance$251), + markNodeAsHoistable(instance$251), + instance$251 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$246 = ( + instance$251 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$246); - var linkInstance = instance$246; + markNodeAsHoistable(instance$251); + var linkInstance = instance$251; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$246, "link", instance); + setInitialProperties(instance$251, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$246, props.precedence, hoistableRoot); - return (resource.instance = instance$246); + insertStylesheet(instance$251, props.precedence, hoistableRoot); + return (resource.instance = instance$251); case "script": - instance$246 = getScriptKey(props.src); + instance$251 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$246) + getScriptSelectorFromKey(instance$251) )) ) return ( @@ -14106,7 +14177,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$246))) + if ((styleProps = preloadPropsMap.get(instance$251))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -15130,16 +15201,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1670 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1679 = React.version; if ( - "19.0.0-experimental-380f5d67-20241113" !== - isomorphicReactPackageVersion$jscomp$inline_1670 + "19.0.0-experimental-b01722d5-20241114" !== + isomorphicReactPackageVersion$jscomp$inline_1679 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1670, - "19.0.0-experimental-380f5d67-20241113" + isomorphicReactPackageVersion$jscomp$inline_1679, + "19.0.0-experimental-b01722d5-20241114" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15159,25 +15230,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2140 = { +var internals$jscomp$inline_2152 = { bundleType: 0, - version: "19.0.0-experimental-380f5d67-20241113", + version: "19.0.0-experimental-b01722d5-20241114", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-380f5d67-20241113" + reconcilerVersion: "19.0.0-experimental-b01722d5-20241114" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2141 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2153 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2141.isDisabled && - hook$jscomp$inline_2141.supportsFiber + !hook$jscomp$inline_2153.isDisabled && + hook$jscomp$inline_2153.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2141.inject( - internals$jscomp$inline_2140 + (rendererID = hook$jscomp$inline_2153.inject( + internals$jscomp$inline_2152 )), - (injectedHook = hook$jscomp$inline_2141); + (injectedHook = hook$jscomp$inline_2153); } catch (err) {} } exports.createRoot = function (container, options) { @@ -15269,4 +15340,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js index c70afc4c478a2..ddc1c247cc409 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js @@ -1043,28 +1043,40 @@ var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes, + warmLanes = root.warmLanes; + root = 0 !== root.finishedLanes; 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)) + : root || + ((warmLanes = nonIdlePendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : root || + ((warmLanes = pendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (warmLanes = wipLanes & -wipLanes), + suspendedLanes >= warmLanes || + (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) ? wipLanes : nextLanes; } @@ -1149,7 +1161,9 @@ root, finishedLanes, remainingLanes, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; @@ -1160,17 +1174,17 @@ root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - finishedLanes = root.entanglements; - var expirationTimes = root.expirationTimes, + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index = 31 - clz32(remainingLanes); - previouslyPendingLanes = 1 << index; - finishedLanes[index] = 0; + var index = 31 - clz32(remainingLanes), + lane = 1 << index; + entanglements[index] = 0; expirationTimes[index] = -1; var hiddenUpdatesForLane = hiddenUpdates[index]; if (null !== hiddenUpdatesForLane) @@ -1182,9 +1196,14 @@ var update = hiddenUpdatesForLane[index]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~previouslyPendingLanes; + remainingLanes &= ~lane; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -3787,31 +3806,31 @@ } function logRenderPhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "primary-dark"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Render", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "primary-dark"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Render", reusableLaneOptions)); } function logSuspenseThrottlePhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-light"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Throttled", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "secondary-light"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Throttled", reusableLaneOptions)); } function logSuspendedCommitPhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-light"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Suspended", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "secondary-light"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Suspended", reusableLaneOptions)); } function logCommitPhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Commit", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "secondary-dark"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Commit", reusableLaneOptions)); } function finishQueueingConcurrentUpdates() { for ( @@ -4037,14 +4056,24 @@ JSCompiler_temp ? 0 > blockingUpdateTime && ((blockingUpdateTime = now()), - (blockingEventTime = resolveEventTimeStamp()), - (blockingEventType = resolveEventType())) + (lane = resolveEventTimeStamp()), + (JSCompiler_temp = resolveEventType()), + (blockingEventIsRepeat = + lane === blockingEventTime && + JSCompiler_temp === blockingEventType), + (blockingEventTime = lane), + (blockingEventType = JSCompiler_temp)) : 0 !== (lane & 4194176) && 0 > transitionUpdateTime && ((transitionUpdateTime = now()), 0 > transitionStartTime && - ((transitionEventTime = resolveEventTimeStamp()), - (transitionEventType = resolveEventType()))); + ((lane = resolveEventTimeStamp()), + (JSCompiler_temp = resolveEventType()), + (transitionEventIsRepeat = + lane === transitionEventTime && + JSCompiler_temp === transitionEventType), + (transitionEventTime = lane), + (transitionEventType = JSCompiler_temp))); } function pushNestedEffectDurations() { var prevEffectDuration = profilerEffectDuration; @@ -8916,33 +8945,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2300; - var JSCompiler_object_inline_stack_2299 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2314; + var JSCompiler_object_inline_stack_2313 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2297 = !1; + var JSCompiler_object_inline_message_2311 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2300 = didSuspend) || - (JSCompiler_object_inline_componentStack_2300 = + (JSCompiler_object_inline_componentStack_2314 = didSuspend) || + (JSCompiler_object_inline_componentStack_2314 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2300 && - ((JSCompiler_object_inline_message_2297 = !0), + JSCompiler_object_inline_componentStack_2314 && + ((JSCompiler_object_inline_message_2311 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2300 = + JSCompiler_object_inline_componentStack_2314 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2297 + JSCompiler_object_inline_message_2311 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2298 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2312 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2298)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2312)) { c: { - var instance = JSCompiler_object_inline_digest_2298; + var instance = JSCompiler_object_inline_digest_2312; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8983,19 +9012,19 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2298 + JSCompiler_object_inline_digest_2312 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2298 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2312 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2298 && - ((JSCompiler_object_inline_digest_2298 = - JSCompiler_object_inline_digest_2298.dehydrated), - null !== JSCompiler_object_inline_digest_2298) + null !== JSCompiler_object_inline_digest_2312 && + ((JSCompiler_object_inline_digest_2312 = + JSCompiler_object_inline_digest_2312.dehydrated), + null !== JSCompiler_object_inline_digest_2312) ) return ( - JSCompiler_object_inline_digest_2298.data === + JSCompiler_object_inline_digest_2312.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -9003,68 +9032,68 @@ ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2298 = - JSCompiler_object_inline_stack_2299.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2299.fallback; - if (JSCompiler_object_inline_message_2297) + JSCompiler_object_inline_digest_2312 = + JSCompiler_object_inline_stack_2313.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2313.fallback; + if (JSCompiler_object_inline_message_2311) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2299 = + (JSCompiler_object_inline_stack_2313 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2298, + JSCompiler_object_inline_digest_2312, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2297 = workInProgress.child), - (JSCompiler_object_inline_message_2297.memoizedState = + (JSCompiler_object_inline_message_2311 = workInProgress.child), + (JSCompiler_object_inline_message_2311.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2297.childLanes = + (JSCompiler_object_inline_message_2311.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2300, + JSCompiler_object_inline_componentStack_2314, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2299 + JSCompiler_object_inline_stack_2313 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2299.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2313.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2299 = + (JSCompiler_object_inline_stack_2313 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2298, + JSCompiler_object_inline_digest_2312, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2297 = workInProgress.child), - (JSCompiler_object_inline_message_2297.memoizedState = + (JSCompiler_object_inline_message_2311 = workInProgress.child), + (JSCompiler_object_inline_message_2311.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2297.childLanes = + (JSCompiler_object_inline_message_2311.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2300, + JSCompiler_object_inline_componentStack_2314, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2299 + JSCompiler_object_inline_stack_2313 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2298 + JSCompiler_object_inline_digest_2312 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2298 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2298) + ((JSCompiler_object_inline_digest_2312 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2312) ) { if (didSuspend) workInProgress.flags & 256 @@ -9081,95 +9110,95 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2297 = - JSCompiler_object_inline_stack_2299.fallback), - (JSCompiler_object_inline_digest_2298 = workInProgress.mode), - (JSCompiler_object_inline_stack_2299 = + (JSCompiler_object_inline_message_2311 = + JSCompiler_object_inline_stack_2313.fallback), + (JSCompiler_object_inline_digest_2312 = workInProgress.mode), + (JSCompiler_object_inline_stack_2313 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2299.children + children: JSCompiler_object_inline_stack_2313.children }, - JSCompiler_object_inline_digest_2298 + JSCompiler_object_inline_digest_2312 )), - (JSCompiler_object_inline_message_2297 = + (JSCompiler_object_inline_message_2311 = createFiberFromFragment( - JSCompiler_object_inline_message_2297, - JSCompiler_object_inline_digest_2298, + JSCompiler_object_inline_message_2311, + JSCompiler_object_inline_digest_2312, renderLanes, null )), - (JSCompiler_object_inline_message_2297.flags |= 2), - (JSCompiler_object_inline_stack_2299.return = workInProgress), - (JSCompiler_object_inline_message_2297.return = workInProgress), - (JSCompiler_object_inline_stack_2299.sibling = - JSCompiler_object_inline_message_2297), - (workInProgress.child = JSCompiler_object_inline_stack_2299), + (JSCompiler_object_inline_message_2311.flags |= 2), + (JSCompiler_object_inline_stack_2313.return = workInProgress), + (JSCompiler_object_inline_message_2311.return = workInProgress), + (JSCompiler_object_inline_stack_2313.sibling = + JSCompiler_object_inline_message_2311), + (workInProgress.child = JSCompiler_object_inline_stack_2313), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2299 = workInProgress.child), - (JSCompiler_object_inline_stack_2299.memoizedState = + (JSCompiler_object_inline_stack_2313 = workInProgress.child), + (JSCompiler_object_inline_stack_2313.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2299.childLanes = + (JSCompiler_object_inline_stack_2313.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2300, + JSCompiler_object_inline_componentStack_2314, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2297)); + (workInProgress = JSCompiler_object_inline_message_2311)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_digest_2298.data === + JSCompiler_object_inline_digest_2312.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_componentStack_2300 = - JSCompiler_object_inline_digest_2298.nextSibling && - JSCompiler_object_inline_digest_2298.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2300) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2300.dgst; - var message = JSCompiler_object_inline_componentStack_2300.msg; - instance = JSCompiler_object_inline_componentStack_2300.stck; + JSCompiler_object_inline_componentStack_2314 = + JSCompiler_object_inline_digest_2312.nextSibling && + JSCompiler_object_inline_digest_2312.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2314) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2314.dgst; + var message = JSCompiler_object_inline_componentStack_2314.msg; + instance = JSCompiler_object_inline_componentStack_2314.stck; var componentStack = - JSCompiler_object_inline_componentStack_2300.cstck; + JSCompiler_object_inline_componentStack_2314.cstck; } - JSCompiler_object_inline_message_2297 = message; - JSCompiler_object_inline_digest_2298 = JSCompiler_temp; - JSCompiler_object_inline_stack_2299 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2300 = + JSCompiler_object_inline_message_2311 = message; + JSCompiler_object_inline_digest_2312 = JSCompiler_temp; + JSCompiler_object_inline_stack_2313 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2314 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2298 && - ((JSCompiler_object_inline_componentStack_2300 = - JSCompiler_object_inline_message_2297 - ? Error(JSCompiler_object_inline_message_2297) + "POSTPONE" !== JSCompiler_object_inline_digest_2312 && + ((JSCompiler_object_inline_componentStack_2314 = + JSCompiler_object_inline_message_2311 + ? Error(JSCompiler_object_inline_message_2311) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." )), - (JSCompiler_object_inline_componentStack_2300.stack = - JSCompiler_object_inline_stack_2299 || ""), - (JSCompiler_object_inline_componentStack_2300.digest = - JSCompiler_object_inline_digest_2298), - (JSCompiler_object_inline_stack_2299 = + (JSCompiler_object_inline_componentStack_2314.stack = + JSCompiler_object_inline_stack_2313 || ""), + (JSCompiler_object_inline_componentStack_2314.digest = + JSCompiler_object_inline_digest_2312), + (JSCompiler_object_inline_stack_2313 = void 0 === JSCompiler_temp ? null : JSCompiler_temp), - (JSCompiler_object_inline_message_2297 = { - value: JSCompiler_object_inline_componentStack_2300, + (JSCompiler_object_inline_message_2311 = { + value: JSCompiler_object_inline_componentStack_2314, source: null, - stack: JSCompiler_object_inline_stack_2299 + stack: JSCompiler_object_inline_stack_2313 }), - "string" === typeof JSCompiler_object_inline_stack_2299 && + "string" === typeof JSCompiler_object_inline_stack_2313 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2300, - JSCompiler_object_inline_message_2297 + JSCompiler_object_inline_componentStack_2314, + JSCompiler_object_inline_message_2311 ), - queueHydrationError(JSCompiler_object_inline_message_2297)); + queueHydrationError(JSCompiler_object_inline_message_2311)); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9183,25 +9212,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2300 = + (JSCompiler_object_inline_componentStack_2314 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2300) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2314) ) { - JSCompiler_object_inline_componentStack_2300 = workInProgressRoot; - if (null !== JSCompiler_object_inline_componentStack_2300) { - JSCompiler_object_inline_stack_2299 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2299 & 42)) - JSCompiler_object_inline_stack_2299 = 1; + JSCompiler_object_inline_componentStack_2314 = workInProgressRoot; + if (null !== JSCompiler_object_inline_componentStack_2314) { + JSCompiler_object_inline_stack_2313 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2313 & 42)) + JSCompiler_object_inline_stack_2313 = 1; else - switch (JSCompiler_object_inline_stack_2299) { + switch (JSCompiler_object_inline_stack_2313) { case 2: - JSCompiler_object_inline_stack_2299 = 1; + JSCompiler_object_inline_stack_2313 = 1; break; case 8: - JSCompiler_object_inline_stack_2299 = 4; + JSCompiler_object_inline_stack_2313 = 4; break; case 32: - JSCompiler_object_inline_stack_2299 = 16; + JSCompiler_object_inline_stack_2313 = 16; break; case 128: case 256: @@ -9222,40 +9251,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2299 = 64; + JSCompiler_object_inline_stack_2313 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2299 = 134217728; + JSCompiler_object_inline_stack_2313 = 134217728; break; default: - JSCompiler_object_inline_stack_2299 = 0; + JSCompiler_object_inline_stack_2313 = 0; } - JSCompiler_object_inline_stack_2299 = + JSCompiler_object_inline_stack_2313 = 0 !== - (JSCompiler_object_inline_stack_2299 & - (JSCompiler_object_inline_componentStack_2300.suspendedLanes | + (JSCompiler_object_inline_stack_2313 & + (JSCompiler_object_inline_componentStack_2314.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2299; + : JSCompiler_object_inline_stack_2313; if ( - 0 !== JSCompiler_object_inline_stack_2299 && - JSCompiler_object_inline_stack_2299 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2313 && + JSCompiler_object_inline_stack_2313 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2299), + ((prevState.retryLane = JSCompiler_object_inline_stack_2313), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2299 + JSCompiler_object_inline_stack_2313 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2300, + JSCompiler_object_inline_componentStack_2314, current, - JSCompiler_object_inline_stack_2299 + JSCompiler_object_inline_stack_2313 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_digest_2298.data === + JSCompiler_object_inline_digest_2312.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9263,7 +9292,7 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2298.data === + JSCompiler_object_inline_digest_2312.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9271,12 +9300,12 @@ null, current )), - (JSCompiler_object_inline_digest_2298._reactRetry = + (JSCompiler_object_inline_digest_2312._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2298.nextSibling + JSCompiler_object_inline_digest_2312.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9294,54 +9323,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2299.children + JSCompiler_object_inline_stack_2313.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2297) + if (JSCompiler_object_inline_message_2311) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2297 = - JSCompiler_object_inline_stack_2299.fallback), - (JSCompiler_object_inline_digest_2298 = workInProgress.mode), + (JSCompiler_object_inline_message_2311 = + JSCompiler_object_inline_stack_2313.fallback), + (JSCompiler_object_inline_digest_2312 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2299 = createWorkInProgress( + (JSCompiler_object_inline_stack_2313 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2299.children + children: JSCompiler_object_inline_stack_2313.children } )), - (JSCompiler_object_inline_stack_2299.subtreeFlags = + (JSCompiler_object_inline_stack_2313.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_message_2297 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2311 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2297 + JSCompiler_object_inline_message_2311 )) - : ((JSCompiler_object_inline_message_2297 = createFiberFromFragment( - JSCompiler_object_inline_message_2297, - JSCompiler_object_inline_digest_2298, + : ((JSCompiler_object_inline_message_2311 = createFiberFromFragment( + JSCompiler_object_inline_message_2311, + JSCompiler_object_inline_digest_2312, renderLanes, null )), - (JSCompiler_object_inline_message_2297.flags |= 2)), - (JSCompiler_object_inline_message_2297.return = workInProgress), - (JSCompiler_object_inline_stack_2299.return = workInProgress), - (JSCompiler_object_inline_stack_2299.sibling = - JSCompiler_object_inline_message_2297), - (workInProgress.child = JSCompiler_object_inline_stack_2299), - (JSCompiler_object_inline_stack_2299 = - JSCompiler_object_inline_message_2297), - (JSCompiler_object_inline_message_2297 = workInProgress.child), - (JSCompiler_object_inline_digest_2298 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2298 - ? (JSCompiler_object_inline_digest_2298 = + (JSCompiler_object_inline_message_2311.flags |= 2)), + (JSCompiler_object_inline_message_2311.return = workInProgress), + (JSCompiler_object_inline_stack_2313.return = workInProgress), + (JSCompiler_object_inline_stack_2313.sibling = + JSCompiler_object_inline_message_2311), + (workInProgress.child = JSCompiler_object_inline_stack_2313), + (JSCompiler_object_inline_stack_2313 = + JSCompiler_object_inline_message_2311), + (JSCompiler_object_inline_message_2311 = workInProgress.child), + (JSCompiler_object_inline_digest_2312 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2312 + ? (JSCompiler_object_inline_digest_2312 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2298.cachePool), + JSCompiler_object_inline_digest_2312.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9349,38 +9378,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2298 = { + (JSCompiler_object_inline_digest_2312 = { baseLanes: - JSCompiler_object_inline_digest_2298.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2312.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2297.memoizedState = - JSCompiler_object_inline_digest_2298), - (JSCompiler_object_inline_message_2297.childLanes = + (JSCompiler_object_inline_message_2311.memoizedState = + JSCompiler_object_inline_digest_2312), + (JSCompiler_object_inline_message_2311.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2300, + JSCompiler_object_inline_componentStack_2314, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2299 + JSCompiler_object_inline_stack_2313 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2299.children + children: JSCompiler_object_inline_stack_2313.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2300 = + ((JSCompiler_object_inline_componentStack_2314 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2300 + null === JSCompiler_object_inline_componentStack_2314 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2300.push(current)); + : JSCompiler_object_inline_componentStack_2314.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -13794,20 +13823,34 @@ (resource.state.loading & Inserted) !== NotLoaded ) workInProgress.flags &= -16777217; - else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) - if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; - else + else if ( + ((workInProgress.flags |= 16777216), !preloadResource(resource)) + ) { + resource = suspenseHandlerStackCursor.current; + if ( + null !== resource && + ((workInProgressRootRenderLanes & 4194176) === + workInProgressRootRenderLanes + ? null !== shellBoundary + : ((workInProgressRootRenderLanes & 62914560) !== + workInProgressRootRenderLanes && + 0 === (workInProgressRootRenderLanes & 536870912)) || + resource !== shellBoundary) + ) throw ( ((suspendedThenable = noopSuspenseyCommitThenable), SuspenseyCommitException) ); + workInProgress.flags |= 8192; + } } function scheduleRetryEffect(workInProgress, retryQueue) { null !== retryQueue && (workInProgress.flags |= 4); workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue)); + (workInProgress.lanes |= retryQueue), + (workInProgressSuspendedRetryLanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -14604,7 +14647,8 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); markRootUpdated$1(root, lane); if ( @@ -14646,25 +14690,37 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 )), ensureRootIsScheduled(root); } function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var exitStatus = (forceSync = + var shouldTimeSlice = (!forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) || - !1) + checkIfRootIsPrerendering(root, lanes), + exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes, !0), - renderWasConcurrent = forceSync; + renderWasConcurrent = shouldTimeSlice; do { - if (exitStatus === RootInProgress) break; - else if (exitStatus === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + if (exitStatus === RootInProgress) { + workInProgressRootIsPrerendering && + !shouldTimeSlice && + markRootSuspended(root, lanes, 0, !1); + break; + } else if (exitStatus === RootDidNotComplete) + finalizeRender(lanes, now$1()), + markRootSuspended( + root, + lanes, + 0, + !workInProgressRootDidSkipSuspendedSiblings + ); else { forceSync = root.current.alternate; if ( @@ -14729,22 +14785,24 @@ } if (exitStatus === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended(root, lanes, 0, !0); break; } a: { - renderWasConcurrent = root; - errorRetryLanes = now$1(); + shouldTimeSlice = root; + renderWasConcurrent = now$1(); switch (exitStatus) { case RootInProgress: case RootFatalErrored: throw Error("Root did not complete. This is a bug in React."); case RootSuspendedWithDelay: if ((lanes & 4194176) === lanes) { + finalizeRender(lanes, now$1()); markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -14758,11 +14816,11 @@ default: throw Error("Unknown root exit status."); } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; if (null !== ReactSharedInternals.actQueue) commitRoot( - renderWasConcurrent, + shouldTimeSlice, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, @@ -14771,7 +14829,7 @@ workInProgressSuspendedRetryLanes, IMMEDIATE_COMMIT, renderStartTime, - errorRetryLanes + renderWasConcurrent ); else { if ( @@ -14783,15 +14841,16 @@ 10 < exitStatus) ) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -14803,14 +14862,14 @@ workInProgressRootDidSkipSuspendedSiblings, THROTTLED_COMMIT, renderStartTime, - errorRetryLanes + renderWasConcurrent ), exitStatus ); break a; } commitRootWhenReady( - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -14822,7 +14881,7 @@ workInProgressRootDidSkipSuspendedSiblings, IMMEDIATE_COMMIT, renderStartTime, - errorRetryLanes + renderWasConcurrent ); } } @@ -14854,11 +14913,8 @@ completedRenderStartTime, completedRenderEndTime ) { - didSkipSuspendedSiblings = finishedWork.subtreeFlags; - if ( - didSkipSuspendedSiblings & 8192 || - 16785408 === (didSkipSuspendedSiblings & 16785408) - ) + var subtreeFlags = finishedWork.subtreeFlags; + if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) if ( ((suspendedState = { stylesheets: null, @@ -14884,7 +14940,12 @@ completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended( + root, + lanes, + spawnedLane, + !didSkipSuspendedSiblings + ); return; } commitRoot( @@ -14934,19 +14995,22 @@ } return !0; } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didAttemptEntireTree + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didAttemptEntireTree && (root.warmLanes |= suspendedLanes); + didAttemptEntireTree = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didAttemptEntireTree[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -14976,80 +15040,91 @@ } function finalizeRender(lanes, finalizationTime) { if (0 !== (lanes & 3) || 0 !== (lanes & 60)) - 0 <= blockingUpdateTime && - blockingUpdateTime < finalizationTime && - (blockingUpdateTime = finalizationTime), - 0 <= blockingEventTime && - blockingEventTime < finalizationTime && - (blockingEventTime = finalizationTime); - 0 !== (lanes & 4194176) && - (0 <= transitionStartTime && - transitionStartTime < finalizationTime && - (transitionStartTime = finalizationTime), - 0 <= transitionUpdateTime && - transitionUpdateTime < finalizationTime && - (transitionUpdateTime = finalizationTime), - 0 <= transitionEventTime && - transitionEventTime < finalizationTime && - (transitionEventTime = finalizationTime)); + blockingClampTime = finalizationTime; + 0 !== (lanes & 4194176) && (transitionClampTime = finalizationTime); } function prepareFreshStack(root, lanes) { renderStartTime = now(); finalizeRender(workInProgressRootRenderLanes, renderStartTime); if (0 !== (lanes & 3) || 0 !== (lanes & 60)) { - var updateTime = blockingUpdateTime, - eventTime = blockingEventTime, + var updateTime = + 0 <= blockingUpdateTime && blockingUpdateTime < blockingClampTime + ? blockingClampTime + : blockingUpdateTime, + eventTime = + 0 <= blockingEventTime && blockingEventTime < blockingClampTime + ? blockingClampTime + : blockingEventTime, eventType = blockingEventType, + eventIsRepeat = blockingEventIsRepeat, renderStartTime$jscomp$0 = renderStartTime; supportsUserTiming && - ((reusableComponentDevToolDetails.track = "Blocking"), + ((reusableLaneDevToolDetails.track = "Blocking"), 0 < eventTime && null !== eventType && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = eventTime), - (reusableComponentOptions.end = + ((reusableLaneDevToolDetails.color = eventIsRepeat + ? "secondary-light" + : "warning"), + (reusableLaneOptions.start = eventTime), + (reusableLaneOptions.end = 0 < updateTime ? updateTime : renderStartTime$jscomp$0), - performance.measure(eventType, reusableComponentOptions)), + performance.measure( + eventIsRepeat ? "" : "Event: " + eventType, + reusableLaneOptions + )), 0 < updateTime && - ((reusableComponentDevToolDetails.color = "primary-light"), - (reusableComponentOptions.start = updateTime), - (reusableComponentOptions.end = renderStartTime$jscomp$0), - performance.measure("Blocked", reusableComponentOptions))); + ((reusableLaneDevToolDetails.color = "primary-light"), + (reusableLaneOptions.start = updateTime), + (reusableLaneOptions.end = renderStartTime$jscomp$0), + performance.measure("Blocked", reusableLaneOptions))); blockingUpdateTime = -1.1; } if (0 !== (lanes & 4194176)) { - updateTime = transitionStartTime; - eventTime = transitionUpdateTime; - eventType = transitionEventTime; - renderStartTime$jscomp$0 = transitionEventType; + updateTime = + 0 <= transitionStartTime && transitionStartTime < transitionClampTime + ? transitionClampTime + : transitionStartTime; + eventTime = + 0 <= transitionUpdateTime && + transitionUpdateTime < transitionClampTime + ? transitionClampTime + : transitionUpdateTime; + eventType = + 0 <= transitionEventTime && transitionEventTime < transitionClampTime + ? transitionClampTime + : transitionEventTime; + eventIsRepeat = transitionEventType; + renderStartTime$jscomp$0 = transitionEventIsRepeat; var renderStartTime$jscomp$1 = renderStartTime; supportsUserTiming && - ((reusableComponentDevToolDetails.track = "Transition"), + ((reusableLaneDevToolDetails.track = "Transition"), 0 < eventType && - null !== renderStartTime$jscomp$0 && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = eventType), - (reusableComponentOptions.end = + null !== eventIsRepeat && + ((reusableLaneDevToolDetails.color = renderStartTime$jscomp$0 + ? "secondary-light" + : "warning"), + (reusableLaneOptions.start = eventType), + (reusableLaneOptions.end = 0 < updateTime ? updateTime : 0 < eventTime ? eventTime : renderStartTime$jscomp$1), performance.measure( - renderStartTime$jscomp$0, - reusableComponentOptions + renderStartTime$jscomp$0 ? "" : "Event: " + eventIsRepeat, + reusableLaneOptions )), 0 < updateTime && - ((reusableComponentDevToolDetails.color = "primary-dark"), - (reusableComponentOptions.start = updateTime), - (reusableComponentOptions.end = + ((reusableLaneDevToolDetails.color = "primary-dark"), + (reusableLaneOptions.start = updateTime), + (reusableLaneOptions.end = 0 < eventTime ? eventTime : renderStartTime$jscomp$1), - performance.measure("Action", reusableComponentOptions)), + performance.measure("Action", reusableLaneOptions)), 0 < eventTime && - ((reusableComponentDevToolDetails.color = "primary-light"), - (reusableComponentOptions.start = eventTime), - (reusableComponentOptions.end = renderStartTime$jscomp$1), - performance.measure("Blocked", reusableComponentOptions))); + ((reusableLaneDevToolDetails.color = "primary-light"), + (reusableLaneOptions.start = eventTime), + (reusableLaneOptions.end = renderStartTime$jscomp$1), + performance.measure("Blocked", reusableLaneOptions))); transitionUpdateTime = transitionStartTime = -1.1; } root.finishedWork = null; @@ -15066,7 +15141,7 @@ workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); + workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = @@ -15083,9 +15158,9 @@ if (0 !== eventTime) for (root = root.entanglements, eventTime &= lanes; 0 < eventTime; ) (eventType = 31 - clz32(eventTime)), - (renderStartTime$jscomp$0 = 1 << eventType), + (eventIsRepeat = 1 << eventType), (lanes |= root[eventType]), - (eventTime &= ~renderStartTime$jscomp$0); + (eventTime &= ~eventIsRepeat); entangledRenderLanes = lanes; finishQueueingConcurrentUpdates(); ReactStrictModeWarnings.discardPendingWarnings(); @@ -15099,12 +15174,7 @@ current = null; thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), - (workInProgressSuspendedReason = - shouldRemainOnPreviousScreen() && - 0 === (workInProgressRootSkippedLanes & 134217727) && - 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) - ? SuspendedOnData - : SuspendedOnImmediate)) + (workInProgressSuspendedReason = SuspendedOnImmediate)) : thrownValue === SuspenseyCommitException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = SuspendedOnInstance)) @@ -15127,21 +15197,6 @@ : erroredWork.mode & ProfileMode && stopProfilerTimerIfRunningAndRecordDuration(erroredWork); } - function shouldRemainOnPreviousScreen() { - var handler = suspenseHandlerStackCursor.current; - return null === handler - ? !0 - : (workInProgressRootRenderLanes & 4194176) === - workInProgressRootRenderLanes - ? null === shellBoundary - ? !0 - : !1 - : (workInProgressRootRenderLanes & 62914560) === - workInProgressRootRenderLanes || - 0 !== (workInProgressRootRenderLanes & 536870912) - ? handler === shellBoundary - : !1; - } function pushDispatcher() { var prevDispatcher = ReactSharedInternals.H; ReactSharedInternals.H = ContextOnlyDispatcher; @@ -15154,13 +15209,19 @@ } function renderDidSuspendDelayIfPossible() { workInProgressRootExitStatus = RootSuspendedWithDelay; + workInProgressRootDidSkipSuspendedSiblings || + ((workInProgressRootRenderLanes & 4194176) !== + workInProgressRootRenderLanes && + null !== suspenseHandlerStackCursor.current) || + (workInProgressRootIsPrerendering = !0); (0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) || null === workInProgressRoot || markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); } function queueConcurrentError(error) { @@ -15168,7 +15229,7 @@ ? (workInProgressRootConcurrentErrors = [error]) : workInProgressRootConcurrentErrors.push(error); } - function renderRootSync(root, lanes) { + function renderRootSync(root, lanes, shouldYieldForPrerendering) { var prevExecutionContext = executionContext; executionContext |= RenderContext; var prevDispatcher = pushDispatcher(), @@ -15210,6 +15271,13 @@ workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + if ( + shouldYieldForPrerendering && + workInProgressRootIsPrerendering + ) { + memoizedUpdaters = RootInProgress; + break a; + } break; default: (reason = workInProgressSuspendedReason), @@ -15258,7 +15326,11 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } else + workInProgressRootIsPrerendering = checkIfRootIsPrerendering( + root, + lanes + ); a: do try { if ( @@ -15462,7 +15534,12 @@ stopProfilerTimerIfRunningAndRecordDuration(unitOfWork); return current; } - function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { + function throwAndUnwindWorkLoop( + root, + unitOfWork, + thrownValue, + suspendedReason + ) { resetContextDependencies(); resetHooksOnUnwind(unitOfWork); thenableState$1 = null; @@ -15496,9 +15573,25 @@ workInProgress = null; return; } - unitOfWork.flags & 32768 - ? unwindUnitOfWork(unitOfWork, !0) - : completeUnitOfWork(unitOfWork); + if (unitOfWork.flags & 32768) { + if (isHydrating || suspendedReason === SuspendedOnError) root = !0; + else if ( + workInProgressRootIsPrerendering || + 0 !== (workInProgressRootRenderLanes & 536870912) + ) + root = !1; + else if ( + ((workInProgressRootDidSkipSuspendedSiblings = root = !0), + suspendedReason === SuspendedOnData || + suspendedReason === SuspendedOnImmediate || + suspendedReason === SuspendedOnDeprecatedThrowPromise) + ) + (suspendedReason = suspenseHandlerStackCursor.current), + null !== suspendedReason && + 13 === suspendedReason.tag && + (suspendedReason.flags |= 16384); + unwindUnitOfWork(unitOfWork, root); + } else completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; @@ -15622,46 +15715,49 @@ ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - updatedLanes = root.finishedWork; + var finishedWork = root.finishedWork; didIncludeRenderPhaseUpdate = root.finishedLanes; - reusableComponentDevToolDetails.track = getGroupNameOfHighestPriorityLane( + reusableLaneDevToolDetails.track = getGroupNameOfHighestPriorityLane( didIncludeRenderPhaseUpdate ); logRenderPhase(completedRenderStartTime, completedRenderEndTime); - if (null === updatedLanes) return null; + if (null === finishedWork) return null; 0 === didIncludeRenderPhaseUpdate && console.error( "root.finishedLanes should not be empty during a commit. This is a bug in React." ); root.finishedWork = null; root.finishedLanes = 0; - if (updatedLanes === root.current) + if (finishedWork === root.current) throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); root.callbackNode = null; root.callbackPriority = 0; root.cancelPendingCommit = null; - completedRenderStartTime = updatedLanes.lanes | updatedLanes.childLanes; + completedRenderStartTime = finishedWork.lanes | finishedWork.childLanes; completedRenderStartTime |= concurrentlyUpdatedLanes; markRootFinished( root, didIncludeRenderPhaseUpdate, completedRenderStartTime, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === updatedLanes.actualDuration && - 0 === (updatedLanes.subtreeFlags & 10256) && - 0 === (updatedLanes.flags & 10256)) || + (0 === finishedWork.actualDuration && + 0 === (finishedWork.subtreeFlags & 10256) && + 0 === (finishedWork.flags & 10256)) || rootDoesHavePassiveEffects || ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = completedRenderStartTime), (pendingPassiveEffectsRenderEndTime = completedRenderEndTime), (pendingPassiveTransitions = transitions), scheduleCallback$1(NormalPriority$1, function () { + schedulerEvent = window.event; flushPassiveEffects(!0); return null; })); @@ -15670,33 +15766,38 @@ ? logSuspendedCommitPhase(completedRenderEndTime, commitStartTime) : suspendedCommitReason === THROTTLED_COMMIT && logSuspenseThrottlePhase(completedRenderEndTime, commitStartTime); - transitions = 0 !== (updatedLanes.flags & 15990); - 0 !== (updatedLanes.subtreeFlags & 15990) || transitions + transitions = 0 !== (finishedWork.flags & 15990); + 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), (spawnedLane = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = DiscreteEventPriority), - (suspendedCommitReason = executionContext), + (updatedLanes = executionContext), (executionContext |= CommitContext), - commitBeforeMutationEffects(root, updatedLanes), + commitBeforeMutationEffects(root, finishedWork), commitMutationEffects( root, - updatedLanes, + finishedWork, didIncludeRenderPhaseUpdate ), restoreSelection(selectionInformation, root.containerInfo), (_enabled = !!eventsEnabled), (selectionInformation = eventsEnabled = null), - (root.current = updatedLanes), - commitLayoutEffects(updatedLanes, root, didIncludeRenderPhaseUpdate), + (root.current = finishedWork), + commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), requestPaint(), - (executionContext = suspendedCommitReason), + (executionContext = updatedLanes), (ReactDOMSharedInternals.p = spawnedLane), (ReactSharedInternals.T = transitions)) - : (root.current = updatedLanes); + : (root.current = finishedWork); commitEndTime = now(); - logCommitPhase(commitStartTime, commitEndTime); - (transitions = rootDoesHavePassiveEffects) + logCommitPhase( + suspendedCommitReason === IMMEDIATE_COMMIT + ? completedRenderEndTime + : commitStartTime, + commitEndTime + ); + (suspendedCommitReason = rootDoesHavePassiveEffects) ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) @@ -15706,24 +15807,25 @@ completedRenderStartTime = root.pendingLanes; 0 === completedRenderStartTime && (legacyErrorBoundariesThatAlreadyFailed = null); - transitions || commitDoubleInvokeEffectsInDEV(root); - onCommitRoot$1(updatedLanes.stateNode, renderPriorityLevel); + suspendedCommitReason || commitDoubleInvokeEffectsInDEV(root); + onCommitRoot$1(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); onCommitRoot(); ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( - renderPriorityLevel = root.onRecoverableError, updatedLanes = 0; - updatedLanes < recoverableErrors.length; - updatedLanes++ + renderPriorityLevel = root.onRecoverableError, + completedRenderEndTime = 0; + completedRenderEndTime < recoverableErrors.length; + completedRenderEndTime++ ) - (completedRenderStartTime = recoverableErrors[updatedLanes]), - (spawnedLane = makeErrorInfo(completedRenderStartTime.stack)), + (finishedWork = recoverableErrors[completedRenderEndTime]), + (completedRenderStartTime = makeErrorInfo(finishedWork.stack)), runWithFiberInDEV( - completedRenderStartTime.source, + finishedWork.source, renderPriorityLevel, - completedRenderStartTime.value, - spawnedLane + finishedWork.value, + completedRenderStartTime ); 0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects(); completedRenderStartTime = root.pendingLanes; @@ -15734,7 +15836,8 @@ ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - transitions || finalizeRender(didIncludeRenderPhaseUpdate, now$1()); + suspendedCommitReason || + finalizeRender(didIncludeRenderPhaseUpdate, now$1()); flushSyncWorkAcrossRoots_impl(0, !1); return null; } @@ -15786,7 +15889,7 @@ throw Error( "Cannot flush passive effects while already rendering." ); - reusableComponentDevToolDetails.track = + reusableLaneDevToolDetails.track = getGroupNameOfHighestPriorityLane(lanes); isFlushingPassiveEffects = !0; didScheduleUpdateDuringPassiveEffects = !1; @@ -15794,15 +15897,16 @@ passiveEffectStartTime = now$1(); var startTime = commitEndTime, endTime = passiveEffectStartTime; + wasDelayedCommit = !!wasDelayedCommit; supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-light"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), + ((reusableLaneDevToolDetails.color = "secondary-light"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), performance.measure( - "Waiting for Paint", - reusableComponentOptions + wasDelayedCommit ? "Waiting for Paint" : "", + reusableLaneOptions )); - startTime = executionContext; + wasDelayedCommit = executionContext; executionContext |= CommitContext; var finishedWork = priority.current; resetComponentEffectTimers(); @@ -15818,18 +15922,14 @@ finishedWork ); commitDoubleInvokeEffectsInDEV(priority); - executionContext = startTime; + executionContext = wasDelayedCommit; var passiveEffectsEndTime = now$1(); - wasDelayedCommit && - ((wasDelayedCommit = passiveEffectStartTime), - supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = wasDelayedCommit), - (reusableComponentOptions.end = passiveEffectsEndTime), - performance.measure( - "Remaining Effects", - reusableComponentOptions - ))); + finishedWork$jscomp$0 = passiveEffectStartTime; + supportsUserTiming && + ((reusableLaneDevToolDetails.color = "secondary-dark"), + (reusableLaneOptions.start = finishedWork$jscomp$0), + (reusableLaneOptions.end = passiveEffectsEndTime), + performance.measure("Remaining Effects", reusableLaneOptions)); finalizeRender(lanes, passiveEffectsEndTime); flushSyncWorkAcrossRoots_impl(0, !1); didScheduleUpdateDuringPassiveEffects @@ -16174,6 +16274,7 @@ } } function processRootScheduleInMicrotask() { + schedulerEvent = window.event; mightHavePendingSyncWork = didScheduleMicrotask_act = didScheduleMicrotask = @@ -16238,7 +16339,10 @@ (root.callbackNode = null), (root.callbackPriority = 0) ); - if (0 !== (suspendedLanes & 3)) + if ( + 0 !== (suspendedLanes & 3) && + !checkIfRootIsPrerendering(root, suspendedLanes) + ) return ( null !== pingedLanes && cancelCallback(pingedLanes), (root.callbackPriority = 2), @@ -16278,6 +16382,7 @@ } function performWorkOnRootViaSchedulerTask(root, didTimeout) { nestedUpdateScheduled = currentUpdateIsNested = !1; + schedulerEvent = window.event; var originalCallbackNode = root.callbackNode; if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null; @@ -19410,11 +19515,11 @@ } function resolveEventType() { var event = window.event; - return event ? event.type : null; + return event && event !== schedulerEvent ? event.type : null; } function resolveEventTimeStamp() { var event = window.event; - return event ? event.timeStamp : -1.1; + return event && event !== schedulerEvent ? event.timeStamp : -1.1; } function handleErrorInNextTick(error) { setTimeout(function () { @@ -22557,14 +22662,24 @@ reusableComponentDevToolDetails = { dataType: "track-entry", color: "primary", - track: "Blocking", - trackGroup: "Components \u269b" + track: "Components \u269b" }, reusableComponentOptions = { start: -0, end: -0, detail: { devtools: reusableComponentDevToolDetails } }, + reusableLaneDevToolDetails = { + dataType: "track-entry", + color: "primary", + track: "Blocking", + trackGroup: "Scheduler \u269b" + }, + reusableLaneOptions = { + start: -0, + end: -0, + detail: { devtools: reusableLaneDevToolDetails } + }, OffscreenVisible = 1, OffscreenDetached = 2, OffscreenPassiveEffectsConnected = 4, @@ -22590,13 +22705,17 @@ componentEffectDuration = -0, componentEffectStartTime = -1.1, componentEffectEndTime = -1.1, + blockingClampTime = -0, blockingUpdateTime = -1.1, blockingEventTime = -1.1, blockingEventType = null, + blockingEventIsRepeat = !1, + transitionClampTime = -0, transitionStartTime = -1.1, transitionUpdateTime = -1.1, transitionEventTime = -1.1, transitionEventType = null, + transitionEventIsRepeat = !1, currentUpdateIsNested = !1, nestedUpdateScheduled = !1, ReactStrictModeWarnings = { @@ -23051,15 +23170,23 @@ currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S; ReactSharedInternals.S = function (transition, returnValue) { - "object" === typeof returnValue && + if ( + "object" === typeof returnValue && null !== returnValue && - "function" === typeof returnValue.then && - (0 > transitionStartTime && - 0 > transitionUpdateTime && - ((transitionStartTime = now()), - (transitionEventTime = resolveEventTimeStamp()), - (transitionEventType = resolveEventType())), - entangleAsyncAction(transition, returnValue)); + "function" === typeof returnValue.then + ) { + if (0 > transitionStartTime && 0 > transitionUpdateTime) { + transitionStartTime = now(); + var newEventTime = resolveEventTimeStamp(), + newEventType = resolveEventType(); + transitionEventIsRepeat = + newEventTime === transitionEventTime && + newEventType === transitionEventType; + transitionEventTime = newEventTime; + transitionEventType = newEventType; + } + entangleAsyncAction(transition, returnValue); + } null !== prevOnStartTransitionFinish && prevOnStartTransitionFinish(transition, returnValue); }; @@ -24391,6 +24518,7 @@ workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -24530,6 +24658,7 @@ selectionInformation = null, warnedUnknownTags = { dialog: !0, webview: !0 }, currentPopstateTransitionEvent = null, + schedulerEvent = void 0, scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0, cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0, @@ -24970,11 +25099,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-b01722d5-20241114" !== 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-experimental-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25011,11 +25140,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-380f5d67-20241113", + version: "19.0.0-experimental-b01722d5-20241114", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-380f5d67-20241113" + reconcilerVersion: "19.0.0-experimental-b01722d5-20241114" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25487,7 +25616,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-experimental-380f5d67-20241113"; + exports.version = "19.0.0-experimental-b01722d5-20241114"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js index 5cd83e467a35a..3f9a08e38806d 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js @@ -677,28 +677,40 @@ 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, + warmLanes = root.warmLanes; + root = 0 !== root.finishedLanes; 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)) + : root || + ((warmLanes = nonIdlePendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : root || + ((warmLanes = pendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (warmLanes = wipLanes & -wipLanes), + suspendedLanes >= warmLanes || + (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) ? wipLanes : nextLanes; } @@ -772,7 +784,14 @@ function markRootUpdated$1(root, updateLane) { 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } -function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { +function markRootFinished( + root, + finishedLanes, + remainingLanes, + spawnedLane, + updatedLanes, + suspendedRetryLanes +) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; @@ -782,31 +801,36 @@ function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - finishedLanes = root.entanglements; - var expirationTimes = root.expirationTimes, + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index$6 = 31 - clz32(remainingLanes); - previouslyPendingLanes = 1 << index$6; - finishedLanes[index$6] = 0; - expirationTimes[index$6] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$6]; + var index$7 = 31 - clz32(remainingLanes), + lane = 1 << index$7; + entanglements[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); } - remainingLanes &= ~previouslyPendingLanes; + remainingLanes &= ~lane; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -821,19 +845,19 @@ 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 addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - root[index$9].add(fiber); + var index$10 = 31 - clz32(lanes), + lane = 1 << index$10; + root[index$10].add(fiber); lanes &= ~lane; } } @@ -845,16 +869,16 @@ function movePendingFibersToMemoized(root, lanes) { 0 < lanes; ) { - var index$10 = 31 - clz32(lanes); - root = 1 << index$10; - index$10 = pendingUpdatersLaneMap[index$10]; - 0 < index$10.size && - (index$10.forEach(function (fiber) { + var index$11 = 31 - clz32(lanes); + root = 1 << index$11; + index$11 = pendingUpdatersLaneMap[index$11]; + 0 < index$11.size && + (index$11.forEach(function (fiber) { var alternate = fiber.alternate; (null !== alternate && memoizedUpdaters.has(alternate)) || memoizedUpdaters.add(fiber); }), - index$10.clear()); + index$11.clear()); lanes &= ~root; } } @@ -1015,8 +1039,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$11 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$11 && "aria-" !== prefix$11) { + var prefix$12 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$12 && "aria-" !== prefix$12) { node.removeAttribute(name); return; } @@ -1349,15 +1373,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$17 in styles) - (styleName = styles[styleName$17]), - styles.hasOwnProperty(styleName$17) && - prevStyles[styleName$17] !== styleName && - setValueForStyle(node, styleName$17, styleName); - } else for (var styleName$18 in styles) - styles.hasOwnProperty(styleName$18) && - setValueForStyle(node, styleName$18, styles[styleName$18]); + (styleName = styles[styleName$18]), + styles.hasOwnProperty(styleName$18) && + prevStyles[styleName$18] !== styleName && + setValueForStyle(node, styleName$18, styleName); + } else + for (var styleName$19 in styles) + styles.hasOwnProperty(styleName$19) && + setValueForStyle(node, styleName$19, styles[styleName$19]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -2086,19 +2110,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$297; + var JSCompiler_inline_result$jscomp$304; if (canUseDOM) { - var isSupported$jscomp$inline_432 = "oninput" in document; - if (!isSupported$jscomp$inline_432) { - var element$jscomp$inline_433 = document.createElement("div"); - element$jscomp$inline_433.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_432 = - "function" === typeof element$jscomp$inline_433.oninput; + var isSupported$jscomp$inline_439 = "oninput" in document; + if (!isSupported$jscomp$inline_439) { + var element$jscomp$inline_440 = document.createElement("div"); + element$jscomp$inline_440.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_439 = + "function" === typeof element$jscomp$inline_440.oninput; } - JSCompiler_inline_result$jscomp$297 = isSupported$jscomp$inline_432; - } else JSCompiler_inline_result$jscomp$297 = !1; + JSCompiler_inline_result$jscomp$304 = isSupported$jscomp$inline_439; + } else JSCompiler_inline_result$jscomp$304 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$297 && + JSCompiler_inline_result$jscomp$304 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -2442,13 +2466,23 @@ var supportsUserTiming = reusableComponentDevToolDetails = { dataType: "track-entry", color: "primary", - track: "Blocking", - trackGroup: "Components \u269b" + track: "Components \u269b" }, reusableComponentOptions = { start: -0, end: -0, detail: { devtools: reusableComponentDevToolDetails } + }, + reusableLaneDevToolDetails = { + dataType: "track-entry", + color: "primary", + track: "Blocking", + trackGroup: "Scheduler \u269b" + }, + reusableLaneOptions = { + start: -0, + end: -0, + detail: { devtools: reusableLaneDevToolDetails } }; function logComponentEffect(fiber, startTime, endTime, selfTime) { fiber = getComponentNameFromFiber(fiber); @@ -2468,31 +2502,31 @@ function logComponentEffect(fiber, startTime, endTime, selfTime) { } function logRenderPhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "primary-dark"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Render", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "primary-dark"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Render", reusableLaneOptions)); } function logSuspenseThrottlePhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-light"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Throttled", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "secondary-light"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Throttled", reusableLaneOptions)); } function logSuspendedCommitPhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-light"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Suspended", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "secondary-light"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Suspended", reusableLaneOptions)); } function logCommitPhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Commit", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "secondary-dark"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Commit", reusableLaneOptions)); } var concurrentQueues = [], concurrentQueuesIndex = 0, @@ -2586,27 +2620,40 @@ var emptyContextObject = {}, componentEffectDuration = -0, componentEffectStartTime = -1.1, componentEffectEndTime = -1.1, + blockingClampTime = -0, blockingUpdateTime = -1.1, blockingEventTime = -1.1, blockingEventType = null, + blockingEventIsRepeat = !1, + transitionClampTime = -0, transitionStartTime = -1.1, transitionUpdateTime = -1.1, transitionEventTime = -1.1, - transitionEventType = null; + transitionEventType = null, + transitionEventIsRepeat = !1; function startUpdateTimerByLane(lane) { var JSCompiler_temp; (JSCompiler_temp = 0 !== (lane & 3)) || (JSCompiler_temp = 0 !== (lane & 60)); JSCompiler_temp ? 0 > blockingUpdateTime && ((blockingUpdateTime = now()), - (blockingEventTime = resolveEventTimeStamp()), - (blockingEventType = resolveEventType())) + (lane = resolveEventTimeStamp()), + (JSCompiler_temp = resolveEventType()), + (blockingEventIsRepeat = + lane === blockingEventTime && JSCompiler_temp === blockingEventType), + (blockingEventTime = lane), + (blockingEventType = JSCompiler_temp)) : 0 !== (lane & 4194176) && 0 > transitionUpdateTime && ((transitionUpdateTime = now()), 0 > transitionStartTime && - ((transitionEventTime = resolveEventTimeStamp()), - (transitionEventType = resolveEventType()))); + ((lane = resolveEventTimeStamp()), + (JSCompiler_temp = resolveEventType()), + (transitionEventIsRepeat = + lane === transitionEventTime && + JSCompiler_temp === transitionEventType), + (transitionEventTime = lane), + (transitionEventType = JSCompiler_temp))); } function pushNestedEffectDurations() { var prevEffectDuration = profilerEffectDuration; @@ -3907,15 +3954,23 @@ function chainThenableValue(thenable, result) { } var prevOnStartTransitionFinish = ReactSharedInternals.S; ReactSharedInternals.S = function (transition, returnValue) { - "object" === typeof returnValue && + if ( + "object" === typeof returnValue && null !== returnValue && - "function" === typeof returnValue.then && - (0 > transitionStartTime && - 0 > transitionUpdateTime && - ((transitionStartTime = now()), - (transitionEventTime = resolveEventTimeStamp()), - (transitionEventType = resolveEventType())), - entangleAsyncAction(transition, returnValue)); + "function" === typeof returnValue.then + ) { + if (0 > transitionStartTime && 0 > transitionUpdateTime) { + transitionStartTime = now(); + var newEventTime = resolveEventTimeStamp(), + newEventType = resolveEventType(); + transitionEventIsRepeat = + newEventTime === transitionEventTime && + newEventType === transitionEventType; + transitionEventTime = newEventTime; + transitionEventType = newEventType; + } + entangleAsyncAction(transition, returnValue); + } null !== prevOnStartTransitionFinish && prevOnStartTransitionFinish(transition, returnValue); }; @@ -4204,7 +4259,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$56 = !1; + didReadFromEntangledAsyncAction$59 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -4225,11 +4280,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$56 = !0); + (didReadFromEntangledAsyncAction$59 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$56 = !0); + (didReadFromEntangledAsyncAction$59 = !0); continue; } else (updateLane = { @@ -4275,7 +4330,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$56 && + didReadFromEntangledAsyncAction$59 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4477,8 +4532,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$62) { - onActionError(actionQueue, node, error$62); + } catch (error$65) { + onActionError(actionQueue, node, error$65); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4931,15 +4986,15 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$65 = enqueueUpdate(provider, fiber, lane); - null !== root$65 && + var root$68 = enqueueUpdate(provider, fiber, lane); + null !== root$68 && (startUpdateTimerByLane(lane), - scheduleUpdateOnFiber(root$65, provider, lane), - entangleTransitions(root$65, provider, lane)); + scheduleUpdateOnFiber(root$68, provider, lane), + entangleTransitions(root$68, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$65 && + null !== root$68 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -5484,9 +5539,9 @@ function resolveClassComponentProps(Component, baseProps) { } if ((Component = Component.defaultProps)) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$69 in Component) - void 0 === newProps[propName$69] && - (newProps[propName$69] = Component[propName$69]); + for (var propName$72 in Component) + void 0 === newProps[propName$72] && + (newProps[propName$72] = Component[propName$72]); } return newProps; } @@ -5532,9 +5587,9 @@ function logUncaughtError(root, errorInfo) { try { var onUncaughtError = root.onUncaughtError; onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack }); - } catch (e$70) { + } catch (e$73) { setTimeout(function () { - throw e$70; + throw e$73; }); } } @@ -5545,9 +5600,9 @@ function logCaughtError(root, boundary, errorInfo) { componentStack: errorInfo.stack, errorBoundary: 1 === boundary.tag ? boundary.stateNode : null }); - } catch (e$71) { + } catch (e$74) { setTimeout(function () { - throw e$71; + throw e$74; }); } } @@ -8038,8 +8093,8 @@ function safelyCallComponentWillUnmount( } else try { instance.componentWillUnmount(); - } catch (error$119) { - captureCommitPhaseError(current, nearestMountedAncestor, error$119); + } catch (error$122) { + captureCommitPhaseError(current, nearestMountedAncestor, error$122); } } function safelyAttachRef(current, nearestMountedAncestor) { @@ -8099,8 +8154,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordEffectDuration(current); } else ref(null); - } catch (error$120) { - captureCommitPhaseError(current, nearestMountedAncestor, error$120); + } catch (error$123) { + captureCommitPhaseError(current, nearestMountedAncestor, error$123); } else ref.current = null; } @@ -8269,7 +8324,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$21) { + } catch (e$22) { JSCompiler_temp = null; break a; } @@ -8439,11 +8494,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$116) { + } catch (error$119) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$116 + error$119 ); } else { @@ -8460,11 +8515,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$117) { + } catch (error$120) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$117 + error$120 ); } recordEffectDuration(); @@ -8475,11 +8530,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$118) { + } catch (error$121) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$118 + error$121 ); } } @@ -8657,7 +8712,7 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$128 = hostParentIsContainer; + var prevHostParentIsContainer$131 = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, @@ -8665,7 +8720,7 @@ function commitDeletionEffectsOnFiber( deletedFiber ); hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$128; + hostParentIsContainer = prevHostParentIsContainer$131; if (null !== hostParent) if (hostParentIsContainer) try { @@ -9326,21 +9381,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$121 = JSCompiler_inline_result.stateNode; + var parent$124 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$121, ""), + (setTextContent(parent$124, ""), (JSCompiler_inline_result.flags &= -33)); - var before$122 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$122, parent$121); + var before$125 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$125, parent$124); break; case 3: case 4: - var parent$123 = JSCompiler_inline_result.stateNode.containerInfo, - before$124 = getHostSibling(finishedWork); + var parent$126 = JSCompiler_inline_result.stateNode.containerInfo, + before$127 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$124, - parent$123 + before$127, + parent$126 ); break; default: @@ -10346,20 +10401,32 @@ function markUpdate(workInProgress) { function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4)) workInProgress.flags &= -16777217; - else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) - if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; - else + else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) { + resource = suspenseHandlerStackCursor.current; + if ( + null !== resource && + ((workInProgressRootRenderLanes & 4194176) === + workInProgressRootRenderLanes + ? null !== shellBoundary + : ((workInProgressRootRenderLanes & 62914560) !== + workInProgressRootRenderLanes && + 0 === (workInProgressRootRenderLanes & 536870912)) || + resource !== shellBoundary) + ) throw ( ((suspendedThenable = noopSuspenseyCommitThenable), SuspenseyCommitException) ); + workInProgress.flags |= 8192; + } } function scheduleRetryEffect(workInProgress, retryQueue) { null !== retryQueue && (workInProgress.flags |= 4); workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue)); + (workInProgress.lanes |= retryQueue), + (workInProgressSuspendedRetryLanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -10376,14 +10443,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$146 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$146 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$143 + null === lastTailNode$146 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$143.sibling = null); + : (lastTailNode$146.sibling = null); } } function bubbleProperties(completedWork) { @@ -10395,53 +10462,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$148 = completedWork.selfBaseDuration, + child$149 = completedWork.child; + null !== child$149; ) - (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$149.lanes | child$149.childLanes), + (subtreeFlags |= child$149.subtreeFlags & 31457280), + (subtreeFlags |= child$149.flags & 31457280), + (treeBaseDuration$148 += child$149.treeBaseDuration), + (child$149 = child$149.sibling); + completedWork.treeBaseDuration = treeBaseDuration$148; } else for ( - treeBaseDuration$145 = completedWork.child; - null !== treeBaseDuration$145; + treeBaseDuration$148 = completedWork.child; + null !== treeBaseDuration$148; ) (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$148.lanes | treeBaseDuration$148.childLanes), + (subtreeFlags |= treeBaseDuration$148.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$148.flags & 31457280), + (treeBaseDuration$148.return = completedWork), + (treeBaseDuration$148 = treeBaseDuration$148.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$145 = completedWork.actualDuration; - child$146 = completedWork.selfBaseDuration; + treeBaseDuration$148 = completedWork.actualDuration; + child$149 = 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$148 += child.actualDuration), + (child$149 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$145; - completedWork.treeBaseDuration = child$146; + completedWork.actualDuration = treeBaseDuration$148; + completedWork.treeBaseDuration = child$149; } else for ( - treeBaseDuration$145 = completedWork.child; - null !== treeBaseDuration$145; + treeBaseDuration$148 = completedWork.child; + null !== treeBaseDuration$148; ) (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$148.lanes | treeBaseDuration$148.childLanes), + (subtreeFlags |= treeBaseDuration$148.subtreeFlags), + (subtreeFlags |= treeBaseDuration$148.flags), + (treeBaseDuration$148.return = completedWork), + (treeBaseDuration$148 = treeBaseDuration$148.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10734,11 +10801,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$164 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$161 = newProps.memoizedState.cachePool.pool); - cache$161 !== type && (newProps.flags |= 2048); + (cache$164 = newProps.memoizedState.cachePool.pool); + cache$164 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -10768,8 +10835,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$164 = type.rendering; + if (null === cache$164) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10777,11 +10844,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$164 = findFirstSuspended(current); + if (null !== cache$164) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$161.updateQueue; + current = cache$164.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -10806,7 +10873,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$161)), null !== current)) { + if (((current = findFirstSuspended(cache$164)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10816,7 +10883,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$161.alternate && + !cache$164.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10829,13 +10896,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$161.sibling = workInProgress.child), - (workInProgress.child = cache$161)) + ? ((cache$164.sibling = workInProgress.child), + (workInProgress.child = cache$164)) : ((current = type.last), null !== current - ? (current.sibling = cache$161) - : (workInProgress.child = cache$161), - (type.last = cache$161)); + ? (current.sibling = cache$164) + : (workInProgress.child = cache$164), + (type.last = cache$164)); } if (null !== type.tail) return ( @@ -11018,6 +11085,7 @@ var DefaultAsyncDispatcher = { workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -11069,7 +11137,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); markRootUpdated$1(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) @@ -11081,23 +11150,36 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 )), ensureRootIsScheduled(root); } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var exitStatus = (forceSync = + var shouldTimeSlice = (!forceSync && 0 === (lanes & 60) && 0 === (lanes & root$jscomp$0.expiredLanes)) || - !1) + checkIfRootIsPrerendering(root$jscomp$0, lanes), + exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, !0), - renderWasConcurrent = forceSync; + renderWasConcurrent = shouldTimeSlice; do { - if (0 === exitStatus) break; - else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + if (0 === exitStatus) { + workInProgressRootIsPrerendering && + !shouldTimeSlice && + markRootSuspended(root$jscomp$0, lanes, 0, !1); + break; + } else if (6 === exitStatus) + finalizeRender(lanes, now$1()), + markRootSuspended( + root$jscomp$0, + lanes, + 0, + !workInProgressRootDidSkipSuspendedSiblings + ); else { forceSync = root$jscomp$0.current.alternate; if ( @@ -11157,22 +11239,25 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { } if (1 === exitStatus) { prepareFreshStack(root$jscomp$0, 0); - markRootSuspended(root$jscomp$0, lanes, 0); + markRootSuspended(root$jscomp$0, lanes, 0, !0); break; } a: { - renderWasConcurrent = root$jscomp$0; - JSCompiler_inline_result = now$1(); - switch (exitStatus) { + shouldTimeSlice = root$jscomp$0; + renderWasConcurrent = exitStatus; + exitStatus = now$1(); + switch (renderWasConcurrent) { case 0: case 1: throw Error(formatProdErrorMessage(345)); case 4: if ((lanes & 4194176) === lanes) { + finalizeRender(lanes, now$1()); markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -11186,23 +11271,24 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { default: throw Error(formatProdErrorMessage(329)); } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; if ( (lanes & 62914560) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 300 - now$1()), - 10 < exitStatus) + ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now$1()), + 10 < renderWasConcurrent) ) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -11214,14 +11300,14 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { workInProgressRootDidSkipSuspendedSiblings, 2, renderStartTime, - JSCompiler_inline_result + exitStatus ), - exitStatus + renderWasConcurrent ); break a; } commitRootWhenReady( - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -11233,7 +11319,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { workInProgressRootDidSkipSuspendedSiblings, 0, renderStartTime, - JSCompiler_inline_result + exitStatus ); } } @@ -11264,11 +11350,8 @@ function commitRootWhenReady( completedRenderStartTime, completedRenderEndTime ) { - didSkipSuspendedSiblings = finishedWork.subtreeFlags; - if ( - didSkipSuspendedSiblings & 8192 || - 16785408 === (didSkipSuspendedSiblings & 16785408) - ) + var subtreeFlags = finishedWork.subtreeFlags; + if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop$1 }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -11290,7 +11373,7 @@ function commitRootWhenReady( completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings); return; } commitRoot( @@ -11340,19 +11423,22 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didAttemptEntireTree +) { 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; + didAttemptEntireTree && (root.warmLanes |= suspendedLanes); + didAttemptEntireTree = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$6 = 31 - clz32(lanes), + lane = 1 << index$6; + didAttemptEntireTree[index$6] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11382,80 +11468,90 @@ function resetWorkInProgressStack() { } function finalizeRender(lanes, finalizationTime) { if (0 !== (lanes & 3) || 0 !== (lanes & 60)) - 0 <= blockingUpdateTime && - blockingUpdateTime < finalizationTime && - (blockingUpdateTime = finalizationTime), - 0 <= blockingEventTime && - blockingEventTime < finalizationTime && - (blockingEventTime = finalizationTime); - 0 !== (lanes & 4194176) && - (0 <= transitionStartTime && - transitionStartTime < finalizationTime && - (transitionStartTime = finalizationTime), - 0 <= transitionUpdateTime && - transitionUpdateTime < finalizationTime && - (transitionUpdateTime = finalizationTime), - 0 <= transitionEventTime && - transitionEventTime < finalizationTime && - (transitionEventTime = finalizationTime)); + blockingClampTime = finalizationTime; + 0 !== (lanes & 4194176) && (transitionClampTime = finalizationTime); } function prepareFreshStack(root, lanes) { renderStartTime = now(); finalizeRender(workInProgressRootRenderLanes, renderStartTime); if (0 !== (lanes & 3) || 0 !== (lanes & 60)) { - var updateTime = blockingUpdateTime, - eventTime = blockingEventTime, + var updateTime = + 0 <= blockingUpdateTime && blockingUpdateTime < blockingClampTime + ? blockingClampTime + : blockingUpdateTime, + eventTime = + 0 <= blockingEventTime && blockingEventTime < blockingClampTime + ? blockingClampTime + : blockingEventTime, eventType = blockingEventType, + eventIsRepeat = blockingEventIsRepeat, renderStartTime$jscomp$0 = renderStartTime; supportsUserTiming && - ((reusableComponentDevToolDetails.track = "Blocking"), + ((reusableLaneDevToolDetails.track = "Blocking"), 0 < eventTime && null !== eventType && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = eventTime), - (reusableComponentOptions.end = + ((reusableLaneDevToolDetails.color = eventIsRepeat + ? "secondary-light" + : "warning"), + (reusableLaneOptions.start = eventTime), + (reusableLaneOptions.end = 0 < updateTime ? updateTime : renderStartTime$jscomp$0), - performance.measure(eventType, reusableComponentOptions)), + performance.measure( + eventIsRepeat ? "" : "Event: " + eventType, + reusableLaneOptions + )), 0 < updateTime && - ((reusableComponentDevToolDetails.color = "primary-light"), - (reusableComponentOptions.start = updateTime), - (reusableComponentOptions.end = renderStartTime$jscomp$0), - performance.measure("Blocked", reusableComponentOptions))); + ((reusableLaneDevToolDetails.color = "primary-light"), + (reusableLaneOptions.start = updateTime), + (reusableLaneOptions.end = renderStartTime$jscomp$0), + performance.measure("Blocked", reusableLaneOptions))); blockingUpdateTime = -1.1; } if (0 !== (lanes & 4194176)) { - updateTime = transitionStartTime; - eventTime = transitionUpdateTime; - eventType = transitionEventTime; - renderStartTime$jscomp$0 = transitionEventType; + updateTime = + 0 <= transitionStartTime && transitionStartTime < transitionClampTime + ? transitionClampTime + : transitionStartTime; + eventTime = + 0 <= transitionUpdateTime && transitionUpdateTime < transitionClampTime + ? transitionClampTime + : transitionUpdateTime; + eventType = + 0 <= transitionEventTime && transitionEventTime < transitionClampTime + ? transitionClampTime + : transitionEventTime; + eventIsRepeat = transitionEventType; + renderStartTime$jscomp$0 = transitionEventIsRepeat; var renderStartTime$jscomp$1 = renderStartTime; supportsUserTiming && - ((reusableComponentDevToolDetails.track = "Transition"), + ((reusableLaneDevToolDetails.track = "Transition"), 0 < eventType && - null !== renderStartTime$jscomp$0 && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = eventType), - (reusableComponentOptions.end = + null !== eventIsRepeat && + ((reusableLaneDevToolDetails.color = renderStartTime$jscomp$0 + ? "secondary-light" + : "warning"), + (reusableLaneOptions.start = eventType), + (reusableLaneOptions.end = 0 < updateTime ? updateTime : 0 < eventTime ? eventTime : renderStartTime$jscomp$1), performance.measure( - renderStartTime$jscomp$0, - reusableComponentOptions + renderStartTime$jscomp$0 ? "" : "Event: " + eventIsRepeat, + reusableLaneOptions )), 0 < updateTime && - ((reusableComponentDevToolDetails.color = "primary-dark"), - (reusableComponentOptions.start = updateTime), - (reusableComponentOptions.end = + ((reusableLaneDevToolDetails.color = "primary-dark"), + (reusableLaneOptions.start = updateTime), + (reusableLaneOptions.end = 0 < eventTime ? eventTime : renderStartTime$jscomp$1), - performance.measure("Action", reusableComponentOptions)), + performance.measure("Action", reusableLaneOptions)), 0 < eventTime && - ((reusableComponentDevToolDetails.color = "primary-light"), - (reusableComponentOptions.start = eventTime), - (reusableComponentOptions.end = renderStartTime$jscomp$1), - performance.measure("Blocked", reusableComponentOptions))); + ((reusableLaneDevToolDetails.color = "primary-light"), + (reusableLaneOptions.start = eventTime), + (reusableLaneOptions.end = renderStartTime$jscomp$1), + performance.measure("Blocked", reusableLaneOptions))); transitionUpdateTime = transitionStartTime = -1.1; } root.finishedWork = null; @@ -11471,7 +11567,7 @@ function prepareFreshStack(root, lanes) { workInProgressSuspendedReason = 0; workInProgressThrownValue = null; workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); + workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); workInProgressRootDidAttachPingListener = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -11488,9 +11584,9 @@ function prepareFreshStack(root, lanes) { if (0 !== eventTime) for (root = root.entanglements, eventTime &= lanes; 0 < eventTime; ) (eventType = 31 - clz32(eventTime)), - (renderStartTime$jscomp$0 = 1 << eventType), + (eventIsRepeat = 1 << eventType), (lanes |= root[eventType]), - (eventTime &= ~renderStartTime$jscomp$0); + (eventTime &= ~eventIsRepeat); entangledRenderLanes = lanes; finishQueueingConcurrentUpdates(); return updateTime; @@ -11500,12 +11596,7 @@ function handleThrow(root, thrownValue) { ReactSharedInternals.H = ContextOnlyDispatcher; thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), - (workInProgressSuspendedReason = - shouldRemainOnPreviousScreen() && - 0 === (workInProgressRootSkippedLanes & 134217727) && - 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) - ? 2 - : 3)) + (workInProgressSuspendedReason = 3)) : thrownValue === SuspenseyCommitException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = 4)) @@ -11528,21 +11619,6 @@ function handleThrow(root, thrownValue) { : erroredWork.mode & 2 && stopProfilerTimerIfRunningAndRecordDuration(erroredWork); } -function shouldRemainOnPreviousScreen() { - var handler = suspenseHandlerStackCursor.current; - return null === handler - ? !0 - : (workInProgressRootRenderLanes & 4194176) === - workInProgressRootRenderLanes - ? null === shellBoundary - ? !0 - : !1 - : (workInProgressRootRenderLanes & 62914560) === - workInProgressRootRenderLanes || - 0 !== (workInProgressRootRenderLanes & 536870912) - ? handler === shellBoundary - : !1; -} function pushDispatcher() { var prevDispatcher = ReactSharedInternals.H; ReactSharedInternals.H = ContextOnlyDispatcher; @@ -11555,13 +11631,19 @@ function pushAsyncDispatcher() { } function renderDidSuspendDelayIfPossible() { workInProgressRootExitStatus = 4; + workInProgressRootDidSkipSuspendedSiblings || + ((workInProgressRootRenderLanes & 4194176) !== + workInProgressRootRenderLanes && + null !== suspenseHandlerStackCursor.current) || + (workInProgressRootIsPrerendering = !0); (0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) || null === workInProgressRoot || markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); } function queueConcurrentError(error) { @@ -11569,7 +11651,7 @@ function queueConcurrentError(error) { ? (workInProgressRootConcurrentErrors = [error]) : workInProgressRootConcurrentErrors.push(error); } -function renderRootSync(root, lanes) { +function renderRootSync(root, lanes, shouldYieldForPrerendering) { var prevExecutionContext = executionContext; executionContext |= 2; var prevDispatcher = pushDispatcher(), @@ -11605,6 +11687,13 @@ function renderRootSync(root, lanes) { workInProgressSuspendedReason = 0; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + if ( + shouldYieldForPrerendering && + workInProgressRootIsPrerendering + ) { + memoizedUpdaters = 0; + break a; + } break; default: (reason = workInProgressSuspendedReason), @@ -11616,8 +11705,8 @@ function renderRootSync(root, lanes) { workLoopSync(); memoizedUpdaters = workInProgressRootExitStatus; break; - } catch (thrownValue$177) { - handleThrow(root, thrownValue$177); + } catch (thrownValue$184) { + handleThrow(root, thrownValue$184); } while (1); lanes && root.shellSuspendCounter++; @@ -11650,7 +11739,8 @@ function renderRootConcurrent(root, lanes) { workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + 500; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } else + workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) @@ -11735,8 +11825,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$179) { - handleThrow(root, thrownValue$179); + } catch (thrownValue$186) { + handleThrow(root, thrownValue$186); } while (1); lastContextDependency = currentlyRenderingFiber = null; @@ -11805,7 +11895,12 @@ function replaySuspendedUnitOfWork(unitOfWork) { unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } -function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { +function throwAndUnwindWorkLoop( + root, + unitOfWork, + thrownValue, + suspendedReason +) { lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; @@ -11839,9 +11934,23 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - unitOfWork.flags & 32768 - ? unwindUnitOfWork(unitOfWork, !0) - : completeUnitOfWork(unitOfWork); + if (unitOfWork.flags & 32768) { + if (isHydrating || 1 === suspendedReason) root = !0; + else if ( + workInProgressRootIsPrerendering || + 0 !== (workInProgressRootRenderLanes & 536870912) + ) + root = !1; + else if ( + ((workInProgressRootDidSkipSuspendedSiblings = root = !0), + 2 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason) + ) + (suspendedReason = suspenseHandlerStackCursor.current), + null !== suspendedReason && + 13 === suspendedReason.tag && + (suspendedReason.flags |= 16384); + unwindUnitOfWork(unitOfWork, root); + } else completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; @@ -11953,39 +12062,42 @@ function commitRootImpl( do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - updatedLanes = root.finishedWork; + var finishedWork = root.finishedWork; didIncludeRenderPhaseUpdate = root.finishedLanes; - reusableComponentDevToolDetails.track = getGroupNameOfHighestPriorityLane( + reusableLaneDevToolDetails.track = getGroupNameOfHighestPriorityLane( didIncludeRenderPhaseUpdate ); logRenderPhase(completedRenderStartTime, completedRenderEndTime); - if (null === updatedLanes) return null; + if (null === finishedWork) return null; root.finishedWork = null; root.finishedLanes = 0; - if (updatedLanes === root.current) throw Error(formatProdErrorMessage(177)); + if (finishedWork === root.current) throw Error(formatProdErrorMessage(177)); root.callbackNode = null; root.callbackPriority = 0; root.cancelPendingCommit = null; - completedRenderStartTime = updatedLanes.lanes | updatedLanes.childLanes; + completedRenderStartTime = finishedWork.lanes | finishedWork.childLanes; completedRenderStartTime |= concurrentlyUpdatedLanes; markRootFinished( root, didIncludeRenderPhaseUpdate, completedRenderStartTime, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === updatedLanes.actualDuration && - 0 === (updatedLanes.subtreeFlags & 10256) && - 0 === (updatedLanes.flags & 10256)) || + (0 === finishedWork.actualDuration && + 0 === (finishedWork.subtreeFlags & 10256) && + 0 === (finishedWork.flags & 10256)) || rootDoesHavePassiveEffects || ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = completedRenderStartTime), (pendingPassiveEffectsRenderEndTime = completedRenderEndTime), (pendingPassiveTransitions = transitions), scheduleCallback$1(NormalPriority$1, function () { + schedulerEvent = window.event; flushPassiveEffects(!0); return null; })); @@ -11994,29 +12106,32 @@ function commitRootImpl( ? logSuspendedCommitPhase(completedRenderEndTime, commitStartTime) : 2 === suspendedCommitReason && logSuspenseThrottlePhase(completedRenderEndTime, commitStartTime); - transitions = 0 !== (updatedLanes.flags & 15990); - 0 !== (updatedLanes.subtreeFlags & 15990) || transitions + transitions = 0 !== (finishedWork.flags & 15990); + 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), (spawnedLane = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = 2), - (suspendedCommitReason = executionContext), + (updatedLanes = executionContext), (executionContext |= 4), - commitBeforeMutationEffects(root, updatedLanes), - commitMutationEffects(root, updatedLanes, didIncludeRenderPhaseUpdate), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate), restoreSelection(selectionInformation, root.containerInfo), (_enabled = !!eventsEnabled), (selectionInformation = eventsEnabled = null), - (root.current = updatedLanes), - commitLayoutEffects(updatedLanes, root, didIncludeRenderPhaseUpdate), + (root.current = finishedWork), + commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), requestPaint(), - (executionContext = suspendedCommitReason), + (executionContext = updatedLanes), (ReactDOMSharedInternals.p = spawnedLane), (ReactSharedInternals.T = transitions)) - : (root.current = updatedLanes); + : (root.current = finishedWork); commitEndTime = now(); - logCommitPhase(commitStartTime, commitEndTime); - (transitions = rootDoesHavePassiveEffects) + logCommitPhase( + 0 === suspendedCommitReason ? completedRenderEndTime : commitStartTime, + commitEndTime + ); + (suspendedCommitReason = rootDoesHavePassiveEffects) ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) @@ -12024,18 +12139,18 @@ function commitRootImpl( completedRenderStartTime = root.pendingLanes; 0 === completedRenderStartTime && (legacyErrorBoundariesThatAlreadyFailed = null); - onCommitRoot(updatedLanes.stateNode, renderPriorityLevel); + onCommitRoot(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( - renderPriorityLevel = root.onRecoverableError, updatedLanes = 0; - updatedLanes < recoverableErrors.length; - updatedLanes++ + renderPriorityLevel = root.onRecoverableError, completedRenderEndTime = 0; + completedRenderEndTime < recoverableErrors.length; + completedRenderEndTime++ ) - (completedRenderStartTime = recoverableErrors[updatedLanes]), - renderPriorityLevel(completedRenderStartTime.value, { - componentStack: completedRenderStartTime.stack + (finishedWork = recoverableErrors[completedRenderEndTime]), + renderPriorityLevel(finishedWork.value, { + componentStack: finishedWork.stack }); 0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects(); completedRenderStartTime = root.pendingLanes; @@ -12046,7 +12161,7 @@ function commitRootImpl( ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - transitions || finalizeRender(didIncludeRenderPhaseUpdate, now$1()); + suspendedCommitReason || finalizeRender(didIncludeRenderPhaseUpdate, now$1()); flushSyncWorkAcrossRoots_impl(0, !1); return null; } @@ -12058,7 +12173,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects(wasDelayedCommit) { if (null !== rootWithPendingPassiveEffects) { - var root$183 = rootWithPendingPassiveEffects, + var root$190 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -12078,18 +12193,22 @@ function flushPassiveEffects(wasDelayedCommit) { pendingPassiveEffectsLanes = 0; if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(331)); - reusableComponentDevToolDetails.track = + reusableLaneDevToolDetails.track = getGroupNameOfHighestPriorityLane(lanes); var passiveEffectStartTime = 0; passiveEffectStartTime = now$1(); var startTime = commitEndTime, endTime = passiveEffectStartTime; + wasDelayedCommit = !!wasDelayedCommit; supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-light"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Waiting for Paint", reusableComponentOptions)); - startTime = executionContext; + ((reusableLaneDevToolDetails.color = "secondary-light"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure( + wasDelayedCommit ? "Waiting for Paint" : "", + reusableLaneOptions + )); + wasDelayedCommit = executionContext; executionContext |= 4; var finishedWork = renderPriority.current; resetComponentEffectTimers(); @@ -12104,18 +12223,14 @@ function flushPassiveEffects(wasDelayedCommit) { transitions, finishedWork ); - executionContext = startTime; + executionContext = wasDelayedCommit; var passiveEffectsEndTime = now$1(); - wasDelayedCommit && - ((wasDelayedCommit = passiveEffectStartTime), - supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = wasDelayedCommit), - (reusableComponentOptions.end = passiveEffectsEndTime), - performance.measure( - "Remaining Effects", - reusableComponentOptions - ))); + finishedWork$jscomp$0 = passiveEffectStartTime; + supportsUserTiming && + ((reusableLaneDevToolDetails.color = "secondary-dark"), + (reusableLaneOptions.start = finishedWork$jscomp$0), + (reusableLaneOptions.end = passiveEffectsEndTime), + performance.measure("Remaining Effects", reusableLaneOptions)); finalizeRender(lanes, passiveEffectsEndTime); flushSyncWorkAcrossRoots_impl(0, !1); if ( @@ -12134,7 +12249,7 @@ function flushPassiveEffects(wasDelayedCommit) { } finally { (ReactDOMSharedInternals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$183, remainingLanes); + releaseRootPooledCache(root$190, remainingLanes); } } return !1; @@ -12284,14 +12399,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$185 = firstScheduledRoot; null !== root$185; ) { + for (var root$192 = firstScheduledRoot; null !== root$192; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$185.pendingLanes; + var pendingLanes = root$192.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$185.suspendedLanes, - pingedLanes = root$185.pingedLanes; + var suspendedLanes = root$192.suspendedLanes, + pingedLanes = root$192.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -12305,24 +12420,25 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$185, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$192, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$185, - root$185 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$192, + root$192 === workInProgressRoot ? JSCompiler_inline_result : 0 )), 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$185, JSCompiler_inline_result) || + checkIfRootIsPrerendering(root$192, JSCompiler_inline_result) || ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$185, JSCompiler_inline_result)); - root$185 = root$185.next; + performSyncWorkOnRoot(root$192, JSCompiler_inline_result)); + root$192 = root$192.next; } } while (didPerformSomeWork); isFlushingWork = !1; } } function processRootScheduleInMicrotask() { + schedulerEvent = window.event; mightHavePendingSyncWork = didScheduleMicrotask = !1; var syncTransitionLanes = 0; 0 !== currentEventTransitionLane && @@ -12357,12 +12473,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$4 = 31 - clz32(lanes), - lane = 1 << index$4, - expirationTime = expirationTimes[index$4]; + var index$5 = 31 - clz32(lanes), + 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); lanes &= ~lane; } @@ -12385,7 +12501,10 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { (root.callbackNode = null), (root.callbackPriority = 0) ); - if (0 !== (suspendedLanes & 3)) + if ( + 0 !== (suspendedLanes & 3) && + !checkIfRootIsPrerendering(root, suspendedLanes) + ) return ( null !== pingedLanes && null !== pingedLanes && @@ -12419,6 +12538,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { } function performWorkOnRootViaSchedulerTask(root, didTimeout) { nestedUpdateScheduled = currentUpdateIsNested = !1; + schedulerEvent = window.event; var originalCallbackNode = root.callbackNode; if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null; @@ -12547,20 +12667,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1496 = 0; - i$jscomp$inline_1496 < simpleEventPluginEvents.length; - i$jscomp$inline_1496++ + var i$jscomp$inline_1514 = 0; + i$jscomp$inline_1514 < simpleEventPluginEvents.length; + i$jscomp$inline_1514++ ) { - var eventName$jscomp$inline_1497 = - simpleEventPluginEvents[i$jscomp$inline_1496], - domEventName$jscomp$inline_1498 = - eventName$jscomp$inline_1497.toLowerCase(), - capitalizedEvent$jscomp$inline_1499 = - eventName$jscomp$inline_1497[0].toUpperCase() + - eventName$jscomp$inline_1497.slice(1); + var eventName$jscomp$inline_1515 = + simpleEventPluginEvents[i$jscomp$inline_1514], + domEventName$jscomp$inline_1516 = + eventName$jscomp$inline_1515.toLowerCase(), + capitalizedEvent$jscomp$inline_1517 = + eventName$jscomp$inline_1515[0].toUpperCase() + + eventName$jscomp$inline_1515.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1498, - "on" + capitalizedEvent$jscomp$inline_1499 + domEventName$jscomp$inline_1516, + "on" + capitalizedEvent$jscomp$inline_1517 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13743,34 +13863,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$199 = props[hasSrc]; - if (null != propValue$199) + var propValue$206 = props[hasSrc]; + if (null != propValue$206) switch (hasSrc) { case "name": - hasSrcSet = propValue$199; + hasSrcSet = propValue$206; break; case "type": - propValue = propValue$199; + propValue = propValue$206; break; case "checked": - checked = propValue$199; + checked = propValue$206; break; case "defaultChecked": - defaultChecked = propValue$199; + defaultChecked = propValue$206; break; case "value": - propKey = propValue$199; + propKey = propValue$206; break; case "defaultValue": - defaultValue = propValue$199; + defaultValue = propValue$206; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$199) + if (null != propValue$206) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$199, props, null); + setProp(domElement, tag, hasSrc, propValue$206, props, null); } } initInput( @@ -13907,14 +14027,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$199 in props) - props.hasOwnProperty(propValue$199) && - ((hasSrc = props[propValue$199]), + for (propValue$206 in props) + props.hasOwnProperty(propValue$206) && + ((hasSrc = props[propValue$206]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$199, + propValue$206, hasSrc, props, void 0 @@ -13962,14 +14082,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$216 in nextProps) { - var propKey = nextProps[propKey$216]; - lastProp = lastProps[propKey$216]; + for (var propKey$223 in nextProps) { + var propKey = nextProps[propKey$223]; + lastProp = lastProps[propKey$223]; if ( - nextProps.hasOwnProperty(propKey$216) && + nextProps.hasOwnProperty(propKey$223) && (null != propKey || null != lastProp) ) - switch (propKey$216) { + switch (propKey$223) { case "type": type = propKey; break; @@ -13998,7 +14118,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$216, + propKey$223, propKey, nextProps, lastProp @@ -14017,7 +14137,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$216 = null; + propKey = value = defaultValue = propKey$223 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -14048,7 +14168,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$216 = type; + propKey$223 = type; break; case "defaultValue": defaultValue = type; @@ -14069,15 +14189,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$216 - ? updateOptions(domElement, !!lastProps, propKey$216, !1) + null != propKey$223 + ? updateOptions(domElement, !!lastProps, propKey$223, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$216 = null; + propKey = propKey$223 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -14101,7 +14221,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$216 = name; + propKey$223 = name; break; case "defaultValue": propKey = name; @@ -14115,17 +14235,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$216, propKey); + updateTextarea(domElement, propKey$223, propKey); return; case "option": - for (var propKey$232 in lastProps) + for (var propKey$239 in lastProps) if ( - ((propKey$216 = lastProps[propKey$232]), - lastProps.hasOwnProperty(propKey$232) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$232)) + ((propKey$223 = lastProps[propKey$239]), + lastProps.hasOwnProperty(propKey$239) && + null != propKey$223 && + !nextProps.hasOwnProperty(propKey$239)) ) - switch (propKey$232) { + switch (propKey$239) { case "selected": domElement.selected = !1; break; @@ -14133,33 +14253,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$232, + propKey$239, null, nextProps, - propKey$216 + propKey$223 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$216 = nextProps[lastDefaultValue]), + ((propKey$223 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$216 !== propKey && - (null != propKey$216 || null != propKey)) + propKey$223 !== propKey && + (null != propKey$223 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$216 && - "function" !== typeof propKey$216 && - "symbol" !== typeof propKey$216; + propKey$223 && + "function" !== typeof propKey$223 && + "symbol" !== typeof propKey$223; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$216, + propKey$223, nextProps, propKey ); @@ -14180,24 +14300,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$237 in lastProps) - (propKey$216 = lastProps[propKey$237]), - lastProps.hasOwnProperty(propKey$237) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$237) && - setProp(domElement, tag, propKey$237, null, nextProps, propKey$216); + for (var propKey$244 in lastProps) + (propKey$223 = lastProps[propKey$244]), + lastProps.hasOwnProperty(propKey$244) && + null != propKey$223 && + !nextProps.hasOwnProperty(propKey$244) && + setProp(domElement, tag, propKey$244, null, nextProps, propKey$223); for (checked in nextProps) if ( - ((propKey$216 = nextProps[checked]), + ((propKey$223 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$216 !== propKey && - (null != propKey$216 || null != propKey)) + propKey$223 !== propKey && + (null != propKey$223 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$216) + if (null != propKey$223) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -14205,7 +14325,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$216, + propKey$223, nextProps, propKey ); @@ -14213,49 +14333,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$242 in lastProps) - (propKey$216 = lastProps[propKey$242]), - lastProps.hasOwnProperty(propKey$242) && - void 0 !== propKey$216 && - !nextProps.hasOwnProperty(propKey$242) && + for (var propKey$249 in lastProps) + (propKey$223 = lastProps[propKey$249]), + lastProps.hasOwnProperty(propKey$249) && + void 0 !== propKey$223 && + !nextProps.hasOwnProperty(propKey$249) && setPropOnCustomElement( domElement, tag, - propKey$242, + propKey$249, void 0, nextProps, - propKey$216 + propKey$223 ); for (defaultChecked in nextProps) - (propKey$216 = nextProps[defaultChecked]), + (propKey$223 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$216 === propKey || - (void 0 === propKey$216 && void 0 === propKey) || + propKey$223 === propKey || + (void 0 === propKey$223 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$216, + propKey$223, nextProps, propKey ); return; } } - for (var propKey$247 in lastProps) - (propKey$216 = lastProps[propKey$247]), - lastProps.hasOwnProperty(propKey$247) && - null != propKey$216 && - !nextProps.hasOwnProperty(propKey$247) && - setProp(domElement, tag, propKey$247, null, nextProps, propKey$216); + for (var propKey$254 in lastProps) + (propKey$223 = lastProps[propKey$254]), + lastProps.hasOwnProperty(propKey$254) && + null != propKey$223 && + !nextProps.hasOwnProperty(propKey$254) && + setProp(domElement, tag, propKey$254, null, nextProps, propKey$223); for (lastProp in nextProps) - (propKey$216 = nextProps[lastProp]), + (propKey$223 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$216 === propKey || - (null == propKey$216 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$216, nextProps, propKey); + propKey$223 === propKey || + (null == propKey$223 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$223, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -14311,13 +14431,14 @@ function shouldAttemptEagerTransition() { currentPopstateTransitionEvent = null; return !1; } +var schedulerEvent = void 0; function resolveEventType() { var event = window.event; - return event ? event.type : null; + return event && event !== schedulerEvent ? event.type : null; } function resolveEventTimeStamp() { var event = window.event; - return event ? event.timeStamp : -1.1; + return event && event !== schedulerEvent ? event.timeStamp : -1.1; } var scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0, cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0, @@ -14808,26 +14929,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$255 = getResourcesFromRoot( + var styles$262 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$256 = styles$255.get(type); - resource$256 || + resource$263 = styles$262.get(type); + resource$263 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$256 = { + (resource$263 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$255.set(type, resource$256), - (styles$255 = JSCompiler_inline_result.querySelector( + styles$262.set(type, resource$263), + (styles$262 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$255._p && - ((resource$256.instance = styles$255), - (resource$256.state.loading = 5)), + !styles$262._p && + ((resource$263.instance = styles$262), + (resource$263.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -14840,16 +14961,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$255 || + styles$262 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$256.state + resource$263.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$256; + return resource$263; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -14946,37 +15067,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$261 = hoistableRoot.querySelector( + var instance$268 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$261) + if (instance$268) return ( (resource.state.loading |= 4), - (resource.instance = instance$261), - markNodeAsHoistable(instance$261), - instance$261 + (resource.instance = instance$268), + markNodeAsHoistable(instance$268), + instance$268 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$261 = ( + instance$268 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$261); - var linkInstance = instance$261; + markNodeAsHoistable(instance$268); + var linkInstance = instance$268; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$261, "link", instance); + setInitialProperties(instance$268, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$261, props.precedence, hoistableRoot); - return (resource.instance = instance$261); + insertStylesheet(instance$268, props.precedence, hoistableRoot); + return (resource.instance = instance$268); case "script": - instance$261 = getScriptKey(props.src); + instance$268 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$261) + getScriptSelectorFromKey(instance$268) )) ) return ( @@ -14985,7 +15106,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$261))) + if ((styleProps = preloadPropsMap.get(instance$268))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -16026,16 +16147,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1743 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1761 = React.version; if ( - "19.0.0-experimental-380f5d67-20241113" !== - isomorphicReactPackageVersion$jscomp$inline_1743 + "19.0.0-experimental-b01722d5-20241114" !== + isomorphicReactPackageVersion$jscomp$inline_1761 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1743, - "19.0.0-experimental-380f5d67-20241113" + isomorphicReactPackageVersion$jscomp$inline_1761, + "19.0.0-experimental-b01722d5-20241114" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16055,25 +16176,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2186 = { +var internals$jscomp$inline_2207 = { bundleType: 0, - version: "19.0.0-experimental-380f5d67-20241113", + version: "19.0.0-experimental-b01722d5-20241114", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-380f5d67-20241113" + reconcilerVersion: "19.0.0-experimental-b01722d5-20241114" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2187 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2208 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2187.isDisabled && - hook$jscomp$inline_2187.supportsFiber + !hook$jscomp$inline_2208.isDisabled && + hook$jscomp$inline_2208.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2187.inject( - internals$jscomp$inline_2186 + (rendererID = hook$jscomp$inline_2208.inject( + internals$jscomp$inline_2207 )), - (injectedHook = hook$jscomp$inline_2187); + (injectedHook = hook$jscomp$inline_2208); } catch (err) {} } function noop() {} @@ -16326,7 +16447,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index 9570978b19606..765a3126fb102 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -9295,5 +9295,5 @@ '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-experimental-380f5d67-20241113"; + exports.version = "19.0.0-experimental-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js index 98c54d40170f6..5223004f47d7c 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js @@ -6060,4 +6060,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-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js index d795fc78ac91e..26bf4b9758e76 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js @@ -9295,5 +9295,5 @@ '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 "renderToPipeableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-experimental-380f5d67-20241113"; + exports.version = "19.0.0-experimental-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js index 88d04e699c09c..cab31bf69da87 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js @@ -6152,4 +6152,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 "renderToPipeableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js index 65f548ac57387..466d1f4313429 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js @@ -8193,11 +8193,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-b01722d5-20241114" !== 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-experimental-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react-experimental"), @@ -9977,5 +9977,5 @@ startWork(request); }); }; - exports.version = "19.0.0-experimental-380f5d67-20241113"; + exports.version = "19.0.0-experimental-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js index 00130d4f609ac..c909fa605c0c6 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js @@ -6589,12 +6589,12 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-b01722d5-20241114" !== isomorphicReactPackageVersion) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion, - "19.0.0-experimental-380f5d67-20241113" + "19.0.0-experimental-b01722d5-20241114" ) ); } @@ -6849,4 +6849,4 @@ exports.resumeAndPrerender = function (children, postponedState, options) { startWork(request); }); }; -exports.version = "19.0.0-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js index 4afc5546a1f58..7268280b43681 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js @@ -6071,13 +6071,13 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) { } var isomorphicReactPackageVersion$jscomp$inline_779 = React.version; if ( - "19.0.0-experimental-380f5d67-20241113" !== + "19.0.0-experimental-b01722d5-20241114" !== isomorphicReactPackageVersion$jscomp$inline_779 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_779 + - "\n - react-dom: 19.0.0-experimental-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -6168,4 +6168,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js index 824ed12f440bb..451b137ee84a8 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js @@ -8216,11 +8216,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-b01722d5-20241114" !== 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-experimental-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react-experimental"), @@ -10007,5 +10007,5 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; - exports.version = "19.0.0-experimental-380f5d67-20241113"; + exports.version = "19.0.0-experimental-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js index 1dfe5f38366d4..d266f1a5d0e5c 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js @@ -6696,11 +6696,11 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-b01722d5-20241114" !== 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-experimental-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6965,4 +6965,4 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; -exports.version = "19.0.0-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js index 8611d6e1fc494..7cc9b05a42547 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js @@ -8080,11 +8080,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-b01722d5-20241114" !== 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-experimental-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); } function createDrainHandler(destination, request) { @@ -9857,5 +9857,5 @@ } }; }; - exports.version = "19.0.0-experimental-380f5d67-20241113"; + exports.version = "19.0.0-experimental-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js index b9d5291efd970..6c0dd533479bd 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js @@ -6575,11 +6575,11 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-b01722d5-20241114" !== 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-experimental-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6830,4 +6830,4 @@ exports.resumeToPipeableStream = function (children, postponedState, options) { } }; }; -exports.version = "19.0.0-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js index d712bbb579d2d..1a43ca33ff73f 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js @@ -1035,28 +1035,40 @@ var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes, + warmLanes = root.warmLanes; + root = 0 !== root.finishedLanes; 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)) + : root || + ((warmLanes = nonIdlePendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : root || + ((warmLanes = pendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (warmLanes = wipLanes & -wipLanes), + suspendedLanes >= warmLanes || + (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) ? wipLanes : nextLanes; } @@ -1141,7 +1153,9 @@ root, finishedLanes, remainingLanes, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; @@ -1152,17 +1166,17 @@ root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - finishedLanes = root.entanglements; - var expirationTimes = root.expirationTimes, + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index = 31 - clz32(remainingLanes); - previouslyPendingLanes = 1 << index; - finishedLanes[index] = 0; + var index = 31 - clz32(remainingLanes), + lane = 1 << index; + entanglements[index] = 0; expirationTimes[index] = -1; var hiddenUpdatesForLane = hiddenUpdates[index]; if (null !== hiddenUpdatesForLane) @@ -1174,9 +1188,14 @@ var update = hiddenUpdatesForLane[index]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~previouslyPendingLanes; + remainingLanes &= ~lane; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -3820,31 +3839,31 @@ } function logRenderPhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "primary-dark"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Render", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "primary-dark"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Render", reusableLaneOptions)); } function logSuspenseThrottlePhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-light"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Throttled", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "secondary-light"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Throttled", reusableLaneOptions)); } function logSuspendedCommitPhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-light"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Suspended", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "secondary-light"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Suspended", reusableLaneOptions)); } function logCommitPhase(startTime, endTime) { supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), - performance.measure("Commit", reusableComponentOptions)); + ((reusableLaneDevToolDetails.color = "secondary-dark"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), + performance.measure("Commit", reusableLaneOptions)); } function finishQueueingConcurrentUpdates() { for ( @@ -4070,14 +4089,24 @@ JSCompiler_temp ? 0 > blockingUpdateTime && ((blockingUpdateTime = now()), - (blockingEventTime = resolveEventTimeStamp()), - (blockingEventType = resolveEventType())) + (lane = resolveEventTimeStamp()), + (JSCompiler_temp = resolveEventType()), + (blockingEventIsRepeat = + lane === blockingEventTime && + JSCompiler_temp === blockingEventType), + (blockingEventTime = lane), + (blockingEventType = JSCompiler_temp)) : 0 !== (lane & 4194176) && 0 > transitionUpdateTime && ((transitionUpdateTime = now()), 0 > transitionStartTime && - ((transitionEventTime = resolveEventTimeStamp()), - (transitionEventType = resolveEventType()))); + ((lane = resolveEventTimeStamp()), + (JSCompiler_temp = resolveEventType()), + (transitionEventIsRepeat = + lane === transitionEventTime && + JSCompiler_temp === transitionEventType), + (transitionEventTime = lane), + (transitionEventType = JSCompiler_temp))); } function pushNestedEffectDurations() { var prevEffectDuration = profilerEffectDuration; @@ -8949,33 +8978,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2329; - var JSCompiler_object_inline_stack_2328 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2343; + var JSCompiler_object_inline_stack_2342 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2326 = !1; + var JSCompiler_object_inline_message_2340 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2329 = didSuspend) || - (JSCompiler_object_inline_componentStack_2329 = + (JSCompiler_object_inline_componentStack_2343 = didSuspend) || + (JSCompiler_object_inline_componentStack_2343 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2329 && - ((JSCompiler_object_inline_message_2326 = !0), + JSCompiler_object_inline_componentStack_2343 && + ((JSCompiler_object_inline_message_2340 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2329 = + JSCompiler_object_inline_componentStack_2343 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2326 + JSCompiler_object_inline_message_2340 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2327 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2341 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2327)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2341)) { c: { - var instance = JSCompiler_object_inline_digest_2327; + var instance = JSCompiler_object_inline_digest_2341; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -9016,19 +9045,19 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2327 + JSCompiler_object_inline_digest_2341 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2327 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2341 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2327 && - ((JSCompiler_object_inline_digest_2327 = - JSCompiler_object_inline_digest_2327.dehydrated), - null !== JSCompiler_object_inline_digest_2327) + null !== JSCompiler_object_inline_digest_2341 && + ((JSCompiler_object_inline_digest_2341 = + JSCompiler_object_inline_digest_2341.dehydrated), + null !== JSCompiler_object_inline_digest_2341) ) return ( - JSCompiler_object_inline_digest_2327.data === + JSCompiler_object_inline_digest_2341.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -9036,68 +9065,68 @@ ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2327 = - JSCompiler_object_inline_stack_2328.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2328.fallback; - if (JSCompiler_object_inline_message_2326) + JSCompiler_object_inline_digest_2341 = + JSCompiler_object_inline_stack_2342.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2342.fallback; + if (JSCompiler_object_inline_message_2340) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2328 = + (JSCompiler_object_inline_stack_2342 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2327, + JSCompiler_object_inline_digest_2341, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2326 = workInProgress.child), - (JSCompiler_object_inline_message_2326.memoizedState = + (JSCompiler_object_inline_message_2340 = workInProgress.child), + (JSCompiler_object_inline_message_2340.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2326.childLanes = + (JSCompiler_object_inline_message_2340.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2329, + JSCompiler_object_inline_componentStack_2343, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2328 + JSCompiler_object_inline_stack_2342 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2328.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2342.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2328 = + (JSCompiler_object_inline_stack_2342 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2327, + JSCompiler_object_inline_digest_2341, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2326 = workInProgress.child), - (JSCompiler_object_inline_message_2326.memoizedState = + (JSCompiler_object_inline_message_2340 = workInProgress.child), + (JSCompiler_object_inline_message_2340.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2326.childLanes = + (JSCompiler_object_inline_message_2340.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2329, + JSCompiler_object_inline_componentStack_2343, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2328 + JSCompiler_object_inline_stack_2342 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2327 + JSCompiler_object_inline_digest_2341 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2327 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2327) + ((JSCompiler_object_inline_digest_2341 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2341) ) { if (didSuspend) workInProgress.flags & 256 @@ -9114,95 +9143,95 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2326 = - JSCompiler_object_inline_stack_2328.fallback), - (JSCompiler_object_inline_digest_2327 = workInProgress.mode), - (JSCompiler_object_inline_stack_2328 = + (JSCompiler_object_inline_message_2340 = + JSCompiler_object_inline_stack_2342.fallback), + (JSCompiler_object_inline_digest_2341 = workInProgress.mode), + (JSCompiler_object_inline_stack_2342 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2328.children + children: JSCompiler_object_inline_stack_2342.children }, - JSCompiler_object_inline_digest_2327 + JSCompiler_object_inline_digest_2341 )), - (JSCompiler_object_inline_message_2326 = + (JSCompiler_object_inline_message_2340 = createFiberFromFragment( - JSCompiler_object_inline_message_2326, - JSCompiler_object_inline_digest_2327, + JSCompiler_object_inline_message_2340, + JSCompiler_object_inline_digest_2341, renderLanes, null )), - (JSCompiler_object_inline_message_2326.flags |= 2), - (JSCompiler_object_inline_stack_2328.return = workInProgress), - (JSCompiler_object_inline_message_2326.return = workInProgress), - (JSCompiler_object_inline_stack_2328.sibling = - JSCompiler_object_inline_message_2326), - (workInProgress.child = JSCompiler_object_inline_stack_2328), + (JSCompiler_object_inline_message_2340.flags |= 2), + (JSCompiler_object_inline_stack_2342.return = workInProgress), + (JSCompiler_object_inline_message_2340.return = workInProgress), + (JSCompiler_object_inline_stack_2342.sibling = + JSCompiler_object_inline_message_2340), + (workInProgress.child = JSCompiler_object_inline_stack_2342), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2328 = workInProgress.child), - (JSCompiler_object_inline_stack_2328.memoizedState = + (JSCompiler_object_inline_stack_2342 = workInProgress.child), + (JSCompiler_object_inline_stack_2342.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2328.childLanes = + (JSCompiler_object_inline_stack_2342.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2329, + JSCompiler_object_inline_componentStack_2343, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2326)); + (workInProgress = JSCompiler_object_inline_message_2340)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_digest_2327.data === + JSCompiler_object_inline_digest_2341.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_componentStack_2329 = - JSCompiler_object_inline_digest_2327.nextSibling && - JSCompiler_object_inline_digest_2327.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2329) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2329.dgst; - var message = JSCompiler_object_inline_componentStack_2329.msg; - instance = JSCompiler_object_inline_componentStack_2329.stck; + JSCompiler_object_inline_componentStack_2343 = + JSCompiler_object_inline_digest_2341.nextSibling && + JSCompiler_object_inline_digest_2341.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2343) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2343.dgst; + var message = JSCompiler_object_inline_componentStack_2343.msg; + instance = JSCompiler_object_inline_componentStack_2343.stck; var componentStack = - JSCompiler_object_inline_componentStack_2329.cstck; + JSCompiler_object_inline_componentStack_2343.cstck; } - JSCompiler_object_inline_message_2326 = message; - JSCompiler_object_inline_digest_2327 = JSCompiler_temp; - JSCompiler_object_inline_stack_2328 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2329 = + JSCompiler_object_inline_message_2340 = message; + JSCompiler_object_inline_digest_2341 = JSCompiler_temp; + JSCompiler_object_inline_stack_2342 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2343 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2327 && - ((JSCompiler_object_inline_componentStack_2329 = - JSCompiler_object_inline_message_2326 - ? Error(JSCompiler_object_inline_message_2326) + "POSTPONE" !== JSCompiler_object_inline_digest_2341 && + ((JSCompiler_object_inline_componentStack_2343 = + JSCompiler_object_inline_message_2340 + ? Error(JSCompiler_object_inline_message_2340) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." )), - (JSCompiler_object_inline_componentStack_2329.stack = - JSCompiler_object_inline_stack_2328 || ""), - (JSCompiler_object_inline_componentStack_2329.digest = - JSCompiler_object_inline_digest_2327), - (JSCompiler_object_inline_stack_2328 = + (JSCompiler_object_inline_componentStack_2343.stack = + JSCompiler_object_inline_stack_2342 || ""), + (JSCompiler_object_inline_componentStack_2343.digest = + JSCompiler_object_inline_digest_2341), + (JSCompiler_object_inline_stack_2342 = void 0 === JSCompiler_temp ? null : JSCompiler_temp), - (JSCompiler_object_inline_message_2326 = { - value: JSCompiler_object_inline_componentStack_2329, + (JSCompiler_object_inline_message_2340 = { + value: JSCompiler_object_inline_componentStack_2343, source: null, - stack: JSCompiler_object_inline_stack_2328 + stack: JSCompiler_object_inline_stack_2342 }), - "string" === typeof JSCompiler_object_inline_stack_2328 && + "string" === typeof JSCompiler_object_inline_stack_2342 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2329, - JSCompiler_object_inline_message_2326 + JSCompiler_object_inline_componentStack_2343, + JSCompiler_object_inline_message_2340 ), - queueHydrationError(JSCompiler_object_inline_message_2326)); + queueHydrationError(JSCompiler_object_inline_message_2340)); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9216,25 +9245,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2329 = + (JSCompiler_object_inline_componentStack_2343 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2329) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2343) ) { - JSCompiler_object_inline_componentStack_2329 = workInProgressRoot; - if (null !== JSCompiler_object_inline_componentStack_2329) { - JSCompiler_object_inline_stack_2328 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2328 & 42)) - JSCompiler_object_inline_stack_2328 = 1; + JSCompiler_object_inline_componentStack_2343 = workInProgressRoot; + if (null !== JSCompiler_object_inline_componentStack_2343) { + JSCompiler_object_inline_stack_2342 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2342 & 42)) + JSCompiler_object_inline_stack_2342 = 1; else - switch (JSCompiler_object_inline_stack_2328) { + switch (JSCompiler_object_inline_stack_2342) { case 2: - JSCompiler_object_inline_stack_2328 = 1; + JSCompiler_object_inline_stack_2342 = 1; break; case 8: - JSCompiler_object_inline_stack_2328 = 4; + JSCompiler_object_inline_stack_2342 = 4; break; case 32: - JSCompiler_object_inline_stack_2328 = 16; + JSCompiler_object_inline_stack_2342 = 16; break; case 128: case 256: @@ -9255,40 +9284,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2328 = 64; + JSCompiler_object_inline_stack_2342 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2328 = 134217728; + JSCompiler_object_inline_stack_2342 = 134217728; break; default: - JSCompiler_object_inline_stack_2328 = 0; + JSCompiler_object_inline_stack_2342 = 0; } - JSCompiler_object_inline_stack_2328 = + JSCompiler_object_inline_stack_2342 = 0 !== - (JSCompiler_object_inline_stack_2328 & - (JSCompiler_object_inline_componentStack_2329.suspendedLanes | + (JSCompiler_object_inline_stack_2342 & + (JSCompiler_object_inline_componentStack_2343.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2328; + : JSCompiler_object_inline_stack_2342; if ( - 0 !== JSCompiler_object_inline_stack_2328 && - JSCompiler_object_inline_stack_2328 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2342 && + JSCompiler_object_inline_stack_2342 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2328), + ((prevState.retryLane = JSCompiler_object_inline_stack_2342), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2328 + JSCompiler_object_inline_stack_2342 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2329, + JSCompiler_object_inline_componentStack_2343, current, - JSCompiler_object_inline_stack_2328 + JSCompiler_object_inline_stack_2342 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_digest_2327.data === + JSCompiler_object_inline_digest_2341.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9296,7 +9325,7 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2327.data === + JSCompiler_object_inline_digest_2341.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9304,12 +9333,12 @@ null, current )), - (JSCompiler_object_inline_digest_2327._reactRetry = + (JSCompiler_object_inline_digest_2341._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2327.nextSibling + JSCompiler_object_inline_digest_2341.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9327,54 +9356,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2328.children + JSCompiler_object_inline_stack_2342.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2326) + if (JSCompiler_object_inline_message_2340) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2326 = - JSCompiler_object_inline_stack_2328.fallback), - (JSCompiler_object_inline_digest_2327 = workInProgress.mode), + (JSCompiler_object_inline_message_2340 = + JSCompiler_object_inline_stack_2342.fallback), + (JSCompiler_object_inline_digest_2341 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2328 = createWorkInProgress( + (JSCompiler_object_inline_stack_2342 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2328.children + children: JSCompiler_object_inline_stack_2342.children } )), - (JSCompiler_object_inline_stack_2328.subtreeFlags = + (JSCompiler_object_inline_stack_2342.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_message_2326 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2340 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2326 + JSCompiler_object_inline_message_2340 )) - : ((JSCompiler_object_inline_message_2326 = createFiberFromFragment( - JSCompiler_object_inline_message_2326, - JSCompiler_object_inline_digest_2327, + : ((JSCompiler_object_inline_message_2340 = createFiberFromFragment( + JSCompiler_object_inline_message_2340, + JSCompiler_object_inline_digest_2341, renderLanes, null )), - (JSCompiler_object_inline_message_2326.flags |= 2)), - (JSCompiler_object_inline_message_2326.return = workInProgress), - (JSCompiler_object_inline_stack_2328.return = workInProgress), - (JSCompiler_object_inline_stack_2328.sibling = - JSCompiler_object_inline_message_2326), - (workInProgress.child = JSCompiler_object_inline_stack_2328), - (JSCompiler_object_inline_stack_2328 = - JSCompiler_object_inline_message_2326), - (JSCompiler_object_inline_message_2326 = workInProgress.child), - (JSCompiler_object_inline_digest_2327 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2327 - ? (JSCompiler_object_inline_digest_2327 = + (JSCompiler_object_inline_message_2340.flags |= 2)), + (JSCompiler_object_inline_message_2340.return = workInProgress), + (JSCompiler_object_inline_stack_2342.return = workInProgress), + (JSCompiler_object_inline_stack_2342.sibling = + JSCompiler_object_inline_message_2340), + (workInProgress.child = JSCompiler_object_inline_stack_2342), + (JSCompiler_object_inline_stack_2342 = + JSCompiler_object_inline_message_2340), + (JSCompiler_object_inline_message_2340 = workInProgress.child), + (JSCompiler_object_inline_digest_2341 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2341 + ? (JSCompiler_object_inline_digest_2341 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2327.cachePool), + JSCompiler_object_inline_digest_2341.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9382,38 +9411,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2327 = { + (JSCompiler_object_inline_digest_2341 = { baseLanes: - JSCompiler_object_inline_digest_2327.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2341.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2326.memoizedState = - JSCompiler_object_inline_digest_2327), - (JSCompiler_object_inline_message_2326.childLanes = + (JSCompiler_object_inline_message_2340.memoizedState = + JSCompiler_object_inline_digest_2341), + (JSCompiler_object_inline_message_2340.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2329, + JSCompiler_object_inline_componentStack_2343, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2328 + JSCompiler_object_inline_stack_2342 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2328.children + children: JSCompiler_object_inline_stack_2342.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2329 = + ((JSCompiler_object_inline_componentStack_2343 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2329 + null === JSCompiler_object_inline_componentStack_2343 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2329.push(current)); + : JSCompiler_object_inline_componentStack_2343.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -13827,20 +13856,34 @@ (resource.state.loading & Inserted) !== NotLoaded ) workInProgress.flags &= -16777217; - else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) - if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; - else + else if ( + ((workInProgress.flags |= 16777216), !preloadResource(resource)) + ) { + resource = suspenseHandlerStackCursor.current; + if ( + null !== resource && + ((workInProgressRootRenderLanes & 4194176) === + workInProgressRootRenderLanes + ? null !== shellBoundary + : ((workInProgressRootRenderLanes & 62914560) !== + workInProgressRootRenderLanes && + 0 === (workInProgressRootRenderLanes & 536870912)) || + resource !== shellBoundary) + ) throw ( ((suspendedThenable = noopSuspenseyCommitThenable), SuspenseyCommitException) ); + workInProgress.flags |= 8192; + } } function scheduleRetryEffect(workInProgress, retryQueue) { null !== retryQueue && (workInProgress.flags |= 4); workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue)); + (workInProgress.lanes |= retryQueue), + (workInProgressSuspendedRetryLanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -14819,7 +14862,8 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); markRootUpdated$1(root, lane); if ( @@ -14861,25 +14905,37 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 )), ensureRootIsScheduled(root); } function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var exitStatus = (forceSync = + var shouldTimeSlice = (!forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) || - !1) + checkIfRootIsPrerendering(root, lanes), + exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes, !0), - renderWasConcurrent = forceSync; + renderWasConcurrent = shouldTimeSlice; do { - if (exitStatus === RootInProgress) break; - else if (exitStatus === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + if (exitStatus === RootInProgress) { + workInProgressRootIsPrerendering && + !shouldTimeSlice && + markRootSuspended(root, lanes, 0, !1); + break; + } else if (exitStatus === RootDidNotComplete) + finalizeRender(lanes, now$1()), + markRootSuspended( + root, + lanes, + 0, + !workInProgressRootDidSkipSuspendedSiblings + ); else { forceSync = root.current.alternate; if ( @@ -14944,22 +15000,24 @@ } if (exitStatus === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended(root, lanes, 0, !0); break; } a: { - renderWasConcurrent = root; - errorRetryLanes = now$1(); + shouldTimeSlice = root; + renderWasConcurrent = now$1(); switch (exitStatus) { case RootInProgress: case RootFatalErrored: throw Error("Root did not complete. This is a bug in React."); case RootSuspendedWithDelay: if ((lanes & 4194176) === lanes) { + finalizeRender(lanes, now$1()); markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -14973,11 +15031,11 @@ default: throw Error("Unknown root exit status."); } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; if (null !== ReactSharedInternals.actQueue) commitRoot( - renderWasConcurrent, + shouldTimeSlice, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, @@ -14986,7 +15044,7 @@ workInProgressSuspendedRetryLanes, IMMEDIATE_COMMIT, renderStartTime, - errorRetryLanes + renderWasConcurrent ); else { if ( @@ -14998,15 +15056,16 @@ 10 < exitStatus) ) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -15018,14 +15077,14 @@ workInProgressRootDidSkipSuspendedSiblings, THROTTLED_COMMIT, renderStartTime, - errorRetryLanes + renderWasConcurrent ), exitStatus ); break a; } commitRootWhenReady( - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -15037,7 +15096,7 @@ workInProgressRootDidSkipSuspendedSiblings, IMMEDIATE_COMMIT, renderStartTime, - errorRetryLanes + renderWasConcurrent ); } } @@ -15069,11 +15128,8 @@ completedRenderStartTime, completedRenderEndTime ) { - didSkipSuspendedSiblings = finishedWork.subtreeFlags; - if ( - didSkipSuspendedSiblings & 8192 || - 16785408 === (didSkipSuspendedSiblings & 16785408) - ) + var subtreeFlags = finishedWork.subtreeFlags; + if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -15095,7 +15151,12 @@ completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended( + root, + lanes, + spawnedLane, + !didSkipSuspendedSiblings + ); return; } commitRoot( @@ -15145,19 +15206,22 @@ } return !0; } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didAttemptEntireTree + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didAttemptEntireTree && (root.warmLanes |= suspendedLanes); + didAttemptEntireTree = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didAttemptEntireTree[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -15187,80 +15251,91 @@ } function finalizeRender(lanes, finalizationTime) { if (0 !== (lanes & 3) || 0 !== (lanes & 60)) - 0 <= blockingUpdateTime && - blockingUpdateTime < finalizationTime && - (blockingUpdateTime = finalizationTime), - 0 <= blockingEventTime && - blockingEventTime < finalizationTime && - (blockingEventTime = finalizationTime); - 0 !== (lanes & 4194176) && - (0 <= transitionStartTime && - transitionStartTime < finalizationTime && - (transitionStartTime = finalizationTime), - 0 <= transitionUpdateTime && - transitionUpdateTime < finalizationTime && - (transitionUpdateTime = finalizationTime), - 0 <= transitionEventTime && - transitionEventTime < finalizationTime && - (transitionEventTime = finalizationTime)); + blockingClampTime = finalizationTime; + 0 !== (lanes & 4194176) && (transitionClampTime = finalizationTime); } function prepareFreshStack(root, lanes) { renderStartTime = now(); finalizeRender(workInProgressRootRenderLanes, renderStartTime); if (0 !== (lanes & 3) || 0 !== (lanes & 60)) { - var updateTime = blockingUpdateTime, - eventTime = blockingEventTime, + var updateTime = + 0 <= blockingUpdateTime && blockingUpdateTime < blockingClampTime + ? blockingClampTime + : blockingUpdateTime, + eventTime = + 0 <= blockingEventTime && blockingEventTime < blockingClampTime + ? blockingClampTime + : blockingEventTime, eventType = blockingEventType, + eventIsRepeat = blockingEventIsRepeat, renderStartTime$jscomp$0 = renderStartTime; supportsUserTiming && - ((reusableComponentDevToolDetails.track = "Blocking"), + ((reusableLaneDevToolDetails.track = "Blocking"), 0 < eventTime && null !== eventType && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = eventTime), - (reusableComponentOptions.end = + ((reusableLaneDevToolDetails.color = eventIsRepeat + ? "secondary-light" + : "warning"), + (reusableLaneOptions.start = eventTime), + (reusableLaneOptions.end = 0 < updateTime ? updateTime : renderStartTime$jscomp$0), - performance.measure(eventType, reusableComponentOptions)), + performance.measure( + eventIsRepeat ? "" : "Event: " + eventType, + reusableLaneOptions + )), 0 < updateTime && - ((reusableComponentDevToolDetails.color = "primary-light"), - (reusableComponentOptions.start = updateTime), - (reusableComponentOptions.end = renderStartTime$jscomp$0), - performance.measure("Blocked", reusableComponentOptions))); + ((reusableLaneDevToolDetails.color = "primary-light"), + (reusableLaneOptions.start = updateTime), + (reusableLaneOptions.end = renderStartTime$jscomp$0), + performance.measure("Blocked", reusableLaneOptions))); blockingUpdateTime = -1.1; } if (0 !== (lanes & 4194176)) { - updateTime = transitionStartTime; - eventTime = transitionUpdateTime; - eventType = transitionEventTime; - renderStartTime$jscomp$0 = transitionEventType; + updateTime = + 0 <= transitionStartTime && transitionStartTime < transitionClampTime + ? transitionClampTime + : transitionStartTime; + eventTime = + 0 <= transitionUpdateTime && + transitionUpdateTime < transitionClampTime + ? transitionClampTime + : transitionUpdateTime; + eventType = + 0 <= transitionEventTime && transitionEventTime < transitionClampTime + ? transitionClampTime + : transitionEventTime; + eventIsRepeat = transitionEventType; + renderStartTime$jscomp$0 = transitionEventIsRepeat; var renderStartTime$jscomp$1 = renderStartTime; supportsUserTiming && - ((reusableComponentDevToolDetails.track = "Transition"), + ((reusableLaneDevToolDetails.track = "Transition"), 0 < eventType && - null !== renderStartTime$jscomp$0 && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = eventType), - (reusableComponentOptions.end = + null !== eventIsRepeat && + ((reusableLaneDevToolDetails.color = renderStartTime$jscomp$0 + ? "secondary-light" + : "warning"), + (reusableLaneOptions.start = eventType), + (reusableLaneOptions.end = 0 < updateTime ? updateTime : 0 < eventTime ? eventTime : renderStartTime$jscomp$1), performance.measure( - renderStartTime$jscomp$0, - reusableComponentOptions + renderStartTime$jscomp$0 ? "" : "Event: " + eventIsRepeat, + reusableLaneOptions )), 0 < updateTime && - ((reusableComponentDevToolDetails.color = "primary-dark"), - (reusableComponentOptions.start = updateTime), - (reusableComponentOptions.end = + ((reusableLaneDevToolDetails.color = "primary-dark"), + (reusableLaneOptions.start = updateTime), + (reusableLaneOptions.end = 0 < eventTime ? eventTime : renderStartTime$jscomp$1), - performance.measure("Action", reusableComponentOptions)), + performance.measure("Action", reusableLaneOptions)), 0 < eventTime && - ((reusableComponentDevToolDetails.color = "primary-light"), - (reusableComponentOptions.start = eventTime), - (reusableComponentOptions.end = renderStartTime$jscomp$1), - performance.measure("Blocked", reusableComponentOptions))); + ((reusableLaneDevToolDetails.color = "primary-light"), + (reusableLaneOptions.start = eventTime), + (reusableLaneOptions.end = renderStartTime$jscomp$1), + performance.measure("Blocked", reusableLaneOptions))); transitionUpdateTime = transitionStartTime = -1.1; } root.finishedWork = null; @@ -15277,7 +15352,7 @@ workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); + workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = @@ -15294,9 +15369,9 @@ if (0 !== eventTime) for (root = root.entanglements, eventTime &= lanes; 0 < eventTime; ) (eventType = 31 - clz32(eventTime)), - (renderStartTime$jscomp$0 = 1 << eventType), + (eventIsRepeat = 1 << eventType), (lanes |= root[eventType]), - (eventTime &= ~renderStartTime$jscomp$0); + (eventTime &= ~eventIsRepeat); entangledRenderLanes = lanes; finishQueueingConcurrentUpdates(); ReactStrictModeWarnings.discardPendingWarnings(); @@ -15310,12 +15385,7 @@ current = null; thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), - (workInProgressSuspendedReason = - shouldRemainOnPreviousScreen() && - 0 === (workInProgressRootSkippedLanes & 134217727) && - 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) - ? SuspendedOnData - : SuspendedOnImmediate)) + (workInProgressSuspendedReason = SuspendedOnImmediate)) : thrownValue === SuspenseyCommitException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = SuspendedOnInstance)) @@ -15338,21 +15408,6 @@ : erroredWork.mode & ProfileMode && stopProfilerTimerIfRunningAndRecordDuration(erroredWork); } - function shouldRemainOnPreviousScreen() { - var handler = suspenseHandlerStackCursor.current; - return null === handler - ? !0 - : (workInProgressRootRenderLanes & 4194176) === - workInProgressRootRenderLanes - ? null === shellBoundary - ? !0 - : !1 - : (workInProgressRootRenderLanes & 62914560) === - workInProgressRootRenderLanes || - 0 !== (workInProgressRootRenderLanes & 536870912) - ? handler === shellBoundary - : !1; - } function pushDispatcher() { var prevDispatcher = ReactSharedInternals.H; ReactSharedInternals.H = ContextOnlyDispatcher; @@ -15365,13 +15420,19 @@ } function renderDidSuspendDelayIfPossible() { workInProgressRootExitStatus = RootSuspendedWithDelay; + workInProgressRootDidSkipSuspendedSiblings || + ((workInProgressRootRenderLanes & 4194176) !== + workInProgressRootRenderLanes && + null !== suspenseHandlerStackCursor.current) || + (workInProgressRootIsPrerendering = !0); (0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) || null === workInProgressRoot || markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); } function queueConcurrentError(error) { @@ -15379,7 +15440,7 @@ ? (workInProgressRootConcurrentErrors = [error]) : workInProgressRootConcurrentErrors.push(error); } - function renderRootSync(root, lanes) { + function renderRootSync(root, lanes, shouldYieldForPrerendering) { var prevExecutionContext = executionContext; executionContext |= RenderContext; var prevDispatcher = pushDispatcher(), @@ -15421,6 +15482,13 @@ workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + if ( + shouldYieldForPrerendering && + workInProgressRootIsPrerendering + ) { + memoizedUpdaters = RootInProgress; + break a; + } break; default: (reason = workInProgressSuspendedReason), @@ -15469,7 +15537,11 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } else + workInProgressRootIsPrerendering = checkIfRootIsPrerendering( + root, + lanes + ); a: do try { if ( @@ -15673,7 +15745,12 @@ stopProfilerTimerIfRunningAndRecordDuration(unitOfWork); return current; } - function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { + function throwAndUnwindWorkLoop( + root, + unitOfWork, + thrownValue, + suspendedReason + ) { resetContextDependencies(); resetHooksOnUnwind(unitOfWork); thenableState$1 = null; @@ -15707,9 +15784,25 @@ workInProgress = null; return; } - unitOfWork.flags & 32768 - ? unwindUnitOfWork(unitOfWork, !0) - : completeUnitOfWork(unitOfWork); + if (unitOfWork.flags & 32768) { + if (isHydrating || suspendedReason === SuspendedOnError) root = !0; + else if ( + workInProgressRootIsPrerendering || + 0 !== (workInProgressRootRenderLanes & 536870912) + ) + root = !1; + else if ( + ((workInProgressRootDidSkipSuspendedSiblings = root = !0), + suspendedReason === SuspendedOnData || + suspendedReason === SuspendedOnImmediate || + suspendedReason === SuspendedOnDeprecatedThrowPromise) + ) + (suspendedReason = suspenseHandlerStackCursor.current), + null !== suspendedReason && + 13 === suspendedReason.tag && + (suspendedReason.flags |= 16384); + unwindUnitOfWork(unitOfWork, root); + } else completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; @@ -15833,46 +15926,49 @@ ReactStrictModeWarnings.flushPendingUnsafeLifecycleWarnings(); if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - updatedLanes = root.finishedWork; + var finishedWork = root.finishedWork; didIncludeRenderPhaseUpdate = root.finishedLanes; - reusableComponentDevToolDetails.track = getGroupNameOfHighestPriorityLane( + reusableLaneDevToolDetails.track = getGroupNameOfHighestPriorityLane( didIncludeRenderPhaseUpdate ); logRenderPhase(completedRenderStartTime, completedRenderEndTime); - if (null === updatedLanes) return null; + if (null === finishedWork) return null; 0 === didIncludeRenderPhaseUpdate && console.error( "root.finishedLanes should not be empty during a commit. This is a bug in React." ); root.finishedWork = null; root.finishedLanes = 0; - if (updatedLanes === root.current) + if (finishedWork === root.current) throw Error( "Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue." ); root.callbackNode = null; root.callbackPriority = 0; root.cancelPendingCommit = null; - completedRenderStartTime = updatedLanes.lanes | updatedLanes.childLanes; + completedRenderStartTime = finishedWork.lanes | finishedWork.childLanes; completedRenderStartTime |= concurrentlyUpdatedLanes; markRootFinished( root, didIncludeRenderPhaseUpdate, completedRenderStartTime, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), (workInProgressRootRenderLanes = 0)); - (0 === updatedLanes.actualDuration && - 0 === (updatedLanes.subtreeFlags & 10256) && - 0 === (updatedLanes.flags & 10256)) || + (0 === finishedWork.actualDuration && + 0 === (finishedWork.subtreeFlags & 10256) && + 0 === (finishedWork.flags & 10256)) || rootDoesHavePassiveEffects || ((rootDoesHavePassiveEffects = !0), (pendingPassiveEffectsRemainingLanes = completedRenderStartTime), (pendingPassiveEffectsRenderEndTime = completedRenderEndTime), (pendingPassiveTransitions = transitions), scheduleCallback$1(NormalPriority$1, function () { + schedulerEvent = window.event; flushPassiveEffects(!0); return null; })); @@ -15881,33 +15977,38 @@ ? logSuspendedCommitPhase(completedRenderEndTime, commitStartTime) : suspendedCommitReason === THROTTLED_COMMIT && logSuspenseThrottlePhase(completedRenderEndTime, commitStartTime); - transitions = 0 !== (updatedLanes.flags & 15990); - 0 !== (updatedLanes.subtreeFlags & 15990) || transitions + transitions = 0 !== (finishedWork.flags & 15990); + 0 !== (finishedWork.subtreeFlags & 15990) || transitions ? ((transitions = ReactSharedInternals.T), (ReactSharedInternals.T = null), (spawnedLane = ReactDOMSharedInternals.p), (ReactDOMSharedInternals.p = DiscreteEventPriority), - (suspendedCommitReason = executionContext), + (updatedLanes = executionContext), (executionContext |= CommitContext), - commitBeforeMutationEffects(root, updatedLanes), + commitBeforeMutationEffects(root, finishedWork), commitMutationEffects( root, - updatedLanes, + finishedWork, didIncludeRenderPhaseUpdate ), restoreSelection(selectionInformation, root.containerInfo), (_enabled = !!eventsEnabled), (selectionInformation = eventsEnabled = null), - (root.current = updatedLanes), - commitLayoutEffects(updatedLanes, root, didIncludeRenderPhaseUpdate), + (root.current = finishedWork), + commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), requestPaint(), - (executionContext = suspendedCommitReason), + (executionContext = updatedLanes), (ReactDOMSharedInternals.p = spawnedLane), (ReactSharedInternals.T = transitions)) - : (root.current = updatedLanes); + : (root.current = finishedWork); commitEndTime = now(); - logCommitPhase(commitStartTime, commitEndTime); - (transitions = rootDoesHavePassiveEffects) + logCommitPhase( + suspendedCommitReason === IMMEDIATE_COMMIT + ? completedRenderEndTime + : commitStartTime, + commitEndTime + ); + (suspendedCommitReason = rootDoesHavePassiveEffects) ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), (pendingPassiveEffectsLanes = didIncludeRenderPhaseUpdate)) @@ -15917,24 +16018,25 @@ completedRenderStartTime = root.pendingLanes; 0 === completedRenderStartTime && (legacyErrorBoundariesThatAlreadyFailed = null); - transitions || commitDoubleInvokeEffectsInDEV(root); - onCommitRoot$1(updatedLanes.stateNode, renderPriorityLevel); + suspendedCommitReason || commitDoubleInvokeEffectsInDEV(root); + onCommitRoot$1(finishedWork.stateNode, renderPriorityLevel); isDevToolsPresent && root.memoizedUpdaters.clear(); onCommitRoot(); ensureRootIsScheduled(root); if (null !== recoverableErrors) for ( - renderPriorityLevel = root.onRecoverableError, updatedLanes = 0; - updatedLanes < recoverableErrors.length; - updatedLanes++ + renderPriorityLevel = root.onRecoverableError, + completedRenderEndTime = 0; + completedRenderEndTime < recoverableErrors.length; + completedRenderEndTime++ ) - (completedRenderStartTime = recoverableErrors[updatedLanes]), - (spawnedLane = makeErrorInfo(completedRenderStartTime.stack)), + (finishedWork = recoverableErrors[completedRenderEndTime]), + (completedRenderStartTime = makeErrorInfo(finishedWork.stack)), runWithFiberInDEV( - completedRenderStartTime.source, + finishedWork.source, renderPriorityLevel, - completedRenderStartTime.value, - spawnedLane + finishedWork.value, + completedRenderStartTime ); 0 !== (pendingPassiveEffectsLanes & 3) && flushPassiveEffects(); completedRenderStartTime = root.pendingLanes; @@ -15945,7 +16047,8 @@ ? nestedUpdateCount++ : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root))) : (nestedUpdateCount = 0); - transitions || finalizeRender(didIncludeRenderPhaseUpdate, now$1()); + suspendedCommitReason || + finalizeRender(didIncludeRenderPhaseUpdate, now$1()); flushSyncWorkAcrossRoots_impl(0, !1); return null; } @@ -15997,7 +16100,7 @@ throw Error( "Cannot flush passive effects while already rendering." ); - reusableComponentDevToolDetails.track = + reusableLaneDevToolDetails.track = getGroupNameOfHighestPriorityLane(lanes); isFlushingPassiveEffects = !0; didScheduleUpdateDuringPassiveEffects = !1; @@ -16005,15 +16108,16 @@ passiveEffectStartTime = now$1(); var startTime = commitEndTime, endTime = passiveEffectStartTime; + wasDelayedCommit = !!wasDelayedCommit; supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-light"), - (reusableComponentOptions.start = startTime), - (reusableComponentOptions.end = endTime), + ((reusableLaneDevToolDetails.color = "secondary-light"), + (reusableLaneOptions.start = startTime), + (reusableLaneOptions.end = endTime), performance.measure( - "Waiting for Paint", - reusableComponentOptions + wasDelayedCommit ? "Waiting for Paint" : "", + reusableLaneOptions )); - startTime = executionContext; + wasDelayedCommit = executionContext; executionContext |= CommitContext; var finishedWork = priority.current; resetComponentEffectTimers(); @@ -16029,18 +16133,14 @@ finishedWork ); commitDoubleInvokeEffectsInDEV(priority); - executionContext = startTime; + executionContext = wasDelayedCommit; var passiveEffectsEndTime = now$1(); - wasDelayedCommit && - ((wasDelayedCommit = passiveEffectStartTime), - supportsUserTiming && - ((reusableComponentDevToolDetails.color = "secondary-dark"), - (reusableComponentOptions.start = wasDelayedCommit), - (reusableComponentOptions.end = passiveEffectsEndTime), - performance.measure( - "Remaining Effects", - reusableComponentOptions - ))); + finishedWork$jscomp$0 = passiveEffectStartTime; + supportsUserTiming && + ((reusableLaneDevToolDetails.color = "secondary-dark"), + (reusableLaneOptions.start = finishedWork$jscomp$0), + (reusableLaneOptions.end = passiveEffectsEndTime), + performance.measure("Remaining Effects", reusableLaneOptions)); finalizeRender(lanes, passiveEffectsEndTime); flushSyncWorkAcrossRoots_impl(0, !1); didScheduleUpdateDuringPassiveEffects @@ -16385,6 +16485,7 @@ } } function processRootScheduleInMicrotask() { + schedulerEvent = window.event; mightHavePendingSyncWork = didScheduleMicrotask_act = didScheduleMicrotask = @@ -16449,7 +16550,10 @@ (root.callbackNode = null), (root.callbackPriority = 0) ); - if (0 !== (suspendedLanes & 3)) + if ( + 0 !== (suspendedLanes & 3) && + !checkIfRootIsPrerendering(root, suspendedLanes) + ) return ( null !== pingedLanes && cancelCallback(pingedLanes), (root.callbackPriority = 2), @@ -16489,6 +16593,7 @@ } function performWorkOnRootViaSchedulerTask(root, didTimeout) { nestedUpdateScheduled = currentUpdateIsNested = !1; + schedulerEvent = window.event; var originalCallbackNode = root.callbackNode; if (flushPassiveEffects() && root.callbackNode !== originalCallbackNode) return null; @@ -19621,11 +19726,11 @@ } function resolveEventType() { var event = window.event; - return event ? event.type : null; + return event && event !== schedulerEvent ? event.type : null; } function resolveEventTimeStamp() { var event = window.event; - return event ? event.timeStamp : -1.1; + return event && event !== schedulerEvent ? event.timeStamp : -1.1; } function handleErrorInNextTick(error) { setTimeout(function () { @@ -22829,14 +22934,24 @@ reusableComponentDevToolDetails = { dataType: "track-entry", color: "primary", - track: "Blocking", - trackGroup: "Components \u269b" + track: "Components \u269b" }, reusableComponentOptions = { start: -0, end: -0, detail: { devtools: reusableComponentDevToolDetails } }, + reusableLaneDevToolDetails = { + dataType: "track-entry", + color: "primary", + track: "Blocking", + trackGroup: "Scheduler \u269b" + }, + reusableLaneOptions = { + start: -0, + end: -0, + detail: { devtools: reusableLaneDevToolDetails } + }, OffscreenVisible = 1, OffscreenDetached = 2, OffscreenPassiveEffectsConnected = 4, @@ -22862,13 +22977,17 @@ componentEffectDuration = -0, componentEffectStartTime = -1.1, componentEffectEndTime = -1.1, + blockingClampTime = -0, blockingUpdateTime = -1.1, blockingEventTime = -1.1, blockingEventType = null, + blockingEventIsRepeat = !1, + transitionClampTime = -0, transitionStartTime = -1.1, transitionUpdateTime = -1.1, transitionEventTime = -1.1, transitionEventType = null, + transitionEventIsRepeat = !1, currentUpdateIsNested = !1, nestedUpdateScheduled = !1, ReactStrictModeWarnings = { @@ -23323,15 +23442,23 @@ currentEntangledActionThenable = null, prevOnStartTransitionFinish = ReactSharedInternals.S; ReactSharedInternals.S = function (transition, returnValue) { - "object" === typeof returnValue && + if ( + "object" === typeof returnValue && null !== returnValue && - "function" === typeof returnValue.then && - (0 > transitionStartTime && - 0 > transitionUpdateTime && - ((transitionStartTime = now()), - (transitionEventTime = resolveEventTimeStamp()), - (transitionEventType = resolveEventType())), - entangleAsyncAction(transition, returnValue)); + "function" === typeof returnValue.then + ) { + if (0 > transitionStartTime && 0 > transitionUpdateTime) { + transitionStartTime = now(); + var newEventTime = resolveEventTimeStamp(), + newEventType = resolveEventType(); + transitionEventIsRepeat = + newEventTime === transitionEventTime && + newEventType === transitionEventType; + transitionEventTime = newEventTime; + transitionEventType = newEventType; + } + entangleAsyncAction(transition, returnValue); + } null !== prevOnStartTransitionFinish && prevOnStartTransitionFinish(transition, returnValue); }; @@ -24668,6 +24795,7 @@ workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -24807,6 +24935,7 @@ selectionInformation = null, warnedUnknownTags = { dialog: !0, webview: !0 }, currentPopstateTransitionEvent = null, + schedulerEvent = void 0, scheduleTimeout = "function" === typeof setTimeout ? setTimeout : void 0, cancelTimeout = "function" === typeof clearTimeout ? clearTimeout : void 0, @@ -25247,11 +25376,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-b01722d5-20241114" !== 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-experimental-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25288,11 +25417,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-380f5d67-20241113", + version: "19.0.0-experimental-b01722d5-20241114", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-380f5d67-20241113" + reconcilerVersion: "19.0.0-experimental-b01722d5-20241114" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25600,5 +25729,5 @@ } }; }; - exports.version = "19.0.0-experimental-380f5d67-20241113"; + exports.version = "19.0.0-experimental-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js index ff61fc5693293..4a005e63381c3 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js @@ -599,28 +599,40 @@ 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, + warmLanes = root.warmLanes; + root = 0 !== root.finishedLanes; 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)) + : root || + ((warmLanes = nonIdlePendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : root || + ((warmLanes = pendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (warmLanes = wipLanes & -wipLanes), + suspendedLanes >= warmLanes || + (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) ? wipLanes : nextLanes; } @@ -694,7 +706,14 @@ function markRootUpdated$1(root, updateLane) { 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } -function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { +function markRootFinished( + root, + finishedLanes, + remainingLanes, + spawnedLane, + updatedLanes, + suspendedRetryLanes +) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; @@ -704,31 +723,36 @@ function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - finishedLanes = root.entanglements; - var expirationTimes = root.expirationTimes, + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index$6 = 31 - clz32(remainingLanes); - previouslyPendingLanes = 1 << index$6; - finishedLanes[index$6] = 0; - expirationTimes[index$6] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$6]; + var index$7 = 31 - clz32(remainingLanes), + lane = 1 << index$7; + entanglements[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); } - remainingLanes &= ~previouslyPendingLanes; + remainingLanes &= ~lane; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -743,10 +767,10 @@ 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; } } @@ -982,8 +1006,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$9 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$9 && "aria-" !== prefix$9) { + var prefix$10 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$10 && "aria-" !== prefix$10) { node.removeAttribute(name); return; } @@ -1316,15 +1340,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$15 in styles) - (styleName = styles[styleName$15]), - styles.hasOwnProperty(styleName$15) && - prevStyles[styleName$15] !== styleName && - setValueForStyle(node, styleName$15, styleName); - } else for (var styleName$16 in styles) - styles.hasOwnProperty(styleName$16) && - setValueForStyle(node, styleName$16, styles[styleName$16]); + (styleName = styles[styleName$16]), + styles.hasOwnProperty(styleName$16) && + prevStyles[styleName$16] !== styleName && + setValueForStyle(node, styleName$16, styleName); + } else + for (var styleName$17 in styles) + styles.hasOwnProperty(styleName$17) && + setValueForStyle(node, styleName$17, styles[styleName$17]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -2053,19 +2077,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$282; + var JSCompiler_inline_result$jscomp$287; if (canUseDOM) { - var isSupported$jscomp$inline_420 = "oninput" in document; - if (!isSupported$jscomp$inline_420) { - var element$jscomp$inline_421 = document.createElement("div"); - element$jscomp$inline_421.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_420 = - "function" === typeof element$jscomp$inline_421.oninput; + var isSupported$jscomp$inline_425 = "oninput" in document; + if (!isSupported$jscomp$inline_425) { + var element$jscomp$inline_426 = document.createElement("div"); + element$jscomp$inline_426.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_425 = + "function" === typeof element$jscomp$inline_426.oninput; } - JSCompiler_inline_result$jscomp$282 = isSupported$jscomp$inline_420; - } else JSCompiler_inline_result$jscomp$282 = !1; + JSCompiler_inline_result$jscomp$287 = isSupported$jscomp$inline_425; + } else JSCompiler_inline_result$jscomp$287 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$282 && + JSCompiler_inline_result$jscomp$287 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -4009,7 +4033,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$54 = !1; + didReadFromEntangledAsyncAction$55 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -4030,11 +4054,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$54 = !0); + (didReadFromEntangledAsyncAction$55 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$54 = !0); + (didReadFromEntangledAsyncAction$55 = !0); continue; } else (updateLane = { @@ -4080,7 +4104,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$54 && + didReadFromEntangledAsyncAction$55 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4282,8 +4306,8 @@ function runActionStateAction(actionQueue, node) { 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) { @@ -4736,14 +4760,14 @@ function refreshCache(fiber, seedKey, seedValue) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$63 = enqueueUpdate(provider, fiber, lane); - null !== root$63 && - (scheduleUpdateOnFiber(root$63, provider, lane), - entangleTransitions(root$63, provider, lane)); + var root$64 = enqueueUpdate(provider, fiber, lane); + null !== root$64 && + (scheduleUpdateOnFiber(root$64, provider, lane), + entangleTransitions(root$64, provider, lane)); provider = createCache(); null !== seedKey && void 0 !== seedKey && - null !== root$63 && + null !== root$64 && provider.data.set(seedKey, seedValue); fiber.payload = { cache: provider }; return; @@ -5282,9 +5306,9 @@ function resolveClassComponentProps(Component, baseProps) { } if ((Component = Component.defaultProps)) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$67 in Component) - void 0 === newProps[propName$67] && - (newProps[propName$67] = Component[propName$67]); + for (var propName$68 in Component) + void 0 === newProps[propName$68] && + (newProps[propName$68] = Component[propName$68]); } return newProps; } @@ -5330,9 +5354,9 @@ function logUncaughtError(root, errorInfo) { try { var onUncaughtError = root.onUncaughtError; onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack }); - } catch (e$68) { + } catch (e$69) { setTimeout(function () { - throw e$68; + throw e$69; }); } } @@ -5343,9 +5367,9 @@ function logCaughtError(root, boundary, errorInfo) { componentStack: errorInfo.stack, errorBoundary: 1 === boundary.tag ? boundary.stateNode : null }); - } catch (e$69) { + } catch (e$70) { setTimeout(function () { - throw e$69; + throw e$70; }); } } @@ -7801,8 +7825,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; } @@ -7936,7 +7960,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$19) { + } catch (e$20) { JSCompiler_temp = null; break a; } @@ -8111,11 +8135,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$113) { + } catch (error$114) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$113 + error$114 ); } } @@ -8269,7 +8293,7 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$121 = hostParentIsContainer; + var prevHostParentIsContainer$122 = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, @@ -8277,7 +8301,7 @@ function commitDeletionEffectsOnFiber( deletedFiber ); hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$121; + hostParentIsContainer = prevHostParentIsContainer$122; if (null !== hostParent) if (hostParentIsContainer) try { @@ -8910,21 +8934,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$115 = JSCompiler_inline_result.stateNode; + var parent$116 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$115, ""), + (setTextContent(parent$116, ""), (JSCompiler_inline_result.flags &= -33)); - var before$116 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$116, parent$115); + var before$117 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$117, parent$116); break; case 3: case 4: - var parent$117 = JSCompiler_inline_result.stateNode.containerInfo, - before$118 = getHostSibling(finishedWork); + var parent$118 = JSCompiler_inline_result.stateNode.containerInfo, + before$119 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$118, - parent$117 + before$119, + parent$118 ); break; default: @@ -9808,20 +9832,32 @@ function markUpdate(workInProgress) { function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4)) workInProgress.flags &= -16777217; - else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) - if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; - else + else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) { + resource = suspenseHandlerStackCursor.current; + if ( + null !== resource && + ((workInProgressRootRenderLanes & 4194176) === + workInProgressRootRenderLanes + ? null !== shellBoundary + : ((workInProgressRootRenderLanes & 62914560) !== + workInProgressRootRenderLanes && + 0 === (workInProgressRootRenderLanes & 536870912)) || + resource !== shellBoundary) + ) throw ( ((suspendedThenable = noopSuspenseyCommitThenable), SuspenseyCommitException) ); + workInProgress.flags |= 8192; + } } function scheduleRetryEffect(workInProgress, retryQueue) { null !== retryQueue && (workInProgress.flags |= 4); workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue)); + (workInProgress.lanes |= retryQueue), + (workInProgressSuspendedRetryLanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -9838,14 +9874,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$133 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$133 = lastTailNode), + for (var lastTailNode$134 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$134 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$133 + null === lastTailNode$134 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$133.sibling = null); + : (lastTailNode$134.sibling = null); } } function bubbleProperties(completedWork) { @@ -9855,19 +9891,19 @@ function bubbleProperties(completedWork) { newChildLanes = 0, subtreeFlags = 0; if (didBailout) - for (var child$134 = completedWork.child; null !== child$134; ) - (newChildLanes |= child$134.lanes | child$134.childLanes), - (subtreeFlags |= child$134.subtreeFlags & 31457280), - (subtreeFlags |= child$134.flags & 31457280), - (child$134.return = completedWork), - (child$134 = child$134.sibling); + for (var child$135 = completedWork.child; null !== child$135; ) + (newChildLanes |= child$135.lanes | child$135.childLanes), + (subtreeFlags |= child$135.subtreeFlags & 31457280), + (subtreeFlags |= child$135.flags & 31457280), + (child$135.return = completedWork), + (child$135 = child$135.sibling); else - for (child$134 = completedWork.child; null !== child$134; ) - (newChildLanes |= child$134.lanes | child$134.childLanes), - (subtreeFlags |= child$134.subtreeFlags), - (subtreeFlags |= child$134.flags), - (child$134.return = completedWork), - (child$134 = child$134.sibling); + for (child$135 = completedWork.child; null !== child$135; ) + (newChildLanes |= child$135.lanes | child$135.childLanes), + (subtreeFlags |= child$135.subtreeFlags), + (subtreeFlags |= child$135.flags), + (child$135.return = completedWork), + (child$135 = child$135.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10144,11 +10180,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$146 = null; + var cache$147 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$146 = newProps.memoizedState.cachePool.pool); - cache$146 !== type && (newProps.flags |= 2048); + (cache$147 = newProps.memoizedState.cachePool.pool); + cache$147 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -10173,8 +10209,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$146 = type.rendering; - if (null === cache$146) + cache$147 = type.rendering; + if (null === cache$147) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10182,11 +10218,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$146 = findFirstSuspended(current); - if (null !== cache$146) { + cache$147 = findFirstSuspended(current); + if (null !== cache$147) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$146.updateQueue; + current = cache$147.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -10211,7 +10247,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$146)), null !== current)) { + if (((current = findFirstSuspended(cache$147)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10221,7 +10257,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$146.alternate && + !cache$147.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10234,13 +10270,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$146.sibling = workInProgress.child), - (workInProgress.child = cache$146)) + ? ((cache$147.sibling = workInProgress.child), + (workInProgress.child = cache$147)) : ((current = type.last), null !== current - ? (current.sibling = cache$146) - : (workInProgress.child = cache$146), - (type.last = cache$146)); + ? (current.sibling = cache$147) + : (workInProgress.child = cache$147), + (type.last = cache$147)); } if (null !== type.tail) return ( @@ -10600,6 +10636,7 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -10650,7 +10687,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); markRootUpdated$1(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) @@ -10661,23 +10699,35 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 )), ensureRootIsScheduled(root); } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var exitStatus = (forceSync = + var shouldTimeSlice = (!forceSync && 0 === (lanes & 60) && 0 === (lanes & root$jscomp$0.expiredLanes)) || - !1) + checkIfRootIsPrerendering(root$jscomp$0, lanes), + exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, !0), - renderWasConcurrent = forceSync; + renderWasConcurrent = shouldTimeSlice; do { - if (0 === exitStatus) break; - else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + if (0 === exitStatus) { + workInProgressRootIsPrerendering && + !shouldTimeSlice && + markRootSuspended(root$jscomp$0, lanes, 0, !1); + break; + } else if (6 === exitStatus) + markRootSuspended( + root$jscomp$0, + lanes, + 0, + !workInProgressRootDidSkipSuspendedSiblings + ); else { forceSync = root$jscomp$0.current.alternate; if ( @@ -10737,11 +10787,11 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { } if (1 === exitStatus) { prepareFreshStack(root$jscomp$0, 0); - markRootSuspended(root$jscomp$0, lanes, 0); + markRootSuspended(root$jscomp$0, lanes, 0, !0); break; } a: { - renderWasConcurrent = root$jscomp$0; + shouldTimeSlice = root$jscomp$0; switch (exitStatus) { case 0: case 1: @@ -10749,9 +10799,10 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { case 4: if ((lanes & 4194176) === lanes) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -10765,23 +10816,24 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { default: throw Error(formatProdErrorMessage(329)); } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; if ( (lanes & 62914560) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 300 - now()), - 10 < exitStatus) + ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()), + 10 < renderWasConcurrent) ) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -10795,12 +10847,12 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { -0, 0 ), - exitStatus + renderWasConcurrent ); break a; } commitRootWhenReady( - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -10843,11 +10895,8 @@ function commitRootWhenReady( completedRenderStartTime, completedRenderEndTime ) { - didSkipSuspendedSiblings = finishedWork.subtreeFlags; - if ( - didSkipSuspendedSiblings & 8192 || - 16785408 === (didSkipSuspendedSiblings & 16785408) - ) + var subtreeFlags = finishedWork.subtreeFlags; + if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -10869,7 +10918,7 @@ function commitRootWhenReady( completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings); return; } commitRoot( @@ -10919,19 +10968,22 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didAttemptEntireTree +) { 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; + didAttemptEntireTree && (root.warmLanes |= suspendedLanes); + didAttemptEntireTree = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$6 = 31 - clz32(lanes), + lane = 1 << index$6; + didAttemptEntireTree[index$6] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10975,7 +11027,7 @@ function prepareFreshStack(root, lanes) { workInProgressSuspendedReason = 0; workInProgressThrownValue = null; workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); + workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); workInProgressRootDidAttachPingListener = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -10995,9 +11047,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; @@ -11009,12 +11061,7 @@ function handleThrow(root, thrownValue) { ReactSharedInternals.H = ContextOnlyDispatcher; thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), - (workInProgressSuspendedReason = - shouldRemainOnPreviousScreen() && - 0 === (workInProgressRootSkippedLanes & 134217727) && - 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) - ? 2 - : 3)) + (workInProgressSuspendedReason = 3)) : thrownValue === SuspenseyCommitException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = 4)) @@ -11034,21 +11081,6 @@ function handleThrow(root, thrownValue) { createCapturedValueAtFiber(thrownValue, root.current) )); } -function shouldRemainOnPreviousScreen() { - var handler = suspenseHandlerStackCursor.current; - return null === handler - ? !0 - : (workInProgressRootRenderLanes & 4194176) === - workInProgressRootRenderLanes - ? null === shellBoundary - ? !0 - : !1 - : (workInProgressRootRenderLanes & 62914560) === - workInProgressRootRenderLanes || - 0 !== (workInProgressRootRenderLanes & 536870912) - ? handler === shellBoundary - : !1; -} function pushDispatcher() { var prevDispatcher = ReactSharedInternals.H; ReactSharedInternals.H = ContextOnlyDispatcher; @@ -11061,13 +11093,19 @@ function pushAsyncDispatcher() { } function renderDidSuspendDelayIfPossible() { workInProgressRootExitStatus = 4; + workInProgressRootDidSkipSuspendedSiblings || + ((workInProgressRootRenderLanes & 4194176) !== + workInProgressRootRenderLanes && + null !== suspenseHandlerStackCursor.current) || + (workInProgressRootIsPrerendering = !0); (0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) || null === workInProgressRoot || markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); } function queueConcurrentError(error) { @@ -11075,7 +11113,7 @@ function queueConcurrentError(error) { ? (workInProgressRootConcurrentErrors = [error]) : workInProgressRootConcurrentErrors.push(error); } -function renderRootSync(root, lanes) { +function renderRootSync(root, lanes, shouldYieldForPrerendering) { var prevExecutionContext = executionContext; executionContext |= 2; var prevDispatcher = pushDispatcher(), @@ -11102,6 +11140,13 @@ function renderRootSync(root, lanes) { workInProgressSuspendedReason = 0; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + if ( + shouldYieldForPrerendering && + workInProgressRootIsPrerendering + ) { + exitStatus = 0; + break a; + } break; default: (reason = workInProgressSuspendedReason), @@ -11113,8 +11158,8 @@ function renderRootSync(root, lanes) { workLoopSync(); exitStatus = workInProgressRootExitStatus; break; - } catch (thrownValue$163) { - handleThrow(root, thrownValue$163); + } catch (thrownValue$168) { + handleThrow(root, thrownValue$168); } while (1); lanes && root.shellSuspendCounter++; @@ -11140,7 +11185,10 @@ function renderRootConcurrent(root, lanes) { ? ((workInProgressTransitions = null), (workInProgressRootRenderTargetTime = now() + 500), prepareFreshStack(root, lanes)) - : checkIfRootIsPrerendering(root, lanes); + : (workInProgressRootIsPrerendering = checkIfRootIsPrerendering( + root, + lanes + )); a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -11224,8 +11272,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$165) { - handleThrow(root, thrownValue$165); + } catch (thrownValue$170) { + handleThrow(root, thrownValue$170); } while (1); lastContextDependency = currentlyRenderingFiber = null; @@ -11283,7 +11331,12 @@ function replaySuspendedUnitOfWork(unitOfWork) { unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } -function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { +function throwAndUnwindWorkLoop( + root, + unitOfWork, + thrownValue, + suspendedReason +) { lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; @@ -11317,9 +11370,23 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - unitOfWork.flags & 32768 - ? unwindUnitOfWork(unitOfWork, !0) - : completeUnitOfWork(unitOfWork); + if (unitOfWork.flags & 32768) { + if (isHydrating || 1 === suspendedReason) root = !0; + else if ( + workInProgressRootIsPrerendering || + 0 !== (workInProgressRootRenderLanes & 536870912) + ) + root = !1; + else if ( + ((workInProgressRootDidSkipSuspendedSiblings = root = !0), + 2 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason) + ) + (suspendedReason = suspenseHandlerStackCursor.current), + null !== suspendedReason && + 13 === suspendedReason.tag && + (suspendedReason.flags |= 16384); + unwindUnitOfWork(unitOfWork, root); + } else completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; @@ -11414,7 +11481,9 @@ function commitRootImpl( transitions, didIncludeRenderPhaseUpdate, renderPriorityLevel, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ) { do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); @@ -11434,7 +11503,9 @@ function commitRootImpl( root, didIncludeRenderPhaseUpdate, remainingLanes, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), @@ -11450,25 +11521,25 @@ function commitRootImpl( return null; })); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - spawnedLane = ReactDOMSharedInternals.p; - ReactDOMSharedInternals.p = 2; - var prevExecutionContext = executionContext; - executionContext |= 4; - commitBeforeMutationEffects(root, finishedWork); - commitMutationEffectsOnFiber(finishedWork, root); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); - requestPaint(); - executionContext = prevExecutionContext; - ReactDOMSharedInternals.p = spawnedLane; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (spawnedLane = ReactDOMSharedInternals.p), + (ReactDOMSharedInternals.p = 2), + (updatedLanes = executionContext), + (executionContext |= 4), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffectsOnFiber(finishedWork, root), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), + commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), + requestPaint(), + (executionContext = updatedLanes), + (ReactDOMSharedInternals.p = spawnedLane), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -11506,7 +11577,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$169 = rootWithPendingPassiveEffects, + var root$174 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11545,7 +11616,7 @@ function flushPassiveEffects() { } finally { (ReactDOMSharedInternals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$169, remainingLanes); + releaseRootPooledCache(root$174, remainingLanes); } } return !1; @@ -11688,14 +11759,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$171 = firstScheduledRoot; null !== root$171; ) { + for (var root$176 = firstScheduledRoot; null !== root$176; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$171.pendingLanes; + var pendingLanes = root$176.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$171.suspendedLanes, - pingedLanes = root$171.pingedLanes; + var suspendedLanes = root$176.suspendedLanes, + pingedLanes = root$176.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -11709,18 +11780,18 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$171, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$176, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$171, - root$171 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$176, + root$176 === workInProgressRoot ? JSCompiler_inline_result : 0 )), 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$171, JSCompiler_inline_result) || + checkIfRootIsPrerendering(root$176, JSCompiler_inline_result) || ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$171, JSCompiler_inline_result)); - root$171 = root$171.next; + performSyncWorkOnRoot(root$176, JSCompiler_inline_result)); + root$176 = root$176.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -11761,12 +11832,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$4 = 31 - clz32(lanes), - lane = 1 << index$4, - expirationTime = expirationTimes[index$4]; + var index$5 = 31 - clz32(lanes), + 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); lanes &= ~lane; } @@ -11789,37 +11860,37 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { (root.callbackNode = null), (root.callbackPriority = 0) ); - if (0 !== (suspendedLanes & 3)) - return ( - null !== pingedLanes && - null !== pingedLanes && - cancelCallback$1(pingedLanes), - (root.callbackPriority = 2), - (root.callbackNode = null), - 2 - ); - currentTime = suspendedLanes & -suspendedLanes; - if (currentTime === root.callbackPriority) return currentTime; - null !== pingedLanes && cancelCallback$1(pingedLanes); - switch (lanesToEventPriority(suspendedLanes)) { - case 2: - case 8: - suspendedLanes = UserBlockingPriority; - break; - case 32: - suspendedLanes = NormalPriority$1; - break; - case 268435456: - suspendedLanes = IdlePriority; - break; - default: - suspendedLanes = NormalPriority$1; - } - pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); - suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); - root.callbackPriority = currentTime; - root.callbackNode = suspendedLanes; - return currentTime; + if ( + 0 === (suspendedLanes & 3) || + checkIfRootIsPrerendering(root, suspendedLanes) + ) { + currentTime = suspendedLanes & -suspendedLanes; + if (currentTime === root.callbackPriority) return currentTime; + null !== pingedLanes && cancelCallback$1(pingedLanes); + switch (lanesToEventPriority(suspendedLanes)) { + case 2: + case 8: + suspendedLanes = UserBlockingPriority; + break; + case 32: + suspendedLanes = NormalPriority$1; + break; + case 268435456: + suspendedLanes = IdlePriority; + break; + default: + suspendedLanes = NormalPriority$1; + } + pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); + suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); + root.callbackPriority = currentTime; + root.callbackNode = suspendedLanes; + return currentTime; + } + null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes); + root.callbackPriority = 2; + root.callbackNode = null; + return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { var originalCallbackNode = root.callbackNode; @@ -11948,20 +12019,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1452 = 0; - i$jscomp$inline_1452 < simpleEventPluginEvents.length; - i$jscomp$inline_1452++ + var i$jscomp$inline_1461 = 0; + i$jscomp$inline_1461 < simpleEventPluginEvents.length; + i$jscomp$inline_1461++ ) { - var eventName$jscomp$inline_1453 = - simpleEventPluginEvents[i$jscomp$inline_1452], - domEventName$jscomp$inline_1454 = - eventName$jscomp$inline_1453.toLowerCase(), - capitalizedEvent$jscomp$inline_1455 = - eventName$jscomp$inline_1453[0].toUpperCase() + - eventName$jscomp$inline_1453.slice(1); + var eventName$jscomp$inline_1462 = + simpleEventPluginEvents[i$jscomp$inline_1461], + domEventName$jscomp$inline_1463 = + eventName$jscomp$inline_1462.toLowerCase(), + capitalizedEvent$jscomp$inline_1464 = + eventName$jscomp$inline_1462[0].toUpperCase() + + eventName$jscomp$inline_1462.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1454, - "on" + capitalizedEvent$jscomp$inline_1455 + domEventName$jscomp$inline_1463, + "on" + capitalizedEvent$jscomp$inline_1464 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13144,34 +13215,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$185 = props[hasSrc]; - if (null != propValue$185) + var propValue$190 = props[hasSrc]; + if (null != propValue$190) switch (hasSrc) { case "name": - hasSrcSet = propValue$185; + hasSrcSet = propValue$190; break; case "type": - propValue = propValue$185; + propValue = propValue$190; break; case "checked": - checked = propValue$185; + checked = propValue$190; break; case "defaultChecked": - defaultChecked = propValue$185; + defaultChecked = propValue$190; break; case "value": - propKey = propValue$185; + propKey = propValue$190; break; case "defaultValue": - defaultValue = propValue$185; + defaultValue = propValue$190; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$185) + if (null != propValue$190) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$185, props, null); + setProp(domElement, tag, hasSrc, propValue$190, props, null); } } initInput( @@ -13308,14 +13379,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$185 in props) - props.hasOwnProperty(propValue$185) && - ((hasSrc = props[propValue$185]), + for (propValue$190 in props) + props.hasOwnProperty(propValue$190) && + ((hasSrc = props[propValue$190]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$185, + propValue$190, hasSrc, props, void 0 @@ -13363,14 +13434,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$202 in nextProps) { - var propKey = nextProps[propKey$202]; - lastProp = lastProps[propKey$202]; + for (var propKey$207 in nextProps) { + var propKey = nextProps[propKey$207]; + lastProp = lastProps[propKey$207]; if ( - nextProps.hasOwnProperty(propKey$202) && + nextProps.hasOwnProperty(propKey$207) && (null != propKey || null != lastProp) ) - switch (propKey$202) { + switch (propKey$207) { case "type": type = propKey; break; @@ -13399,7 +13470,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$202, + propKey$207, propKey, nextProps, lastProp @@ -13418,7 +13489,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$202 = null; + propKey = value = defaultValue = propKey$207 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -13449,7 +13520,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$202 = type; + propKey$207 = type; break; case "defaultValue": defaultValue = type; @@ -13470,15 +13541,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$202 - ? updateOptions(domElement, !!lastProps, propKey$202, !1) + null != propKey$207 + ? updateOptions(domElement, !!lastProps, propKey$207, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$202 = null; + propKey = propKey$207 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -13502,7 +13573,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$202 = name; + propKey$207 = name; break; case "defaultValue": propKey = name; @@ -13516,17 +13587,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$202, propKey); + updateTextarea(domElement, propKey$207, propKey); return; case "option": - for (var propKey$218 in lastProps) + for (var propKey$223 in lastProps) if ( - ((propKey$202 = lastProps[propKey$218]), - lastProps.hasOwnProperty(propKey$218) && - null != propKey$202 && - !nextProps.hasOwnProperty(propKey$218)) + ((propKey$207 = lastProps[propKey$223]), + lastProps.hasOwnProperty(propKey$223) && + null != propKey$207 && + !nextProps.hasOwnProperty(propKey$223)) ) - switch (propKey$218) { + switch (propKey$223) { case "selected": domElement.selected = !1; break; @@ -13534,33 +13605,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$218, + propKey$223, null, nextProps, - propKey$202 + propKey$207 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$202 = nextProps[lastDefaultValue]), + ((propKey$207 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$202 !== propKey && - (null != propKey$202 || null != propKey)) + propKey$207 !== propKey && + (null != propKey$207 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$202 && - "function" !== typeof propKey$202 && - "symbol" !== typeof propKey$202; + propKey$207 && + "function" !== typeof propKey$207 && + "symbol" !== typeof propKey$207; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$202, + propKey$207, nextProps, propKey ); @@ -13581,24 +13652,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$223 in lastProps) - (propKey$202 = lastProps[propKey$223]), - lastProps.hasOwnProperty(propKey$223) && - null != propKey$202 && - !nextProps.hasOwnProperty(propKey$223) && - setProp(domElement, tag, propKey$223, null, nextProps, propKey$202); + for (var propKey$228 in lastProps) + (propKey$207 = lastProps[propKey$228]), + lastProps.hasOwnProperty(propKey$228) && + null != propKey$207 && + !nextProps.hasOwnProperty(propKey$228) && + setProp(domElement, tag, propKey$228, null, nextProps, propKey$207); for (checked in nextProps) if ( - ((propKey$202 = nextProps[checked]), + ((propKey$207 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$202 !== propKey && - (null != propKey$202 || null != propKey)) + propKey$207 !== propKey && + (null != propKey$207 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$202) + if (null != propKey$207) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -13606,7 +13677,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$202, + propKey$207, nextProps, propKey ); @@ -13614,49 +13685,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$228 in lastProps) - (propKey$202 = lastProps[propKey$228]), - lastProps.hasOwnProperty(propKey$228) && - void 0 !== propKey$202 && - !nextProps.hasOwnProperty(propKey$228) && + for (var propKey$233 in lastProps) + (propKey$207 = lastProps[propKey$233]), + lastProps.hasOwnProperty(propKey$233) && + void 0 !== propKey$207 && + !nextProps.hasOwnProperty(propKey$233) && setPropOnCustomElement( domElement, tag, - propKey$228, + propKey$233, void 0, nextProps, - propKey$202 + propKey$207 ); for (defaultChecked in nextProps) - (propKey$202 = nextProps[defaultChecked]), + (propKey$207 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$202 === propKey || - (void 0 === propKey$202 && void 0 === propKey) || + propKey$207 === propKey || + (void 0 === propKey$207 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$202, + propKey$207, nextProps, propKey ); return; } } - for (var propKey$233 in lastProps) - (propKey$202 = lastProps[propKey$233]), - lastProps.hasOwnProperty(propKey$233) && - null != propKey$202 && - !nextProps.hasOwnProperty(propKey$233) && - setProp(domElement, tag, propKey$233, null, nextProps, propKey$202); + for (var propKey$238 in lastProps) + (propKey$207 = lastProps[propKey$238]), + lastProps.hasOwnProperty(propKey$238) && + null != propKey$207 && + !nextProps.hasOwnProperty(propKey$238) && + setProp(domElement, tag, propKey$238, null, nextProps, propKey$207); for (lastProp in nextProps) - (propKey$202 = nextProps[lastProp]), + (propKey$207 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$202 === propKey || - (null == propKey$202 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$202, nextProps, propKey); + propKey$207 === propKey || + (null == propKey$207 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$207, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -14258,26 +14329,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$241 = getResourcesFromRoot( + var styles$246 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$242 = styles$241.get(type); - resource$242 || + resource$247 = styles$246.get(type); + resource$247 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$242 = { + (resource$247 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$241.set(type, resource$242), - (styles$241 = JSCompiler_inline_result.querySelector( + styles$246.set(type, resource$247), + (styles$246 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$241._p && - ((resource$242.instance = styles$241), - (resource$242.state.loading = 5)), + !styles$246._p && + ((resource$247.instance = styles$246), + (resource$247.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -14290,16 +14361,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$241 || + styles$246 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$242.state + resource$247.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$242; + return resource$247; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -14396,37 +14467,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$247 = hoistableRoot.querySelector( + var instance$252 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$247) + if (instance$252) return ( (resource.state.loading |= 4), - (resource.instance = instance$247), - markNodeAsHoistable(instance$247), - instance$247 + (resource.instance = instance$252), + markNodeAsHoistable(instance$252), + instance$252 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$247 = ( + instance$252 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$247); - var linkInstance = instance$247; + markNodeAsHoistable(instance$252); + var linkInstance = instance$252; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$247, "link", instance); + setInitialProperties(instance$252, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$247, props.precedence, hoistableRoot); - return (resource.instance = instance$247); + insertStylesheet(instance$252, props.precedence, hoistableRoot); + return (resource.instance = instance$252); case "script": - instance$247 = getScriptKey(props.src); + instance$252 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$247) + getScriptSelectorFromKey(instance$252) )) ) return ( @@ -14435,7 +14506,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$247))) + if ((styleProps = preloadPropsMap.get(instance$252))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -15459,16 +15530,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1699 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1708 = React.version; if ( - "19.0.0-experimental-380f5d67-20241113" !== - isomorphicReactPackageVersion$jscomp$inline_1699 + "19.0.0-experimental-b01722d5-20241114" !== + isomorphicReactPackageVersion$jscomp$inline_1708 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1699, - "19.0.0-experimental-380f5d67-20241113" + isomorphicReactPackageVersion$jscomp$inline_1708, + "19.0.0-experimental-b01722d5-20241114" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15488,25 +15559,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2174 = { +var internals$jscomp$inline_2186 = { bundleType: 0, - version: "19.0.0-experimental-380f5d67-20241113", + version: "19.0.0-experimental-b01722d5-20241114", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-380f5d67-20241113" + reconcilerVersion: "19.0.0-experimental-b01722d5-20241114" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2175 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2187 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2175.isDisabled && - hook$jscomp$inline_2175.supportsFiber + !hook$jscomp$inline_2187.isDisabled && + hook$jscomp$inline_2187.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2175.inject( - internals$jscomp$inline_2174 + (rendererID = hook$jscomp$inline_2187.inject( + internals$jscomp$inline_2186 )), - (injectedHook = hook$jscomp$inline_2175); + (injectedHook = hook$jscomp$inline_2187); } catch (err) {} } exports.createComponentSelector = function (component) { @@ -15749,4 +15820,4 @@ exports.observeVisibleRects = function ( } }; }; -exports.version = "19.0.0-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js index b42e06fa81798..fb5a496e7b463 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js @@ -416,7 +416,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-experimental-380f5d67-20241113"; + exports.version = "19.0.0-experimental-b01722d5-20241114"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js index f448262843566..896a2a2974a6a 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js @@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js index dd681736496e0..193dffe155d92 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js @@ -336,5 +336,5 @@ })) : Internals.d.m(href)); }; - exports.version = "19.0.0-experimental-380f5d67-20241113"; + exports.version = "19.0.0-experimental-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js index 4fe0342ce72c7..6323eeaa9ff39 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js @@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) { }); } else Internals.d.m(href); }; -exports.version = "19.0.0-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom-experimental/package.json b/packages/next/src/compiled/react-dom-experimental/package.json index 45cfad08ada6b..8e84edabbd474 100644 --- a/packages/next/src/compiled/react-dom-experimental/package.json +++ b/packages/next/src/compiled/react-dom-experimental/package.json @@ -72,10 +72,10 @@ "./package.json": "./package.json" }, "dependencies": { - "scheduler": "0.0.0-experimental-380f5d67-20241113" + "scheduler": "0.0.0-experimental-b01722d5-20241114" }, "peerDependencies": { - "react": "0.0.0-experimental-380f5d67-20241113" + "react": "0.0.0-experimental-b01722d5-20241114" }, "browser": { "./server.js": "./server.browser.js", diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js index ca4bd7dc326a4..76b7b2e44b034 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js @@ -1002,28 +1002,40 @@ var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes, + warmLanes = root.warmLanes; + root = 0 !== root.finishedLanes; 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)) + : root || + ((warmLanes = nonIdlePendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : root || + ((warmLanes = pendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (warmLanes = wipLanes & -wipLanes), + suspendedLanes >= warmLanes || + (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) ? wipLanes : nextLanes; } @@ -1108,7 +1120,9 @@ root, finishedLanes, remainingLanes, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; @@ -1119,17 +1133,17 @@ root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - finishedLanes = root.entanglements; - var expirationTimes = root.expirationTimes, + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index = 31 - clz32(remainingLanes); - previouslyPendingLanes = 1 << index; - finishedLanes[index] = 0; + var index = 31 - clz32(remainingLanes), + lane = 1 << index; + entanglements[index] = 0; expirationTimes[index] = -1; var hiddenUpdatesForLane = hiddenUpdates[index]; if (null !== hiddenUpdatesForLane) @@ -1141,9 +1155,14 @@ var update = hiddenUpdatesForLane[index]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~previouslyPendingLanes; + remainingLanes &= ~lane; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -8656,32 +8675,32 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2310; - var JSCompiler_object_inline_stack_2311 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2317; + var JSCompiler_object_inline_stack_2318 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2312 = !1; + var JSCompiler_object_inline_componentStack_2319 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2310 = didSuspend) || - (JSCompiler_object_inline_digest_2310 = + (JSCompiler_object_inline_digest_2317 = didSuspend) || + (JSCompiler_object_inline_digest_2317 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2310 && - ((JSCompiler_object_inline_componentStack_2312 = !0), + JSCompiler_object_inline_digest_2317 && + ((JSCompiler_object_inline_componentStack_2319 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2310 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2317 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2312 + JSCompiler_object_inline_componentStack_2319 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2309 = nextHydratableInstance; + var JSCompiler_object_inline_message_2316 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2309)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2316)) { c: { - var instance = JSCompiler_object_inline_message_2309; + var instance = JSCompiler_object_inline_message_2316; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8722,19 +8741,19 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2309 + JSCompiler_object_inline_message_2316 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2309 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2316 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2309 && - ((JSCompiler_object_inline_message_2309 = - JSCompiler_object_inline_message_2309.dehydrated), - null !== JSCompiler_object_inline_message_2309) + null !== JSCompiler_object_inline_message_2316 && + ((JSCompiler_object_inline_message_2316 = + JSCompiler_object_inline_message_2316.dehydrated), + null !== JSCompiler_object_inline_message_2316) ) return ( - JSCompiler_object_inline_message_2309.data === + JSCompiler_object_inline_message_2316.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -8742,58 +8761,58 @@ ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2309 = - JSCompiler_object_inline_stack_2311.children; - JSCompiler_object_inline_stack_2311 = - JSCompiler_object_inline_stack_2311.fallback; - if (JSCompiler_object_inline_componentStack_2312) + JSCompiler_object_inline_message_2316 = + JSCompiler_object_inline_stack_2318.children; + JSCompiler_object_inline_stack_2318 = + JSCompiler_object_inline_stack_2318.fallback; + if (JSCompiler_object_inline_componentStack_2319) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2312 = + (JSCompiler_object_inline_componentStack_2319 = workInProgress.mode), - (JSCompiler_object_inline_message_2309 = + (JSCompiler_object_inline_message_2316 = mountWorkInProgressOffscreenFiber( { mode: "hidden", - children: JSCompiler_object_inline_message_2309 + children: JSCompiler_object_inline_message_2316 }, - JSCompiler_object_inline_componentStack_2312 + JSCompiler_object_inline_componentStack_2319 )), - (JSCompiler_object_inline_stack_2311 = createFiberFromFragment( - JSCompiler_object_inline_stack_2311, - JSCompiler_object_inline_componentStack_2312, + (JSCompiler_object_inline_stack_2318 = createFiberFromFragment( + JSCompiler_object_inline_stack_2318, + JSCompiler_object_inline_componentStack_2319, renderLanes, null )), - (JSCompiler_object_inline_message_2309.return = workInProgress), - (JSCompiler_object_inline_stack_2311.return = workInProgress), - (JSCompiler_object_inline_message_2309.sibling = - JSCompiler_object_inline_stack_2311), - (workInProgress.child = JSCompiler_object_inline_message_2309), - (JSCompiler_object_inline_componentStack_2312 = + (JSCompiler_object_inline_message_2316.return = workInProgress), + (JSCompiler_object_inline_stack_2318.return = workInProgress), + (JSCompiler_object_inline_message_2316.sibling = + JSCompiler_object_inline_stack_2318), + (workInProgress.child = JSCompiler_object_inline_message_2316), + (JSCompiler_object_inline_componentStack_2319 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2312.memoizedState = + (JSCompiler_object_inline_componentStack_2319.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2312.childLanes = + (JSCompiler_object_inline_componentStack_2319.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2310, + JSCompiler_object_inline_digest_2317, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2311 + JSCompiler_object_inline_stack_2318 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2309 + JSCompiler_object_inline_message_2316 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2309 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2309) + ((JSCompiler_object_inline_message_2316 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2316) ) { if (didSuspend) workInProgress.flags & 256 @@ -8810,95 +8829,95 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2312 = - JSCompiler_object_inline_stack_2311.fallback), - (JSCompiler_object_inline_message_2309 = workInProgress.mode), - (JSCompiler_object_inline_stack_2311 = + (JSCompiler_object_inline_componentStack_2319 = + JSCompiler_object_inline_stack_2318.fallback), + (JSCompiler_object_inline_message_2316 = workInProgress.mode), + (JSCompiler_object_inline_stack_2318 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2311.children + children: JSCompiler_object_inline_stack_2318.children }, - JSCompiler_object_inline_message_2309 + JSCompiler_object_inline_message_2316 )), - (JSCompiler_object_inline_componentStack_2312 = + (JSCompiler_object_inline_componentStack_2319 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2312, - JSCompiler_object_inline_message_2309, + JSCompiler_object_inline_componentStack_2319, + JSCompiler_object_inline_message_2316, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2312.flags |= 2), - (JSCompiler_object_inline_stack_2311.return = workInProgress), - (JSCompiler_object_inline_componentStack_2312.return = + (JSCompiler_object_inline_componentStack_2319.flags |= 2), + (JSCompiler_object_inline_stack_2318.return = workInProgress), + (JSCompiler_object_inline_componentStack_2319.return = workInProgress), - (JSCompiler_object_inline_stack_2311.sibling = - JSCompiler_object_inline_componentStack_2312), - (workInProgress.child = JSCompiler_object_inline_stack_2311), + (JSCompiler_object_inline_stack_2318.sibling = + JSCompiler_object_inline_componentStack_2319), + (workInProgress.child = JSCompiler_object_inline_stack_2318), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2311 = workInProgress.child), - (JSCompiler_object_inline_stack_2311.memoizedState = + (JSCompiler_object_inline_stack_2318 = workInProgress.child), + (JSCompiler_object_inline_stack_2318.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2311.childLanes = + (JSCompiler_object_inline_stack_2318.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2310, + JSCompiler_object_inline_digest_2317, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2312)); + JSCompiler_object_inline_componentStack_2319)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_message_2309.data === + JSCompiler_object_inline_message_2316.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_digest_2310 = - JSCompiler_object_inline_message_2309.nextSibling && - JSCompiler_object_inline_message_2309.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2310) { - JSCompiler_temp = JSCompiler_object_inline_digest_2310.dgst; - var message = JSCompiler_object_inline_digest_2310.msg; - instance = JSCompiler_object_inline_digest_2310.stck; - var componentStack = JSCompiler_object_inline_digest_2310.cstck; + JSCompiler_object_inline_digest_2317 = + JSCompiler_object_inline_message_2316.nextSibling && + JSCompiler_object_inline_message_2316.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2317) { + JSCompiler_temp = JSCompiler_object_inline_digest_2317.dgst; + var message = JSCompiler_object_inline_digest_2317.msg; + instance = JSCompiler_object_inline_digest_2317.stck; + var componentStack = JSCompiler_object_inline_digest_2317.cstck; } - JSCompiler_object_inline_message_2309 = message; - JSCompiler_object_inline_digest_2310 = JSCompiler_temp; - JSCompiler_object_inline_stack_2311 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2312 = + JSCompiler_object_inline_message_2316 = message; + JSCompiler_object_inline_digest_2317 = JSCompiler_temp; + JSCompiler_object_inline_stack_2318 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2319 = componentStack; - JSCompiler_object_inline_componentStack_2312 = - JSCompiler_object_inline_message_2309 - ? Error(JSCompiler_object_inline_message_2309) + JSCompiler_object_inline_componentStack_2319 = + JSCompiler_object_inline_message_2316 + ? Error(JSCompiler_object_inline_message_2316) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_componentStack_2312.stack = - JSCompiler_object_inline_stack_2311 || ""; - JSCompiler_object_inline_componentStack_2312.digest = - JSCompiler_object_inline_digest_2310; - JSCompiler_object_inline_digest_2310 = + JSCompiler_object_inline_componentStack_2319.stack = + JSCompiler_object_inline_stack_2318 || ""; + JSCompiler_object_inline_componentStack_2319.digest = + JSCompiler_object_inline_digest_2317; + JSCompiler_object_inline_digest_2317 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; - JSCompiler_object_inline_stack_2311 = { - value: JSCompiler_object_inline_componentStack_2312, + JSCompiler_object_inline_stack_2318 = { + value: JSCompiler_object_inline_componentStack_2319, source: null, - stack: JSCompiler_object_inline_digest_2310 + stack: JSCompiler_object_inline_digest_2317 }; - "string" === typeof JSCompiler_object_inline_digest_2310 && + "string" === typeof JSCompiler_object_inline_digest_2317 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2312, - JSCompiler_object_inline_stack_2311 + JSCompiler_object_inline_componentStack_2319, + JSCompiler_object_inline_stack_2318 ); - queueHydrationError(JSCompiler_object_inline_stack_2311); + queueHydrationError(JSCompiler_object_inline_stack_2318); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -8912,25 +8931,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_digest_2310 = + (JSCompiler_object_inline_digest_2317 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2310) + didReceiveUpdate || JSCompiler_object_inline_digest_2317) ) { - JSCompiler_object_inline_digest_2310 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2310) { - JSCompiler_object_inline_stack_2311 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2311 & 42)) - JSCompiler_object_inline_stack_2311 = 1; + JSCompiler_object_inline_digest_2317 = workInProgressRoot; + if (null !== JSCompiler_object_inline_digest_2317) { + JSCompiler_object_inline_stack_2318 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2318 & 42)) + JSCompiler_object_inline_stack_2318 = 1; else - switch (JSCompiler_object_inline_stack_2311) { + switch (JSCompiler_object_inline_stack_2318) { case 2: - JSCompiler_object_inline_stack_2311 = 1; + JSCompiler_object_inline_stack_2318 = 1; break; case 8: - JSCompiler_object_inline_stack_2311 = 4; + JSCompiler_object_inline_stack_2318 = 4; break; case 32: - JSCompiler_object_inline_stack_2311 = 16; + JSCompiler_object_inline_stack_2318 = 16; break; case 128: case 256: @@ -8951,40 +8970,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2311 = 64; + JSCompiler_object_inline_stack_2318 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2311 = 134217728; + JSCompiler_object_inline_stack_2318 = 134217728; break; default: - JSCompiler_object_inline_stack_2311 = 0; + JSCompiler_object_inline_stack_2318 = 0; } - JSCompiler_object_inline_stack_2311 = + JSCompiler_object_inline_stack_2318 = 0 !== - (JSCompiler_object_inline_stack_2311 & - (JSCompiler_object_inline_digest_2310.suspendedLanes | + (JSCompiler_object_inline_stack_2318 & + (JSCompiler_object_inline_digest_2317.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2311; + : JSCompiler_object_inline_stack_2318; if ( - 0 !== JSCompiler_object_inline_stack_2311 && - JSCompiler_object_inline_stack_2311 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2318 && + JSCompiler_object_inline_stack_2318 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2311), + ((prevState.retryLane = JSCompiler_object_inline_stack_2318), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2311 + JSCompiler_object_inline_stack_2318 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2310, + JSCompiler_object_inline_digest_2317, current, - JSCompiler_object_inline_stack_2311 + JSCompiler_object_inline_stack_2318 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_message_2309.data === + JSCompiler_object_inline_message_2316.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -8992,7 +9011,7 @@ renderLanes ); } else - JSCompiler_object_inline_message_2309.data === + JSCompiler_object_inline_message_2316.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9000,12 +9019,12 @@ null, current )), - (JSCompiler_object_inline_message_2309._reactRetry = + (JSCompiler_object_inline_message_2316._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2309.nextSibling + JSCompiler_object_inline_message_2316.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9023,57 +9042,57 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2311.children + JSCompiler_object_inline_stack_2318.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2312) + if (JSCompiler_object_inline_componentStack_2319) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2312 = - JSCompiler_object_inline_stack_2311.fallback), - (JSCompiler_object_inline_message_2309 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2319 = + JSCompiler_object_inline_stack_2318.fallback), + (JSCompiler_object_inline_message_2316 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2311 = createWorkInProgress( + (JSCompiler_object_inline_stack_2318 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2311.children + children: JSCompiler_object_inline_stack_2318.children } )), - (JSCompiler_object_inline_stack_2311.subtreeFlags = + (JSCompiler_object_inline_stack_2318.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_componentStack_2312 = + ? (JSCompiler_object_inline_componentStack_2319 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2312 + JSCompiler_object_inline_componentStack_2319 )) - : ((JSCompiler_object_inline_componentStack_2312 = + : ((JSCompiler_object_inline_componentStack_2319 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2312, - JSCompiler_object_inline_message_2309, + JSCompiler_object_inline_componentStack_2319, + JSCompiler_object_inline_message_2316, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2312.flags |= 2)), - (JSCompiler_object_inline_componentStack_2312.return = + (JSCompiler_object_inline_componentStack_2319.flags |= 2)), + (JSCompiler_object_inline_componentStack_2319.return = workInProgress), - (JSCompiler_object_inline_stack_2311.return = workInProgress), - (JSCompiler_object_inline_stack_2311.sibling = - JSCompiler_object_inline_componentStack_2312), - (workInProgress.child = JSCompiler_object_inline_stack_2311), - (JSCompiler_object_inline_stack_2311 = - JSCompiler_object_inline_componentStack_2312), - (JSCompiler_object_inline_componentStack_2312 = workInProgress.child), - (JSCompiler_object_inline_message_2309 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2309 - ? (JSCompiler_object_inline_message_2309 = + (JSCompiler_object_inline_stack_2318.return = workInProgress), + (JSCompiler_object_inline_stack_2318.sibling = + JSCompiler_object_inline_componentStack_2319), + (workInProgress.child = JSCompiler_object_inline_stack_2318), + (JSCompiler_object_inline_stack_2318 = + JSCompiler_object_inline_componentStack_2319), + (JSCompiler_object_inline_componentStack_2319 = workInProgress.child), + (JSCompiler_object_inline_message_2316 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2316 + ? (JSCompiler_object_inline_message_2316 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2309.cachePool), + JSCompiler_object_inline_message_2316.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9081,37 +9100,37 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2309 = { + (JSCompiler_object_inline_message_2316 = { baseLanes: - JSCompiler_object_inline_message_2309.baseLanes | renderLanes, + JSCompiler_object_inline_message_2316.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2312.memoizedState = - JSCompiler_object_inline_message_2309), - (JSCompiler_object_inline_componentStack_2312.childLanes = + (JSCompiler_object_inline_componentStack_2319.memoizedState = + JSCompiler_object_inline_message_2316), + (JSCompiler_object_inline_componentStack_2319.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2310, + JSCompiler_object_inline_digest_2317, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2311 + JSCompiler_object_inline_stack_2318 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2311.children + children: JSCompiler_object_inline_stack_2318.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2310 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2310 + ((JSCompiler_object_inline_digest_2317 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2317 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2310.push(current)); + : JSCompiler_object_inline_digest_2317.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -13430,20 +13449,34 @@ (resource.state.loading & Inserted) !== NotLoaded ) workInProgress.flags &= -16777217; - else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) - if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; - else + else if ( + ((workInProgress.flags |= 16777216), !preloadResource(resource)) + ) { + resource = suspenseHandlerStackCursor.current; + if ( + null !== resource && + ((workInProgressRootRenderLanes & 4194176) === + workInProgressRootRenderLanes + ? null !== shellBoundary + : ((workInProgressRootRenderLanes & 62914560) !== + workInProgressRootRenderLanes && + 0 === (workInProgressRootRenderLanes & 536870912)) || + resource !== shellBoundary) + ) throw ( ((suspendedThenable = noopSuspenseyCommitThenable), SuspenseyCommitException) ); + workInProgress.flags |= 8192; + } } function scheduleRetryEffect(workInProgress, retryQueue) { null !== retryQueue && (workInProgress.flags |= 4); workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue)); + (workInProgress.lanes |= retryQueue), + (workInProgressSuspendedRetryLanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -14240,7 +14273,8 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); markRootUpdated$1(root, lane); if ( @@ -14282,25 +14316,36 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 )), ensureRootIsScheduled(root); } function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var exitStatus = (forceSync = + var shouldTimeSlice = (!forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) || - !1) + checkIfRootIsPrerendering(root, lanes), + exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes, !0), - renderWasConcurrent = forceSync; + renderWasConcurrent = shouldTimeSlice; do { - if (exitStatus === RootInProgress) break; - else if (exitStatus === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + if (exitStatus === RootInProgress) { + workInProgressRootIsPrerendering && + !shouldTimeSlice && + markRootSuspended(root, lanes, 0, !1); + break; + } else if (exitStatus === RootDidNotComplete) + markRootSuspended( + root, + lanes, + 0, + !workInProgressRootDidSkipSuspendedSiblings + ); else { forceSync = root.current.alternate; if ( @@ -14365,11 +14410,11 @@ } if (exitStatus === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended(root, lanes, 0, !0); break; } a: { - renderWasConcurrent = root; + shouldTimeSlice = root; switch (exitStatus) { case RootInProgress: case RootFatalErrored: @@ -14377,9 +14422,10 @@ case RootSuspendedWithDelay: if ((lanes & 4194176) === lanes) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -14393,11 +14439,11 @@ default: throw Error("Unknown root exit status."); } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; if (null !== ReactSharedInternals.actQueue) commitRoot( - renderWasConcurrent, + shouldTimeSlice, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, @@ -14418,15 +14464,16 @@ 10 < exitStatus) ) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -14445,7 +14492,7 @@ break a; } commitRootWhenReady( - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -14489,11 +14536,8 @@ completedRenderStartTime, completedRenderEndTime ) { - didSkipSuspendedSiblings = finishedWork.subtreeFlags; - if ( - didSkipSuspendedSiblings & 8192 || - 16785408 === (didSkipSuspendedSiblings & 16785408) - ) + var subtreeFlags = finishedWork.subtreeFlags; + if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -14515,7 +14559,12 @@ completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended( + root, + lanes, + spawnedLane, + !didSkipSuspendedSiblings + ); return; } commitRoot( @@ -14565,19 +14614,22 @@ } return !0; } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didAttemptEntireTree + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didAttemptEntireTree && (root.warmLanes |= suspendedLanes); + didAttemptEntireTree = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didAttemptEntireTree[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -14621,7 +14673,7 @@ workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); + workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = @@ -14659,12 +14711,7 @@ current = null; thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), - (workInProgressSuspendedReason = - shouldRemainOnPreviousScreen() && - 0 === (workInProgressRootSkippedLanes & 134217727) && - 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) - ? SuspendedOnData - : SuspendedOnImmediate)) + (workInProgressSuspendedReason = SuspendedOnImmediate)) : thrownValue === SuspenseyCommitException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = SuspendedOnInstance)) @@ -14715,21 +14762,6 @@ ); } } - function shouldRemainOnPreviousScreen() { - var handler = suspenseHandlerStackCursor.current; - return null === handler - ? !0 - : (workInProgressRootRenderLanes & 4194176) === - workInProgressRootRenderLanes - ? null === shellBoundary - ? !0 - : !1 - : (workInProgressRootRenderLanes & 62914560) === - workInProgressRootRenderLanes || - 0 !== (workInProgressRootRenderLanes & 536870912) - ? handler === shellBoundary - : !1; - } function pushDispatcher() { var prevDispatcher = ReactSharedInternals.H; ReactSharedInternals.H = ContextOnlyDispatcher; @@ -14742,16 +14774,22 @@ } function renderDidSuspendDelayIfPossible() { workInProgressRootExitStatus = RootSuspendedWithDelay; + workInProgressRootDidSkipSuspendedSiblings || + ((workInProgressRootRenderLanes & 4194176) !== + workInProgressRootRenderLanes && + null !== suspenseHandlerStackCursor.current) || + (workInProgressRootIsPrerendering = !0); (0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) || null === workInProgressRoot || markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); } - function renderRootSync(root, lanes) { + function renderRootSync(root, lanes, shouldYieldForPrerendering) { var prevExecutionContext = executionContext; executionContext |= RenderContext; var prevDispatcher = pushDispatcher(), @@ -14794,6 +14832,13 @@ workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + if ( + shouldYieldForPrerendering && + workInProgressRootIsPrerendering + ) { + memoizedUpdaters = RootInProgress; + break a; + } break; default: (reason = workInProgressSuspendedReason), @@ -14843,7 +14888,11 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } else + workInProgressRootIsPrerendering = checkIfRootIsPrerendering( + root, + lanes + ); markRenderStarted(lanes); a: do try { @@ -15055,7 +15104,12 @@ stopProfilerTimerIfRunningAndRecordDuration(unitOfWork); return current; } - function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { + function throwAndUnwindWorkLoop( + root, + unitOfWork, + thrownValue, + suspendedReason + ) { resetContextDependencies(); resetHooksOnUnwind(unitOfWork); thenableState$1 = null; @@ -15089,9 +15143,25 @@ workInProgress = null; return; } - unitOfWork.flags & 32768 - ? unwindUnitOfWork(unitOfWork, !0) - : completeUnitOfWork(unitOfWork); + if (unitOfWork.flags & 32768) { + if (isHydrating || suspendedReason === SuspendedOnError) root = !0; + else if ( + workInProgressRootIsPrerendering || + 0 !== (workInProgressRootRenderLanes & 536870912) + ) + root = !1; + else if ( + ((workInProgressRootDidSkipSuspendedSiblings = root = !0), + suspendedReason === SuspendedOnData || + suspendedReason === SuspendedOnImmediate || + suspendedReason === SuspendedOnDeprecatedThrowPromise) + ) + (suspendedReason = suspenseHandlerStackCursor.current), + null !== suspendedReason && + 13 === suspendedReason.tag && + (suspendedReason.flags |= 16384); + unwindUnitOfWork(unitOfWork, root); + } else completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; @@ -15202,7 +15272,9 @@ transitions, didIncludeRenderPhaseUpdate, renderPriorityLevel, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ) { do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); @@ -15235,7 +15307,9 @@ root, didIncludeRenderPhaseUpdate, remainingLanes, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), @@ -15252,35 +15326,39 @@ })); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - spawnedLane = ReactDOMSharedInternals.p; - ReactDOMSharedInternals.p = DiscreteEventPriority; - var prevExecutionContext = executionContext; - executionContext |= CommitContext; - commitBeforeMutationEffects(root, finishedWork); - commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted( + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (spawnedLane = ReactDOMSharedInternals.p), + (ReactDOMSharedInternals.p = DiscreteEventPriority), + (updatedLanes = executionContext), + (executionContext |= CommitContext), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffects( + root, + finishedWork, didIncludeRenderPhaseUpdate - ); - commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate); - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(); - requestPaint(); - executionContext = prevExecutionContext; - ReactDOMSharedInternals.p = spawnedLane; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + ), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted( + didIncludeRenderPhaseUpdate + ), + commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(), + requestPaint(), + (executionContext = updatedLanes), + (ReactDOMSharedInternals.p = spawnedLane), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); (transitions = rootDoesHavePassiveEffects) ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -15798,43 +15876,45 @@ (root.callbackNode = null), (root.callbackPriority = 0) ); - if (0 !== (suspendedLanes & 3)) - return ( - null !== pingedLanes && cancelCallback(pingedLanes), - (root.callbackPriority = 2), - (root.callbackNode = null), - 2 - ); - currentTime = suspendedLanes & -suspendedLanes; if ( - currentTime !== root.callbackPriority || - (null !== ReactSharedInternals.actQueue && - pingedLanes !== fakeActCallbackNode) - ) - cancelCallback(pingedLanes); - else return currentTime; - switch (lanesToEventPriority(suspendedLanes)) { - case DiscreteEventPriority: - case ContinuousEventPriority: - suspendedLanes = UserBlockingPriority; - break; - case DefaultEventPriority: - suspendedLanes = NormalPriority$1; - break; - case IdleEventPriority: - suspendedLanes = IdlePriority; - break; - default: - suspendedLanes = NormalPriority$1; - } - pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); - null !== ReactSharedInternals.actQueue - ? (ReactSharedInternals.actQueue.push(pingedLanes), - (suspendedLanes = fakeActCallbackNode)) - : (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes)); - root.callbackPriority = currentTime; - root.callbackNode = suspendedLanes; - return currentTime; + 0 === (suspendedLanes & 3) || + checkIfRootIsPrerendering(root, suspendedLanes) + ) { + currentTime = suspendedLanes & -suspendedLanes; + if ( + currentTime !== root.callbackPriority || + (null !== ReactSharedInternals.actQueue && + pingedLanes !== fakeActCallbackNode) + ) + cancelCallback(pingedLanes); + else return currentTime; + switch (lanesToEventPriority(suspendedLanes)) { + case DiscreteEventPriority: + case ContinuousEventPriority: + suspendedLanes = UserBlockingPriority; + break; + case DefaultEventPriority: + suspendedLanes = NormalPriority$1; + break; + case IdleEventPriority: + suspendedLanes = IdlePriority; + break; + default: + suspendedLanes = NormalPriority$1; + } + pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); + null !== ReactSharedInternals.actQueue + ? (ReactSharedInternals.actQueue.push(pingedLanes), + (suspendedLanes = fakeActCallbackNode)) + : (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes)); + root.callbackPriority = currentTime; + root.callbackNode = suspendedLanes; + return currentTime; + } + null !== pingedLanes && cancelCallback(pingedLanes); + root.callbackPriority = 2; + root.callbackNode = null; + return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { nestedUpdateScheduled = currentUpdateIsNested = !1; @@ -23860,6 +23940,7 @@ workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -24438,11 +24519,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-b01722d5-20241114" !== 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-rc-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24479,11 +24560,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-rc-380f5d67-20241113", + version: "19.0.0-rc-b01722d5-20241114", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-380f5d67-20241113" + reconcilerVersion: "19.0.0-rc-b01722d5-20241114" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -24627,7 +24708,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.0.0-rc-380f5d67-20241113"; + exports.version = "19.0.0-rc-b01722d5-20241114"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js index 718afc30a5827..882542ef45b5c 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js @@ -597,28 +597,40 @@ 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, + warmLanes = root.warmLanes; + root = 0 !== root.finishedLanes; 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)) + : root || + ((warmLanes = nonIdlePendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : root || + ((warmLanes = pendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (warmLanes = wipLanes & -wipLanes), + suspendedLanes >= warmLanes || + (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) ? wipLanes : nextLanes; } @@ -692,7 +704,14 @@ function markRootUpdated$1(root, updateLane) { 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } -function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { +function markRootFinished( + root, + finishedLanes, + remainingLanes, + spawnedLane, + updatedLanes, + suspendedRetryLanes +) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; @@ -702,31 +721,36 @@ function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - finishedLanes = root.entanglements; - var expirationTimes = root.expirationTimes, + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index$6 = 31 - clz32(remainingLanes); - previouslyPendingLanes = 1 << index$6; - finishedLanes[index$6] = 0; - expirationTimes[index$6] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$6]; + var index$7 = 31 - clz32(remainingLanes), + lane = 1 << index$7; + entanglements[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); } - remainingLanes &= ~previouslyPendingLanes; + remainingLanes &= ~lane; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -741,10 +765,10 @@ 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; } } @@ -894,8 +918,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$9 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$9 && "aria-" !== prefix$9) { + var prefix$10 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$10 && "aria-" !== prefix$10) { node.removeAttribute(name); return; } @@ -1228,15 +1252,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$15 in styles) - (styleName = styles[styleName$15]), - styles.hasOwnProperty(styleName$15) && - prevStyles[styleName$15] !== styleName && - setValueForStyle(node, styleName$15, styleName); - } else for (var styleName$16 in styles) - styles.hasOwnProperty(styleName$16) && - setValueForStyle(node, styleName$16, styles[styleName$16]); + (styleName = styles[styleName$16]), + styles.hasOwnProperty(styleName$16) && + prevStyles[styleName$16] !== styleName && + setValueForStyle(node, styleName$16, styleName); + } else + for (var styleName$17 in styles) + styles.hasOwnProperty(styleName$17) && + setValueForStyle(node, styleName$17, styles[styleName$17]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -1965,19 +1989,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$278; + var JSCompiler_inline_result$jscomp$283; if (canUseDOM) { - var isSupported$jscomp$inline_413 = "oninput" in document; - if (!isSupported$jscomp$inline_413) { - var element$jscomp$inline_414 = document.createElement("div"); - element$jscomp$inline_414.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_413 = - "function" === typeof element$jscomp$inline_414.oninput; + var isSupported$jscomp$inline_418 = "oninput" in document; + if (!isSupported$jscomp$inline_418) { + var element$jscomp$inline_419 = document.createElement("div"); + element$jscomp$inline_419.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_418 = + "function" === typeof element$jscomp$inline_419.oninput; } - JSCompiler_inline_result$jscomp$278 = isSupported$jscomp$inline_413; - } else JSCompiler_inline_result$jscomp$278 = !1; + JSCompiler_inline_result$jscomp$283 = isSupported$jscomp$inline_418; + } else JSCompiler_inline_result$jscomp$283 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$278 && + JSCompiler_inline_result$jscomp$283 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -3883,7 +3907,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$53 = !1; + didReadFromEntangledAsyncAction$54 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -3904,11 +3928,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$53 = !0); + (didReadFromEntangledAsyncAction$54 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$53 = !0); + (didReadFromEntangledAsyncAction$54 = !0); continue; } else (updateLane = { @@ -3954,7 +3978,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$53 && + didReadFromEntangledAsyncAction$54 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4156,8 +4180,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$59) { - onActionError(actionQueue, node, error$59); + } catch (error$60) { + onActionError(actionQueue, node, error$60); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4588,10 +4612,10 @@ function refreshCache(fiber) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$62 = enqueueUpdate(provider, fiber, lane); - null !== root$62 && - (scheduleUpdateOnFiber(root$62, provider, lane), - entangleTransitions(root$62, provider, lane)); + var root$63 = enqueueUpdate(provider, fiber, lane); + null !== root$63 && + (scheduleUpdateOnFiber(root$63, provider, lane), + entangleTransitions(root$63, provider, lane)); provider = { cache: createCache() }; fiber.payload = provider; return; @@ -5118,9 +5142,9 @@ function resolveClassComponentProps(Component, baseProps) { } if ((Component = Component.defaultProps)) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$66 in Component) - void 0 === newProps[propName$66] && - (newProps[propName$66] = Component[propName$66]); + for (var propName$67 in Component) + void 0 === newProps[propName$67] && + (newProps[propName$67] = Component[propName$67]); } return newProps; } @@ -5166,9 +5190,9 @@ function logUncaughtError(root, errorInfo) { try { var onUncaughtError = root.onUncaughtError; onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack }); - } catch (e$67) { + } catch (e$68) { setTimeout(function () { - throw e$67; + throw e$68; }); } } @@ -5179,9 +5203,9 @@ function logCaughtError(root, boundary, errorInfo) { componentStack: errorInfo.stack, errorBoundary: 1 === boundary.tag ? boundary.stateNode : null }); - } catch (e$68) { + } catch (e$69) { setTimeout(function () { - throw e$68; + throw e$69; }); } } @@ -7571,8 +7595,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { else if ("function" === typeof ref) try { ref(null); - } catch (error$111) { - captureCommitPhaseError(current, nearestMountedAncestor, error$111); + } catch (error$112) { + captureCommitPhaseError(current, nearestMountedAncestor, error$112); } else ref.current = null; } @@ -7706,7 +7730,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$19) { + } catch (e$20) { JSCompiler_temp = null; break a; } @@ -7868,11 +7892,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$110) { + } catch (error$111) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$110 + error$111 ); } } @@ -8026,7 +8050,7 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$118 = hostParentIsContainer; + var prevHostParentIsContainer$119 = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, @@ -8034,7 +8058,7 @@ function commitDeletionEffectsOnFiber( deletedFiber ); hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$118; + hostParentIsContainer = prevHostParentIsContainer$119; if (null !== hostParent) if (hostParentIsContainer) try { @@ -8667,21 +8691,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$112 = JSCompiler_inline_result.stateNode; + var parent$113 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$112, ""), + (setTextContent(parent$113, ""), (JSCompiler_inline_result.flags &= -33)); - var before$113 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$113, parent$112); + var before$114 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$114, parent$113); break; case 3: case 4: - var parent$114 = JSCompiler_inline_result.stateNode.containerInfo, - before$115 = getHostSibling(finishedWork); + var parent$115 = JSCompiler_inline_result.stateNode.containerInfo, + before$116 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$115, - parent$114 + before$116, + parent$115 ); break; default: @@ -9565,20 +9589,32 @@ function markUpdate(workInProgress) { function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4)) workInProgress.flags &= -16777217; - else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) - if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; - else + else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) { + resource = suspenseHandlerStackCursor.current; + if ( + null !== resource && + ((workInProgressRootRenderLanes & 4194176) === + workInProgressRootRenderLanes + ? null !== shellBoundary + : ((workInProgressRootRenderLanes & 62914560) !== + workInProgressRootRenderLanes && + 0 === (workInProgressRootRenderLanes & 536870912)) || + resource !== shellBoundary) + ) throw ( ((suspendedThenable = noopSuspenseyCommitThenable), SuspenseyCommitException) ); + workInProgress.flags |= 8192; + } } function scheduleRetryEffect(workInProgress, retryQueue) { null !== retryQueue && (workInProgress.flags |= 4); workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue)); + (workInProgress.lanes |= retryQueue), + (workInProgressSuspendedRetryLanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -9595,14 +9631,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) { @@ -9612,19 +9648,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; @@ -9901,11 +9937,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 && renderLanes && @@ -9930,8 +9966,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 ( @@ -9939,11 +9975,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; @@ -9968,7 +10004,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), @@ -9978,7 +10014,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; @@ -9991,13 +10027,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 ( @@ -10171,6 +10207,7 @@ var DefaultAsyncDispatcher = { workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -10221,7 +10258,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); markRootUpdated$1(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) @@ -10232,23 +10270,35 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 )), ensureRootIsScheduled(root); } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var exitStatus = (forceSync = + var shouldTimeSlice = (!forceSync && 0 === (lanes & 60) && 0 === (lanes & root$jscomp$0.expiredLanes)) || - !1) + checkIfRootIsPrerendering(root$jscomp$0, lanes), + exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, !0), - renderWasConcurrent = forceSync; + renderWasConcurrent = shouldTimeSlice; do { - if (0 === exitStatus) break; - else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + if (0 === exitStatus) { + workInProgressRootIsPrerendering && + !shouldTimeSlice && + markRootSuspended(root$jscomp$0, lanes, 0, !1); + break; + } else if (6 === exitStatus) + markRootSuspended( + root$jscomp$0, + lanes, + 0, + !workInProgressRootDidSkipSuspendedSiblings + ); else { forceSync = root$jscomp$0.current.alternate; if ( @@ -10308,11 +10358,11 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { } if (1 === exitStatus) { prepareFreshStack(root$jscomp$0, 0); - markRootSuspended(root$jscomp$0, lanes, 0); + markRootSuspended(root$jscomp$0, lanes, 0, !0); break; } a: { - renderWasConcurrent = root$jscomp$0; + shouldTimeSlice = root$jscomp$0; switch (exitStatus) { case 0: case 1: @@ -10320,9 +10370,10 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { case 4: if ((lanes & 4194176) === lanes) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -10336,23 +10387,24 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { default: throw Error(formatProdErrorMessage(329)); } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; if ( (lanes & 62914560) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 300 - now()), - 10 < exitStatus) + ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now()), + 10 < renderWasConcurrent) ) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -10366,12 +10418,12 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { -0, 0 ), - exitStatus + renderWasConcurrent ); break a; } commitRootWhenReady( - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -10414,11 +10466,8 @@ function commitRootWhenReady( completedRenderStartTime, completedRenderEndTime ) { - didSkipSuspendedSiblings = finishedWork.subtreeFlags; - if ( - didSkipSuspendedSiblings & 8192 || - 16785408 === (didSkipSuspendedSiblings & 16785408) - ) + var subtreeFlags = finishedWork.subtreeFlags; + if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -10440,7 +10489,7 @@ function commitRootWhenReady( completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings); return; } commitRoot( @@ -10490,19 +10539,22 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didAttemptEntireTree +) { 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; + didAttemptEntireTree && (root.warmLanes |= suspendedLanes); + didAttemptEntireTree = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$6 = 31 - clz32(lanes), + lane = 1 << index$6; + didAttemptEntireTree[index$6] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10546,7 +10598,7 @@ function prepareFreshStack(root, lanes) { workInProgressSuspendedReason = 0; workInProgressThrownValue = null; workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); + workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); workInProgressRootDidAttachPingListener = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -10566,9 +10618,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; @@ -10580,12 +10632,7 @@ function handleThrow(root, thrownValue) { ReactSharedInternals.H = ContextOnlyDispatcher; thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), - (workInProgressSuspendedReason = - shouldRemainOnPreviousScreen() && - 0 === (workInProgressRootSkippedLanes & 134217727) && - 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) - ? 2 - : 3)) + (workInProgressSuspendedReason = 3)) : thrownValue === SuspenseyCommitException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = 4)) @@ -10605,21 +10652,6 @@ function handleThrow(root, thrownValue) { createCapturedValueAtFiber(thrownValue, root.current) )); } -function shouldRemainOnPreviousScreen() { - var handler = suspenseHandlerStackCursor.current; - return null === handler - ? !0 - : (workInProgressRootRenderLanes & 4194176) === - workInProgressRootRenderLanes - ? null === shellBoundary - ? !0 - : !1 - : (workInProgressRootRenderLanes & 62914560) === - workInProgressRootRenderLanes || - 0 !== (workInProgressRootRenderLanes & 536870912) - ? handler === shellBoundary - : !1; -} function pushDispatcher() { var prevDispatcher = ReactSharedInternals.H; ReactSharedInternals.H = ContextOnlyDispatcher; @@ -10632,16 +10664,22 @@ function pushAsyncDispatcher() { } function renderDidSuspendDelayIfPossible() { workInProgressRootExitStatus = 4; + workInProgressRootDidSkipSuspendedSiblings || + ((workInProgressRootRenderLanes & 4194176) !== + workInProgressRootRenderLanes && + null !== suspenseHandlerStackCursor.current) || + (workInProgressRootIsPrerendering = !0); (0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) || null === workInProgressRoot || markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); } -function renderRootSync(root, lanes) { +function renderRootSync(root, lanes, shouldYieldForPrerendering) { var prevExecutionContext = executionContext; executionContext |= 2; var prevDispatcher = pushDispatcher(), @@ -10668,6 +10706,13 @@ function renderRootSync(root, lanes) { workInProgressSuspendedReason = 0; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + if ( + shouldYieldForPrerendering && + workInProgressRootIsPrerendering + ) { + exitStatus = 0; + break a; + } break; default: (reason = workInProgressSuspendedReason), @@ -10679,8 +10724,8 @@ function renderRootSync(root, lanes) { workLoopSync(); exitStatus = workInProgressRootExitStatus; break; - } catch (thrownValue$159) { - handleThrow(root, thrownValue$159); + } catch (thrownValue$164) { + handleThrow(root, thrownValue$164); } while (1); lanes && root.shellSuspendCounter++; @@ -10706,7 +10751,10 @@ function renderRootConcurrent(root, lanes) { ? ((workInProgressTransitions = null), (workInProgressRootRenderTargetTime = now() + 500), prepareFreshStack(root, lanes)) - : checkIfRootIsPrerendering(root, lanes); + : (workInProgressRootIsPrerendering = checkIfRootIsPrerendering( + root, + lanes + )); a: do try { if (0 !== workInProgressSuspendedReason && null !== workInProgress) { @@ -10790,8 +10838,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$161) { - handleThrow(root, thrownValue$161); + } catch (thrownValue$166) { + handleThrow(root, thrownValue$166); } while (1); lastContextDependency = currentlyRenderingFiber = null; @@ -10849,7 +10897,12 @@ function replaySuspendedUnitOfWork(unitOfWork) { unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } -function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { +function throwAndUnwindWorkLoop( + root, + unitOfWork, + thrownValue, + suspendedReason +) { lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; @@ -10883,9 +10936,23 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - unitOfWork.flags & 32768 - ? unwindUnitOfWork(unitOfWork, !0) - : completeUnitOfWork(unitOfWork); + if (unitOfWork.flags & 32768) { + if (isHydrating || 1 === suspendedReason) root = !0; + else if ( + workInProgressRootIsPrerendering || + 0 !== (workInProgressRootRenderLanes & 536870912) + ) + root = !1; + else if ( + ((workInProgressRootDidSkipSuspendedSiblings = root = !0), + 2 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason) + ) + (suspendedReason = suspenseHandlerStackCursor.current), + null !== suspendedReason && + 13 === suspendedReason.tag && + (suspendedReason.flags |= 16384); + unwindUnitOfWork(unitOfWork, root); + } else completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; @@ -10980,7 +11047,9 @@ function commitRootImpl( transitions, didIncludeRenderPhaseUpdate, renderPriorityLevel, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ) { do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); @@ -11000,7 +11069,9 @@ function commitRootImpl( root, didIncludeRenderPhaseUpdate, remainingLanes, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), @@ -11016,25 +11087,25 @@ function commitRootImpl( return null; })); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - spawnedLane = ReactDOMSharedInternals.p; - ReactDOMSharedInternals.p = 2; - var prevExecutionContext = executionContext; - executionContext |= 4; - commitBeforeMutationEffects(root, finishedWork); - commitMutationEffectsOnFiber(finishedWork, root); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); - requestPaint(); - executionContext = prevExecutionContext; - ReactDOMSharedInternals.p = spawnedLane; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (spawnedLane = ReactDOMSharedInternals.p), + (ReactDOMSharedInternals.p = 2), + (updatedLanes = executionContext), + (executionContext |= 4), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffectsOnFiber(finishedWork, root), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), + commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork), + requestPaint(), + (executionContext = updatedLanes), + (ReactDOMSharedInternals.p = spawnedLane), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -11072,7 +11143,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$165 = rootWithPendingPassiveEffects, + var root$170 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11111,7 +11182,7 @@ function flushPassiveEffects() { } finally { (ReactDOMSharedInternals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$165, remainingLanes); + releaseRootPooledCache(root$170, remainingLanes); } } return !1; @@ -11254,14 +11325,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$167 = firstScheduledRoot; null !== root$167; ) { + for (var root$172 = firstScheduledRoot; null !== root$172; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$167.pendingLanes; + var pendingLanes = root$172.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$167.suspendedLanes, - pingedLanes = root$167.pingedLanes; + var suspendedLanes = root$172.suspendedLanes, + pingedLanes = root$172.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -11275,18 +11346,18 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$167, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$172, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$167, - root$167 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$172, + root$172 === workInProgressRoot ? JSCompiler_inline_result : 0 )), 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$167, JSCompiler_inline_result) || + checkIfRootIsPrerendering(root$172, JSCompiler_inline_result) || ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$167, JSCompiler_inline_result)); - root$167 = root$167.next; + performSyncWorkOnRoot(root$172, JSCompiler_inline_result)); + root$172 = root$172.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -11327,12 +11398,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$4 = 31 - clz32(lanes), - lane = 1 << index$4, - expirationTime = expirationTimes[index$4]; + var index$5 = 31 - clz32(lanes), + 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); lanes &= ~lane; } @@ -11355,37 +11426,37 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { (root.callbackNode = null), (root.callbackPriority = 0) ); - if (0 !== (suspendedLanes & 3)) - return ( - null !== pingedLanes && - null !== pingedLanes && - cancelCallback$1(pingedLanes), - (root.callbackPriority = 2), - (root.callbackNode = null), - 2 - ); - currentTime = suspendedLanes & -suspendedLanes; - if (currentTime === root.callbackPriority) return currentTime; - null !== pingedLanes && cancelCallback$1(pingedLanes); - switch (lanesToEventPriority(suspendedLanes)) { - case 2: - case 8: - suspendedLanes = UserBlockingPriority; - break; - case 32: - suspendedLanes = NormalPriority$1; - break; - case 268435456: - suspendedLanes = IdlePriority; - break; - default: - suspendedLanes = NormalPriority$1; - } - pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); - suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); - root.callbackPriority = currentTime; - root.callbackNode = suspendedLanes; - return currentTime; + if ( + 0 === (suspendedLanes & 3) || + checkIfRootIsPrerendering(root, suspendedLanes) + ) { + currentTime = suspendedLanes & -suspendedLanes; + if (currentTime === root.callbackPriority) return currentTime; + null !== pingedLanes && cancelCallback$1(pingedLanes); + switch (lanesToEventPriority(suspendedLanes)) { + case 2: + case 8: + suspendedLanes = UserBlockingPriority; + break; + case 32: + suspendedLanes = NormalPriority$1; + break; + case 268435456: + suspendedLanes = IdlePriority; + break; + default: + suspendedLanes = NormalPriority$1; + } + pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); + suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); + root.callbackPriority = currentTime; + root.callbackNode = suspendedLanes; + return currentTime; + } + null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes); + root.callbackPriority = 2; + root.callbackNode = null; + return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { var originalCallbackNode = root.callbackNode; @@ -11514,20 +11585,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1430 = 0; - i$jscomp$inline_1430 < simpleEventPluginEvents.length; - i$jscomp$inline_1430++ + var i$jscomp$inline_1439 = 0; + i$jscomp$inline_1439 < simpleEventPluginEvents.length; + i$jscomp$inline_1439++ ) { - var eventName$jscomp$inline_1431 = - simpleEventPluginEvents[i$jscomp$inline_1430], - domEventName$jscomp$inline_1432 = - eventName$jscomp$inline_1431.toLowerCase(), - capitalizedEvent$jscomp$inline_1433 = - eventName$jscomp$inline_1431[0].toUpperCase() + - eventName$jscomp$inline_1431.slice(1); + var eventName$jscomp$inline_1440 = + simpleEventPluginEvents[i$jscomp$inline_1439], + domEventName$jscomp$inline_1441 = + eventName$jscomp$inline_1440.toLowerCase(), + capitalizedEvent$jscomp$inline_1442 = + eventName$jscomp$inline_1440[0].toUpperCase() + + eventName$jscomp$inline_1440.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1432, - "on" + capitalizedEvent$jscomp$inline_1433 + domEventName$jscomp$inline_1441, + "on" + capitalizedEvent$jscomp$inline_1442 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -12710,34 +12781,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$181 = props[hasSrc]; - if (null != propValue$181) + var propValue$186 = props[hasSrc]; + if (null != propValue$186) switch (hasSrc) { case "name": - hasSrcSet = propValue$181; + hasSrcSet = propValue$186; break; case "type": - propValue = propValue$181; + propValue = propValue$186; break; case "checked": - checked = propValue$181; + checked = propValue$186; break; case "defaultChecked": - defaultChecked = propValue$181; + defaultChecked = propValue$186; break; case "value": - propKey = propValue$181; + propKey = propValue$186; break; case "defaultValue": - defaultValue = propValue$181; + defaultValue = propValue$186; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$181) + if (null != propValue$186) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$181, props, null); + setProp(domElement, tag, hasSrc, propValue$186, props, null); } } initInput( @@ -12874,14 +12945,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$181 in props) - props.hasOwnProperty(propValue$181) && - ((hasSrc = props[propValue$181]), + for (propValue$186 in props) + props.hasOwnProperty(propValue$186) && + ((hasSrc = props[propValue$186]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$181, + propValue$186, hasSrc, props, void 0 @@ -12929,14 +13000,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$198 in nextProps) { - var propKey = nextProps[propKey$198]; - lastProp = lastProps[propKey$198]; + for (var propKey$203 in nextProps) { + var propKey = nextProps[propKey$203]; + lastProp = lastProps[propKey$203]; if ( - nextProps.hasOwnProperty(propKey$198) && + nextProps.hasOwnProperty(propKey$203) && (null != propKey || null != lastProp) ) - switch (propKey$198) { + switch (propKey$203) { case "type": type = propKey; break; @@ -12965,7 +13036,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$198, + propKey$203, propKey, nextProps, lastProp @@ -12984,7 +13055,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$198 = null; + propKey = value = defaultValue = propKey$203 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -13015,7 +13086,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$198 = type; + propKey$203 = type; break; case "defaultValue": defaultValue = type; @@ -13036,15 +13107,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$198 - ? updateOptions(domElement, !!lastProps, propKey$198, !1) + null != propKey$203 + ? updateOptions(domElement, !!lastProps, propKey$203, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$198 = null; + propKey = propKey$203 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -13068,7 +13139,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$198 = name; + propKey$203 = name; break; case "defaultValue": propKey = name; @@ -13082,17 +13153,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$198, propKey); + updateTextarea(domElement, propKey$203, propKey); return; case "option": - for (var propKey$214 in lastProps) + for (var propKey$219 in lastProps) if ( - ((propKey$198 = lastProps[propKey$214]), - lastProps.hasOwnProperty(propKey$214) && - null != propKey$198 && - !nextProps.hasOwnProperty(propKey$214)) + ((propKey$203 = lastProps[propKey$219]), + lastProps.hasOwnProperty(propKey$219) && + null != propKey$203 && + !nextProps.hasOwnProperty(propKey$219)) ) - switch (propKey$214) { + switch (propKey$219) { case "selected": domElement.selected = !1; break; @@ -13100,33 +13171,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$214, + propKey$219, null, nextProps, - propKey$198 + propKey$203 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$198 = nextProps[lastDefaultValue]), + ((propKey$203 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$198 !== propKey && - (null != propKey$198 || null != propKey)) + propKey$203 !== propKey && + (null != propKey$203 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$198 && - "function" !== typeof propKey$198 && - "symbol" !== typeof propKey$198; + propKey$203 && + "function" !== typeof propKey$203 && + "symbol" !== typeof propKey$203; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$198, + propKey$203, nextProps, propKey ); @@ -13147,24 +13218,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$219 in lastProps) - (propKey$198 = lastProps[propKey$219]), - lastProps.hasOwnProperty(propKey$219) && - null != propKey$198 && - !nextProps.hasOwnProperty(propKey$219) && - setProp(domElement, tag, propKey$219, null, nextProps, propKey$198); + for (var propKey$224 in lastProps) + (propKey$203 = lastProps[propKey$224]), + lastProps.hasOwnProperty(propKey$224) && + null != propKey$203 && + !nextProps.hasOwnProperty(propKey$224) && + setProp(domElement, tag, propKey$224, null, nextProps, propKey$203); for (checked in nextProps) if ( - ((propKey$198 = nextProps[checked]), + ((propKey$203 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$198 !== propKey && - (null != propKey$198 || null != propKey)) + propKey$203 !== propKey && + (null != propKey$203 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$198) + if (null != propKey$203) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -13172,7 +13243,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$198, + propKey$203, nextProps, propKey ); @@ -13180,49 +13251,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$224 in lastProps) - (propKey$198 = lastProps[propKey$224]), - lastProps.hasOwnProperty(propKey$224) && - void 0 !== propKey$198 && - !nextProps.hasOwnProperty(propKey$224) && + for (var propKey$229 in lastProps) + (propKey$203 = lastProps[propKey$229]), + lastProps.hasOwnProperty(propKey$229) && + void 0 !== propKey$203 && + !nextProps.hasOwnProperty(propKey$229) && setPropOnCustomElement( domElement, tag, - propKey$224, + propKey$229, void 0, nextProps, - propKey$198 + propKey$203 ); for (defaultChecked in nextProps) - (propKey$198 = nextProps[defaultChecked]), + (propKey$203 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$198 === propKey || - (void 0 === propKey$198 && void 0 === propKey) || + propKey$203 === propKey || + (void 0 === propKey$203 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$198, + propKey$203, nextProps, propKey ); return; } } - for (var propKey$229 in lastProps) - (propKey$198 = lastProps[propKey$229]), - lastProps.hasOwnProperty(propKey$229) && - null != propKey$198 && - !nextProps.hasOwnProperty(propKey$229) && - setProp(domElement, tag, propKey$229, null, nextProps, propKey$198); + for (var propKey$234 in lastProps) + (propKey$203 = lastProps[propKey$234]), + lastProps.hasOwnProperty(propKey$234) && + null != propKey$203 && + !nextProps.hasOwnProperty(propKey$234) && + setProp(domElement, tag, propKey$234, null, nextProps, propKey$203); for (lastProp in nextProps) - (propKey$198 = nextProps[lastProp]), + (propKey$203 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$198 === propKey || - (null == propKey$198 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$198, nextProps, propKey); + propKey$203 === propKey || + (null == propKey$203 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$203, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -13767,26 +13838,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$237 = getResourcesFromRoot( + var styles$242 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$238 = styles$237.get(type); - resource$238 || + resource$243 = styles$242.get(type); + resource$243 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$238 = { + (resource$243 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$237.set(type, resource$238), - (styles$237 = JSCompiler_inline_result.querySelector( + styles$242.set(type, resource$243), + (styles$242 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$237._p && - ((resource$238.instance = styles$237), - (resource$238.state.loading = 5)), + !styles$242._p && + ((resource$243.instance = styles$242), + (resource$243.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -13799,16 +13870,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$237 || + styles$242 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$238.state + resource$243.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$238; + return resource$243; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -13905,37 +13976,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$243 = hoistableRoot.querySelector( + var instance$248 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$243) + if (instance$248) return ( (resource.state.loading |= 4), - (resource.instance = instance$243), - markNodeAsHoistable(instance$243), - instance$243 + (resource.instance = instance$248), + markNodeAsHoistable(instance$248), + instance$248 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$243 = ( + instance$248 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$243); - var linkInstance = instance$243; + markNodeAsHoistable(instance$248); + var linkInstance = instance$248; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$243, "link", instance); + setInitialProperties(instance$248, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$243, props.precedence, hoistableRoot); - return (resource.instance = instance$243); + insertStylesheet(instance$248, props.precedence, hoistableRoot); + return (resource.instance = instance$248); case "script": - instance$243 = getScriptKey(props.src); + instance$248 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$243) + getScriptSelectorFromKey(instance$248) )) ) return ( @@ -13944,7 +14015,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$243))) + if ((styleProps = preloadPropsMap.get(instance$248))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -14968,16 +15039,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1677 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1686 = React.version; if ( - "19.0.0-rc-380f5d67-20241113" !== - isomorphicReactPackageVersion$jscomp$inline_1677 + "19.0.0-rc-b01722d5-20241114" !== + isomorphicReactPackageVersion$jscomp$inline_1686 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1677, - "19.0.0-rc-380f5d67-20241113" + isomorphicReactPackageVersion$jscomp$inline_1686, + "19.0.0-rc-b01722d5-20241114" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -14997,25 +15068,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2153 = { +var internals$jscomp$inline_2165 = { bundleType: 0, - version: "19.0.0-rc-380f5d67-20241113", + version: "19.0.0-rc-b01722d5-20241114", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-380f5d67-20241113" + reconcilerVersion: "19.0.0-rc-b01722d5-20241114" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2154 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2166 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2154.isDisabled && - hook$jscomp$inline_2154.supportsFiber + !hook$jscomp$inline_2166.isDisabled && + hook$jscomp$inline_2166.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2154.inject( - internals$jscomp$inline_2153 + (rendererID = hook$jscomp$inline_2166.inject( + internals$jscomp$inline_2165 )), - (injectedHook = hook$jscomp$inline_2154); + (injectedHook = hook$jscomp$inline_2166); } catch (err) {} } exports.createRoot = function (container, options) { @@ -15107,4 +15178,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-rc-380f5d67-20241113"; +exports.version = "19.0.0-rc-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js index 440a2b1e39286..262ebcedb8cb4 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js @@ -1010,28 +1010,40 @@ var pendingLanes = root.pendingLanes; if (0 === pendingLanes) return 0; var nextLanes = 0, - suspendedLanes = root.suspendedLanes; - root = root.pingedLanes; + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes, + warmLanes = root.warmLanes; + root = 0 !== root.finishedLanes; 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)) + : root || + ((warmLanes = nonIdlePendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : root || + ((warmLanes = pendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (warmLanes = wipLanes & -wipLanes), + suspendedLanes >= warmLanes || + (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) ? wipLanes : nextLanes; } @@ -1116,7 +1128,9 @@ root, finishedLanes, remainingLanes, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; @@ -1127,17 +1141,17 @@ root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - finishedLanes = root.entanglements; - var expirationTimes = root.expirationTimes, + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index = 31 - clz32(remainingLanes); - previouslyPendingLanes = 1 << index; - finishedLanes[index] = 0; + var index = 31 - clz32(remainingLanes), + lane = 1 << index; + entanglements[index] = 0; expirationTimes[index] = -1; var hiddenUpdatesForLane = hiddenUpdates[index]; if (null !== hiddenUpdatesForLane) @@ -1149,9 +1163,14 @@ var update = hiddenUpdatesForLane[index]; null !== update && (update.lane &= -536870913); } - remainingLanes &= ~previouslyPendingLanes; + remainingLanes &= ~lane; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -8664,32 +8683,32 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2315; - var JSCompiler_object_inline_stack_2316 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2322; + var JSCompiler_object_inline_stack_2323 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2317 = !1; + var JSCompiler_object_inline_componentStack_2324 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2315 = didSuspend) || - (JSCompiler_object_inline_digest_2315 = + (JSCompiler_object_inline_digest_2322 = didSuspend) || + (JSCompiler_object_inline_digest_2322 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2315 && - ((JSCompiler_object_inline_componentStack_2317 = !0), + JSCompiler_object_inline_digest_2322 && + ((JSCompiler_object_inline_componentStack_2324 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2315 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2322 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2317 + JSCompiler_object_inline_componentStack_2324 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2314 = nextHydratableInstance; + var JSCompiler_object_inline_message_2321 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2314)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2321)) { c: { - var instance = JSCompiler_object_inline_message_2314; + var instance = JSCompiler_object_inline_message_2321; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8730,19 +8749,19 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2314 + JSCompiler_object_inline_message_2321 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2314 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2321 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2314 && - ((JSCompiler_object_inline_message_2314 = - JSCompiler_object_inline_message_2314.dehydrated), - null !== JSCompiler_object_inline_message_2314) + null !== JSCompiler_object_inline_message_2321 && + ((JSCompiler_object_inline_message_2321 = + JSCompiler_object_inline_message_2321.dehydrated), + null !== JSCompiler_object_inline_message_2321) ) return ( - JSCompiler_object_inline_message_2314.data === + JSCompiler_object_inline_message_2321.data === SUSPENSE_FALLBACK_START_DATA ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), @@ -8750,58 +8769,58 @@ ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2314 = - JSCompiler_object_inline_stack_2316.children; - JSCompiler_object_inline_stack_2316 = - JSCompiler_object_inline_stack_2316.fallback; - if (JSCompiler_object_inline_componentStack_2317) + JSCompiler_object_inline_message_2321 = + JSCompiler_object_inline_stack_2323.children; + JSCompiler_object_inline_stack_2323 = + JSCompiler_object_inline_stack_2323.fallback; + if (JSCompiler_object_inline_componentStack_2324) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2317 = + (JSCompiler_object_inline_componentStack_2324 = workInProgress.mode), - (JSCompiler_object_inline_message_2314 = + (JSCompiler_object_inline_message_2321 = mountWorkInProgressOffscreenFiber( { mode: "hidden", - children: JSCompiler_object_inline_message_2314 + children: JSCompiler_object_inline_message_2321 }, - JSCompiler_object_inline_componentStack_2317 + JSCompiler_object_inline_componentStack_2324 )), - (JSCompiler_object_inline_stack_2316 = createFiberFromFragment( - JSCompiler_object_inline_stack_2316, - JSCompiler_object_inline_componentStack_2317, + (JSCompiler_object_inline_stack_2323 = createFiberFromFragment( + JSCompiler_object_inline_stack_2323, + JSCompiler_object_inline_componentStack_2324, renderLanes, null )), - (JSCompiler_object_inline_message_2314.return = workInProgress), - (JSCompiler_object_inline_stack_2316.return = workInProgress), - (JSCompiler_object_inline_message_2314.sibling = - JSCompiler_object_inline_stack_2316), - (workInProgress.child = JSCompiler_object_inline_message_2314), - (JSCompiler_object_inline_componentStack_2317 = + (JSCompiler_object_inline_message_2321.return = workInProgress), + (JSCompiler_object_inline_stack_2323.return = workInProgress), + (JSCompiler_object_inline_message_2321.sibling = + JSCompiler_object_inline_stack_2323), + (workInProgress.child = JSCompiler_object_inline_message_2321), + (JSCompiler_object_inline_componentStack_2324 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2317.memoizedState = + (JSCompiler_object_inline_componentStack_2324.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2317.childLanes = + (JSCompiler_object_inline_componentStack_2324.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2315, + JSCompiler_object_inline_digest_2322, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2316 + JSCompiler_object_inline_stack_2323 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2314 + JSCompiler_object_inline_message_2321 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2314 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2314) + ((JSCompiler_object_inline_message_2321 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2321) ) { if (didSuspend) workInProgress.flags & 256 @@ -8818,95 +8837,95 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2317 = - JSCompiler_object_inline_stack_2316.fallback), - (JSCompiler_object_inline_message_2314 = workInProgress.mode), - (JSCompiler_object_inline_stack_2316 = + (JSCompiler_object_inline_componentStack_2324 = + JSCompiler_object_inline_stack_2323.fallback), + (JSCompiler_object_inline_message_2321 = workInProgress.mode), + (JSCompiler_object_inline_stack_2323 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2316.children + children: JSCompiler_object_inline_stack_2323.children }, - JSCompiler_object_inline_message_2314 + JSCompiler_object_inline_message_2321 )), - (JSCompiler_object_inline_componentStack_2317 = + (JSCompiler_object_inline_componentStack_2324 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2317, - JSCompiler_object_inline_message_2314, + JSCompiler_object_inline_componentStack_2324, + JSCompiler_object_inline_message_2321, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2317.flags |= 2), - (JSCompiler_object_inline_stack_2316.return = workInProgress), - (JSCompiler_object_inline_componentStack_2317.return = + (JSCompiler_object_inline_componentStack_2324.flags |= 2), + (JSCompiler_object_inline_stack_2323.return = workInProgress), + (JSCompiler_object_inline_componentStack_2324.return = workInProgress), - (JSCompiler_object_inline_stack_2316.sibling = - JSCompiler_object_inline_componentStack_2317), - (workInProgress.child = JSCompiler_object_inline_stack_2316), + (JSCompiler_object_inline_stack_2323.sibling = + JSCompiler_object_inline_componentStack_2324), + (workInProgress.child = JSCompiler_object_inline_stack_2323), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2316 = workInProgress.child), - (JSCompiler_object_inline_stack_2316.memoizedState = + (JSCompiler_object_inline_stack_2323 = workInProgress.child), + (JSCompiler_object_inline_stack_2323.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2316.childLanes = + (JSCompiler_object_inline_stack_2323.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2315, + JSCompiler_object_inline_digest_2322, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2317)); + JSCompiler_object_inline_componentStack_2324)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_message_2314.data === + JSCompiler_object_inline_message_2321.data === SUSPENSE_FALLBACK_START_DATA) ) { - JSCompiler_object_inline_digest_2315 = - JSCompiler_object_inline_message_2314.nextSibling && - JSCompiler_object_inline_message_2314.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2315) { - JSCompiler_temp = JSCompiler_object_inline_digest_2315.dgst; - var message = JSCompiler_object_inline_digest_2315.msg; - instance = JSCompiler_object_inline_digest_2315.stck; - var componentStack = JSCompiler_object_inline_digest_2315.cstck; + JSCompiler_object_inline_digest_2322 = + JSCompiler_object_inline_message_2321.nextSibling && + JSCompiler_object_inline_message_2321.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2322) { + JSCompiler_temp = JSCompiler_object_inline_digest_2322.dgst; + var message = JSCompiler_object_inline_digest_2322.msg; + instance = JSCompiler_object_inline_digest_2322.stck; + var componentStack = JSCompiler_object_inline_digest_2322.cstck; } - JSCompiler_object_inline_message_2314 = message; - JSCompiler_object_inline_digest_2315 = JSCompiler_temp; - JSCompiler_object_inline_stack_2316 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2317 = + JSCompiler_object_inline_message_2321 = message; + JSCompiler_object_inline_digest_2322 = JSCompiler_temp; + JSCompiler_object_inline_stack_2323 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2324 = componentStack; - JSCompiler_object_inline_componentStack_2317 = - JSCompiler_object_inline_message_2314 - ? Error(JSCompiler_object_inline_message_2314) + JSCompiler_object_inline_componentStack_2324 = + JSCompiler_object_inline_message_2321 + ? Error(JSCompiler_object_inline_message_2321) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_componentStack_2317.stack = - JSCompiler_object_inline_stack_2316 || ""; - JSCompiler_object_inline_componentStack_2317.digest = - JSCompiler_object_inline_digest_2315; - JSCompiler_object_inline_digest_2315 = + JSCompiler_object_inline_componentStack_2324.stack = + JSCompiler_object_inline_stack_2323 || ""; + JSCompiler_object_inline_componentStack_2324.digest = + JSCompiler_object_inline_digest_2322; + JSCompiler_object_inline_digest_2322 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; - JSCompiler_object_inline_stack_2316 = { - value: JSCompiler_object_inline_componentStack_2317, + JSCompiler_object_inline_stack_2323 = { + value: JSCompiler_object_inline_componentStack_2324, source: null, - stack: JSCompiler_object_inline_digest_2315 + stack: JSCompiler_object_inline_digest_2322 }; - "string" === typeof JSCompiler_object_inline_digest_2315 && + "string" === typeof JSCompiler_object_inline_digest_2322 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2317, - JSCompiler_object_inline_stack_2316 + JSCompiler_object_inline_componentStack_2324, + JSCompiler_object_inline_stack_2323 ); - queueHydrationError(JSCompiler_object_inline_stack_2316); + queueHydrationError(JSCompiler_object_inline_stack_2323); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -8920,25 +8939,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_digest_2315 = + (JSCompiler_object_inline_digest_2322 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2315) + didReceiveUpdate || JSCompiler_object_inline_digest_2322) ) { - JSCompiler_object_inline_digest_2315 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2315) { - JSCompiler_object_inline_stack_2316 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2316 & 42)) - JSCompiler_object_inline_stack_2316 = 1; + JSCompiler_object_inline_digest_2322 = workInProgressRoot; + if (null !== JSCompiler_object_inline_digest_2322) { + JSCompiler_object_inline_stack_2323 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2323 & 42)) + JSCompiler_object_inline_stack_2323 = 1; else - switch (JSCompiler_object_inline_stack_2316) { + switch (JSCompiler_object_inline_stack_2323) { case 2: - JSCompiler_object_inline_stack_2316 = 1; + JSCompiler_object_inline_stack_2323 = 1; break; case 8: - JSCompiler_object_inline_stack_2316 = 4; + JSCompiler_object_inline_stack_2323 = 4; break; case 32: - JSCompiler_object_inline_stack_2316 = 16; + JSCompiler_object_inline_stack_2323 = 16; break; case 128: case 256: @@ -8959,40 +8978,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2316 = 64; + JSCompiler_object_inline_stack_2323 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2316 = 134217728; + JSCompiler_object_inline_stack_2323 = 134217728; break; default: - JSCompiler_object_inline_stack_2316 = 0; + JSCompiler_object_inline_stack_2323 = 0; } - JSCompiler_object_inline_stack_2316 = + JSCompiler_object_inline_stack_2323 = 0 !== - (JSCompiler_object_inline_stack_2316 & - (JSCompiler_object_inline_digest_2315.suspendedLanes | + (JSCompiler_object_inline_stack_2323 & + (JSCompiler_object_inline_digest_2322.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2316; + : JSCompiler_object_inline_stack_2323; if ( - 0 !== JSCompiler_object_inline_stack_2316 && - JSCompiler_object_inline_stack_2316 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2323 && + JSCompiler_object_inline_stack_2323 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2316), + ((prevState.retryLane = JSCompiler_object_inline_stack_2323), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2316 + JSCompiler_object_inline_stack_2323 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2315, + JSCompiler_object_inline_digest_2322, current, - JSCompiler_object_inline_stack_2316 + JSCompiler_object_inline_stack_2323 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_message_2314.data === + JSCompiler_object_inline_message_2321.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9000,7 +9019,7 @@ renderLanes ); } else - JSCompiler_object_inline_message_2314.data === + JSCompiler_object_inline_message_2321.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 128), (workInProgress.child = current.child), @@ -9008,12 +9027,12 @@ null, current )), - (JSCompiler_object_inline_message_2314._reactRetry = + (JSCompiler_object_inline_message_2321._reactRetry = workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2314.nextSibling + JSCompiler_object_inline_message_2321.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9031,57 +9050,57 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2316.children + JSCompiler_object_inline_stack_2323.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2317) + if (JSCompiler_object_inline_componentStack_2324) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2317 = - JSCompiler_object_inline_stack_2316.fallback), - (JSCompiler_object_inline_message_2314 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2324 = + JSCompiler_object_inline_stack_2323.fallback), + (JSCompiler_object_inline_message_2321 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2316 = createWorkInProgress( + (JSCompiler_object_inline_stack_2323 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2316.children + children: JSCompiler_object_inline_stack_2323.children } )), - (JSCompiler_object_inline_stack_2316.subtreeFlags = + (JSCompiler_object_inline_stack_2323.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_componentStack_2317 = + ? (JSCompiler_object_inline_componentStack_2324 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2317 + JSCompiler_object_inline_componentStack_2324 )) - : ((JSCompiler_object_inline_componentStack_2317 = + : ((JSCompiler_object_inline_componentStack_2324 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2317, - JSCompiler_object_inline_message_2314, + JSCompiler_object_inline_componentStack_2324, + JSCompiler_object_inline_message_2321, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2317.flags |= 2)), - (JSCompiler_object_inline_componentStack_2317.return = + (JSCompiler_object_inline_componentStack_2324.flags |= 2)), + (JSCompiler_object_inline_componentStack_2324.return = workInProgress), - (JSCompiler_object_inline_stack_2316.return = workInProgress), - (JSCompiler_object_inline_stack_2316.sibling = - JSCompiler_object_inline_componentStack_2317), - (workInProgress.child = JSCompiler_object_inline_stack_2316), - (JSCompiler_object_inline_stack_2316 = - JSCompiler_object_inline_componentStack_2317), - (JSCompiler_object_inline_componentStack_2317 = workInProgress.child), - (JSCompiler_object_inline_message_2314 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2314 - ? (JSCompiler_object_inline_message_2314 = + (JSCompiler_object_inline_stack_2323.return = workInProgress), + (JSCompiler_object_inline_stack_2323.sibling = + JSCompiler_object_inline_componentStack_2324), + (workInProgress.child = JSCompiler_object_inline_stack_2323), + (JSCompiler_object_inline_stack_2323 = + JSCompiler_object_inline_componentStack_2324), + (JSCompiler_object_inline_componentStack_2324 = workInProgress.child), + (JSCompiler_object_inline_message_2321 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2321 + ? (JSCompiler_object_inline_message_2321 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2314.cachePool), + JSCompiler_object_inline_message_2321.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9089,37 +9108,37 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2314 = { + (JSCompiler_object_inline_message_2321 = { baseLanes: - JSCompiler_object_inline_message_2314.baseLanes | renderLanes, + JSCompiler_object_inline_message_2321.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2317.memoizedState = - JSCompiler_object_inline_message_2314), - (JSCompiler_object_inline_componentStack_2317.childLanes = + (JSCompiler_object_inline_componentStack_2324.memoizedState = + JSCompiler_object_inline_message_2321), + (JSCompiler_object_inline_componentStack_2324.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2315, + JSCompiler_object_inline_digest_2322, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2316 + JSCompiler_object_inline_stack_2323 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2316.children + children: JSCompiler_object_inline_stack_2323.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2315 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2315 + ((JSCompiler_object_inline_digest_2322 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2322 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2315.push(current)); + : JSCompiler_object_inline_digest_2322.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -13438,20 +13457,34 @@ (resource.state.loading & Inserted) !== NotLoaded ) workInProgress.flags &= -16777217; - else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) - if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; - else + else if ( + ((workInProgress.flags |= 16777216), !preloadResource(resource)) + ) { + resource = suspenseHandlerStackCursor.current; + if ( + null !== resource && + ((workInProgressRootRenderLanes & 4194176) === + workInProgressRootRenderLanes + ? null !== shellBoundary + : ((workInProgressRootRenderLanes & 62914560) !== + workInProgressRootRenderLanes && + 0 === (workInProgressRootRenderLanes & 536870912)) || + resource !== shellBoundary) + ) throw ( ((suspendedThenable = noopSuspenseyCommitThenable), SuspenseyCommitException) ); + workInProgress.flags |= 8192; + } } function scheduleRetryEffect(workInProgress, retryQueue) { null !== retryQueue && (workInProgress.flags |= 4); workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue)); + (workInProgress.lanes |= retryQueue), + (workInProgressSuspendedRetryLanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -14248,7 +14281,8 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); markRootUpdated$1(root, lane); if ( @@ -14290,25 +14324,36 @@ markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 )), ensureRootIsScheduled(root); } function performWorkOnRoot(root, lanes, forceSync) { if ((executionContext & (RenderContext | CommitContext)) !== NoContext) throw Error("Should not already be working."); - var exitStatus = (forceSync = + var shouldTimeSlice = (!forceSync && 0 === (lanes & 60) && 0 === (lanes & root.expiredLanes)) || - !1) + checkIfRootIsPrerendering(root, lanes), + exitStatus = shouldTimeSlice ? renderRootConcurrent(root, lanes) : renderRootSync(root, lanes, !0), - renderWasConcurrent = forceSync; + renderWasConcurrent = shouldTimeSlice; do { - if (exitStatus === RootInProgress) break; - else if (exitStatus === RootDidNotComplete) - markRootSuspended(root, lanes, 0); + if (exitStatus === RootInProgress) { + workInProgressRootIsPrerendering && + !shouldTimeSlice && + markRootSuspended(root, lanes, 0, !1); + break; + } else if (exitStatus === RootDidNotComplete) + markRootSuspended( + root, + lanes, + 0, + !workInProgressRootDidSkipSuspendedSiblings + ); else { forceSync = root.current.alternate; if ( @@ -14373,11 +14418,11 @@ } if (exitStatus === RootFatalErrored) { prepareFreshStack(root, 0); - markRootSuspended(root, lanes, 0); + markRootSuspended(root, lanes, 0, !0); break; } a: { - renderWasConcurrent = root; + shouldTimeSlice = root; switch (exitStatus) { case RootInProgress: case RootFatalErrored: @@ -14385,9 +14430,10 @@ case RootSuspendedWithDelay: if ((lanes & 4194176) === lanes) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -14401,11 +14447,11 @@ default: throw Error("Unknown root exit status."); } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; if (null !== ReactSharedInternals.actQueue) commitRoot( - renderWasConcurrent, + shouldTimeSlice, workInProgressRootRecoverableErrors, workInProgressTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, @@ -14426,15 +14472,16 @@ 10 < exitStatus) ) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -14453,7 +14500,7 @@ break a; } commitRootWhenReady( - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -14497,11 +14544,8 @@ completedRenderStartTime, completedRenderEndTime ) { - didSkipSuspendedSiblings = finishedWork.subtreeFlags; - if ( - didSkipSuspendedSiblings & 8192 || - 16785408 === (didSkipSuspendedSiblings & 16785408) - ) + var subtreeFlags = finishedWork.subtreeFlags; + if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) if ( ((suspendedState = { stylesheets: null, @@ -14527,7 +14571,12 @@ completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended( + root, + lanes, + spawnedLane, + !didSkipSuspendedSiblings + ); return; } commitRoot( @@ -14577,19 +14626,22 @@ } return !0; } - function markRootSuspended(root, suspendedLanes, spawnedLane) { + function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didAttemptEntireTree + ) { suspendedLanes &= ~workInProgressRootPingedLanes; suspendedLanes &= ~workInProgressRootInterleavedUpdatedLanes; root.suspendedLanes |= suspendedLanes; root.pingedLanes &= ~suspendedLanes; - for ( - var expirationTimes = root.expirationTimes, lanes = suspendedLanes; - 0 < lanes; - - ) { + didAttemptEntireTree && (root.warmLanes |= suspendedLanes); + didAttemptEntireTree = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { var index = 31 - clz32(lanes), lane = 1 << index; - expirationTimes[index] = -1; + didAttemptEntireTree[index] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -14633,7 +14685,7 @@ workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); + workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); workInProgressRootDidAttachPingListener = !1; workInProgressRootExitStatus = RootInProgress; workInProgressSuspendedRetryLanes = @@ -14671,12 +14723,7 @@ current = null; thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), - (workInProgressSuspendedReason = - shouldRemainOnPreviousScreen() && - 0 === (workInProgressRootSkippedLanes & 134217727) && - 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) - ? SuspendedOnData - : SuspendedOnImmediate)) + (workInProgressSuspendedReason = SuspendedOnImmediate)) : thrownValue === SuspenseyCommitException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = SuspendedOnInstance)) @@ -14727,21 +14774,6 @@ ); } } - function shouldRemainOnPreviousScreen() { - var handler = suspenseHandlerStackCursor.current; - return null === handler - ? !0 - : (workInProgressRootRenderLanes & 4194176) === - workInProgressRootRenderLanes - ? null === shellBoundary - ? !0 - : !1 - : (workInProgressRootRenderLanes & 62914560) === - workInProgressRootRenderLanes || - 0 !== (workInProgressRootRenderLanes & 536870912) - ? handler === shellBoundary - : !1; - } function pushDispatcher() { var prevDispatcher = ReactSharedInternals.H; ReactSharedInternals.H = ContextOnlyDispatcher; @@ -14754,16 +14786,22 @@ } function renderDidSuspendDelayIfPossible() { workInProgressRootExitStatus = RootSuspendedWithDelay; + workInProgressRootDidSkipSuspendedSiblings || + ((workInProgressRootRenderLanes & 4194176) !== + workInProgressRootRenderLanes && + null !== suspenseHandlerStackCursor.current) || + (workInProgressRootIsPrerendering = !0); (0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) || null === workInProgressRoot || markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); } - function renderRootSync(root, lanes) { + function renderRootSync(root, lanes, shouldYieldForPrerendering) { var prevExecutionContext = executionContext; executionContext |= RenderContext; var prevDispatcher = pushDispatcher(), @@ -14806,6 +14844,13 @@ workInProgressSuspendedReason = NotSuspended; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + if ( + shouldYieldForPrerendering && + workInProgressRootIsPrerendering + ) { + memoizedUpdaters = RootInProgress; + break a; + } break; default: (reason = workInProgressSuspendedReason), @@ -14855,7 +14900,11 @@ workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } else + workInProgressRootIsPrerendering = checkIfRootIsPrerendering( + root, + lanes + ); markRenderStarted(lanes); a: do try { @@ -15067,7 +15116,12 @@ stopProfilerTimerIfRunningAndRecordDuration(unitOfWork); return current; } - function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { + function throwAndUnwindWorkLoop( + root, + unitOfWork, + thrownValue, + suspendedReason + ) { resetContextDependencies(); resetHooksOnUnwind(unitOfWork); thenableState$1 = null; @@ -15101,9 +15155,25 @@ workInProgress = null; return; } - unitOfWork.flags & 32768 - ? unwindUnitOfWork(unitOfWork, !0) - : completeUnitOfWork(unitOfWork); + if (unitOfWork.flags & 32768) { + if (isHydrating || suspendedReason === SuspendedOnError) root = !0; + else if ( + workInProgressRootIsPrerendering || + 0 !== (workInProgressRootRenderLanes & 536870912) + ) + root = !1; + else if ( + ((workInProgressRootDidSkipSuspendedSiblings = root = !0), + suspendedReason === SuspendedOnData || + suspendedReason === SuspendedOnImmediate || + suspendedReason === SuspendedOnDeprecatedThrowPromise) + ) + (suspendedReason = suspenseHandlerStackCursor.current), + null !== suspendedReason && + 13 === suspendedReason.tag && + (suspendedReason.flags |= 16384); + unwindUnitOfWork(unitOfWork, root); + } else completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; @@ -15214,7 +15284,9 @@ transitions, didIncludeRenderPhaseUpdate, renderPriorityLevel, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ) { do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); @@ -15247,7 +15319,9 @@ root, didIncludeRenderPhaseUpdate, remainingLanes, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), @@ -15264,35 +15338,39 @@ })); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - spawnedLane = ReactDOMSharedInternals.p; - ReactDOMSharedInternals.p = DiscreteEventPriority; - var prevExecutionContext = executionContext; - executionContext |= CommitContext; - commitBeforeMutationEffects(root, finishedWork); - commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted( + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (spawnedLane = ReactDOMSharedInternals.p), + (ReactDOMSharedInternals.p = DiscreteEventPriority), + (updatedLanes = executionContext), + (executionContext |= CommitContext), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffects( + root, + finishedWork, didIncludeRenderPhaseUpdate - ); - commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate); - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(); - requestPaint(); - executionContext = prevExecutionContext; - ReactDOMSharedInternals.p = spawnedLane; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + ), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted( + didIncludeRenderPhaseUpdate + ), + commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(), + requestPaint(), + (executionContext = updatedLanes), + (ReactDOMSharedInternals.p = spawnedLane), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); (transitions = rootDoesHavePassiveEffects) ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -15810,43 +15888,45 @@ (root.callbackNode = null), (root.callbackPriority = 0) ); - if (0 !== (suspendedLanes & 3)) - return ( - null !== pingedLanes && cancelCallback(pingedLanes), - (root.callbackPriority = 2), - (root.callbackNode = null), - 2 - ); - currentTime = suspendedLanes & -suspendedLanes; if ( - currentTime !== root.callbackPriority || - (null !== ReactSharedInternals.actQueue && - pingedLanes !== fakeActCallbackNode) - ) - cancelCallback(pingedLanes); - else return currentTime; - switch (lanesToEventPriority(suspendedLanes)) { - case DiscreteEventPriority: - case ContinuousEventPriority: - suspendedLanes = UserBlockingPriority; - break; - case DefaultEventPriority: - suspendedLanes = NormalPriority$1; - break; - case IdleEventPriority: - suspendedLanes = IdlePriority; - break; - default: - suspendedLanes = NormalPriority$1; - } - pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); - null !== ReactSharedInternals.actQueue - ? (ReactSharedInternals.actQueue.push(pingedLanes), - (suspendedLanes = fakeActCallbackNode)) - : (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes)); - root.callbackPriority = currentTime; - root.callbackNode = suspendedLanes; - return currentTime; + 0 === (suspendedLanes & 3) || + checkIfRootIsPrerendering(root, suspendedLanes) + ) { + currentTime = suspendedLanes & -suspendedLanes; + if ( + currentTime !== root.callbackPriority || + (null !== ReactSharedInternals.actQueue && + pingedLanes !== fakeActCallbackNode) + ) + cancelCallback(pingedLanes); + else return currentTime; + switch (lanesToEventPriority(suspendedLanes)) { + case DiscreteEventPriority: + case ContinuousEventPriority: + suspendedLanes = UserBlockingPriority; + break; + case DefaultEventPriority: + suspendedLanes = NormalPriority$1; + break; + case IdleEventPriority: + suspendedLanes = IdlePriority; + break; + default: + suspendedLanes = NormalPriority$1; + } + pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); + null !== ReactSharedInternals.actQueue + ? (ReactSharedInternals.actQueue.push(pingedLanes), + (suspendedLanes = fakeActCallbackNode)) + : (suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes)); + root.callbackPriority = currentTime; + root.callbackNode = suspendedLanes; + return currentTime; + } + null !== pingedLanes && cancelCallback(pingedLanes); + root.callbackPriority = 2; + root.callbackNode = null; + return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { nestedUpdateScheduled = currentUpdateIsNested = !1; @@ -23917,6 +23997,7 @@ workInProgressSuspendedReason = NotSuspended, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = RootInProgress, @@ -24495,11 +24576,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-b01722d5-20241114" !== 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-rc-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24536,11 +24617,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-rc-380f5d67-20241113", + version: "19.0.0-rc-b01722d5-20241114", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-380f5d67-20241113" + reconcilerVersion: "19.0.0-rc-b01722d5-20241114" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25014,7 +25095,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-rc-380f5d67-20241113"; + exports.version = "19.0.0-rc-b01722d5-20241114"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js index 8d7c6e8683596..eb52c05f5674f 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js @@ -666,28 +666,40 @@ 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, + warmLanes = root.warmLanes; + root = 0 !== root.finishedLanes; 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)) + : root || + ((warmLanes = nonIdlePendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : root || + ((warmLanes = pendingLanes & ~warmLanes), + 0 !== warmLanes && + (nextLanes = getHighestPriorityLanes(warmLanes)))); return 0 === nextLanes ? 0 : 0 !== wipLanes && wipLanes !== nextLanes && 0 === (wipLanes & suspendedLanes) && ((suspendedLanes = nextLanes & -nextLanes), - (root = wipLanes & -wipLanes), - suspendedLanes >= root || - (32 === suspendedLanes && 0 !== (root & 4194176))) + (warmLanes = wipLanes & -wipLanes), + suspendedLanes >= warmLanes || + (32 === suspendedLanes && 0 !== (warmLanes & 4194176))) ? wipLanes : nextLanes; } @@ -761,7 +773,14 @@ function markRootUpdated$1(root, updateLane) { 268435456 !== updateLane && ((root.suspendedLanes = 0), (root.pingedLanes = 0), (root.warmLanes = 0)); } -function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { +function markRootFinished( + root, + finishedLanes, + remainingLanes, + spawnedLane, + updatedLanes, + suspendedRetryLanes +) { var previouslyPendingLanes = root.pendingLanes; root.pendingLanes = remainingLanes; root.suspendedLanes = 0; @@ -771,31 +790,36 @@ function markRootFinished(root, finishedLanes, remainingLanes, spawnedLane) { root.entangledLanes &= remainingLanes; root.errorRecoveryDisabledLanes &= remainingLanes; root.shellSuspendCounter = 0; - finishedLanes = root.entanglements; - var expirationTimes = root.expirationTimes, + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, hiddenUpdates = root.hiddenUpdates; for ( remainingLanes = previouslyPendingLanes & ~remainingLanes; 0 < remainingLanes; ) { - var index$6 = 31 - clz32(remainingLanes); - previouslyPendingLanes = 1 << index$6; - finishedLanes[index$6] = 0; - expirationTimes[index$6] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$6]; + var index$7 = 31 - clz32(remainingLanes), + lane = 1 << index$7; + entanglements[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); } - remainingLanes &= ~previouslyPendingLanes; + remainingLanes &= ~lane; } 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { root.pendingLanes |= spawnedLane; @@ -810,19 +834,19 @@ 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 addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index$9 = 31 - clz32(lanes), - lane = 1 << index$9; - root[index$9].add(fiber); + var index$10 = 31 - clz32(lanes), + lane = 1 << index$10; + root[index$10].add(fiber); lanes &= ~lane; } } @@ -834,16 +858,16 @@ function movePendingFibersToMemoized(root, lanes) { 0 < lanes; ) { - var index$10 = 31 - clz32(lanes); - root = 1 << index$10; - index$10 = pendingUpdatersLaneMap[index$10]; - 0 < index$10.size && - (index$10.forEach(function (fiber) { + var index$11 = 31 - clz32(lanes); + root = 1 << index$11; + index$11 = pendingUpdatersLaneMap[index$11]; + 0 < index$11.size && + (index$11.forEach(function (fiber) { var alternate = fiber.alternate; (null !== alternate && memoizedUpdaters.has(alternate)) || memoizedUpdaters.add(fiber); }), - index$10.clear()); + index$11.clear()); lanes &= ~root; } } @@ -993,8 +1017,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$11 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$11 && "aria-" !== prefix$11) { + var prefix$12 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$12 && "aria-" !== prefix$12) { node.removeAttribute(name); return; } @@ -1327,15 +1351,15 @@ function setValueForStyles(node, styles, prevStyles) { : "float" === styleName ? (node.cssFloat = "") : (node[styleName] = "")); - for (var styleName$17 in styles) - (styleName = styles[styleName$17]), - styles.hasOwnProperty(styleName$17) && - prevStyles[styleName$17] !== styleName && - setValueForStyle(node, styleName$17, styleName); - } else for (var styleName$18 in styles) - styles.hasOwnProperty(styleName$18) && - setValueForStyle(node, styleName$18, styles[styleName$18]); + (styleName = styles[styleName$18]), + styles.hasOwnProperty(styleName$18) && + prevStyles[styleName$18] !== styleName && + setValueForStyle(node, styleName$18, styleName); + } else + for (var styleName$19 in styles) + styles.hasOwnProperty(styleName$19) && + setValueForStyle(node, styleName$19, styles[styleName$19]); } function isCustomElement(tagName) { if (-1 === tagName.indexOf("-")) return !1; @@ -2064,19 +2088,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$294; + var JSCompiler_inline_result$jscomp$299; if (canUseDOM) { - var isSupported$jscomp$inline_430 = "oninput" in document; - if (!isSupported$jscomp$inline_430) { - var element$jscomp$inline_431 = document.createElement("div"); - element$jscomp$inline_431.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_430 = - "function" === typeof element$jscomp$inline_431.oninput; + var isSupported$jscomp$inline_435 = "oninput" in document; + if (!isSupported$jscomp$inline_435) { + var element$jscomp$inline_436 = document.createElement("div"); + element$jscomp$inline_436.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_435 = + "function" === typeof element$jscomp$inline_436.oninput; } - JSCompiler_inline_result$jscomp$294 = isSupported$jscomp$inline_430; - } else JSCompiler_inline_result$jscomp$294 = !1; + JSCompiler_inline_result$jscomp$299 = isSupported$jscomp$inline_435; + } else JSCompiler_inline_result$jscomp$299 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$294 && + JSCompiler_inline_result$jscomp$299 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -4036,7 +4060,7 @@ function updateReducerImpl(hook, current, reducer) { var newBaseQueueFirst = (baseFirst = null), newBaseQueueLast = null, update = current, - didReadFromEntangledAsyncAction$55 = !1; + didReadFromEntangledAsyncAction$56 = !1; do { var updateLane = update.lane & -536870913; if ( @@ -4057,11 +4081,11 @@ function updateReducerImpl(hook, current, reducer) { next: null }), updateLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$55 = !0); + (didReadFromEntangledAsyncAction$56 = !0); else if ((renderLanes & revertLane) === revertLane) { update = update.next; revertLane === currentEntangledLane && - (didReadFromEntangledAsyncAction$55 = !0); + (didReadFromEntangledAsyncAction$56 = !0); continue; } else (updateLane = { @@ -4107,7 +4131,7 @@ function updateReducerImpl(hook, current, reducer) { if ( !objectIs(pendingQueue, hook.memoizedState) && ((didReceiveUpdate = !0), - didReadFromEntangledAsyncAction$55 && + didReadFromEntangledAsyncAction$56 && ((reducer = currentEntangledActionThenable), null !== reducer)) ) throw reducer; @@ -4309,8 +4333,8 @@ function runActionStateAction(actionQueue, node) { try { (prevTransition = action(prevState, payload)), handleActionReturnValue(actionQueue, node, prevTransition); - } catch (error$61) { - onActionError(actionQueue, node, error$61); + } catch (error$62) { + onActionError(actionQueue, node, error$62); } } function handleActionReturnValue(actionQueue, node, returnValue) { @@ -4741,10 +4765,10 @@ function refreshCache(fiber) { case 3: var lane = requestUpdateLane(); fiber = createUpdate(lane); - var root$64 = enqueueUpdate(provider, fiber, lane); - null !== root$64 && - (scheduleUpdateOnFiber(root$64, provider, lane), - entangleTransitions(root$64, provider, lane)); + var root$65 = enqueueUpdate(provider, fiber, lane); + null !== root$65 && + (scheduleUpdateOnFiber(root$65, provider, lane), + entangleTransitions(root$65, provider, lane)); provider = { cache: createCache() }; fiber.payload = provider; return; @@ -5279,9 +5303,9 @@ function resolveClassComponentProps(Component, baseProps) { } if ((Component = Component.defaultProps)) { newProps === baseProps && (newProps = assign({}, newProps)); - for (var propName$68 in Component) - void 0 === newProps[propName$68] && - (newProps[propName$68] = Component[propName$68]); + for (var propName$69 in Component) + void 0 === newProps[propName$69] && + (newProps[propName$69] = Component[propName$69]); } return newProps; } @@ -5327,9 +5351,9 @@ function logUncaughtError(root, errorInfo) { try { var onUncaughtError = root.onUncaughtError; onUncaughtError(errorInfo.value, { componentStack: errorInfo.stack }); - } catch (e$69) { + } catch (e$70) { setTimeout(function () { - throw e$69; + throw e$70; }); } } @@ -5340,9 +5364,9 @@ function logCaughtError(root, boundary, errorInfo) { componentStack: errorInfo.stack, errorBoundary: 1 === boundary.tag ? boundary.stateNode : null }); - } catch (e$70) { + } catch (e$71) { setTimeout(function () { - throw e$70; + throw e$71; }); } } @@ -7825,8 +7849,8 @@ function safelyCallComponentWillUnmount( } else try { instance.componentWillUnmount(); - } catch (error$116) { - captureCommitPhaseError(current, nearestMountedAncestor, error$116); + } catch (error$117) { + captureCommitPhaseError(current, nearestMountedAncestor, error$117); } } function safelyAttachRef(current, nearestMountedAncestor) { @@ -7886,8 +7910,8 @@ function safelyDetachRef(current, nearestMountedAncestor) { recordEffectDuration(current); } else ref(null); - } catch (error$117) { - captureCommitPhaseError(current, nearestMountedAncestor, error$117); + } catch (error$118) { + captureCommitPhaseError(current, nearestMountedAncestor, error$118); } else ref.current = null; } @@ -8056,7 +8080,7 @@ function commitBeforeMutationEffects(root, firstChild) { selection = selection.focusOffset; try { JSCompiler_temp.nodeType, focusNode.nodeType; - } catch (e$21) { + } catch (e$22) { JSCompiler_temp = null; break a; } @@ -8212,11 +8236,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { } else try { finishedRoot.componentDidMount(); - } catch (error$113) { + } catch (error$114) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$113 + error$114 ); } else { @@ -8233,11 +8257,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$114) { + } catch (error$115) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$114 + error$115 ); } recordEffectDuration(); @@ -8248,11 +8272,11 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { current, finishedRoot.__reactInternalSnapshotBeforeUpdate ); - } catch (error$115) { + } catch (error$116) { captureCommitPhaseError( finishedWork, finishedWork.return, - error$115 + error$116 ); } } @@ -8419,7 +8443,7 @@ function commitDeletionEffectsOnFiber( safelyDetachRef(deletedFiber, nearestMountedAncestor); case 6: prevHostParentIsContainer = hostParent; - var prevHostParentIsContainer$125 = hostParentIsContainer; + var prevHostParentIsContainer$126 = hostParentIsContainer; hostParent = null; recursivelyTraverseDeletionEffects( finishedRoot, @@ -8427,7 +8451,7 @@ function commitDeletionEffectsOnFiber( deletedFiber ); hostParent = prevHostParentIsContainer; - hostParentIsContainer = prevHostParentIsContainer$125; + hostParentIsContainer = prevHostParentIsContainer$126; if (null !== hostParent) if (hostParentIsContainer) try { @@ -9075,21 +9099,21 @@ function commitReconciliationEffects(finishedWork) { insertOrAppendPlacementNode(finishedWork, before, parent$jscomp$0); break; case 5: - var parent$118 = JSCompiler_inline_result.stateNode; + var parent$119 = JSCompiler_inline_result.stateNode; JSCompiler_inline_result.flags & 32 && - (setTextContent(parent$118, ""), + (setTextContent(parent$119, ""), (JSCompiler_inline_result.flags &= -33)); - var before$119 = getHostSibling(finishedWork); - insertOrAppendPlacementNode(finishedWork, before$119, parent$118); + var before$120 = getHostSibling(finishedWork); + insertOrAppendPlacementNode(finishedWork, before$120, parent$119); break; case 3: case 4: - var parent$120 = JSCompiler_inline_result.stateNode.containerInfo, - before$121 = getHostSibling(finishedWork); + var parent$121 = JSCompiler_inline_result.stateNode.containerInfo, + before$122 = getHostSibling(finishedWork); insertOrAppendPlacementNodeIntoContainer( finishedWork, - before$121, - parent$120 + before$122, + parent$121 ); break; default: @@ -10020,20 +10044,32 @@ function markUpdate(workInProgress) { function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { if ("stylesheet" !== resource.type || 0 !== (resource.state.loading & 4)) workInProgress.flags &= -16777217; - else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) - if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; - else + else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) { + resource = suspenseHandlerStackCursor.current; + if ( + null !== resource && + ((workInProgressRootRenderLanes & 4194176) === + workInProgressRootRenderLanes + ? null !== shellBoundary + : ((workInProgressRootRenderLanes & 62914560) !== + workInProgressRootRenderLanes && + 0 === (workInProgressRootRenderLanes & 536870912)) || + resource !== shellBoundary) + ) throw ( ((suspendedThenable = noopSuspenseyCommitThenable), SuspenseyCommitException) ); + workInProgress.flags |= 8192; + } } function scheduleRetryEffect(workInProgress, retryQueue) { null !== retryQueue && (workInProgress.flags |= 4); workInProgress.flags & 16384 && ((retryQueue = 22 !== workInProgress.tag ? claimNextRetryLane() : 536870912), - (workInProgress.lanes |= retryQueue)); + (workInProgress.lanes |= retryQueue), + (workInProgressSuspendedRetryLanes |= retryQueue)); } function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { if (!isHydrating) @@ -10050,14 +10086,14 @@ function cutOffTailIfNeeded(renderState, hasRenderedATailFallback) { break; case "collapsed": lastTailNode = renderState.tail; - for (var lastTailNode$140 = null; null !== lastTailNode; ) - null !== lastTailNode.alternate && (lastTailNode$140 = lastTailNode), + for (var lastTailNode$141 = null; null !== lastTailNode; ) + null !== lastTailNode.alternate && (lastTailNode$141 = lastTailNode), (lastTailNode = lastTailNode.sibling); - null === lastTailNode$140 + null === lastTailNode$141 ? hasRenderedATailFallback || null === renderState.tail ? (renderState.tail = null) : (renderState.tail.sibling = null) - : (lastTailNode$140.sibling = null); + : (lastTailNode$141.sibling = null); } } function bubbleProperties(completedWork) { @@ -10069,53 +10105,53 @@ function bubbleProperties(completedWork) { if (didBailout) if (0 !== (completedWork.mode & 2)) { for ( - var treeBaseDuration$142 = completedWork.selfBaseDuration, - child$143 = completedWork.child; - null !== child$143; + var treeBaseDuration$143 = completedWork.selfBaseDuration, + child$144 = completedWork.child; + null !== child$144; ) - (newChildLanes |= child$143.lanes | child$143.childLanes), - (subtreeFlags |= child$143.subtreeFlags & 31457280), - (subtreeFlags |= child$143.flags & 31457280), - (treeBaseDuration$142 += child$143.treeBaseDuration), - (child$143 = child$143.sibling); - completedWork.treeBaseDuration = treeBaseDuration$142; + (newChildLanes |= child$144.lanes | child$144.childLanes), + (subtreeFlags |= child$144.subtreeFlags & 31457280), + (subtreeFlags |= child$144.flags & 31457280), + (treeBaseDuration$143 += child$144.treeBaseDuration), + (child$144 = child$144.sibling); + completedWork.treeBaseDuration = treeBaseDuration$143; } else for ( - treeBaseDuration$142 = completedWork.child; - null !== treeBaseDuration$142; + treeBaseDuration$143 = completedWork.child; + null !== treeBaseDuration$143; ) (newChildLanes |= - treeBaseDuration$142.lanes | treeBaseDuration$142.childLanes), - (subtreeFlags |= treeBaseDuration$142.subtreeFlags & 31457280), - (subtreeFlags |= treeBaseDuration$142.flags & 31457280), - (treeBaseDuration$142.return = completedWork), - (treeBaseDuration$142 = treeBaseDuration$142.sibling); + treeBaseDuration$143.lanes | treeBaseDuration$143.childLanes), + (subtreeFlags |= treeBaseDuration$143.subtreeFlags & 31457280), + (subtreeFlags |= treeBaseDuration$143.flags & 31457280), + (treeBaseDuration$143.return = completedWork), + (treeBaseDuration$143 = treeBaseDuration$143.sibling); else if (0 !== (completedWork.mode & 2)) { - treeBaseDuration$142 = completedWork.actualDuration; - child$143 = completedWork.selfBaseDuration; + treeBaseDuration$143 = completedWork.actualDuration; + child$144 = completedWork.selfBaseDuration; for (var child = completedWork.child; null !== child; ) (newChildLanes |= child.lanes | child.childLanes), (subtreeFlags |= child.subtreeFlags), (subtreeFlags |= child.flags), - (treeBaseDuration$142 += child.actualDuration), - (child$143 += child.treeBaseDuration), + (treeBaseDuration$143 += child.actualDuration), + (child$144 += child.treeBaseDuration), (child = child.sibling); - completedWork.actualDuration = treeBaseDuration$142; - completedWork.treeBaseDuration = child$143; + completedWork.actualDuration = treeBaseDuration$143; + completedWork.treeBaseDuration = child$144; } else for ( - treeBaseDuration$142 = completedWork.child; - null !== treeBaseDuration$142; + treeBaseDuration$143 = completedWork.child; + null !== treeBaseDuration$143; ) (newChildLanes |= - treeBaseDuration$142.lanes | treeBaseDuration$142.childLanes), - (subtreeFlags |= treeBaseDuration$142.subtreeFlags), - (subtreeFlags |= treeBaseDuration$142.flags), - (treeBaseDuration$142.return = completedWork), - (treeBaseDuration$142 = treeBaseDuration$142.sibling); + treeBaseDuration$143.lanes | treeBaseDuration$143.childLanes), + (subtreeFlags |= treeBaseDuration$143.subtreeFlags), + (subtreeFlags |= treeBaseDuration$143.flags), + (treeBaseDuration$143.return = completedWork), + (treeBaseDuration$143 = treeBaseDuration$143.sibling); completedWork.subtreeFlags |= subtreeFlags; completedWork.childLanes = newChildLanes; return didBailout; @@ -10408,11 +10444,11 @@ function completeWork(current, workInProgress, renderLanes) { null !== newProps.alternate.memoizedState && null !== newProps.alternate.memoizedState.cachePool && (type = newProps.alternate.memoizedState.cachePool.pool); - var cache$158 = null; + var cache$159 = null; null !== newProps.memoizedState && null !== newProps.memoizedState.cachePool && - (cache$158 = newProps.memoizedState.cachePool.pool); - cache$158 !== type && (newProps.flags |= 2048); + (cache$159 = newProps.memoizedState.cachePool.pool); + cache$159 !== type && (newProps.flags |= 2048); } renderLanes !== current && renderLanes && @@ -10442,8 +10478,8 @@ function completeWork(current, workInProgress, renderLanes) { type = workInProgress.memoizedState; if (null === type) return bubbleProperties(workInProgress), null; newProps = 0 !== (workInProgress.flags & 128); - cache$158 = type.rendering; - if (null === cache$158) + cache$159 = type.rendering; + if (null === cache$159) if (newProps) cutOffTailIfNeeded(type, !1); else { if ( @@ -10451,11 +10487,11 @@ function completeWork(current, workInProgress, renderLanes) { (null !== current && 0 !== (current.flags & 128)) ) for (current = workInProgress.child; null !== current; ) { - cache$158 = findFirstSuspended(current); - if (null !== cache$158) { + cache$159 = findFirstSuspended(current); + if (null !== cache$159) { workInProgress.flags |= 128; cutOffTailIfNeeded(type, !1); - current = cache$158.updateQueue; + current = cache$159.updateQueue; workInProgress.updateQueue = current; scheduleRetryEffect(workInProgress, current); workInProgress.subtreeFlags = 0; @@ -10480,7 +10516,7 @@ function completeWork(current, workInProgress, renderLanes) { } else { if (!newProps) - if (((current = findFirstSuspended(cache$158)), null !== current)) { + if (((current = findFirstSuspended(cache$159)), null !== current)) { if ( ((workInProgress.flags |= 128), (newProps = !0), @@ -10490,7 +10526,7 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !0), null === type.tail && "hidden" === type.tailMode && - !cache$158.alternate && + !cache$159.alternate && !isHydrating) ) return bubbleProperties(workInProgress), null; @@ -10503,13 +10539,13 @@ function completeWork(current, workInProgress, renderLanes) { cutOffTailIfNeeded(type, !1), (workInProgress.lanes = 4194304)); type.isBackwards - ? ((cache$158.sibling = workInProgress.child), - (workInProgress.child = cache$158)) + ? ((cache$159.sibling = workInProgress.child), + (workInProgress.child = cache$159)) : ((current = type.last), null !== current - ? (current.sibling = cache$158) - : (workInProgress.child = cache$158), - (type.last = cache$158)); + ? (current.sibling = cache$159) + : (workInProgress.child = cache$159), + (type.last = cache$159)); } if (null !== type.tail) return ( @@ -10692,6 +10728,7 @@ var DefaultAsyncDispatcher = { workInProgressSuspendedReason = 0, workInProgressThrownValue = null, workInProgressRootDidSkipSuspendedSiblings = !1, + workInProgressRootIsPrerendering = !1, workInProgressRootDidAttachPingListener = !1, entangledRenderLanes = 0, workInProgressRootExitStatus = 0, @@ -10742,7 +10779,8 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); markRootUpdated$1(root, lane); if (0 === (executionContext & 2) || root !== workInProgressRoot) @@ -10754,23 +10792,35 @@ function scheduleUpdateOnFiber(root, fiber, lane) { markRootSuspended( root, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 )), ensureRootIsScheduled(root); } function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { if (0 !== (executionContext & 6)) throw Error(formatProdErrorMessage(327)); - var exitStatus = (forceSync = + var shouldTimeSlice = (!forceSync && 0 === (lanes & 60) && 0 === (lanes & root$jscomp$0.expiredLanes)) || - !1) + checkIfRootIsPrerendering(root$jscomp$0, lanes), + exitStatus = shouldTimeSlice ? renderRootConcurrent(root$jscomp$0, lanes) : renderRootSync(root$jscomp$0, lanes, !0), - renderWasConcurrent = forceSync; + renderWasConcurrent = shouldTimeSlice; do { - if (0 === exitStatus) break; - else if (6 === exitStatus) markRootSuspended(root$jscomp$0, lanes, 0); + if (0 === exitStatus) { + workInProgressRootIsPrerendering && + !shouldTimeSlice && + markRootSuspended(root$jscomp$0, lanes, 0, !1); + break; + } else if (6 === exitStatus) + markRootSuspended( + root$jscomp$0, + lanes, + 0, + !workInProgressRootDidSkipSuspendedSiblings + ); else { forceSync = root$jscomp$0.current.alternate; if ( @@ -10830,11 +10880,11 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { } if (1 === exitStatus) { prepareFreshStack(root$jscomp$0, 0); - markRootSuspended(root$jscomp$0, lanes, 0); + markRootSuspended(root$jscomp$0, lanes, 0, !0); break; } a: { - renderWasConcurrent = root$jscomp$0; + shouldTimeSlice = root$jscomp$0; switch (exitStatus) { case 0: case 1: @@ -10842,9 +10892,10 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { case 4: if ((lanes & 4194176) === lanes) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); break a; } @@ -10858,23 +10909,24 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { default: throw Error(formatProdErrorMessage(329)); } - renderWasConcurrent.finishedWork = forceSync; - renderWasConcurrent.finishedLanes = lanes; + shouldTimeSlice.finishedWork = forceSync; + shouldTimeSlice.finishedLanes = lanes; if ( (lanes & 62914560) === lanes && - ((exitStatus = globalMostRecentFallbackTime + 300 - now$1()), - 10 < exitStatus) + ((renderWasConcurrent = globalMostRecentFallbackTime + 300 - now$1()), + 10 < renderWasConcurrent) ) { markRootSuspended( - renderWasConcurrent, + shouldTimeSlice, lanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !workInProgressRootDidSkipSuspendedSiblings ); - if (0 !== getNextLanes(renderWasConcurrent, 0)) break a; - renderWasConcurrent.timeoutHandle = scheduleTimeout( + if (0 !== getNextLanes(shouldTimeSlice, 0)) break a; + shouldTimeSlice.timeoutHandle = scheduleTimeout( commitRootWhenReady.bind( null, - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -10888,12 +10940,12 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { -0, 0 ), - exitStatus + renderWasConcurrent ); break a; } commitRootWhenReady( - renderWasConcurrent, + shouldTimeSlice, forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, @@ -10936,11 +10988,8 @@ function commitRootWhenReady( completedRenderStartTime, completedRenderEndTime ) { - didSkipSuspendedSiblings = finishedWork.subtreeFlags; - if ( - didSkipSuspendedSiblings & 8192 || - 16785408 === (didSkipSuspendedSiblings & 16785408) - ) + var subtreeFlags = finishedWork.subtreeFlags; + if (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop$1 }), accumulateSuspenseyCommitOnFiber(finishedWork), @@ -10962,7 +11011,7 @@ function commitRootWhenReady( completedRenderEndTime ) ); - markRootSuspended(root, lanes, spawnedLane); + markRootSuspended(root, lanes, spawnedLane, !didSkipSuspendedSiblings); return; } commitRoot( @@ -11012,19 +11061,22 @@ function isRenderConsistentWithExternalStores(finishedWork) { } return !0; } -function markRootSuspended(root, suspendedLanes, spawnedLane) { +function markRootSuspended( + root, + suspendedLanes, + spawnedLane, + didAttemptEntireTree +) { 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; + didAttemptEntireTree && (root.warmLanes |= suspendedLanes); + didAttemptEntireTree = root.expirationTimes; + for (var lanes = suspendedLanes; 0 < lanes; ) { + var index$6 = 31 - clz32(lanes), + lane = 1 << index$6; + didAttemptEntireTree[index$6] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11068,7 +11120,7 @@ function prepareFreshStack(root, lanes) { workInProgressSuspendedReason = 0; workInProgressThrownValue = null; workInProgressRootDidSkipSuspendedSiblings = !1; - checkIfRootIsPrerendering(root, lanes); + workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); workInProgressRootDidAttachPingListener = !1; workInProgressSuspendedRetryLanes = workInProgressDeferredLane = @@ -11088,9 +11140,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; @@ -11102,12 +11154,7 @@ function handleThrow(root, thrownValue) { ReactSharedInternals.H = ContextOnlyDispatcher; thrownValue === SuspenseException ? ((thrownValue = getSuspendedThenable()), - (workInProgressSuspendedReason = - shouldRemainOnPreviousScreen() && - 0 === (workInProgressRootSkippedLanes & 134217727) && - 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727) - ? 2 - : 3)) + (workInProgressSuspendedReason = 3)) : thrownValue === SuspenseyCommitException ? ((thrownValue = getSuspendedThenable()), (workInProgressSuspendedReason = 4)) @@ -11156,21 +11203,6 @@ function handleThrow(root, thrownValue) { ); } } -function shouldRemainOnPreviousScreen() { - var handler = suspenseHandlerStackCursor.current; - return null === handler - ? !0 - : (workInProgressRootRenderLanes & 4194176) === - workInProgressRootRenderLanes - ? null === shellBoundary - ? !0 - : !1 - : (workInProgressRootRenderLanes & 62914560) === - workInProgressRootRenderLanes || - 0 !== (workInProgressRootRenderLanes & 536870912) - ? handler === shellBoundary - : !1; -} function pushDispatcher() { var prevDispatcher = ReactSharedInternals.H; ReactSharedInternals.H = ContextOnlyDispatcher; @@ -11183,16 +11215,22 @@ function pushAsyncDispatcher() { } function renderDidSuspendDelayIfPossible() { workInProgressRootExitStatus = 4; + workInProgressRootDidSkipSuspendedSiblings || + ((workInProgressRootRenderLanes & 4194176) !== + workInProgressRootRenderLanes && + null !== suspenseHandlerStackCursor.current) || + (workInProgressRootIsPrerendering = !0); (0 === (workInProgressRootSkippedLanes & 134217727) && 0 === (workInProgressRootInterleavedUpdatedLanes & 134217727)) || null === workInProgressRoot || markRootSuspended( workInProgressRoot, workInProgressRootRenderLanes, - workInProgressDeferredLane + workInProgressDeferredLane, + !1 ); } -function renderRootSync(root, lanes) { +function renderRootSync(root, lanes, shouldYieldForPrerendering) { var prevExecutionContext = executionContext; executionContext |= 2; var prevDispatcher = pushDispatcher(), @@ -11229,6 +11267,13 @@ function renderRootSync(root, lanes) { workInProgressSuspendedReason = 0; workInProgressThrownValue = null; throwAndUnwindWorkLoop(root, unitOfWork, thrownValue, reason); + if ( + shouldYieldForPrerendering && + workInProgressRootIsPrerendering + ) { + memoizedUpdaters = 0; + break a; + } break; default: (reason = workInProgressSuspendedReason), @@ -11240,8 +11285,8 @@ function renderRootSync(root, lanes) { workLoopSync(); memoizedUpdaters = workInProgressRootExitStatus; break; - } catch (thrownValue$174) { - handleThrow(root, thrownValue$174); + } catch (thrownValue$179) { + handleThrow(root, thrownValue$179); } while (1); lanes && root.shellSuspendCounter++; @@ -11275,7 +11320,8 @@ function renderRootConcurrent(root, lanes) { workInProgressTransitions = null; workInProgressRootRenderTargetTime = now$1() + 500; prepareFreshStack(root, lanes); - } else checkIfRootIsPrerendering(root, lanes); + } else + workInProgressRootIsPrerendering = checkIfRootIsPrerendering(root, lanes); markRenderStarted(lanes); a: do try { @@ -11361,8 +11407,8 @@ function renderRootConcurrent(root, lanes) { } workLoopConcurrent(); break; - } catch (thrownValue$176) { - handleThrow(root, thrownValue$176); + } catch (thrownValue$181) { + handleThrow(root, thrownValue$181); } while (1); lastContextDependency = currentlyRenderingFiber = null; @@ -11438,7 +11484,12 @@ function replaySuspendedUnitOfWork(unitOfWork) { unitOfWork.memoizedProps = unitOfWork.pendingProps; null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next); } -function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { +function throwAndUnwindWorkLoop( + root, + unitOfWork, + thrownValue, + suspendedReason +) { lastContextDependency = currentlyRenderingFiber = null; resetHooksOnUnwind(unitOfWork); thenableState$1 = null; @@ -11472,9 +11523,23 @@ function throwAndUnwindWorkLoop(root, unitOfWork, thrownValue) { workInProgress = null; return; } - unitOfWork.flags & 32768 - ? unwindUnitOfWork(unitOfWork, !0) - : completeUnitOfWork(unitOfWork); + if (unitOfWork.flags & 32768) { + if (isHydrating || 1 === suspendedReason) root = !0; + else if ( + workInProgressRootIsPrerendering || + 0 !== (workInProgressRootRenderLanes & 536870912) + ) + root = !1; + else if ( + ((workInProgressRootDidSkipSuspendedSiblings = root = !0), + 2 === suspendedReason || 3 === suspendedReason || 6 === suspendedReason) + ) + (suspendedReason = suspenseHandlerStackCursor.current), + null !== suspendedReason && + 13 === suspendedReason.tag && + (suspendedReason.flags |= 16384); + unwindUnitOfWork(unitOfWork, root); + } else completeUnitOfWork(unitOfWork); } function completeUnitOfWork(unitOfWork) { var completedWork = unitOfWork; @@ -11576,7 +11641,9 @@ function commitRootImpl( transitions, didIncludeRenderPhaseUpdate, renderPriorityLevel, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ) { do flushPassiveEffects(); while (null !== rootWithPendingPassiveEffects); @@ -11599,7 +11666,9 @@ function commitRootImpl( root, didIncludeRenderPhaseUpdate, remainingLanes, - spawnedLane + spawnedLane, + updatedLanes, + suspendedRetryLanes ); root === workInProgressRoot && ((workInProgress = workInProgressRoot = null), @@ -11616,33 +11685,33 @@ function commitRootImpl( })); commitStartTime = now(); transitions = 0 !== (finishedWork.flags & 15990); - if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { - transitions = ReactSharedInternals.T; - ReactSharedInternals.T = null; - spawnedLane = ReactDOMSharedInternals.p; - ReactDOMSharedInternals.p = 2; - var prevExecutionContext = executionContext; - executionContext |= 4; - commitBeforeMutationEffects(root, finishedWork); - commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate); - restoreSelection(selectionInformation, root.containerInfo); - _enabled = !!eventsEnabled; - selectionInformation = eventsEnabled = null; - root.current = finishedWork; - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted && - injectedProfilingHooks.markLayoutEffectsStarted( - didIncludeRenderPhaseUpdate - ); - commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate); - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && - injectedProfilingHooks.markLayoutEffectsStopped(); - requestPaint(); - executionContext = prevExecutionContext; - ReactDOMSharedInternals.p = spawnedLane; - ReactSharedInternals.T = transitions; - } else root.current = finishedWork; + 0 !== (finishedWork.subtreeFlags & 15990) || transitions + ? ((transitions = ReactSharedInternals.T), + (ReactSharedInternals.T = null), + (spawnedLane = ReactDOMSharedInternals.p), + (ReactDOMSharedInternals.p = 2), + (updatedLanes = executionContext), + (executionContext |= 4), + commitBeforeMutationEffects(root, finishedWork), + commitMutationEffects(root, finishedWork, didIncludeRenderPhaseUpdate), + restoreSelection(selectionInformation, root.containerInfo), + (_enabled = !!eventsEnabled), + (selectionInformation = eventsEnabled = null), + (root.current = finishedWork), + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markLayoutEffectsStarted && + injectedProfilingHooks.markLayoutEffectsStarted( + didIncludeRenderPhaseUpdate + ), + commitLayoutEffects(finishedWork, root, didIncludeRenderPhaseUpdate), + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markLayoutEffectsStopped && + injectedProfilingHooks.markLayoutEffectsStopped(), + requestPaint(), + (executionContext = updatedLanes), + (ReactDOMSharedInternals.p = spawnedLane), + (ReactSharedInternals.T = transitions)) + : (root.current = finishedWork); rootDoesHavePassiveEffects ? ((rootDoesHavePassiveEffects = !1), (rootWithPendingPassiveEffects = root), @@ -11683,7 +11752,7 @@ function releaseRootPooledCache(root, remainingLanes) { } function flushPassiveEffects() { if (null !== rootWithPendingPassiveEffects) { - var root$180 = rootWithPendingPassiveEffects, + var root$185 = rootWithPendingPassiveEffects, remainingLanes = pendingPassiveEffectsRemainingLanes; pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), @@ -11733,7 +11802,7 @@ function flushPassiveEffects() { } finally { (ReactDOMSharedInternals.p = previousPriority), (ReactSharedInternals.T = prevTransition), - releaseRootPooledCache(root$180, remainingLanes); + releaseRootPooledCache(root$185, remainingLanes); } } return !1; @@ -11883,14 +11952,14 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { isFlushingWork = !0; do { var didPerformSomeWork = !1; - for (var root$182 = firstScheduledRoot; null !== root$182; ) { + for (var root$187 = firstScheduledRoot; null !== root$187; ) { if (!onlyLegacy) if (0 !== syncTransitionLanes) { - var pendingLanes = root$182.pendingLanes; + var pendingLanes = root$187.pendingLanes; if (0 === pendingLanes) var JSCompiler_inline_result = 0; else { - var suspendedLanes = root$182.suspendedLanes, - pingedLanes = root$182.pingedLanes; + var suspendedLanes = root$187.suspendedLanes, + pingedLanes = root$187.pingedLanes; JSCompiler_inline_result = (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1; JSCompiler_inline_result &= @@ -11904,18 +11973,18 @@ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { } 0 !== JSCompiler_inline_result && ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$182, JSCompiler_inline_result)); + performSyncWorkOnRoot(root$187, JSCompiler_inline_result)); } else (JSCompiler_inline_result = workInProgressRootRenderLanes), (JSCompiler_inline_result = getNextLanes( - root$182, - root$182 === workInProgressRoot ? JSCompiler_inline_result : 0 + root$187, + root$187 === workInProgressRoot ? JSCompiler_inline_result : 0 )), 0 === (JSCompiler_inline_result & 3) || - checkIfRootIsPrerendering(root$182, JSCompiler_inline_result) || + checkIfRootIsPrerendering(root$187, JSCompiler_inline_result) || ((didPerformSomeWork = !0), - performSyncWorkOnRoot(root$182, JSCompiler_inline_result)); - root$182 = root$182.next; + performSyncWorkOnRoot(root$187, JSCompiler_inline_result)); + root$187 = root$187.next; } } while (didPerformSomeWork); isFlushingWork = !1; @@ -11956,12 +12025,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < lanes; ) { - var index$4 = 31 - clz32(lanes), - lane = 1 << index$4, - expirationTime = expirationTimes[index$4]; + var index$5 = 31 - clz32(lanes), + 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); lanes &= ~lane; } @@ -11984,37 +12053,37 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { (root.callbackNode = null), (root.callbackPriority = 0) ); - if (0 !== (suspendedLanes & 3)) - return ( - null !== pingedLanes && - null !== pingedLanes && - cancelCallback$1(pingedLanes), - (root.callbackPriority = 2), - (root.callbackNode = null), - 2 - ); - currentTime = suspendedLanes & -suspendedLanes; - if (currentTime === root.callbackPriority) return currentTime; - null !== pingedLanes && cancelCallback$1(pingedLanes); - switch (lanesToEventPriority(suspendedLanes)) { - case 2: - case 8: - suspendedLanes = UserBlockingPriority; - break; - case 32: - suspendedLanes = NormalPriority$1; - break; - case 268435456: - suspendedLanes = IdlePriority; - break; - default: - suspendedLanes = NormalPriority$1; - } - pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); - suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); - root.callbackPriority = currentTime; - root.callbackNode = suspendedLanes; - return currentTime; + if ( + 0 === (suspendedLanes & 3) || + checkIfRootIsPrerendering(root, suspendedLanes) + ) { + currentTime = suspendedLanes & -suspendedLanes; + if (currentTime === root.callbackPriority) return currentTime; + null !== pingedLanes && cancelCallback$1(pingedLanes); + switch (lanesToEventPriority(suspendedLanes)) { + case 2: + case 8: + suspendedLanes = UserBlockingPriority; + break; + case 32: + suspendedLanes = NormalPriority$1; + break; + case 268435456: + suspendedLanes = IdlePriority; + break; + default: + suspendedLanes = NormalPriority$1; + } + pingedLanes = performWorkOnRootViaSchedulerTask.bind(null, root); + suspendedLanes = scheduleCallback$3(suspendedLanes, pingedLanes); + root.callbackPriority = currentTime; + root.callbackNode = suspendedLanes; + return currentTime; + } + null !== pingedLanes && null !== pingedLanes && cancelCallback$1(pingedLanes); + root.callbackPriority = 2; + root.callbackNode = null; + return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { nestedUpdateScheduled = currentUpdateIsNested = !1; @@ -12146,20 +12215,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1519 = 0; - i$jscomp$inline_1519 < simpleEventPluginEvents.length; - i$jscomp$inline_1519++ + var i$jscomp$inline_1528 = 0; + i$jscomp$inline_1528 < simpleEventPluginEvents.length; + i$jscomp$inline_1528++ ) { - var eventName$jscomp$inline_1520 = - simpleEventPluginEvents[i$jscomp$inline_1519], - domEventName$jscomp$inline_1521 = - eventName$jscomp$inline_1520.toLowerCase(), - capitalizedEvent$jscomp$inline_1522 = - eventName$jscomp$inline_1520[0].toUpperCase() + - eventName$jscomp$inline_1520.slice(1); + var eventName$jscomp$inline_1529 = + simpleEventPluginEvents[i$jscomp$inline_1528], + domEventName$jscomp$inline_1530 = + eventName$jscomp$inline_1529.toLowerCase(), + capitalizedEvent$jscomp$inline_1531 = + eventName$jscomp$inline_1529[0].toUpperCase() + + eventName$jscomp$inline_1529.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1521, - "on" + capitalizedEvent$jscomp$inline_1522 + domEventName$jscomp$inline_1530, + "on" + capitalizedEvent$jscomp$inline_1531 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13342,34 +13411,34 @@ function setInitialProperties(domElement, tag, props) { defaultChecked = null; for (hasSrc in props) if (props.hasOwnProperty(hasSrc)) { - var propValue$196 = props[hasSrc]; - if (null != propValue$196) + var propValue$201 = props[hasSrc]; + if (null != propValue$201) switch (hasSrc) { case "name": - hasSrcSet = propValue$196; + hasSrcSet = propValue$201; break; case "type": - propValue = propValue$196; + propValue = propValue$201; break; case "checked": - checked = propValue$196; + checked = propValue$201; break; case "defaultChecked": - defaultChecked = propValue$196; + defaultChecked = propValue$201; break; case "value": - propKey = propValue$196; + propKey = propValue$201; break; case "defaultValue": - defaultValue = propValue$196; + defaultValue = propValue$201; break; case "children": case "dangerouslySetInnerHTML": - if (null != propValue$196) + if (null != propValue$201) throw Error(formatProdErrorMessage(137, tag)); break; default: - setProp(domElement, tag, hasSrc, propValue$196, props, null); + setProp(domElement, tag, hasSrc, propValue$201, props, null); } } initInput( @@ -13506,14 +13575,14 @@ function setInitialProperties(domElement, tag, props) { return; default: if (isCustomElement(tag)) { - for (propValue$196 in props) - props.hasOwnProperty(propValue$196) && - ((hasSrc = props[propValue$196]), + for (propValue$201 in props) + props.hasOwnProperty(propValue$201) && + ((hasSrc = props[propValue$201]), void 0 !== hasSrc && setPropOnCustomElement( domElement, tag, - propValue$196, + propValue$201, hasSrc, props, void 0 @@ -13561,14 +13630,14 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp(domElement, tag, propKey, null, nextProps, lastProp); } } - for (var propKey$213 in nextProps) { - var propKey = nextProps[propKey$213]; - lastProp = lastProps[propKey$213]; + for (var propKey$218 in nextProps) { + var propKey = nextProps[propKey$218]; + lastProp = lastProps[propKey$218]; if ( - nextProps.hasOwnProperty(propKey$213) && + nextProps.hasOwnProperty(propKey$218) && (null != propKey || null != lastProp) ) - switch (propKey$213) { + switch (propKey$218) { case "type": type = propKey; break; @@ -13597,7 +13666,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$213, + propKey$218, propKey, nextProps, lastProp @@ -13616,7 +13685,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ); return; case "select": - propKey = value = defaultValue = propKey$213 = null; + propKey = value = defaultValue = propKey$218 = null; for (type in lastProps) if ( ((lastDefaultValue = lastProps[type]), @@ -13647,7 +13716,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (name) { case "value": - propKey$213 = type; + propKey$218 = type; break; case "defaultValue": defaultValue = type; @@ -13668,15 +13737,15 @@ function updateProperties(domElement, tag, lastProps, nextProps) { tag = defaultValue; lastProps = value; nextProps = propKey; - null != propKey$213 - ? updateOptions(domElement, !!lastProps, propKey$213, !1) + null != propKey$218 + ? updateOptions(domElement, !!lastProps, propKey$218, !1) : !!nextProps !== !!lastProps && (null != tag ? updateOptions(domElement, !!lastProps, tag, !0) : updateOptions(domElement, !!lastProps, lastProps ? [] : "", !1)); return; case "textarea": - propKey = propKey$213 = null; + propKey = propKey$218 = null; for (defaultValue in lastProps) if ( ((name = lastProps[defaultValue]), @@ -13700,7 +13769,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { ) switch (value) { case "value": - propKey$213 = name; + propKey$218 = name; break; case "defaultValue": propKey = name; @@ -13714,17 +13783,17 @@ function updateProperties(domElement, tag, lastProps, nextProps) { name !== type && setProp(domElement, tag, value, name, nextProps, type); } - updateTextarea(domElement, propKey$213, propKey); + updateTextarea(domElement, propKey$218, propKey); return; case "option": - for (var propKey$229 in lastProps) + for (var propKey$234 in lastProps) if ( - ((propKey$213 = lastProps[propKey$229]), - lastProps.hasOwnProperty(propKey$229) && - null != propKey$213 && - !nextProps.hasOwnProperty(propKey$229)) + ((propKey$218 = lastProps[propKey$234]), + lastProps.hasOwnProperty(propKey$234) && + null != propKey$218 && + !nextProps.hasOwnProperty(propKey$234)) ) - switch (propKey$229) { + switch (propKey$234) { case "selected": domElement.selected = !1; break; @@ -13732,33 +13801,33 @@ function updateProperties(domElement, tag, lastProps, nextProps) { setProp( domElement, tag, - propKey$229, + propKey$234, null, nextProps, - propKey$213 + propKey$218 ); } for (lastDefaultValue in nextProps) if ( - ((propKey$213 = nextProps[lastDefaultValue]), + ((propKey$218 = nextProps[lastDefaultValue]), (propKey = lastProps[lastDefaultValue]), nextProps.hasOwnProperty(lastDefaultValue) && - propKey$213 !== propKey && - (null != propKey$213 || null != propKey)) + propKey$218 !== propKey && + (null != propKey$218 || null != propKey)) ) switch (lastDefaultValue) { case "selected": domElement.selected = - propKey$213 && - "function" !== typeof propKey$213 && - "symbol" !== typeof propKey$213; + propKey$218 && + "function" !== typeof propKey$218 && + "symbol" !== typeof propKey$218; break; default: setProp( domElement, tag, lastDefaultValue, - propKey$213, + propKey$218, nextProps, propKey ); @@ -13779,24 +13848,24 @@ function updateProperties(domElement, tag, lastProps, nextProps) { case "track": case "wbr": case "menuitem": - for (var propKey$234 in lastProps) - (propKey$213 = lastProps[propKey$234]), - lastProps.hasOwnProperty(propKey$234) && - null != propKey$213 && - !nextProps.hasOwnProperty(propKey$234) && - setProp(domElement, tag, propKey$234, null, nextProps, propKey$213); + for (var propKey$239 in lastProps) + (propKey$218 = lastProps[propKey$239]), + lastProps.hasOwnProperty(propKey$239) && + null != propKey$218 && + !nextProps.hasOwnProperty(propKey$239) && + setProp(domElement, tag, propKey$239, null, nextProps, propKey$218); for (checked in nextProps) if ( - ((propKey$213 = nextProps[checked]), + ((propKey$218 = nextProps[checked]), (propKey = lastProps[checked]), nextProps.hasOwnProperty(checked) && - propKey$213 !== propKey && - (null != propKey$213 || null != propKey)) + propKey$218 !== propKey && + (null != propKey$218 || null != propKey)) ) switch (checked) { case "children": case "dangerouslySetInnerHTML": - if (null != propKey$213) + if (null != propKey$218) throw Error(formatProdErrorMessage(137, tag)); break; default: @@ -13804,7 +13873,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { domElement, tag, checked, - propKey$213, + propKey$218, nextProps, propKey ); @@ -13812,49 +13881,49 @@ function updateProperties(domElement, tag, lastProps, nextProps) { return; default: if (isCustomElement(tag)) { - for (var propKey$239 in lastProps) - (propKey$213 = lastProps[propKey$239]), - lastProps.hasOwnProperty(propKey$239) && - void 0 !== propKey$213 && - !nextProps.hasOwnProperty(propKey$239) && + for (var propKey$244 in lastProps) + (propKey$218 = lastProps[propKey$244]), + lastProps.hasOwnProperty(propKey$244) && + void 0 !== propKey$218 && + !nextProps.hasOwnProperty(propKey$244) && setPropOnCustomElement( domElement, tag, - propKey$239, + propKey$244, void 0, nextProps, - propKey$213 + propKey$218 ); for (defaultChecked in nextProps) - (propKey$213 = nextProps[defaultChecked]), + (propKey$218 = nextProps[defaultChecked]), (propKey = lastProps[defaultChecked]), !nextProps.hasOwnProperty(defaultChecked) || - propKey$213 === propKey || - (void 0 === propKey$213 && void 0 === propKey) || + propKey$218 === propKey || + (void 0 === propKey$218 && void 0 === propKey) || setPropOnCustomElement( domElement, tag, defaultChecked, - propKey$213, + propKey$218, nextProps, propKey ); return; } } - for (var propKey$244 in lastProps) - (propKey$213 = lastProps[propKey$244]), - lastProps.hasOwnProperty(propKey$244) && - null != propKey$213 && - !nextProps.hasOwnProperty(propKey$244) && - setProp(domElement, tag, propKey$244, null, nextProps, propKey$213); + for (var propKey$249 in lastProps) + (propKey$218 = lastProps[propKey$249]), + lastProps.hasOwnProperty(propKey$249) && + null != propKey$218 && + !nextProps.hasOwnProperty(propKey$249) && + setProp(domElement, tag, propKey$249, null, nextProps, propKey$218); for (lastProp in nextProps) - (propKey$213 = nextProps[lastProp]), + (propKey$218 = nextProps[lastProp]), (propKey = lastProps[lastProp]), !nextProps.hasOwnProperty(lastProp) || - propKey$213 === propKey || - (null == propKey$213 && null == propKey) || - setProp(domElement, tag, lastProp, propKey$213, nextProps, propKey); + propKey$218 === propKey || + (null == propKey$218 && null == propKey) || + setProp(domElement, tag, lastProp, propKey$218, nextProps, propKey); } var eventsEnabled = null, selectionInformation = null; @@ -14399,26 +14468,26 @@ function getResource(type, currentProps, pendingProps, currentResource) { "string" === typeof pendingProps.precedence ) { type = getStyleKey(pendingProps.href); - var styles$252 = getResourcesFromRoot( + var styles$257 = getResourcesFromRoot( JSCompiler_inline_result ).hoistableStyles, - resource$253 = styles$252.get(type); - resource$253 || + resource$258 = styles$257.get(type); + resource$258 || ((JSCompiler_inline_result = JSCompiler_inline_result.ownerDocument || JSCompiler_inline_result), - (resource$253 = { + (resource$258 = { type: "stylesheet", instance: null, count: 0, state: { loading: 0, preload: null } }), - styles$252.set(type, resource$253), - (styles$252 = JSCompiler_inline_result.querySelector( + styles$257.set(type, resource$258), + (styles$257 = JSCompiler_inline_result.querySelector( getStylesheetSelectorFromKey(type) )) && - !styles$252._p && - ((resource$253.instance = styles$252), - (resource$253.state.loading = 5)), + !styles$257._p && + ((resource$258.instance = styles$257), + (resource$258.state.loading = 5)), preloadPropsMap.has(type) || ((pendingProps = { rel: "preload", @@ -14431,16 +14500,16 @@ function getResource(type, currentProps, pendingProps, currentResource) { referrerPolicy: pendingProps.referrerPolicy }), preloadPropsMap.set(type, pendingProps), - styles$252 || + styles$257 || preloadStylesheet( JSCompiler_inline_result, type, pendingProps, - resource$253.state + resource$258.state ))); if (currentProps && null === currentResource) throw Error(formatProdErrorMessage(528, "")); - return resource$253; + return resource$258; } if (currentProps && null !== currentResource) throw Error(formatProdErrorMessage(529, "")); @@ -14537,37 +14606,37 @@ function acquireResource(hoistableRoot, resource, props) { return (resource.instance = instance); case "stylesheet": styleProps = getStyleKey(props.href); - var instance$258 = hoistableRoot.querySelector( + var instance$263 = hoistableRoot.querySelector( getStylesheetSelectorFromKey(styleProps) ); - if (instance$258) + if (instance$263) return ( (resource.state.loading |= 4), - (resource.instance = instance$258), - markNodeAsHoistable(instance$258), - instance$258 + (resource.instance = instance$263), + markNodeAsHoistable(instance$263), + instance$263 ); instance = stylesheetPropsFromRawProps(props); (styleProps = preloadPropsMap.get(styleProps)) && adoptPreloadPropsForStylesheet(instance, styleProps); - instance$258 = ( + instance$263 = ( hoistableRoot.ownerDocument || hoistableRoot ).createElement("link"); - markNodeAsHoistable(instance$258); - var linkInstance = instance$258; + markNodeAsHoistable(instance$263); + var linkInstance = instance$263; linkInstance._p = new Promise(function (resolve, reject) { linkInstance.onload = resolve; linkInstance.onerror = reject; }); - setInitialProperties(instance$258, "link", instance); + setInitialProperties(instance$263, "link", instance); resource.state.loading |= 4; - insertStylesheet(instance$258, props.precedence, hoistableRoot); - return (resource.instance = instance$258); + insertStylesheet(instance$263, props.precedence, hoistableRoot); + return (resource.instance = instance$263); case "script": - instance$258 = getScriptKey(props.src); + instance$263 = getScriptKey(props.src); if ( (styleProps = hoistableRoot.querySelector( - getScriptSelectorFromKey(instance$258) + getScriptSelectorFromKey(instance$263) )) ) return ( @@ -14576,7 +14645,7 @@ function acquireResource(hoistableRoot, resource, props) { styleProps ); instance = props; - if ((styleProps = preloadPropsMap.get(instance$258))) + if ((styleProps = preloadPropsMap.get(instance$263))) (instance = assign({}, props)), adoptPreloadPropsForScript(instance, styleProps); hoistableRoot = hoistableRoot.ownerDocument || hoistableRoot; @@ -15619,16 +15688,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1768 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1777 = React.version; if ( - "19.0.0-rc-380f5d67-20241113" !== - isomorphicReactPackageVersion$jscomp$inline_1768 + "19.0.0-rc-b01722d5-20241114" !== + isomorphicReactPackageVersion$jscomp$inline_1777 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1768, - "19.0.0-rc-380f5d67-20241113" + isomorphicReactPackageVersion$jscomp$inline_1777, + "19.0.0-rc-b01722d5-20241114" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15648,18 +15717,18 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_1775 = { +var internals$jscomp$inline_1784 = { bundleType: 0, - version: "19.0.0-rc-380f5d67-20241113", + version: "19.0.0-rc-b01722d5-20241114", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-380f5d67-20241113", + reconcilerVersion: "19.0.0-rc-b01722d5-20241114", getLaneLabelMap: function () { for ( - var map = new Map(), lane = 1, index$275 = 0; - 31 > index$275; - index$275++ + var map = new Map(), lane = 1, index$280 = 0; + 31 > index$280; + index$280++ ) { var label = getLabelForLane(lane); map.set(lane, label); @@ -15672,16 +15741,16 @@ var internals$jscomp$inline_1775 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2209 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2221 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2209.isDisabled && - hook$jscomp$inline_2209.supportsFiber + !hook$jscomp$inline_2221.isDisabled && + hook$jscomp$inline_2221.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2209.inject( - internals$jscomp$inline_1775 + (rendererID = hook$jscomp$inline_2221.inject( + internals$jscomp$inline_1784 )), - (injectedHook = hook$jscomp$inline_2209); + (injectedHook = hook$jscomp$inline_2221); } catch (err) {} } function noop() {} @@ -15934,7 +16003,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-rc-380f5d67-20241113"; +exports.version = "19.0.0-rc-b01722d5-20241114"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js index bade56f92210d..ab7c62ef63ce6 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js @@ -8570,5 +8570,5 @@ '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-rc-380f5d67-20241113"; + exports.version = "19.0.0-rc-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js index 35c1e3bdd5f57..6386ecce63aa2 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js @@ -5623,4 +5623,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-rc-380f5d67-20241113"; +exports.version = "19.0.0-rc-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js index e62d0120385d2..11f7f8795905b 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js @@ -8570,5 +8570,5 @@ '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 "renderToPipeableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-rc-380f5d67-20241113"; + exports.version = "19.0.0-rc-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js index a717426ee8006..a7821670b1a0a 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js @@ -5701,4 +5701,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 "renderToPipeableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-rc-380f5d67-20241113"; +exports.version = "19.0.0-rc-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js index dafb139fcba59..452389a31dba6 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js @@ -7296,11 +7296,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-b01722d5-20241114" !== 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-rc-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react"), @@ -8952,5 +8952,5 @@ startWork(request); }); }; - exports.version = "19.0.0-rc-380f5d67-20241113"; + exports.version = "19.0.0-rc-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js index 20b8588abc6c0..12cb4daddd3fb 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js @@ -5956,12 +5956,12 @@ function abort(request, reason) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-b01722d5-20241114" !== isomorphicReactPackageVersion) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion, - "19.0.0-rc-380f5d67-20241113" + "19.0.0-rc-b01722d5-20241114" ) ); } @@ -6108,4 +6108,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-rc-380f5d67-20241113"; +exports.version = "19.0.0-rc-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js index 462122e717097..ba013c0a7de63 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js @@ -5594,13 +5594,13 @@ function abort(request, reason) { } var isomorphicReactPackageVersion$jscomp$inline_731 = React.version; if ( - "19.0.0-rc-380f5d67-20241113" !== + "19.0.0-rc-b01722d5-20241114" !== isomorphicReactPackageVersion$jscomp$inline_731 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_731 + - "\n - react-dom: 19.0.0-rc-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -5691,4 +5691,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-rc-380f5d67-20241113"; +exports.version = "19.0.0-rc-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js index e28ef05350c91..9fe2bca984f4b 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js @@ -7319,11 +7319,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-b01722d5-20241114" !== 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-rc-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react"), @@ -8982,5 +8982,5 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; - exports.version = "19.0.0-rc-380f5d67-20241113"; + exports.version = "19.0.0-rc-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js index e1f6d78595068..937b59f081109 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js @@ -6049,11 +6049,11 @@ function abort(request, reason) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-b01722d5-20241114" !== 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-rc-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6210,4 +6210,4 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; -exports.version = "19.0.0-rc-380f5d67-20241113"; +exports.version = "19.0.0-rc-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js index 441277c9351f2..7d3319ee45772 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js @@ -7194,11 +7194,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-b01722d5-20241114" !== 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-rc-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); } function createDrainHandler(destination, request) { @@ -8845,5 +8845,5 @@ } }; }; - exports.version = "19.0.0-rc-380f5d67-20241113"; + exports.version = "19.0.0-rc-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js index 4459735027314..f789c5b47f65f 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js @@ -5941,11 +5941,11 @@ function abort(request, reason) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-380f5d67-20241113" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-b01722d5-20241114" !== 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-rc-380f5d67-20241113\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-b01722d5-20241114\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6094,4 +6094,4 @@ exports.renderToPipeableStream = function (children, options) { } }; }; -exports.version = "19.0.0-rc-380f5d67-20241113"; +exports.version = "19.0.0-rc-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom.development.js index 34a91ba81b0c9..d9ef5173a553c 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.development.js @@ -416,7 +416,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-rc-380f5d67-20241113"; + exports.version = "19.0.0-rc-b01722d5-20241114"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom.production.js index 4b22a046b17da..bfc2ba1fef9fe 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.production.js @@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-rc-380f5d67-20241113"; +exports.version = "19.0.0-rc-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js index 118f9b4c090c6..d3f3a46b47def 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js @@ -336,5 +336,5 @@ })) : Internals.d.m(href)); }; - exports.version = "19.0.0-rc-380f5d67-20241113"; + exports.version = "19.0.0-rc-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js index 57aadd8f62f9f..ef1a0319cef6a 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js @@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) { }); } else Internals.d.m(href); }; -exports.version = "19.0.0-rc-380f5d67-20241113"; +exports.version = "19.0.0-rc-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-dom/package.json b/packages/next/src/compiled/react-dom/package.json index 5a524951ba7d9..bffce0faa00c3 100644 --- a/packages/next/src/compiled/react-dom/package.json +++ b/packages/next/src/compiled/react-dom/package.json @@ -67,10 +67,10 @@ "./package.json": "./package.json" }, "dependencies": { - "scheduler": "0.25.0-rc-380f5d67-20241113" + "scheduler": "0.25.0-rc-b01722d5-20241114" }, "peerDependencies": { - "react": "19.0.0-rc-380f5d67-20241113" + "react": "19.0.0-rc-b01722d5-20241114" }, "browser": { "./server.js": "./server.browser.js", diff --git a/packages/next/src/compiled/react-experimental/cjs/react.development.js b/packages/next/src/compiled/react-experimental/cjs/react.development.js index 6155e19274b05..f589246a4d09b 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.development.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.development.js @@ -1243,7 +1243,7 @@ exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-experimental-380f5d67-20241113"; + exports.version = "19.0.0-experimental-b01722d5-20241114"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-experimental/cjs/react.production.js b/packages/next/src/compiled/react-experimental/cjs/react.production.js index 892b8c849b206..7212572c88b7c 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.production.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.production.js @@ -566,4 +566,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js b/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js index 56fd237d99f00..24663bf149d1e 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js @@ -984,5 +984,5 @@ exports.useMemo = function (create, deps) { return resolveDispatcher().useMemo(create, deps); }; - exports.version = "19.0.0-experimental-380f5d67-20241113"; + exports.version = "19.0.0-experimental-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js b/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js index 517187828a5be..fc7a88fb94d0a 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js @@ -566,4 +566,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.0.0-experimental-380f5d67-20241113"; +exports.version = "19.0.0-experimental-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react-is/package.json b/packages/next/src/compiled/react-is/package.json index c422774ef8075..272cef9a5d40e 100644 --- a/packages/next/src/compiled/react-is/package.json +++ b/packages/next/src/compiled/react-is/package.json @@ -1,6 +1,6 @@ { "name": "react-is", - "version": "19.0.0-rc-380f5d67-20241113", + "version": "19.0.0-rc-b01722d5-20241114", "description": "Brand checking of React Elements.", "main": "index.js", "sideEffects": false, diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js index cf5a79786e421..a1dc4a9a0ccd8 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js @@ -2654,10 +2654,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-experimental-380f5d67-20241113", + version: "19.0.0-experimental-b01722d5-20241114", rendererPackageName: "react-server-dom-turbopack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-experimental-380f5d67-20241113", + reconcilerVersion: "19.0.0-experimental-b01722d5-20241114", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json b/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json index 89e351500b8f9..d9cb247e4c7ea 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json @@ -48,7 +48,7 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "0.0.0-experimental-380f5d67-20241113", - "react-dom": "0.0.0-experimental-380f5d67-20241113" + "react": "0.0.0-experimental-b01722d5-20241114", + "react-dom": "0.0.0-experimental-b01722d5-20241114" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js index e91b041ccd753..b8b2f79b29628 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js @@ -2450,10 +2450,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-rc-380f5d67-20241113", + version: "19.0.0-rc-b01722d5-20241114", rendererPackageName: "react-server-dom-turbopack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-rc-380f5d67-20241113", + reconcilerVersion: "19.0.0-rc-b01722d5-20241114", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack/package.json b/packages/next/src/compiled/react-server-dom-turbopack/package.json index 7afcb9239482c..74f81313c9fdf 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/package.json +++ b/packages/next/src/compiled/react-server-dom-turbopack/package.json @@ -48,7 +48,7 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "19.0.0-rc-380f5d67-20241113", - "react-dom": "19.0.0-rc-380f5d67-20241113" + "react": "19.0.0-rc-b01722d5-20241114", + "react-dom": "19.0.0-rc-b01722d5-20241114" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js index 4a94cff9260bb..e9512e7a09ec1 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js @@ -2669,10 +2669,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-experimental-380f5d67-20241113", + version: "19.0.0-experimental-b01722d5-20241114", rendererPackageName: "react-server-dom-webpack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-experimental-380f5d67-20241113", + reconcilerVersion: "19.0.0-experimental-b01722d5-20241114", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json b/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json index 81e3edc09eef2..f4a1e73848f92 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json @@ -64,8 +64,8 @@ "webpack-sources": "^3.2.0" }, "peerDependencies": { - "react": "0.0.0-experimental-380f5d67-20241113", - "react-dom": "0.0.0-experimental-380f5d67-20241113", + "react": "0.0.0-experimental-b01722d5-20241114", + "react-dom": "0.0.0-experimental-b01722d5-20241114", "webpack": "^5.59.0" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js index 32e878c24c2e5..514ff8a2787cc 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js @@ -2465,10 +2465,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-rc-380f5d67-20241113", + version: "19.0.0-rc-b01722d5-20241114", rendererPackageName: "react-server-dom-webpack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-rc-380f5d67-20241113", + reconcilerVersion: "19.0.0-rc-b01722d5-20241114", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-webpack/package.json b/packages/next/src/compiled/react-server-dom-webpack/package.json index ae35479a8a559..9db7789a98a3b 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/package.json +++ b/packages/next/src/compiled/react-server-dom-webpack/package.json @@ -64,8 +64,8 @@ "webpack-sources": "^3.2.0" }, "peerDependencies": { - "react": "19.0.0-rc-380f5d67-20241113", - "react-dom": "19.0.0-rc-380f5d67-20241113", + "react": "19.0.0-rc-b01722d5-20241114", + "react-dom": "19.0.0-rc-b01722d5-20241114", "webpack": "^5.59.0" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react/cjs/react.development.js b/packages/next/src/compiled/react/cjs/react.development.js index fea53e07d4f3e..5116ad57bd7e5 100644 --- a/packages/next/src/compiled/react/cjs/react.development.js +++ b/packages/next/src/compiled/react/cjs/react.development.js @@ -1070,6 +1070,11 @@ exports.Suspense = REACT_SUSPENSE_TYPE; exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals; + exports.__COMPILER_RUNTIME = { + c: function (size) { + return resolveDispatcher().useMemoCache(size); + } + }; exports.act = function (callback) { var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth; @@ -1513,7 +1518,7 @@ exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-rc-380f5d67-20241113"; + exports.version = "19.0.0-rc-b01722d5-20241114"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react/cjs/react.production.js b/packages/next/src/compiled/react/cjs/react.production.js index 6801286e2141a..eb8de31fcfd2a 100644 --- a/packages/next/src/compiled/react/cjs/react.production.js +++ b/packages/next/src/compiled/react/cjs/react.production.js @@ -357,6 +357,11 @@ exports.StrictMode = REACT_STRICT_MODE_TYPE; exports.Suspense = REACT_SUSPENSE_TYPE; exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals; +exports.__COMPILER_RUNTIME = { + c: function (size) { + return ReactSharedInternals.H.useMemoCache(size); + } +}; exports.act = function () { throw Error("act(...) is not supported in production builds of React."); }; @@ -535,4 +540,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-rc-380f5d67-20241113"; +exports.version = "19.0.0-rc-b01722d5-20241114"; diff --git a/packages/next/src/compiled/react/cjs/react.react-server.development.js b/packages/next/src/compiled/react/cjs/react.react-server.development.js index 0196ff79bff46..b6df91692abe4 100644 --- a/packages/next/src/compiled/react/cjs/react.react-server.development.js +++ b/packages/next/src/compiled/react/cjs/react.react-server.development.js @@ -1110,5 +1110,5 @@ exports.useMemo = function (create, deps) { return resolveDispatcher().useMemo(create, deps); }; - exports.version = "19.0.0-rc-380f5d67-20241113"; + exports.version = "19.0.0-rc-b01722d5-20241114"; })(); diff --git a/packages/next/src/compiled/react/cjs/react.react-server.production.js b/packages/next/src/compiled/react/cjs/react.react-server.production.js index 37bb4115425be..d8623333394a0 100644 --- a/packages/next/src/compiled/react/cjs/react.react-server.production.js +++ b/packages/next/src/compiled/react/cjs/react.react-server.production.js @@ -423,4 +423,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.0.0-rc-380f5d67-20241113"; +exports.version = "19.0.0-rc-b01722d5-20241114"; diff --git a/packages/next/src/compiled/unistore/unistore.js b/packages/next/src/compiled/unistore/unistore.js index f892d0c777eb0..d30a3c439531b 100644 --- a/packages/next/src/compiled/unistore/unistore.js +++ b/packages/next/src/compiled/unistore/unistore.js @@ -1 +1 @@ -(()=>{var t={166:t=>{function n(t,i){for(var _ in i)t[_]=i[_];return t}t.exports=function(t){var i=[];function u(t){for(var _=[],a=0;a{var t={392:t=>{function n(t,i){for(var _ in i)t[_]=i[_];return t}t.exports=function(t){var i=[];function u(t){for(var _=[],a=0;a=18'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114 peerDependenciesMeta: '@types/react': optional: true @@ -10690,7 +10690,7 @@ packages: lucide-react@0.383.0: resolution: {integrity: sha512-13xlG0CQCJtzjSQYwwJ3WRqMHtRj3EXmLlorrARt7y+IHnxUCp3XyFNL1DfaGySWxHObDvnu1u1dV+0VMKHUSg==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 lz-string@1.5.0: resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} @@ -12904,28 +12904,28 @@ packages: resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} hasBin: true - react-dom@0.0.0-experimental-380f5d67-20241113: - resolution: {integrity: sha512-1ok9k5rAF7YuTveNefkPOvZHHuh5RLnCc5DU7sT7IL3i2K+LZmlsbSdlylMevjt9OzovxWQdsk04Fd4GKVCBWg==} + react-dom@0.0.0-experimental-b01722d5-20241114: + resolution: {integrity: sha512-UdD47xg3Eg0yj5hvNeR+VLLLOa53VJJ1vBPXD9rXYBh1oEgLss4TIWIg6jYxC7o9WshgLG+VUABbpCRUPL317w==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 react-dom@17.0.2: resolution: {integrity: sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 - react-dom@19.0.0-rc-380f5d67-20241113: - resolution: {integrity: sha512-jd/2ktaIZieYI76xBPAfEXFfg9XQE/GM++rbItliRJJ6pN205aS3JxGc7WAdm3SkaeIHLwK+V6d+FziVg7g5Eg==} + react-dom@19.0.0-rc-b01722d5-20241114: + resolution: {integrity: sha512-g72oEq/SDdCiaT8fN1lMptSD5bszHSwuQFYtYT39sVzD5CkzYeBJcjv3ParjNZfvWPhjfOL7f1Fe+OIJFupsxQ==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 react-dom@19.0.0-rc-f90a6bcc-20240827: resolution: {integrity: sha512-oUa/reDvGtjRcxi8u+GYHaDHanudaO28+G+Wvxm50CItW1xwIFN2Nn7foJxxDS9lFLGdRWZvjxldZEPAUSuXbg==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 - react-is@19.0.0-rc-380f5d67-20241113: - resolution: {integrity: sha512-DHJS/U7/NVJyV0OjPmiD8OJ/mAd6Xh7mwBLW7u/PRbEIPV1kV7vewaPR71LyhpvXGpUxDaYnWZsY3ZM6oPIXgw==} + react-is@19.0.0-rc-b01722d5-20241114: + resolution: {integrity: sha512-nR4blVGWugab7X2wN/FXLNKw1HWVK8lO9+rv0ip2xN5j6RNvXOV1PKtWOm2TuDzq52Nc6ASyno8FFy088ejsfA==} react-is@19.0.0-rc-f90a6bcc-20240827: resolution: {integrity: sha512-1tXoLFzVbqHAQeY3CwpyF5IYbkwgSoNHhrhS8qOrfiZIh2461h/C1BP/JVIxwyL51wHhUgLsAc/M8g0OcEhV1A==} @@ -12936,8 +12936,8 @@ packages: react-number-format@5.4.0: resolution: {integrity: sha512-NWdICrqLhI7rAS8yUeLVd6Wr4cN7UjJ9IBTS0f/a9i7UB4x4Ti70kGnksBtZ7o4Z7YRbvCMMR/jQmkoOBa/4fg==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114 react-refresh@0.12.0: resolution: {integrity: sha512-suLIhrU2IHKL5JEKR/fAwJv7bbeq4kJ+pJopf77jHwuR+HmJS/HbrPIGsTBUVfw7tXPOmYv7UJ7PCaN49e8x4A==} @@ -12948,7 +12948,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 peerDependenciesMeta: '@types/react': optional: true @@ -12958,58 +12958,58 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 peerDependenciesMeta: '@types/react': optional: true - react-server-dom-turbopack@0.0.0-experimental-380f5d67-20241113: - resolution: {integrity: sha512-fZY113N949g2xiFUl2aNU2fiJ5QL5ruNjCIMobT/LLZyoj4KvMOpg5DhUXUEyXPlDQff09ebkbKlW65kOgw66Q==} + react-server-dom-turbopack@0.0.0-experimental-b01722d5-20241114: + resolution: {integrity: sha512-Gsbq454tZFROwqNKbWZg7oiyxrsnuW9m6dp98i3/U+opb5QPO01ts3keV99L93OQiTS6+drlpVJ2z+HhjfOQog==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114 - react-server-dom-turbopack@19.0.0-rc-380f5d67-20241113: - resolution: {integrity: sha512-GJYcQ06/u48viEqxYMHNdiAFC/5UpSQATqx1OmmDXXMHQXy9jRYBazUtoyQV615G0c2uHyFTpnop+gNdK6Iq6A==} + react-server-dom-turbopack@19.0.0-rc-b01722d5-20241114: + resolution: {integrity: sha512-DAD0Ra9BN8j4lAJgXfQIz/Rx3WDEA/6zSqLt1bpJd5DplaGroq1CTFNG3neG23A8KCKM0lk0bp1p7pvSM6OSPQ==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114 - react-server-dom-webpack@0.0.0-experimental-380f5d67-20241113: - resolution: {integrity: sha512-hUluisy+9Srvrju5yS+qBOIAX82E+MRYOmoTNbV0kUsTi964ZZFLBzuruASAyUbbP1OhtFl0DwBxYN+UT0yUFQ==} + react-server-dom-webpack@0.0.0-experimental-b01722d5-20241114: + resolution: {integrity: sha512-ZxCBnuLtKAbkpccnQW2mdZ/OAbMrSYBIKv1evoSELmLdn0IaCLnAcr3c1YHQMdoxvsO476RIFr8JpyF9Nd7YcA==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114 webpack: 5.96.1 - react-server-dom-webpack@19.0.0-rc-380f5d67-20241113: - resolution: {integrity: sha512-sP9PM/DvFfv7ZBo50cd44WMvUCSEcag1eU1kZcAtfSs+pyTWO4HFzn/N1vPQTQ7HfG4Q4i0Nj298YTQFBls9PA==} + react-server-dom-webpack@19.0.0-rc-b01722d5-20241114: + resolution: {integrity: sha512-fxSd9DVwpSqSM/uqP0QlNWklYnHpMrSbeludGCbR7v9r2hfnpkJH2K1UqUNgBsbAsHvY33e5dbMN68HcBfQGHg==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114 webpack: 5.96.1 react-shallow-renderer@16.15.0: resolution: {integrity: sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 react-ssr-prepass@1.0.8: resolution: {integrity: sha512-O0gfRA1SaK+9ITKxqfnXsej2jF+OHGP/+GxD4unROQaM/0/UczGF9fuF+wTboxaQoKdIf4FvS3h/OigWh704VA==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 - react-is: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + react-is: 19.0.0-rc-b01722d5-20241114 react-style-singleton@2.2.1: resolution: {integrity: sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==} engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 peerDependenciesMeta: '@types/react': optional: true @@ -13017,30 +13017,30 @@ packages: react-test-renderer@18.2.0: resolution: {integrity: sha512-JWD+aQ0lh2gvh4NM3bBM42Kx+XybOxCpgYK7F8ugAlpaTSnWsX+39Z4XkOykGZAHrjwwTZT3x3KxswVWxHPUqA==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 react-textarea-autosize@8.5.3: resolution: {integrity: sha512-XT1024o2pqCuZSuBt9FwHlaDeNtVrtCXu0Rnz88t1jUGheCLa3PhjE1GH8Ctm2axEtvdCl5SUHYschyQ0L5QHQ==} engines: {node: '>=10'} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 react-virtualized@9.22.3: resolution: {integrity: sha512-MKovKMxWTcwPSxE1kK1HcheQTWfuCxAuBoSTf2gwyMM21NdX/PXUhnoP8Uc5dRKd+nKm8v41R36OellhdCpkrw==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114 - react@0.0.0-experimental-380f5d67-20241113: - resolution: {integrity: sha512-QquU1j1TmZR+KgGSFvWTlOuwLvGrA8ldUJean+gT0nYIhSJ1ZkdXJQFnFRWqxoc74C7SY1o4NMz0yJxpUBoQ2w==} + react@0.0.0-experimental-b01722d5-20241114: + resolution: {integrity: sha512-QrufoF9PdRu/I/8ciQJy8zaYUj2LsT4Mud3FR5zqQlyawzY0Vw1zXDSNQiA9N9rUWl8rq+CG8IyqqA1vIphdNA==} engines: {node: '>=0.10.0'} react@17.0.2: resolution: {integrity: sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==} engines: {node: '>=0.10.0'} - react@19.0.0-rc-380f5d67-20241113: - resolution: {integrity: sha512-wtdbqto84bAgLqzfJpIpV6m9L5hUPVDb9vM/sGJ4K2z2PVf7t/OOG8xQFUSI6cEfQ1yN0X7qYfUchoVmbebW4g==} + react@19.0.0-rc-b01722d5-20241114: + resolution: {integrity: sha512-VT5vig/1unX2lH2RiEuQoKJkn/wnuQw7xwNndsVeVx7TQPQu+6GUjhBomhyZIW3M1bDgPGG5wEBgjNoIXYkeEQ==} engines: {node: '>=0.10.0'} react@19.0.0-rc-f90a6bcc-20240827: @@ -13564,11 +13564,11 @@ packages: resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} engines: {node: '>=v12.22.7'} - scheduler@0.0.0-experimental-380f5d67-20241113: - resolution: {integrity: sha512-UtSmlBSHar7hQvCXiozfIryfUFCL58+mqjrZONnLD06xdTlfgLrTcI5gS3Xo/RnNhUziLPV0DsinpI3a+q7Yzg==} + scheduler@0.0.0-experimental-b01722d5-20241114: + resolution: {integrity: sha512-tyiYxLy5j5cKbJO4E5s7CF7MCfOF0iHeAZw895JLeigcSUOOZDh0omf8AlvJrcICclobRxu1UIWnJCkjc93jWg==} - scheduler@0.25.0-rc-380f5d67-20241113: - resolution: {integrity: sha512-F0DjPvSUAj8+PgdujbWDg5qPu9d1+IiOLJKhvknnbk6H+53aqb+CwwAXgHqkjdPfVk81zFbPHaFjQEQReDzH8w==} + scheduler@0.25.0-rc-b01722d5-20241114: + resolution: {integrity: sha512-8QtAZX1GlxgaI7V9v4vevfGd/+WE8BmBxcizKr7VPZSRyAwd+9uFYj7TKtOBbc9/W0oyuNyOv6Tw8n44P1MjAA==} schema-utils@2.7.1: resolution: {integrity: sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==} @@ -14113,8 +14113,8 @@ packages: engines: {node: '>= 16'} peerDependencies: babel-plugin-styled-components: '>= 2' - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114 peerDependenciesMeta: babel-plugin-styled-components: optional: true @@ -14128,7 +14128,7 @@ packages: peerDependencies: '@babel/core': '*' babel-plugin-macros: '*' - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 peerDependenciesMeta: '@babel/core': optional: true @@ -14205,7 +14205,7 @@ packages: swr@2.2.4: resolution: {integrity: sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 symbol-observable@1.0.1: resolution: {integrity: sha512-Kb3PrPYz4HanVF1LVGuAdW6LoVgIwjUYJGzFe7NDrBLCN4lsV/5J0MFurV+ygS4bRVwrCEt2c7MQ1R2a72oJDw==} @@ -14923,7 +14923,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 peerDependenciesMeta: '@types/react': optional: true @@ -14931,13 +14931,13 @@ packages: use-composed-ref@1.3.0: resolution: {integrity: sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 use-isomorphic-layout-effect@1.1.2: resolution: {integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==} peerDependencies: '@types/react': '*' - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 peerDependenciesMeta: '@types/react': optional: true @@ -14946,7 +14946,7 @@ packages: resolution: {integrity: sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==} peerDependencies: '@types/react': '*' - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 peerDependenciesMeta: '@types/react': optional: true @@ -14956,7 +14956,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 peerDependenciesMeta: '@types/react': optional: true @@ -14964,7 +14964,7 @@ packages: use-sync-external-store@1.2.0: resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==} peerDependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -17610,17 +17610,17 @@ snapshots: '@emotion/memoize@0.8.1': {} - '@emotion/react@11.11.1(react@19.0.0-rc-380f5d67-20241113)(types-react@19.0.0-rc.0)': + '@emotion/react@11.11.1(react@19.0.0-rc-b01722d5-20241114)(types-react@19.0.0-rc.0)': dependencies: '@babel/runtime': 7.22.5 '@emotion/babel-plugin': 11.11.0 '@emotion/cache': 11.11.0 '@emotion/serialize': 1.1.2 - '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@19.0.0-rc-380f5d67-20241113) + '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@19.0.0-rc-b01722d5-20241114) '@emotion/utils': 1.2.1 '@emotion/weak-memoize': 0.3.1 hoist-non-react-statics: 3.3.2 - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 optionalDependencies: '@types/react': types-react@19.0.0-rc.0 transitivePeerDependencies: @@ -17638,9 +17638,9 @@ snapshots: '@emotion/unitless@0.8.1': {} - '@emotion/use-insertion-effect-with-fallbacks@1.0.1(react@19.0.0-rc-380f5d67-20241113)': + '@emotion/use-insertion-effect-with-fallbacks@1.0.1(react@19.0.0-rc-b01722d5-20241114)': dependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 '@emotion/utils@1.2.1': {} @@ -19100,11 +19100,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@mdx-js/react@2.2.1(react@19.0.0-rc-380f5d67-20241113)': + '@mdx-js/react@2.2.1(react@19.0.0-rc-b01722d5-20241114)': dependencies: '@types/mdx': 2.0.3 '@types/react': types-react@19.0.0-rc.0 - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 '@mdx-js/react@2.2.1(react@19.0.0-rc-f90a6bcc-20240827)': dependencies: @@ -19924,13 +19924,13 @@ snapshots: '@types/jest': 29.5.5 jest: 29.7.0(@types/node@20.17.6)(babel-plugin-macros@3.1.0) - '@testing-library/react@15.0.7(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113)(types-react@19.0.0-rc.0)': + '@testing-library/react@15.0.7(react-dom@19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114))(react@19.0.0-rc-b01722d5-20241114)(types-react@19.0.0-rc.0)': dependencies: '@babel/runtime': 7.22.5 '@testing-library/dom': 10.1.0 '@types/react-dom': types-react-dom@19.0.0-rc.0 - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114) optionalDependencies: '@types/react': types-react@19.0.0-rc.0 @@ -25048,7 +25048,7 @@ snapshots: hoist-non-react-statics@3.3.2: dependencies: - react-is: 19.0.0-rc-380f5d67-20241113 + react-is: 19.0.0-rc-b01722d5-20241114 homedir-polyfill@1.0.3: dependencies: @@ -29348,25 +29348,25 @@ snapshots: '@jest/types': 24.9.0 ansi-regex: 4.1.0 ansi-styles: 3.2.1 - react-is: 19.0.0-rc-380f5d67-20241113 + react-is: 19.0.0-rc-b01722d5-20241114 pretty-format@27.5.1: dependencies: ansi-regex: 5.0.1 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-380f5d67-20241113 + react-is: 19.0.0-rc-b01722d5-20241114 pretty-format@29.5.0: dependencies: '@jest/schemas': 29.4.3 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-380f5d67-20241113 + react-is: 19.0.0-rc-b01722d5-20241114 pretty-format@29.7.0: dependencies: '@jest/schemas': 29.6.3 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-380f5d67-20241113 + react-is: 19.0.0-rc-b01722d5-20241114 pretty-ms@7.0.0: dependencies: @@ -29423,7 +29423,7 @@ snapshots: dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react-is: 19.0.0-rc-380f5d67-20241113 + react-is: 19.0.0-rc-b01722d5-20241114 property-information@5.6.0: dependencies: @@ -29597,29 +29597,29 @@ snapshots: minimist: 1.2.8 strip-json-comments: 2.0.1 - react-dom@0.0.0-experimental-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113): + react-dom@0.0.0-experimental-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114): dependencies: - react: 19.0.0-rc-380f5d67-20241113 - scheduler: 0.25.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + scheduler: 0.25.0-rc-b01722d5-20241114 - react-dom@17.0.2(react@19.0.0-rc-380f5d67-20241113): + react-dom@17.0.2(react@19.0.0-rc-b01722d5-20241114): dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react: 19.0.0-rc-380f5d67-20241113 - scheduler: 0.25.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + scheduler: 0.25.0-rc-b01722d5-20241114 - react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113): + react-dom@19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114): dependencies: - react: 19.0.0-rc-380f5d67-20241113 - scheduler: 0.25.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + scheduler: 0.25.0-rc-b01722d5-20241114 react-dom@19.0.0-rc-f90a6bcc-20240827(react@19.0.0-rc-f90a6bcc-20240827): dependencies: react: 19.0.0-rc-f90a6bcc-20240827 - scheduler: 0.25.0-rc-380f5d67-20241113 + scheduler: 0.25.0-rc-b01722d5-20241114 - react-is@19.0.0-rc-380f5d67-20241113: {} + react-is@19.0.0-rc-b01722d5-20241114: {} react-is@19.0.0-rc-f90a6bcc-20240827: {} @@ -29652,48 +29652,48 @@ snapshots: optionalDependencies: '@types/react': types-react@19.0.0-rc.0 - react-server-dom-turbopack@0.0.0-experimental-380f5d67-20241113(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113): + react-server-dom-turbopack@0.0.0-experimental-b01722d5-20241114(react-dom@19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114))(react@19.0.0-rc-b01722d5-20241114): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114) - react-server-dom-turbopack@19.0.0-rc-380f5d67-20241113(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113): + react-server-dom-turbopack@19.0.0-rc-b01722d5-20241114(react-dom@19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114))(react@19.0.0-rc-b01722d5-20241114): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114) - react-server-dom-webpack@0.0.0-experimental-380f5d67-20241113(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113)(webpack@5.96.1(@swc/core@1.6.13(@swc/helpers@0.5.13))): + react-server-dom-webpack@0.0.0-experimental-b01722d5-20241114(react-dom@19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114))(react@19.0.0-rc-b01722d5-20241114)(webpack@5.96.1(@swc/core@1.6.13(@swc/helpers@0.5.13))): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114) webpack: 5.96.1(@swc/core@1.6.13(@swc/helpers@0.5.13)) webpack-sources: 3.2.3(patch_hash=jbynf5dc46ambamq3wuyho6hkq) - react-server-dom-webpack@19.0.0-rc-380f5d67-20241113(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113)(webpack@5.96.1(@swc/core@1.6.13(@swc/helpers@0.5.13))): + react-server-dom-webpack@19.0.0-rc-b01722d5-20241114(react-dom@19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114))(react@19.0.0-rc-b01722d5-20241114)(webpack@5.96.1(@swc/core@1.6.13(@swc/helpers@0.5.13))): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114) webpack: 5.96.1(@swc/core@1.6.13(@swc/helpers@0.5.13)) webpack-sources: 3.2.3(patch_hash=jbynf5dc46ambamq3wuyho6hkq) - react-shallow-renderer@16.15.0(react@19.0.0-rc-380f5d67-20241113): + react-shallow-renderer@16.15.0(react@19.0.0-rc-b01722d5-20241114): dependencies: object-assign: 4.1.1 - react: 19.0.0-rc-380f5d67-20241113 - react-is: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + react-is: 19.0.0-rc-b01722d5-20241114 - react-ssr-prepass@1.0.8(react-is@19.0.0-rc-f90a6bcc-20240827)(react@19.0.0-rc-380f5d67-20241113): + react-ssr-prepass@1.0.8(react-is@19.0.0-rc-f90a6bcc-20240827)(react@19.0.0-rc-b01722d5-20241114): dependencies: object-is: 1.0.2 - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 react-is: 19.0.0-rc-f90a6bcc-20240827 react-style-singleton@2.2.1(react@19.0.0-rc-f90a6bcc-20240827)(types-react@19.0.0-rc.0): @@ -29705,12 +29705,12 @@ snapshots: optionalDependencies: '@types/react': types-react@19.0.0-rc.0 - react-test-renderer@18.2.0(react@19.0.0-rc-380f5d67-20241113): + react-test-renderer@18.2.0(react@19.0.0-rc-b01722d5-20241114): dependencies: - react: 19.0.0-rc-380f5d67-20241113 - react-is: 19.0.0-rc-380f5d67-20241113 - react-shallow-renderer: 16.15.0(react@19.0.0-rc-380f5d67-20241113) - scheduler: 0.25.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 + react-is: 19.0.0-rc-b01722d5-20241114 + react-shallow-renderer: 16.15.0(react@19.0.0-rc-b01722d5-20241114) + scheduler: 0.25.0-rc-b01722d5-20241114 react-textarea-autosize@8.5.3(react@19.0.0-rc-f90a6bcc-20240827)(types-react@19.0.0-rc.0): dependencies: @@ -29721,25 +29721,25 @@ snapshots: transitivePeerDependencies: - '@types/react' - react-virtualized@9.22.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113): + react-virtualized@9.22.3(react-dom@19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114))(react@19.0.0-rc-b01722d5-20241114): dependencies: '@babel/runtime': 7.22.5 clsx: 1.1.1 dom-helpers: 5.2.1 loose-envify: 1.4.0 prop-types: 15.8.1 - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114) react-lifecycles-compat: 3.0.4 - react@0.0.0-experimental-380f5d67-20241113: {} + react@0.0.0-experimental-b01722d5-20241114: {} react@17.0.2: dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react@19.0.0-rc-380f5d67-20241113: {} + react@19.0.0-rc-b01722d5-20241114: {} react@19.0.0-rc-f90a6bcc-20240827: {} @@ -30444,9 +30444,9 @@ snapshots: dependencies: xmlchars: 2.2.0 - scheduler@0.0.0-experimental-380f5d67-20241113: {} + scheduler@0.0.0-experimental-b01722d5-20241114: {} - scheduler@0.25.0-rc-380f5d67-20241113: {} + scheduler@0.25.0-rc-b01722d5-20241114: {} schema-utils@2.7.1: dependencies: @@ -31053,7 +31053,7 @@ snapshots: dependencies: inline-style-parser: 0.1.1 - styled-components@6.0.0-rc.3(react-dom@19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113))(react@19.0.0-rc-380f5d67-20241113): + styled-components@6.0.0-rc.3(react-dom@19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114))(react@19.0.0-rc-b01722d5-20241114): dependencies: '@babel/cli': 7.21.5(@babel/core@7.22.5) '@babel/core': 7.22.5 @@ -31068,8 +31068,8 @@ snapshots: '@emotion/unitless': 0.8.1 css-to-react-native: 3.2.0 postcss: 8.4.31 - react: 19.0.0-rc-380f5d67-20241113 - react-dom: 19.0.0-rc-380f5d67-20241113(react@19.0.0-rc-380f5d67-20241113) + react: 19.0.0-rc-b01722d5-20241114 + react-dom: 19.0.0-rc-b01722d5-20241114(react@19.0.0-rc-b01722d5-20241114) shallowequal: 1.1.0 stylis: 4.2.0 tslib: 2.5.3 @@ -31081,10 +31081,10 @@ snapshots: postcss: 7.0.32 postcss-load-plugins: 2.3.0 - styled-jsx@5.1.6(@babel/core@7.22.5)(babel-plugin-macros@3.1.0)(react@19.0.0-rc-380f5d67-20241113): + styled-jsx@5.1.6(@babel/core@7.22.5)(babel-plugin-macros@3.1.0)(react@19.0.0-rc-b01722d5-20241114): dependencies: client-only: 0.0.1 - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 optionalDependencies: '@babel/core': 7.22.5 babel-plugin-macros: 3.1.0 @@ -31174,11 +31174,11 @@ snapshots: csso: 5.0.5 picocolors: 1.0.1 - swr@2.2.4(react@19.0.0-rc-380f5d67-20241113): + swr@2.2.4(react@19.0.0-rc-b01722d5-20241114): dependencies: client-only: 0.0.1 - react: 19.0.0-rc-380f5d67-20241113 - use-sync-external-store: 1.2.0(react@19.0.0-rc-380f5d67-20241113) + react: 19.0.0-rc-b01722d5-20241114 + use-sync-external-store: 1.2.0(react@19.0.0-rc-b01722d5-20241114) symbol-observable@1.0.1: {} @@ -31841,9 +31841,9 @@ snapshots: unist-util-is: 5.2.0 unist-util-visit-parents: 5.1.3 - unistore@3.4.1(react@19.0.0-rc-380f5d67-20241113): + unistore@3.4.1(react@19.0.0-rc-b01722d5-20241114): optionalDependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 universal-github-app-jwt@1.1.1: dependencies: @@ -31961,9 +31961,9 @@ snapshots: optionalDependencies: '@types/react': types-react@19.0.0-rc.0 - use-sync-external-store@1.2.0(react@19.0.0-rc-380f5d67-20241113): + use-sync-external-store@1.2.0(react@19.0.0-rc-b01722d5-20241114): dependencies: - react: 19.0.0-rc-380f5d67-20241113 + react: 19.0.0-rc-b01722d5-20241114 util-deprecate@1.0.2: {} diff --git a/run-tests.js b/run-tests.js index b755ab0d2d0e3..a65acf45d40db 100644 --- a/run-tests.js +++ b/run-tests.js @@ -20,7 +20,7 @@ const { getTestFilter } = require('./test/get-test-filter') // Do not rename or format. sync-react script relies on this line. // prettier-ignore -const nextjsReactPeerVersion = "19.0.0-rc-380f5d67-20241113"; +const nextjsReactPeerVersion = "19.0.0-rc-b01722d5-20241114"; let argv = require('yargs/yargs')(process.argv.slice(2)) .string('type') diff --git a/test/.stats-app/package.json b/test/.stats-app/package.json index a3f849e8bfc07..d3cf4021cd792 100644 --- a/test/.stats-app/package.json +++ b/test/.stats-app/package.json @@ -4,8 +4,8 @@ "license": "MIT", "dependencies": { "next": "latest", - "react": "19.0.0-rc-380f5d67-20241113", - "react-dom": "19.0.0-rc-380f5d67-20241113" + "react": "19.0.0-rc-b01722d5-20241114", + "react-dom": "19.0.0-rc-b01722d5-20241114" }, "engines": { "node": ">=18.18.0" diff --git a/test/e2e/app-dir/navigation/navigation.test.ts b/test/e2e/app-dir/navigation/navigation.test.ts index a38a12a931d0a..6964967a88d1a 100644 --- a/test/e2e/app-dir/navigation/navigation.test.ts +++ b/test/e2e/app-dir/navigation/navigation.test.ts @@ -891,23 +891,10 @@ describe('app dir - navigation', () => { .elementByCss("[href='/metadata-await-promise/nested']") .click() - if (!isNextDev) { - // next-dev has no prefetch - expect( - await browser - .waitForElementByCss( - '#loading', - // Wait a bit longer than the prefetch duration since the click takes a while to register and the fallback render also takes time. - resolveMetadataDuration + 500 - ) - .text() - ).toEqual('Loading') - expect(await browser.elementByCss('title').text()).toBe('Async Title') - } - await waitFor(resolveMetadataDuration) expect(await browser.elementById('page-content').text()).toBe('Content') + expect(await browser.elementByCss('title').text()).toBe('Async Title') }) it('shows a fallback when prefetch completed', async () => { diff --git a/test/e2e/next-test/first-time-setup-js/package.json b/test/e2e/next-test/first-time-setup-js/package.json index 2586f30ad1d49..a85698e169046 100644 --- a/test/e2e/next-test/first-time-setup-js/package.json +++ b/test/e2e/next-test/first-time-setup-js/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "next": "canary", - "react": "19.0.0-rc-380f5d67-20241113", - "react-dom": "19.0.0-rc-380f5d67-20241113" + "react": "19.0.0-rc-b01722d5-20241114", + "react-dom": "19.0.0-rc-b01722d5-20241114" } } diff --git a/test/e2e/next-test/first-time-setup-ts/package.json b/test/e2e/next-test/first-time-setup-ts/package.json index 82637d65878ec..383a5f278edca 100644 --- a/test/e2e/next-test/first-time-setup-ts/package.json +++ b/test/e2e/next-test/first-time-setup-ts/package.json @@ -8,8 +8,8 @@ }, "dependencies": { "next": "canary", - "react": "19.0.0-rc-380f5d67-20241113", - "react-dom": "19.0.0-rc-380f5d67-20241113" + "react": "19.0.0-rc-b01722d5-20241114", + "react-dom": "19.0.0-rc-b01722d5-20241114" }, "devDependencies": { "@types/react": "^18", diff --git a/test/lib/next-modes/base.ts b/test/lib/next-modes/base.ts index 8636a2d8d5f7d..9d35f86dd4c18 100644 --- a/test/lib/next-modes/base.ts +++ b/test/lib/next-modes/base.ts @@ -52,7 +52,7 @@ type OmitFirstArgument = F extends ( // Do not rename or format. sync-react script relies on this line. // prettier-ignore -const nextjsReactPeerVersion = "19.0.0-rc-380f5d67-20241113"; +const nextjsReactPeerVersion = "19.0.0-rc-b01722d5-20241114"; export class NextInstance { protected files: FileRef | { [filename: string]: string | FileRef }