diff --git a/package.json b/package.json index 81558105501b2..8f9e024be4c78 100644 --- a/package.json +++ b/package.json @@ -227,16 +227,16 @@ "pretty-ms": "7.0.0", "random-seed": "0.3.0", "react": "19.0.0", - "react-builtin": "npm:react@19.2.0-canary-040f8286-20250402", + "react-builtin": "npm:react@19.2.0-canary-33661467-20250407", "react-dom": "19.0.0", - "react-dom-builtin": "npm:react-dom@19.2.0-canary-040f8286-20250402", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-040f8286-20250402", - "react-experimental-builtin": "npm:react@0.0.0-experimental-040f8286-20250402", - "react-is-builtin": "npm:react-is@19.2.0-canary-040f8286-20250402", - "react-server-dom-turbopack": "19.2.0-canary-040f8286-20250402", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-040f8286-20250402", - "react-server-dom-webpack": "19.2.0-canary-040f8286-20250402", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-040f8286-20250402", + "react-dom-builtin": "npm:react-dom@19.2.0-canary-33661467-20250407", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-33661467-20250407", + "react-experimental-builtin": "npm:react@0.0.0-experimental-33661467-20250407", + "react-is-builtin": "npm:react-is@19.2.0-canary-33661467-20250407", + "react-server-dom-turbopack": "19.2.0-canary-33661467-20250407", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-33661467-20250407", + "react-server-dom-webpack": "19.2.0-canary-33661467-20250407", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-33661467-20250407", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -246,8 +246,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.12.2", - "scheduler-builtin": "npm:scheduler@0.27.0-canary-040f8286-20250402", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-040f8286-20250402", + "scheduler-builtin": "npm:scheduler@0.27.0-canary-33661467-20250407", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-33661467-20250407", "seedrandom": "3.0.5", "semver": "7.3.7", "shell-quote": "1.7.3", @@ -290,10 +290,10 @@ "@types/react": "19.0.8", "@types/react-dom": "19.0.3", "jest-snapshot": "30.0.0-alpha.6", - "react": "19.2.0-canary-040f8286-20250402", - "react-dom": "19.2.0-canary-040f8286-20250402", - "react-is": "19.2.0-canary-040f8286-20250402", - "scheduler": "0.27.0-canary-040f8286-20250402" + "react": "19.2.0-canary-33661467-20250407", + "react-dom": "19.2.0-canary-33661467-20250407", + "react-is": "19.2.0-canary-33661467-20250407", + "scheduler": "0.27.0-canary-33661467-20250407" }, "patchedDependencies": { "webpack-sources@3.2.3": "patches/webpack-sources@3.2.3.patch", 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 180dd80b22544..ff43b6859952c 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 @@ -4671,6 +4671,16 @@ ? "Idle" : "Other"; } + function logComponentTrigger(fiber, startTime, endTime, trigger) { + supportsUserTiming && + ((reusableComponentDevToolDetails.color = "warning"), + (reusableComponentOptions.start = startTime), + (reusableComponentOptions.end = endTime), + performance.measure(trigger, reusableComponentOptions)); + } + function logComponentReappeared(fiber, startTime, endTime) { + logComponentTrigger(fiber, startTime, endTime, "Reconnect"); + } function logComponentRender(fiber, startTime, endTime, wasHydrated) { var name = getComponentNameFromFiber(fiber); if (null !== name && supportsUserTiming) { @@ -4864,7 +4874,7 @@ ((reusableLaneDevToolDetails.color = "secondary-light"), (reusableLaneOptions.start = startTime), (reusableLaneOptions.end = endTime), - performance.measure("Suspended", reusableLaneOptions)); + performance.measure("Suspended on CSS or Images", reusableLaneOptions)); } function logCommitErrored(startTime, endTime, errors, passive) { if (supportsUserTiming) { @@ -5198,12 +5208,19 @@ function pushComponentEffectStart() { var prevEffectStart = componentEffectStartTime; componentEffectStartTime = -1.1; - componentEffectDuration = -0; return prevEffectStart; } function popComponentEffectStart(prevEffectStart) { 0 <= prevEffectStart && (componentEffectStartTime = prevEffectStart); } + function pushComponentEffectDuration() { + var prevEffectDuration = componentEffectDuration; + componentEffectDuration = -0; + return prevEffectDuration; + } + function popComponentEffectDuration(prevEffectDuration) { + 0 <= prevEffectDuration && (componentEffectDuration = prevEffectDuration); + } function pushComponentEffectErrors() { var prevErrors = componentEffectErrors; componentEffectErrors = null; @@ -8355,7 +8372,7 @@ objectIs(hook, prevValue) || (didReceiveUpdate = !0), hook ); - if (0 === (renderLanes & 42)) + if (0 === (renderLanes & 42) || 0 !== (renderLanes & 1073741824)) return (didReceiveUpdate = !0), (hook.memoizedState = value); hook = requestDeferredLane(); currentlyRenderingFiber.lanes |= hook; @@ -10178,33 +10195,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2845; - var JSCompiler_object_inline_stack_2844 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2889; + var JSCompiler_object_inline_stack_2888 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2842 = !1; + var JSCompiler_object_inline_message_2886 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2845 = didSuspend) || - (JSCompiler_object_inline_componentStack_2845 = + (JSCompiler_object_inline_componentStack_2889 = didSuspend) || + (JSCompiler_object_inline_componentStack_2889 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2845 && - ((JSCompiler_object_inline_message_2842 = !0), + JSCompiler_object_inline_componentStack_2889 && + ((JSCompiler_object_inline_message_2886 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2845 = + JSCompiler_object_inline_componentStack_2889 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2842 + JSCompiler_object_inline_message_2886 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2843 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2887 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2843)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2887)) { c: { - var instance = JSCompiler_object_inline_digest_2843; + var instance = JSCompiler_object_inline_digest_2887; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -10246,87 +10263,87 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2843 + JSCompiler_object_inline_digest_2887 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2843 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2887 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2843 && - ((JSCompiler_object_inline_digest_2843 = - JSCompiler_object_inline_digest_2843.dehydrated), - null !== JSCompiler_object_inline_digest_2843) + null !== JSCompiler_object_inline_digest_2887 && + ((JSCompiler_object_inline_digest_2887 = + JSCompiler_object_inline_digest_2887.dehydrated), + null !== JSCompiler_object_inline_digest_2887) ) return ( - isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2843) + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2887) ? (workInProgress.lanes = 32) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2843 = - JSCompiler_object_inline_stack_2844.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2844.fallback; - if (JSCompiler_object_inline_message_2842) + JSCompiler_object_inline_digest_2887 = + JSCompiler_object_inline_stack_2888.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2888.fallback; + if (JSCompiler_object_inline_message_2886) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2844 = + (JSCompiler_object_inline_stack_2888 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2843, + JSCompiler_object_inline_digest_2887, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2842 = workInProgress.child), - (JSCompiler_object_inline_message_2842.memoizedState = + (JSCompiler_object_inline_message_2886 = workInProgress.child), + (JSCompiler_object_inline_message_2886.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2842.childLanes = + (JSCompiler_object_inline_message_2886.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2845, + JSCompiler_object_inline_componentStack_2889, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2844 + JSCompiler_object_inline_stack_2888 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2844.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2888.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2844 = + (JSCompiler_object_inline_stack_2888 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2843, + JSCompiler_object_inline_digest_2887, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2842 = workInProgress.child), - (JSCompiler_object_inline_message_2842.memoizedState = + (JSCompiler_object_inline_message_2886 = workInProgress.child), + (JSCompiler_object_inline_message_2886.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2842.childLanes = + (JSCompiler_object_inline_message_2886.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2845, + JSCompiler_object_inline_componentStack_2889, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2844 + JSCompiler_object_inline_stack_2888 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2843 + JSCompiler_object_inline_digest_2887 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2843 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2843) + ((JSCompiler_object_inline_digest_2887 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2887) ) { if (didSuspend) workInProgress.flags & 256 @@ -10343,94 +10360,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2842 = - JSCompiler_object_inline_stack_2844.fallback), - (JSCompiler_object_inline_digest_2843 = workInProgress.mode), - (JSCompiler_object_inline_stack_2844 = + (JSCompiler_object_inline_message_2886 = + JSCompiler_object_inline_stack_2888.fallback), + (JSCompiler_object_inline_digest_2887 = workInProgress.mode), + (JSCompiler_object_inline_stack_2888 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2844.children + children: JSCompiler_object_inline_stack_2888.children }, - JSCompiler_object_inline_digest_2843 + JSCompiler_object_inline_digest_2887 )), - (JSCompiler_object_inline_message_2842 = + (JSCompiler_object_inline_message_2886 = createFiberFromFragment( - JSCompiler_object_inline_message_2842, - JSCompiler_object_inline_digest_2843, + JSCompiler_object_inline_message_2886, + JSCompiler_object_inline_digest_2887, renderLanes, null )), - (JSCompiler_object_inline_message_2842.flags |= 2), - (JSCompiler_object_inline_stack_2844.return = workInProgress), - (JSCompiler_object_inline_message_2842.return = workInProgress), - (JSCompiler_object_inline_stack_2844.sibling = - JSCompiler_object_inline_message_2842), - (workInProgress.child = JSCompiler_object_inline_stack_2844), + (JSCompiler_object_inline_message_2886.flags |= 2), + (JSCompiler_object_inline_stack_2888.return = workInProgress), + (JSCompiler_object_inline_message_2886.return = workInProgress), + (JSCompiler_object_inline_stack_2888.sibling = + JSCompiler_object_inline_message_2886), + (workInProgress.child = JSCompiler_object_inline_stack_2888), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2844 = workInProgress.child), - (JSCompiler_object_inline_stack_2844.memoizedState = + (JSCompiler_object_inline_stack_2888 = workInProgress.child), + (JSCompiler_object_inline_stack_2888.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2844.childLanes = + (JSCompiler_object_inline_stack_2888.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2845, + JSCompiler_object_inline_componentStack_2889, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2842)); + (workInProgress = JSCompiler_object_inline_message_2886)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2843)) + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2887)) ) { - JSCompiler_object_inline_componentStack_2845 = - JSCompiler_object_inline_digest_2843.nextSibling && - JSCompiler_object_inline_digest_2843.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2845) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2845.dgst; - var message = JSCompiler_object_inline_componentStack_2845.msg; - instance = JSCompiler_object_inline_componentStack_2845.stck; + JSCompiler_object_inline_componentStack_2889 = + JSCompiler_object_inline_digest_2887.nextSibling && + JSCompiler_object_inline_digest_2887.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2889) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2889.dgst; + var message = JSCompiler_object_inline_componentStack_2889.msg; + instance = JSCompiler_object_inline_componentStack_2889.stck; var componentStack = - JSCompiler_object_inline_componentStack_2845.cstck; + JSCompiler_object_inline_componentStack_2889.cstck; } - JSCompiler_object_inline_message_2842 = message; - JSCompiler_object_inline_digest_2843 = JSCompiler_temp; - JSCompiler_object_inline_stack_2844 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2845 = + JSCompiler_object_inline_message_2886 = message; + JSCompiler_object_inline_digest_2887 = JSCompiler_temp; + JSCompiler_object_inline_stack_2888 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2889 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2843 && - ((JSCompiler_object_inline_componentStack_2845 = - JSCompiler_object_inline_message_2842 - ? Error(JSCompiler_object_inline_message_2842) + "POSTPONE" !== JSCompiler_object_inline_digest_2887 && + ((JSCompiler_object_inline_componentStack_2889 = + JSCompiler_object_inline_message_2886 + ? Error(JSCompiler_object_inline_message_2886) : 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_2845.stack = - JSCompiler_object_inline_stack_2844 || ""), - (JSCompiler_object_inline_componentStack_2845.digest = - JSCompiler_object_inline_digest_2843), - (JSCompiler_object_inline_stack_2844 = + (JSCompiler_object_inline_componentStack_2889.stack = + JSCompiler_object_inline_stack_2888 || ""), + (JSCompiler_object_inline_componentStack_2889.digest = + JSCompiler_object_inline_digest_2887), + (JSCompiler_object_inline_stack_2888 = void 0 === JSCompiler_temp ? null : JSCompiler_temp), - (JSCompiler_object_inline_message_2842 = { - value: JSCompiler_object_inline_componentStack_2845, + (JSCompiler_object_inline_message_2886 = { + value: JSCompiler_object_inline_componentStack_2889, source: null, - stack: JSCompiler_object_inline_stack_2844 + stack: JSCompiler_object_inline_stack_2888 }), - "string" === typeof JSCompiler_object_inline_stack_2844 && + "string" === typeof JSCompiler_object_inline_stack_2888 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2845, - JSCompiler_object_inline_message_2842 + JSCompiler_object_inline_componentStack_2889, + JSCompiler_object_inline_message_2886 ), - queueHydrationError(JSCompiler_object_inline_message_2842)); + queueHydrationError(JSCompiler_object_inline_message_2886)); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -10444,44 +10461,44 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2845 = + (JSCompiler_object_inline_componentStack_2889 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2845) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2889) ) { - JSCompiler_object_inline_componentStack_2845 = workInProgressRoot; + JSCompiler_object_inline_componentStack_2889 = workInProgressRoot; if ( - null !== JSCompiler_object_inline_componentStack_2845 && - ((JSCompiler_object_inline_stack_2844 = renderLanes & -renderLanes), - (JSCompiler_object_inline_stack_2844 = - 0 !== (JSCompiler_object_inline_stack_2844 & 42) + null !== JSCompiler_object_inline_componentStack_2889 && + ((JSCompiler_object_inline_stack_2888 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2888 = + 0 !== (JSCompiler_object_inline_stack_2888 & 42) ? 1 : getBumpedLaneForHydrationByLane( - JSCompiler_object_inline_stack_2844 + JSCompiler_object_inline_stack_2888 )), - (JSCompiler_object_inline_stack_2844 = + (JSCompiler_object_inline_stack_2888 = 0 !== - (JSCompiler_object_inline_stack_2844 & - (JSCompiler_object_inline_componentStack_2845.suspendedLanes | + (JSCompiler_object_inline_stack_2888 & + (JSCompiler_object_inline_componentStack_2889.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2844), - 0 !== JSCompiler_object_inline_stack_2844 && - JSCompiler_object_inline_stack_2844 !== prevState.retryLane) + : JSCompiler_object_inline_stack_2888), + 0 !== JSCompiler_object_inline_stack_2888 && + JSCompiler_object_inline_stack_2888 !== prevState.retryLane) ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2844), + ((prevState.retryLane = JSCompiler_object_inline_stack_2888), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2844 + JSCompiler_object_inline_stack_2888 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2845, + JSCompiler_object_inline_componentStack_2889, current, - JSCompiler_object_inline_stack_2844 + JSCompiler_object_inline_stack_2888 ), SelectiveHydrationException) ); - JSCompiler_object_inline_digest_2843.data === + JSCompiler_object_inline_digest_2887.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -10489,14 +10506,14 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2843.data === + JSCompiler_object_inline_digest_2887.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2843.nextSibling + JSCompiler_object_inline_digest_2887.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -10514,54 +10531,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2844.children + JSCompiler_object_inline_stack_2888.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2842) + if (JSCompiler_object_inline_message_2886) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2842 = - JSCompiler_object_inline_stack_2844.fallback), - (JSCompiler_object_inline_digest_2843 = workInProgress.mode), + (JSCompiler_object_inline_message_2886 = + JSCompiler_object_inline_stack_2888.fallback), + (JSCompiler_object_inline_digest_2887 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2844 = createWorkInProgress( + (JSCompiler_object_inline_stack_2888 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2844.children + children: JSCompiler_object_inline_stack_2888.children } )), - (JSCompiler_object_inline_stack_2844.subtreeFlags = + (JSCompiler_object_inline_stack_2888.subtreeFlags = JSCompiler_temp.subtreeFlags & 65011712), null !== instance - ? (JSCompiler_object_inline_message_2842 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2886 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2842 + JSCompiler_object_inline_message_2886 )) - : ((JSCompiler_object_inline_message_2842 = createFiberFromFragment( - JSCompiler_object_inline_message_2842, - JSCompiler_object_inline_digest_2843, + : ((JSCompiler_object_inline_message_2886 = createFiberFromFragment( + JSCompiler_object_inline_message_2886, + JSCompiler_object_inline_digest_2887, renderLanes, null )), - (JSCompiler_object_inline_message_2842.flags |= 2)), - (JSCompiler_object_inline_message_2842.return = workInProgress), - (JSCompiler_object_inline_stack_2844.return = workInProgress), - (JSCompiler_object_inline_stack_2844.sibling = - JSCompiler_object_inline_message_2842), - (workInProgress.child = JSCompiler_object_inline_stack_2844), - (JSCompiler_object_inline_stack_2844 = - JSCompiler_object_inline_message_2842), - (JSCompiler_object_inline_message_2842 = workInProgress.child), - (JSCompiler_object_inline_digest_2843 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2843 - ? (JSCompiler_object_inline_digest_2843 = + (JSCompiler_object_inline_message_2886.flags |= 2)), + (JSCompiler_object_inline_message_2886.return = workInProgress), + (JSCompiler_object_inline_stack_2888.return = workInProgress), + (JSCompiler_object_inline_stack_2888.sibling = + JSCompiler_object_inline_message_2886), + (workInProgress.child = JSCompiler_object_inline_stack_2888), + (JSCompiler_object_inline_stack_2888 = + JSCompiler_object_inline_message_2886), + (JSCompiler_object_inline_message_2886 = workInProgress.child), + (JSCompiler_object_inline_digest_2887 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2887 + ? (JSCompiler_object_inline_digest_2887 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2843.cachePool), + JSCompiler_object_inline_digest_2887.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -10569,38 +10586,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2843 = { + (JSCompiler_object_inline_digest_2887 = { baseLanes: - JSCompiler_object_inline_digest_2843.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2887.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2842.memoizedState = - JSCompiler_object_inline_digest_2843), - (JSCompiler_object_inline_message_2842.childLanes = + (JSCompiler_object_inline_message_2886.memoizedState = + JSCompiler_object_inline_digest_2887), + (JSCompiler_object_inline_message_2886.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2845, + JSCompiler_object_inline_componentStack_2889, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2844 + JSCompiler_object_inline_stack_2888 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2844.children + children: JSCompiler_object_inline_stack_2888.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2845 = + ((JSCompiler_object_inline_componentStack_2889 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2845 + null === JSCompiler_object_inline_componentStack_2889 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2845.push(current)); + : JSCompiler_object_inline_componentStack_2889.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -11768,32 +11785,46 @@ function markUpdate(workInProgress) { workInProgress.flags |= 4; } + function preloadInstanceAndSuspendIfNeeded( + workInProgress, + type, + oldProps, + newProps, + renderLanes + ) { + if ( + null === oldProps + ? maySuspendCommit(type, newProps) + : maySuspendCommit(type, newProps) && + (newProps.src !== oldProps.src || + newProps.srcSet !== oldProps.srcSet) + ) { + if ( + ((workInProgress.flags |= 16777216), + (renderLanes & 335544128) === renderLanes) + ) + if (workInProgress.stateNode.complete) workInProgress.flags |= 8192; + else if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; + else + throw ( + ((suspendedThenable = noopSuspenseyCommitThenable), + SuspenseyCommitException) + ); + } else workInProgress.flags &= -16777217; + } function preloadResourceAndSuspendIfNeeded(workInProgress, resource) { if ( "stylesheet" !== resource.type || (resource.state.loading & Inserted) !== NotLoaded ) workInProgress.flags &= -16777217; - else if ( - ((workInProgress.flags |= 16777216), !preloadResource(resource)) - ) { - resource = suspenseHandlerStackCursor.current; - if ( - null !== resource && - ((workInProgressRootRenderLanes & 4194048) === - workInProgressRootRenderLanes - ? null !== shellBoundary - : ((workInProgressRootRenderLanes & 62914560) !== - workInProgressRootRenderLanes && - 0 === (workInProgressRootRenderLanes & 536870912)) || - resource !== shellBoundary) - ) + else if (((workInProgress.flags |= 16777216), !preloadResource(resource))) + if (shouldRemainOnPreviousScreen()) workInProgress.flags |= 8192; + else throw ( ((suspendedThenable = noopSuspenseyCommitThenable), SuspenseyCommitException) ); - workInProgress.flags |= 8192; - } } function scheduleRetryEffect(workInProgress, retryQueue) { null !== retryQueue && (workInProgress.flags |= 4); @@ -11927,38 +11958,49 @@ bubbleProperties(workInProgress); return null; case 26: - return ( - (renderLanes = workInProgress.memoizedState), - null === current - ? (markUpdate(workInProgress), - null !== renderLanes - ? (bubbleProperties(workInProgress), - preloadResourceAndSuspendIfNeeded( - workInProgress, - renderLanes - )) - : (bubbleProperties(workInProgress), - (workInProgress.flags &= -16777217))) - : renderLanes - ? renderLanes !== current.memoizedState - ? (markUpdate(workInProgress), - bubbleProperties(workInProgress), - preloadResourceAndSuspendIfNeeded( - workInProgress, - renderLanes - )) - : (bubbleProperties(workInProgress), - (workInProgress.flags &= -16777217)) - : (current.memoizedProps !== newProps && - markUpdate(workInProgress), + var type = workInProgress.type, + nextResource = workInProgress.memoizedState; + null === current + ? (markUpdate(workInProgress), + null !== nextResource + ? (bubbleProperties(workInProgress), + preloadResourceAndSuspendIfNeeded( + workInProgress, + nextResource + )) + : (bubbleProperties(workInProgress), + preloadInstanceAndSuspendIfNeeded( + workInProgress, + type, + null, + newProps, + renderLanes + ))) + : nextResource + ? nextResource !== current.memoizedState + ? (markUpdate(workInProgress), bubbleProperties(workInProgress), - (workInProgress.flags &= -16777217)), - null - ); + preloadResourceAndSuspendIfNeeded( + workInProgress, + nextResource + )) + : (bubbleProperties(workInProgress), + (workInProgress.flags &= -16777217)) + : ((current = current.memoizedProps), + current !== newProps && markUpdate(workInProgress), + bubbleProperties(workInProgress), + preloadInstanceAndSuspendIfNeeded( + workInProgress, + type, + current, + newProps, + renderLanes + )); + return null; case 27: popHostContext(workInProgress); renderLanes = requiredContext(rootInstanceStackCursor.current); - var _type = workInProgress.type; + type = workInProgress.type; if (null !== current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); else { @@ -11975,7 +12017,7 @@ popHydrationState(workInProgress) ? prepareToHydrateHostInstance(workInProgress, current) : ((current = resolveSingletonInstance( - _type, + type, newProps, renderLanes, current, @@ -11989,7 +12031,7 @@ return null; case 5: popHostContext(workInProgress); - renderLanes = workInProgress.type; + type = workInProgress.type; if (null !== current && null != workInProgress.stateNode) current.memoizedProps !== newProps && markUpdate(workInProgress); else { @@ -12002,124 +12044,143 @@ workInProgress.subtreeFlags &= -33554433; return null; } - _type = getHostContext(); + var _currentHostContext = getHostContext(); if (popHydrationState(workInProgress)) - prepareToHydrateHostInstance(workInProgress, _type); + prepareToHydrateHostInstance(workInProgress, _currentHostContext); else { - current = requiredContext(rootInstanceStackCursor.current); - validateDOMNesting(renderLanes, _type.ancestorInfo); - _type = _type.context; - current = getOwnerDocumentFromRootContainer(current); - switch (_type) { + nextResource = requiredContext(rootInstanceStackCursor.current); + validateDOMNesting(type, _currentHostContext.ancestorInfo); + _currentHostContext = _currentHostContext.context; + nextResource = getOwnerDocumentFromRootContainer(nextResource); + switch (_currentHostContext) { case HostContextNamespaceSvg: - current = current.createElementNS(SVG_NAMESPACE, renderLanes); + nextResource = nextResource.createElementNS( + SVG_NAMESPACE, + type + ); break; case HostContextNamespaceMath: - current = current.createElementNS( + nextResource = nextResource.createElementNS( MATH_NAMESPACE, - renderLanes + type ); break; default: - switch (renderLanes) { + switch (type) { case "svg": - current = current.createElementNS( + nextResource = nextResource.createElementNS( SVG_NAMESPACE, - renderLanes + type ); break; case "math": - current = current.createElementNS( + nextResource = nextResource.createElementNS( MATH_NAMESPACE, - renderLanes + type ); break; case "script": - current = current.createElement("div"); - current.innerHTML = "