From d7457184ab3b6e26953872a1e09c2aa560c9bd8d Mon Sep 17 00:00:00 2001 From: "pull[bot]" Date: Wed, 8 Jan 2025 11:11:16 -0800 Subject: [PATCH] [Fiber] Suspend the commit while we wait for the previous View Transition to finish (#32002) Stacked on #31975. View Transitions cannot handle interruptions in that if you start a new one before the previous one has finished, it just stops and then restarts. It doesn't seamlessly transition into the new transition. This is generally considered a bad thing but I actually think it's quite good for fire-and-forget animations (gestures is another story). There are too many examples of bad animations in fast interactions because the scenario wasn't predicted. Like overlapping toasts or stacked layers that look bad. The only case interrupts tend to work well is when you do a strict reversal of an animation like returning to the page you just left or exiting a modal just being opened. However, we're limited by the platform even in that regard. I think one reason interruptions have traditionally been seen as good is because it's hard if you have a synchronous framework to not interrupt since your application state has already moved on. We don't have that limitation since we can suspend commits. We can do all the work to prepare for the next commit by rendering while the animation is going but then delay the commit until the previous one finishes. Another technical limitation earlier animation libraries suffered from is only have the option to either interrupt or sequence animations since it's modeling just one change set. Like showing one toast at a time. That's bad. We don't have that limitation because we can interrupt a previously suspended commit and start working on a new one instead. That's what we do for suspended transitions in general. The net effect is that we batch the commits. Therefore if you get multiple toasts flying in fast, they can animate as a batch in together all at once instead of overlapping slightly or being staggered. Interruptions (often) bad. Staggered animations bad. Batched animations good. This PR stashes the currently active View Transition with an expando on the container that's animating (currently always document). This is similar to what we do with event handlers etc. We reason we do this with an expando is that if you have multiple Reacts on the same page they need to wait for each other. However, one of those might also be the SSR runtime. So this lets us wait for the SSR runtime's animations to finish before starting client ones. This could really be a more generic name since this should ideally be shared across frameworks. It's kind of strange that this property doesn't already exist in the DOM given that there can only be one. It would be useful to be able to coordinate this across libraries. DiffTrain build for [98418e8902d6045e5138a2e765e026ce2e4de82d](https://github.com/facebook/react/commit/98418e8902d6045e5138a2e765e026ce2e4de82d) --- .../facebook-www/JSXDEVRuntime-dev.classic.js | 2 + .../facebook-www/JSXDEVRuntime-dev.modern.js | 2 + compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 4 +- compiled/facebook-www/React-dev.modern.js | 4 +- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 1159 +++--- compiled/facebook-www/ReactART-dev.modern.js | 1142 +++--- .../facebook-www/ReactART-prod.classic.js | 613 ++-- compiled/facebook-www/ReactART-prod.modern.js | 610 ++-- compiled/facebook-www/ReactDOM-dev.classic.js | 2311 ++++++------ compiled/facebook-www/ReactDOM-dev.modern.js | 3014 +++++++-------- .../facebook-www/ReactDOM-prod.classic.js | 1090 +++--- compiled/facebook-www/ReactDOM-prod.modern.js | 801 ++-- .../ReactDOM-profiling.classic.js | 1120 +++--- .../facebook-www/ReactDOM-profiling.modern.js | 831 ++--- .../ReactDOMServer-dev.classic.js | 12 +- .../facebook-www/ReactDOMServer-dev.modern.js | 8 +- .../ReactDOMServer-prod.classic.js | 8 +- .../ReactDOMServer-prod.modern.js | 8 +- .../ReactDOMServerStreaming-dev.modern.js | 6 +- .../ReactDOMServerStreaming-prod.modern.js | 6 +- .../ReactDOMTesting-dev.classic.js | 3243 +++++++++-------- .../ReactDOMTesting-dev.modern.js | 3242 ++++++++-------- .../ReactDOMTesting-prod.classic.js | 996 ++--- .../ReactDOMTesting-prod.modern.js | 801 ++-- compiled/facebook-www/ReactIs-dev.classic.js | 2 + compiled/facebook-www/ReactIs-dev.modern.js | 2 + compiled/facebook-www/ReactIs-prod.classic.js | 2 + compiled/facebook-www/ReactIs-prod.modern.js | 2 + .../ReactReconciler-dev.classic.js | 1304 +++---- .../ReactReconciler-dev.modern.js | 1297 +++---- .../ReactReconciler-prod.classic.js | 872 ++--- .../ReactReconciler-prod.modern.js | 741 ++-- .../ReactTestRenderer-dev.classic.js | 1107 +++--- .../ReactTestRenderer-dev.modern.js | 1107 +++--- compiled/facebook-www/VERSION_CLASSIC | 2 +- compiled/facebook-www/VERSION_MODERN | 2 +- .../__test_utils__/ReactAllWarnings.js | 1 - 43 files changed, 13828 insertions(+), 13658 deletions(-) diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js index ebb14bf63095c..be1e819ecae46 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js @@ -53,6 +53,7 @@ __DEV__ && return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -724,6 +725,7 @@ __DEV__ && REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, warningWWW = require("warning"), REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js index ebb14bf63095c..be1e819ecae46 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js @@ -53,6 +53,7 @@ __DEV__ && return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -724,6 +725,7 @@ __DEV__ && REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, warningWWW = require("warning"), REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 163284be11d45..52909721f0069 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -defffdbba43f89b95d9f67a4fb0fa146c1211734 +98418e8902d6045e5138a2e765e026ce2e4de82d diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 163284be11d45..52909721f0069 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -defffdbba43f89b95d9f67a4fb0fa146c1211734 +98418e8902d6045e5138a2e765e026ce2e4de82d diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index f8f2d30fe34b3..89c6e866dbe0c 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -137,6 +137,7 @@ __DEV__ && return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -1136,6 +1137,7 @@ __DEV__ && REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, warningWWW = require("warning"), didWarnStateUpdateForUnmountedComponent = {}, @@ -1942,7 +1944,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-classic-defffdbb-20250106"; + exports.version = "19.1.0-www-classic-98418e89-20250108"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 6f8f6d3cffa17..bcc06ab9c82b2 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -137,6 +137,7 @@ __DEV__ && return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -1136,6 +1137,7 @@ __DEV__ && REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, warningWWW = require("warning"), didWarnStateUpdateForUnmountedComponent = {}, @@ -1942,7 +1944,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-modern-defffdbb-20250106"; + exports.version = "19.1.0-www-modern-98418e89-20250108"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 53717b7715b11..e5d8bacc6ff9d 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-defffdbb-20250106"; +exports.version = "19.1.0-www-classic-98418e89-20250108"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index afc28aea2bc2c..2be9c037ef3bd 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -630,4 +630,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-defffdbb-20250106"; +exports.version = "19.1.0-www-modern-98418e89-20250108"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 6c460604e4d2a..b3fb030df829f 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-defffdbb-20250106"; +exports.version = "19.1.0-www-classic-98418e89-20250108"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index 1d6e4efb7df01..085b835925673 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -634,7 +634,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-defffdbb-20250106"; +exports.version = "19.1.0-www-modern-98418e89-20250108"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index d8b9524960730..21219d01c90a2 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -174,6 +174,26 @@ __DEV__ && args.unshift(!1); warningWWW.apply(null, args); } + function isFiberSuspenseAndTimedOut(fiber) { + var memoizedState = fiber.memoizedState; + return ( + 13 === fiber.tag && + null !== memoizedState && + null === memoizedState.dehydrated + ); + } + function doesFiberContain(parentFiber, childFiber) { + for ( + var parentFiberAlternate = parentFiber.alternate; + null !== childFiber; + + ) { + if (childFiber === parentFiber || childFiber === parentFiberAlternate) + return !0; + childFiber = childFiber.return; + } + return !1; + } function getIteratorFn(maybeIterable) { if (null === maybeIterable || "object" !== typeof maybeIterable) return null; @@ -202,6 +222,7 @@ __DEV__ && return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -317,454 +338,47 @@ __DEV__ && } return null; } - function disabledLog() {} - function disableLogs() { - if (0 === disabledDepth) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: !0, - enumerable: !0, - value: disabledLog, - writable: !0 - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; + function childrenAsString(children) { + return children + ? "string" === typeof children + ? children + : children.length + ? children.join("") + : "" + : ""; } - function reenableLogs() { - disabledDepth--; - if (0 === disabledDepth) { - var props = { configurable: !0, enumerable: !0, writable: !0 }; - Object.defineProperties(console, { - log: assign({}, props, { value: prevLog }), - info: assign({}, props, { value: prevInfo }), - warn: assign({}, props, { value: prevWarn }), - error: assign({}, props, { value: prevError }), - group: assign({}, props, { value: prevGroup }), - groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), - groupEnd: assign({}, props, { value: prevGroupEnd }) - }); - } - 0 > disabledDepth && - error$jscomp$0( - "disabledDepth fell below zero. This is a bug in React. Please file an issue." + function injectInternals(internals) { + if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled) return !0; + if (!hook.supportsFiber) + return ( + error$jscomp$0( + "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" + ), + !0 ); + try { + (rendererID = hook.inject(internals)), (injectedHook = hook); + } catch (err) { + error$jscomp$0("React instrumentation encountered an error: %s.", err); + } + return hook.checkDCE ? !0 : !1; } - function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) + function setIsStrictModeForDevtools(newIsStrictMode) { + "function" === typeof log$1 && + (unstable_setDisableYieldValue(newIsStrictMode), + (suppressWarning = newIsStrictMode)); + if (injectedHook && "function" === typeof injectedHook.setStrictMode) try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - var frame = componentFrameCache.get(fn); - if (void 0 !== frame) return frame; - reentry = !0; - frame = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher = null; - previousDispatcher = ReactSharedInternals.H; - ReactSharedInternals.H = null; - disableLogs(); - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$0) { - control = x$0; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$1) { - control = x$1; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = - RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - _RunInRootFrame$Deter = namePropDescriptor = 0; - namePropDescriptor < sampleLines.length && - !sampleLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - for ( - ; - _RunInRootFrame$Deter < controlLines.length && - !controlLines[_RunInRootFrame$Deter].includes( - "DetermineComponentFrameRoot" - ); - - ) - _RunInRootFrame$Deter++; - if ( - namePropDescriptor === sampleLines.length || - _RunInRootFrame$Deter === controlLines.length - ) - for ( - namePropDescriptor = sampleLines.length - 1, - _RunInRootFrame$Deter = controlLines.length - 1; - 1 <= namePropDescriptor && - 0 <= _RunInRootFrame$Deter && - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]; - - ) - _RunInRootFrame$Deter--; - for ( - ; - 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; - namePropDescriptor--, _RunInRootFrame$Deter-- - ) - if ( - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter] - ) { - if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { - do - if ( - (namePropDescriptor--, - _RunInRootFrame$Deter--, - 0 > _RunInRootFrame$Deter || - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]) - ) { - var _frame = - "\n" + - sampleLines[namePropDescriptor].replace( - " at new ", - " at " - ); - fn.displayName && - _frame.includes("") && - (_frame = _frame.replace("", fn.displayName)); - "function" === typeof fn && - componentFrameCache.set(fn, _frame); - return _frame; - } - while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); - } - break; - } - } - } finally { - (reentry = !1), - (ReactSharedInternals.H = previousDispatcher), - reenableLogs(), - (Error.prepareStackTrace = frame); - } - sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(sampleLines) - : ""; - "function" === typeof fn && componentFrameCache.set(fn, sampleLines); - return sampleLines; - } - function formatOwnerStack(error) { - var prevPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - error = error.stack; - Error.prepareStackTrace = prevPrepareStackTrace; - error.startsWith("Error: react-stack-top-frame\n") && - (error = error.slice(29)); - prevPrepareStackTrace = error.indexOf("\n"); - -1 !== prevPrepareStackTrace && - (error = error.slice(prevPrepareStackTrace + 1)); - prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); - -1 !== prevPrepareStackTrace && - (prevPrepareStackTrace = error.lastIndexOf( - "\n", - prevPrepareStackTrace - )); - if (-1 !== prevPrepareStackTrace) - error = error.slice(0, prevPrepareStackTrace); - else return ""; - return error; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do { - info += describeFiber(workInProgress); - var debugInfo = workInProgress._debugInfo; - if (debugInfo) - for (var i = debugInfo.length - 1; 0 <= i; i--) { - var entry = debugInfo[i]; - if ("string" === typeof entry.name) { - var JSCompiler_temp_const = info, - env = entry.env; - var JSCompiler_inline_result = describeBuiltInComponentFrame( - entry.name + (env ? " [" + env + "]" : "") - ); - info = JSCompiler_temp_const + JSCompiler_inline_result; - } - } - workInProgress = workInProgress.return; - } while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function describeFunctionComponentFrameWithoutLineNumber(fn) { - return (fn = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(fn) - : ""; - } - function getOwnerStackByFiberInDev(workInProgress) { - if (!enableOwnerStacks) return ""; - try { - var info = ""; - 6 === workInProgress.tag && (workInProgress = workInProgress.return); - switch (workInProgress.tag) { - case 26: - case 27: - case 5: - info += describeBuiltInComponentFrame(workInProgress.type); - break; - case 13: - info += describeBuiltInComponentFrame("Suspense"); - break; - case 19: - info += describeBuiltInComponentFrame("SuspenseList"); - break; - case 0: - case 15: - case 1: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type - )); - break; - case 11: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type.render - )); - } - for (; workInProgress; ) - if ("number" === typeof workInProgress.tag) { - var fiber = workInProgress; - workInProgress = fiber._debugOwner; - var debugStack = fiber._debugStack; - workInProgress && - debugStack && - ("string" !== typeof debugStack && - (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), - "" !== debugStack && (info += "\n" + debugStack)); - } else if (null != workInProgress.debugStack) { - var ownerStack = workInProgress.debugStack; - (workInProgress = workInProgress.owner) && - ownerStack && - (info += "\n" + formatOwnerStack(ownerStack)); - } else break; - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function getCurrentFiberStackInDev() { - return null === current - ? "" - : enableOwnerStacks - ? getOwnerStackByFiberInDev(current) - : getStackByFiberInDevAndProd(current); - } - function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { - var previousFiber = current; - ReactSharedInternals.getCurrentStack = - null === fiber ? null : getCurrentFiberStackInDev; - isRendering = !1; - current = fiber; - try { - return enableOwnerStacks && null !== fiber && fiber._debugTask - ? fiber._debugTask.run( - callback.bind(null, arg0, arg1, arg2, arg3, arg4) - ) - : callback(arg0, arg1, arg2, arg3, arg4); - } finally { - current = previousFiber; - } - throw Error( - "runWithFiberInDEV should never be called in production. This is a bug in React." - ); - } - function getNearestMountedFiber(fiber) { - var node = fiber, - nearestMounted = fiber; - if (fiber.alternate) for (; node.return; ) node = node.return; - else { - fiber = node; - do - (node = fiber), - 0 !== (node.flags & 4098) && (nearestMounted = node.return), - (fiber = node.return); - while (fiber); - } - return 3 === node.tag ? nearestMounted : null; - } - function isFiberSuspenseAndTimedOut(fiber) { - var memoizedState = fiber.memoizedState; - return ( - 13 === fiber.tag && - null !== memoizedState && - null === memoizedState.dehydrated - ); - } - function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; - } - function childrenAsString(children) { - return children - ? "string" === typeof children - ? children - : children.length - ? children.join("") - : "" - : ""; - } - function injectInternals(internals) { - if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; - var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (hook.isDisabled) return !0; - if (!hook.supportsFiber) - return ( - error$jscomp$0( - "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" - ), - !0 - ); - try { - (rendererID = hook.inject(internals)), (injectedHook = hook); - } catch (err) { - error$jscomp$0("React instrumentation encountered an error: %s.", err); - } - return hook.checkDCE ? !0 : !1; - } - function setIsStrictModeForDevtools(newIsStrictMode) { - "function" === typeof log$1 && - (unstable_setDisableYieldValue(newIsStrictMode), - (suppressWarning = newIsStrictMode)); - if (injectedHook && "function" === typeof injectedHook.setStrictMode) - try { - injectedHook.setStrictMode(rendererID, newIsStrictMode); - } catch (err) { - hasLoggedError || - ((hasLoggedError = !0), - error$jscomp$0( - "React instrumentation encountered an error: %s", - err - )); + injectedHook.setStrictMode(rendererID, newIsStrictMode); + } catch (err) { + hasLoggedError || + ((hasLoggedError = !0), + error$jscomp$0( + "React instrumentation encountered an error: %s", + err + )); } } function injectProfilingHooks(profilingHooks) { @@ -1390,63 +1004,410 @@ __DEV__ && push(contextStackCursor$1, context, fiber); push(didPerformWorkStackCursor, didChange, fiber); } - function processChildContext(fiber, type, parentContext) { - var instance = fiber.stateNode; - type = type.childContextTypes; - if ("function" !== typeof instance.getChildContext) - return ( - (fiber = getComponentNameFromFiber(fiber) || "Unknown"), - warnedAboutMissingGetChildContext[fiber] || - ((warnedAboutMissingGetChildContext[fiber] = !0), - error$jscomp$0( - "%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.", - fiber, - fiber - )), - parentContext - ); - instance = instance.getChildContext(); - for (var contextKey in instance) - if (!(contextKey in type)) - throw Error( - (getComponentNameFromFiber(fiber) || "Unknown") + - '.getChildContext(): key "' + - contextKey + - '" is not defined in childContextTypes.' - ); - return assign({}, parentContext, instance); + function processChildContext(fiber, type, parentContext) { + var instance = fiber.stateNode; + type = type.childContextTypes; + if ("function" !== typeof instance.getChildContext) + return ( + (fiber = getComponentNameFromFiber(fiber) || "Unknown"), + warnedAboutMissingGetChildContext[fiber] || + ((warnedAboutMissingGetChildContext[fiber] = !0), + error$jscomp$0( + "%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.", + fiber, + fiber + )), + parentContext + ); + instance = instance.getChildContext(); + for (var contextKey in instance) + if (!(contextKey in type)) + throw Error( + (getComponentNameFromFiber(fiber) || "Unknown") + + '.getChildContext(): key "' + + contextKey + + '" is not defined in childContextTypes.' + ); + return assign({}, parentContext, instance); + } + function pushContextProvider(workInProgress) { + var instance = workInProgress.stateNode; + instance = + (instance && instance.__reactInternalMemoizedMergedChildContext) || + emptyContextObject; + previousContext = contextStackCursor$1.current; + push(contextStackCursor$1, instance, workInProgress); + push( + didPerformWorkStackCursor, + didPerformWorkStackCursor.current, + workInProgress + ); + return !0; + } + function invalidateContextProvider(workInProgress, type, didChange) { + var instance = workInProgress.stateNode; + if (!instance) + throw Error( + "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." + ); + didChange + ? ((type = processChildContext(workInProgress, type, previousContext)), + (instance.__reactInternalMemoizedMergedChildContext = type), + pop(didPerformWorkStackCursor, workInProgress), + pop(contextStackCursor$1, workInProgress), + push(contextStackCursor$1, type, workInProgress)) + : pop(didPerformWorkStackCursor, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } + function is(x, y) { + return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); + } + function disabledLog() {} + function disableLogs() { + if (0 === disabledDepth) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: !0, + enumerable: !0, + value: disabledLog, + writable: !0 + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + function reenableLogs() { + disabledDepth--; + if (0 === disabledDepth) { + var props = { configurable: !0, enumerable: !0, writable: !0 }; + Object.defineProperties(console, { + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) + }); + } + 0 > disabledDepth && + error$jscomp$0( + "disabledDepth fell below zero. This is a bug in React. Please file an issue." + ); + } + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + var frame = componentFrameCache.get(fn); + if (void 0 !== frame) return frame; + reentry = !0; + frame = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher = null; + previousDispatcher = ReactSharedInternals.H; + ReactSharedInternals.H = null; + disableLogs(); + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$0) { + control = x$0; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$1) { + control = x$1; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = + RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + _RunInRootFrame$Deter = namePropDescriptor = 0; + namePropDescriptor < sampleLines.length && + !sampleLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + for ( + ; + _RunInRootFrame$Deter < controlLines.length && + !controlLines[_RunInRootFrame$Deter].includes( + "DetermineComponentFrameRoot" + ); + + ) + _RunInRootFrame$Deter++; + if ( + namePropDescriptor === sampleLines.length || + _RunInRootFrame$Deter === controlLines.length + ) + for ( + namePropDescriptor = sampleLines.length - 1, + _RunInRootFrame$Deter = controlLines.length - 1; + 1 <= namePropDescriptor && + 0 <= _RunInRootFrame$Deter && + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]; + + ) + _RunInRootFrame$Deter--; + for ( + ; + 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; + namePropDescriptor--, _RunInRootFrame$Deter-- + ) + if ( + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter] + ) { + if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { + do + if ( + (namePropDescriptor--, + _RunInRootFrame$Deter--, + 0 > _RunInRootFrame$Deter || + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]) + ) { + var _frame = + "\n" + + sampleLines[namePropDescriptor].replace( + " at new ", + " at " + ); + fn.displayName && + _frame.includes("") && + (_frame = _frame.replace("", fn.displayName)); + "function" === typeof fn && + componentFrameCache.set(fn, _frame); + return _frame; + } + while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); + } + break; + } + } + } finally { + (reentry = !1), + (ReactSharedInternals.H = previousDispatcher), + reenableLogs(), + (Error.prepareStackTrace = frame); + } + sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(sampleLines) + : ""; + "function" === typeof fn && componentFrameCache.set(fn, sampleLines); + return sampleLines; + } + function formatOwnerStack(error) { + var prevPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + error = error.stack; + Error.prepareStackTrace = prevPrepareStackTrace; + error.startsWith("Error: react-stack-top-frame\n") && + (error = error.slice(29)); + prevPrepareStackTrace = error.indexOf("\n"); + -1 !== prevPrepareStackTrace && + (error = error.slice(prevPrepareStackTrace + 1)); + prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); + -1 !== prevPrepareStackTrace && + (prevPrepareStackTrace = error.lastIndexOf( + "\n", + prevPrepareStackTrace + )); + if (-1 !== prevPrepareStackTrace) + error = error.slice(0, prevPrepareStackTrace); + else return ""; + return error; } - function pushContextProvider(workInProgress) { - var instance = workInProgress.stateNode; - instance = - (instance && instance.__reactInternalMemoizedMergedChildContext) || - emptyContextObject; - previousContext = contextStackCursor$1.current; - push(contextStackCursor$1, instance, workInProgress); - push( - didPerformWorkStackCursor, - didPerformWorkStackCursor.current, - workInProgress - ); - return !0; + function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } } - function invalidateContextProvider(workInProgress, type, didChange) { - var instance = workInProgress.stateNode; - if (!instance) - throw Error( - "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." - ); - didChange - ? ((type = processChildContext(workInProgress, type, previousContext)), - (instance.__reactInternalMemoizedMergedChildContext = type), - pop(didPerformWorkStackCursor, workInProgress), - pop(contextStackCursor$1, workInProgress), - push(contextStackCursor$1, type, workInProgress)) - : pop(didPerformWorkStackCursor, workInProgress); - push(didPerformWorkStackCursor, didChange, workInProgress); + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do { + info += describeFiber(workInProgress); + var debugInfo = workInProgress._debugInfo; + if (debugInfo) + for (var i = debugInfo.length - 1; 0 <= i; i--) { + var entry = debugInfo[i]; + if ("string" === typeof entry.name) { + var JSCompiler_temp_const = info, + env = entry.env; + var JSCompiler_inline_result = describeBuiltInComponentFrame( + entry.name + (env ? " [" + env + "]" : "") + ); + info = JSCompiler_temp_const + JSCompiler_inline_result; + } + } + workInProgress = workInProgress.return; + } while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } - function is(x, y) { - return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); + function describeFunctionComponentFrameWithoutLineNumber(fn) { + return (fn = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(fn) + : ""; + } + function getOwnerStackByFiberInDev(workInProgress) { + if (!enableOwnerStacks) return ""; + try { + var info = ""; + 6 === workInProgress.tag && (workInProgress = workInProgress.return); + switch (workInProgress.tag) { + case 26: + case 27: + case 5: + info += describeBuiltInComponentFrame(workInProgress.type); + break; + case 13: + info += describeBuiltInComponentFrame("Suspense"); + break; + case 19: + info += describeBuiltInComponentFrame("SuspenseList"); + break; + case 0: + case 15: + case 1: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type + )); + break; + case 11: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type.render + )); + } + for (; workInProgress; ) + if ("number" === typeof workInProgress.tag) { + var fiber = workInProgress; + workInProgress = fiber._debugOwner; + var debugStack = fiber._debugStack; + workInProgress && + debugStack && + ("string" !== typeof debugStack && + (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), + "" !== debugStack && (info += "\n" + debugStack)); + } else if (null != workInProgress.debugStack) { + var ownerStack = workInProgress.debugStack; + (workInProgress = workInProgress.owner) && + ownerStack && + (info += "\n" + formatOwnerStack(ownerStack)); + } else break; + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } function createCapturedValueAtFiber(value, source) { if ("object" === typeof value && null !== value) { @@ -2257,8 +2218,6 @@ __DEV__ && ((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask()) : didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now$1()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -2585,6 +2544,32 @@ __DEV__ && } return !0; } + function getCurrentFiberStackInDev() { + return null === current + ? "" + : enableOwnerStacks + ? getOwnerStackByFiberInDev(current) + : getStackByFiberInDevAndProd(current); + } + function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { + var previousFiber = current; + ReactSharedInternals.getCurrentStack = + null === fiber ? null : getCurrentFiberStackInDev; + isRendering = !1; + current = fiber; + try { + return enableOwnerStacks && null !== fiber && fiber._debugTask + ? fiber._debugTask.run( + callback.bind(null, arg0, arg1, arg2, arg3, arg4) + ) + : callback(arg0, arg1, arg2, arg3, arg4); + } finally { + current = previousFiber; + } + throw Error( + "runWithFiberInDEV should never be called in production. This is a bug in React." + ); + } function createThenableState() { return { didWarnAboutUncachedPromise: !1, thenables: [] }; } @@ -3256,7 +3241,7 @@ __DEV__ && null; hookTypesUpdateIndexDev = -1; null !== current && - (current.flags & 29360128) !== (workInProgress.flags & 29360128) && + (current.flags & 65011712) !== (workInProgress.flags & 65011712) && error$jscomp$0( "Internal React error: Expected static flag was missing. Please notify the React team." ); @@ -3329,7 +3314,7 @@ __DEV__ && workInProgress.updateQueue = current.updateQueue; workInProgress.flags = 0 !== (workInProgress.mode & 16) - ? workInProgress.flags & -201328645 + ? workInProgress.flags & -402655237 : workInProgress.flags & -2053; current.lanes &= ~lanes; } @@ -4157,7 +4142,7 @@ __DEV__ && function mountEffect(create, deps) { 0 !== (currentlyRenderingFiber.mode & 16) && 0 === (currentlyRenderingFiber.mode & 64) - ? mountEffectImpl(142608384, Passive, create, deps) + ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps); } function mountResourceEffect( @@ -4173,7 +4158,7 @@ __DEV__ && ) { var hookFlags = Passive, hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= 142608384; + currentlyRenderingFiber.flags |= 276826112; var inst = createEffectInstance(); inst.destroy = destroy; hook.memoizedState = pushResourceEffect( @@ -4294,7 +4279,7 @@ __DEV__ && } function mountLayoutEffect(create, deps) { var fiberFlags = 4194308; - 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 67108864); + 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 134217728); return mountEffectImpl(fiberFlags, Layout, create, deps); } function imperativeHandleEffect(create, ref) { @@ -4327,7 +4312,7 @@ __DEV__ && ); deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; var fiberFlags = 4194308; - 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 67108864); + 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 134217728); mountEffectImpl( fiberFlags, Layout, @@ -4859,16 +4844,16 @@ __DEV__ && return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -7072,7 +7057,7 @@ __DEV__ && (state.state = workInProgress.memoizedState)); "function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308); - 0 !== (workInProgress.mode & 16) && (workInProgress.flags |= 67108864); + 0 !== (workInProgress.mode & 16) && (workInProgress.flags |= 134217728); state = !0; } else if (null === current$jscomp$0) (state = workInProgress.stateNode), @@ -7146,11 +7131,11 @@ __DEV__ && "function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), 0 !== (workInProgress.mode & 16) && - (workInProgress.flags |= 67108864)) + (workInProgress.flags |= 134217728)) : ("function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), 0 !== (workInProgress.mode & 16) && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (workInProgress.memoizedProps = nextProps), (workInProgress.memoizedState = state$jscomp$0)), (state.props = nextProps), @@ -7160,7 +7145,7 @@ __DEV__ && : ("function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), 0 !== (workInProgress.mode & 16) && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (state = !1)); else { state = workInProgress.stateNode; @@ -7660,7 +7645,7 @@ __DEV__ && mode: "hidden", children: nextProps.children }); - nextProps.subtreeFlags = didSuspend.subtreeFlags & 29360128; + nextProps.subtreeFlags = didSuspend.subtreeFlags & 65011712; null !== currentFallbackChildFragment ? (nextPrimaryChildren = createWorkInProgress( currentFallbackChildFragment, @@ -8912,8 +8897,8 @@ __DEV__ && ) (newChildLanes |= _child2.lanes | _child2.childLanes), - (subtreeFlags |= _child2.subtreeFlags & 29360128), - (subtreeFlags |= _child2.flags & 29360128), + (subtreeFlags |= _child2.subtreeFlags & 65011712), + (subtreeFlags |= _child2.flags & 65011712), (_treeBaseDuration += _child2.treeBaseDuration), (_child2 = _child2.sibling); completedWork.treeBaseDuration = _treeBaseDuration; @@ -8925,8 +8910,8 @@ __DEV__ && ) (newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes), - (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128), - (subtreeFlags |= _treeBaseDuration.flags & 29360128), + (subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712), + (subtreeFlags |= _treeBaseDuration.flags & 65011712), (_treeBaseDuration.return = completedWork), (_treeBaseDuration = _treeBaseDuration.sibling); else if (0 !== (completedWork.mode & 2)) { @@ -9386,6 +9371,8 @@ __DEV__ && bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error( "Unknown unit of work tag (" + @@ -11244,6 +11231,7 @@ __DEV__ && ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -11657,7 +11645,7 @@ __DEV__ && break; case 12: flags & 2048 - ? ((prevEffectDuration = pushNestedEffectDurations()), + ? ((flags = pushNestedEffectDurations()), recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, @@ -11666,7 +11654,7 @@ __DEV__ && ), (finishedRoot = finishedWork.stateNode), (finishedRoot.passiveEffectDuration += - bubbleNestedEffectDurations(prevEffectDuration)), + bubbleNestedEffectDurations(flags)), commitProfilerPostCommit( finishedWork, finishedWork.alternate, @@ -11704,6 +11692,7 @@ __DEV__ && break; case 22: prevEffectDuration = finishedWork.stateNode; + nextCache = finishedWork.alternate; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -11733,7 +11722,7 @@ __DEV__ && )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + nextCache, finishedWork, prevEffectDuration ); @@ -11748,6 +11737,7 @@ __DEV__ && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -12477,6 +12467,7 @@ __DEV__ && lanes, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, @@ -12506,6 +12497,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -12526,6 +12518,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -12549,6 +12542,7 @@ __DEV__ && finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -12557,7 +12551,9 @@ __DEV__ && ) { root.timeoutHandle = -1; var subtreeFlags = finishedWork.subtreeFlags; - (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) && + (subtreeFlags = + subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) && + subtreeFlags && accumulateSuspenseyCommitOnFiber(finishedWork); commitRoot( root, @@ -12565,6 +12561,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -12689,6 +12686,7 @@ __DEV__ && workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -13306,6 +13304,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -13365,24 +13364,30 @@ __DEV__ && })) : ((root.callbackNode = null), (root.callbackPriority = 0)); commitStartTime = now(); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = currentUpdatePriority; + transitions = currentUpdatePriority; currentUpdatePriority = DiscreteEventPriority; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= CommitContext; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (currentUpdatePriority = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (currentUpdatePriority = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = PENDING_MUTATION_PHASE; flushMutationEffects(); + pendingEffectsStatus = PENDING_LAYOUT_PHASE; flushLayoutEffects(); } } @@ -13415,7 +13420,7 @@ __DEV__ && } } root.current = finishedWork; - pendingEffectsStatus = PENDING_LAYOUT_PHASE; + pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; } } function flushLayoutEffects() { @@ -13575,6 +13580,9 @@ __DEV__ && function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE && + ((pendingEffectsStatus = NO_PENDING_EFFECTS), + (pendingEffectsStatus = PENDING_LAYOUT_PHASE)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { @@ -13839,14 +13847,14 @@ __DEV__ && parentFiber, isInStrictMode ) { - if (0 !== (parentFiber.subtreeFlags & 33562624)) + if (0 !== (parentFiber.subtreeFlags & 67117056)) for (parentFiber = parentFiber.child; null !== parentFiber; ) { var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; isStrictModeFiber = isInStrictMode || isStrictModeFiber; 22 !== fiber.tag - ? fiber.flags & 33554432 + ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV( fiber, @@ -13868,7 +13876,7 @@ __DEV__ && root, fiber ) - : fiber.subtreeFlags & 33554432 && + : fiber.subtreeFlags & 67108864 && runWithFiberInDEV( fiber, recursivelyTraverseAndDoubleInvokeEffectsInDEV, @@ -14176,7 +14184,7 @@ __DEV__ && (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -14214,7 +14222,7 @@ __DEV__ && return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -14312,6 +14320,7 @@ __DEV__ && return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -14577,13 +14586,7 @@ __DEV__ && a: if (parentComponent) { parentComponent = parentComponent._reactInternals; b: { - var parentContext = - getNearestMountedFiber(parentComponent) === parentComponent; - if (!parentContext || 1 !== parentComponent.tag) - throw Error( - "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." - ); - parentContext = parentComponent; + var parentContext = parentComponent; do { switch (parentContext.tag) { case 3: @@ -14677,8 +14680,6 @@ __DEV__ && dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -14721,28 +14722,12 @@ __DEV__ && REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - disabledDepth = 0, - prevLog, - prevInfo, - prevWarn, - prevError, - prevGroup, - prevGroupCollapsed, - prevGroupEnd; - disabledLog.__reactDisabledLog = !0; - var prefix, - suffix, - reentry = !1; - var componentFrameCache = new ( - "function" === typeof WeakMap ? WeakMap : Map - )(); - var current = null, - isRendering = !1, - isArrayImpl = Array.isArray, TYPES = { CLIPPING_RECTANGLE: "ClippingRectangle", GROUP: "Group", @@ -14816,7 +14801,22 @@ __DEV__ && didPerformWorkStackCursor = createCursor(!1), previousContext = emptyContextObject, objectIs = "function" === typeof Object.is ? Object.is : is, - CapturedStacks = new WeakMap(), + disabledDepth = 0, + prevLog, + prevInfo, + prevWarn, + prevError, + prevGroup, + prevGroupCollapsed, + prevGroupEnd; + disabledLog.__reactDisabledLog = !0; + var prefix, + suffix, + reentry = !1; + var componentFrameCache = new ( + "function" === typeof WeakMap ? WeakMap : Map + )(); + var CapturedStacks = new WeakMap(), contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), @@ -14890,6 +14890,8 @@ __DEV__ && var resumedCache = createCursor(null), transitionStack = createCursor(null), hasOwnProperty = Object.prototype.hasOwnProperty, + current = null, + isRendering = !1, ReactStrictModeWarnings = { recordUnsafeLifecycleWarnings: function () {}, flushPendingUnsafeLifecycleWarnings: function () {}, @@ -16501,21 +16503,6 @@ __DEV__ && var didWarnOnInvalidCallback = new Set(); Object.freeze(fakeInternalInstance); var classComponentUpdater = { - isMounted: function (component) { - var owner = current; - if (null !== owner && isRendering && 1 === owner.tag) { - var instance = owner.stateNode; - instance._warnedAboutRefsInRender || - error$jscomp$0( - "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", - getComponentNameFromFiber(owner) || "A component" - ); - instance._warnedAboutRefsInRender = !0; - } - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(inst), @@ -16690,6 +16677,7 @@ __DEV__ && workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -16704,8 +16692,9 @@ __DEV__ && THROTTLED_COMMIT = 2, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, - PENDING_LAYOUT_PHASE = 2, - PENDING_PASSIVE_PHASE = 3, + PENDING_AFTER_MUTATION_PHASE = 2, + PENDING_LAYOUT_PHASE = 3, + PENDING_PASSIVE_PHASE = 4, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, @@ -16946,10 +16935,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-defffdbb-20250106", + version: "19.1.0-www-classic-98418e89-20250108", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-classic-98418e89-20250108" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16983,7 +16972,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-classic-defffdbb-20250106"; + exports.version = "19.1.0-www-classic-98418e89-20250108"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 667265d5da95e..4beb0672aa36a 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -174,6 +174,26 @@ __DEV__ && args.unshift(!1); warningWWW.apply(null, args); } + function isFiberSuspenseAndTimedOut(fiber) { + var memoizedState = fiber.memoizedState; + return ( + 13 === fiber.tag && + null !== memoizedState && + null === memoizedState.dehydrated + ); + } + function doesFiberContain(parentFiber, childFiber) { + for ( + var parentFiberAlternate = parentFiber.alternate; + null !== childFiber; + + ) { + if (childFiber === parentFiber || childFiber === parentFiberAlternate) + return !0; + childFiber = childFiber.return; + } + return !1; + } function getIteratorFn(maybeIterable) { if (null === maybeIterable || "object" !== typeof maybeIterable) return null; @@ -202,6 +222,7 @@ __DEV__ && return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -317,440 +338,47 @@ __DEV__ && } return null; } - function disabledLog() {} - function disableLogs() { - if (0 === disabledDepth) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: !0, - enumerable: !0, - value: disabledLog, - writable: !0 - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; + function childrenAsString(children) { + return children + ? "string" === typeof children + ? children + : children.length + ? children.join("") + : "" + : ""; } - function reenableLogs() { - disabledDepth--; - if (0 === disabledDepth) { - var props = { configurable: !0, enumerable: !0, writable: !0 }; - Object.defineProperties(console, { - log: assign({}, props, { value: prevLog }), - info: assign({}, props, { value: prevInfo }), - warn: assign({}, props, { value: prevWarn }), - error: assign({}, props, { value: prevError }), - group: assign({}, props, { value: prevGroup }), - groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), - groupEnd: assign({}, props, { value: prevGroupEnd }) - }); - } - 0 > disabledDepth && - error$jscomp$0( - "disabledDepth fell below zero. This is a bug in React. Please file an issue." + function injectInternals(internals) { + if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled) return !0; + if (!hook.supportsFiber) + return ( + error$jscomp$0( + "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" + ), + !0 ); + try { + (rendererID = hook.inject(internals)), (injectedHook = hook); + } catch (err) { + error$jscomp$0("React instrumentation encountered an error: %s.", err); + } + return hook.checkDCE ? !0 : !1; } - function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) + function setIsStrictModeForDevtools(newIsStrictMode) { + "function" === typeof log$1 && + (unstable_setDisableYieldValue(newIsStrictMode), + (suppressWarning = newIsStrictMode)); + if (injectedHook && "function" === typeof injectedHook.setStrictMode) try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - var frame = componentFrameCache.get(fn); - if (void 0 !== frame) return frame; - reentry = !0; - frame = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher = null; - previousDispatcher = ReactSharedInternals.H; - ReactSharedInternals.H = null; - disableLogs(); - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$0) { - control = x$0; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$1) { - control = x$1; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = - RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - _RunInRootFrame$Deter = namePropDescriptor = 0; - namePropDescriptor < sampleLines.length && - !sampleLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - for ( - ; - _RunInRootFrame$Deter < controlLines.length && - !controlLines[_RunInRootFrame$Deter].includes( - "DetermineComponentFrameRoot" - ); - - ) - _RunInRootFrame$Deter++; - if ( - namePropDescriptor === sampleLines.length || - _RunInRootFrame$Deter === controlLines.length - ) - for ( - namePropDescriptor = sampleLines.length - 1, - _RunInRootFrame$Deter = controlLines.length - 1; - 1 <= namePropDescriptor && - 0 <= _RunInRootFrame$Deter && - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]; - - ) - _RunInRootFrame$Deter--; - for ( - ; - 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; - namePropDescriptor--, _RunInRootFrame$Deter-- - ) - if ( - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter] - ) { - if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { - do - if ( - (namePropDescriptor--, - _RunInRootFrame$Deter--, - 0 > _RunInRootFrame$Deter || - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]) - ) { - var _frame = - "\n" + - sampleLines[namePropDescriptor].replace( - " at new ", - " at " - ); - fn.displayName && - _frame.includes("") && - (_frame = _frame.replace("", fn.displayName)); - "function" === typeof fn && - componentFrameCache.set(fn, _frame); - return _frame; - } - while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); - } - break; - } - } - } finally { - (reentry = !1), - (ReactSharedInternals.H = previousDispatcher), - reenableLogs(), - (Error.prepareStackTrace = frame); - } - sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(sampleLines) - : ""; - "function" === typeof fn && componentFrameCache.set(fn, sampleLines); - return sampleLines; - } - function formatOwnerStack(error) { - var prevPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - error = error.stack; - Error.prepareStackTrace = prevPrepareStackTrace; - error.startsWith("Error: react-stack-top-frame\n") && - (error = error.slice(29)); - prevPrepareStackTrace = error.indexOf("\n"); - -1 !== prevPrepareStackTrace && - (error = error.slice(prevPrepareStackTrace + 1)); - prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); - -1 !== prevPrepareStackTrace && - (prevPrepareStackTrace = error.lastIndexOf( - "\n", - prevPrepareStackTrace - )); - if (-1 !== prevPrepareStackTrace) - error = error.slice(0, prevPrepareStackTrace); - else return ""; - return error; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do { - info += describeFiber(workInProgress); - var debugInfo = workInProgress._debugInfo; - if (debugInfo) - for (var i = debugInfo.length - 1; 0 <= i; i--) { - var entry = debugInfo[i]; - if ("string" === typeof entry.name) { - var JSCompiler_temp_const = info, - env = entry.env; - var JSCompiler_inline_result = describeBuiltInComponentFrame( - entry.name + (env ? " [" + env + "]" : "") - ); - info = JSCompiler_temp_const + JSCompiler_inline_result; - } - } - workInProgress = workInProgress.return; - } while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function describeFunctionComponentFrameWithoutLineNumber(fn) { - return (fn = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(fn) - : ""; - } - function getOwnerStackByFiberInDev(workInProgress) { - if (!enableOwnerStacks) return ""; - try { - var info = ""; - 6 === workInProgress.tag && (workInProgress = workInProgress.return); - switch (workInProgress.tag) { - case 26: - case 27: - case 5: - info += describeBuiltInComponentFrame(workInProgress.type); - break; - case 13: - info += describeBuiltInComponentFrame("Suspense"); - break; - case 19: - info += describeBuiltInComponentFrame("SuspenseList"); - break; - case 0: - case 15: - case 1: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type - )); - break; - case 11: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type.render - )); - } - for (; workInProgress; ) - if ("number" === typeof workInProgress.tag) { - var fiber = workInProgress; - workInProgress = fiber._debugOwner; - var debugStack = fiber._debugStack; - workInProgress && - debugStack && - ("string" !== typeof debugStack && - (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), - "" !== debugStack && (info += "\n" + debugStack)); - } else if (null != workInProgress.debugStack) { - var ownerStack = workInProgress.debugStack; - (workInProgress = workInProgress.owner) && - ownerStack && - (info += "\n" + formatOwnerStack(ownerStack)); - } else break; - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function getCurrentFiberStackInDev() { - return null === current - ? "" - : enableOwnerStacks - ? getOwnerStackByFiberInDev(current) - : getStackByFiberInDevAndProd(current); - } - function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { - var previousFiber = current; - ReactSharedInternals.getCurrentStack = - null === fiber ? null : getCurrentFiberStackInDev; - isRendering = !1; - current = fiber; - try { - return enableOwnerStacks && null !== fiber && fiber._debugTask - ? fiber._debugTask.run( - callback.bind(null, arg0, arg1, arg2, arg3, arg4) - ) - : callback(arg0, arg1, arg2, arg3, arg4); - } finally { - current = previousFiber; - } - throw Error( - "runWithFiberInDEV should never be called in production. This is a bug in React." - ); - } - function isFiberSuspenseAndTimedOut(fiber) { - var memoizedState = fiber.memoizedState; - return ( - 13 === fiber.tag && - null !== memoizedState && - null === memoizedState.dehydrated - ); - } - function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; - } - function childrenAsString(children) { - return children - ? "string" === typeof children - ? children - : children.length - ? children.join("") - : "" - : ""; - } - function injectInternals(internals) { - if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; - var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (hook.isDisabled) return !0; - if (!hook.supportsFiber) - return ( - error$jscomp$0( - "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" - ), - !0 - ); - try { - (rendererID = hook.inject(internals)), (injectedHook = hook); - } catch (err) { - error$jscomp$0("React instrumentation encountered an error: %s.", err); - } - return hook.checkDCE ? !0 : !1; - } - function setIsStrictModeForDevtools(newIsStrictMode) { - "function" === typeof log$1 && - (unstable_setDisableYieldValue(newIsStrictMode), - (suppressWarning = newIsStrictMode)); - if (injectedHook && "function" === typeof injectedHook.setStrictMode) - try { - injectedHook.setStrictMode(rendererID, newIsStrictMode); - } catch (err) { - hasLoggedError || - ((hasLoggedError = !0), - error$jscomp$0( - "React instrumentation encountered an error: %s", - err - )); + injectedHook.setStrictMode(rendererID, newIsStrictMode); + } catch (err) { + hasLoggedError || + ((hasLoggedError = !0), + error$jscomp$0( + "React instrumentation encountered an error: %s", + err + )); } } function injectProfilingHooks(profilingHooks) { @@ -1283,62 +911,409 @@ __DEV__ && newFont.fontFamily === JSCompiler_temp.fontFamily; JSCompiler_temp = !JSCompiler_temp; } - if ( - JSCompiler_temp || - props.alignment !== prevProps.alignment || - props.path !== prevProps.path - ) - instance.draw(string, props.font, props.alignment, props.path), - (instance._currentString = string); - } - function resetTextContent() {} - function shouldSetTextContent(type, props) { - return ( - "string" === typeof props.children || "number" === typeof props.children - ); - } - function removeChild(parentInstance, child) { - destroyEventListeners(child); - child.eject(); - } - function removeChildFromContainer(parentInstance, child) { - destroyEventListeners(child); - child.eject(); - } - function commitTextUpdate() {} - function commitMount() {} - function commitUpdate(instance, type, oldProps, newProps) { - instance._applyProps(instance, newProps, oldProps); - } - function hideInstance(instance) { - instance.hide(); + if ( + JSCompiler_temp || + props.alignment !== prevProps.alignment || + props.path !== prevProps.path + ) + instance.draw(string, props.font, props.alignment, props.path), + (instance._currentString = string); + } + function resetTextContent() {} + function shouldSetTextContent(type, props) { + return ( + "string" === typeof props.children || "number" === typeof props.children + ); + } + function removeChild(parentInstance, child) { + destroyEventListeners(child); + child.eject(); + } + function removeChildFromContainer(parentInstance, child) { + destroyEventListeners(child); + child.eject(); + } + function commitTextUpdate() {} + function commitMount() {} + function commitUpdate(instance, type, oldProps, newProps) { + instance._applyProps(instance, newProps, oldProps); + } + function hideInstance(instance) { + instance.hide(); + } + function hideTextInstance() {} + function unhideInstance(instance, props) { + (null == props.visible || props.visible) && instance.show(); + } + function unhideTextInstance() {} + function createCursor(defaultValue) { + return { current: defaultValue }; + } + function pop(cursor, fiber) { + 0 > index$jscomp$0 + ? error$jscomp$0("Unexpected pop.") + : (fiber !== fiberStack[index$jscomp$0] && + error$jscomp$0("Unexpected Fiber popped."), + (cursor.current = valueStack[index$jscomp$0]), + (valueStack[index$jscomp$0] = null), + (fiberStack[index$jscomp$0] = null), + index$jscomp$0--); + } + function push(cursor, value, fiber) { + index$jscomp$0++; + valueStack[index$jscomp$0] = cursor.current; + fiberStack[index$jscomp$0] = fiber; + cursor.current = value; + } + function is(x, y) { + return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); + } + function disabledLog() {} + function disableLogs() { + if (0 === disabledDepth) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: !0, + enumerable: !0, + value: disabledLog, + writable: !0 + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + function reenableLogs() { + disabledDepth--; + if (0 === disabledDepth) { + var props = { configurable: !0, enumerable: !0, writable: !0 }; + Object.defineProperties(console, { + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) + }); + } + 0 > disabledDepth && + error$jscomp$0( + "disabledDepth fell below zero. This is a bug in React. Please file an issue." + ); + } + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + var frame = componentFrameCache.get(fn); + if (void 0 !== frame) return frame; + reentry = !0; + frame = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher = null; + previousDispatcher = ReactSharedInternals.H; + ReactSharedInternals.H = null; + disableLogs(); + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$0) { + control = x$0; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$1) { + control = x$1; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = + RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + _RunInRootFrame$Deter = namePropDescriptor = 0; + namePropDescriptor < sampleLines.length && + !sampleLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + for ( + ; + _RunInRootFrame$Deter < controlLines.length && + !controlLines[_RunInRootFrame$Deter].includes( + "DetermineComponentFrameRoot" + ); + + ) + _RunInRootFrame$Deter++; + if ( + namePropDescriptor === sampleLines.length || + _RunInRootFrame$Deter === controlLines.length + ) + for ( + namePropDescriptor = sampleLines.length - 1, + _RunInRootFrame$Deter = controlLines.length - 1; + 1 <= namePropDescriptor && + 0 <= _RunInRootFrame$Deter && + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]; + + ) + _RunInRootFrame$Deter--; + for ( + ; + 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; + namePropDescriptor--, _RunInRootFrame$Deter-- + ) + if ( + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter] + ) { + if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { + do + if ( + (namePropDescriptor--, + _RunInRootFrame$Deter--, + 0 > _RunInRootFrame$Deter || + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]) + ) { + var _frame = + "\n" + + sampleLines[namePropDescriptor].replace( + " at new ", + " at " + ); + fn.displayName && + _frame.includes("") && + (_frame = _frame.replace("", fn.displayName)); + "function" === typeof fn && + componentFrameCache.set(fn, _frame); + return _frame; + } + while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); + } + break; + } + } + } finally { + (reentry = !1), + (ReactSharedInternals.H = previousDispatcher), + reenableLogs(), + (Error.prepareStackTrace = frame); + } + sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(sampleLines) + : ""; + "function" === typeof fn && componentFrameCache.set(fn, sampleLines); + return sampleLines; } - function hideTextInstance() {} - function unhideInstance(instance, props) { - (null == props.visible || props.visible) && instance.show(); + function formatOwnerStack(error) { + var prevPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + error = error.stack; + Error.prepareStackTrace = prevPrepareStackTrace; + error.startsWith("Error: react-stack-top-frame\n") && + (error = error.slice(29)); + prevPrepareStackTrace = error.indexOf("\n"); + -1 !== prevPrepareStackTrace && + (error = error.slice(prevPrepareStackTrace + 1)); + prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); + -1 !== prevPrepareStackTrace && + (prevPrepareStackTrace = error.lastIndexOf( + "\n", + prevPrepareStackTrace + )); + if (-1 !== prevPrepareStackTrace) + error = error.slice(0, prevPrepareStackTrace); + else return ""; + return error; } - function unhideTextInstance() {} - function createCursor(defaultValue) { - return { current: defaultValue }; + function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } } - function pop(cursor, fiber) { - 0 > index$jscomp$0 - ? error$jscomp$0("Unexpected pop.") - : (fiber !== fiberStack[index$jscomp$0] && - error$jscomp$0("Unexpected Fiber popped."), - (cursor.current = valueStack[index$jscomp$0]), - (valueStack[index$jscomp$0] = null), - (fiberStack[index$jscomp$0] = null), - index$jscomp$0--); + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do { + info += describeFiber(workInProgress); + var debugInfo = workInProgress._debugInfo; + if (debugInfo) + for (var i = debugInfo.length - 1; 0 <= i; i--) { + var entry = debugInfo[i]; + if ("string" === typeof entry.name) { + var JSCompiler_temp_const = info, + env = entry.env; + var JSCompiler_inline_result = describeBuiltInComponentFrame( + entry.name + (env ? " [" + env + "]" : "") + ); + info = JSCompiler_temp_const + JSCompiler_inline_result; + } + } + workInProgress = workInProgress.return; + } while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } - function push(cursor, value, fiber) { - index$jscomp$0++; - valueStack[index$jscomp$0] = cursor.current; - fiberStack[index$jscomp$0] = fiber; - cursor.current = value; + function describeFunctionComponentFrameWithoutLineNumber(fn) { + return (fn = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(fn) + : ""; } - function is(x, y) { - return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); + function getOwnerStackByFiberInDev(workInProgress) { + if (!enableOwnerStacks) return ""; + try { + var info = ""; + 6 === workInProgress.tag && (workInProgress = workInProgress.return); + switch (workInProgress.tag) { + case 26: + case 27: + case 5: + info += describeBuiltInComponentFrame(workInProgress.type); + break; + case 13: + info += describeBuiltInComponentFrame("Suspense"); + break; + case 19: + info += describeBuiltInComponentFrame("SuspenseList"); + break; + case 0: + case 15: + case 1: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type + )); + break; + case 11: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type.render + )); + } + for (; workInProgress; ) + if ("number" === typeof workInProgress.tag) { + var fiber = workInProgress; + workInProgress = fiber._debugOwner; + var debugStack = fiber._debugStack; + workInProgress && + debugStack && + ("string" !== typeof debugStack && + (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), + "" !== debugStack && (info += "\n" + debugStack)); + } else if (null != workInProgress.debugStack) { + var ownerStack = workInProgress.debugStack; + (workInProgress = workInProgress.owner) && + ownerStack && + (info += "\n" + formatOwnerStack(ownerStack)); + } else break; + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } function createCapturedValueAtFiber(value, source) { if ("object" === typeof value && null !== value) { @@ -2149,8 +2124,6 @@ __DEV__ && ((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask()) : didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now$1()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -2477,6 +2450,32 @@ __DEV__ && } return !0; } + function getCurrentFiberStackInDev() { + return null === current + ? "" + : enableOwnerStacks + ? getOwnerStackByFiberInDev(current) + : getStackByFiberInDevAndProd(current); + } + function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { + var previousFiber = current; + ReactSharedInternals.getCurrentStack = + null === fiber ? null : getCurrentFiberStackInDev; + isRendering = !1; + current = fiber; + try { + return enableOwnerStacks && null !== fiber && fiber._debugTask + ? fiber._debugTask.run( + callback.bind(null, arg0, arg1, arg2, arg3, arg4) + ) + : callback(arg0, arg1, arg2, arg3, arg4); + } finally { + current = previousFiber; + } + throw Error( + "runWithFiberInDEV should never be called in production. This is a bug in React." + ); + } function createThenableState() { return { didWarnAboutUncachedPromise: !1, thenables: [] }; } @@ -3148,7 +3147,7 @@ __DEV__ && null; hookTypesUpdateIndexDev = -1; null !== current && - (current.flags & 29360128) !== (workInProgress.flags & 29360128) && + (current.flags & 65011712) !== (workInProgress.flags & 65011712) && error$jscomp$0( "Internal React error: Expected static flag was missing. Please notify the React team." ); @@ -3221,7 +3220,7 @@ __DEV__ && workInProgress.updateQueue = current.updateQueue; workInProgress.flags = 0 !== (workInProgress.mode & 16) - ? workInProgress.flags & -201328645 + ? workInProgress.flags & -402655237 : workInProgress.flags & -2053; current.lanes &= ~lanes; } @@ -4049,7 +4048,7 @@ __DEV__ && function mountEffect(create, deps) { 0 !== (currentlyRenderingFiber.mode & 16) && 0 === (currentlyRenderingFiber.mode & 64) - ? mountEffectImpl(142608384, Passive, create, deps) + ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps); } function mountResourceEffect( @@ -4065,7 +4064,7 @@ __DEV__ && ) { var hookFlags = Passive, hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= 142608384; + currentlyRenderingFiber.flags |= 276826112; var inst = createEffectInstance(); inst.destroy = destroy; hook.memoizedState = pushResourceEffect( @@ -4186,7 +4185,7 @@ __DEV__ && } function mountLayoutEffect(create, deps) { var fiberFlags = 4194308; - 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 67108864); + 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 134217728); return mountEffectImpl(fiberFlags, Layout, create, deps); } function imperativeHandleEffect(create, ref) { @@ -4219,7 +4218,7 @@ __DEV__ && ); deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; var fiberFlags = 4194308; - 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 67108864); + 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 134217728); mountEffectImpl( fiberFlags, Layout, @@ -4751,16 +4750,16 @@ __DEV__ && return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -6920,7 +6919,7 @@ __DEV__ && (_instance.state = workInProgress.memoizedState)); "function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308); - 0 !== (workInProgress.mode & 16) && (workInProgress.flags |= 67108864); + 0 !== (workInProgress.mode & 16) && (workInProgress.flags |= 134217728); _instance = !0; } else if (null === current$jscomp$0) { _instance = workInProgress.stateNode; @@ -6988,11 +6987,11 @@ __DEV__ && "function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), 0 !== (workInProgress.mode & 16) && - (workInProgress.flags |= 67108864)) + (workInProgress.flags |= 134217728)) : ("function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), 0 !== (workInProgress.mode & 16) && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (workInProgress.memoizedProps = nextProps), (workInProgress.memoizedState = oldContext)), (_instance.props = nextProps), @@ -7002,7 +7001,7 @@ __DEV__ && : ("function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), 0 !== (workInProgress.mode & 16) && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (_instance = !1)); } else { _instance = workInProgress.stateNode; @@ -7477,7 +7476,7 @@ __DEV__ && mode: "hidden", children: nextProps.children }); - nextProps.subtreeFlags = didSuspend.subtreeFlags & 29360128; + nextProps.subtreeFlags = didSuspend.subtreeFlags & 65011712; null !== currentFallbackChildFragment ? (nextPrimaryChildren = createWorkInProgress( currentFallbackChildFragment, @@ -8730,8 +8729,8 @@ __DEV__ && ) (newChildLanes |= _child2.lanes | _child2.childLanes), - (subtreeFlags |= _child2.subtreeFlags & 29360128), - (subtreeFlags |= _child2.flags & 29360128), + (subtreeFlags |= _child2.subtreeFlags & 65011712), + (subtreeFlags |= _child2.flags & 65011712), (_treeBaseDuration += _child2.treeBaseDuration), (_child2 = _child2.sibling); completedWork.treeBaseDuration = _treeBaseDuration; @@ -8743,8 +8742,8 @@ __DEV__ && ) (newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes), - (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128), - (subtreeFlags |= _treeBaseDuration.flags & 29360128), + (subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712), + (subtreeFlags |= _treeBaseDuration.flags & 65011712), (_treeBaseDuration.return = completedWork), (_treeBaseDuration = _treeBaseDuration.sibling); else if (0 !== (completedWork.mode & 2)) { @@ -9198,6 +9197,8 @@ __DEV__ && bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error( "Unknown unit of work tag (" + @@ -11048,6 +11049,7 @@ __DEV__ && ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -11461,7 +11463,7 @@ __DEV__ && break; case 12: flags & 2048 - ? ((prevEffectDuration = pushNestedEffectDurations()), + ? ((flags = pushNestedEffectDurations()), recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, @@ -11470,7 +11472,7 @@ __DEV__ && ), (finishedRoot = finishedWork.stateNode), (finishedRoot.passiveEffectDuration += - bubbleNestedEffectDurations(prevEffectDuration)), + bubbleNestedEffectDurations(flags)), commitProfilerPostCommit( finishedWork, finishedWork.alternate, @@ -11508,6 +11510,7 @@ __DEV__ && break; case 22: prevEffectDuration = finishedWork.stateNode; + nextCache = finishedWork.alternate; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -11537,7 +11540,7 @@ __DEV__ && )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + nextCache, finishedWork, prevEffectDuration ); @@ -11552,6 +11555,7 @@ __DEV__ && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -12281,6 +12285,7 @@ __DEV__ && lanes, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, @@ -12310,6 +12315,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -12330,6 +12336,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -12353,6 +12360,7 @@ __DEV__ && finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -12361,7 +12369,9 @@ __DEV__ && ) { root.timeoutHandle = -1; var subtreeFlags = finishedWork.subtreeFlags; - (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) && + (subtreeFlags = + subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) && + subtreeFlags && accumulateSuspenseyCommitOnFiber(finishedWork); commitRoot( root, @@ -12369,6 +12379,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -12493,6 +12504,7 @@ __DEV__ && workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -13106,6 +13118,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -13165,24 +13178,30 @@ __DEV__ && })) : ((root.callbackNode = null), (root.callbackPriority = 0)); commitStartTime = now(); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = currentUpdatePriority; + transitions = currentUpdatePriority; currentUpdatePriority = DiscreteEventPriority; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= CommitContext; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (currentUpdatePriority = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (currentUpdatePriority = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = PENDING_MUTATION_PHASE; flushMutationEffects(); + pendingEffectsStatus = PENDING_LAYOUT_PHASE; flushLayoutEffects(); } } @@ -13215,7 +13234,7 @@ __DEV__ && } } root.current = finishedWork; - pendingEffectsStatus = PENDING_LAYOUT_PHASE; + pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; } } function flushLayoutEffects() { @@ -13375,6 +13394,9 @@ __DEV__ && function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE && + ((pendingEffectsStatus = NO_PENDING_EFFECTS), + (pendingEffectsStatus = PENDING_LAYOUT_PHASE)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { @@ -13639,14 +13661,14 @@ __DEV__ && parentFiber, isInStrictMode ) { - if (0 !== (parentFiber.subtreeFlags & 33562624)) + if (0 !== (parentFiber.subtreeFlags & 67117056)) for (parentFiber = parentFiber.child; null !== parentFiber; ) { var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; isStrictModeFiber = isInStrictMode || isStrictModeFiber; 22 !== fiber.tag - ? fiber.flags & 33554432 + ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV( fiber, @@ -13668,7 +13690,7 @@ __DEV__ && root, fiber ) - : fiber.subtreeFlags & 33554432 && + : fiber.subtreeFlags & 67108864 && runWithFiberInDEV( fiber, recursivelyTraverseAndDoubleInvokeEffectsInDEV, @@ -13976,7 +13998,7 @@ __DEV__ && (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -14014,7 +14036,7 @@ __DEV__ && return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -14112,6 +14134,7 @@ __DEV__ && return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -14434,8 +14457,6 @@ __DEV__ && dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -14478,28 +14499,12 @@ __DEV__ && REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - disabledDepth = 0, - prevLog, - prevInfo, - prevWarn, - prevError, - prevGroup, - prevGroupCollapsed, - prevGroupEnd; - disabledLog.__reactDisabledLog = !0; - var prefix, - suffix, - reentry = !1; - var componentFrameCache = new ( - "function" === typeof WeakMap ? WeakMap : Map - )(); - var current = null, - isRendering = !1, - isArrayImpl = Array.isArray, TYPES = { CLIPPING_RECTANGLE: "ClippingRectangle", GROUP: "Group", @@ -14569,7 +14574,22 @@ __DEV__ && emptyContextObject = {}; Object.freeze(emptyContextObject); var objectIs = "function" === typeof Object.is ? Object.is : is, - CapturedStacks = new WeakMap(), + disabledDepth = 0, + prevLog, + prevInfo, + prevWarn, + prevError, + prevGroup, + prevGroupCollapsed, + prevGroupEnd; + disabledLog.__reactDisabledLog = !0; + var prefix, + suffix, + reentry = !1; + var componentFrameCache = new ( + "function" === typeof WeakMap ? WeakMap : Map + )(); + var CapturedStacks = new WeakMap(), contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), @@ -14643,6 +14663,8 @@ __DEV__ && var resumedCache = createCursor(null), transitionStack = createCursor(null), hasOwnProperty = Object.prototype.hasOwnProperty, + current = null, + isRendering = !1, ReactStrictModeWarnings = { recordUnsafeLifecycleWarnings: function () {}, flushPendingUnsafeLifecycleWarnings: function () {}, @@ -16253,32 +16275,6 @@ __DEV__ && var didWarnOnInvalidCallback = new Set(); Object.freeze(fakeInternalInstance); var classComponentUpdater = { - isMounted: function (component) { - var owner = current; - if (null !== owner && isRendering && 1 === owner.tag) { - var instance = owner.stateNode; - instance._warnedAboutRefsInRender || - error$jscomp$0( - "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", - getComponentNameFromFiber(owner) || "A component" - ); - instance._warnedAboutRefsInRender = !0; - } - component = component._reactInternals; - if (!component) return !1; - instance = owner = component; - if (component.alternate) for (; owner.return; ) owner = owner.return; - else { - var nextNode = owner; - do - (owner = nextNode), - 0 !== (owner.flags & 4098) && (instance = owner.return), - (nextNode = owner.return); - while (nextNode); - } - owner = 3 === owner.tag ? instance : null; - return owner === component; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(inst), @@ -16453,6 +16449,7 @@ __DEV__ && workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -16467,8 +16464,9 @@ __DEV__ && THROTTLED_COMMIT = 2, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, - PENDING_LAYOUT_PHASE = 2, - PENDING_PASSIVE_PHASE = 3, + PENDING_AFTER_MUTATION_PHASE = 2, + PENDING_LAYOUT_PHASE = 3, + PENDING_PASSIVE_PHASE = 4, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, @@ -16709,10 +16707,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-defffdbb-20250106", + version: "19.1.0-www-modern-98418e89-20250108", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-modern-98418e89-20250108" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16746,7 +16744,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-modern-defffdbb-20250106"; + exports.version = "19.1.0-www-modern-98418e89-20250108"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index fd75af1fb9517..02cb7e1441162 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -67,8 +67,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -85,8 +83,28 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), renameElementSymbol = dynamicFeatureFlags.renameElementSymbol, retryLaneExpirationMs = dynamicFeatureFlags.retryLaneExpirationMs, syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs, - transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, - REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs; +function isFiberSuspenseAndTimedOut(fiber) { + var memoizedState = fiber.memoizedState; + return ( + 13 === fiber.tag && + null !== memoizedState && + null === memoizedState.dehydrated + ); +} +function doesFiberContain(parentFiber, childFiber) { + for ( + var parentFiberAlternate = parentFiber.alternate; + null !== childFiber; + + ) { + if (childFiber === parentFiber || childFiber === parentFiberAlternate) + return !0; + childFiber = childFiber.return; + } + return !1; +} +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = renameElementSymbol ? Symbol.for("react.transitional.element") : REACT_LEGACY_ELEMENT_TYPE, @@ -107,6 +125,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator; function getIteratorFn(maybeIterable) { if (null === maybeIterable || "object" !== typeof maybeIterable) return null; @@ -136,6 +155,7 @@ function getComponentNameFromType(type) { return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -238,230 +258,9 @@ function getComponentNameFromFiber(fiber) { } return null; } -var ReactSharedInternals = - React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - prefix, - suffix; -function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; -} -var reentry = !1; -function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - reentry = !0; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$1) { - control = x$1; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$2) { - control = x$2; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - namePropDescriptor = RunInRootFrame = 0; - RunInRootFrame < sampleLines.length && - !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); - - ) - RunInRootFrame++; - for ( - ; - namePropDescriptor < controlLines.length && - !controlLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - if ( - RunInRootFrame === sampleLines.length || - namePropDescriptor === controlLines.length - ) - for ( - RunInRootFrame = sampleLines.length - 1, - namePropDescriptor = controlLines.length - 1; - 1 <= RunInRootFrame && - 0 <= namePropDescriptor && - sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; - - ) - namePropDescriptor--; - for ( - ; - 1 <= RunInRootFrame && 0 <= namePropDescriptor; - RunInRootFrame--, namePropDescriptor-- - ) - if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { - if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { - do - if ( - (RunInRootFrame--, - namePropDescriptor--, - 0 > namePropDescriptor || - sampleLines[RunInRootFrame] !== - controlLines[namePropDescriptor]) - ) { - var frame = - "\n" + - sampleLines[RunInRootFrame].replace(" at new ", " at "); - fn.displayName && - frame.includes("") && - (frame = frame.replace("", fn.displayName)); - return frame; - } - while (1 <= RunInRootFrame && 0 <= namePropDescriptor); - } - break; - } - } - } finally { - (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); - } - return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(previousPrepareStackTrace) - : ""; -} -function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } -} -function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do - (info += describeFiber(workInProgress)), - (workInProgress = workInProgress.return); - while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } -} -function getNearestMountedFiber(fiber) { - var node = fiber, - nearestMounted = fiber; - if (fiber.alternate) for (; node.return; ) node = node.return; - else { - fiber = node; - do - (node = fiber), - 0 !== (node.flags & 4098) && (nearestMounted = node.return), - (fiber = node.return); - while (fiber); - } - return 3 === node.tag ? nearestMounted : null; -} -function isFiberSuspenseAndTimedOut(fiber) { - var memoizedState = fiber.memoizedState; - return ( - 13 === fiber.tag && - null !== memoizedState && - null === memoizedState.dehydrated - ); -} -function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; -} var isArrayImpl = Array.isArray, + ReactSharedInternals = + React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, TYPES = { CLIPPING_RECTANGLE: "ClippingRectangle", GROUP: "Group", @@ -701,18 +500,18 @@ function markRootFinished( 0 < remainingLanes; ) { - var index$7 = 31 - clz32(remainingLanes), - lane = 1 << index$7; - entanglements[index$7] = 0; - expirationTimes[index$7] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$7]; + var index$5 = 31 - clz32(remainingLanes), + lane = 1 << index$5; + entanglements[index$5] = 0; + expirationTimes[index$5] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$5]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$7] = null, index$7 = 0; - index$7 < hiddenUpdatesForLane.length; - index$7++ + hiddenUpdates[index$5] = null, index$5 = 0; + index$5 < hiddenUpdatesForLane.length; + index$5++ ) { - var update = hiddenUpdatesForLane[index$7]; + var update = hiddenUpdatesForLane[index$5]; null !== update && (update.lane &= -536870913); } remainingLanes &= ~lane; @@ -738,21 +537,21 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$8 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$8; - (lane & entangledLanes) | (root[index$8] & entangledLanes) && - (root[index$8] |= entangledLanes); + var index$6 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$6; + (lane & entangledLanes) | (root[index$6] & entangledLanes) && + (root[index$6] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$10 = 31 - clz32(lanes), - lane = 1 << index$10; - index$10 = root.transitionLanes[index$10]; - null !== index$10 && - index$10.forEach(function (transition) { + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + index$8 = root.transitionLanes[index$8]; + null !== index$8 && + index$8.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -762,10 +561,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$11 = 31 - clz32(lanes), - lane = 1 << index$11; - null !== root.transitionLanes[index$11] && - (root.transitionLanes[index$11] = null); + var index$9 = 31 - clz32(lanes), + lane = 1 << index$9; + null !== root.transitionLanes[index$9] && + (root.transitionLanes[index$9] = null); lanes &= ~lane; } } @@ -1048,7 +847,194 @@ function is(x, y) { return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); } var objectIs = "function" === typeof Object.is ? Object.is : is, - CapturedStacks = new WeakMap(); + prefix, + suffix; +function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; +} +var reentry = !1; +function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + reentry = !0; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$10) { + control = x$10; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$11) { + control = x$11; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + namePropDescriptor = RunInRootFrame = 0; + RunInRootFrame < sampleLines.length && + !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); + + ) + RunInRootFrame++; + for ( + ; + namePropDescriptor < controlLines.length && + !controlLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + if ( + RunInRootFrame === sampleLines.length || + namePropDescriptor === controlLines.length + ) + for ( + RunInRootFrame = sampleLines.length - 1, + namePropDescriptor = controlLines.length - 1; + 1 <= RunInRootFrame && + 0 <= namePropDescriptor && + sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; + + ) + namePropDescriptor--; + for ( + ; + 1 <= RunInRootFrame && 0 <= namePropDescriptor; + RunInRootFrame--, namePropDescriptor-- + ) + if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { + if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { + do + if ( + (RunInRootFrame--, + namePropDescriptor--, + 0 > namePropDescriptor || + sampleLines[RunInRootFrame] !== + controlLines[namePropDescriptor]) + ) { + var frame = + "\n" + + sampleLines[RunInRootFrame].replace(" at new ", " at "); + fn.displayName && + frame.includes("") && + (frame = frame.replace("", fn.displayName)); + return frame; + } + while (1 <= RunInRootFrame && 0 <= namePropDescriptor); + } + break; + } + } + } finally { + (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); + } + return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(previousPrepareStackTrace) + : ""; +} +function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } +} +function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do + (info += describeFiber(workInProgress)), + (workInProgress = workInProgress.return); + while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } +} +var CapturedStacks = new WeakMap(); function createCapturedValueAtFiber(value, source) { if ("object" === typeof value && null !== value) { var existing = CapturedStacks.get(value); @@ -1337,8 +1323,6 @@ function ensureRootIsScheduled(root) { didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleCallback$3(ImmediatePriority, processRootScheduleInImmediateTask)); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -1416,12 +1400,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$5 = 31 - clz32(pendingLanes), - lane = 1 << index$5, - expirationTime = expirationTimes[index$5]; + var index$3 = 31 - clz32(pendingLanes), + lane = 1 << index$3, + expirationTime = expirationTimes[index$3]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$5] = computeExpirationTime(lane, currentTime); + expirationTimes[index$3] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -1481,7 +1465,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { - if (0 !== pendingEffectsStatus && 3 !== pendingEffectsStatus) + if (0 !== pendingEffectsStatus && 4 !== pendingEffectsStatus) return (root.callbackNode = null), (root.callbackPriority = 0), null; var originalCallbackNode = root.callbackNode; if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode) @@ -3535,16 +3519,16 @@ function createChildReconciler(shouldTrackSideEffects) { return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -4250,11 +4234,6 @@ function applyDerivedStateFromProps( (workInProgress.updateQueue.baseState = getDerivedStateFromProps); } var classComponentUpdater = { - isMounted: function (component) { - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), @@ -5581,7 +5560,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { mode: "hidden", children: nextProps.children }); - nextProps.subtreeFlags = didSuspend.subtreeFlags & 29360128; + nextProps.subtreeFlags = didSuspend.subtreeFlags & 65011712; null !== currentFallbackChildFragment ? (nextPrimaryChildren = createWorkInProgress( currentFallbackChildFragment, @@ -6497,8 +6476,8 @@ function bubbleProperties(completedWork) { if (didBailout) for (var child$89 = completedWork.child; null !== child$89; ) (newChildLanes |= child$89.lanes | child$89.childLanes), - (subtreeFlags |= child$89.subtreeFlags & 29360128), - (subtreeFlags |= child$89.flags & 29360128), + (subtreeFlags |= child$89.subtreeFlags & 65011712), + (subtreeFlags |= child$89.flags & 65011712), (child$89.return = completedWork), (child$89 = child$89.sibling); else @@ -6866,6 +6845,8 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error(formatProdErrorMessage(156, workInProgress.tag)); } @@ -8130,6 +8111,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -8554,6 +8536,7 @@ function commitPassiveMountOnFiber( break; case 22: nextCache = finishedWork.stateNode; + var current$123 = finishedWork.alternate; null !== finishedWork.memoizedState ? nextCache._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -8580,7 +8563,7 @@ function commitPassiveMountOnFiber( )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + current$123, finishedWork, nextCache ); @@ -8595,6 +8578,7 @@ function commitPassiveMountOnFiber( flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -9018,6 +9002,7 @@ var DefaultAsyncDispatcher = { workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -9141,11 +9126,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$9 = 31 - clz32(lane), - transitions = transitionLanesMap[index$9]; + index$7 = 31 - clz32(lane), + transitions = transitionLanesMap[index$7]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$9] = transitions; + transitionLanesMap[index$7] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -9286,6 +9271,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -9306,6 +9292,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -9323,6 +9310,7 @@ function commitRootWhenReady( finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -9331,7 +9319,9 @@ function commitRootWhenReady( ) { root.timeoutHandle = -1; var subtreeFlags = finishedWork.subtreeFlags; - (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) && + (subtreeFlags = + subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) && + subtreeFlags && accumulateSuspenseyCommitOnFiber(finishedWork); commitRoot( root, @@ -9339,6 +9329,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -9404,9 +9395,9 @@ function markRootSuspended( (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; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4; + didAttemptEntireTree[index$4] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -9460,6 +9451,7 @@ function prepareFreshStack(root, lanes) { workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -9468,9 +9460,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$4 = 31 - clz32(allEntangledLanes), - lane = 1 << index$4; - lanes |= root[index$4]; + var index$2 = 31 - clz32(allEntangledLanes), + lane = 1 << index$2; + lanes |= root[index$2]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -9917,6 +9909,7 @@ function commitRoot( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -9958,24 +9951,30 @@ function commitRoot( return null; })) : ((root.callbackNode = null), (root.callbackPriority = 0)); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = currentUpdatePriority; + transitions = currentUpdatePriority; currentUpdatePriority = 2; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= 4; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (currentUpdatePriority = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (currentUpdatePriority = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = 1; flushMutationEffects(); + pendingEffectsStatus = 3; flushLayoutEffects(); } } @@ -10005,7 +10004,7 @@ function flushMutationEffects() { } } function flushLayoutEffects() { - if (2 === pendingEffectsStatus) { + if (3 === pendingEffectsStatus) { pendingEffectsStatus = 0; var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, @@ -10031,7 +10030,7 @@ function flushLayoutEffects() { requestPaint(); 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) - ? (pendingEffectsStatus = 3) + ? (pendingEffectsStatus = 4) : ((pendingEffectsStatus = 0), (pendingEffectsRoot = null), releaseRootPooledCache(root, root.pendingLanes)); @@ -10093,10 +10092,12 @@ function releaseRootPooledCache(root, remainingLanes) { function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + 2 === pendingEffectsStatus && + ((pendingEffectsStatus = 0), (pendingEffectsStatus = 3)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { - if (3 !== pendingEffectsStatus) return !1; + if (4 !== pendingEffectsStatus) return !1; var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; pendingEffectsRemainingLanes = 0; @@ -10366,7 +10367,7 @@ function createWorkInProgress(current, pendingProps) { (workInProgress.flags = 0), (workInProgress.subtreeFlags = 0), (workInProgress.deletions = null)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -10385,7 +10386,7 @@ function createWorkInProgress(current, pendingProps) { return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -10464,6 +10465,7 @@ function createFiberFromTypeAndProps( return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -10651,11 +10653,6 @@ function updateContainerSync(element, container, parentComponent, callback) { a: if (parentComponent) { parentComponent = parentComponent._reactInternals; b: { - if ( - getNearestMountedFiber(parentComponent) !== parentComponent || - 1 !== parentComponent.tag - ) - throw Error(formatProdErrorMessage(170)); var JSCompiler_inline_result = parentComponent; do { switch (JSCompiler_inline_result.tag) { @@ -10829,24 +10826,24 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component); -var internals$jscomp$inline_1510 = { +var internals$jscomp$inline_1517 = { bundleType: 0, - version: "19.1.0-www-classic-defffdbb-20250106", + version: "19.1.0-www-classic-98418e89-20250108", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-classic-98418e89-20250108" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1511 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1518 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1511.isDisabled && - hook$jscomp$inline_1511.supportsFiber + !hook$jscomp$inline_1518.isDisabled && + hook$jscomp$inline_1518.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1511.inject( - internals$jscomp$inline_1510 + (rendererID = hook$jscomp$inline_1518.inject( + internals$jscomp$inline_1517 )), - (injectedHook = hook$jscomp$inline_1511); + (injectedHook = hook$jscomp$inline_1518); } catch (err) {} } var Path = Mode$1.Path; @@ -10860,4 +10857,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-classic-defffdbb-20250106"; +exports.version = "19.1.0-www-classic-98418e89-20250108"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 5490f3e049e97..02917fe2ac7c9 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -65,8 +65,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -83,8 +81,28 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), renameElementSymbol = dynamicFeatureFlags.renameElementSymbol, retryLaneExpirationMs = dynamicFeatureFlags.retryLaneExpirationMs, syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs, - transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, - REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs; +function isFiberSuspenseAndTimedOut(fiber) { + var memoizedState = fiber.memoizedState; + return ( + 13 === fiber.tag && + null !== memoizedState && + null === memoizedState.dehydrated + ); +} +function doesFiberContain(parentFiber, childFiber) { + for ( + var parentFiberAlternate = parentFiber.alternate; + null !== childFiber; + + ) { + if (childFiber === parentFiber || childFiber === parentFiberAlternate) + return !0; + childFiber = childFiber.return; + } + return !1; +} +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = renameElementSymbol ? Symbol.for("react.transitional.element") : REACT_LEGACY_ELEMENT_TYPE, @@ -105,6 +123,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator; function getIteratorFn(maybeIterable) { if (null === maybeIterable || "object" !== typeof maybeIterable) return null; @@ -134,6 +153,7 @@ function getComponentNameFromType(type) { return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -173,216 +193,9 @@ function getComponentNameFromType(type) { } return null; } -var ReactSharedInternals = - React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - prefix, - suffix; -function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; -} -var reentry = !1; -function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - reentry = !0; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$1) { - control = x$1; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$2) { - control = x$2; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - namePropDescriptor = RunInRootFrame = 0; - RunInRootFrame < sampleLines.length && - !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); - - ) - RunInRootFrame++; - for ( - ; - namePropDescriptor < controlLines.length && - !controlLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - if ( - RunInRootFrame === sampleLines.length || - namePropDescriptor === controlLines.length - ) - for ( - RunInRootFrame = sampleLines.length - 1, - namePropDescriptor = controlLines.length - 1; - 1 <= RunInRootFrame && - 0 <= namePropDescriptor && - sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; - - ) - namePropDescriptor--; - for ( - ; - 1 <= RunInRootFrame && 0 <= namePropDescriptor; - RunInRootFrame--, namePropDescriptor-- - ) - if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { - if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { - do - if ( - (RunInRootFrame--, - namePropDescriptor--, - 0 > namePropDescriptor || - sampleLines[RunInRootFrame] !== - controlLines[namePropDescriptor]) - ) { - var frame = - "\n" + - sampleLines[RunInRootFrame].replace(" at new ", " at "); - fn.displayName && - frame.includes("") && - (frame = frame.replace("", fn.displayName)); - return frame; - } - while (1 <= RunInRootFrame && 0 <= namePropDescriptor); - } - break; - } - } - } finally { - (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); - } - return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(previousPrepareStackTrace) - : ""; -} -function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } -} -function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do - (info += describeFiber(workInProgress)), - (workInProgress = workInProgress.return); - while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } -} -function isFiberSuspenseAndTimedOut(fiber) { - var memoizedState = fiber.memoizedState; - return ( - 13 === fiber.tag && - null !== memoizedState && - null === memoizedState.dehydrated - ); -} -function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; -} var isArrayImpl = Array.isArray, + ReactSharedInternals = + React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, TYPES = { CLIPPING_RECTANGLE: "ClippingRectangle", GROUP: "Group", @@ -622,18 +435,18 @@ function markRootFinished( 0 < remainingLanes; ) { - var index$7 = 31 - clz32(remainingLanes), - lane = 1 << index$7; - entanglements[index$7] = 0; - expirationTimes[index$7] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$7]; + var index$5 = 31 - clz32(remainingLanes), + lane = 1 << index$5; + entanglements[index$5] = 0; + expirationTimes[index$5] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$5]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$7] = null, index$7 = 0; - index$7 < hiddenUpdatesForLane.length; - index$7++ + hiddenUpdates[index$5] = null, index$5 = 0; + index$5 < hiddenUpdatesForLane.length; + index$5++ ) { - var update = hiddenUpdatesForLane[index$7]; + var update = hiddenUpdatesForLane[index$5]; null !== update && (update.lane &= -536870913); } remainingLanes &= ~lane; @@ -659,21 +472,21 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$8 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$8; - (lane & entangledLanes) | (root[index$8] & entangledLanes) && - (root[index$8] |= entangledLanes); + var index$6 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$6; + (lane & entangledLanes) | (root[index$6] & entangledLanes) && + (root[index$6] |= entangledLanes); rootEntangledLanes &= ~lane; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$10 = 31 - clz32(lanes), - lane = 1 << index$10; - index$10 = root.transitionLanes[index$10]; - null !== index$10 && - index$10.forEach(function (transition) { + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + index$8 = root.transitionLanes[index$8]; + null !== index$8 && + index$8.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -683,10 +496,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$11 = 31 - clz32(lanes), - lane = 1 << index$11; - null !== root.transitionLanes[index$11] && - (root.transitionLanes[index$11] = null); + var index$9 = 31 - clz32(lanes), + lane = 1 << index$9; + null !== root.transitionLanes[index$9] && + (root.transitionLanes[index$9] = null); lanes &= ~lane; } } @@ -895,7 +708,194 @@ function is(x, y) { return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); } var objectIs = "function" === typeof Object.is ? Object.is : is, - CapturedStacks = new WeakMap(); + prefix, + suffix; +function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; +} +var reentry = !1; +function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + reentry = !0; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$10) { + control = x$10; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$11) { + control = x$11; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + namePropDescriptor = RunInRootFrame = 0; + RunInRootFrame < sampleLines.length && + !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); + + ) + RunInRootFrame++; + for ( + ; + namePropDescriptor < controlLines.length && + !controlLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + if ( + RunInRootFrame === sampleLines.length || + namePropDescriptor === controlLines.length + ) + for ( + RunInRootFrame = sampleLines.length - 1, + namePropDescriptor = controlLines.length - 1; + 1 <= RunInRootFrame && + 0 <= namePropDescriptor && + sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; + + ) + namePropDescriptor--; + for ( + ; + 1 <= RunInRootFrame && 0 <= namePropDescriptor; + RunInRootFrame--, namePropDescriptor-- + ) + if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { + if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { + do + if ( + (RunInRootFrame--, + namePropDescriptor--, + 0 > namePropDescriptor || + sampleLines[RunInRootFrame] !== + controlLines[namePropDescriptor]) + ) { + var frame = + "\n" + + sampleLines[RunInRootFrame].replace(" at new ", " at "); + fn.displayName && + frame.includes("") && + (frame = frame.replace("", fn.displayName)); + return frame; + } + while (1 <= RunInRootFrame && 0 <= namePropDescriptor); + } + break; + } + } + } finally { + (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); + } + return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(previousPrepareStackTrace) + : ""; +} +function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } +} +function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do + (info += describeFiber(workInProgress)), + (workInProgress = workInProgress.return); + while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } +} +var CapturedStacks = new WeakMap(); function createCapturedValueAtFiber(value, source) { if ("object" === typeof value && null !== value) { var existing = CapturedStacks.get(value); @@ -1184,8 +1184,6 @@ function ensureRootIsScheduled(root) { didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleCallback$3(ImmediatePriority, processRootScheduleInImmediateTask)); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -1263,12 +1261,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$5 = 31 - clz32(pendingLanes), - lane = 1 << index$5, - expirationTime = expirationTimes[index$5]; + var index$3 = 31 - clz32(pendingLanes), + lane = 1 << index$3, + expirationTime = expirationTimes[index$3]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$5] = computeExpirationTime(lane, currentTime); + expirationTimes[index$3] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -1328,7 +1326,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { - if (0 !== pendingEffectsStatus && 3 !== pendingEffectsStatus) + if (0 !== pendingEffectsStatus && 4 !== pendingEffectsStatus) return (root.callbackNode = null), (root.callbackPriority = 0), null; var originalCallbackNode = root.callbackNode; if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode) @@ -3382,16 +3380,16 @@ function createChildReconciler(shouldTrackSideEffects) { return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -4097,27 +4095,6 @@ function applyDerivedStateFromProps( (workInProgress.updateQueue.baseState = getDerivedStateFromProps); } var classComponentUpdater = { - isMounted: function (component) { - component = component._reactInternals; - if (!component) return !1; - var JSCompiler_inline_result; - var nearestMounted = (JSCompiler_inline_result = component); - if (component.alternate) - for (; JSCompiler_inline_result.return; ) - JSCompiler_inline_result = JSCompiler_inline_result.return; - else { - var nextNode = JSCompiler_inline_result; - do - (JSCompiler_inline_result = nextNode), - 0 !== (JSCompiler_inline_result.flags & 4098) && - (nearestMounted = JSCompiler_inline_result.return), - (nextNode = JSCompiler_inline_result.return); - while (nextNode); - } - JSCompiler_inline_result = - 3 === JSCompiler_inline_result.tag ? nearestMounted : null; - return JSCompiler_inline_result === component; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), @@ -5367,7 +5344,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { mode: "hidden", children: nextProps.children }); - nextProps.subtreeFlags = didSuspend.subtreeFlags & 29360128; + nextProps.subtreeFlags = didSuspend.subtreeFlags & 65011712; null !== currentFallbackChildFragment ? (nextPrimaryChildren = createWorkInProgress( currentFallbackChildFragment, @@ -6276,8 +6253,8 @@ function bubbleProperties(completedWork) { if (didBailout) for (var child$89 = completedWork.child; null !== child$89; ) (newChildLanes |= child$89.lanes | child$89.childLanes), - (subtreeFlags |= child$89.subtreeFlags & 29360128), - (subtreeFlags |= child$89.flags & 29360128), + (subtreeFlags |= child$89.subtreeFlags & 65011712), + (subtreeFlags |= child$89.flags & 65011712), (child$89.return = completedWork), (child$89 = child$89.sibling); else @@ -6638,6 +6615,8 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error(formatProdErrorMessage(156, workInProgress.tag)); } @@ -7890,6 +7869,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -8314,6 +8294,7 @@ function commitPassiveMountOnFiber( break; case 22: nextCache = finishedWork.stateNode; + var current$123 = finishedWork.alternate; null !== finishedWork.memoizedState ? nextCache._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -8340,7 +8321,7 @@ function commitPassiveMountOnFiber( )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + current$123, finishedWork, nextCache ); @@ -8355,6 +8336,7 @@ function commitPassiveMountOnFiber( flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -8778,6 +8760,7 @@ var DefaultAsyncDispatcher = { workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -8901,11 +8884,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$9 = 31 - clz32(lane), - transitions = transitionLanesMap[index$9]; + index$7 = 31 - clz32(lane), + transitions = transitionLanesMap[index$7]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$9] = transitions; + transitionLanesMap[index$7] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -9046,6 +9029,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -9066,6 +9050,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -9083,6 +9068,7 @@ function commitRootWhenReady( finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -9091,7 +9077,9 @@ function commitRootWhenReady( ) { root.timeoutHandle = -1; var subtreeFlags = finishedWork.subtreeFlags; - (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) && + (subtreeFlags = + subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) && + subtreeFlags && accumulateSuspenseyCommitOnFiber(finishedWork); commitRoot( root, @@ -9099,6 +9087,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -9164,9 +9153,9 @@ function markRootSuspended( (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; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4; + didAttemptEntireTree[index$4] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -9220,6 +9209,7 @@ function prepareFreshStack(root, lanes) { workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -9228,9 +9218,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$4 = 31 - clz32(allEntangledLanes), - lane = 1 << index$4; - lanes |= root[index$4]; + var index$2 = 31 - clz32(allEntangledLanes), + lane = 1 << index$2; + lanes |= root[index$2]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -9673,6 +9663,7 @@ function commitRoot( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -9714,24 +9705,30 @@ function commitRoot( return null; })) : ((root.callbackNode = null), (root.callbackPriority = 0)); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = currentUpdatePriority; + transitions = currentUpdatePriority; currentUpdatePriority = 2; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= 4; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (currentUpdatePriority = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (currentUpdatePriority = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = 1; flushMutationEffects(); + pendingEffectsStatus = 3; flushLayoutEffects(); } } @@ -9761,7 +9758,7 @@ function flushMutationEffects() { } } function flushLayoutEffects() { - if (2 === pendingEffectsStatus) { + if (3 === pendingEffectsStatus) { pendingEffectsStatus = 0; var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, @@ -9787,7 +9784,7 @@ function flushLayoutEffects() { requestPaint(); 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) - ? (pendingEffectsStatus = 3) + ? (pendingEffectsStatus = 4) : ((pendingEffectsStatus = 0), (pendingEffectsRoot = null), releaseRootPooledCache(root, root.pendingLanes)); @@ -9849,10 +9846,12 @@ function releaseRootPooledCache(root, remainingLanes) { function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + 2 === pendingEffectsStatus && + ((pendingEffectsStatus = 0), (pendingEffectsStatus = 3)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { - if (3 !== pendingEffectsStatus) return !1; + if (4 !== pendingEffectsStatus) return !1; var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; pendingEffectsRemainingLanes = 0; @@ -10122,7 +10121,7 @@ function createWorkInProgress(current, pendingProps) { (workInProgress.flags = 0), (workInProgress.subtreeFlags = 0), (workInProgress.deletions = null)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -10141,7 +10140,7 @@ function createWorkInProgress(current, pendingProps) { return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -10220,6 +10219,7 @@ function createFiberFromTypeAndProps( return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -10545,24 +10545,24 @@ var slice = Array.prototype.slice, }; return Text; })(React.Component); -var internals$jscomp$inline_1489 = { +var internals$jscomp$inline_1490 = { bundleType: 0, - version: "19.1.0-www-modern-defffdbb-20250106", + version: "19.1.0-www-modern-98418e89-20250108", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-modern-98418e89-20250108" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1490 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1491 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1490.isDisabled && - hook$jscomp$inline_1490.supportsFiber + !hook$jscomp$inline_1491.isDisabled && + hook$jscomp$inline_1491.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1490.inject( - internals$jscomp$inline_1489 + (rendererID = hook$jscomp$inline_1491.inject( + internals$jscomp$inline_1490 )), - (injectedHook = hook$jscomp$inline_1490); + (injectedHook = hook$jscomp$inline_1491); } catch (err) {} } var Path = Mode$1.Path; @@ -10576,4 +10576,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-modern-defffdbb-20250106"; +exports.version = "19.1.0-www-modern-98418e89-20250108"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 4c37069165dc7..41f5e7f088a03 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -115,6 +115,144 @@ __DEV__ && }); return array.sort().join(", "); } + function getNearestMountedFiber(fiber) { + var node = fiber, + nearestMounted = fiber; + if (fiber.alternate) for (; node.return; ) node = node.return; + else { + fiber = node; + do + (node = fiber), + 0 !== (node.flags & 4098) && (nearestMounted = node.return), + (fiber = node.return); + while (fiber); + } + return 3 === node.tag ? nearestMounted : null; + } + function getSuspenseInstanceFromFiber(fiber) { + if (13 === fiber.tag) { + var suspenseState = fiber.memoizedState; + null === suspenseState && + ((fiber = fiber.alternate), + null !== fiber && (suspenseState = fiber.memoizedState)); + if (null !== suspenseState) return suspenseState.dehydrated; + } + return null; + } + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) + throw Error("Unable to find node on an unmounted component."); + } + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + alternate = getNearestMountedFiber(fiber); + if (null === alternate) + throw Error("Unable to find node on an unmounted component."); + return alternate !== fiber ? null : fiber; + } + for (var a = fiber, b = alternate; ; ) { + var parentA = a.return; + if (null === parentA) break; + var parentB = parentA.alternate; + if (null === parentB) { + b = parentA.return; + if (null !== b) { + a = b; + continue; + } + break; + } + if (parentA.child === parentB.child) { + for (parentB = parentA.child; parentB; ) { + if (parentB === a) return assertIsMounted(parentA), fiber; + if (parentB === b) return assertIsMounted(parentA), alternate; + parentB = parentB.sibling; + } + throw Error("Unable to find node on an unmounted component."); + } + if (a.return !== b.return) (a = parentA), (b = parentB); + else { + for (var didFindChild = !1, _child = parentA.child; _child; ) { + if (_child === a) { + didFindChild = !0; + a = parentA; + b = parentB; + break; + } + if (_child === b) { + didFindChild = !0; + b = parentA; + a = parentB; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + for (_child = parentB.child; _child; ) { + if (_child === a) { + didFindChild = !0; + a = parentB; + b = parentA; + break; + } + if (_child === b) { + didFindChild = !0; + b = parentB; + a = parentA; + break; + } + _child = _child.sibling; + } + if (!didFindChild) + throw Error( + "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." + ); + } + } + if (a.alternate !== b) + throw Error( + "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." + ); + } + if (3 !== a.tag) + throw Error("Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + function findCurrentHostFiber(parent) { + parent = findCurrentFiberUsingSlowPath(parent); + return null !== parent ? findCurrentHostFiberImpl(parent) : null; + } + function findCurrentHostFiberImpl(node) { + var tag = node.tag; + if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; + for (node = node.child; null !== node; ) { + tag = findCurrentHostFiberImpl(node); + if (null !== tag) return tag; + node = node.sibling; + } + return null; + } + function isFiberSuspenseAndTimedOut(fiber) { + var memoizedState = fiber.memoizedState; + return ( + 13 === fiber.tag && + null !== memoizedState && + null === memoizedState.dehydrated + ); + } + function doesFiberContain(parentFiber, childFiber) { + for ( + var parentFiberAlternate = parentFiber.alternate; + null !== childFiber; + + ) { + if (childFiber === parentFiber || childFiber === parentFiberAlternate) + return !0; + childFiber = childFiber.return; + } + return !1; + } function warn(format) { if (!suppressWarning) { for ( @@ -152,723 +290,57 @@ __DEV__ && args.unshift(!1); warningWWW.apply(null, args); } - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) - return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; + function injectInternals(internals) { + if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled) return !0; + if (!hook.supportsFiber) + return ( + error$jscomp$0( + "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" + ), + !0 + ); + try { + (rendererID = hook.inject(internals)), (injectedHook = hook); + } catch (err) { + error$jscomp$0("React instrumentation encountered an error: %s.", err); } - if ("object" === typeof type) - switch ( - ("number" === typeof type.tag && + return hook.checkDCE ? !0 : !1; + } + function onCommitRoot$1(root, eventPriority) { + if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) + try { + var didError = 128 === (root.current.flags & 128); + switch (eventPriority) { + case DiscreteEventPriority: + var schedulerPriority = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriority = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriority = NormalPriority$1; + break; + case IdleEventPriority: + schedulerPriority = IdlePriority; + break; + default: + schedulerPriority = NormalPriority$1; + } + injectedHook.onCommitFiberRoot( + rendererID, + root, + schedulerPriority, + didError + ); + } catch (err) { + hasLoggedError || + ((hasLoggedError = !0), error$jscomp$0( - "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." - ), - type.$$typeof) - ) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; - } - function getComponentNameFromOwner(owner) { - return "number" === typeof owner.tag - ? getComponentNameFromFiber(owner) - : "string" === typeof owner.name - ? owner.name - : null; - } - function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; - case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return ( - (fiber = type.render), - (fiber = fiber.displayName || fiber.name || ""), - type.displayName || - ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") - ); - case 7: - return "Fragment"; - case 26: - case 27: - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 14: - case 15: - if ("function" === typeof type) - return type.displayName || type.name || null; - if ("string" === typeof type) return type; - break; - case 23: - return "LegacyHidden"; - case 29: - type = fiber._debugInfo; - if (null != type) - for (var i = type.length - 1; 0 <= i; i--) - if ("string" === typeof type[i].name) return type[i].name; - if (null !== fiber.return) - return getComponentNameFromFiber(fiber.return); - } - return null; - } - function disabledLog() {} - function disableLogs() { - if (0 === disabledDepth) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: !0, - enumerable: !0, - value: disabledLog, - writable: !0 - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; - } - function reenableLogs() { - disabledDepth--; - if (0 === disabledDepth) { - var props = { configurable: !0, enumerable: !0, writable: !0 }; - Object.defineProperties(console, { - log: assign({}, props, { value: prevLog }), - info: assign({}, props, { value: prevInfo }), - warn: assign({}, props, { value: prevWarn }), - error: assign({}, props, { value: prevError }), - group: assign({}, props, { value: prevGroup }), - groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), - groupEnd: assign({}, props, { value: prevGroupEnd }) - }); - } - 0 > disabledDepth && - error$jscomp$0( - "disabledDepth fell below zero. This is a bug in React. Please file an issue." - ); - } - function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - var frame = componentFrameCache.get(fn); - if (void 0 !== frame) return frame; - reentry = !0; - frame = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher = null; - previousDispatcher = ReactSharedInternals.H; - ReactSharedInternals.H = null; - disableLogs(); - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$0) { - control = x$0; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$1) { - control = x$1; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = - RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - _RunInRootFrame$Deter = namePropDescriptor = 0; - namePropDescriptor < sampleLines.length && - !sampleLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - for ( - ; - _RunInRootFrame$Deter < controlLines.length && - !controlLines[_RunInRootFrame$Deter].includes( - "DetermineComponentFrameRoot" - ); - - ) - _RunInRootFrame$Deter++; - if ( - namePropDescriptor === sampleLines.length || - _RunInRootFrame$Deter === controlLines.length - ) - for ( - namePropDescriptor = sampleLines.length - 1, - _RunInRootFrame$Deter = controlLines.length - 1; - 1 <= namePropDescriptor && - 0 <= _RunInRootFrame$Deter && - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]; - - ) - _RunInRootFrame$Deter--; - for ( - ; - 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; - namePropDescriptor--, _RunInRootFrame$Deter-- - ) - if ( - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter] - ) { - if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { - do - if ( - (namePropDescriptor--, - _RunInRootFrame$Deter--, - 0 > _RunInRootFrame$Deter || - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]) - ) { - var _frame = - "\n" + - sampleLines[namePropDescriptor].replace( - " at new ", - " at " - ); - fn.displayName && - _frame.includes("") && - (_frame = _frame.replace("", fn.displayName)); - "function" === typeof fn && - componentFrameCache.set(fn, _frame); - return _frame; - } - while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); - } - break; - } - } - } finally { - (reentry = !1), - (ReactSharedInternals.H = previousDispatcher), - reenableLogs(), - (Error.prepareStackTrace = frame); - } - sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(sampleLines) - : ""; - "function" === typeof fn && componentFrameCache.set(fn, sampleLines); - return sampleLines; - } - function formatOwnerStack(error) { - var prevPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - error = error.stack; - Error.prepareStackTrace = prevPrepareStackTrace; - error.startsWith("Error: react-stack-top-frame\n") && - (error = error.slice(29)); - prevPrepareStackTrace = error.indexOf("\n"); - -1 !== prevPrepareStackTrace && - (error = error.slice(prevPrepareStackTrace + 1)); - prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); - -1 !== prevPrepareStackTrace && - (prevPrepareStackTrace = error.lastIndexOf( - "\n", - prevPrepareStackTrace - )); - if (-1 !== prevPrepareStackTrace) - error = error.slice(0, prevPrepareStackTrace); - else return ""; - return error; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do { - info += describeFiber(workInProgress); - var debugInfo = workInProgress._debugInfo; - if (debugInfo) - for (var i = debugInfo.length - 1; 0 <= i; i--) { - var entry = debugInfo[i]; - if ("string" === typeof entry.name) { - var JSCompiler_temp_const = info, - env = entry.env; - var JSCompiler_inline_result = describeBuiltInComponentFrame( - entry.name + (env ? " [" + env + "]" : "") - ); - info = JSCompiler_temp_const + JSCompiler_inline_result; - } - } - workInProgress = workInProgress.return; - } while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function describeFunctionComponentFrameWithoutLineNumber(fn) { - return (fn = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(fn) - : ""; - } - function getOwnerStackByFiberInDev(workInProgress) { - if (!enableOwnerStacks) return ""; - try { - var info = ""; - 6 === workInProgress.tag && (workInProgress = workInProgress.return); - switch (workInProgress.tag) { - case 26: - case 27: - case 5: - info += describeBuiltInComponentFrame(workInProgress.type); - break; - case 13: - info += describeBuiltInComponentFrame("Suspense"); - break; - case 19: - info += describeBuiltInComponentFrame("SuspenseList"); - break; - case 0: - case 15: - case 1: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type - )); - break; - case 11: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type.render - )); - } - for (; workInProgress; ) - if ("number" === typeof workInProgress.tag) { - var fiber = workInProgress; - workInProgress = fiber._debugOwner; - var debugStack = fiber._debugStack; - workInProgress && - debugStack && - ("string" !== typeof debugStack && - (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), - "" !== debugStack && (info += "\n" + debugStack)); - } else if (null != workInProgress.debugStack) { - var ownerStack = workInProgress.debugStack; - (workInProgress = workInProgress.owner) && - ownerStack && - (info += "\n" + formatOwnerStack(ownerStack)); - } else break; - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function getCurrentFiberOwnerNameInDevOrNull() { - if (null === current) return null; - var owner = current._debugOwner; - return null != owner ? getComponentNameFromOwner(owner) : null; - } - function getCurrentFiberStackInDev() { - return null === current - ? "" - : enableOwnerStacks - ? getOwnerStackByFiberInDev(current) - : getStackByFiberInDevAndProd(current); - } - function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { - var previousFiber = current; - ReactSharedInternals.getCurrentStack = - null === fiber ? null : getCurrentFiberStackInDev; - isRendering = !1; - current = fiber; - try { - return enableOwnerStacks && null !== fiber && fiber._debugTask - ? fiber._debugTask.run( - callback.bind(null, arg0, arg1, arg2, arg3, arg4) - ) - : callback(arg0, arg1, arg2, arg3, arg4); - } finally { - current = previousFiber; - } - throw Error( - "runWithFiberInDEV should never be called in production. This is a bug in React." - ); - } - function getNearestMountedFiber(fiber) { - var node = fiber, - nearestMounted = fiber; - if (fiber.alternate) for (; node.return; ) node = node.return; - else { - fiber = node; - do - (node = fiber), - 0 !== (node.flags & 4098) && (nearestMounted = node.return), - (fiber = node.return); - while (fiber); - } - return 3 === node.tag ? nearestMounted : null; - } - function getSuspenseInstanceFromFiber(fiber) { - if (13 === fiber.tag) { - var suspenseState = fiber.memoizedState; - null === suspenseState && - ((fiber = fiber.alternate), - null !== fiber && (suspenseState = fiber.memoizedState)); - if (null !== suspenseState) return suspenseState.dehydrated; - } - return null; - } - function assertIsMounted(fiber) { - if (getNearestMountedFiber(fiber) !== fiber) - throw Error("Unable to find node on an unmounted component."); - } - function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - if (!alternate) { - alternate = getNearestMountedFiber(fiber); - if (null === alternate) - throw Error("Unable to find node on an unmounted component."); - return alternate !== fiber ? null : fiber; - } - for (var a = fiber, b = alternate; ; ) { - var parentA = a.return; - if (null === parentA) break; - var parentB = parentA.alternate; - if (null === parentB) { - b = parentA.return; - if (null !== b) { - a = b; - continue; - } - break; - } - if (parentA.child === parentB.child) { - for (parentB = parentA.child; parentB; ) { - if (parentB === a) return assertIsMounted(parentA), fiber; - if (parentB === b) return assertIsMounted(parentA), alternate; - parentB = parentB.sibling; - } - throw Error("Unable to find node on an unmounted component."); - } - if (a.return !== b.return) (a = parentA), (b = parentB); - else { - for (var didFindChild = !1, _child = parentA.child; _child; ) { - if (_child === a) { - didFindChild = !0; - a = parentA; - b = parentB; - break; - } - if (_child === b) { - didFindChild = !0; - b = parentA; - a = parentB; - break; - } - _child = _child.sibling; - } - if (!didFindChild) { - for (_child = parentB.child; _child; ) { - if (_child === a) { - didFindChild = !0; - a = parentB; - b = parentA; - break; - } - if (_child === b) { - didFindChild = !0; - b = parentB; - a = parentA; - break; - } - _child = _child.sibling; - } - if (!didFindChild) - throw Error( - "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." - ); - } - } - if (a.alternate !== b) - throw Error( - "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." - ); - } - if (3 !== a.tag) - throw Error("Unable to find node on an unmounted component."); - return a.stateNode.current === a ? fiber : alternate; - } - function findCurrentHostFiber(parent) { - parent = findCurrentFiberUsingSlowPath(parent); - return null !== parent ? findCurrentHostFiberImpl(parent) : null; - } - function findCurrentHostFiberImpl(node) { - var tag = node.tag; - if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; - for (node = node.child; null !== node; ) { - tag = findCurrentHostFiberImpl(node); - if (null !== tag) return tag; - node = node.sibling; - } - return null; - } - function isFiberSuspenseAndTimedOut(fiber) { - var memoizedState = fiber.memoizedState; - return ( - 13 === fiber.tag && - null !== memoizedState && - null === memoizedState.dehydrated - ); - } - function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; - } - function injectInternals(internals) { - if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; - var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (hook.isDisabled) return !0; - if (!hook.supportsFiber) - return ( - error$jscomp$0( - "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" - ), - !0 - ); - try { - (rendererID = hook.inject(internals)), (injectedHook = hook); - } catch (err) { - error$jscomp$0("React instrumentation encountered an error: %s.", err); - } - return hook.checkDCE ? !0 : !1; - } - function onCommitRoot$1(root, eventPriority) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) - try { - var didError = 128 === (root.current.flags & 128); - switch (eventPriority) { - case DiscreteEventPriority: - var schedulerPriority = ImmediatePriority; - break; - case ContinuousEventPriority: - schedulerPriority = UserBlockingPriority; - break; - case DefaultEventPriority: - schedulerPriority = NormalPriority$1; - break; - case IdleEventPriority: - schedulerPriority = IdlePriority; - break; - default: - schedulerPriority = NormalPriority$1; - } - injectedHook.onCommitFiberRoot( - rendererID, - root, - schedulerPriority, - didError - ); - } catch (err) { - hasLoggedError || - ((hasLoggedError = !0), - error$jscomp$0( - "React instrumentation encountered an error: %s", - err - )); + "React instrumentation encountered an error: %s", + err + )); } } function setIsStrictModeForDevtools(newIsStrictMode) { @@ -1458,192 +930,721 @@ __DEV__ && return !0; } } - function testStringCoercion(value) { - return "" + value; + function testStringCoercion(value) { + return "" + value; + } + function checkAttributeStringCoercion(value, attributeName) { + if (willCoercionThrow(value)) + return ( + error$jscomp$0( + "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", + attributeName, + typeName(value) + ), + testStringCoercion(value) + ); + } + function checkCSSPropertyStringCoercion(value, propName) { + if (willCoercionThrow(value)) + return ( + error$jscomp$0( + "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", + propName, + typeName(value) + ), + testStringCoercion(value) + ); + } + function checkFormFieldValueStringCoercion(value) { + if (willCoercionThrow(value)) + return ( + error$jscomp$0( + "Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", + typeName(value) + ), + testStringCoercion(value) + ); + } + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) + return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function resolveUpdatePriority() { + var updatePriority = Internals.p; + if (0 !== updatePriority) return updatePriority; + updatePriority = window.event; + return void 0 === updatePriority + ? DefaultEventPriority + : getEventPriority(updatePriority.type); + } + function runWithPriority(priority, fn) { + var previousPriority = Internals.p; + try { + return (Internals.p = priority), fn(); + } finally { + Internals.p = previousPriority; + } + } + function registerTwoPhaseEvent(registrationName, dependencies) { + registerDirectEvent(registrationName, dependencies); + registerDirectEvent(registrationName + "Capture", dependencies); + } + function registerDirectEvent(registrationName, dependencies) { + registrationNameDependencies[registrationName] && + error$jscomp$0( + "EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", + registrationName + ); + registrationNameDependencies[registrationName] = dependencies; + var lowerCasedName = registrationName.toLowerCase(); + possibleRegistrationNames[lowerCasedName] = registrationName; + "onDoubleClick" === registrationName && + (possibleRegistrationNames.ondblclick = registrationName); + for ( + registrationName = 0; + registrationName < dependencies.length; + registrationName++ + ) + allNativeEvents.add(dependencies[registrationName]); + } + function checkControlledValueProps(tagName, props) { + hasReadOnlyValue[props.type] || + props.onChange || + props.onInput || + props.readOnly || + props.disabled || + null == props.value || + ("select" === tagName + ? error$jscomp$0( + "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`." + ) + : error$jscomp$0( + "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`." + )); + props.onChange || + props.readOnly || + props.disabled || + null == props.checked || + error$jscomp$0( + "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`." + ); + } + function isAttributeNameSafe(attributeName) { + if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) + return !0; + if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) + return !1; + if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) + return (validatedAttributeNameCache[attributeName] = !0); + illegalAttributeNameCache[attributeName] = !0; + error$jscomp$0("Invalid attribute name: `%s`", attributeName); + return !1; + } + function getValueForAttributeOnCustomComponent(node, name, expected) { + if (isAttributeNameSafe(name)) { + if (!node.hasAttribute(name)) { + switch (typeof expected) { + case "symbol": + case "object": + return expected; + case "function": + return expected; + case "boolean": + if (!1 === expected) return expected; + } + return void 0 === expected ? void 0 : null; + } + node = node.getAttribute(name); + if ("" === node && !0 === expected) return !0; + checkAttributeStringCoercion(expected, name); + return node === "" + expected ? expected : node; + } + } + function setValueForAttribute(node, name, value) { + if (isAttributeNameSafe(name)) + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + node.removeAttribute(name); + return; + case "boolean": + var prefix = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix && "aria-" !== prefix) { + node.removeAttribute(name); + return; + } + } + checkAttributeStringCoercion(value, name); + node.setAttribute( + name, + enableTrustedTypesIntegration ? value : "" + value + ); + } + } + function setValueForKnownAttribute(node, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + checkAttributeStringCoercion(value, name); + node.setAttribute( + name, + enableTrustedTypesIntegration ? value : "" + value + ); + } + } + function setValueForNamespacedAttribute(node, namespace, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + checkAttributeStringCoercion(value, name); + node.setAttributeNS( + namespace, + name, + enableTrustedTypesIntegration ? value : "" + value + ); + } + } + function disabledLog() {} + function disableLogs() { + if (0 === disabledDepth) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: !0, + enumerable: !0, + value: disabledLog, + writable: !0 + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; } - function checkAttributeStringCoercion(value, attributeName) { - if (willCoercionThrow(value)) - return ( - error$jscomp$0( - "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", - attributeName, - typeName(value) - ), - testStringCoercion(value) + function reenableLogs() { + disabledDepth--; + if (0 === disabledDepth) { + var props = { configurable: !0, enumerable: !0, writable: !0 }; + Object.defineProperties(console, { + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) + }); + } + 0 > disabledDepth && + error$jscomp$0( + "disabledDepth fell below zero. This is a bug in React. Please file an issue." ); } - function checkCSSPropertyStringCoercion(value, propName) { - if (willCoercionThrow(value)) - return ( - error$jscomp$0( - "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", - propName, - typeName(value) - ), - testStringCoercion(value) - ); + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; } - function checkFormFieldValueStringCoercion(value) { - if (willCoercionThrow(value)) - return ( - error$jscomp$0( - "Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", - typeName(value) - ), - testStringCoercion(value) + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + var frame = componentFrameCache.get(fn); + if (void 0 !== frame) return frame; + reentry = !0; + frame = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher = null; + previousDispatcher = ReactSharedInternals.H; + ReactSharedInternals.H = null; + disableLogs(); + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$0) { + control = x$0; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$1) { + control = x$1; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = + RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + _RunInRootFrame$Deter = namePropDescriptor = 0; + namePropDescriptor < sampleLines.length && + !sampleLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + for ( + ; + _RunInRootFrame$Deter < controlLines.length && + !controlLines[_RunInRootFrame$Deter].includes( + "DetermineComponentFrameRoot" + ); + + ) + _RunInRootFrame$Deter++; + if ( + namePropDescriptor === sampleLines.length || + _RunInRootFrame$Deter === controlLines.length + ) + for ( + namePropDescriptor = sampleLines.length - 1, + _RunInRootFrame$Deter = controlLines.length - 1; + 1 <= namePropDescriptor && + 0 <= _RunInRootFrame$Deter && + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]; + + ) + _RunInRootFrame$Deter--; + for ( + ; + 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; + namePropDescriptor--, _RunInRootFrame$Deter-- + ) + if ( + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter] + ) { + if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { + do + if ( + (namePropDescriptor--, + _RunInRootFrame$Deter--, + 0 > _RunInRootFrame$Deter || + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]) + ) { + var _frame = + "\n" + + sampleLines[namePropDescriptor].replace( + " at new ", + " at " + ); + fn.displayName && + _frame.includes("") && + (_frame = _frame.replace("", fn.displayName)); + "function" === typeof fn && + componentFrameCache.set(fn, _frame); + return _frame; + } + while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); + } + break; + } + } + } finally { + (reentry = !1), + (ReactSharedInternals.H = previousDispatcher), + reenableLogs(), + (Error.prepareStackTrace = frame); + } + sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(sampleLines) + : ""; + "function" === typeof fn && componentFrameCache.set(fn, sampleLines); + return sampleLines; + } + function formatOwnerStack(error) { + var prevPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + error = error.stack; + Error.prepareStackTrace = prevPrepareStackTrace; + error.startsWith("Error: react-stack-top-frame\n") && + (error = error.slice(29)); + prevPrepareStackTrace = error.indexOf("\n"); + -1 !== prevPrepareStackTrace && + (error = error.slice(prevPrepareStackTrace + 1)); + prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); + -1 !== prevPrepareStackTrace && + (prevPrepareStackTrace = error.lastIndexOf( + "\n", + prevPrepareStackTrace + )); + if (-1 !== prevPrepareStackTrace) + error = error.slice(0, prevPrepareStackTrace); + else return ""; + return error; } - function resolveUpdatePriority() { - var updatePriority = Internals.p; - if (0 !== updatePriority) return updatePriority; - updatePriority = window.event; - return void 0 === updatePriority - ? DefaultEventPriority - : getEventPriority(updatePriority.type); + function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } } - function runWithPriority(priority, fn) { - var previousPriority = Internals.p; + function getStackByFiberInDevAndProd(workInProgress) { try { - return (Internals.p = priority), fn(); - } finally { - Internals.p = previousPriority; + var info = ""; + do { + info += describeFiber(workInProgress); + var debugInfo = workInProgress._debugInfo; + if (debugInfo) + for (var i = debugInfo.length - 1; 0 <= i; i--) { + var entry = debugInfo[i]; + if ("string" === typeof entry.name) { + var JSCompiler_temp_const = info, + env = entry.env; + var JSCompiler_inline_result = describeBuiltInComponentFrame( + entry.name + (env ? " [" + env + "]" : "") + ); + info = JSCompiler_temp_const + JSCompiler_inline_result; + } + } + workInProgress = workInProgress.return; + } while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; } } - function registerTwoPhaseEvent(registrationName, dependencies) { - registerDirectEvent(registrationName, dependencies); - registerDirectEvent(registrationName + "Capture", dependencies); - } - function registerDirectEvent(registrationName, dependencies) { - registrationNameDependencies[registrationName] && - error$jscomp$0( - "EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", - registrationName - ); - registrationNameDependencies[registrationName] = dependencies; - var lowerCasedName = registrationName.toLowerCase(); - possibleRegistrationNames[lowerCasedName] = registrationName; - "onDoubleClick" === registrationName && - (possibleRegistrationNames.ondblclick = registrationName); - for ( - registrationName = 0; - registrationName < dependencies.length; - registrationName++ - ) - allNativeEvents.add(dependencies[registrationName]); - } - function checkControlledValueProps(tagName, props) { - hasReadOnlyValue[props.type] || - props.onChange || - props.onInput || - props.readOnly || - props.disabled || - null == props.value || - ("select" === tagName - ? error$jscomp$0( - "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`." - ) - : error$jscomp$0( - "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`." - )); - props.onChange || - props.readOnly || - props.disabled || - null == props.checked || - error$jscomp$0( - "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`." - ); - } - function isAttributeNameSafe(attributeName) { - if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) - return !0; - if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) - return !1; - if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) - return (validatedAttributeNameCache[attributeName] = !0); - illegalAttributeNameCache[attributeName] = !0; - error$jscomp$0("Invalid attribute name: `%s`", attributeName); - return !1; + function describeFunctionComponentFrameWithoutLineNumber(fn) { + return (fn = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(fn) + : ""; } - function getValueForAttributeOnCustomComponent(node, name, expected) { - if (isAttributeNameSafe(name)) { - if (!node.hasAttribute(name)) { - switch (typeof expected) { - case "symbol": - case "object": - return expected; - case "function": - return expected; - case "boolean": - if (!1 === expected) return expected; - } - return void 0 === expected ? void 0 : null; + function getOwnerStackByFiberInDev(workInProgress) { + if (!enableOwnerStacks) return ""; + try { + var info = ""; + 6 === workInProgress.tag && (workInProgress = workInProgress.return); + switch (workInProgress.tag) { + case 26: + case 27: + case 5: + info += describeBuiltInComponentFrame(workInProgress.type); + break; + case 13: + info += describeBuiltInComponentFrame("Suspense"); + break; + case 19: + info += describeBuiltInComponentFrame("SuspenseList"); + break; + case 0: + case 15: + case 1: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type + )); + break; + case 11: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type.render + )); } - node = node.getAttribute(name); - if ("" === node && !0 === expected) return !0; - checkAttributeStringCoercion(expected, name); - return node === "" + expected ? expected : node; + for (; workInProgress; ) + if ("number" === typeof workInProgress.tag) { + var fiber = workInProgress; + workInProgress = fiber._debugOwner; + var debugStack = fiber._debugStack; + workInProgress && + debugStack && + ("string" !== typeof debugStack && + (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), + "" !== debugStack && (info += "\n" + debugStack)); + } else if (null != workInProgress.debugStack) { + var ownerStack = workInProgress.debugStack; + (workInProgress = workInProgress.owner) && + ownerStack && + (info += "\n" + formatOwnerStack(ownerStack)); + } else break; + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; } } - function setValueForAttribute(node, name, value) { - if (isAttributeNameSafe(name)) - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - node.removeAttribute(name); - return; - case "boolean": - var prefix = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix && "aria-" !== prefix) { - node.removeAttribute(name); - return; - } - } - checkAttributeStringCoercion(value, name); - node.setAttribute( - name, - enableTrustedTypesIntegration ? value : "" + value - ); + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch ( + ("number" === typeof type.tag && + error$jscomp$0( + "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." + ), + type.$$typeof) + ) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} } + return null; } - function setValueForKnownAttribute(node, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; - } - checkAttributeStringCoercion(value, name); - node.setAttribute( - name, - enableTrustedTypesIntegration ? value : "" + value - ); + function getComponentNameFromOwner(owner) { + return "number" === typeof owner.tag + ? getComponentNameFromFiber(owner) + : "string" === typeof owner.name + ? owner.name + : null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return enableRenderableContext + ? (type._context.displayName || "Context") + ".Consumer" + : (type.displayName || "Context") + ".Consumer"; + case 10: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") + ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; + break; + case 23: + return "LegacyHidden"; + case 29: + type = fiber._debugInfo; + if (null != type) + for (var i = type.length - 1; 0 <= i; i--) + if ("string" === typeof type[i].name) return type[i].name; + if (null !== fiber.return) + return getComponentNameFromFiber(fiber.return); } + return null; } - function setValueForNamespacedAttribute(node, namespace, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; - } - checkAttributeStringCoercion(value, name); - node.setAttributeNS( - namespace, - name, - enableTrustedTypesIntegration ? value : "" + value - ); + function getCurrentFiberOwnerNameInDevOrNull() { + if (null === current) return null; + var owner = current._debugOwner; + return null != owner ? getComponentNameFromOwner(owner) : null; + } + function getCurrentFiberStackInDev() { + return null === current + ? "" + : enableOwnerStacks + ? getOwnerStackByFiberInDev(current) + : getStackByFiberInDevAndProd(current); + } + function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { + var previousFiber = current; + ReactSharedInternals.getCurrentStack = + null === fiber ? null : getCurrentFiberStackInDev; + isRendering = !1; + current = fiber; + try { + return enableOwnerStacks && null !== fiber && fiber._debugTask + ? fiber._debugTask.run( + callback.bind(null, arg0, arg1, arg2, arg3, arg4) + ) + : callback(arg0, arg1, arg2, arg3, arg4); + } finally { + current = previousFiber; } + throw Error( + "runWithFiberInDEV should never be called in production. This is a bug in React." + ); } function getToStringValue(value) { switch (typeof value) { @@ -4082,8 +4083,6 @@ __DEV__ && ((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask()) : didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now$1()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -5095,7 +5094,7 @@ __DEV__ && null; hookTypesUpdateIndexDev = -1; null !== current && - (current.flags & 29360128) !== (workInProgress.flags & 29360128) && + (current.flags & 65011712) !== (workInProgress.flags & 65011712) && error$jscomp$0( "Internal React error: Expected static flag was missing. Please notify the React team." ); @@ -5173,7 +5172,7 @@ __DEV__ && workInProgress.updateQueue = current.updateQueue; workInProgress.flags = (workInProgress.mode & StrictEffectsMode) !== NoMode - ? workInProgress.flags & -201328645 + ? workInProgress.flags & -402655237 : workInProgress.flags & -2053; current.lanes &= ~lanes; } @@ -6075,7 +6074,7 @@ __DEV__ && function mountEffect(create, deps) { (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && (currentlyRenderingFiber.mode & NoStrictPassiveEffectsMode) === NoMode - ? mountEffectImpl(142608384, Passive, create, deps) + ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps); } function mountResourceEffect( @@ -6091,7 +6090,7 @@ __DEV__ && ) { var hookFlags = Passive, hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= 142608384; + currentlyRenderingFiber.flags |= 276826112; var inst = createEffectInstance(); inst.destroy = destroy; hook.memoizedState = pushResourceEffect( @@ -6213,7 +6212,7 @@ __DEV__ && function mountLayoutEffect(create, deps) { var fiberFlags = 4194308; (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && - (fiberFlags |= 67108864); + (fiberFlags |= 134217728); return mountEffectImpl(fiberFlags, Layout, create, deps); } function imperativeHandleEffect(create, ref) { @@ -6247,7 +6246,7 @@ __DEV__ && deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; var fiberFlags = 4194308; (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && - (fiberFlags |= 67108864); + (fiberFlags |= 134217728); mountEffectImpl( fiberFlags, Layout, @@ -6858,16 +6857,16 @@ __DEV__ && return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -9204,7 +9203,7 @@ __DEV__ && "function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308); (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864); + (workInProgress.flags |= 134217728); state = !0; } else if (null === current$jscomp$0) (state = workInProgress.stateNode), @@ -9278,11 +9277,11 @@ __DEV__ && "function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864)) + (workInProgress.flags |= 134217728)) : ("function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (workInProgress.memoizedProps = nextProps), (workInProgress.memoizedState = state$jscomp$0)), (state.props = nextProps), @@ -9292,7 +9291,7 @@ __DEV__ && : ("function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (state = !1)); else { state = workInProgress.stateNode; @@ -9545,32 +9544,32 @@ __DEV__ && return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2531; - var JSCompiler_object_inline_stack_2532 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2545; + var JSCompiler_object_inline_stack_2546 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2533 = !1; + var JSCompiler_object_inline_componentStack_2547 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2531 = didSuspend) || - (JSCompiler_object_inline_digest_2531 = + (JSCompiler_object_inline_digest_2545 = didSuspend) || + (JSCompiler_object_inline_digest_2545 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2531 && - ((JSCompiler_object_inline_componentStack_2533 = !0), + JSCompiler_object_inline_digest_2545 && + ((JSCompiler_object_inline_componentStack_2547 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2531 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2545 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2533 + JSCompiler_object_inline_componentStack_2547 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2530 = nextHydratableInstance; + var JSCompiler_object_inline_message_2544 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2530)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2544)) { c: { - var instance = JSCompiler_object_inline_message_2530; + var instance = JSCompiler_object_inline_message_2544; for ( JSCompiler_temp = rootOrSingletonContext; instance.nodeType !== COMMENT_NODE; @@ -9612,46 +9611,46 @@ __DEV__ && JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2530 + JSCompiler_object_inline_message_2544 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2530 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2544 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2530 && - ((JSCompiler_object_inline_message_2530 = - JSCompiler_object_inline_message_2530.dehydrated), - null !== JSCompiler_object_inline_message_2530) + null !== JSCompiler_object_inline_message_2544 && + ((JSCompiler_object_inline_message_2544 = + JSCompiler_object_inline_message_2544.dehydrated), + null !== JSCompiler_object_inline_message_2544) ) return ( - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2530) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2544) ? (workInProgress.lanes = 32) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2530 = - JSCompiler_object_inline_stack_2532.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2532.fallback; - if (JSCompiler_object_inline_componentStack_2533) + JSCompiler_object_inline_message_2544 = + JSCompiler_object_inline_stack_2546.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2546.fallback; + if (JSCompiler_object_inline_componentStack_2547) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2532 = + (JSCompiler_object_inline_stack_2546 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2530, + JSCompiler_object_inline_message_2544, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2533 = + (JSCompiler_object_inline_componentStack_2547 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2533.memoizedState = + (JSCompiler_object_inline_componentStack_2547.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2533.childLanes = + (JSCompiler_object_inline_componentStack_2547.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2531, + JSCompiler_object_inline_digest_2545, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), @@ -9664,9 +9663,9 @@ __DEV__ && ? markerInstanceStack.current : null), (renderLanes = - JSCompiler_object_inline_componentStack_2533.updateQueue), + JSCompiler_object_inline_componentStack_2547.updateQueue), null === renderLanes - ? (JSCompiler_object_inline_componentStack_2533.updateQueue = + ? (JSCompiler_object_inline_componentStack_2547.updateQueue = { transitions: workInProgress, markerInstances: current, @@ -9674,46 +9673,46 @@ __DEV__ && }) : ((renderLanes.transitions = workInProgress), (renderLanes.markerInstances = current)))), - JSCompiler_object_inline_stack_2532 + JSCompiler_object_inline_stack_2546 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2532.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2546.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2532 = + (JSCompiler_object_inline_stack_2546 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2530, + JSCompiler_object_inline_message_2544, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2533 = + (JSCompiler_object_inline_componentStack_2547 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2533.memoizedState = + (JSCompiler_object_inline_componentStack_2547.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2533.childLanes = + (JSCompiler_object_inline_componentStack_2547.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2531, + JSCompiler_object_inline_digest_2545, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2532 + JSCompiler_object_inline_stack_2546 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2530 + JSCompiler_object_inline_message_2544 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2530 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2530) + ((JSCompiler_object_inline_message_2544 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2544) ) { if (didSuspend) workInProgress.flags & 256 @@ -9730,94 +9729,94 @@ __DEV__ && (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2533 = - JSCompiler_object_inline_stack_2532.fallback), - (JSCompiler_object_inline_message_2530 = workInProgress.mode), - (JSCompiler_object_inline_stack_2532 = + (JSCompiler_object_inline_componentStack_2547 = + JSCompiler_object_inline_stack_2546.fallback), + (JSCompiler_object_inline_message_2544 = workInProgress.mode), + (JSCompiler_object_inline_stack_2546 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2532.children + children: JSCompiler_object_inline_stack_2546.children }, - JSCompiler_object_inline_message_2530 + JSCompiler_object_inline_message_2544 )), - (JSCompiler_object_inline_componentStack_2533 = + (JSCompiler_object_inline_componentStack_2547 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2533, - JSCompiler_object_inline_message_2530, + JSCompiler_object_inline_componentStack_2547, + JSCompiler_object_inline_message_2544, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2533.flags |= 2), - (JSCompiler_object_inline_stack_2532.return = workInProgress), - (JSCompiler_object_inline_componentStack_2533.return = + (JSCompiler_object_inline_componentStack_2547.flags |= 2), + (JSCompiler_object_inline_stack_2546.return = workInProgress), + (JSCompiler_object_inline_componentStack_2547.return = workInProgress), - (JSCompiler_object_inline_stack_2532.sibling = - JSCompiler_object_inline_componentStack_2533), - (workInProgress.child = JSCompiler_object_inline_stack_2532), + (JSCompiler_object_inline_stack_2546.sibling = + JSCompiler_object_inline_componentStack_2547), + (workInProgress.child = JSCompiler_object_inline_stack_2546), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2532 = workInProgress.child), - (JSCompiler_object_inline_stack_2532.memoizedState = + (JSCompiler_object_inline_stack_2546 = workInProgress.child), + (JSCompiler_object_inline_stack_2546.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2532.childLanes = + (JSCompiler_object_inline_stack_2546.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2531, + JSCompiler_object_inline_digest_2545, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2533)); + JSCompiler_object_inline_componentStack_2547)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && error$jscomp$0( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2530)) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2544)) ) { - JSCompiler_object_inline_digest_2531 = - JSCompiler_object_inline_message_2530.nextSibling && - JSCompiler_object_inline_message_2530.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2531) { - JSCompiler_temp = JSCompiler_object_inline_digest_2531.dgst; - var message = JSCompiler_object_inline_digest_2531.msg; - instance = JSCompiler_object_inline_digest_2531.stck; - var componentStack = JSCompiler_object_inline_digest_2531.cstck; + JSCompiler_object_inline_digest_2545 = + JSCompiler_object_inline_message_2544.nextSibling && + JSCompiler_object_inline_message_2544.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2545) { + JSCompiler_temp = JSCompiler_object_inline_digest_2545.dgst; + var message = JSCompiler_object_inline_digest_2545.msg; + instance = JSCompiler_object_inline_digest_2545.stck; + var componentStack = JSCompiler_object_inline_digest_2545.cstck; } - JSCompiler_object_inline_message_2530 = message; - JSCompiler_object_inline_digest_2531 = JSCompiler_temp; - JSCompiler_object_inline_stack_2532 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2533 = + JSCompiler_object_inline_message_2544 = message; + JSCompiler_object_inline_digest_2545 = JSCompiler_temp; + JSCompiler_object_inline_stack_2546 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2547 = componentStack; - JSCompiler_object_inline_componentStack_2533 = - JSCompiler_object_inline_message_2530 - ? Error(JSCompiler_object_inline_message_2530) + JSCompiler_object_inline_componentStack_2547 = + JSCompiler_object_inline_message_2544 + ? Error(JSCompiler_object_inline_message_2544) : 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_2533.stack = - JSCompiler_object_inline_stack_2532 || ""; - JSCompiler_object_inline_componentStack_2533.digest = - JSCompiler_object_inline_digest_2531; - JSCompiler_object_inline_digest_2531 = + JSCompiler_object_inline_componentStack_2547.stack = + JSCompiler_object_inline_stack_2546 || ""; + JSCompiler_object_inline_componentStack_2547.digest = + JSCompiler_object_inline_digest_2545; + JSCompiler_object_inline_digest_2545 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; - JSCompiler_object_inline_stack_2532 = { - value: JSCompiler_object_inline_componentStack_2533, + JSCompiler_object_inline_stack_2546 = { + value: JSCompiler_object_inline_componentStack_2547, source: null, - stack: JSCompiler_object_inline_digest_2531 + stack: JSCompiler_object_inline_digest_2545 }; - "string" === typeof JSCompiler_object_inline_digest_2531 && + "string" === typeof JSCompiler_object_inline_digest_2545 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2533, - JSCompiler_object_inline_stack_2532 + JSCompiler_object_inline_componentStack_2547, + JSCompiler_object_inline_stack_2546 ); - queueHydrationError(JSCompiler_object_inline_stack_2532); + queueHydrationError(JSCompiler_object_inline_stack_2546); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9831,44 +9830,44 @@ __DEV__ && renderLanes, !1 ), - (JSCompiler_object_inline_digest_2531 = + (JSCompiler_object_inline_digest_2545 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2531) + didReceiveUpdate || JSCompiler_object_inline_digest_2545) ) { - JSCompiler_object_inline_digest_2531 = workInProgressRoot; + JSCompiler_object_inline_digest_2545 = workInProgressRoot; if ( - null !== JSCompiler_object_inline_digest_2531 && - ((JSCompiler_object_inline_stack_2532 = renderLanes & -renderLanes), - (JSCompiler_object_inline_stack_2532 = - 0 !== (JSCompiler_object_inline_stack_2532 & 42) + null !== JSCompiler_object_inline_digest_2545 && + ((JSCompiler_object_inline_stack_2546 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2546 = + 0 !== (JSCompiler_object_inline_stack_2546 & 42) ? 1 : getBumpedLaneForHydrationByLane( - JSCompiler_object_inline_stack_2532 + JSCompiler_object_inline_stack_2546 )), - (JSCompiler_object_inline_stack_2532 = + (JSCompiler_object_inline_stack_2546 = 0 !== - (JSCompiler_object_inline_stack_2532 & - (JSCompiler_object_inline_digest_2531.suspendedLanes | + (JSCompiler_object_inline_stack_2546 & + (JSCompiler_object_inline_digest_2545.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2532), - 0 !== JSCompiler_object_inline_stack_2532 && - JSCompiler_object_inline_stack_2532 !== prevState.retryLane) + : JSCompiler_object_inline_stack_2546), + 0 !== JSCompiler_object_inline_stack_2546 && + JSCompiler_object_inline_stack_2546 !== prevState.retryLane) ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2532), + ((prevState.retryLane = JSCompiler_object_inline_stack_2546), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2532 + JSCompiler_object_inline_stack_2546 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2531, + JSCompiler_object_inline_digest_2545, current, - JSCompiler_object_inline_stack_2532 + JSCompiler_object_inline_stack_2546 ), SelectiveHydrationException) ); - JSCompiler_object_inline_message_2530.data === + JSCompiler_object_inline_message_2544.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9876,14 +9875,14 @@ __DEV__ && renderLanes ); } else - JSCompiler_object_inline_message_2530.data === + JSCompiler_object_inline_message_2544.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2530.nextSibling + JSCompiler_object_inline_message_2544.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9901,57 +9900,57 @@ __DEV__ && (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2532.children + JSCompiler_object_inline_stack_2546.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2533) + if (JSCompiler_object_inline_componentStack_2547) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2533 = - JSCompiler_object_inline_stack_2532.fallback), - (JSCompiler_object_inline_message_2530 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2547 = + JSCompiler_object_inline_stack_2546.fallback), + (JSCompiler_object_inline_message_2544 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2532 = createWorkInProgress( + (JSCompiler_object_inline_stack_2546 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2532.children + children: JSCompiler_object_inline_stack_2546.children } )), - (JSCompiler_object_inline_stack_2532.subtreeFlags = - JSCompiler_temp.subtreeFlags & 29360128), + (JSCompiler_object_inline_stack_2546.subtreeFlags = + JSCompiler_temp.subtreeFlags & 65011712), null !== instance - ? (JSCompiler_object_inline_componentStack_2533 = + ? (JSCompiler_object_inline_componentStack_2547 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2533 + JSCompiler_object_inline_componentStack_2547 )) - : ((JSCompiler_object_inline_componentStack_2533 = + : ((JSCompiler_object_inline_componentStack_2547 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2533, - JSCompiler_object_inline_message_2530, + JSCompiler_object_inline_componentStack_2547, + JSCompiler_object_inline_message_2544, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2533.flags |= 2)), - (JSCompiler_object_inline_componentStack_2533.return = + (JSCompiler_object_inline_componentStack_2547.flags |= 2)), + (JSCompiler_object_inline_componentStack_2547.return = workInProgress), - (JSCompiler_object_inline_stack_2532.return = workInProgress), - (JSCompiler_object_inline_stack_2532.sibling = - JSCompiler_object_inline_componentStack_2533), - (workInProgress.child = JSCompiler_object_inline_stack_2532), - (JSCompiler_object_inline_stack_2532 = - JSCompiler_object_inline_componentStack_2533), - (JSCompiler_object_inline_componentStack_2533 = workInProgress.child), - (JSCompiler_object_inline_message_2530 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2530 - ? (JSCompiler_object_inline_message_2530 = + (JSCompiler_object_inline_stack_2546.return = workInProgress), + (JSCompiler_object_inline_stack_2546.sibling = + JSCompiler_object_inline_componentStack_2547), + (workInProgress.child = JSCompiler_object_inline_stack_2546), + (JSCompiler_object_inline_stack_2546 = + JSCompiler_object_inline_componentStack_2547), + (JSCompiler_object_inline_componentStack_2547 = workInProgress.child), + (JSCompiler_object_inline_message_2544 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2544 + ? (JSCompiler_object_inline_message_2544 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2530.cachePool), + JSCompiler_object_inline_message_2544.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9959,34 +9958,34 @@ __DEV__ && ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2530 = { + (JSCompiler_object_inline_message_2544 = { baseLanes: - JSCompiler_object_inline_message_2530.baseLanes | renderLanes, + JSCompiler_object_inline_message_2544.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2533.memoizedState = - JSCompiler_object_inline_message_2530), + (JSCompiler_object_inline_componentStack_2547.memoizedState = + JSCompiler_object_inline_message_2544), enableTransitionTracing && - ((JSCompiler_object_inline_message_2530 = enableTransitionTracing + ((JSCompiler_object_inline_message_2544 = enableTransitionTracing ? transitionStack.current : null), - null !== JSCompiler_object_inline_message_2530 && + null !== JSCompiler_object_inline_message_2544 && ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), (instance = - JSCompiler_object_inline_componentStack_2533.updateQueue), + JSCompiler_object_inline_componentStack_2547.updateQueue), (componentStack = current.updateQueue), null === instance - ? (JSCompiler_object_inline_componentStack_2533.updateQueue = { - transitions: JSCompiler_object_inline_message_2530, + ? (JSCompiler_object_inline_componentStack_2547.updateQueue = { + transitions: JSCompiler_object_inline_message_2544, markerInstances: JSCompiler_temp, retryQueue: null }) : instance === componentStack - ? (JSCompiler_object_inline_componentStack_2533.updateQueue = + ? (JSCompiler_object_inline_componentStack_2547.updateQueue = { - transitions: JSCompiler_object_inline_message_2530, + transitions: JSCompiler_object_inline_message_2544, markerInstances: JSCompiler_temp, retryQueue: null !== componentStack @@ -9994,32 +9993,32 @@ __DEV__ && : null }) : ((instance.transitions = - JSCompiler_object_inline_message_2530), + JSCompiler_object_inline_message_2544), (instance.markerInstances = JSCompiler_temp)))), - (JSCompiler_object_inline_componentStack_2533.childLanes = + (JSCompiler_object_inline_componentStack_2547.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2531, + JSCompiler_object_inline_digest_2545, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2532 + JSCompiler_object_inline_stack_2546 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2532.children + children: JSCompiler_object_inline_stack_2546.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2531 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2531 + ((JSCompiler_object_inline_digest_2545 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2545 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2531.push(current)); + : JSCompiler_object_inline_digest_2545.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -11420,8 +11419,8 @@ __DEV__ && ) (newChildLanes |= _child2.lanes | _child2.childLanes), - (subtreeFlags |= _child2.subtreeFlags & 29360128), - (subtreeFlags |= _child2.flags & 29360128), + (subtreeFlags |= _child2.subtreeFlags & 65011712), + (subtreeFlags |= _child2.flags & 65011712), (_treeBaseDuration += _child2.treeBaseDuration), (_child2 = _child2.sibling); completedWork.treeBaseDuration = _treeBaseDuration; @@ -11433,8 +11432,8 @@ __DEV__ && ) (newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes), - (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128), - (subtreeFlags |= _treeBaseDuration.flags & 29360128), + (subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712), + (subtreeFlags |= _treeBaseDuration.flags & 65011712), (_treeBaseDuration.return = completedWork), (_treeBaseDuration = _treeBaseDuration.sibling); else if ((completedWork.mode & ProfileMode) !== NoMode) { @@ -12067,6 +12066,8 @@ __DEV__ && bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error( "Unknown unit of work tag (" + @@ -14374,6 +14375,7 @@ __DEV__ && ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -14806,7 +14808,7 @@ __DEV__ && break; case 12: flags & 2048 - ? ((prevEffectDuration = pushNestedEffectDurations()), + ? ((flags = pushNestedEffectDurations()), recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, @@ -14815,7 +14817,7 @@ __DEV__ && ), (finishedRoot = finishedWork.stateNode), (finishedRoot.passiveEffectDuration += - bubbleNestedEffectDurations(prevEffectDuration)), + bubbleNestedEffectDurations(flags)), commitProfilerPostCommit( finishedWork, finishedWork.alternate, @@ -14853,6 +14855,7 @@ __DEV__ && break; case 22: prevEffectDuration = finishedWork.stateNode; + nextCache = finishedWork.alternate; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -14882,7 +14885,7 @@ __DEV__ && )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + nextCache, finishedWork, prevEffectDuration ); @@ -14897,6 +14900,7 @@ __DEV__ && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -15661,6 +15665,7 @@ __DEV__ && lanes, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, @@ -15690,6 +15695,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -15710,6 +15716,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -15733,6 +15740,7 @@ __DEV__ && finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -15747,12 +15755,14 @@ __DEV__ && root.timeoutHandle = noTimeout; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && + accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -15764,6 +15774,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -15788,6 +15799,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -15912,6 +15924,7 @@ __DEV__ && workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -16526,6 +16539,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -16585,24 +16599,30 @@ __DEV__ && })) : ((root.callbackNode = null), (root.callbackPriority = 0)); commitStartTime = now(); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = Internals.p; + transitions = Internals.p; Internals.p = DiscreteEventPriority; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= CommitContext; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (Internals.p = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (Internals.p = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = PENDING_MUTATION_PHASE; flushMutationEffects(); + pendingEffectsStatus = PENDING_LAYOUT_PHASE; flushLayoutEffects(); } } @@ -16743,7 +16763,7 @@ __DEV__ && } } root.current = finishedWork; - pendingEffectsStatus = PENDING_LAYOUT_PHASE; + pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; } } function flushLayoutEffects() { @@ -16879,6 +16899,9 @@ __DEV__ && function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE && + ((pendingEffectsStatus = NO_PENDING_EFFECTS), + (pendingEffectsStatus = PENDING_LAYOUT_PHASE)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { @@ -17143,14 +17166,14 @@ __DEV__ && parentFiber, isInStrictMode ) { - if (0 !== (parentFiber.subtreeFlags & 33562624)) + if (0 !== (parentFiber.subtreeFlags & 67117056)) for (parentFiber = parentFiber.child; null !== parentFiber; ) { var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; isStrictModeFiber = isInStrictMode || isStrictModeFiber; 22 !== fiber.tag - ? fiber.flags & 33554432 + ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV( fiber, @@ -17172,7 +17195,7 @@ __DEV__ && root, fiber ) - : fiber.subtreeFlags & 33554432 && + : fiber.subtreeFlags & 67108864 && runWithFiberInDEV( fiber, recursivelyTraverseAndDoubleInvokeEffectsInDEV, @@ -17481,7 +17504,7 @@ __DEV__ && (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -17519,7 +17542,7 @@ __DEV__ && return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -17624,6 +17647,7 @@ __DEV__ && return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -17920,13 +17944,6 @@ __DEV__ && if (!parentComponent) return emptyContextObject; parentComponent = parentComponent._reactInternals; a: { - if ( - getNearestMountedFiber(parentComponent) !== parentComponent || - 1 !== parentComponent.tag - ) - throw Error( - "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." - ); var parentContext = parentComponent; do { switch (parentContext.tag) { @@ -23605,8 +23622,6 @@ __DEV__ && var Scheduler = require("scheduler"), React = require("react"), assign = Object.assign, - warningWWW = require("warning"), - suppressWarning = !1, dynamicFeatureFlags = require("ReactFeatureFlags"), alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = @@ -23615,8 +23630,6 @@ __DEV__ && dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -23642,49 +23655,11 @@ __DEV__ && dynamicFeatureFlags.transitionLaneExpirationMs, enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks, enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler, - REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_ELEMENT_TYPE = renameElementSymbol - ? Symbol.for("react.transitional.element") - : REACT_LEGACY_ELEMENT_TYPE, - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"), - REACT_SCOPE_TYPE = Symbol.for("react.scope"), - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), - REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), - REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), - MAYBE_ITERATOR_SYMBOL = Symbol.iterator, - REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + warningWWW = require("warning"), + suppressWarning = !1, + currentReplayingEvent = null, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - disabledDepth = 0, - prevLog, - prevInfo, - prevWarn, - prevError, - prevGroup, - prevGroupCollapsed, - prevGroupEnd; - disabledLog.__reactDisabledLog = !0; - var prefix, - suffix, - reentry = !1; - var componentFrameCache = new ( - "function" === typeof WeakMap ? WeakMap : Map - )(); - var current = null, - isRendering = !1, - currentReplayingEvent = null, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, @@ -23743,6 +23718,29 @@ __DEV__ && rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null), hasOwnProperty = Object.prototype.hasOwnProperty, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_ELEMENT_TYPE = renameElementSymbol + ? Symbol.for("react.transitional.element") + : REACT_LEGACY_ELEMENT_TYPE, + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_SCOPE_TYPE = Symbol.for("react.scope"), + REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), + REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), + REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), + MAYBE_ITERATOR_SYMBOL = Symbol.iterator, allNativeEvents = new Set(); allNativeEvents.add("beforeblur"); allNativeEvents.add("afterblur"); @@ -23762,6 +23760,24 @@ __DEV__ && ), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}, + disabledDepth = 0, + prevLog, + prevInfo, + prevWarn, + prevError, + prevGroup, + prevGroupCollapsed, + prevGroupEnd; + disabledLog.__reactDisabledLog = !0; + var prefix, + suffix, + reentry = !1; + var componentFrameCache = new ( + "function" === typeof WeakMap ? WeakMap : Map + )(); + var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + current = null, + isRendering = !1, escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g, didWarnValueDefaultValue$1 = !1, didWarnCheckedDefaultChecked = !1, @@ -26364,21 +26380,6 @@ __DEV__ && var didWarnOnInvalidCallback = new Set(); Object.freeze(fakeInternalInstance); var classComponentUpdater = { - isMounted: function (component) { - var owner = current; - if (null !== owner && isRendering && 1 === owner.tag) { - var instance = owner.stateNode; - instance._warnedAboutRefsInRender || - error$jscomp$0( - "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", - getComponentNameFromFiber(owner) || "A component" - ); - instance._warnedAboutRefsInRender = !0; - } - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(inst), @@ -26561,6 +26562,7 @@ __DEV__ && workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -26576,8 +26578,9 @@ __DEV__ && THROTTLED_COMMIT = 2, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, - PENDING_LAYOUT_PHASE = 2, - PENDING_PASSIVE_PHASE = 3, + PENDING_AFTER_MUTATION_PHASE = 2, + PENDING_LAYOUT_PHASE = 3, + PENDING_PASSIVE_PHASE = 4, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, @@ -27417,11 +27420,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-defffdbb-20250106" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-98418e89-20250108" !== 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.1.0-www-classic-defffdbb-20250106\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-98418e89-20250108\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27464,10 +27467,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-defffdbb-20250106", + version: "19.1.0-www-classic-98418e89-20250108", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-classic-98418e89-20250108" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28065,7 +28068,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-defffdbb-20250106"; + exports.version = "19.1.0-www-classic-98418e89-20250108"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 7534dd572e2cc..63a8630284584 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -115,6 +115,144 @@ __DEV__ && }); return array.sort().join(", "); } + function getNearestMountedFiber(fiber) { + var node = fiber, + nearestMounted = fiber; + if (fiber.alternate) for (; node.return; ) node = node.return; + else { + fiber = node; + do + (node = fiber), + 0 !== (node.flags & 4098) && (nearestMounted = node.return), + (fiber = node.return); + while (fiber); + } + return 3 === node.tag ? nearestMounted : null; + } + function getSuspenseInstanceFromFiber(fiber) { + if (13 === fiber.tag) { + var suspenseState = fiber.memoizedState; + null === suspenseState && + ((fiber = fiber.alternate), + null !== fiber && (suspenseState = fiber.memoizedState)); + if (null !== suspenseState) return suspenseState.dehydrated; + } + return null; + } + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) + throw Error("Unable to find node on an unmounted component."); + } + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + alternate = getNearestMountedFiber(fiber); + if (null === alternate) + throw Error("Unable to find node on an unmounted component."); + return alternate !== fiber ? null : fiber; + } + for (var a = fiber, b = alternate; ; ) { + var parentA = a.return; + if (null === parentA) break; + var parentB = parentA.alternate; + if (null === parentB) { + b = parentA.return; + if (null !== b) { + a = b; + continue; + } + break; + } + if (parentA.child === parentB.child) { + for (parentB = parentA.child; parentB; ) { + if (parentB === a) return assertIsMounted(parentA), fiber; + if (parentB === b) return assertIsMounted(parentA), alternate; + parentB = parentB.sibling; + } + throw Error("Unable to find node on an unmounted component."); + } + if (a.return !== b.return) (a = parentA), (b = parentB); + else { + for (var didFindChild = !1, _child = parentA.child; _child; ) { + if (_child === a) { + didFindChild = !0; + a = parentA; + b = parentB; + break; + } + if (_child === b) { + didFindChild = !0; + b = parentA; + a = parentB; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + for (_child = parentB.child; _child; ) { + if (_child === a) { + didFindChild = !0; + a = parentB; + b = parentA; + break; + } + if (_child === b) { + didFindChild = !0; + b = parentB; + a = parentA; + break; + } + _child = _child.sibling; + } + if (!didFindChild) + throw Error( + "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." + ); + } + } + if (a.alternate !== b) + throw Error( + "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." + ); + } + if (3 !== a.tag) + throw Error("Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + function findCurrentHostFiber(parent) { + parent = findCurrentFiberUsingSlowPath(parent); + return null !== parent ? findCurrentHostFiberImpl(parent) : null; + } + function findCurrentHostFiberImpl(node) { + var tag = node.tag; + if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; + for (node = node.child; null !== node; ) { + tag = findCurrentHostFiberImpl(node); + if (null !== tag) return tag; + node = node.sibling; + } + return null; + } + function isFiberSuspenseAndTimedOut(fiber) { + var memoizedState = fiber.memoizedState; + return ( + 13 === fiber.tag && + null !== memoizedState && + null === memoizedState.dehydrated + ); + } + function doesFiberContain(parentFiber, childFiber) { + for ( + var parentFiberAlternate = parentFiber.alternate; + null !== childFiber; + + ) { + if (childFiber === parentFiber || childFiber === parentFiberAlternate) + return !0; + childFiber = childFiber.return; + } + return !1; + } function warn(format) { if (!suppressWarning) { for ( @@ -152,723 +290,57 @@ __DEV__ && args.unshift(!1); warningWWW.apply(null, args); } - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) - return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; + function injectInternals(internals) { + if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled) return !0; + if (!hook.supportsFiber) + return ( + error$jscomp$0( + "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" + ), + !0 + ); + try { + (rendererID = hook.inject(internals)), (injectedHook = hook); + } catch (err) { + error$jscomp$0("React instrumentation encountered an error: %s.", err); } - if ("object" === typeof type) - switch ( - ("number" === typeof type.tag && + return hook.checkDCE ? !0 : !1; + } + function onCommitRoot$1(root, eventPriority) { + if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) + try { + var didError = 128 === (root.current.flags & 128); + switch (eventPriority) { + case DiscreteEventPriority: + var schedulerPriority = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriority = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriority = NormalPriority$1; + break; + case IdleEventPriority: + schedulerPriority = IdlePriority; + break; + default: + schedulerPriority = NormalPriority$1; + } + injectedHook.onCommitFiberRoot( + rendererID, + root, + schedulerPriority, + didError + ); + } catch (err) { + hasLoggedError || + ((hasLoggedError = !0), error$jscomp$0( - "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." - ), - type.$$typeof) - ) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; - } - function getComponentNameFromOwner(owner) { - return "number" === typeof owner.tag - ? getComponentNameFromFiber(owner) - : "string" === typeof owner.name - ? owner.name - : null; - } - function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; - case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return ( - (fiber = type.render), - (fiber = fiber.displayName || fiber.name || ""), - type.displayName || - ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") - ); - case 7: - return "Fragment"; - case 26: - case 27: - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 14: - case 15: - if ("function" === typeof type) - return type.displayName || type.name || null; - if ("string" === typeof type) return type; - break; - case 23: - return "LegacyHidden"; - case 29: - type = fiber._debugInfo; - if (null != type) - for (var i = type.length - 1; 0 <= i; i--) - if ("string" === typeof type[i].name) return type[i].name; - if (null !== fiber.return) - return getComponentNameFromFiber(fiber.return); - } - return null; - } - function disabledLog() {} - function disableLogs() { - if (0 === disabledDepth) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: !0, - enumerable: !0, - value: disabledLog, - writable: !0 - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; - } - function reenableLogs() { - disabledDepth--; - if (0 === disabledDepth) { - var props = { configurable: !0, enumerable: !0, writable: !0 }; - Object.defineProperties(console, { - log: assign({}, props, { value: prevLog }), - info: assign({}, props, { value: prevInfo }), - warn: assign({}, props, { value: prevWarn }), - error: assign({}, props, { value: prevError }), - group: assign({}, props, { value: prevGroup }), - groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), - groupEnd: assign({}, props, { value: prevGroupEnd }) - }); - } - 0 > disabledDepth && - error$jscomp$0( - "disabledDepth fell below zero. This is a bug in React. Please file an issue." - ); - } - function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - var frame = componentFrameCache.get(fn); - if (void 0 !== frame) return frame; - reentry = !0; - frame = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher = null; - previousDispatcher = ReactSharedInternals.H; - ReactSharedInternals.H = null; - disableLogs(); - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$0) { - control = x$0; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$1) { - control = x$1; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = - RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - _RunInRootFrame$Deter = namePropDescriptor = 0; - namePropDescriptor < sampleLines.length && - !sampleLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - for ( - ; - _RunInRootFrame$Deter < controlLines.length && - !controlLines[_RunInRootFrame$Deter].includes( - "DetermineComponentFrameRoot" - ); - - ) - _RunInRootFrame$Deter++; - if ( - namePropDescriptor === sampleLines.length || - _RunInRootFrame$Deter === controlLines.length - ) - for ( - namePropDescriptor = sampleLines.length - 1, - _RunInRootFrame$Deter = controlLines.length - 1; - 1 <= namePropDescriptor && - 0 <= _RunInRootFrame$Deter && - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]; - - ) - _RunInRootFrame$Deter--; - for ( - ; - 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; - namePropDescriptor--, _RunInRootFrame$Deter-- - ) - if ( - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter] - ) { - if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { - do - if ( - (namePropDescriptor--, - _RunInRootFrame$Deter--, - 0 > _RunInRootFrame$Deter || - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]) - ) { - var _frame = - "\n" + - sampleLines[namePropDescriptor].replace( - " at new ", - " at " - ); - fn.displayName && - _frame.includes("") && - (_frame = _frame.replace("", fn.displayName)); - "function" === typeof fn && - componentFrameCache.set(fn, _frame); - return _frame; - } - while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); - } - break; - } - } - } finally { - (reentry = !1), - (ReactSharedInternals.H = previousDispatcher), - reenableLogs(), - (Error.prepareStackTrace = frame); - } - sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(sampleLines) - : ""; - "function" === typeof fn && componentFrameCache.set(fn, sampleLines); - return sampleLines; - } - function formatOwnerStack(error) { - var prevPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - error = error.stack; - Error.prepareStackTrace = prevPrepareStackTrace; - error.startsWith("Error: react-stack-top-frame\n") && - (error = error.slice(29)); - prevPrepareStackTrace = error.indexOf("\n"); - -1 !== prevPrepareStackTrace && - (error = error.slice(prevPrepareStackTrace + 1)); - prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); - -1 !== prevPrepareStackTrace && - (prevPrepareStackTrace = error.lastIndexOf( - "\n", - prevPrepareStackTrace - )); - if (-1 !== prevPrepareStackTrace) - error = error.slice(0, prevPrepareStackTrace); - else return ""; - return error; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do { - info += describeFiber(workInProgress); - var debugInfo = workInProgress._debugInfo; - if (debugInfo) - for (var i = debugInfo.length - 1; 0 <= i; i--) { - var entry = debugInfo[i]; - if ("string" === typeof entry.name) { - var JSCompiler_temp_const = info, - env = entry.env; - var JSCompiler_inline_result = describeBuiltInComponentFrame( - entry.name + (env ? " [" + env + "]" : "") - ); - info = JSCompiler_temp_const + JSCompiler_inline_result; - } - } - workInProgress = workInProgress.return; - } while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function describeFunctionComponentFrameWithoutLineNumber(fn) { - return (fn = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(fn) - : ""; - } - function getOwnerStackByFiberInDev(workInProgress) { - if (!enableOwnerStacks) return ""; - try { - var info = ""; - 6 === workInProgress.tag && (workInProgress = workInProgress.return); - switch (workInProgress.tag) { - case 26: - case 27: - case 5: - info += describeBuiltInComponentFrame(workInProgress.type); - break; - case 13: - info += describeBuiltInComponentFrame("Suspense"); - break; - case 19: - info += describeBuiltInComponentFrame("SuspenseList"); - break; - case 0: - case 15: - case 1: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type - )); - break; - case 11: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type.render - )); - } - for (; workInProgress; ) - if ("number" === typeof workInProgress.tag) { - var fiber = workInProgress; - workInProgress = fiber._debugOwner; - var debugStack = fiber._debugStack; - workInProgress && - debugStack && - ("string" !== typeof debugStack && - (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), - "" !== debugStack && (info += "\n" + debugStack)); - } else if (null != workInProgress.debugStack) { - var ownerStack = workInProgress.debugStack; - (workInProgress = workInProgress.owner) && - ownerStack && - (info += "\n" + formatOwnerStack(ownerStack)); - } else break; - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function getCurrentFiberOwnerNameInDevOrNull() { - if (null === current) return null; - var owner = current._debugOwner; - return null != owner ? getComponentNameFromOwner(owner) : null; - } - function getCurrentFiberStackInDev() { - return null === current - ? "" - : enableOwnerStacks - ? getOwnerStackByFiberInDev(current) - : getStackByFiberInDevAndProd(current); - } - function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { - var previousFiber = current; - ReactSharedInternals.getCurrentStack = - null === fiber ? null : getCurrentFiberStackInDev; - isRendering = !1; - current = fiber; - try { - return enableOwnerStacks && null !== fiber && fiber._debugTask - ? fiber._debugTask.run( - callback.bind(null, arg0, arg1, arg2, arg3, arg4) - ) - : callback(arg0, arg1, arg2, arg3, arg4); - } finally { - current = previousFiber; - } - throw Error( - "runWithFiberInDEV should never be called in production. This is a bug in React." - ); - } - function getNearestMountedFiber(fiber) { - var node = fiber, - nearestMounted = fiber; - if (fiber.alternate) for (; node.return; ) node = node.return; - else { - fiber = node; - do - (node = fiber), - 0 !== (node.flags & 4098) && (nearestMounted = node.return), - (fiber = node.return); - while (fiber); - } - return 3 === node.tag ? nearestMounted : null; - } - function getSuspenseInstanceFromFiber(fiber) { - if (13 === fiber.tag) { - var suspenseState = fiber.memoizedState; - null === suspenseState && - ((fiber = fiber.alternate), - null !== fiber && (suspenseState = fiber.memoizedState)); - if (null !== suspenseState) return suspenseState.dehydrated; - } - return null; - } - function assertIsMounted(fiber) { - if (getNearestMountedFiber(fiber) !== fiber) - throw Error("Unable to find node on an unmounted component."); - } - function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - if (!alternate) { - alternate = getNearestMountedFiber(fiber); - if (null === alternate) - throw Error("Unable to find node on an unmounted component."); - return alternate !== fiber ? null : fiber; - } - for (var a = fiber, b = alternate; ; ) { - var parentA = a.return; - if (null === parentA) break; - var parentB = parentA.alternate; - if (null === parentB) { - b = parentA.return; - if (null !== b) { - a = b; - continue; - } - break; - } - if (parentA.child === parentB.child) { - for (parentB = parentA.child; parentB; ) { - if (parentB === a) return assertIsMounted(parentA), fiber; - if (parentB === b) return assertIsMounted(parentA), alternate; - parentB = parentB.sibling; - } - throw Error("Unable to find node on an unmounted component."); - } - if (a.return !== b.return) (a = parentA), (b = parentB); - else { - for (var didFindChild = !1, _child = parentA.child; _child; ) { - if (_child === a) { - didFindChild = !0; - a = parentA; - b = parentB; - break; - } - if (_child === b) { - didFindChild = !0; - b = parentA; - a = parentB; - break; - } - _child = _child.sibling; - } - if (!didFindChild) { - for (_child = parentB.child; _child; ) { - if (_child === a) { - didFindChild = !0; - a = parentB; - b = parentA; - break; - } - if (_child === b) { - didFindChild = !0; - b = parentB; - a = parentA; - break; - } - _child = _child.sibling; - } - if (!didFindChild) - throw Error( - "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." - ); - } - } - if (a.alternate !== b) - throw Error( - "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." - ); - } - if (3 !== a.tag) - throw Error("Unable to find node on an unmounted component."); - return a.stateNode.current === a ? fiber : alternate; - } - function findCurrentHostFiber(parent) { - parent = findCurrentFiberUsingSlowPath(parent); - return null !== parent ? findCurrentHostFiberImpl(parent) : null; - } - function findCurrentHostFiberImpl(node) { - var tag = node.tag; - if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; - for (node = node.child; null !== node; ) { - tag = findCurrentHostFiberImpl(node); - if (null !== tag) return tag; - node = node.sibling; - } - return null; - } - function isFiberSuspenseAndTimedOut(fiber) { - var memoizedState = fiber.memoizedState; - return ( - 13 === fiber.tag && - null !== memoizedState && - null === memoizedState.dehydrated - ); - } - function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; - } - function injectInternals(internals) { - if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; - var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (hook.isDisabled) return !0; - if (!hook.supportsFiber) - return ( - error$jscomp$0( - "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" - ), - !0 - ); - try { - (rendererID = hook.inject(internals)), (injectedHook = hook); - } catch (err) { - error$jscomp$0("React instrumentation encountered an error: %s.", err); - } - return hook.checkDCE ? !0 : !1; - } - function onCommitRoot$1(root, eventPriority) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) - try { - var didError = 128 === (root.current.flags & 128); - switch (eventPriority) { - case DiscreteEventPriority: - var schedulerPriority = ImmediatePriority; - break; - case ContinuousEventPriority: - schedulerPriority = UserBlockingPriority; - break; - case DefaultEventPriority: - schedulerPriority = NormalPriority$1; - break; - case IdleEventPriority: - schedulerPriority = IdlePriority; - break; - default: - schedulerPriority = NormalPriority$1; - } - injectedHook.onCommitFiberRoot( - rendererID, - root, - schedulerPriority, - didError - ); - } catch (err) { - hasLoggedError || - ((hasLoggedError = !0), - error$jscomp$0( - "React instrumentation encountered an error: %s", - err - )); + "React instrumentation encountered an error: %s", + err + )); } } function setIsStrictModeForDevtools(newIsStrictMode) { @@ -1051,24 +523,158 @@ __DEV__ && ? wipLanes : nextLanes; } - function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); + function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); + } + function computeExpirationTime(lane, currentTime) { + switch (lane) { + case 1: + case 2: + case 4: + case 8: + return currentTime + syncLaneExpirationMs; + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return currentTime + transitionLaneExpirationMs; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + return enableRetryLaneExpiration + ? currentTime + retryLaneExpirationMs + : -1; + case 67108864: + case 134217728: + case 268435456: + case 536870912: + case 1073741824: + return -1; + default: + return ( + error$jscomp$0( + "Should have found matching lanes. This is a bug in React." + ), + -1 + ); + } + } + function claimNextTransitionLane() { + var lane = nextTransitionLane; + nextTransitionLane <<= 1; + 0 === (nextTransitionLane & 4194176) && (nextTransitionLane = 128); + return lane; + } + function claimNextRetryLane() { + var lane = nextRetryLane; + nextRetryLane <<= 1; + 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304); + return lane; + } + function createLaneMap(initial) { + for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); + return laneMap; + } + function markRootFinished( + root, + finishedLanes, + remainingLanes, + spawnedLane, + updatedLanes, + suspendedRetryLanes + ) { + var previouslyPendingLanes = root.pendingLanes; + root.pendingLanes = remainingLanes; + root.suspendedLanes = 0; + root.pingedLanes = 0; + root.warmLanes = 0; + root.expiredLanes &= remainingLanes; + root.entangledLanes &= remainingLanes; + root.errorRecoveryDisabledLanes &= remainingLanes; + root.shellSuspendCounter = 0; + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, + hiddenUpdates = root.hiddenUpdates; + for ( + remainingLanes = previouslyPendingLanes & ~remainingLanes; + 0 < remainingLanes; + + ) { + var index = 31 - clz32(remainingLanes), + lane = 1 << index; + entanglements[index] = 0; + expirationTimes[index] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index]; + if (null !== hiddenUpdatesForLane) + for ( + hiddenUpdates[index] = null, index = 0; + index < hiddenUpdatesForLane.length; + index++ + ) { + var update = hiddenUpdatesForLane[index]; + null !== update && (update.lane &= -536870913); + } + remainingLanes &= ~lane; + } + 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + enableSiblingPrerendering && + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); + } + function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { + root.pendingLanes |= spawnedLane; + root.suspendedLanes &= ~spawnedLane; + var spawnedLaneIndex = 31 - clz32(spawnedLane); + root.entangledLanes |= spawnedLane; + root.entanglements[spawnedLaneIndex] = + root.entanglements[spawnedLaneIndex] | + 1073741824 | + (entangledLanes & 4194218); + } + function markRootEntangled(root, entangledLanes) { + var rootEntangledLanes = (root.entangledLanes |= entangledLanes); + for (root = root.entanglements; rootEntangledLanes; ) { + var index = 31 - clz32(rootEntangledLanes), + lane = 1 << index; + (lane & entangledLanes) | (root[index] & entangledLanes) && + (root[index] |= entangledLanes); + rootEntangledLanes &= ~lane; + } } - function computeExpirationTime(lane, currentTime) { + function getBumpedLaneForHydrationByLane(lane) { switch (lane) { - case 1: case 2: - case 4: + lane = 1; + break; case 8: - return currentTime + syncLaneExpirationMs; - case 16: + lane = 4; + break; case 32: - case 64: + lane = 16; + break; case 128: case 256: case 512: @@ -1084,566 +690,961 @@ __DEV__ && case 524288: case 1048576: case 2097152: - return currentTime + transitionLaneExpirationMs; case 4194304: case 8388608: case 16777216: case 33554432: - return enableRetryLaneExpiration - ? currentTime + retryLaneExpirationMs - : -1; - case 67108864: - case 134217728: + lane = 64; + break; case 268435456: - case 536870912: - case 1073741824: - return -1; + lane = 134217728; + break; default: - return ( - error$jscomp$0( - "Should have found matching lanes. This is a bug in React." - ), - -1 + lane = 0; + } + return lane; + } + function addFiberToLanesMap(root, fiber, lanes) { + if (isDevToolsPresent) + for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { + var index = 31 - clz32(lanes), + lane = 1 << index; + root[index].add(fiber); + lanes &= ~lane; + } + } + function movePendingFibersToMemoized(root, lanes) { + if (isDevToolsPresent) + for ( + var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap, + memoizedUpdaters = root.memoizedUpdaters; + 0 < lanes; + + ) { + var index = 31 - clz32(lanes); + root = 1 << index; + index = pendingUpdatersLaneMap[index]; + 0 < index.size && + (index.forEach(function (fiber) { + var alternate = fiber.alternate; + (null !== alternate && memoizedUpdaters.has(alternate)) || + memoizedUpdaters.add(fiber); + }), + index.clear()); + lanes &= ~root; + } + } + function getTransitionsForLanes(root, lanes) { + if (!enableTransitionTracing) return null; + for (var transitionsForLanes = []; 0 < lanes; ) { + var index = 31 - clz32(lanes), + lane = 1 << index; + index = root.transitionLanes[index]; + null !== index && + index.forEach(function (transition) { + transitionsForLanes.push(transition); + }); + lanes &= ~lane; + } + return 0 === transitionsForLanes.length ? null : transitionsForLanes; + } + function clearTransitionsForLanes(root, lanes) { + if (enableTransitionTracing) + for (; 0 < lanes; ) { + var index = 31 - clz32(lanes), + lane = 1 << index; + null !== root.transitionLanes[index] && + (root.transitionLanes[index] = null); + lanes &= ~lane; + } + } + function lanesToEventPriority(lanes) { + lanes &= -lanes; + return 0 !== DiscreteEventPriority && DiscreteEventPriority < lanes + ? 0 !== ContinuousEventPriority && ContinuousEventPriority < lanes + ? 0 !== (lanes & 134217727) + ? DefaultEventPriority + : IdleEventPriority + : ContinuousEventPriority + : DiscreteEventPriority; + } + function noop$4() {} + function resolveDispatcher() { + var dispatcher = ReactSharedInternals.H; + null === dispatcher && + error$jscomp$0( + "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." + ); + return dispatcher; + } + function bindToConsole(methodName, args, badgeName) { + var offset = 0; + switch (methodName) { + case "dir": + case "dirxml": + case "groupEnd": + case "table": + return bind.apply(console[methodName], [console].concat(args)); + case "assert": + offset = 1; + } + args = args.slice(0); + "string" === typeof args[offset] + ? args.splice( + offset, + 1, + "%c%s%c " + args[offset], + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + badgeName + " ", + "" + ) + : args.splice( + offset, + 0, + "%c%s%c ", + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + badgeName + " ", + "" ); + args.unshift(console); + return bind.apply(console[methodName], args); + } + function createCursor(defaultValue) { + return { current: defaultValue }; + } + function pop(cursor, fiber) { + 0 > index$jscomp$0 + ? error$jscomp$0("Unexpected pop.") + : (fiber !== fiberStack[index$jscomp$0] && + error$jscomp$0("Unexpected Fiber popped."), + (cursor.current = valueStack[index$jscomp$0]), + (valueStack[index$jscomp$0] = null), + (fiberStack[index$jscomp$0] = null), + index$jscomp$0--); + } + function push(cursor, value, fiber) { + index$jscomp$0++; + valueStack[index$jscomp$0] = cursor.current; + fiberStack[index$jscomp$0] = fiber; + cursor.current = value; + } + function requiredContext(c) { + null === c && + error$jscomp$0( + "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." + ); + return c; + } + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance, fiber); + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor, null, fiber); + var nextRootContext = nextRootInstance.nodeType; + switch (nextRootContext) { + case DOCUMENT_NODE: + case DOCUMENT_FRAGMENT_NODE: + nextRootContext = + nextRootContext === DOCUMENT_NODE ? "#document" : "#fragment"; + nextRootInstance = (nextRootInstance = + nextRootInstance.documentElement) + ? (nextRootInstance = nextRootInstance.namespaceURI) + ? getOwnHostContext(nextRootInstance) + : HostContextNamespaceNone + : HostContextNamespaceNone; + break; + default: + if ( + ((nextRootInstance = + nextRootContext === COMMENT_NODE + ? nextRootInstance.parentNode + : nextRootInstance), + (nextRootContext = nextRootInstance.tagName), + (nextRootInstance = nextRootInstance.namespaceURI)) + ) + (nextRootInstance = getOwnHostContext(nextRootInstance)), + (nextRootInstance = getChildHostContextProd( + nextRootInstance, + nextRootContext + )); + else + switch (nextRootContext) { + case "svg": + nextRootInstance = HostContextNamespaceSvg; + break; + case "math": + nextRootInstance = HostContextNamespaceMath; + break; + default: + nextRootInstance = HostContextNamespaceNone; + } + } + nextRootContext = nextRootContext.toLowerCase(); + nextRootContext = updatedAncestorInfoDev(null, nextRootContext); + nextRootContext = { + context: nextRootInstance, + ancestorInfo: nextRootContext + }; + pop(contextStackCursor, fiber); + push(contextStackCursor, nextRootContext, fiber); + } + function popHostContainer(fiber) { + pop(contextStackCursor, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); + } + function getHostContext() { + return requiredContext(contextStackCursor.current); + } + function pushHostContext(fiber) { + null !== fiber.memoizedState && + push(hostTransitionProviderCursor, fiber, fiber); + var context = requiredContext(contextStackCursor.current); + var type = fiber.type; + var nextContext = getChildHostContextProd(context.context, type); + type = updatedAncestorInfoDev(context.ancestorInfo, type); + nextContext = { context: nextContext, ancestorInfo: type }; + context !== nextContext && + (push(contextFiberStackCursor, fiber, fiber), + push(contextStackCursor, nextContext, fiber)); + } + function popHostContext(fiber) { + contextFiberStackCursor.current === fiber && + (pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber)); + hostTransitionProviderCursor.current === fiber && + (pop(hostTransitionProviderCursor, fiber), + (HostTransitionContext._currentValue = NotPendingTransition)); + } + function typeName(value) { + return ( + ("function" === typeof Symbol && + Symbol.toStringTag && + value[Symbol.toStringTag]) || + value.constructor.name || + "Object" + ); + } + function willCoercionThrow(value) { + try { + return testStringCoercion(value), !1; + } catch (e) { + return !0; } } - function claimNextTransitionLane() { - var lane = nextTransitionLane; - nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194176) && (nextTransitionLane = 128); - return lane; + function testStringCoercion(value) { + return "" + value; } - function claimNextRetryLane() { - var lane = nextRetryLane; - nextRetryLane <<= 1; - 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304); - return lane; + function checkAttributeStringCoercion(value, attributeName) { + if (willCoercionThrow(value)) + return ( + error$jscomp$0( + "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", + attributeName, + typeName(value) + ), + testStringCoercion(value) + ); } - function createLaneMap(initial) { - for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); - return laneMap; + function checkCSSPropertyStringCoercion(value, propName) { + if (willCoercionThrow(value)) + return ( + error$jscomp$0( + "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", + propName, + typeName(value) + ), + testStringCoercion(value) + ); } - function markRootFinished( - root, - finishedLanes, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes - ) { - var previouslyPendingLanes = root.pendingLanes; - root.pendingLanes = remainingLanes; - root.suspendedLanes = 0; - root.pingedLanes = 0; - root.warmLanes = 0; - root.expiredLanes &= remainingLanes; - root.entangledLanes &= remainingLanes; - root.errorRecoveryDisabledLanes &= remainingLanes; - root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, - hiddenUpdates = root.hiddenUpdates; - for ( - remainingLanes = previouslyPendingLanes & ~remainingLanes; - 0 < remainingLanes; - - ) { - var index = 31 - clz32(remainingLanes), - lane = 1 << index; - entanglements[index] = 0; - expirationTimes[index] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index]; - if (null !== hiddenUpdatesForLane) - for ( - hiddenUpdates[index] = null, index = 0; - index < hiddenUpdatesForLane.length; - index++ - ) { - var update = hiddenUpdatesForLane[index]; - null !== update && (update.lane &= -536870913); - } - remainingLanes &= ~lane; - } - 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - enableSiblingPrerendering && - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); + function checkFormFieldValueStringCoercion(value) { + if (willCoercionThrow(value)) + return ( + error$jscomp$0( + "Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", + typeName(value) + ), + testStringCoercion(value) + ); } - function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { - root.pendingLanes |= spawnedLane; - root.suspendedLanes &= ~spawnedLane; - var spawnedLaneIndex = 31 - clz32(spawnedLane); - root.entangledLanes |= spawnedLane; - root.entanglements[spawnedLaneIndex] = - root.entanglements[spawnedLaneIndex] | - 1073741824 | - (entangledLanes & 4194218); + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) + return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; } - function markRootEntangled(root, entangledLanes) { - var rootEntangledLanes = (root.entangledLanes |= entangledLanes); - for (root = root.entanglements; rootEntangledLanes; ) { - var index = 31 - clz32(rootEntangledLanes), - lane = 1 << index; - (lane & entangledLanes) | (root[index] & entangledLanes) && - (root[index] |= entangledLanes); - rootEntangledLanes &= ~lane; + function resolveUpdatePriority() { + var updatePriority = Internals.p; + if (0 !== updatePriority) return updatePriority; + updatePriority = window.event; + return void 0 === updatePriority + ? DefaultEventPriority + : getEventPriority(updatePriority.type); + } + function runWithPriority(priority, fn) { + var previousPriority = Internals.p; + try { + return (Internals.p = priority), fn(); + } finally { + Internals.p = previousPriority; } } - function getBumpedLaneForHydrationByLane(lane) { - switch (lane) { - case 2: - lane = 1; - break; - case 8: - lane = 4; - break; - case 32: - lane = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - lane = 64; - break; - case 268435456: - lane = 134217728; - break; - default: - lane = 0; + function registerTwoPhaseEvent(registrationName, dependencies) { + registerDirectEvent(registrationName, dependencies); + registerDirectEvent(registrationName + "Capture", dependencies); + } + function registerDirectEvent(registrationName, dependencies) { + registrationNameDependencies[registrationName] && + error$jscomp$0( + "EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", + registrationName + ); + registrationNameDependencies[registrationName] = dependencies; + var lowerCasedName = registrationName.toLowerCase(); + possibleRegistrationNames[lowerCasedName] = registrationName; + "onDoubleClick" === registrationName && + (possibleRegistrationNames.ondblclick = registrationName); + for ( + registrationName = 0; + registrationName < dependencies.length; + registrationName++ + ) + allNativeEvents.add(dependencies[registrationName]); + } + function checkControlledValueProps(tagName, props) { + hasReadOnlyValue[props.type] || + props.onChange || + props.onInput || + props.readOnly || + props.disabled || + null == props.value || + ("select" === tagName + ? error$jscomp$0( + "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`." + ) + : error$jscomp$0( + "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`." + )); + props.onChange || + props.readOnly || + props.disabled || + null == props.checked || + error$jscomp$0( + "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`." + ); + } + function isAttributeNameSafe(attributeName) { + if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) + return !0; + if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) + return !1; + if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) + return (validatedAttributeNameCache[attributeName] = !0); + illegalAttributeNameCache[attributeName] = !0; + error$jscomp$0("Invalid attribute name: `%s`", attributeName); + return !1; + } + function getValueForAttributeOnCustomComponent(node, name, expected) { + if (isAttributeNameSafe(name)) { + if (!node.hasAttribute(name)) { + switch (typeof expected) { + case "symbol": + case "object": + return expected; + case "function": + return expected; + case "boolean": + if (!1 === expected) return expected; + } + return void 0 === expected ? void 0 : null; + } + node = node.getAttribute(name); + if ("" === node && !0 === expected) return !0; + checkAttributeStringCoercion(expected, name); + return node === "" + expected ? expected : node; } - return lane; } - function addFiberToLanesMap(root, fiber, lanes) { - if (isDevToolsPresent) - for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index = 31 - clz32(lanes), - lane = 1 << index; - root[index].add(fiber); - lanes &= ~lane; + function setValueForAttribute(node, name, value) { + if (isAttributeNameSafe(name)) + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + node.removeAttribute(name); + return; + case "boolean": + var prefix = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix && "aria-" !== prefix) { + node.removeAttribute(name); + return; + } + } + checkAttributeStringCoercion(value, name); + node.setAttribute( + name, + enableTrustedTypesIntegration ? value : "" + value + ); } } - function movePendingFibersToMemoized(root, lanes) { - if (isDevToolsPresent) - for ( - var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap, - memoizedUpdaters = root.memoizedUpdaters; - 0 < lanes; - - ) { - var index = 31 - clz32(lanes); - root = 1 << index; - index = pendingUpdatersLaneMap[index]; - 0 < index.size && - (index.forEach(function (fiber) { - var alternate = fiber.alternate; - (null !== alternate && memoizedUpdaters.has(alternate)) || - memoizedUpdaters.add(fiber); - }), - index.clear()); - lanes &= ~root; + function setValueForKnownAttribute(node, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; } - } - function getTransitionsForLanes(root, lanes) { - if (!enableTransitionTracing) return null; - for (var transitionsForLanes = []; 0 < lanes; ) { - var index = 31 - clz32(lanes), - lane = 1 << index; - index = root.transitionLanes[index]; - null !== index && - index.forEach(function (transition) { - transitionsForLanes.push(transition); - }); - lanes &= ~lane; + checkAttributeStringCoercion(value, name); + node.setAttribute( + name, + enableTrustedTypesIntegration ? value : "" + value + ); } - return 0 === transitionsForLanes.length ? null : transitionsForLanes; } - function clearTransitionsForLanes(root, lanes) { - if (enableTransitionTracing) - for (; 0 < lanes; ) { - var index = 31 - clz32(lanes), - lane = 1 << index; - null !== root.transitionLanes[index] && - (root.transitionLanes[index] = null); - lanes &= ~lane; + function setValueForNamespacedAttribute(node, namespace, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; } - } - function lanesToEventPriority(lanes) { - lanes &= -lanes; - return 0 !== DiscreteEventPriority && DiscreteEventPriority < lanes - ? 0 !== ContinuousEventPriority && ContinuousEventPriority < lanes - ? 0 !== (lanes & 134217727) - ? DefaultEventPriority - : IdleEventPriority - : ContinuousEventPriority - : DiscreteEventPriority; - } - function noop$4() {} - function resolveDispatcher() { - var dispatcher = ReactSharedInternals.H; - null === dispatcher && - error$jscomp$0( - "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." + checkAttributeStringCoercion(value, name); + node.setAttributeNS( + namespace, + name, + enableTrustedTypesIntegration ? value : "" + value ); - return dispatcher; - } - function bindToConsole(methodName, args, badgeName) { - var offset = 0; - switch (methodName) { - case "dir": - case "dirxml": - case "groupEnd": - case "table": - return bind.apply(console[methodName], [console].concat(args)); - case "assert": - offset = 1; } - args = args.slice(0); - "string" === typeof args[offset] - ? args.splice( - offset, - 1, - "%c%s%c " + args[offset], - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ) - : args.splice( - offset, - 0, - "%c%s%c ", - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ); - args.unshift(console); - return bind.apply(console[methodName], args); } - function createCursor(defaultValue) { - return { current: defaultValue }; + function disabledLog() {} + function disableLogs() { + if (0 === disabledDepth) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: !0, + enumerable: !0, + value: disabledLog, + writable: !0 + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; } - function pop(cursor, fiber) { - 0 > index$jscomp$0 - ? error$jscomp$0("Unexpected pop.") - : (fiber !== fiberStack[index$jscomp$0] && - error$jscomp$0("Unexpected Fiber popped."), - (cursor.current = valueStack[index$jscomp$0]), - (valueStack[index$jscomp$0] = null), - (fiberStack[index$jscomp$0] = null), - index$jscomp$0--); + function reenableLogs() { + disabledDepth--; + if (0 === disabledDepth) { + var props = { configurable: !0, enumerable: !0, writable: !0 }; + Object.defineProperties(console, { + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) + }); + } + 0 > disabledDepth && + error$jscomp$0( + "disabledDepth fell below zero. This is a bug in React. Please file an issue." + ); } - function push(cursor, value, fiber) { - index$jscomp$0++; - valueStack[index$jscomp$0] = cursor.current; - fiberStack[index$jscomp$0] = fiber; - cursor.current = value; + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; } - function requiredContext(c) { - null === c && - error$jscomp$0( - "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + var frame = componentFrameCache.get(fn); + if (void 0 !== frame) return frame; + reentry = !0; + frame = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher = null; + previousDispatcher = ReactSharedInternals.H; + ReactSharedInternals.H = null; + disableLogs(); + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$0) { + control = x$0; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$1) { + control = x$1; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" ); - return c; - } - function pushHostContainer(fiber, nextRootInstance) { - push(rootInstanceStackCursor, nextRootInstance, fiber); - push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor, null, fiber); - var nextRootContext = nextRootInstance.nodeType; - switch (nextRootContext) { - case DOCUMENT_NODE: - case DOCUMENT_FRAGMENT_NODE: - nextRootContext = - nextRootContext === DOCUMENT_NODE ? "#document" : "#fragment"; - nextRootInstance = (nextRootInstance = - nextRootInstance.documentElement) - ? (nextRootInstance = nextRootInstance.namespaceURI) - ? getOwnHostContext(nextRootInstance) - : HostContextNamespaceNone - : HostContextNamespaceNone; - break; - default: + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = + RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + _RunInRootFrame$Deter = namePropDescriptor = 0; + namePropDescriptor < sampleLines.length && + !sampleLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + for ( + ; + _RunInRootFrame$Deter < controlLines.length && + !controlLines[_RunInRootFrame$Deter].includes( + "DetermineComponentFrameRoot" + ); + + ) + _RunInRootFrame$Deter++; if ( - ((nextRootInstance = - nextRootContext === COMMENT_NODE - ? nextRootInstance.parentNode - : nextRootInstance), - (nextRootContext = nextRootInstance.tagName), - (nextRootInstance = nextRootInstance.namespaceURI)) + namePropDescriptor === sampleLines.length || + _RunInRootFrame$Deter === controlLines.length ) - (nextRootInstance = getOwnHostContext(nextRootInstance)), - (nextRootInstance = getChildHostContextProd( - nextRootInstance, - nextRootContext - )); - else - switch (nextRootContext) { - case "svg": - nextRootInstance = HostContextNamespaceSvg; - break; - case "math": - nextRootInstance = HostContextNamespaceMath; - break; - default: - nextRootInstance = HostContextNamespaceNone; + for ( + namePropDescriptor = sampleLines.length - 1, + _RunInRootFrame$Deter = controlLines.length - 1; + 1 <= namePropDescriptor && + 0 <= _RunInRootFrame$Deter && + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]; + + ) + _RunInRootFrame$Deter--; + for ( + ; + 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; + namePropDescriptor--, _RunInRootFrame$Deter-- + ) + if ( + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter] + ) { + if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { + do + if ( + (namePropDescriptor--, + _RunInRootFrame$Deter--, + 0 > _RunInRootFrame$Deter || + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]) + ) { + var _frame = + "\n" + + sampleLines[namePropDescriptor].replace( + " at new ", + " at " + ); + fn.displayName && + _frame.includes("") && + (_frame = _frame.replace("", fn.displayName)); + "function" === typeof fn && + componentFrameCache.set(fn, _frame); + return _frame; + } + while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); + } + break; } + } + } finally { + (reentry = !1), + (ReactSharedInternals.H = previousDispatcher), + reenableLogs(), + (Error.prepareStackTrace = frame); } - nextRootContext = nextRootContext.toLowerCase(); - nextRootContext = updatedAncestorInfoDev(null, nextRootContext); - nextRootContext = { - context: nextRootInstance, - ancestorInfo: nextRootContext - }; - pop(contextStackCursor, fiber); - push(contextStackCursor, nextRootContext, fiber); - } - function popHostContainer(fiber) { - pop(contextStackCursor, fiber); - pop(contextFiberStackCursor, fiber); - pop(rootInstanceStackCursor, fiber); + sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(sampleLines) + : ""; + "function" === typeof fn && componentFrameCache.set(fn, sampleLines); + return sampleLines; } - function getHostContext() { - return requiredContext(contextStackCursor.current); + function formatOwnerStack(error) { + var prevPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + error = error.stack; + Error.prepareStackTrace = prevPrepareStackTrace; + error.startsWith("Error: react-stack-top-frame\n") && + (error = error.slice(29)); + prevPrepareStackTrace = error.indexOf("\n"); + -1 !== prevPrepareStackTrace && + (error = error.slice(prevPrepareStackTrace + 1)); + prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); + -1 !== prevPrepareStackTrace && + (prevPrepareStackTrace = error.lastIndexOf( + "\n", + prevPrepareStackTrace + )); + if (-1 !== prevPrepareStackTrace) + error = error.slice(0, prevPrepareStackTrace); + else return ""; + return error; } - function pushHostContext(fiber) { - null !== fiber.memoizedState && - push(hostTransitionProviderCursor, fiber, fiber); - var context = requiredContext(contextStackCursor.current); - var type = fiber.type; - var nextContext = getChildHostContextProd(context.context, type); - type = updatedAncestorInfoDev(context.ancestorInfo, type); - nextContext = { context: nextContext, ancestorInfo: type }; - context !== nextContext && - (push(contextFiberStackCursor, fiber, fiber), - push(contextStackCursor, nextContext, fiber)); + function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } } - function popHostContext(fiber) { - contextFiberStackCursor.current === fiber && - (pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber)); - hostTransitionProviderCursor.current === fiber && - (pop(hostTransitionProviderCursor, fiber), - (HostTransitionContext._currentValue = NotPendingTransition)); + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do { + info += describeFiber(workInProgress); + var debugInfo = workInProgress._debugInfo; + if (debugInfo) + for (var i = debugInfo.length - 1; 0 <= i; i--) { + var entry = debugInfo[i]; + if ("string" === typeof entry.name) { + var JSCompiler_temp_const = info, + env = entry.env; + var JSCompiler_inline_result = describeBuiltInComponentFrame( + entry.name + (env ? " [" + env + "]" : "") + ); + info = JSCompiler_temp_const + JSCompiler_inline_result; + } + } + workInProgress = workInProgress.return; + } while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } - function typeName(value) { - return ( - ("function" === typeof Symbol && - Symbol.toStringTag && - value[Symbol.toStringTag]) || - value.constructor.name || - "Object" - ); + function describeFunctionComponentFrameWithoutLineNumber(fn) { + return (fn = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(fn) + : ""; } - function willCoercionThrow(value) { + function getOwnerStackByFiberInDev(workInProgress) { + if (!enableOwnerStacks) return ""; try { - return testStringCoercion(value), !1; - } catch (e) { - return !0; + var info = ""; + 6 === workInProgress.tag && (workInProgress = workInProgress.return); + switch (workInProgress.tag) { + case 26: + case 27: + case 5: + info += describeBuiltInComponentFrame(workInProgress.type); + break; + case 13: + info += describeBuiltInComponentFrame("Suspense"); + break; + case 19: + info += describeBuiltInComponentFrame("SuspenseList"); + break; + case 0: + case 15: + case 1: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type + )); + break; + case 11: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type.render + )); + } + for (; workInProgress; ) + if ("number" === typeof workInProgress.tag) { + var fiber = workInProgress; + workInProgress = fiber._debugOwner; + var debugStack = fiber._debugStack; + workInProgress && + debugStack && + ("string" !== typeof debugStack && + (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), + "" !== debugStack && (info += "\n" + debugStack)); + } else if (null != workInProgress.debugStack) { + var ownerStack = workInProgress.debugStack; + (workInProgress = workInProgress.owner) && + ownerStack && + (info += "\n" + formatOwnerStack(ownerStack)); + } else break; + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; } } - function testStringCoercion(value) { - return "" + value; - } - function checkAttributeStringCoercion(value, attributeName) { - if (willCoercionThrow(value)) - return ( - error$jscomp$0( - "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", - attributeName, - typeName(value) - ), - testStringCoercion(value) - ); - } - function checkCSSPropertyStringCoercion(value, propName) { - if (willCoercionThrow(value)) - return ( - error$jscomp$0( - "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", - propName, - typeName(value) - ), - testStringCoercion(value) - ); - } - function checkFormFieldValueStringCoercion(value) { - if (willCoercionThrow(value)) - return ( - error$jscomp$0( - "Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", - typeName(value) - ), - testStringCoercion(value) - ); + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch ( + ("number" === typeof type.tag && + error$jscomp$0( + "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." + ), + type.$$typeof) + ) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; } - function resolveUpdatePriority() { - var updatePriority = Internals.p; - if (0 !== updatePriority) return updatePriority; - updatePriority = window.event; - return void 0 === updatePriority - ? DefaultEventPriority - : getEventPriority(updatePriority.type); + function getComponentNameFromOwner(owner) { + return "number" === typeof owner.tag + ? getComponentNameFromFiber(owner) + : "string" === typeof owner.name + ? owner.name + : null; } - function runWithPriority(priority, fn) { - var previousPriority = Internals.p; - try { - return (Internals.p = priority), fn(); - } finally { - Internals.p = previousPriority; + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return enableRenderableContext + ? (type._context.displayName || "Context") + ".Consumer" + : (type.displayName || "Context") + ".Consumer"; + case 10: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") + ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; + break; + case 23: + return "LegacyHidden"; + case 29: + type = fiber._debugInfo; + if (null != type) + for (var i = type.length - 1; 0 <= i; i--) + if ("string" === typeof type[i].name) return type[i].name; + if (null !== fiber.return) + return getComponentNameFromFiber(fiber.return); } + return null; } - function registerTwoPhaseEvent(registrationName, dependencies) { - registerDirectEvent(registrationName, dependencies); - registerDirectEvent(registrationName + "Capture", dependencies); + function getCurrentFiberOwnerNameInDevOrNull() { + if (null === current) return null; + var owner = current._debugOwner; + return null != owner ? getComponentNameFromOwner(owner) : null; } - function registerDirectEvent(registrationName, dependencies) { - registrationNameDependencies[registrationName] && - error$jscomp$0( - "EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", - registrationName - ); - registrationNameDependencies[registrationName] = dependencies; - var lowerCasedName = registrationName.toLowerCase(); - possibleRegistrationNames[lowerCasedName] = registrationName; - "onDoubleClick" === registrationName && - (possibleRegistrationNames.ondblclick = registrationName); - for ( - registrationName = 0; - registrationName < dependencies.length; - registrationName++ - ) - allNativeEvents.add(dependencies[registrationName]); + function getCurrentFiberStackInDev() { + return null === current + ? "" + : enableOwnerStacks + ? getOwnerStackByFiberInDev(current) + : getStackByFiberInDevAndProd(current); } - function checkControlledValueProps(tagName, props) { - hasReadOnlyValue[props.type] || - props.onChange || - props.onInput || - props.readOnly || - props.disabled || - null == props.value || - ("select" === tagName - ? error$jscomp$0( - "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`." + function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { + var previousFiber = current; + ReactSharedInternals.getCurrentStack = + null === fiber ? null : getCurrentFiberStackInDev; + isRendering = !1; + current = fiber; + try { + return enableOwnerStacks && null !== fiber && fiber._debugTask + ? fiber._debugTask.run( + callback.bind(null, arg0, arg1, arg2, arg3, arg4) ) - : error$jscomp$0( - "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`." - )); - props.onChange || - props.readOnly || - props.disabled || - null == props.checked || - error$jscomp$0( - "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`." - ); - } - function isAttributeNameSafe(attributeName) { - if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) - return !0; - if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) - return !1; - if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) - return (validatedAttributeNameCache[attributeName] = !0); - illegalAttributeNameCache[attributeName] = !0; - error$jscomp$0("Invalid attribute name: `%s`", attributeName); - return !1; - } - function getValueForAttributeOnCustomComponent(node, name, expected) { - if (isAttributeNameSafe(name)) { - if (!node.hasAttribute(name)) { - switch (typeof expected) { - case "symbol": - case "object": - return expected; - case "function": - return expected; - case "boolean": - if (!1 === expected) return expected; - } - return void 0 === expected ? void 0 : null; - } - node = node.getAttribute(name); - if ("" === node && !0 === expected) return !0; - checkAttributeStringCoercion(expected, name); - return node === "" + expected ? expected : node; - } - } - function setValueForAttribute(node, name, value) { - if (isAttributeNameSafe(name)) - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - node.removeAttribute(name); - return; - case "boolean": - var prefix = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix && "aria-" !== prefix) { - node.removeAttribute(name); - return; - } - } - checkAttributeStringCoercion(value, name); - node.setAttribute( - name, - enableTrustedTypesIntegration ? value : "" + value - ); - } - } - function setValueForKnownAttribute(node, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; - } - checkAttributeStringCoercion(value, name); - node.setAttribute( - name, - enableTrustedTypesIntegration ? value : "" + value - ); - } - } - function setValueForNamespacedAttribute(node, namespace, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; - } - checkAttributeStringCoercion(value, name); - node.setAttributeNS( - namespace, - name, - enableTrustedTypesIntegration ? value : "" + value - ); + : callback(arg0, arg1, arg2, arg3, arg4); + } finally { + current = previousFiber; } + throw Error( + "runWithFiberInDEV should never be called in production. This is a bug in React." + ); } function getToStringValue(value) { switch (typeof value) { @@ -3969,8 +3970,6 @@ __DEV__ && ((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask()) : didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now$1()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -4982,7 +4981,7 @@ __DEV__ && null; hookTypesUpdateIndexDev = -1; null !== current && - (current.flags & 29360128) !== (workInProgress.flags & 29360128) && + (current.flags & 65011712) !== (workInProgress.flags & 65011712) && error$jscomp$0( "Internal React error: Expected static flag was missing. Please notify the React team." ); @@ -5060,7 +5059,7 @@ __DEV__ && workInProgress.updateQueue = current.updateQueue; workInProgress.flags = (workInProgress.mode & StrictEffectsMode) !== NoMode - ? workInProgress.flags & -201328645 + ? workInProgress.flags & -402655237 : workInProgress.flags & -2053; current.lanes &= ~lanes; } @@ -5962,7 +5961,7 @@ __DEV__ && function mountEffect(create, deps) { (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && (currentlyRenderingFiber.mode & NoStrictPassiveEffectsMode) === NoMode - ? mountEffectImpl(142608384, Passive, create, deps) + ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps); } function mountResourceEffect( @@ -5978,7 +5977,7 @@ __DEV__ && ) { var hookFlags = Passive, hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= 142608384; + currentlyRenderingFiber.flags |= 276826112; var inst = createEffectInstance(); inst.destroy = destroy; hook.memoizedState = pushResourceEffect( @@ -6100,7 +6099,7 @@ __DEV__ && function mountLayoutEffect(create, deps) { var fiberFlags = 4194308; (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && - (fiberFlags |= 67108864); + (fiberFlags |= 134217728); return mountEffectImpl(fiberFlags, Layout, create, deps); } function imperativeHandleEffect(create, ref) { @@ -6134,7 +6133,7 @@ __DEV__ && deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; var fiberFlags = 4194308; (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && - (fiberFlags |= 67108864); + (fiberFlags |= 134217728); mountEffectImpl( fiberFlags, Layout, @@ -6745,16 +6744,16 @@ __DEV__ && return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -9047,7 +9046,7 @@ __DEV__ && "function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308); (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864); + (workInProgress.flags |= 134217728); _instance = !0; } else if (null === current$jscomp$0) { _instance = workInProgress.stateNode; @@ -9115,11 +9114,11 @@ __DEV__ && "function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864)) + (workInProgress.flags |= 134217728)) : ("function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (workInProgress.memoizedProps = nextProps), (workInProgress.memoizedState = oldContext)), (_instance.props = nextProps), @@ -9129,7 +9128,7 @@ __DEV__ && : ("function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (_instance = !1)); } else { _instance = workInProgress.stateNode; @@ -9357,32 +9356,32 @@ __DEV__ && return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2523; - var JSCompiler_object_inline_stack_2524 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2540; + var JSCompiler_object_inline_stack_2541 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2525 = !1; + var JSCompiler_object_inline_componentStack_2542 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2523 = didSuspend) || - (JSCompiler_object_inline_digest_2523 = + (JSCompiler_object_inline_digest_2540 = didSuspend) || + (JSCompiler_object_inline_digest_2540 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2523 && - ((JSCompiler_object_inline_componentStack_2525 = !0), + JSCompiler_object_inline_digest_2540 && + ((JSCompiler_object_inline_componentStack_2542 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2523 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2540 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2525 + JSCompiler_object_inline_componentStack_2542 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2522 = nextHydratableInstance; + var JSCompiler_object_inline_message_2539 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2522)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2539)) { c: { - var instance = JSCompiler_object_inline_message_2522; + var instance = JSCompiler_object_inline_message_2539; for ( JSCompiler_temp = rootOrSingletonContext; instance.nodeType !== COMMENT_NODE; @@ -9424,46 +9423,46 @@ __DEV__ && JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2522 + JSCompiler_object_inline_message_2539 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2522 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2539 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2522 && - ((JSCompiler_object_inline_message_2522 = - JSCompiler_object_inline_message_2522.dehydrated), - null !== JSCompiler_object_inline_message_2522) + null !== JSCompiler_object_inline_message_2539 && + ((JSCompiler_object_inline_message_2539 = + JSCompiler_object_inline_message_2539.dehydrated), + null !== JSCompiler_object_inline_message_2539) ) return ( - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2522) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2539) ? (workInProgress.lanes = 32) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2522 = - JSCompiler_object_inline_stack_2524.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2524.fallback; - if (JSCompiler_object_inline_componentStack_2525) + JSCompiler_object_inline_message_2539 = + JSCompiler_object_inline_stack_2541.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2541.fallback; + if (JSCompiler_object_inline_componentStack_2542) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2524 = + (JSCompiler_object_inline_stack_2541 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2522, + JSCompiler_object_inline_message_2539, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2525 = + (JSCompiler_object_inline_componentStack_2542 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2525.memoizedState = + (JSCompiler_object_inline_componentStack_2542.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2525.childLanes = + (JSCompiler_object_inline_componentStack_2542.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2523, + JSCompiler_object_inline_digest_2540, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), @@ -9476,9 +9475,9 @@ __DEV__ && ? markerInstanceStack.current : null), (renderLanes = - JSCompiler_object_inline_componentStack_2525.updateQueue), + JSCompiler_object_inline_componentStack_2542.updateQueue), null === renderLanes - ? (JSCompiler_object_inline_componentStack_2525.updateQueue = + ? (JSCompiler_object_inline_componentStack_2542.updateQueue = { transitions: workInProgress, markerInstances: current, @@ -9486,46 +9485,46 @@ __DEV__ && }) : ((renderLanes.transitions = workInProgress), (renderLanes.markerInstances = current)))), - JSCompiler_object_inline_stack_2524 + JSCompiler_object_inline_stack_2541 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2524.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2541.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2524 = + (JSCompiler_object_inline_stack_2541 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2522, + JSCompiler_object_inline_message_2539, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2525 = + (JSCompiler_object_inline_componentStack_2542 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2525.memoizedState = + (JSCompiler_object_inline_componentStack_2542.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2525.childLanes = + (JSCompiler_object_inline_componentStack_2542.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2523, + JSCompiler_object_inline_digest_2540, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2524 + JSCompiler_object_inline_stack_2541 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2522 + JSCompiler_object_inline_message_2539 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2522 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2522) + ((JSCompiler_object_inline_message_2539 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2539) ) { if (didSuspend) workInProgress.flags & 256 @@ -9542,94 +9541,94 @@ __DEV__ && (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2525 = - JSCompiler_object_inline_stack_2524.fallback), - (JSCompiler_object_inline_message_2522 = workInProgress.mode), - (JSCompiler_object_inline_stack_2524 = + (JSCompiler_object_inline_componentStack_2542 = + JSCompiler_object_inline_stack_2541.fallback), + (JSCompiler_object_inline_message_2539 = workInProgress.mode), + (JSCompiler_object_inline_stack_2541 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2524.children + children: JSCompiler_object_inline_stack_2541.children }, - JSCompiler_object_inline_message_2522 + JSCompiler_object_inline_message_2539 )), - (JSCompiler_object_inline_componentStack_2525 = + (JSCompiler_object_inline_componentStack_2542 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2525, - JSCompiler_object_inline_message_2522, + JSCompiler_object_inline_componentStack_2542, + JSCompiler_object_inline_message_2539, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2525.flags |= 2), - (JSCompiler_object_inline_stack_2524.return = workInProgress), - (JSCompiler_object_inline_componentStack_2525.return = + (JSCompiler_object_inline_componentStack_2542.flags |= 2), + (JSCompiler_object_inline_stack_2541.return = workInProgress), + (JSCompiler_object_inline_componentStack_2542.return = workInProgress), - (JSCompiler_object_inline_stack_2524.sibling = - JSCompiler_object_inline_componentStack_2525), - (workInProgress.child = JSCompiler_object_inline_stack_2524), + (JSCompiler_object_inline_stack_2541.sibling = + JSCompiler_object_inline_componentStack_2542), + (workInProgress.child = JSCompiler_object_inline_stack_2541), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2524 = workInProgress.child), - (JSCompiler_object_inline_stack_2524.memoizedState = + (JSCompiler_object_inline_stack_2541 = workInProgress.child), + (JSCompiler_object_inline_stack_2541.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2524.childLanes = + (JSCompiler_object_inline_stack_2541.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2523, + JSCompiler_object_inline_digest_2540, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2525)); + JSCompiler_object_inline_componentStack_2542)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && error$jscomp$0( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2522)) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2539)) ) { - JSCompiler_object_inline_digest_2523 = - JSCompiler_object_inline_message_2522.nextSibling && - JSCompiler_object_inline_message_2522.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2523) { - JSCompiler_temp = JSCompiler_object_inline_digest_2523.dgst; - var message = JSCompiler_object_inline_digest_2523.msg; - instance = JSCompiler_object_inline_digest_2523.stck; - var componentStack = JSCompiler_object_inline_digest_2523.cstck; + JSCompiler_object_inline_digest_2540 = + JSCompiler_object_inline_message_2539.nextSibling && + JSCompiler_object_inline_message_2539.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2540) { + JSCompiler_temp = JSCompiler_object_inline_digest_2540.dgst; + var message = JSCompiler_object_inline_digest_2540.msg; + instance = JSCompiler_object_inline_digest_2540.stck; + var componentStack = JSCompiler_object_inline_digest_2540.cstck; } - JSCompiler_object_inline_message_2522 = message; - JSCompiler_object_inline_digest_2523 = JSCompiler_temp; - JSCompiler_object_inline_stack_2524 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2525 = + JSCompiler_object_inline_message_2539 = message; + JSCompiler_object_inline_digest_2540 = JSCompiler_temp; + JSCompiler_object_inline_stack_2541 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2542 = componentStack; - JSCompiler_object_inline_componentStack_2525 = - JSCompiler_object_inline_message_2522 - ? Error(JSCompiler_object_inline_message_2522) + JSCompiler_object_inline_componentStack_2542 = + JSCompiler_object_inline_message_2539 + ? Error(JSCompiler_object_inline_message_2539) : 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_2525.stack = - JSCompiler_object_inline_stack_2524 || ""; - JSCompiler_object_inline_componentStack_2525.digest = - JSCompiler_object_inline_digest_2523; - JSCompiler_object_inline_digest_2523 = + JSCompiler_object_inline_componentStack_2542.stack = + JSCompiler_object_inline_stack_2541 || ""; + JSCompiler_object_inline_componentStack_2542.digest = + JSCompiler_object_inline_digest_2540; + JSCompiler_object_inline_digest_2540 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; - JSCompiler_object_inline_stack_2524 = { - value: JSCompiler_object_inline_componentStack_2525, + JSCompiler_object_inline_stack_2541 = { + value: JSCompiler_object_inline_componentStack_2542, source: null, - stack: JSCompiler_object_inline_digest_2523 + stack: JSCompiler_object_inline_digest_2540 }; - "string" === typeof JSCompiler_object_inline_digest_2523 && + "string" === typeof JSCompiler_object_inline_digest_2540 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2525, - JSCompiler_object_inline_stack_2524 + JSCompiler_object_inline_componentStack_2542, + JSCompiler_object_inline_stack_2541 ); - queueHydrationError(JSCompiler_object_inline_stack_2524); + queueHydrationError(JSCompiler_object_inline_stack_2541); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9643,44 +9642,44 @@ __DEV__ && renderLanes, !1 ), - (JSCompiler_object_inline_digest_2523 = + (JSCompiler_object_inline_digest_2540 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2523) + didReceiveUpdate || JSCompiler_object_inline_digest_2540) ) { - JSCompiler_object_inline_digest_2523 = workInProgressRoot; + JSCompiler_object_inline_digest_2540 = workInProgressRoot; if ( - null !== JSCompiler_object_inline_digest_2523 && - ((JSCompiler_object_inline_stack_2524 = renderLanes & -renderLanes), - (JSCompiler_object_inline_stack_2524 = - 0 !== (JSCompiler_object_inline_stack_2524 & 42) + null !== JSCompiler_object_inline_digest_2540 && + ((JSCompiler_object_inline_stack_2541 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2541 = + 0 !== (JSCompiler_object_inline_stack_2541 & 42) ? 1 : getBumpedLaneForHydrationByLane( - JSCompiler_object_inline_stack_2524 + JSCompiler_object_inline_stack_2541 )), - (JSCompiler_object_inline_stack_2524 = + (JSCompiler_object_inline_stack_2541 = 0 !== - (JSCompiler_object_inline_stack_2524 & - (JSCompiler_object_inline_digest_2523.suspendedLanes | + (JSCompiler_object_inline_stack_2541 & + (JSCompiler_object_inline_digest_2540.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2524), - 0 !== JSCompiler_object_inline_stack_2524 && - JSCompiler_object_inline_stack_2524 !== prevState.retryLane) + : JSCompiler_object_inline_stack_2541), + 0 !== JSCompiler_object_inline_stack_2541 && + JSCompiler_object_inline_stack_2541 !== prevState.retryLane) ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2524), + ((prevState.retryLane = JSCompiler_object_inline_stack_2541), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2524 + JSCompiler_object_inline_stack_2541 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2523, + JSCompiler_object_inline_digest_2540, current, - JSCompiler_object_inline_stack_2524 + JSCompiler_object_inline_stack_2541 ), SelectiveHydrationException) ); - JSCompiler_object_inline_message_2522.data === + JSCompiler_object_inline_message_2539.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9688,14 +9687,14 @@ __DEV__ && renderLanes ); } else - JSCompiler_object_inline_message_2522.data === + JSCompiler_object_inline_message_2539.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2522.nextSibling + JSCompiler_object_inline_message_2539.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9713,57 +9712,57 @@ __DEV__ && (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2524.children + JSCompiler_object_inline_stack_2541.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2525) + if (JSCompiler_object_inline_componentStack_2542) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2525 = - JSCompiler_object_inline_stack_2524.fallback), - (JSCompiler_object_inline_message_2522 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2542 = + JSCompiler_object_inline_stack_2541.fallback), + (JSCompiler_object_inline_message_2539 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2524 = createWorkInProgress( + (JSCompiler_object_inline_stack_2541 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2524.children + children: JSCompiler_object_inline_stack_2541.children } )), - (JSCompiler_object_inline_stack_2524.subtreeFlags = - JSCompiler_temp.subtreeFlags & 29360128), + (JSCompiler_object_inline_stack_2541.subtreeFlags = + JSCompiler_temp.subtreeFlags & 65011712), null !== instance - ? (JSCompiler_object_inline_componentStack_2525 = + ? (JSCompiler_object_inline_componentStack_2542 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2525 + JSCompiler_object_inline_componentStack_2542 )) - : ((JSCompiler_object_inline_componentStack_2525 = + : ((JSCompiler_object_inline_componentStack_2542 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2525, - JSCompiler_object_inline_message_2522, + JSCompiler_object_inline_componentStack_2542, + JSCompiler_object_inline_message_2539, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2525.flags |= 2)), - (JSCompiler_object_inline_componentStack_2525.return = + (JSCompiler_object_inline_componentStack_2542.flags |= 2)), + (JSCompiler_object_inline_componentStack_2542.return = workInProgress), - (JSCompiler_object_inline_stack_2524.return = workInProgress), - (JSCompiler_object_inline_stack_2524.sibling = - JSCompiler_object_inline_componentStack_2525), - (workInProgress.child = JSCompiler_object_inline_stack_2524), - (JSCompiler_object_inline_stack_2524 = - JSCompiler_object_inline_componentStack_2525), - (JSCompiler_object_inline_componentStack_2525 = workInProgress.child), - (JSCompiler_object_inline_message_2522 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2522 - ? (JSCompiler_object_inline_message_2522 = + (JSCompiler_object_inline_stack_2541.return = workInProgress), + (JSCompiler_object_inline_stack_2541.sibling = + JSCompiler_object_inline_componentStack_2542), + (workInProgress.child = JSCompiler_object_inline_stack_2541), + (JSCompiler_object_inline_stack_2541 = + JSCompiler_object_inline_componentStack_2542), + (JSCompiler_object_inline_componentStack_2542 = workInProgress.child), + (JSCompiler_object_inline_message_2539 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2539 + ? (JSCompiler_object_inline_message_2539 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2522.cachePool), + JSCompiler_object_inline_message_2539.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9771,34 +9770,34 @@ __DEV__ && ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2522 = { + (JSCompiler_object_inline_message_2539 = { baseLanes: - JSCompiler_object_inline_message_2522.baseLanes | renderLanes, + JSCompiler_object_inline_message_2539.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2525.memoizedState = - JSCompiler_object_inline_message_2522), + (JSCompiler_object_inline_componentStack_2542.memoizedState = + JSCompiler_object_inline_message_2539), enableTransitionTracing && - ((JSCompiler_object_inline_message_2522 = enableTransitionTracing + ((JSCompiler_object_inline_message_2539 = enableTransitionTracing ? transitionStack.current : null), - null !== JSCompiler_object_inline_message_2522 && + null !== JSCompiler_object_inline_message_2539 && ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), (instance = - JSCompiler_object_inline_componentStack_2525.updateQueue), + JSCompiler_object_inline_componentStack_2542.updateQueue), (componentStack = current.updateQueue), null === instance - ? (JSCompiler_object_inline_componentStack_2525.updateQueue = { - transitions: JSCompiler_object_inline_message_2522, + ? (JSCompiler_object_inline_componentStack_2542.updateQueue = { + transitions: JSCompiler_object_inline_message_2539, markerInstances: JSCompiler_temp, retryQueue: null }) : instance === componentStack - ? (JSCompiler_object_inline_componentStack_2525.updateQueue = + ? (JSCompiler_object_inline_componentStack_2542.updateQueue = { - transitions: JSCompiler_object_inline_message_2522, + transitions: JSCompiler_object_inline_message_2539, markerInstances: JSCompiler_temp, retryQueue: null !== componentStack @@ -9806,32 +9805,32 @@ __DEV__ && : null }) : ((instance.transitions = - JSCompiler_object_inline_message_2522), + JSCompiler_object_inline_message_2539), (instance.markerInstances = JSCompiler_temp)))), - (JSCompiler_object_inline_componentStack_2525.childLanes = + (JSCompiler_object_inline_componentStack_2542.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2523, + JSCompiler_object_inline_digest_2540, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2524 + JSCompiler_object_inline_stack_2541 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2524.children + children: JSCompiler_object_inline_stack_2541.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2523 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2523 + ((JSCompiler_object_inline_digest_2540 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2540 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2523.push(current)); + : JSCompiler_object_inline_digest_2540.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -11233,8 +11232,8 @@ __DEV__ && ) (newChildLanes |= _child2.lanes | _child2.childLanes), - (subtreeFlags |= _child2.subtreeFlags & 29360128), - (subtreeFlags |= _child2.flags & 29360128), + (subtreeFlags |= _child2.subtreeFlags & 65011712), + (subtreeFlags |= _child2.flags & 65011712), (_treeBaseDuration += _child2.treeBaseDuration), (_child2 = _child2.sibling); completedWork.treeBaseDuration = _treeBaseDuration; @@ -11246,8 +11245,8 @@ __DEV__ && ) (newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes), - (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128), - (subtreeFlags |= _treeBaseDuration.flags & 29360128), + (subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712), + (subtreeFlags |= _treeBaseDuration.flags & 65011712), (_treeBaseDuration.return = completedWork), (_treeBaseDuration = _treeBaseDuration.sibling); else if ((completedWork.mode & ProfileMode) !== NoMode) { @@ -11874,6 +11873,8 @@ __DEV__ && bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error( "Unknown unit of work tag (" + @@ -14173,6 +14174,7 @@ __DEV__ && ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -14605,7 +14607,7 @@ __DEV__ && break; case 12: flags & 2048 - ? ((prevEffectDuration = pushNestedEffectDurations()), + ? ((flags = pushNestedEffectDurations()), recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, @@ -14614,7 +14616,7 @@ __DEV__ && ), (finishedRoot = finishedWork.stateNode), (finishedRoot.passiveEffectDuration += - bubbleNestedEffectDurations(prevEffectDuration)), + bubbleNestedEffectDurations(flags)), commitProfilerPostCommit( finishedWork, finishedWork.alternate, @@ -14652,6 +14654,7 @@ __DEV__ && break; case 22: prevEffectDuration = finishedWork.stateNode; + nextCache = finishedWork.alternate; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -14681,7 +14684,7 @@ __DEV__ && )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + nextCache, finishedWork, prevEffectDuration ); @@ -14696,6 +14699,7 @@ __DEV__ && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -15460,6 +15464,7 @@ __DEV__ && lanes, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, @@ -15489,6 +15494,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -15509,6 +15515,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -15532,6 +15539,7 @@ __DEV__ && finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -15546,12 +15554,14 @@ __DEV__ && root.timeoutHandle = noTimeout; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && + accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -15563,6 +15573,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -15587,6 +15598,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -15711,6 +15723,7 @@ __DEV__ && workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -16321,6 +16334,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -16380,24 +16394,30 @@ __DEV__ && })) : ((root.callbackNode = null), (root.callbackPriority = 0)); commitStartTime = now(); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = Internals.p; + transitions = Internals.p; Internals.p = DiscreteEventPriority; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= CommitContext; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (Internals.p = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (Internals.p = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = PENDING_MUTATION_PHASE; flushMutationEffects(); + pendingEffectsStatus = PENDING_LAYOUT_PHASE; flushLayoutEffects(); } } @@ -16538,7 +16558,7 @@ __DEV__ && } } root.current = finishedWork; - pendingEffectsStatus = PENDING_LAYOUT_PHASE; + pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; } } function flushLayoutEffects() { @@ -16674,6 +16694,9 @@ __DEV__ && function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE && + ((pendingEffectsStatus = NO_PENDING_EFFECTS), + (pendingEffectsStatus = PENDING_LAYOUT_PHASE)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { @@ -16938,14 +16961,14 @@ __DEV__ && parentFiber, isInStrictMode ) { - if (0 !== (parentFiber.subtreeFlags & 33562624)) + if (0 !== (parentFiber.subtreeFlags & 67117056)) for (parentFiber = parentFiber.child; null !== parentFiber; ) { var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; isStrictModeFiber = isInStrictMode || isStrictModeFiber; 22 !== fiber.tag - ? fiber.flags & 33554432 + ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV( fiber, @@ -16967,7 +16990,7 @@ __DEV__ && root, fiber ) - : fiber.subtreeFlags & 33554432 && + : fiber.subtreeFlags & 67108864 && runWithFiberInDEV( fiber, recursivelyTraverseAndDoubleInvokeEffectsInDEV, @@ -17276,7 +17299,7 @@ __DEV__ && (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -17314,7 +17337,7 @@ __DEV__ && return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -17419,6 +17442,7 @@ __DEV__ && return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -23392,16 +23416,12 @@ __DEV__ && var Scheduler = require("scheduler"), React = require("react"), assign = Object.assign, - warningWWW = require("warning"), - suppressWarning = !1, dynamicFeatureFlags = require("ReactFeatureFlags"), alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -23427,49 +23447,11 @@ __DEV__ && dynamicFeatureFlags.transitionLaneExpirationMs, enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks, enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler, - REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_ELEMENT_TYPE = renameElementSymbol - ? Symbol.for("react.transitional.element") - : REACT_LEGACY_ELEMENT_TYPE, - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"), - REACT_SCOPE_TYPE = Symbol.for("react.scope"), - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), - REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), - REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), - MAYBE_ITERATOR_SYMBOL = Symbol.iterator, - REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + warningWWW = require("warning"), + suppressWarning = !1, + currentReplayingEvent = null, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - disabledDepth = 0, - prevLog, - prevInfo, - prevWarn, - prevError, - prevGroup, - prevGroupCollapsed, - prevGroupEnd; - disabledLog.__reactDisabledLog = !0; - var prefix, - suffix, - reentry = !1; - var componentFrameCache = new ( - "function" === typeof WeakMap ? WeakMap : Map - )(); - var current = null, - isRendering = !1, - currentReplayingEvent = null, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, @@ -23528,6 +23510,29 @@ __DEV__ && rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null), hasOwnProperty = Object.prototype.hasOwnProperty, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_ELEMENT_TYPE = renameElementSymbol + ? Symbol.for("react.transitional.element") + : REACT_LEGACY_ELEMENT_TYPE, + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_SCOPE_TYPE = Symbol.for("react.scope"), + REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), + REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), + REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), + MAYBE_ITERATOR_SYMBOL = Symbol.iterator, allNativeEvents = new Set(); allNativeEvents.add("beforeblur"); allNativeEvents.add("afterblur"); @@ -23547,6 +23552,24 @@ __DEV__ && ), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}, + disabledDepth = 0, + prevLog, + prevInfo, + prevWarn, + prevError, + prevGroup, + prevGroupCollapsed, + prevGroupEnd; + disabledLog.__reactDisabledLog = !0; + var prefix, + suffix, + reentry = !1; + var componentFrameCache = new ( + "function" === typeof WeakMap ? WeakMap : Map + )(); + var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + current = null, + isRendering = !1, escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g, didWarnValueDefaultValue$1 = !1, didWarnCheckedDefaultChecked = !1, @@ -26144,21 +26167,6 @@ __DEV__ && var didWarnOnInvalidCallback = new Set(); Object.freeze(fakeInternalInstance); var classComponentUpdater = { - isMounted: function (component) { - var owner = current; - if (null !== owner && isRendering && 1 === owner.tag) { - var instance = owner.stateNode; - instance._warnedAboutRefsInRender || - error$jscomp$0( - "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", - getComponentNameFromFiber(owner) || "A component" - ); - instance._warnedAboutRefsInRender = !0; - } - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(inst), @@ -26341,6 +26349,7 @@ __DEV__ && workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -26356,8 +26365,9 @@ __DEV__ && THROTTLED_COMMIT = 2, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, - PENDING_LAYOUT_PHASE = 2, - PENDING_PASSIVE_PHASE = 3, + PENDING_AFTER_MUTATION_PHASE = 2, + PENDING_LAYOUT_PHASE = 3, + PENDING_PASSIVE_PHASE = 4, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, @@ -27196,11 +27206,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-defffdbb-20250106" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-98418e89-20250108" !== 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.1.0-www-modern-defffdbb-20250106\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-98418e89-20250108\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27243,10 +27253,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-defffdbb-20250106", + version: "19.1.0-www-modern-98418e89-20250108", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-modern-98418e89-20250108" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27844,7 +27854,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-defffdbb-20250106"; + exports.version = "19.1.0-www-modern-98418e89-20250108"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 40770aa361b2e..0b49775aebc67 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -40,8 +40,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -62,348 +60,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), renameElementSymbol = dynamicFeatureFlags.renameElementSymbol, retryLaneExpirationMs = dynamicFeatureFlags.retryLaneExpirationMs, syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs, - transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, - REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_ELEMENT_TYPE = renameElementSymbol - ? Symbol.for("react.transitional.element") - : REACT_LEGACY_ELEMENT_TYPE, - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"), - REACT_SCOPE_TYPE = Symbol.for("react.scope"), - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), - REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), - REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), - MAYBE_ITERATOR_SYMBOL = Symbol.iterator; -function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; -} -var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); -function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; - } - if ("object" === typeof type) - switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; -} -function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; - case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return ( - (fiber = type.render), - (fiber = fiber.displayName || fiber.name || ""), - type.displayName || - ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") - ); - case 7: - return "Fragment"; - case 26: - case 27: - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 14: - case 15: - if ("function" === typeof type) - return type.displayName || type.name || null; - if ("string" === typeof type) return type; - break; - case 23: - return "LegacyHidden"; - } - return null; -} -var ReactSharedInternals = - React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - prefix, - suffix; -function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; -} -var reentry = !1; -function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - reentry = !0; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$1) { - control = x$1; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$2) { - control = x$2; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - namePropDescriptor = RunInRootFrame = 0; - RunInRootFrame < sampleLines.length && - !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); - - ) - RunInRootFrame++; - for ( - ; - namePropDescriptor < controlLines.length && - !controlLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - if ( - RunInRootFrame === sampleLines.length || - namePropDescriptor === controlLines.length - ) - for ( - RunInRootFrame = sampleLines.length - 1, - namePropDescriptor = controlLines.length - 1; - 1 <= RunInRootFrame && - 0 <= namePropDescriptor && - sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; - - ) - namePropDescriptor--; - for ( - ; - 1 <= RunInRootFrame && 0 <= namePropDescriptor; - RunInRootFrame--, namePropDescriptor-- - ) - if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { - if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { - do - if ( - (RunInRootFrame--, - namePropDescriptor--, - 0 > namePropDescriptor || - sampleLines[RunInRootFrame] !== - controlLines[namePropDescriptor]) - ) { - var frame = - "\n" + - sampleLines[RunInRootFrame].replace(" at new ", " at "); - fn.displayName && - frame.includes("") && - (frame = frame.replace("", fn.displayName)); - return frame; - } - while (1 <= RunInRootFrame && 0 <= namePropDescriptor); - } - break; - } - } - } finally { - (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); - } - return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(previousPrepareStackTrace) - : ""; -} -function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } -} -function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do - (info += describeFiber(workInProgress)), - (workInProgress = workInProgress.return); - while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } -} + transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs; function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; @@ -461,36 +118,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$3 = parentA.child; child$3; ) { - if (child$3 === a) { + for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) { - for (child$3 = parentB.child; child$3; ) { - if (child$3 === a) { + for (child$0 = parentB.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -531,6 +188,8 @@ function doesFiberContain(parentFiber, childFiber) { return !1; } var currentReplayingEvent = null, + ReactSharedInternals = + React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, @@ -760,18 +419,18 @@ function markRootFinished( 0 < remainingLanes; ) { - var index$8 = 31 - clz32(remainingLanes), - lane = 1 << index$8; - entanglements[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$5 = 31 - clz32(remainingLanes), + lane = 1 << index$5; + entanglements[index$5] = 0; + expirationTimes[index$5] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$5]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$5] = null, index$5 = 0; + index$5 < hiddenUpdatesForLane.length; + index$5++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$5]; null !== update && (update.lane &= -536870913); } remainingLanes &= ~lane; @@ -797,10 +456,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$6 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$6; + (lane & entangledLanes) | (root[index$6] & entangledLanes) && + (root[index$6] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -847,11 +506,11 @@ function getBumpedLaneForHydrationByLane(lane) { function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - index$12 = root.transitionLanes[index$12]; - null !== index$12 && - index$12.forEach(function (transition) { + var index$9 = 31 - clz32(lanes), + lane = 1 << index$9; + index$9 = root.transitionLanes[index$9]; + null !== index$9 && + index$9.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -861,10 +520,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$13 = 31 - clz32(lanes), - lane = 1 << index$13; - null !== root.transitionLanes[index$13] && - (root.transitionLanes[index$13] = null); + var index$10 = 31 - clz32(lanes), + lane = 1 << index$10; + null !== root.transitionLanes[index$10] && + (root.transitionLanes[index$10] = null); lanes &= ~lane; } } @@ -976,7 +635,37 @@ function popHostContext(fiber) { (pop(hostTransitionProviderCursor), (HostTransitionContext._currentValue = sharedNotPendingObject)); } -var hasOwnProperty = Object.prototype.hasOwnProperty; +var hasOwnProperty = Object.prototype.hasOwnProperty, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_ELEMENT_TYPE = renameElementSymbol + ? Symbol.for("react.transitional.element") + : REACT_LEGACY_ELEMENT_TYPE, + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_SCOPE_TYPE = Symbol.for("react.scope"), + REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), + REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), + REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), + MAYBE_ITERATOR_SYMBOL = Symbol.iterator; +function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; +} function resolveUpdatePriority() { var updatePriority = Internals.p; if (0 !== updatePriority) return updatePriority; @@ -988,94 +677,404 @@ function runWithPriority(priority, fn) { try { return (Internals.p = priority), fn(); } finally { - Internals.p = previousPriority; + Internals.p = previousPriority; + } +} +var allNativeEvents = new Set(); +allNativeEvents.add("beforeblur"); +allNativeEvents.add("afterblur"); +var registrationNameDependencies = {}; +function registerTwoPhaseEvent(registrationName, dependencies) { + registerDirectEvent(registrationName, dependencies); + registerDirectEvent(registrationName + "Capture", dependencies); +} +function registerDirectEvent(registrationName, dependencies) { + registrationNameDependencies[registrationName] = dependencies; + for ( + registrationName = 0; + registrationName < dependencies.length; + registrationName++ + ) + allNativeEvents.add(dependencies[registrationName]); +} +var VALID_ATTRIBUTE_NAME_REGEX = RegExp( + "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" + ), + illegalAttributeNameCache = {}, + validatedAttributeNameCache = {}; +function isAttributeNameSafe(attributeName) { + if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) + return !0; + if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1; + if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) + return (validatedAttributeNameCache[attributeName] = !0); + illegalAttributeNameCache[attributeName] = !0; + return !1; +} +function setValueForAttribute(node, name, value) { + if (isAttributeNameSafe(name)) + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + node.removeAttribute(name); + return; + case "boolean": + var prefix$11 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$11 && "aria-" !== prefix$11) { + node.removeAttribute(name); + return; + } + } + node.setAttribute( + name, + enableTrustedTypesIntegration ? value : "" + value + ); + } +} +function setValueForKnownAttribute(node, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + node.setAttribute(name, enableTrustedTypesIntegration ? value : "" + value); + } +} +function setValueForNamespacedAttribute(node, namespace, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + node.setAttributeNS( + namespace, + name, + enableTrustedTypesIntegration ? value : "" + value + ); + } +} +var prefix, suffix; +function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; +} +var reentry = !1; +function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + reentry = !0; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$12) { + control = x$12; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$13) { + control = x$13; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + namePropDescriptor = RunInRootFrame = 0; + RunInRootFrame < sampleLines.length && + !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); + + ) + RunInRootFrame++; + for ( + ; + namePropDescriptor < controlLines.length && + !controlLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + if ( + RunInRootFrame === sampleLines.length || + namePropDescriptor === controlLines.length + ) + for ( + RunInRootFrame = sampleLines.length - 1, + namePropDescriptor = controlLines.length - 1; + 1 <= RunInRootFrame && + 0 <= namePropDescriptor && + sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; + + ) + namePropDescriptor--; + for ( + ; + 1 <= RunInRootFrame && 0 <= namePropDescriptor; + RunInRootFrame--, namePropDescriptor-- + ) + if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { + if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { + do + if ( + (RunInRootFrame--, + namePropDescriptor--, + 0 > namePropDescriptor || + sampleLines[RunInRootFrame] !== + controlLines[namePropDescriptor]) + ) { + var frame = + "\n" + + sampleLines[RunInRootFrame].replace(" at new ", " at "); + fn.displayName && + frame.includes("") && + (frame = frame.replace("", fn.displayName)); + return frame; + } + while (1 <= RunInRootFrame && 0 <= namePropDescriptor); + } + break; + } + } + } finally { + (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); } + return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(previousPrepareStackTrace) + : ""; } -var allNativeEvents = new Set(); -allNativeEvents.add("beforeblur"); -allNativeEvents.add("afterblur"); -var registrationNameDependencies = {}; -function registerTwoPhaseEvent(registrationName, dependencies) { - registerDirectEvent(registrationName, dependencies); - registerDirectEvent(registrationName + "Capture", dependencies); -} -function registerDirectEvent(registrationName, dependencies) { - registrationNameDependencies[registrationName] = dependencies; - for ( - registrationName = 0; - registrationName < dependencies.length; - registrationName++ - ) - allNativeEvents.add(dependencies[registrationName]); -} -var VALID_ATTRIBUTE_NAME_REGEX = RegExp( - "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" - ), - illegalAttributeNameCache = {}, - validatedAttributeNameCache = {}; -function isAttributeNameSafe(attributeName) { - if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) - return !0; - if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1; - if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) - return (validatedAttributeNameCache[attributeName] = !0); - illegalAttributeNameCache[attributeName] = !0; - return !1; -} -function setValueForAttribute(node, name, value) { - if (isAttributeNameSafe(name)) - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - node.removeAttribute(name); - return; - case "boolean": - var prefix$14 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$14 && "aria-" !== prefix$14) { - node.removeAttribute(name); - return; - } - } - node.setAttribute( - name, - enableTrustedTypesIntegration ? value : "" + value - ); - } +function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } } -function setValueForKnownAttribute(node, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; - } - node.setAttribute(name, enableTrustedTypesIntegration ? value : "" + value); +function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do + (info += describeFiber(workInProgress)), + (workInProgress = workInProgress.return); + while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; } } -function setValueForNamespacedAttribute(node, namespace, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; +var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); +function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} } - node.setAttributeNS( - namespace, - name, - enableTrustedTypesIntegration ? value : "" + value - ); + return null; +} +function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return enableRenderableContext + ? (type._context.displayName || "Context") + ".Consumer" + : (type.displayName || "Context") + ".Consumer"; + case 10: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") + ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; + break; + case 23: + return "LegacyHidden"; } + return null; } function getToStringValue(value) { switch (typeof value) { @@ -2131,8 +2130,6 @@ function ensureRootIsScheduled(root) { mightHavePendingSyncWork = !0; didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -2220,12 +2217,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$3 = 31 - clz32(pendingLanes), + lane = 1 << index$3, + expirationTime = expirationTimes[index$3]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$3] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -2285,7 +2282,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { - if (0 !== pendingEffectsStatus && 3 !== pendingEffectsStatus) + if (0 !== pendingEffectsStatus && 4 !== pendingEffectsStatus) return (root.callbackNode = null), (root.callbackPriority = 0), null; var originalCallbackNode = root.callbackNode; if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode) @@ -4502,16 +4499,16 @@ function createChildReconciler(shouldTrackSideEffects) { return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -5231,11 +5228,6 @@ function applyDerivedStateFromProps( (workInProgress.updateQueue.baseState = getDerivedStateFromProps); } var classComponentUpdater = { - isMounted: function (component) { - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), @@ -6673,7 +6665,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { children: nextProps.children })), (nextProps.subtreeFlags = - JSCompiler_temp$jscomp$0.subtreeFlags & 29360128), + JSCompiler_temp$jscomp$0.subtreeFlags & 65011712), null !== digest ? (showFallback = createWorkInProgress(digest, showFallback)) : ((showFallback = createFiberFromFragment( @@ -7742,8 +7734,8 @@ function bubbleProperties(completedWork) { if (didBailout) for (var child$126 = completedWork.child; null !== child$126; ) (newChildLanes |= child$126.lanes | child$126.childLanes), - (subtreeFlags |= child$126.subtreeFlags & 29360128), - (subtreeFlags |= child$126.flags & 29360128), + (subtreeFlags |= child$126.subtreeFlags & 65011712), + (subtreeFlags |= child$126.flags & 65011712), (child$126.return = completedWork), (child$126 = child$126.sibling); else @@ -8237,6 +8229,8 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error(formatProdErrorMessage(156, workInProgress.tag)); } @@ -9960,6 +9954,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -10408,6 +10403,7 @@ function commitPassiveMountOnFiber( break; case 22: nextCache = finishedWork.stateNode; + var current$176 = finishedWork.alternate; null !== finishedWork.memoizedState ? nextCache._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -10434,7 +10430,7 @@ function commitPassiveMountOnFiber( )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + current$176, finishedWork, nextCache ); @@ -10449,6 +10445,7 @@ function commitPassiveMountOnFiber( flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -10892,6 +10889,7 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -11015,11 +11013,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$11 = 31 - clz32(lane), - transitions = transitionLanesMap[index$11]; + index$8 = 31 - clz32(lane), + transitions = transitionLanesMap[index$8]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$11] = transitions; + transitionLanesMap[index$8] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -11166,6 +11164,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -11186,6 +11185,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -11208,6 +11208,7 @@ function commitRootWhenReady( finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -11222,12 +11223,13 @@ function commitRootWhenReady( root.timeoutHandle = -1; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -11239,6 +11241,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11258,6 +11261,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11323,9 +11327,9 @@ function markRootSuspended( (root.warmLanes |= suspendedLanes); didAttemptEntireTree = root.expirationTimes; for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - didAttemptEntireTree[index$7] = -1; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4; + didAttemptEntireTree[index$4] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11379,6 +11383,7 @@ function prepareFreshStack(root, lanes) { workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -11387,9 +11392,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$2 = 31 - clz32(allEntangledLanes), + lane = 1 << index$2; + lanes |= root[index$2]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -11832,6 +11837,7 @@ function commitRoot( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11873,24 +11879,30 @@ function commitRoot( return null; })) : ((root.callbackNode = null), (root.callbackPriority = 0)); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = Internals.p; + transitions = Internals.p; Internals.p = 2; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= 4; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (Internals.p = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (Internals.p = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = 1; flushMutationEffects(); + pendingEffectsStatus = 3; flushLayoutEffects(); } } @@ -12025,7 +12037,7 @@ function flushMutationEffects() { } } function flushLayoutEffects() { - if (2 === pendingEffectsStatus) { + if (3 === pendingEffectsStatus) { pendingEffectsStatus = 0; var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, @@ -12051,7 +12063,7 @@ function flushLayoutEffects() { requestPaint(); 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) - ? (pendingEffectsStatus = 3) + ? (pendingEffectsStatus = 4) : ((pendingEffectsStatus = 0), (pendingEffectsRoot = null), releaseRootPooledCache(root, root.pendingLanes)); @@ -12122,10 +12134,12 @@ function releaseRootPooledCache(root, remainingLanes) { function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + 2 === pendingEffectsStatus && + ((pendingEffectsStatus = 0), (pendingEffectsStatus = 3)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { - if (3 !== pendingEffectsStatus) return !1; + if (4 !== pendingEffectsStatus) return !1; var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; pendingEffectsRemainingLanes = 0; @@ -12395,7 +12409,7 @@ function createWorkInProgress(current, pendingProps) { (workInProgress.flags = 0), (workInProgress.subtreeFlags = 0), (workInProgress.deletions = null)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -12414,7 +12428,7 @@ function createWorkInProgress(current, pendingProps) { return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -12502,6 +12516,7 @@ function createFiberFromTypeAndProps( return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -12743,11 +12758,6 @@ function getContextForSubtree(parentComponent) { if (!parentComponent) return emptyContextObject; parentComponent = parentComponent._reactInternals; a: { - if ( - getNearestMountedFiber(parentComponent) !== parentComponent || - 1 !== parentComponent.tag - ) - throw Error(formatProdErrorMessage(170)); var JSCompiler_inline_result = parentComponent; do { switch (JSCompiler_inline_result.tag) { @@ -13371,14 +13381,14 @@ var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$351; if (canUseDOM) { - var isSupported$jscomp$inline_1567 = "oninput" in document; - if (!isSupported$jscomp$inline_1567) { - var element$jscomp$inline_1568 = document.createElement("div"); - element$jscomp$inline_1568.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1567 = - "function" === typeof element$jscomp$inline_1568.oninput; + var isSupported$jscomp$inline_1582 = "oninput" in document; + if (!isSupported$jscomp$inline_1582) { + var element$jscomp$inline_1583 = document.createElement("div"); + element$jscomp$inline_1583.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1582 = + "function" === typeof element$jscomp$inline_1583.oninput; } - JSCompiler_inline_result$jscomp$351 = isSupported$jscomp$inline_1567; + JSCompiler_inline_result$jscomp$351 = isSupported$jscomp$inline_1582; } else JSCompiler_inline_result$jscomp$351 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$351 && @@ -13701,20 +13711,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1608 = 0; - i$jscomp$inline_1608 < simpleEventPluginEvents.length; - i$jscomp$inline_1608++ + var i$jscomp$inline_1623 = 0; + i$jscomp$inline_1623 < simpleEventPluginEvents.length; + i$jscomp$inline_1623++ ) { - var eventName$jscomp$inline_1609 = - simpleEventPluginEvents[i$jscomp$inline_1608], - domEventName$jscomp$inline_1610 = - eventName$jscomp$inline_1609.toLowerCase(), - capitalizedEvent$jscomp$inline_1611 = - eventName$jscomp$inline_1609[0].toUpperCase() + - eventName$jscomp$inline_1609.slice(1); + var eventName$jscomp$inline_1624 = + simpleEventPluginEvents[i$jscomp$inline_1623], + domEventName$jscomp$inline_1625 = + eventName$jscomp$inline_1624.toLowerCase(), + capitalizedEvent$jscomp$inline_1626 = + eventName$jscomp$inline_1624[0].toUpperCase() + + eventName$jscomp$inline_1624.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1610, - "on" + capitalizedEvent$jscomp$inline_1611 + domEventName$jscomp$inline_1625, + "on" + capitalizedEvent$jscomp$inline_1626 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -17294,16 +17304,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1781 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1796 = React.version; if ( - "19.1.0-www-classic-defffdbb-20250106" !== - isomorphicReactPackageVersion$jscomp$inline_1781 + "19.1.0-www-classic-98418e89-20250108" !== + isomorphicReactPackageVersion$jscomp$inline_1796 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1781, - "19.1.0-www-classic-defffdbb-20250106" + isomorphicReactPackageVersion$jscomp$inline_1796, + "19.1.0-www-classic-98418e89-20250108" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17319,24 +17329,24 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2316 = { +var internals$jscomp$inline_2333 = { bundleType: 0, - version: "19.1.0-www-classic-defffdbb-20250106", + version: "19.1.0-www-classic-98418e89-20250108", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-classic-98418e89-20250108" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2317 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2334 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2317.isDisabled && - hook$jscomp$inline_2317.supportsFiber + !hook$jscomp$inline_2334.isDisabled && + hook$jscomp$inline_2334.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2317.inject( - internals$jscomp$inline_2316 + (rendererID = hook$jscomp$inline_2334.inject( + internals$jscomp$inline_2333 )), - (injectedHook = hook$jscomp$inline_2317); + (injectedHook = hook$jscomp$inline_2334); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17688,4 +17698,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-defffdbb-20250106"; +exports.version = "19.1.0-www-classic-98418e89-20250108"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index b9cd388f812c0..6e71b485d9d8e 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -38,8 +38,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -60,285 +58,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), renameElementSymbol = dynamicFeatureFlags.renameElementSymbol, retryLaneExpirationMs = dynamicFeatureFlags.retryLaneExpirationMs, syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs, - transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, - REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_ELEMENT_TYPE = renameElementSymbol - ? Symbol.for("react.transitional.element") - : REACT_LEGACY_ELEMENT_TYPE, - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"), - REACT_SCOPE_TYPE = Symbol.for("react.scope"), - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), - REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), - REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), - MAYBE_ITERATOR_SYMBOL = Symbol.iterator; -function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; -} -var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); -function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; - } - if ("object" === typeof type) - switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; -} -var ReactSharedInternals = - React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - prefix, - suffix; -function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; -} -var reentry = !1; -function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - reentry = !0; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$1) { - control = x$1; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$2) { - control = x$2; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - namePropDescriptor = RunInRootFrame = 0; - RunInRootFrame < sampleLines.length && - !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); - - ) - RunInRootFrame++; - for ( - ; - namePropDescriptor < controlLines.length && - !controlLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - if ( - RunInRootFrame === sampleLines.length || - namePropDescriptor === controlLines.length - ) - for ( - RunInRootFrame = sampleLines.length - 1, - namePropDescriptor = controlLines.length - 1; - 1 <= RunInRootFrame && - 0 <= namePropDescriptor && - sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; - - ) - namePropDescriptor--; - for ( - ; - 1 <= RunInRootFrame && 0 <= namePropDescriptor; - RunInRootFrame--, namePropDescriptor-- - ) - if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { - if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { - do - if ( - (RunInRootFrame--, - namePropDescriptor--, - 0 > namePropDescriptor || - sampleLines[RunInRootFrame] !== - controlLines[namePropDescriptor]) - ) { - var frame = - "\n" + - sampleLines[RunInRootFrame].replace(" at new ", " at "); - fn.displayName && - frame.includes("") && - (frame = frame.replace("", fn.displayName)); - return frame; - } - while (1 <= RunInRootFrame && 0 <= namePropDescriptor); - } - break; - } - } - } finally { - (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); - } - return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(previousPrepareStackTrace) - : ""; -} -function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } -} -function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do - (info += describeFiber(workInProgress)), - (workInProgress = workInProgress.return); - while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } -} + transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs; function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; @@ -396,36 +116,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$3 = parentA.child; child$3; ) { - if (child$3 === a) { + for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) { - for (child$3 = parentB.child; child$3; ) { - if (child$3 === a) { + for (child$0 = parentB.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -466,6 +186,8 @@ function doesFiberContain(parentFiber, childFiber) { return !1; } var currentReplayingEvent = null, + ReactSharedInternals = + React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, @@ -695,18 +417,18 @@ function markRootFinished( 0 < remainingLanes; ) { - var index$8 = 31 - clz32(remainingLanes), - lane = 1 << index$8; - entanglements[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$5 = 31 - clz32(remainingLanes), + lane = 1 << index$5; + entanglements[index$5] = 0; + expirationTimes[index$5] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$5]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$5] = null, index$5 = 0; + index$5 < hiddenUpdatesForLane.length; + index$5++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$5]; null !== update && (update.lane &= -536870913); } remainingLanes &= ~lane; @@ -732,10 +454,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$6 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$6; + (lane & entangledLanes) | (root[index$6] & entangledLanes) && + (root[index$6] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -782,11 +504,11 @@ function getBumpedLaneForHydrationByLane(lane) { function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - index$12 = root.transitionLanes[index$12]; - null !== index$12 && - index$12.forEach(function (transition) { + var index$9 = 31 - clz32(lanes), + lane = 1 << index$9; + index$9 = root.transitionLanes[index$9]; + null !== index$9 && + index$9.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -796,10 +518,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$13 = 31 - clz32(lanes), - lane = 1 << index$13; - null !== root.transitionLanes[index$13] && - (root.transitionLanes[index$13] = null); + var index$10 = 31 - clz32(lanes), + lane = 1 << index$10; + null !== root.transitionLanes[index$10] && + (root.transitionLanes[index$10] = null); lanes &= ~lane; } } @@ -911,7 +633,37 @@ function popHostContext(fiber) { (pop(hostTransitionProviderCursor), (HostTransitionContext._currentValue = sharedNotPendingObject)); } -var hasOwnProperty = Object.prototype.hasOwnProperty; +var hasOwnProperty = Object.prototype.hasOwnProperty, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_ELEMENT_TYPE = renameElementSymbol + ? Symbol.for("react.transitional.element") + : REACT_LEGACY_ELEMENT_TYPE, + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_SCOPE_TYPE = Symbol.for("react.scope"), + REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), + REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), + REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), + MAYBE_ITERATOR_SYMBOL = Symbol.iterator; +function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; +} function resolveUpdatePriority() { var updatePriority = Internals.p; if (0 !== updatePriority) return updatePriority; @@ -968,8 +720,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$14 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$14 && "aria-" !== prefix$14) { + var prefix$11 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$11 && "aria-" !== prefix$11) { node.removeAttribute(name); return; } @@ -1012,6 +764,253 @@ function setValueForNamespacedAttribute(node, namespace, name, value) { ); } } +var prefix, suffix; +function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; +} +var reentry = !1; +function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + reentry = !0; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$12) { + control = x$12; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$13) { + control = x$13; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + namePropDescriptor = RunInRootFrame = 0; + RunInRootFrame < sampleLines.length && + !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); + + ) + RunInRootFrame++; + for ( + ; + namePropDescriptor < controlLines.length && + !controlLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + if ( + RunInRootFrame === sampleLines.length || + namePropDescriptor === controlLines.length + ) + for ( + RunInRootFrame = sampleLines.length - 1, + namePropDescriptor = controlLines.length - 1; + 1 <= RunInRootFrame && + 0 <= namePropDescriptor && + sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; + + ) + namePropDescriptor--; + for ( + ; + 1 <= RunInRootFrame && 0 <= namePropDescriptor; + RunInRootFrame--, namePropDescriptor-- + ) + if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { + if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { + do + if ( + (RunInRootFrame--, + namePropDescriptor--, + 0 > namePropDescriptor || + sampleLines[RunInRootFrame] !== + controlLines[namePropDescriptor]) + ) { + var frame = + "\n" + + sampleLines[RunInRootFrame].replace(" at new ", " at "); + fn.displayName && + frame.includes("") && + (frame = frame.replace("", fn.displayName)); + return frame; + } + while (1 <= RunInRootFrame && 0 <= namePropDescriptor); + } + break; + } + } + } finally { + (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); + } + return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(previousPrepareStackTrace) + : ""; +} +function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } +} +function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do + (info += describeFiber(workInProgress)), + (workInProgress = workInProgress.return); + while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } +} +var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); +function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; +} function getToStringValue(value) { switch (typeof value) { case "bigint": @@ -1982,8 +1981,6 @@ function ensureRootIsScheduled(root) { mightHavePendingSyncWork = !0; didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -2071,12 +2068,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$3 = 31 - clz32(pendingLanes), + lane = 1 << index$3, + expirationTime = expirationTimes[index$3]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$3] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -2136,7 +2133,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { - if (0 !== pendingEffectsStatus && 3 !== pendingEffectsStatus) + if (0 !== pendingEffectsStatus && 4 !== pendingEffectsStatus) return (root.callbackNode = null), (root.callbackPriority = 0), null; var originalCallbackNode = root.callbackNode; if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode) @@ -4353,16 +4350,16 @@ function createChildReconciler(shouldTrackSideEffects) { return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -5082,11 +5079,6 @@ function applyDerivedStateFromProps( (workInProgress.updateQueue.baseState = getDerivedStateFromProps); } var classComponentUpdater = { - isMounted: function (component) { - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), @@ -6447,7 +6439,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { children: nextProps.children })), (nextProps.subtreeFlags = - JSCompiler_temp$jscomp$0.subtreeFlags & 29360128), + JSCompiler_temp$jscomp$0.subtreeFlags & 65011712), null !== digest ? (showFallback = createWorkInProgress(digest, showFallback)) : ((showFallback = createFiberFromFragment( @@ -7512,8 +7504,8 @@ function bubbleProperties(completedWork) { if (didBailout) for (var child$126 = completedWork.child; null !== child$126; ) (newChildLanes |= child$126.lanes | child$126.childLanes), - (subtreeFlags |= child$126.subtreeFlags & 29360128), - (subtreeFlags |= child$126.flags & 29360128), + (subtreeFlags |= child$126.subtreeFlags & 65011712), + (subtreeFlags |= child$126.flags & 65011712), (child$126.return = completedWork), (child$126 = child$126.sibling); else @@ -8000,6 +7992,8 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error(formatProdErrorMessage(156, workInProgress.tag)); } @@ -9711,6 +9705,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -10159,6 +10154,7 @@ function commitPassiveMountOnFiber( break; case 22: nextCache = finishedWork.stateNode; + var current$176 = finishedWork.alternate; null !== finishedWork.memoizedState ? nextCache._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -10185,7 +10181,7 @@ function commitPassiveMountOnFiber( )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + current$176, finishedWork, nextCache ); @@ -10200,6 +10196,7 @@ function commitPassiveMountOnFiber( flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -10643,6 +10640,7 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -10766,11 +10764,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$11 = 31 - clz32(lane), - transitions = transitionLanesMap[index$11]; + index$8 = 31 - clz32(lane), + transitions = transitionLanesMap[index$8]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$11] = transitions; + transitionLanesMap[index$8] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -10917,6 +10915,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -10937,6 +10936,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -10959,6 +10959,7 @@ function commitRootWhenReady( finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -10973,12 +10974,13 @@ function commitRootWhenReady( root.timeoutHandle = -1; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -10990,6 +10992,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11009,6 +11012,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11074,9 +11078,9 @@ function markRootSuspended( (root.warmLanes |= suspendedLanes); didAttemptEntireTree = root.expirationTimes; for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - didAttemptEntireTree[index$7] = -1; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4; + didAttemptEntireTree[index$4] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11130,6 +11134,7 @@ function prepareFreshStack(root, lanes) { workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -11138,9 +11143,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$2 = 31 - clz32(allEntangledLanes), + lane = 1 << index$2; + lanes |= root[index$2]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -11579,6 +11584,7 @@ function commitRoot( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11620,24 +11626,30 @@ function commitRoot( return null; })) : ((root.callbackNode = null), (root.callbackPriority = 0)); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = Internals.p; + transitions = Internals.p; Internals.p = 2; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= 4; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (Internals.p = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (Internals.p = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = 1; flushMutationEffects(); + pendingEffectsStatus = 3; flushLayoutEffects(); } } @@ -11772,7 +11784,7 @@ function flushMutationEffects() { } } function flushLayoutEffects() { - if (2 === pendingEffectsStatus) { + if (3 === pendingEffectsStatus) { pendingEffectsStatus = 0; var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, @@ -11798,7 +11810,7 @@ function flushLayoutEffects() { requestPaint(); 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) - ? (pendingEffectsStatus = 3) + ? (pendingEffectsStatus = 4) : ((pendingEffectsStatus = 0), (pendingEffectsRoot = null), releaseRootPooledCache(root, root.pendingLanes)); @@ -11869,10 +11881,12 @@ function releaseRootPooledCache(root, remainingLanes) { function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + 2 === pendingEffectsStatus && + ((pendingEffectsStatus = 0), (pendingEffectsStatus = 3)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { - if (3 !== pendingEffectsStatus) return !1; + if (4 !== pendingEffectsStatus) return !1; var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; pendingEffectsRemainingLanes = 0; @@ -12142,7 +12156,7 @@ function createWorkInProgress(current, pendingProps) { (workInProgress.flags = 0), (workInProgress.subtreeFlags = 0), (workInProgress.deletions = null)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -12161,7 +12175,7 @@ function createWorkInProgress(current, pendingProps) { return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -12249,6 +12263,7 @@ function createFiberFromTypeAndProps( return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -13107,14 +13122,14 @@ var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$354; if (canUseDOM) { - var isSupported$jscomp$inline_1557 = "oninput" in document; - if (!isSupported$jscomp$inline_1557) { - var element$jscomp$inline_1558 = document.createElement("div"); - element$jscomp$inline_1558.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1557 = - "function" === typeof element$jscomp$inline_1558.oninput; + var isSupported$jscomp$inline_1572 = "oninput" in document; + if (!isSupported$jscomp$inline_1572) { + var element$jscomp$inline_1573 = document.createElement("div"); + element$jscomp$inline_1573.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1572 = + "function" === typeof element$jscomp$inline_1573.oninput; } - JSCompiler_inline_result$jscomp$354 = isSupported$jscomp$inline_1557; + JSCompiler_inline_result$jscomp$354 = isSupported$jscomp$inline_1572; } else JSCompiler_inline_result$jscomp$354 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$354 && @@ -13437,20 +13452,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1598 = 0; - i$jscomp$inline_1598 < simpleEventPluginEvents.length; - i$jscomp$inline_1598++ + var i$jscomp$inline_1613 = 0; + i$jscomp$inline_1613 < simpleEventPluginEvents.length; + i$jscomp$inline_1613++ ) { - var eventName$jscomp$inline_1599 = - simpleEventPluginEvents[i$jscomp$inline_1598], - domEventName$jscomp$inline_1600 = - eventName$jscomp$inline_1599.toLowerCase(), - capitalizedEvent$jscomp$inline_1601 = - eventName$jscomp$inline_1599[0].toUpperCase() + - eventName$jscomp$inline_1599.slice(1); + var eventName$jscomp$inline_1614 = + simpleEventPluginEvents[i$jscomp$inline_1613], + domEventName$jscomp$inline_1615 = + eventName$jscomp$inline_1614.toLowerCase(), + capitalizedEvent$jscomp$inline_1616 = + eventName$jscomp$inline_1614[0].toUpperCase() + + eventName$jscomp$inline_1614.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1600, - "on" + capitalizedEvent$jscomp$inline_1601 + domEventName$jscomp$inline_1615, + "on" + capitalizedEvent$jscomp$inline_1616 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -17025,16 +17040,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1771 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1786 = React.version; if ( - "19.1.0-www-modern-defffdbb-20250106" !== - isomorphicReactPackageVersion$jscomp$inline_1771 + "19.1.0-www-modern-98418e89-20250108" !== + isomorphicReactPackageVersion$jscomp$inline_1786 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1771, - "19.1.0-www-modern-defffdbb-20250106" + isomorphicReactPackageVersion$jscomp$inline_1786, + "19.1.0-www-modern-98418e89-20250108" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17050,24 +17065,24 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2298 = { +var internals$jscomp$inline_2315 = { bundleType: 0, - version: "19.1.0-www-modern-defffdbb-20250106", + version: "19.1.0-www-modern-98418e89-20250108", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-modern-98418e89-20250108" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2299 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2316 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2299.isDisabled && - hook$jscomp$inline_2299.supportsFiber + !hook$jscomp$inline_2316.isDisabled && + hook$jscomp$inline_2316.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2299.inject( - internals$jscomp$inline_2298 + (rendererID = hook$jscomp$inline_2316.inject( + internals$jscomp$inline_2315 )), - (injectedHook = hook$jscomp$inline_2299); + (injectedHook = hook$jscomp$inline_2316); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17419,4 +17434,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-defffdbb-20250106"; +exports.version = "19.1.0-www-modern-98418e89-20250108"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index aec43e9e8649b..31faed73c8673 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -44,8 +44,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -67,348 +65,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), retryLaneExpirationMs = dynamicFeatureFlags.retryLaneExpirationMs, syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs, transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, - enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler, - REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_ELEMENT_TYPE = renameElementSymbol - ? Symbol.for("react.transitional.element") - : REACT_LEGACY_ELEMENT_TYPE, - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"), - REACT_SCOPE_TYPE = Symbol.for("react.scope"), - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), - REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), - REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), - MAYBE_ITERATOR_SYMBOL = Symbol.iterator; -function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; -} -var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); -function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; - } - if ("object" === typeof type) - switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; -} -function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; - case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return ( - (fiber = type.render), - (fiber = fiber.displayName || fiber.name || ""), - type.displayName || - ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") - ); - case 7: - return "Fragment"; - case 26: - case 27: - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 14: - case 15: - if ("function" === typeof type) - return type.displayName || type.name || null; - if ("string" === typeof type) return type; - break; - case 23: - return "LegacyHidden"; - } - return null; -} -var ReactSharedInternals = - React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - prefix, - suffix; -function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; -} -var reentry = !1; -function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - reentry = !0; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$1) { - control = x$1; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$2) { - control = x$2; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - namePropDescriptor = RunInRootFrame = 0; - RunInRootFrame < sampleLines.length && - !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); - - ) - RunInRootFrame++; - for ( - ; - namePropDescriptor < controlLines.length && - !controlLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - if ( - RunInRootFrame === sampleLines.length || - namePropDescriptor === controlLines.length - ) - for ( - RunInRootFrame = sampleLines.length - 1, - namePropDescriptor = controlLines.length - 1; - 1 <= RunInRootFrame && - 0 <= namePropDescriptor && - sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; - - ) - namePropDescriptor--; - for ( - ; - 1 <= RunInRootFrame && 0 <= namePropDescriptor; - RunInRootFrame--, namePropDescriptor-- - ) - if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { - if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { - do - if ( - (RunInRootFrame--, - namePropDescriptor--, - 0 > namePropDescriptor || - sampleLines[RunInRootFrame] !== - controlLines[namePropDescriptor]) - ) { - var frame = - "\n" + - sampleLines[RunInRootFrame].replace(" at new ", " at "); - fn.displayName && - frame.includes("") && - (frame = frame.replace("", fn.displayName)); - return frame; - } - while (1 <= RunInRootFrame && 0 <= namePropDescriptor); - } - break; - } - } - } finally { - (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); - } - return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(previousPrepareStackTrace) - : ""; -} -function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } -} -function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do - (info += describeFiber(workInProgress)), - (workInProgress = workInProgress.return); - while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } -} + enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; @@ -466,36 +123,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$3 = parentA.child; child$3; ) { - if (child$3 === a) { + for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) { - for (child$3 = parentB.child; child$3; ) { - if (child$3 === a) { + for (child$0 = parentB.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -536,6 +193,8 @@ function doesFiberContain(parentFiber, childFiber) { return !1; } var currentReplayingEvent = null, + ReactSharedInternals = + React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, @@ -841,18 +500,18 @@ function markRootFinished( 0 < remainingLanes; ) { - var index$8 = 31 - clz32(remainingLanes), - lane = 1 << index$8; - entanglements[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$5 = 31 - clz32(remainingLanes), + lane = 1 << index$5; + entanglements[index$5] = 0; + expirationTimes[index$5] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$5]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$5] = null, index$5 = 0; + index$5 < hiddenUpdatesForLane.length; + index$5++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$5]; null !== update && (update.lane &= -536870913); } remainingLanes &= ~lane; @@ -878,10 +537,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$6 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$6; + (lane & entangledLanes) | (root[index$6] & entangledLanes) && + (root[index$6] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -928,9 +587,9 @@ function getBumpedLaneForHydrationByLane(lane) { function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index$11 = 31 - clz32(lanes), - lane = 1 << index$11; - root[index$11].add(fiber); + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + root[index$8].add(fiber); lanes &= ~lane; } } @@ -942,27 +601,27 @@ function movePendingFibersToMemoized(root, lanes) { 0 < lanes; ) { - var index$12 = 31 - clz32(lanes); - root = 1 << index$12; - index$12 = pendingUpdatersLaneMap[index$12]; - 0 < index$12.size && - (index$12.forEach(function (fiber) { + var index$9 = 31 - clz32(lanes); + root = 1 << index$9; + index$9 = pendingUpdatersLaneMap[index$9]; + 0 < index$9.size && + (index$9.forEach(function (fiber) { var alternate = fiber.alternate; (null !== alternate && memoizedUpdaters.has(alternate)) || memoizedUpdaters.add(fiber); }), - index$12.clear()); + index$9.clear()); lanes &= ~root; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$14 = 31 - clz32(lanes), - lane = 1 << index$14; - index$14 = root.transitionLanes[index$14]; - null !== index$14 && - index$14.forEach(function (transition) { + var index$11 = 31 - clz32(lanes), + lane = 1 << index$11; + index$11 = root.transitionLanes[index$11]; + null !== index$11 && + index$11.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -972,10 +631,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$15 = 31 - clz32(lanes), - lane = 1 << index$15; - null !== root.transitionLanes[index$15] && - (root.transitionLanes[index$15] = null); + var index$12 = 31 - clz32(lanes), + lane = 1 << index$12; + null !== root.transitionLanes[index$12] && + (root.transitionLanes[index$12] = null); lanes &= ~lane; } } @@ -1087,7 +746,37 @@ function popHostContext(fiber) { (pop(hostTransitionProviderCursor), (HostTransitionContext._currentValue = sharedNotPendingObject)); } -var hasOwnProperty = Object.prototype.hasOwnProperty; +var hasOwnProperty = Object.prototype.hasOwnProperty, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_ELEMENT_TYPE = renameElementSymbol + ? Symbol.for("react.transitional.element") + : REACT_LEGACY_ELEMENT_TYPE, + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_SCOPE_TYPE = Symbol.for("react.scope"), + REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), + REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), + REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), + MAYBE_ITERATOR_SYMBOL = Symbol.iterator; +function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; +} function resolveUpdatePriority() { var updatePriority = Internals.p; if (0 !== updatePriority) return updatePriority; @@ -1099,94 +788,404 @@ function runWithPriority(priority, fn) { try { return (Internals.p = priority), fn(); } finally { - Internals.p = previousPriority; + Internals.p = previousPriority; + } +} +var allNativeEvents = new Set(); +allNativeEvents.add("beforeblur"); +allNativeEvents.add("afterblur"); +var registrationNameDependencies = {}; +function registerTwoPhaseEvent(registrationName, dependencies) { + registerDirectEvent(registrationName, dependencies); + registerDirectEvent(registrationName + "Capture", dependencies); +} +function registerDirectEvent(registrationName, dependencies) { + registrationNameDependencies[registrationName] = dependencies; + for ( + registrationName = 0; + registrationName < dependencies.length; + registrationName++ + ) + allNativeEvents.add(dependencies[registrationName]); +} +var VALID_ATTRIBUTE_NAME_REGEX = RegExp( + "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" + ), + illegalAttributeNameCache = {}, + validatedAttributeNameCache = {}; +function isAttributeNameSafe(attributeName) { + if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) + return !0; + if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1; + if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) + return (validatedAttributeNameCache[attributeName] = !0); + illegalAttributeNameCache[attributeName] = !0; + return !1; +} +function setValueForAttribute(node, name, value) { + if (isAttributeNameSafe(name)) + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + node.removeAttribute(name); + return; + case "boolean": + var prefix$13 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$13 && "aria-" !== prefix$13) { + node.removeAttribute(name); + return; + } + } + node.setAttribute( + name, + enableTrustedTypesIntegration ? value : "" + value + ); + } +} +function setValueForKnownAttribute(node, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + node.setAttribute(name, enableTrustedTypesIntegration ? value : "" + value); + } +} +function setValueForNamespacedAttribute(node, namespace, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + node.setAttributeNS( + namespace, + name, + enableTrustedTypesIntegration ? value : "" + value + ); + } +} +var prefix, suffix; +function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; +} +var reentry = !1; +function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + reentry = !0; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$14) { + control = x$14; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$15) { + control = x$15; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + namePropDescriptor = RunInRootFrame = 0; + RunInRootFrame < sampleLines.length && + !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); + + ) + RunInRootFrame++; + for ( + ; + namePropDescriptor < controlLines.length && + !controlLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + if ( + RunInRootFrame === sampleLines.length || + namePropDescriptor === controlLines.length + ) + for ( + RunInRootFrame = sampleLines.length - 1, + namePropDescriptor = controlLines.length - 1; + 1 <= RunInRootFrame && + 0 <= namePropDescriptor && + sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; + + ) + namePropDescriptor--; + for ( + ; + 1 <= RunInRootFrame && 0 <= namePropDescriptor; + RunInRootFrame--, namePropDescriptor-- + ) + if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { + if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { + do + if ( + (RunInRootFrame--, + namePropDescriptor--, + 0 > namePropDescriptor || + sampleLines[RunInRootFrame] !== + controlLines[namePropDescriptor]) + ) { + var frame = + "\n" + + sampleLines[RunInRootFrame].replace(" at new ", " at "); + fn.displayName && + frame.includes("") && + (frame = frame.replace("", fn.displayName)); + return frame; + } + while (1 <= RunInRootFrame && 0 <= namePropDescriptor); + } + break; + } + } + } finally { + (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); } + return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(previousPrepareStackTrace) + : ""; } -var allNativeEvents = new Set(); -allNativeEvents.add("beforeblur"); -allNativeEvents.add("afterblur"); -var registrationNameDependencies = {}; -function registerTwoPhaseEvent(registrationName, dependencies) { - registerDirectEvent(registrationName, dependencies); - registerDirectEvent(registrationName + "Capture", dependencies); -} -function registerDirectEvent(registrationName, dependencies) { - registrationNameDependencies[registrationName] = dependencies; - for ( - registrationName = 0; - registrationName < dependencies.length; - registrationName++ - ) - allNativeEvents.add(dependencies[registrationName]); -} -var VALID_ATTRIBUTE_NAME_REGEX = RegExp( - "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" - ), - illegalAttributeNameCache = {}, - validatedAttributeNameCache = {}; -function isAttributeNameSafe(attributeName) { - if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) - return !0; - if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) return !1; - if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) - return (validatedAttributeNameCache[attributeName] = !0); - illegalAttributeNameCache[attributeName] = !0; - return !1; -} -function setValueForAttribute(node, name, value) { - if (isAttributeNameSafe(name)) - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - node.removeAttribute(name); - return; - case "boolean": - var prefix$16 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$16 && "aria-" !== prefix$16) { - node.removeAttribute(name); - return; - } - } - node.setAttribute( - name, - enableTrustedTypesIntegration ? value : "" + value - ); - } +function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } } -function setValueForKnownAttribute(node, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; - } - node.setAttribute(name, enableTrustedTypesIntegration ? value : "" + value); +function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do + (info += describeFiber(workInProgress)), + (workInProgress = workInProgress.return); + while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; } } -function setValueForNamespacedAttribute(node, namespace, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; +var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); +function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} } - node.setAttributeNS( - namespace, - name, - enableTrustedTypesIntegration ? value : "" + value - ); + return null; +} +function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return enableRenderableContext + ? (type._context.displayName || "Context") + ".Consumer" + : (type.displayName || "Context") + ".Consumer"; + case 10: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") + ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; + break; + case 23: + return "LegacyHidden"; } + return null; } function getToStringValue(value) { switch (typeof value) { @@ -2296,8 +2295,6 @@ function ensureRootIsScheduled(root) { mightHavePendingSyncWork = !0; didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now$1()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -2385,12 +2382,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$3 = 31 - clz32(pendingLanes), + lane = 1 << index$3, + expirationTime = expirationTimes[index$3]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$3] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -2451,7 +2448,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { } function performWorkOnRootViaSchedulerTask(root, didTimeout) { nestedUpdateScheduled = currentUpdateIsNested = !1; - if (0 !== pendingEffectsStatus && 3 !== pendingEffectsStatus) + if (0 !== pendingEffectsStatus && 4 !== pendingEffectsStatus) return (root.callbackNode = null), (root.callbackPriority = 0), null; var originalCallbackNode = root.callbackNode; if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode) @@ -4673,16 +4670,16 @@ function createChildReconciler(shouldTrackSideEffects) { return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -5402,11 +5399,6 @@ function applyDerivedStateFromProps( (workInProgress.updateQueue.baseState = getDerivedStateFromProps); } var classComponentUpdater = { - isMounted: function (component) { - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), @@ -6861,7 +6853,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { children: nextProps.children })), (nextProps.subtreeFlags = - JSCompiler_temp$jscomp$0.subtreeFlags & 29360128), + JSCompiler_temp$jscomp$0.subtreeFlags & 65011712), null !== digest ? (showFallback = createWorkInProgress(digest, showFallback)) : ((showFallback = createFiberFromFragment( @@ -7952,8 +7944,8 @@ function bubbleProperties(completedWork) { ) (newChildLanes |= child$131.lanes | child$131.childLanes), - (subtreeFlags |= child$131.subtreeFlags & 29360128), - (subtreeFlags |= child$131.flags & 29360128), + (subtreeFlags |= child$131.subtreeFlags & 65011712), + (subtreeFlags |= child$131.flags & 65011712), (treeBaseDuration$130 += child$131.treeBaseDuration), (child$131 = child$131.sibling); completedWork.treeBaseDuration = treeBaseDuration$130; @@ -7965,8 +7957,8 @@ function bubbleProperties(completedWork) { ) (newChildLanes |= treeBaseDuration$130.lanes | treeBaseDuration$130.childLanes), - (subtreeFlags |= treeBaseDuration$130.subtreeFlags & 29360128), - (subtreeFlags |= treeBaseDuration$130.flags & 29360128), + (subtreeFlags |= treeBaseDuration$130.subtreeFlags & 65011712), + (subtreeFlags |= treeBaseDuration$130.flags & 65011712), (treeBaseDuration$130.return = completedWork), (treeBaseDuration$130 = treeBaseDuration$130.sibling); else if (0 !== (completedWork.mode & 2)) { @@ -8498,6 +8490,8 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error(formatProdErrorMessage(156, workInProgress.tag)); } @@ -10452,6 +10446,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -10875,7 +10870,7 @@ function commitPassiveMountOnFiber( break; case 12: flags & 2048 - ? ((prevEffectDuration = pushNestedEffectDurations()), + ? ((flags = pushNestedEffectDurations()), recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, @@ -10884,7 +10879,7 @@ function commitPassiveMountOnFiber( ), (finishedRoot = finishedWork.stateNode), (finishedRoot.passiveEffectDuration += - bubbleNestedEffectDurations(prevEffectDuration)), + bubbleNestedEffectDurations(flags)), commitProfilerPostCommit( finishedWork, finishedWork.alternate, @@ -10922,6 +10917,7 @@ function commitPassiveMountOnFiber( break; case 22: prevEffectDuration = finishedWork.stateNode; + nextCache = finishedWork.alternate; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -10948,7 +10944,7 @@ function commitPassiveMountOnFiber( )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + nextCache, finishedWork, prevEffectDuration ); @@ -10963,6 +10959,7 @@ function commitPassiveMountOnFiber( flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -11412,6 +11409,7 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -11536,11 +11534,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$13 = 31 - clz32(lane), - transitions = transitionLanesMap[index$13]; + index$10 = 31 - clz32(lane), + transitions = transitionLanesMap[index$10]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$13] = transitions; + transitionLanesMap[index$10] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -11687,6 +11685,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -11707,6 +11706,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -11729,6 +11729,7 @@ function commitRootWhenReady( finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -11743,12 +11744,13 @@ function commitRootWhenReady( root.timeoutHandle = -1; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -11760,6 +11762,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11779,6 +11782,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11844,9 +11848,9 @@ function markRootSuspended( (root.warmLanes |= suspendedLanes); didAttemptEntireTree = root.expirationTimes; for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - didAttemptEntireTree[index$7] = -1; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4; + didAttemptEntireTree[index$4] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11900,6 +11904,7 @@ function prepareFreshStack(root, lanes) { workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -11908,9 +11913,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$2 = 31 - clz32(allEntangledLanes), + lane = 1 << index$2; + lanes |= root[index$2]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -12428,6 +12433,7 @@ function commitRoot( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -12476,24 +12482,30 @@ function commitRoot( })) : ((root.callbackNode = null), (root.callbackPriority = 0)); commitStartTime = now(); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = Internals.p; + transitions = Internals.p; Internals.p = 2; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= 4; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (Internals.p = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (Internals.p = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = 1; flushMutationEffects(); + pendingEffectsStatus = 3; flushLayoutEffects(); } } @@ -12632,7 +12644,7 @@ function flushMutationEffects() { } } function flushLayoutEffects() { - if (2 === pendingEffectsStatus) { + if (3 === pendingEffectsStatus) { pendingEffectsStatus = 0; var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, @@ -12673,7 +12685,7 @@ function flushLayoutEffects() { requestPaint(); 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) - ? (pendingEffectsStatus = 3) + ? (pendingEffectsStatus = 4) : ((pendingEffectsStatus = 0), (pendingEffectsRoot = null), releaseRootPooledCache(root, root.pendingLanes)); @@ -12747,10 +12759,12 @@ function releaseRootPooledCache(root, remainingLanes) { function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + 2 === pendingEffectsStatus && + ((pendingEffectsStatus = 0), (pendingEffectsStatus = 3)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { - if (3 !== pendingEffectsStatus) return !1; + if (4 !== pendingEffectsStatus) return !1; var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; pendingEffectsRemainingLanes = 0; @@ -13049,7 +13063,7 @@ function createWorkInProgress(current, pendingProps) { (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -13070,7 +13084,7 @@ function createWorkInProgress(current, pendingProps) { return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -13163,6 +13177,7 @@ function createFiberFromTypeAndProps( return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -13409,11 +13424,6 @@ function getContextForSubtree(parentComponent) { if (!parentComponent) return emptyContextObject; parentComponent = parentComponent._reactInternals; a: { - if ( - getNearestMountedFiber(parentComponent) !== parentComponent || - 1 !== parentComponent.tag - ) - throw Error(formatProdErrorMessage(170)); var JSCompiler_inline_result = parentComponent; do { switch (JSCompiler_inline_result.tag) { @@ -14057,14 +14067,14 @@ var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$368; if (canUseDOM) { - var isSupported$jscomp$inline_1664 = "oninput" in document; - if (!isSupported$jscomp$inline_1664) { - var element$jscomp$inline_1665 = document.createElement("div"); - element$jscomp$inline_1665.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1664 = - "function" === typeof element$jscomp$inline_1665.oninput; + var isSupported$jscomp$inline_1679 = "oninput" in document; + if (!isSupported$jscomp$inline_1679) { + var element$jscomp$inline_1680 = document.createElement("div"); + element$jscomp$inline_1680.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1679 = + "function" === typeof element$jscomp$inline_1680.oninput; } - JSCompiler_inline_result$jscomp$368 = isSupported$jscomp$inline_1664; + JSCompiler_inline_result$jscomp$368 = isSupported$jscomp$inline_1679; } else JSCompiler_inline_result$jscomp$368 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$368 && @@ -14387,20 +14397,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1705 = 0; - i$jscomp$inline_1705 < simpleEventPluginEvents.length; - i$jscomp$inline_1705++ + var i$jscomp$inline_1720 = 0; + i$jscomp$inline_1720 < simpleEventPluginEvents.length; + i$jscomp$inline_1720++ ) { - var eventName$jscomp$inline_1706 = - simpleEventPluginEvents[i$jscomp$inline_1705], - domEventName$jscomp$inline_1707 = - eventName$jscomp$inline_1706.toLowerCase(), - capitalizedEvent$jscomp$inline_1708 = - eventName$jscomp$inline_1706[0].toUpperCase() + - eventName$jscomp$inline_1706.slice(1); + var eventName$jscomp$inline_1721 = + simpleEventPluginEvents[i$jscomp$inline_1720], + domEventName$jscomp$inline_1722 = + eventName$jscomp$inline_1721.toLowerCase(), + capitalizedEvent$jscomp$inline_1723 = + eventName$jscomp$inline_1721[0].toUpperCase() + + eventName$jscomp$inline_1721.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1707, - "on" + capitalizedEvent$jscomp$inline_1708 + domEventName$jscomp$inline_1722, + "on" + capitalizedEvent$jscomp$inline_1723 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -17980,16 +17990,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1878 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1893 = React.version; if ( - "19.1.0-www-classic-defffdbb-20250106" !== - isomorphicReactPackageVersion$jscomp$inline_1878 + "19.1.0-www-classic-98418e89-20250108" !== + isomorphicReactPackageVersion$jscomp$inline_1893 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1878, - "19.1.0-www-classic-defffdbb-20250106" + isomorphicReactPackageVersion$jscomp$inline_1893, + "19.1.0-www-classic-98418e89-20250108" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18005,27 +18015,27 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_1880 = { +var internals$jscomp$inline_1895 = { bundleType: 0, - version: "19.1.0-www-classic-defffdbb-20250106", + version: "19.1.0-www-classic-98418e89-20250108", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-classic-98418e89-20250108" }; enableSchedulingProfiler && - ((internals$jscomp$inline_1880.getLaneLabelMap = getLaneLabelMap), - (internals$jscomp$inline_1880.injectProfilingHooks = injectProfilingHooks)); + ((internals$jscomp$inline_1895.getLaneLabelMap = getLaneLabelMap), + (internals$jscomp$inline_1895.injectProfilingHooks = injectProfilingHooks)); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2374 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2391 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2374.isDisabled && - hook$jscomp$inline_2374.supportsFiber + !hook$jscomp$inline_2391.isDisabled && + hook$jscomp$inline_2391.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2374.inject( - internals$jscomp$inline_1880 + (rendererID = hook$jscomp$inline_2391.inject( + internals$jscomp$inline_1895 )), - (injectedHook = hook$jscomp$inline_2374); + (injectedHook = hook$jscomp$inline_2391); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -18377,7 +18387,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-defffdbb-20250106"; +exports.version = "19.1.0-www-classic-98418e89-20250108"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index d903166103837..7a38de3d8d11c 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -42,8 +42,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -65,285 +63,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), retryLaneExpirationMs = dynamicFeatureFlags.retryLaneExpirationMs, syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs, transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, - enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler, - REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_ELEMENT_TYPE = renameElementSymbol - ? Symbol.for("react.transitional.element") - : REACT_LEGACY_ELEMENT_TYPE, - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"), - REACT_SCOPE_TYPE = Symbol.for("react.scope"), - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), - REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), - REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), - MAYBE_ITERATOR_SYMBOL = Symbol.iterator; -function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; -} -var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); -function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; - } - if ("object" === typeof type) - switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; -} -var ReactSharedInternals = - React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - prefix, - suffix; -function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; -} -var reentry = !1; -function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - reentry = !0; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$1) { - control = x$1; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$2) { - control = x$2; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - namePropDescriptor = RunInRootFrame = 0; - RunInRootFrame < sampleLines.length && - !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); - - ) - RunInRootFrame++; - for ( - ; - namePropDescriptor < controlLines.length && - !controlLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - if ( - RunInRootFrame === sampleLines.length || - namePropDescriptor === controlLines.length - ) - for ( - RunInRootFrame = sampleLines.length - 1, - namePropDescriptor = controlLines.length - 1; - 1 <= RunInRootFrame && - 0 <= namePropDescriptor && - sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; - - ) - namePropDescriptor--; - for ( - ; - 1 <= RunInRootFrame && 0 <= namePropDescriptor; - RunInRootFrame--, namePropDescriptor-- - ) - if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { - if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { - do - if ( - (RunInRootFrame--, - namePropDescriptor--, - 0 > namePropDescriptor || - sampleLines[RunInRootFrame] !== - controlLines[namePropDescriptor]) - ) { - var frame = - "\n" + - sampleLines[RunInRootFrame].replace(" at new ", " at "); - fn.displayName && - frame.includes("") && - (frame = frame.replace("", fn.displayName)); - return frame; - } - while (1 <= RunInRootFrame && 0 <= namePropDescriptor); - } - break; - } - } - } finally { - (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); - } - return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(previousPrepareStackTrace) - : ""; -} -function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } -} -function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do - (info += describeFiber(workInProgress)), - (workInProgress = workInProgress.return); - while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } -} + enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler; function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; @@ -401,36 +121,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$3 = parentA.child; child$3; ) { - if (child$3 === a) { + for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) { - for (child$3 = parentB.child; child$3; ) { - if (child$3 === a) { + for (child$0 = parentB.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -471,6 +191,8 @@ function doesFiberContain(parentFiber, childFiber) { return !1; } var currentReplayingEvent = null, + ReactSharedInternals = + React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, @@ -776,18 +498,18 @@ function markRootFinished( 0 < remainingLanes; ) { - var index$8 = 31 - clz32(remainingLanes), - lane = 1 << index$8; - entanglements[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$5 = 31 - clz32(remainingLanes), + lane = 1 << index$5; + entanglements[index$5] = 0; + expirationTimes[index$5] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$5]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$5] = null, index$5 = 0; + index$5 < hiddenUpdatesForLane.length; + index$5++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$5]; null !== update && (update.lane &= -536870913); } remainingLanes &= ~lane; @@ -813,10 +535,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$6 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$6; + (lane & entangledLanes) | (root[index$6] & entangledLanes) && + (root[index$6] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -863,9 +585,9 @@ function getBumpedLaneForHydrationByLane(lane) { function addFiberToLanesMap(root, fiber, lanes) { if (isDevToolsPresent) for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index$11 = 31 - clz32(lanes), - lane = 1 << index$11; - root[index$11].add(fiber); + var index$8 = 31 - clz32(lanes), + lane = 1 << index$8; + root[index$8].add(fiber); lanes &= ~lane; } } @@ -877,27 +599,27 @@ function movePendingFibersToMemoized(root, lanes) { 0 < lanes; ) { - var index$12 = 31 - clz32(lanes); - root = 1 << index$12; - index$12 = pendingUpdatersLaneMap[index$12]; - 0 < index$12.size && - (index$12.forEach(function (fiber) { + var index$9 = 31 - clz32(lanes); + root = 1 << index$9; + index$9 = pendingUpdatersLaneMap[index$9]; + 0 < index$9.size && + (index$9.forEach(function (fiber) { var alternate = fiber.alternate; (null !== alternate && memoizedUpdaters.has(alternate)) || memoizedUpdaters.add(fiber); }), - index$12.clear()); + index$9.clear()); lanes &= ~root; } } function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$14 = 31 - clz32(lanes), - lane = 1 << index$14; - index$14 = root.transitionLanes[index$14]; - null !== index$14 && - index$14.forEach(function (transition) { + var index$11 = 31 - clz32(lanes), + lane = 1 << index$11; + index$11 = root.transitionLanes[index$11]; + null !== index$11 && + index$11.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -907,10 +629,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$15 = 31 - clz32(lanes), - lane = 1 << index$15; - null !== root.transitionLanes[index$15] && - (root.transitionLanes[index$15] = null); + var index$12 = 31 - clz32(lanes), + lane = 1 << index$12; + null !== root.transitionLanes[index$12] && + (root.transitionLanes[index$12] = null); lanes &= ~lane; } } @@ -1022,7 +744,37 @@ function popHostContext(fiber) { (pop(hostTransitionProviderCursor), (HostTransitionContext._currentValue = sharedNotPendingObject)); } -var hasOwnProperty = Object.prototype.hasOwnProperty; +var hasOwnProperty = Object.prototype.hasOwnProperty, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_ELEMENT_TYPE = renameElementSymbol + ? Symbol.for("react.transitional.element") + : REACT_LEGACY_ELEMENT_TYPE, + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_SCOPE_TYPE = Symbol.for("react.scope"), + REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), + REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), + REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), + MAYBE_ITERATOR_SYMBOL = Symbol.iterator; +function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; +} function resolveUpdatePriority() { var updatePriority = Internals.p; if (0 !== updatePriority) return updatePriority; @@ -1079,8 +831,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$16 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$16 && "aria-" !== prefix$16) { + var prefix$13 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$13 && "aria-" !== prefix$13) { node.removeAttribute(name); return; } @@ -1123,6 +875,253 @@ function setValueForNamespacedAttribute(node, namespace, name, value) { ); } } +var prefix, suffix; +function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; +} +var reentry = !1; +function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + reentry = !0; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$14) { + control = x$14; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$15) { + control = x$15; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + namePropDescriptor = RunInRootFrame = 0; + RunInRootFrame < sampleLines.length && + !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); + + ) + RunInRootFrame++; + for ( + ; + namePropDescriptor < controlLines.length && + !controlLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + if ( + RunInRootFrame === sampleLines.length || + namePropDescriptor === controlLines.length + ) + for ( + RunInRootFrame = sampleLines.length - 1, + namePropDescriptor = controlLines.length - 1; + 1 <= RunInRootFrame && + 0 <= namePropDescriptor && + sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; + + ) + namePropDescriptor--; + for ( + ; + 1 <= RunInRootFrame && 0 <= namePropDescriptor; + RunInRootFrame--, namePropDescriptor-- + ) + if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { + if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { + do + if ( + (RunInRootFrame--, + namePropDescriptor--, + 0 > namePropDescriptor || + sampleLines[RunInRootFrame] !== + controlLines[namePropDescriptor]) + ) { + var frame = + "\n" + + sampleLines[RunInRootFrame].replace(" at new ", " at "); + fn.displayName && + frame.includes("") && + (frame = frame.replace("", fn.displayName)); + return frame; + } + while (1 <= RunInRootFrame && 0 <= namePropDescriptor); + } + break; + } + } + } finally { + (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); + } + return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(previousPrepareStackTrace) + : ""; +} +function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } +} +function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do + (info += describeFiber(workInProgress)), + (workInProgress = workInProgress.return); + while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } +} +var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); +function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; +} function getToStringValue(value) { switch (typeof value) { case "bigint": @@ -2147,8 +2146,6 @@ function ensureRootIsScheduled(root) { mightHavePendingSyncWork = !0; didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now$1()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -2236,12 +2233,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$3 = 31 - clz32(pendingLanes), + lane = 1 << index$3, + expirationTime = expirationTimes[index$3]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$3] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -2302,7 +2299,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { } function performWorkOnRootViaSchedulerTask(root, didTimeout) { nestedUpdateScheduled = currentUpdateIsNested = !1; - if (0 !== pendingEffectsStatus && 3 !== pendingEffectsStatus) + if (0 !== pendingEffectsStatus && 4 !== pendingEffectsStatus) return (root.callbackNode = null), (root.callbackPriority = 0), null; var originalCallbackNode = root.callbackNode; if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode) @@ -4524,16 +4521,16 @@ function createChildReconciler(shouldTrackSideEffects) { return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -5253,11 +5250,6 @@ function applyDerivedStateFromProps( (workInProgress.updateQueue.baseState = getDerivedStateFromProps); } var classComponentUpdater = { - isMounted: function (component) { - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), @@ -6634,7 +6626,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { children: nextProps.children })), (nextProps.subtreeFlags = - JSCompiler_temp$jscomp$0.subtreeFlags & 29360128), + JSCompiler_temp$jscomp$0.subtreeFlags & 65011712), null !== digest ? (showFallback = createWorkInProgress(digest, showFallback)) : ((showFallback = createFiberFromFragment( @@ -7721,8 +7713,8 @@ function bubbleProperties(completedWork) { ) (newChildLanes |= child$131.lanes | child$131.childLanes), - (subtreeFlags |= child$131.subtreeFlags & 29360128), - (subtreeFlags |= child$131.flags & 29360128), + (subtreeFlags |= child$131.subtreeFlags & 65011712), + (subtreeFlags |= child$131.flags & 65011712), (treeBaseDuration$130 += child$131.treeBaseDuration), (child$131 = child$131.sibling); completedWork.treeBaseDuration = treeBaseDuration$130; @@ -7734,8 +7726,8 @@ function bubbleProperties(completedWork) { ) (newChildLanes |= treeBaseDuration$130.lanes | treeBaseDuration$130.childLanes), - (subtreeFlags |= treeBaseDuration$130.subtreeFlags & 29360128), - (subtreeFlags |= treeBaseDuration$130.flags & 29360128), + (subtreeFlags |= treeBaseDuration$130.subtreeFlags & 65011712), + (subtreeFlags |= treeBaseDuration$130.flags & 65011712), (treeBaseDuration$130.return = completedWork), (treeBaseDuration$130 = treeBaseDuration$130.sibling); else if (0 !== (completedWork.mode & 2)) { @@ -8260,6 +8252,8 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error(formatProdErrorMessage(156, workInProgress.tag)); } @@ -10202,6 +10196,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -10625,7 +10620,7 @@ function commitPassiveMountOnFiber( break; case 12: flags & 2048 - ? ((prevEffectDuration = pushNestedEffectDurations()), + ? ((flags = pushNestedEffectDurations()), recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, @@ -10634,7 +10629,7 @@ function commitPassiveMountOnFiber( ), (finishedRoot = finishedWork.stateNode), (finishedRoot.passiveEffectDuration += - bubbleNestedEffectDurations(prevEffectDuration)), + bubbleNestedEffectDurations(flags)), commitProfilerPostCommit( finishedWork, finishedWork.alternate, @@ -10672,6 +10667,7 @@ function commitPassiveMountOnFiber( break; case 22: prevEffectDuration = finishedWork.stateNode; + nextCache = finishedWork.alternate; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -10698,7 +10694,7 @@ function commitPassiveMountOnFiber( )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + nextCache, finishedWork, prevEffectDuration ); @@ -10713,6 +10709,7 @@ function commitPassiveMountOnFiber( flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -11162,6 +11159,7 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -11286,11 +11284,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$13 = 31 - clz32(lane), - transitions = transitionLanesMap[index$13]; + index$10 = 31 - clz32(lane), + transitions = transitionLanesMap[index$10]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$13] = transitions; + transitionLanesMap[index$10] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -11437,6 +11435,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -11457,6 +11456,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -11479,6 +11479,7 @@ function commitRootWhenReady( finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -11493,12 +11494,13 @@ function commitRootWhenReady( root.timeoutHandle = -1; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -11510,6 +11512,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11529,6 +11532,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11594,9 +11598,9 @@ function markRootSuspended( (root.warmLanes |= suspendedLanes); didAttemptEntireTree = root.expirationTimes; for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - didAttemptEntireTree[index$7] = -1; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4; + didAttemptEntireTree[index$4] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11650,6 +11654,7 @@ function prepareFreshStack(root, lanes) { workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -11658,9 +11663,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$2 = 31 - clz32(allEntangledLanes), + lane = 1 << index$2; + lanes |= root[index$2]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -12174,6 +12179,7 @@ function commitRoot( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -12222,24 +12228,30 @@ function commitRoot( })) : ((root.callbackNode = null), (root.callbackPriority = 0)); commitStartTime = now(); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = Internals.p; + transitions = Internals.p; Internals.p = 2; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= 4; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (Internals.p = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (Internals.p = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = 1; flushMutationEffects(); + pendingEffectsStatus = 3; flushLayoutEffects(); } } @@ -12378,7 +12390,7 @@ function flushMutationEffects() { } } function flushLayoutEffects() { - if (2 === pendingEffectsStatus) { + if (3 === pendingEffectsStatus) { pendingEffectsStatus = 0; var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, @@ -12419,7 +12431,7 @@ function flushLayoutEffects() { requestPaint(); 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) - ? (pendingEffectsStatus = 3) + ? (pendingEffectsStatus = 4) : ((pendingEffectsStatus = 0), (pendingEffectsRoot = null), releaseRootPooledCache(root, root.pendingLanes)); @@ -12493,10 +12505,12 @@ function releaseRootPooledCache(root, remainingLanes) { function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + 2 === pendingEffectsStatus && + ((pendingEffectsStatus = 0), (pendingEffectsStatus = 3)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { - if (3 !== pendingEffectsStatus) return !1; + if (4 !== pendingEffectsStatus) return !1; var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; pendingEffectsRemainingLanes = 0; @@ -12795,7 +12809,7 @@ function createWorkInProgress(current, pendingProps) { (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -12816,7 +12830,7 @@ function createWorkInProgress(current, pendingProps) { return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -12909,6 +12923,7 @@ function createFiberFromTypeAndProps( return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -13792,14 +13807,14 @@ var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$371; if (canUseDOM) { - var isSupported$jscomp$inline_1654 = "oninput" in document; - if (!isSupported$jscomp$inline_1654) { - var element$jscomp$inline_1655 = document.createElement("div"); - element$jscomp$inline_1655.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1654 = - "function" === typeof element$jscomp$inline_1655.oninput; + var isSupported$jscomp$inline_1669 = "oninput" in document; + if (!isSupported$jscomp$inline_1669) { + var element$jscomp$inline_1670 = document.createElement("div"); + element$jscomp$inline_1670.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1669 = + "function" === typeof element$jscomp$inline_1670.oninput; } - JSCompiler_inline_result$jscomp$371 = isSupported$jscomp$inline_1654; + JSCompiler_inline_result$jscomp$371 = isSupported$jscomp$inline_1669; } else JSCompiler_inline_result$jscomp$371 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$371 && @@ -14122,20 +14137,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1695 = 0; - i$jscomp$inline_1695 < simpleEventPluginEvents.length; - i$jscomp$inline_1695++ + var i$jscomp$inline_1710 = 0; + i$jscomp$inline_1710 < simpleEventPluginEvents.length; + i$jscomp$inline_1710++ ) { - var eventName$jscomp$inline_1696 = - simpleEventPluginEvents[i$jscomp$inline_1695], - domEventName$jscomp$inline_1697 = - eventName$jscomp$inline_1696.toLowerCase(), - capitalizedEvent$jscomp$inline_1698 = - eventName$jscomp$inline_1696[0].toUpperCase() + - eventName$jscomp$inline_1696.slice(1); + var eventName$jscomp$inline_1711 = + simpleEventPluginEvents[i$jscomp$inline_1710], + domEventName$jscomp$inline_1712 = + eventName$jscomp$inline_1711.toLowerCase(), + capitalizedEvent$jscomp$inline_1713 = + eventName$jscomp$inline_1711[0].toUpperCase() + + eventName$jscomp$inline_1711.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1697, - "on" + capitalizedEvent$jscomp$inline_1698 + domEventName$jscomp$inline_1712, + "on" + capitalizedEvent$jscomp$inline_1713 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -17710,16 +17725,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1868 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1883 = React.version; if ( - "19.1.0-www-modern-defffdbb-20250106" !== - isomorphicReactPackageVersion$jscomp$inline_1868 + "19.1.0-www-modern-98418e89-20250108" !== + isomorphicReactPackageVersion$jscomp$inline_1883 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1868, - "19.1.0-www-modern-defffdbb-20250106" + isomorphicReactPackageVersion$jscomp$inline_1883, + "19.1.0-www-modern-98418e89-20250108" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17735,27 +17750,27 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_1870 = { +var internals$jscomp$inline_1885 = { bundleType: 0, - version: "19.1.0-www-modern-defffdbb-20250106", + version: "19.1.0-www-modern-98418e89-20250108", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-modern-98418e89-20250108" }; enableSchedulingProfiler && - ((internals$jscomp$inline_1870.getLaneLabelMap = getLaneLabelMap), - (internals$jscomp$inline_1870.injectProfilingHooks = injectProfilingHooks)); + ((internals$jscomp$inline_1885.getLaneLabelMap = getLaneLabelMap), + (internals$jscomp$inline_1885.injectProfilingHooks = injectProfilingHooks)); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2356 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2373 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2356.isDisabled && - hook$jscomp$inline_2356.supportsFiber + !hook$jscomp$inline_2373.isDisabled && + hook$jscomp$inline_2373.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2356.inject( - internals$jscomp$inline_1870 + (rendererID = hook$jscomp$inline_2373.inject( + internals$jscomp$inline_1885 )), - (injectedHook = hook$jscomp$inline_2356); + (injectedHook = hook$jscomp$inline_2373); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -18107,7 +18122,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-defffdbb-20250106"; +exports.version = "19.1.0-www-modern-98418e89-20250108"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 1cc6387ee1462..67b7ac5fd528b 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -3563,6 +3563,7 @@ __DEV__ && return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -5498,11 +5499,12 @@ __DEV__ && renderNodeDestructive(request, task, props.children, -1); task.keyPath = _prevKeyPath3; return; + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: - var _prevKeyPath4 = task.keyPath; + var _prevKeyPath5 = task.keyPath; task.keyPath = keyPath; renderNodeDestructive(request, task, props.children, -1); - task.keyPath = _prevKeyPath4; + task.keyPath = _prevKeyPath5; return; case REACT_SUSPENSE_TYPE: a: if (null !== task.replay) { @@ -7713,6 +7715,7 @@ __DEV__ && REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray, jsxPropsParents = new WeakMap(), @@ -8923,9 +8926,6 @@ __DEV__ && var didWarnAboutInvalidateContextType = new Set(); var didWarnOnInvalidCallback = new Set(); var classComponentUpdater = { - isMounted: function () { - return !1; - }, enqueueSetState: function (inst, payload, callback) { var internals = inst._reactInternals; null === internals.queue @@ -9150,5 +9150,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.1.0-www-classic-defffdbb-20250106"; + exports.version = "19.1.0-www-classic-98418e89-20250108"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 15b8840649cc2..7c1bbf30567b6 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -3563,6 +3563,7 @@ __DEV__ && return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -5370,6 +5371,7 @@ __DEV__ && renderNodeDestructive(request, task, props.children, -1); task.keyPath = type; return; + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: type = task.keyPath; task.keyPath = keyPath; @@ -7541,6 +7543,7 @@ __DEV__ && REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray, jsxPropsParents = new WeakMap(), @@ -8749,9 +8752,6 @@ __DEV__ && var didWarnAboutInvalidateContextType = new Set(); var didWarnOnInvalidCallback = new Set(); var classComponentUpdater = { - isMounted: function () { - return !1; - }, enqueueSetState: function (inst, payload, callback) { var internals = inst._reactInternals; null === internals.queue @@ -8976,5 +8976,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.1.0-www-modern-defffdbb-20250106"; + exports.version = "19.1.0-www-modern-98418e89-20250108"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 85140df6c28f2..7a0afdd791b17 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -81,6 +81,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray; function murmurhash3_32_gc(key, seed) { @@ -2849,6 +2850,7 @@ function getComponentNameFromType(type) { return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -2953,9 +2955,6 @@ function switchContext(newSnapshot) { (currentActiveSnapshot = newSnapshot)); } var classComponentUpdater = { - isMounted: function () { - return !1; - }, enqueueSetState: function (inst, payload) { inst = inst._reactInternals; null !== inst.queue && inst.queue.push(payload); @@ -4197,6 +4196,7 @@ function renderElement(request, task, keyPath, type, props, ref) { renderNodeDestructive(request, task, props.children, -1); task.keyPath = type; return; + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: type = task.keyPath; task.keyPath = keyPath; @@ -5898,4 +5898,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.1.0-www-classic-defffdbb-20250106"; +exports.version = "19.1.0-www-classic-98418e89-20250108"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index db3dea4a7f168..3cba9a6d94ae7 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -79,6 +79,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray; function murmurhash3_32_gc(key, seed) { @@ -2847,6 +2848,7 @@ function getComponentNameFromType(type) { return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -2943,9 +2945,6 @@ function switchContext(newSnapshot) { (currentActiveSnapshot = newSnapshot)); } var classComponentUpdater = { - isMounted: function () { - return !1; - }, enqueueSetState: function (inst, payload) { inst = inst._reactInternals; null !== inst.queue && inst.queue.push(payload); @@ -4130,6 +4129,7 @@ function renderElement(request, task, keyPath, type, props, ref) { renderNodeDestructive(request, task, props.children, -1); task.keyPath = type; return; + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: type = task.keyPath; task.keyPath = keyPath; @@ -5810,4 +5810,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.1.0-www-modern-defffdbb-20250106"; +exports.version = "19.1.0-www-modern-98418e89-20250108"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index bbc5bf5ca8a38..62683a8698562 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -3349,6 +3349,7 @@ __DEV__ && return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -5110,6 +5111,7 @@ __DEV__ && renderNodeDestructive(request, task, props.children, -1); task.keyPath = type; return; + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: type = task.keyPath; task.keyPath = keyPath; @@ -6944,6 +6946,7 @@ __DEV__ && REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray, jsxPropsParents = new WeakMap(), @@ -8057,9 +8060,6 @@ __DEV__ && var didWarnAboutInvalidateContextType = new Set(); var didWarnOnInvalidCallback = new Set(); var classComponentUpdater = { - isMounted: function () { - return !1; - }, enqueueSetState: function (inst, payload, callback) { var internals = inst._reactInternals; null === internals.queue diff --git a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js index 00d4fa658f752..50b7d0e8d6b97 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js @@ -64,6 +64,7 @@ var React = require("react"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, isArrayImpl = Array.isArray; function murmurhash3_32_gc(key, seed) { @@ -2703,6 +2704,7 @@ function getComponentNameFromType(type) { return "Suspense"; case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: case REACT_TRACING_MARKER_TYPE: if (enableTransitionTracing) return "TracingMarker"; } @@ -2811,9 +2813,6 @@ function switchContext(newSnapshot) { (currentActiveSnapshot = newSnapshot)); } var classComponentUpdater = { - isMounted: function () { - return !1; - }, enqueueSetState: function (inst, payload) { inst = inst._reactInternals; null !== inst.queue && inst.queue.push(payload); @@ -3976,6 +3975,7 @@ function renderElement(request, task, keyPath, type, props, ref) { renderNodeDestructive(request, task, props.children, -1); task.keyPath = type; return; + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: type = task.keyPath; task.keyPath = keyPath; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index a310b2a6aef89..af1a2b7ea9bae 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -115,6 +115,144 @@ __DEV__ && }); return array.sort().join(", "); } + function getNearestMountedFiber(fiber) { + var node = fiber, + nearestMounted = fiber; + if (fiber.alternate) for (; node.return; ) node = node.return; + else { + fiber = node; + do + (node = fiber), + 0 !== (node.flags & 4098) && (nearestMounted = node.return), + (fiber = node.return); + while (fiber); + } + return 3 === node.tag ? nearestMounted : null; + } + function getSuspenseInstanceFromFiber(fiber) { + if (13 === fiber.tag) { + var suspenseState = fiber.memoizedState; + null === suspenseState && + ((fiber = fiber.alternate), + null !== fiber && (suspenseState = fiber.memoizedState)); + if (null !== suspenseState) return suspenseState.dehydrated; + } + return null; + } + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) + throw Error("Unable to find node on an unmounted component."); + } + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + alternate = getNearestMountedFiber(fiber); + if (null === alternate) + throw Error("Unable to find node on an unmounted component."); + return alternate !== fiber ? null : fiber; + } + for (var a = fiber, b = alternate; ; ) { + var parentA = a.return; + if (null === parentA) break; + var parentB = parentA.alternate; + if (null === parentB) { + b = parentA.return; + if (null !== b) { + a = b; + continue; + } + break; + } + if (parentA.child === parentB.child) { + for (parentB = parentA.child; parentB; ) { + if (parentB === a) return assertIsMounted(parentA), fiber; + if (parentB === b) return assertIsMounted(parentA), alternate; + parentB = parentB.sibling; + } + throw Error("Unable to find node on an unmounted component."); + } + if (a.return !== b.return) (a = parentA), (b = parentB); + else { + for (var didFindChild = !1, _child = parentA.child; _child; ) { + if (_child === a) { + didFindChild = !0; + a = parentA; + b = parentB; + break; + } + if (_child === b) { + didFindChild = !0; + b = parentA; + a = parentB; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + for (_child = parentB.child; _child; ) { + if (_child === a) { + didFindChild = !0; + a = parentB; + b = parentA; + break; + } + if (_child === b) { + didFindChild = !0; + b = parentB; + a = parentA; + break; + } + _child = _child.sibling; + } + if (!didFindChild) + throw Error( + "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." + ); + } + } + if (a.alternate !== b) + throw Error( + "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." + ); + } + if (3 !== a.tag) + throw Error("Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + function findCurrentHostFiber(parent) { + parent = findCurrentFiberUsingSlowPath(parent); + return null !== parent ? findCurrentHostFiberImpl(parent) : null; + } + function findCurrentHostFiberImpl(node) { + var tag = node.tag; + if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; + for (node = node.child; null !== node; ) { + tag = findCurrentHostFiberImpl(node); + if (null !== tag) return tag; + node = node.sibling; + } + return null; + } + function isFiberSuspenseAndTimedOut(fiber) { + var memoizedState = fiber.memoizedState; + return ( + 13 === fiber.tag && + null !== memoizedState && + null === memoizedState.dehydrated + ); + } + function doesFiberContain(parentFiber, childFiber) { + for ( + var parentFiberAlternate = parentFiber.alternate; + null !== childFiber; + + ) { + if (childFiber === parentFiber || childFiber === parentFiberAlternate) + return !0; + childFiber = childFiber.return; + } + return !1; + } function warn(format) { if (!suppressWarning) { for ( @@ -152,723 +290,57 @@ __DEV__ && args.unshift(!1); warningWWW.apply(null, args); } - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) - return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; + function injectInternals(internals) { + if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled) return !0; + if (!hook.supportsFiber) + return ( + error$jscomp$0( + "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" + ), + !0 + ); + try { + (rendererID = hook.inject(internals)), (injectedHook = hook); + } catch (err) { + error$jscomp$0("React instrumentation encountered an error: %s.", err); } - if ("object" === typeof type) - switch ( - ("number" === typeof type.tag && + return hook.checkDCE ? !0 : !1; + } + function onCommitRoot$1(root, eventPriority) { + if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) + try { + var didError = 128 === (root.current.flags & 128); + switch (eventPriority) { + case DiscreteEventPriority: + var schedulerPriority = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriority = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriority = NormalPriority$1; + break; + case IdleEventPriority: + schedulerPriority = IdlePriority; + break; + default: + schedulerPriority = NormalPriority$1; + } + injectedHook.onCommitFiberRoot( + rendererID, + root, + schedulerPriority, + didError + ); + } catch (err) { + hasLoggedError || + ((hasLoggedError = !0), error$jscomp$0( - "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." - ), - type.$$typeof) - ) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; - } - function getComponentNameFromOwner(owner) { - return "number" === typeof owner.tag - ? getComponentNameFromFiber(owner) - : "string" === typeof owner.name - ? owner.name - : null; - } - function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; - case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return ( - (fiber = type.render), - (fiber = fiber.displayName || fiber.name || ""), - type.displayName || - ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") - ); - case 7: - return "Fragment"; - case 26: - case 27: - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 14: - case 15: - if ("function" === typeof type) - return type.displayName || type.name || null; - if ("string" === typeof type) return type; - break; - case 23: - return "LegacyHidden"; - case 29: - type = fiber._debugInfo; - if (null != type) - for (var i = type.length - 1; 0 <= i; i--) - if ("string" === typeof type[i].name) return type[i].name; - if (null !== fiber.return) - return getComponentNameFromFiber(fiber.return); - } - return null; - } - function disabledLog() {} - function disableLogs() { - if (0 === disabledDepth) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: !0, - enumerable: !0, - value: disabledLog, - writable: !0 - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; - } - function reenableLogs() { - disabledDepth--; - if (0 === disabledDepth) { - var props = { configurable: !0, enumerable: !0, writable: !0 }; - Object.defineProperties(console, { - log: assign({}, props, { value: prevLog }), - info: assign({}, props, { value: prevInfo }), - warn: assign({}, props, { value: prevWarn }), - error: assign({}, props, { value: prevError }), - group: assign({}, props, { value: prevGroup }), - groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), - groupEnd: assign({}, props, { value: prevGroupEnd }) - }); - } - 0 > disabledDepth && - error$jscomp$0( - "disabledDepth fell below zero. This is a bug in React. Please file an issue." - ); - } - function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - var frame = componentFrameCache.get(fn); - if (void 0 !== frame) return frame; - reentry = !0; - frame = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher = null; - previousDispatcher = ReactSharedInternals.H; - ReactSharedInternals.H = null; - disableLogs(); - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$0) { - control = x$0; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$1) { - control = x$1; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = - RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - _RunInRootFrame$Deter = namePropDescriptor = 0; - namePropDescriptor < sampleLines.length && - !sampleLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - for ( - ; - _RunInRootFrame$Deter < controlLines.length && - !controlLines[_RunInRootFrame$Deter].includes( - "DetermineComponentFrameRoot" - ); - - ) - _RunInRootFrame$Deter++; - if ( - namePropDescriptor === sampleLines.length || - _RunInRootFrame$Deter === controlLines.length - ) - for ( - namePropDescriptor = sampleLines.length - 1, - _RunInRootFrame$Deter = controlLines.length - 1; - 1 <= namePropDescriptor && - 0 <= _RunInRootFrame$Deter && - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]; - - ) - _RunInRootFrame$Deter--; - for ( - ; - 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; - namePropDescriptor--, _RunInRootFrame$Deter-- - ) - if ( - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter] - ) { - if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { - do - if ( - (namePropDescriptor--, - _RunInRootFrame$Deter--, - 0 > _RunInRootFrame$Deter || - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]) - ) { - var _frame = - "\n" + - sampleLines[namePropDescriptor].replace( - " at new ", - " at " - ); - fn.displayName && - _frame.includes("") && - (_frame = _frame.replace("", fn.displayName)); - "function" === typeof fn && - componentFrameCache.set(fn, _frame); - return _frame; - } - while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); - } - break; - } - } - } finally { - (reentry = !1), - (ReactSharedInternals.H = previousDispatcher), - reenableLogs(), - (Error.prepareStackTrace = frame); - } - sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(sampleLines) - : ""; - "function" === typeof fn && componentFrameCache.set(fn, sampleLines); - return sampleLines; - } - function formatOwnerStack(error) { - var prevPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - error = error.stack; - Error.prepareStackTrace = prevPrepareStackTrace; - error.startsWith("Error: react-stack-top-frame\n") && - (error = error.slice(29)); - prevPrepareStackTrace = error.indexOf("\n"); - -1 !== prevPrepareStackTrace && - (error = error.slice(prevPrepareStackTrace + 1)); - prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); - -1 !== prevPrepareStackTrace && - (prevPrepareStackTrace = error.lastIndexOf( - "\n", - prevPrepareStackTrace - )); - if (-1 !== prevPrepareStackTrace) - error = error.slice(0, prevPrepareStackTrace); - else return ""; - return error; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do { - info += describeFiber(workInProgress); - var debugInfo = workInProgress._debugInfo; - if (debugInfo) - for (var i = debugInfo.length - 1; 0 <= i; i--) { - var entry = debugInfo[i]; - if ("string" === typeof entry.name) { - var JSCompiler_temp_const = info, - env = entry.env; - var JSCompiler_inline_result = describeBuiltInComponentFrame( - entry.name + (env ? " [" + env + "]" : "") - ); - info = JSCompiler_temp_const + JSCompiler_inline_result; - } - } - workInProgress = workInProgress.return; - } while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function describeFunctionComponentFrameWithoutLineNumber(fn) { - return (fn = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(fn) - : ""; - } - function getOwnerStackByFiberInDev(workInProgress) { - if (!enableOwnerStacks) return ""; - try { - var info = ""; - 6 === workInProgress.tag && (workInProgress = workInProgress.return); - switch (workInProgress.tag) { - case 26: - case 27: - case 5: - info += describeBuiltInComponentFrame(workInProgress.type); - break; - case 13: - info += describeBuiltInComponentFrame("Suspense"); - break; - case 19: - info += describeBuiltInComponentFrame("SuspenseList"); - break; - case 0: - case 15: - case 1: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type - )); - break; - case 11: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type.render - )); - } - for (; workInProgress; ) - if ("number" === typeof workInProgress.tag) { - var fiber = workInProgress; - workInProgress = fiber._debugOwner; - var debugStack = fiber._debugStack; - workInProgress && - debugStack && - ("string" !== typeof debugStack && - (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), - "" !== debugStack && (info += "\n" + debugStack)); - } else if (null != workInProgress.debugStack) { - var ownerStack = workInProgress.debugStack; - (workInProgress = workInProgress.owner) && - ownerStack && - (info += "\n" + formatOwnerStack(ownerStack)); - } else break; - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function getCurrentFiberOwnerNameInDevOrNull() { - if (null === current) return null; - var owner = current._debugOwner; - return null != owner ? getComponentNameFromOwner(owner) : null; - } - function getCurrentFiberStackInDev() { - return null === current - ? "" - : enableOwnerStacks - ? getOwnerStackByFiberInDev(current) - : getStackByFiberInDevAndProd(current); - } - function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { - var previousFiber = current; - ReactSharedInternals.getCurrentStack = - null === fiber ? null : getCurrentFiberStackInDev; - isRendering = !1; - current = fiber; - try { - return enableOwnerStacks && null !== fiber && fiber._debugTask - ? fiber._debugTask.run( - callback.bind(null, arg0, arg1, arg2, arg3, arg4) - ) - : callback(arg0, arg1, arg2, arg3, arg4); - } finally { - current = previousFiber; - } - throw Error( - "runWithFiberInDEV should never be called in production. This is a bug in React." - ); - } - function getNearestMountedFiber(fiber) { - var node = fiber, - nearestMounted = fiber; - if (fiber.alternate) for (; node.return; ) node = node.return; - else { - fiber = node; - do - (node = fiber), - 0 !== (node.flags & 4098) && (nearestMounted = node.return), - (fiber = node.return); - while (fiber); - } - return 3 === node.tag ? nearestMounted : null; - } - function getSuspenseInstanceFromFiber(fiber) { - if (13 === fiber.tag) { - var suspenseState = fiber.memoizedState; - null === suspenseState && - ((fiber = fiber.alternate), - null !== fiber && (suspenseState = fiber.memoizedState)); - if (null !== suspenseState) return suspenseState.dehydrated; - } - return null; - } - function assertIsMounted(fiber) { - if (getNearestMountedFiber(fiber) !== fiber) - throw Error("Unable to find node on an unmounted component."); - } - function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - if (!alternate) { - alternate = getNearestMountedFiber(fiber); - if (null === alternate) - throw Error("Unable to find node on an unmounted component."); - return alternate !== fiber ? null : fiber; - } - for (var a = fiber, b = alternate; ; ) { - var parentA = a.return; - if (null === parentA) break; - var parentB = parentA.alternate; - if (null === parentB) { - b = parentA.return; - if (null !== b) { - a = b; - continue; - } - break; - } - if (parentA.child === parentB.child) { - for (parentB = parentA.child; parentB; ) { - if (parentB === a) return assertIsMounted(parentA), fiber; - if (parentB === b) return assertIsMounted(parentA), alternate; - parentB = parentB.sibling; - } - throw Error("Unable to find node on an unmounted component."); - } - if (a.return !== b.return) (a = parentA), (b = parentB); - else { - for (var didFindChild = !1, _child = parentA.child; _child; ) { - if (_child === a) { - didFindChild = !0; - a = parentA; - b = parentB; - break; - } - if (_child === b) { - didFindChild = !0; - b = parentA; - a = parentB; - break; - } - _child = _child.sibling; - } - if (!didFindChild) { - for (_child = parentB.child; _child; ) { - if (_child === a) { - didFindChild = !0; - a = parentB; - b = parentA; - break; - } - if (_child === b) { - didFindChild = !0; - b = parentB; - a = parentA; - break; - } - _child = _child.sibling; - } - if (!didFindChild) - throw Error( - "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." - ); - } - } - if (a.alternate !== b) - throw Error( - "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." - ); - } - if (3 !== a.tag) - throw Error("Unable to find node on an unmounted component."); - return a.stateNode.current === a ? fiber : alternate; - } - function findCurrentHostFiber(parent) { - parent = findCurrentFiberUsingSlowPath(parent); - return null !== parent ? findCurrentHostFiberImpl(parent) : null; - } - function findCurrentHostFiberImpl(node) { - var tag = node.tag; - if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; - for (node = node.child; null !== node; ) { - tag = findCurrentHostFiberImpl(node); - if (null !== tag) return tag; - node = node.sibling; - } - return null; - } - function isFiberSuspenseAndTimedOut(fiber) { - var memoizedState = fiber.memoizedState; - return ( - 13 === fiber.tag && - null !== memoizedState && - null === memoizedState.dehydrated - ); - } - function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; - } - function injectInternals(internals) { - if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; - var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (hook.isDisabled) return !0; - if (!hook.supportsFiber) - return ( - error$jscomp$0( - "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" - ), - !0 - ); - try { - (rendererID = hook.inject(internals)), (injectedHook = hook); - } catch (err) { - error$jscomp$0("React instrumentation encountered an error: %s.", err); - } - return hook.checkDCE ? !0 : !1; - } - function onCommitRoot$1(root, eventPriority) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) - try { - var didError = 128 === (root.current.flags & 128); - switch (eventPriority) { - case DiscreteEventPriority: - var schedulerPriority = ImmediatePriority; - break; - case ContinuousEventPriority: - schedulerPriority = UserBlockingPriority; - break; - case DefaultEventPriority: - schedulerPriority = NormalPriority$1; - break; - case IdleEventPriority: - schedulerPriority = IdlePriority; - break; - default: - schedulerPriority = NormalPriority$1; - } - injectedHook.onCommitFiberRoot( - rendererID, - root, - schedulerPriority, - didError - ); - } catch (err) { - hasLoggedError || - ((hasLoggedError = !0), - error$jscomp$0( - "React instrumentation encountered an error: %s", - err - )); + "React instrumentation encountered an error: %s", + err + )); } } function setIsStrictModeForDevtools(newIsStrictMode) { @@ -983,708 +455,1237 @@ __DEV__ && case 524288: case 1048576: case 2097152: - return lanes & 4194176; + return lanes & 4194176; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + return lanes & 62914560; + case 67108864: + return 67108864; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 0; + default: + return ( + error$jscomp$0( + "Should have found matching lanes. This is a bug in React." + ), + lanes + ); + } + } + function getNextLanes(root, wipLanes, rootHasPendingCommit) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) return 0; + var nextLanes = 0, + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; + var nonIdlePendingLanes = pendingLanes & 134217727; + 0 !== nonIdlePendingLanes + ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : enableSiblingPrerendering && + !rootHasPendingCommit && + ((rootHasPendingCommit = nonIdlePendingLanes & ~root), + 0 !== rootHasPendingCommit && + (nextLanes = + getHighestPriorityLanes(rootHasPendingCommit))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : enableSiblingPrerendering && + !rootHasPendingCommit && + ((rootHasPendingCommit = pendingLanes & ~root), + 0 !== rootHasPendingCommit && + (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))); + return 0 === nextLanes + ? 0 + : 0 !== wipLanes && + wipLanes !== nextLanes && + 0 === (wipLanes & suspendedLanes) && + ((suspendedLanes = nextLanes & -nextLanes), + (rootHasPendingCommit = wipLanes & -wipLanes), + suspendedLanes >= rootHasPendingCommit || + (32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194176))) + ? wipLanes + : nextLanes; + } + function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); + } + function computeExpirationTime(lane, currentTime) { + switch (lane) { + case 1: + case 2: + case 4: + case 8: + return currentTime + syncLaneExpirationMs; + case 16: + case 32: + case 64: + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return currentTime + transitionLaneExpirationMs; case 4194304: case 8388608: case 16777216: case 33554432: - return lanes & 62914560; + return enableRetryLaneExpiration + ? currentTime + retryLaneExpirationMs + : -1; case 67108864: - return 67108864; case 134217728: - return 134217728; case 268435456: - return 268435456; case 536870912: - return 536870912; case 1073741824: - return 0; + return -1; default: return ( error$jscomp$0( "Should have found matching lanes. This is a bug in React." ), - lanes + -1 ); } } - function getNextLanes(root, wipLanes, rootHasPendingCommit) { - var pendingLanes = root.pendingLanes; - if (0 === pendingLanes) return 0; - var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes; - root = root.warmLanes; - var nonIdlePendingLanes = pendingLanes & 134217727; - 0 !== nonIdlePendingLanes - ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : enableSiblingPrerendering && - !rootHasPendingCommit && - ((rootHasPendingCommit = nonIdlePendingLanes & ~root), - 0 !== rootHasPendingCommit && - (nextLanes = - getHighestPriorityLanes(rootHasPendingCommit))))) - : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : enableSiblingPrerendering && - !rootHasPendingCommit && - ((rootHasPendingCommit = pendingLanes & ~root), - 0 !== rootHasPendingCommit && - (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))); - return 0 === nextLanes - ? 0 - : 0 !== wipLanes && - wipLanes !== nextLanes && - 0 === (wipLanes & suspendedLanes) && - ((suspendedLanes = nextLanes & -nextLanes), - (rootHasPendingCommit = wipLanes & -wipLanes), - suspendedLanes >= rootHasPendingCommit || - (32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194176))) - ? wipLanes - : nextLanes; + function claimNextTransitionLane() { + var lane = nextTransitionLane; + nextTransitionLane <<= 1; + 0 === (nextTransitionLane & 4194176) && (nextTransitionLane = 128); + return lane; + } + function claimNextRetryLane() { + var lane = nextRetryLane; + nextRetryLane <<= 1; + 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304); + return lane; + } + function createLaneMap(initial) { + for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); + return laneMap; + } + function markRootFinished( + root, + finishedLanes, + remainingLanes, + spawnedLane, + updatedLanes, + suspendedRetryLanes + ) { + var previouslyPendingLanes = root.pendingLanes; + root.pendingLanes = remainingLanes; + root.suspendedLanes = 0; + root.pingedLanes = 0; + root.warmLanes = 0; + root.expiredLanes &= remainingLanes; + root.entangledLanes &= remainingLanes; + root.errorRecoveryDisabledLanes &= remainingLanes; + root.shellSuspendCounter = 0; + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, + hiddenUpdates = root.hiddenUpdates; + for ( + remainingLanes = previouslyPendingLanes & ~remainingLanes; + 0 < remainingLanes; + + ) { + var index = 31 - clz32(remainingLanes), + lane = 1 << index; + entanglements[index] = 0; + expirationTimes[index] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index]; + if (null !== hiddenUpdatesForLane) + for ( + hiddenUpdates[index] = null, index = 0; + index < hiddenUpdatesForLane.length; + index++ + ) { + var update = hiddenUpdatesForLane[index]; + null !== update && (update.lane &= -536870913); + } + remainingLanes &= ~lane; + } + 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + enableSiblingPrerendering && + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); + } + function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { + root.pendingLanes |= spawnedLane; + root.suspendedLanes &= ~spawnedLane; + var spawnedLaneIndex = 31 - clz32(spawnedLane); + root.entangledLanes |= spawnedLane; + root.entanglements[spawnedLaneIndex] = + root.entanglements[spawnedLaneIndex] | + 1073741824 | + (entangledLanes & 4194218); + } + function markRootEntangled(root, entangledLanes) { + var rootEntangledLanes = (root.entangledLanes |= entangledLanes); + for (root = root.entanglements; rootEntangledLanes; ) { + var index = 31 - clz32(rootEntangledLanes), + lane = 1 << index; + (lane & entangledLanes) | (root[index] & entangledLanes) && + (root[index] |= entangledLanes); + rootEntangledLanes &= ~lane; + } + } + function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; + } + function addFiberToLanesMap(root, fiber, lanes) { + if (isDevToolsPresent) + for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { + var index = 31 - clz32(lanes), + lane = 1 << index; + root[index].add(fiber); + lanes &= ~lane; + } + } + function movePendingFibersToMemoized(root, lanes) { + if (isDevToolsPresent) + for ( + var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap, + memoizedUpdaters = root.memoizedUpdaters; + 0 < lanes; + + ) { + var index = 31 - clz32(lanes); + root = 1 << index; + index = pendingUpdatersLaneMap[index]; + 0 < index.size && + (index.forEach(function (fiber) { + var alternate = fiber.alternate; + (null !== alternate && memoizedUpdaters.has(alternate)) || + memoizedUpdaters.add(fiber); + }), + index.clear()); + lanes &= ~root; + } + } + function getTransitionsForLanes(root, lanes) { + if (!enableTransitionTracing) return null; + for (var transitionsForLanes = []; 0 < lanes; ) { + var index = 31 - clz32(lanes), + lane = 1 << index; + index = root.transitionLanes[index]; + null !== index && + index.forEach(function (transition) { + transitionsForLanes.push(transition); + }); + lanes &= ~lane; + } + return 0 === transitionsForLanes.length ? null : transitionsForLanes; + } + function clearTransitionsForLanes(root, lanes) { + if (enableTransitionTracing) + for (; 0 < lanes; ) { + var index = 31 - clz32(lanes), + lane = 1 << index; + null !== root.transitionLanes[index] && + (root.transitionLanes[index] = null); + lanes &= ~lane; + } + } + function lanesToEventPriority(lanes) { + lanes &= -lanes; + return 0 !== DiscreteEventPriority && DiscreteEventPriority < lanes + ? 0 !== ContinuousEventPriority && ContinuousEventPriority < lanes + ? 0 !== (lanes & 134217727) + ? DefaultEventPriority + : IdleEventPriority + : ContinuousEventPriority + : DiscreteEventPriority; + } + function noop$4() {} + function resolveDispatcher() { + var dispatcher = ReactSharedInternals.H; + null === dispatcher && + error$jscomp$0( + "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." + ); + return dispatcher; + } + function bindToConsole(methodName, args, badgeName) { + var offset = 0; + switch (methodName) { + case "dir": + case "dirxml": + case "groupEnd": + case "table": + return bind.apply(console[methodName], [console].concat(args)); + case "assert": + offset = 1; + } + args = args.slice(0); + "string" === typeof args[offset] + ? args.splice( + offset, + 1, + "%c%s%c " + args[offset], + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + badgeName + " ", + "" + ) + : args.splice( + offset, + 0, + "%c%s%c ", + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + badgeName + " ", + "" + ); + args.unshift(console); + return bind.apply(console[methodName], args); + } + function createCursor(defaultValue) { + return { current: defaultValue }; + } + function pop(cursor, fiber) { + 0 > index$jscomp$0 + ? error$jscomp$0("Unexpected pop.") + : (fiber !== fiberStack[index$jscomp$0] && + error$jscomp$0("Unexpected Fiber popped."), + (cursor.current = valueStack[index$jscomp$0]), + (valueStack[index$jscomp$0] = null), + (fiberStack[index$jscomp$0] = null), + index$jscomp$0--); + } + function push(cursor, value, fiber) { + index$jscomp$0++; + valueStack[index$jscomp$0] = cursor.current; + fiberStack[index$jscomp$0] = fiber; + cursor.current = value; } - function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); + function requiredContext(c) { + null === c && + error$jscomp$0( + "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." + ); + return c; } - function computeExpirationTime(lane, currentTime) { - switch (lane) { - case 1: - case 2: - case 4: - case 8: - return currentTime + syncLaneExpirationMs; - case 16: - case 32: - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - return currentTime + transitionLaneExpirationMs; - case 4194304: - case 8388608: - case 16777216: - case 33554432: - return enableRetryLaneExpiration - ? currentTime + retryLaneExpirationMs - : -1; - case 67108864: - case 134217728: - case 268435456: - case 536870912: - case 1073741824: - return -1; + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance, fiber); + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor$1, null, fiber); + var nextRootContext = nextRootInstance.nodeType; + switch (nextRootContext) { + case DOCUMENT_NODE: + case DOCUMENT_FRAGMENT_NODE: + nextRootContext = + nextRootContext === DOCUMENT_NODE ? "#document" : "#fragment"; + nextRootInstance = (nextRootInstance = + nextRootInstance.documentElement) + ? (nextRootInstance = nextRootInstance.namespaceURI) + ? getOwnHostContext(nextRootInstance) + : HostContextNamespaceNone + : HostContextNamespaceNone; + break; default: - return ( - error$jscomp$0( - "Should have found matching lanes. This is a bug in React." - ), - -1 - ); + if ( + ((nextRootInstance = + nextRootContext === COMMENT_NODE + ? nextRootInstance.parentNode + : nextRootInstance), + (nextRootContext = nextRootInstance.tagName), + (nextRootInstance = nextRootInstance.namespaceURI)) + ) + (nextRootInstance = getOwnHostContext(nextRootInstance)), + (nextRootInstance = getChildHostContextProd( + nextRootInstance, + nextRootContext + )); + else + switch (nextRootContext) { + case "svg": + nextRootInstance = HostContextNamespaceSvg; + break; + case "math": + nextRootInstance = HostContextNamespaceMath; + break; + default: + nextRootInstance = HostContextNamespaceNone; + } } + nextRootContext = nextRootContext.toLowerCase(); + nextRootContext = updatedAncestorInfoDev(null, nextRootContext); + nextRootContext = { + context: nextRootInstance, + ancestorInfo: nextRootContext + }; + pop(contextStackCursor$1, fiber); + push(contextStackCursor$1, nextRootContext, fiber); } - function claimNextTransitionLane() { - var lane = nextTransitionLane; - nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194176) && (nextTransitionLane = 128); - return lane; + function popHostContainer(fiber) { + pop(contextStackCursor$1, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); } - function claimNextRetryLane() { - var lane = nextRetryLane; - nextRetryLane <<= 1; - 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304); - return lane; + function getHostContext() { + return requiredContext(contextStackCursor$1.current); } - function createLaneMap(initial) { - for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); - return laneMap; + function pushHostContext(fiber) { + null !== fiber.memoizedState && + push(hostTransitionProviderCursor, fiber, fiber); + var context = requiredContext(contextStackCursor$1.current); + var type = fiber.type; + var nextContext = getChildHostContextProd(context.context, type); + type = updatedAncestorInfoDev(context.ancestorInfo, type); + nextContext = { context: nextContext, ancestorInfo: type }; + context !== nextContext && + (push(contextFiberStackCursor, fiber, fiber), + push(contextStackCursor$1, nextContext, fiber)); } - function markRootFinished( - root, - finishedLanes, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes - ) { - var previouslyPendingLanes = root.pendingLanes; - root.pendingLanes = remainingLanes; - root.suspendedLanes = 0; - root.pingedLanes = 0; - root.warmLanes = 0; - root.expiredLanes &= remainingLanes; - root.entangledLanes &= remainingLanes; - root.errorRecoveryDisabledLanes &= remainingLanes; - root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, - hiddenUpdates = root.hiddenUpdates; - for ( - remainingLanes = previouslyPendingLanes & ~remainingLanes; - 0 < remainingLanes; - - ) { - var index = 31 - clz32(remainingLanes), - lane = 1 << index; - entanglements[index] = 0; - expirationTimes[index] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index]; - if (null !== hiddenUpdatesForLane) - for ( - hiddenUpdates[index] = null, index = 0; - index < hiddenUpdatesForLane.length; - index++ - ) { - var update = hiddenUpdatesForLane[index]; - null !== update && (update.lane &= -536870913); - } - remainingLanes &= ~lane; + function popHostContext(fiber) { + contextFiberStackCursor.current === fiber && + (pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber)); + hostTransitionProviderCursor.current === fiber && + (pop(hostTransitionProviderCursor, fiber), + (HostTransitionContext._currentValue = NotPendingTransition)); + } + function typeName(value) { + return ( + ("function" === typeof Symbol && + Symbol.toStringTag && + value[Symbol.toStringTag]) || + value.constructor.name || + "Object" + ); + } + function willCoercionThrow(value) { + try { + return testStringCoercion(value), !1; + } catch (e) { + return !0; } - 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - enableSiblingPrerendering && - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); } - function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { - root.pendingLanes |= spawnedLane; - root.suspendedLanes &= ~spawnedLane; - var spawnedLaneIndex = 31 - clz32(spawnedLane); - root.entangledLanes |= spawnedLane; - root.entanglements[spawnedLaneIndex] = - root.entanglements[spawnedLaneIndex] | - 1073741824 | - (entangledLanes & 4194218); + function testStringCoercion(value) { + return "" + value; + } + function checkAttributeStringCoercion(value, attributeName) { + if (willCoercionThrow(value)) + return ( + error$jscomp$0( + "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", + attributeName, + typeName(value) + ), + testStringCoercion(value) + ); } - function markRootEntangled(root, entangledLanes) { - var rootEntangledLanes = (root.entangledLanes |= entangledLanes); - for (root = root.entanglements; rootEntangledLanes; ) { - var index = 31 - clz32(rootEntangledLanes), - lane = 1 << index; - (lane & entangledLanes) | (root[index] & entangledLanes) && - (root[index] |= entangledLanes); - rootEntangledLanes &= ~lane; + function checkCSSPropertyStringCoercion(value, propName) { + if (willCoercionThrow(value)) + return ( + error$jscomp$0( + "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", + propName, + typeName(value) + ), + testStringCoercion(value) + ); + } + function checkFormFieldValueStringCoercion(value) { + if (willCoercionThrow(value)) + return ( + error$jscomp$0( + "Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", + typeName(value) + ), + testStringCoercion(value) + ); + } + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) + return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function resolveUpdatePriority() { + var updatePriority = Internals.p; + if (0 !== updatePriority) return updatePriority; + updatePriority = window.event; + return void 0 === updatePriority + ? DefaultEventPriority + : getEventPriority(updatePriority.type); + } + function runWithPriority(priority, fn) { + var previousPriority = Internals.p; + try { + return (Internals.p = priority), fn(); + } finally { + Internals.p = previousPriority; } } - function getBumpedLaneForHydrationByLane(lane) { - switch (lane) { - case 2: - lane = 1; - break; - case 8: - lane = 4; - break; - case 32: - lane = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - lane = 64; + function getImplicitRole(element) { + var mappedByTag = tagToRoleMappings[element.tagName]; + if (void 0 !== mappedByTag) return mappedByTag; + switch (element.tagName) { + case "A": + case "AREA": + case "LINK": + if (element.hasAttribute("href")) return "link"; break; - case 268435456: - lane = 134217728; + case "IMG": + if (0 < (element.getAttribute("alt") || "").length) return "img"; break; - default: - lane = 0; + case "INPUT": + switch (((mappedByTag = element.type), mappedByTag)) { + case "button": + case "image": + case "reset": + case "submit": + return "button"; + case "checkbox": + case "radio": + return mappedByTag; + case "range": + return "slider"; + case "email": + case "tel": + case "text": + case "url": + return element.hasAttribute("list") ? "combobox" : "textbox"; + case "search": + return element.hasAttribute("list") ? "combobox" : "searchbox"; + default: + return null; + } + case "SELECT": + return element.hasAttribute("multiple") || 1 < element.size + ? "listbox" + : "combobox"; } - return lane; + return null; } - function addFiberToLanesMap(root, fiber, lanes) { - if (isDevToolsPresent) - for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index = 31 - clz32(lanes), - lane = 1 << index; - root[index].add(fiber); - lanes &= ~lane; + function registerTwoPhaseEvent(registrationName, dependencies) { + registerDirectEvent(registrationName, dependencies); + registerDirectEvent(registrationName + "Capture", dependencies); + } + function registerDirectEvent(registrationName, dependencies) { + registrationNameDependencies[registrationName] && + error$jscomp$0( + "EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", + registrationName + ); + registrationNameDependencies[registrationName] = dependencies; + var lowerCasedName = registrationName.toLowerCase(); + possibleRegistrationNames[lowerCasedName] = registrationName; + "onDoubleClick" === registrationName && + (possibleRegistrationNames.ondblclick = registrationName); + for ( + registrationName = 0; + registrationName < dependencies.length; + registrationName++ + ) + allNativeEvents.add(dependencies[registrationName]); + } + function checkControlledValueProps(tagName, props) { + hasReadOnlyValue[props.type] || + props.onChange || + props.onInput || + props.readOnly || + props.disabled || + null == props.value || + ("select" === tagName + ? error$jscomp$0( + "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`." + ) + : error$jscomp$0( + "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`." + )); + props.onChange || + props.readOnly || + props.disabled || + null == props.checked || + error$jscomp$0( + "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`." + ); + } + function isAttributeNameSafe(attributeName) { + if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) + return !0; + if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) + return !1; + if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) + return (validatedAttributeNameCache[attributeName] = !0); + illegalAttributeNameCache[attributeName] = !0; + error$jscomp$0("Invalid attribute name: `%s`", attributeName); + return !1; + } + function getValueForAttributeOnCustomComponent(node, name, expected) { + if (isAttributeNameSafe(name)) { + if (!node.hasAttribute(name)) { + switch (typeof expected) { + case "symbol": + case "object": + return expected; + case "function": + return expected; + case "boolean": + if (!1 === expected) return expected; + } + return void 0 === expected ? void 0 : null; } + node = node.getAttribute(name); + if ("" === node && !0 === expected) return !0; + checkAttributeStringCoercion(expected, name); + return node === "" + expected ? expected : node; + } } - function movePendingFibersToMemoized(root, lanes) { - if (isDevToolsPresent) - for ( - var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap, - memoizedUpdaters = root.memoizedUpdaters; - 0 < lanes; - - ) { - var index = 31 - clz32(lanes); - root = 1 << index; - index = pendingUpdatersLaneMap[index]; - 0 < index.size && - (index.forEach(function (fiber) { - var alternate = fiber.alternate; - (null !== alternate && memoizedUpdaters.has(alternate)) || - memoizedUpdaters.add(fiber); - }), - index.clear()); - lanes &= ~root; + function setValueForAttribute(node, name, value) { + if (isAttributeNameSafe(name)) + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + node.removeAttribute(name); + return; + case "boolean": + var prefix = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix && "aria-" !== prefix) { + node.removeAttribute(name); + return; + } + } + checkAttributeStringCoercion(value, name); + node.setAttribute( + name, + enableTrustedTypesIntegration ? value : "" + value + ); } } - function getTransitionsForLanes(root, lanes) { - if (!enableTransitionTracing) return null; - for (var transitionsForLanes = []; 0 < lanes; ) { - var index = 31 - clz32(lanes), - lane = 1 << index; - index = root.transitionLanes[index]; - null !== index && - index.forEach(function (transition) { - transitionsForLanes.push(transition); - }); - lanes &= ~lane; + function setValueForKnownAttribute(node, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + checkAttributeStringCoercion(value, name); + node.setAttribute( + name, + enableTrustedTypesIntegration ? value : "" + value + ); } - return 0 === transitionsForLanes.length ? null : transitionsForLanes; } - function clearTransitionsForLanes(root, lanes) { - if (enableTransitionTracing) - for (; 0 < lanes; ) { - var index = 31 - clz32(lanes), - lane = 1 << index; - null !== root.transitionLanes[index] && - (root.transitionLanes[index] = null); - lanes &= ~lane; + function setValueForNamespacedAttribute(node, namespace, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; } - } - function lanesToEventPriority(lanes) { - lanes &= -lanes; - return 0 !== DiscreteEventPriority && DiscreteEventPriority < lanes - ? 0 !== ContinuousEventPriority && ContinuousEventPriority < lanes - ? 0 !== (lanes & 134217727) - ? DefaultEventPriority - : IdleEventPriority - : ContinuousEventPriority - : DiscreteEventPriority; - } - function noop$4() {} - function resolveDispatcher() { - var dispatcher = ReactSharedInternals.H; - null === dispatcher && - error$jscomp$0( - "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." + checkAttributeStringCoercion(value, name); + node.setAttributeNS( + namespace, + name, + enableTrustedTypesIntegration ? value : "" + value ); - return dispatcher; - } - function bindToConsole(methodName, args, badgeName) { - var offset = 0; - switch (methodName) { - case "dir": - case "dirxml": - case "groupEnd": - case "table": - return bind.apply(console[methodName], [console].concat(args)); - case "assert": - offset = 1; } - args = args.slice(0); - "string" === typeof args[offset] - ? args.splice( - offset, - 1, - "%c%s%c " + args[offset], - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ) - : args.splice( - offset, - 0, - "%c%s%c ", - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ); - args.unshift(console); - return bind.apply(console[methodName], args); - } - function createCursor(defaultValue) { - return { current: defaultValue }; - } - function pop(cursor, fiber) { - 0 > index$jscomp$0 - ? error$jscomp$0("Unexpected pop.") - : (fiber !== fiberStack[index$jscomp$0] && - error$jscomp$0("Unexpected Fiber popped."), - (cursor.current = valueStack[index$jscomp$0]), - (valueStack[index$jscomp$0] = null), - (fiberStack[index$jscomp$0] = null), - index$jscomp$0--); } - function push(cursor, value, fiber) { - index$jscomp$0++; - valueStack[index$jscomp$0] = cursor.current; - fiberStack[index$jscomp$0] = fiber; - cursor.current = value; + function disabledLog() {} + function disableLogs() { + if (0 === disabledDepth) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: !0, + enumerable: !0, + value: disabledLog, + writable: !0 + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; } - function requiredContext(c) { - null === c && + function reenableLogs() { + disabledDepth--; + if (0 === disabledDepth) { + var props = { configurable: !0, enumerable: !0, writable: !0 }; + Object.defineProperties(console, { + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) + }); + } + 0 > disabledDepth && error$jscomp$0( - "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." + "disabledDepth fell below zero. This is a bug in React. Please file an issue." ); - return c; } - function pushHostContainer(fiber, nextRootInstance) { - push(rootInstanceStackCursor, nextRootInstance, fiber); - push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor$1, null, fiber); - var nextRootContext = nextRootInstance.nodeType; - switch (nextRootContext) { - case DOCUMENT_NODE: - case DOCUMENT_FRAGMENT_NODE: - nextRootContext = - nextRootContext === DOCUMENT_NODE ? "#document" : "#fragment"; - nextRootInstance = (nextRootInstance = - nextRootInstance.documentElement) - ? (nextRootInstance = nextRootInstance.namespaceURI) - ? getOwnHostContext(nextRootInstance) - : HostContextNamespaceNone - : HostContextNamespaceNone; - break; - default: + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + var frame = componentFrameCache.get(fn); + if (void 0 !== frame) return frame; + reentry = !0; + frame = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher = null; + previousDispatcher = ReactSharedInternals.H; + ReactSharedInternals.H = null; + disableLogs(); + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$0) { + control = x$0; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$1) { + control = x$1; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = + RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + _RunInRootFrame$Deter = namePropDescriptor = 0; + namePropDescriptor < sampleLines.length && + !sampleLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + for ( + ; + _RunInRootFrame$Deter < controlLines.length && + !controlLines[_RunInRootFrame$Deter].includes( + "DetermineComponentFrameRoot" + ); + + ) + _RunInRootFrame$Deter++; if ( - ((nextRootInstance = - nextRootContext === COMMENT_NODE - ? nextRootInstance.parentNode - : nextRootInstance), - (nextRootContext = nextRootInstance.tagName), - (nextRootInstance = nextRootInstance.namespaceURI)) + namePropDescriptor === sampleLines.length || + _RunInRootFrame$Deter === controlLines.length ) - (nextRootInstance = getOwnHostContext(nextRootInstance)), - (nextRootInstance = getChildHostContextProd( - nextRootInstance, - nextRootContext - )); - else - switch (nextRootContext) { - case "svg": - nextRootInstance = HostContextNamespaceSvg; - break; - case "math": - nextRootInstance = HostContextNamespaceMath; - break; - default: - nextRootInstance = HostContextNamespaceNone; + for ( + namePropDescriptor = sampleLines.length - 1, + _RunInRootFrame$Deter = controlLines.length - 1; + 1 <= namePropDescriptor && + 0 <= _RunInRootFrame$Deter && + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]; + + ) + _RunInRootFrame$Deter--; + for ( + ; + 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; + namePropDescriptor--, _RunInRootFrame$Deter-- + ) + if ( + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter] + ) { + if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { + do + if ( + (namePropDescriptor--, + _RunInRootFrame$Deter--, + 0 > _RunInRootFrame$Deter || + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]) + ) { + var _frame = + "\n" + + sampleLines[namePropDescriptor].replace( + " at new ", + " at " + ); + fn.displayName && + _frame.includes("") && + (_frame = _frame.replace("", fn.displayName)); + "function" === typeof fn && + componentFrameCache.set(fn, _frame); + return _frame; + } + while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); + } + break; } + } + } finally { + (reentry = !1), + (ReactSharedInternals.H = previousDispatcher), + reenableLogs(), + (Error.prepareStackTrace = frame); } - nextRootContext = nextRootContext.toLowerCase(); - nextRootContext = updatedAncestorInfoDev(null, nextRootContext); - nextRootContext = { - context: nextRootInstance, - ancestorInfo: nextRootContext - }; - pop(contextStackCursor$1, fiber); - push(contextStackCursor$1, nextRootContext, fiber); - } - function popHostContainer(fiber) { - pop(contextStackCursor$1, fiber); - pop(contextFiberStackCursor, fiber); - pop(rootInstanceStackCursor, fiber); - } - function getHostContext() { - return requiredContext(contextStackCursor$1.current); - } - function pushHostContext(fiber) { - null !== fiber.memoizedState && - push(hostTransitionProviderCursor, fiber, fiber); - var context = requiredContext(contextStackCursor$1.current); - var type = fiber.type; - var nextContext = getChildHostContextProd(context.context, type); - type = updatedAncestorInfoDev(context.ancestorInfo, type); - nextContext = { context: nextContext, ancestorInfo: type }; - context !== nextContext && - (push(contextFiberStackCursor, fiber, fiber), - push(contextStackCursor$1, nextContext, fiber)); - } - function popHostContext(fiber) { - contextFiberStackCursor.current === fiber && - (pop(contextStackCursor$1, fiber), pop(contextFiberStackCursor, fiber)); - hostTransitionProviderCursor.current === fiber && - (pop(hostTransitionProviderCursor, fiber), - (HostTransitionContext._currentValue = NotPendingTransition)); + sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(sampleLines) + : ""; + "function" === typeof fn && componentFrameCache.set(fn, sampleLines); + return sampleLines; } - function typeName(value) { - return ( - ("function" === typeof Symbol && - Symbol.toStringTag && - value[Symbol.toStringTag]) || - value.constructor.name || - "Object" - ); + function formatOwnerStack(error) { + var prevPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + error = error.stack; + Error.prepareStackTrace = prevPrepareStackTrace; + error.startsWith("Error: react-stack-top-frame\n") && + (error = error.slice(29)); + prevPrepareStackTrace = error.indexOf("\n"); + -1 !== prevPrepareStackTrace && + (error = error.slice(prevPrepareStackTrace + 1)); + prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); + -1 !== prevPrepareStackTrace && + (prevPrepareStackTrace = error.lastIndexOf( + "\n", + prevPrepareStackTrace + )); + if (-1 !== prevPrepareStackTrace) + error = error.slice(0, prevPrepareStackTrace); + else return ""; + return error; } - function willCoercionThrow(value) { - try { - return testStringCoercion(value), !1; - } catch (e) { - return !0; + function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; } } - function testStringCoercion(value) { - return "" + value; - } - function checkAttributeStringCoercion(value, attributeName) { - if (willCoercionThrow(value)) - return ( - error$jscomp$0( - "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", - attributeName, - typeName(value) - ), - testStringCoercion(value) - ); - } - function checkCSSPropertyStringCoercion(value, propName) { - if (willCoercionThrow(value)) - return ( - error$jscomp$0( - "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", - propName, - typeName(value) - ), - testStringCoercion(value) - ); - } - function checkFormFieldValueStringCoercion(value) { - if (willCoercionThrow(value)) - return ( - error$jscomp$0( - "Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", - typeName(value) - ), - testStringCoercion(value) - ); + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do { + info += describeFiber(workInProgress); + var debugInfo = workInProgress._debugInfo; + if (debugInfo) + for (var i = debugInfo.length - 1; 0 <= i; i--) { + var entry = debugInfo[i]; + if ("string" === typeof entry.name) { + var JSCompiler_temp_const = info, + env = entry.env; + var JSCompiler_inline_result = describeBuiltInComponentFrame( + entry.name + (env ? " [" + env + "]" : "") + ); + info = JSCompiler_temp_const + JSCompiler_inline_result; + } + } + workInProgress = workInProgress.return; + } while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } - function resolveUpdatePriority() { - var updatePriority = Internals.p; - if (0 !== updatePriority) return updatePriority; - updatePriority = window.event; - return void 0 === updatePriority - ? DefaultEventPriority - : getEventPriority(updatePriority.type); + function describeFunctionComponentFrameWithoutLineNumber(fn) { + return (fn = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(fn) + : ""; } - function runWithPriority(priority, fn) { - var previousPriority = Internals.p; + function getOwnerStackByFiberInDev(workInProgress) { + if (!enableOwnerStacks) return ""; try { - return (Internals.p = priority), fn(); - } finally { - Internals.p = previousPriority; + var info = ""; + 6 === workInProgress.tag && (workInProgress = workInProgress.return); + switch (workInProgress.tag) { + case 26: + case 27: + case 5: + info += describeBuiltInComponentFrame(workInProgress.type); + break; + case 13: + info += describeBuiltInComponentFrame("Suspense"); + break; + case 19: + info += describeBuiltInComponentFrame("SuspenseList"); + break; + case 0: + case 15: + case 1: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type + )); + break; + case 11: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type.render + )); + } + for (; workInProgress; ) + if ("number" === typeof workInProgress.tag) { + var fiber = workInProgress; + workInProgress = fiber._debugOwner; + var debugStack = fiber._debugStack; + workInProgress && + debugStack && + ("string" !== typeof debugStack && + (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), + "" !== debugStack && (info += "\n" + debugStack)); + } else if (null != workInProgress.debugStack) { + var ownerStack = workInProgress.debugStack; + (workInProgress = workInProgress.owner) && + ownerStack && + (info += "\n" + formatOwnerStack(ownerStack)); + } else break; + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; } } - function getImplicitRole(element) { - var mappedByTag = tagToRoleMappings[element.tagName]; - if (void 0 !== mappedByTag) return mappedByTag; - switch (element.tagName) { - case "A": - case "AREA": - case "LINK": - if (element.hasAttribute("href")) return "link"; - break; - case "IMG": - if (0 < (element.getAttribute("alt") || "").length) return "img"; + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch ( + ("number" === typeof type.tag && + error$jscomp$0( + "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." + ), + type.$$typeof) + ) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } + function getComponentNameFromOwner(owner) { + return "number" === typeof owner.tag + ? getComponentNameFromFiber(owner) + : "string" === typeof owner.name + ? owner.name + : null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return enableRenderableContext + ? (type._context.displayName || "Context") + ".Consumer" + : (type.displayName || "Context") + ".Consumer"; + case 10: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") + ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; break; - case "INPUT": - switch (((mappedByTag = element.type), mappedByTag)) { - case "button": - case "image": - case "reset": - case "submit": - return "button"; - case "checkbox": - case "radio": - return mappedByTag; - case "range": - return "slider"; - case "email": - case "tel": - case "text": - case "url": - return element.hasAttribute("list") ? "combobox" : "textbox"; - case "search": - return element.hasAttribute("list") ? "combobox" : "searchbox"; - default: - return null; - } - case "SELECT": - return element.hasAttribute("multiple") || 1 < element.size - ? "listbox" - : "combobox"; + case 23: + return "LegacyHidden"; + case 29: + type = fiber._debugInfo; + if (null != type) + for (var i = type.length - 1; 0 <= i; i--) + if ("string" === typeof type[i].name) return type[i].name; + if (null !== fiber.return) + return getComponentNameFromFiber(fiber.return); } return null; } - function registerTwoPhaseEvent(registrationName, dependencies) { - registerDirectEvent(registrationName, dependencies); - registerDirectEvent(registrationName + "Capture", dependencies); + function getCurrentFiberOwnerNameInDevOrNull() { + if (null === current) return null; + var owner = current._debugOwner; + return null != owner ? getComponentNameFromOwner(owner) : null; } - function registerDirectEvent(registrationName, dependencies) { - registrationNameDependencies[registrationName] && - error$jscomp$0( - "EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", - registrationName - ); - registrationNameDependencies[registrationName] = dependencies; - var lowerCasedName = registrationName.toLowerCase(); - possibleRegistrationNames[lowerCasedName] = registrationName; - "onDoubleClick" === registrationName && - (possibleRegistrationNames.ondblclick = registrationName); - for ( - registrationName = 0; - registrationName < dependencies.length; - registrationName++ - ) - allNativeEvents.add(dependencies[registrationName]); + function getCurrentFiberStackInDev() { + return null === current + ? "" + : enableOwnerStacks + ? getOwnerStackByFiberInDev(current) + : getStackByFiberInDevAndProd(current); } - function checkControlledValueProps(tagName, props) { - hasReadOnlyValue[props.type] || - props.onChange || - props.onInput || - props.readOnly || - props.disabled || - null == props.value || - ("select" === tagName - ? error$jscomp$0( - "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`." + function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { + var previousFiber = current; + ReactSharedInternals.getCurrentStack = + null === fiber ? null : getCurrentFiberStackInDev; + isRendering = !1; + current = fiber; + try { + return enableOwnerStacks && null !== fiber && fiber._debugTask + ? fiber._debugTask.run( + callback.bind(null, arg0, arg1, arg2, arg3, arg4) ) - : error$jscomp$0( - "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`." - )); - props.onChange || - props.readOnly || - props.disabled || - null == props.checked || - error$jscomp$0( - "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`." - ); - } - function isAttributeNameSafe(attributeName) { - if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) - return !0; - if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) - return !1; - if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) - return (validatedAttributeNameCache[attributeName] = !0); - illegalAttributeNameCache[attributeName] = !0; - error$jscomp$0("Invalid attribute name: `%s`", attributeName); - return !1; - } - function getValueForAttributeOnCustomComponent(node, name, expected) { - if (isAttributeNameSafe(name)) { - if (!node.hasAttribute(name)) { - switch (typeof expected) { - case "symbol": - case "object": - return expected; - case "function": - return expected; - case "boolean": - if (!1 === expected) return expected; - } - return void 0 === expected ? void 0 : null; - } - node = node.getAttribute(name); - if ("" === node && !0 === expected) return !0; - checkAttributeStringCoercion(expected, name); - return node === "" + expected ? expected : node; - } - } - function setValueForAttribute(node, name, value) { - if (isAttributeNameSafe(name)) - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - node.removeAttribute(name); - return; - case "boolean": - var prefix = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix && "aria-" !== prefix) { - node.removeAttribute(name); - return; - } - } - checkAttributeStringCoercion(value, name); - node.setAttribute( - name, - enableTrustedTypesIntegration ? value : "" + value - ); - } - } - function setValueForKnownAttribute(node, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; - } - checkAttributeStringCoercion(value, name); - node.setAttribute( - name, - enableTrustedTypesIntegration ? value : "" + value - ); - } - } - function setValueForNamespacedAttribute(node, namespace, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; - } - checkAttributeStringCoercion(value, name); - node.setAttributeNS( - namespace, - name, - enableTrustedTypesIntegration ? value : "" + value - ); + : callback(arg0, arg1, arg2, arg3, arg4); + } finally { + current = previousFiber; } + throw Error( + "runWithFiberInDEV should never be called in production. This is a bug in React." + ); } function getToStringValue(value) { switch (typeof value) { @@ -4123,8 +4124,6 @@ __DEV__ && ((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask()) : didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now$1()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -5136,7 +5135,7 @@ __DEV__ && null; hookTypesUpdateIndexDev = -1; null !== current && - (current.flags & 29360128) !== (workInProgress.flags & 29360128) && + (current.flags & 65011712) !== (workInProgress.flags & 65011712) && error$jscomp$0( "Internal React error: Expected static flag was missing. Please notify the React team." ); @@ -5214,7 +5213,7 @@ __DEV__ && workInProgress.updateQueue = current.updateQueue; workInProgress.flags = (workInProgress.mode & StrictEffectsMode) !== NoMode - ? workInProgress.flags & -201328645 + ? workInProgress.flags & -402655237 : workInProgress.flags & -2053; current.lanes &= ~lanes; } @@ -6116,7 +6115,7 @@ __DEV__ && function mountEffect(create, deps) { (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && (currentlyRenderingFiber.mode & NoStrictPassiveEffectsMode) === NoMode - ? mountEffectImpl(142608384, Passive, create, deps) + ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps); } function mountResourceEffect( @@ -6132,7 +6131,7 @@ __DEV__ && ) { var hookFlags = Passive, hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= 142608384; + currentlyRenderingFiber.flags |= 276826112; var inst = createEffectInstance(); inst.destroy = destroy; hook.memoizedState = pushResourceEffect( @@ -6254,7 +6253,7 @@ __DEV__ && function mountLayoutEffect(create, deps) { var fiberFlags = 4194308; (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && - (fiberFlags |= 67108864); + (fiberFlags |= 134217728); return mountEffectImpl(fiberFlags, Layout, create, deps); } function imperativeHandleEffect(create, ref) { @@ -6288,7 +6287,7 @@ __DEV__ && deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; var fiberFlags = 4194308; (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && - (fiberFlags |= 67108864); + (fiberFlags |= 134217728); mountEffectImpl( fiberFlags, Layout, @@ -6899,16 +6898,16 @@ __DEV__ && return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -9245,7 +9244,7 @@ __DEV__ && "function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308); (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864); + (workInProgress.flags |= 134217728); state = !0; } else if (null === current$jscomp$0) (state = workInProgress.stateNode), @@ -9319,11 +9318,11 @@ __DEV__ && "function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864)) + (workInProgress.flags |= 134217728)) : ("function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (workInProgress.memoizedProps = nextProps), (workInProgress.memoizedState = state$jscomp$0)), (state.props = nextProps), @@ -9333,7 +9332,7 @@ __DEV__ && : ("function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (state = !1)); else { state = workInProgress.stateNode; @@ -9586,32 +9585,32 @@ __DEV__ && return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2565; - var JSCompiler_object_inline_stack_2566 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2579; + var JSCompiler_object_inline_stack_2580 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2567 = !1; + var JSCompiler_object_inline_componentStack_2581 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2565 = didSuspend) || - (JSCompiler_object_inline_digest_2565 = + (JSCompiler_object_inline_digest_2579 = didSuspend) || + (JSCompiler_object_inline_digest_2579 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2565 && - ((JSCompiler_object_inline_componentStack_2567 = !0), + JSCompiler_object_inline_digest_2579 && + ((JSCompiler_object_inline_componentStack_2581 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2565 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2579 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2567 + JSCompiler_object_inline_componentStack_2581 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2564 = nextHydratableInstance; + var JSCompiler_object_inline_message_2578 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2564)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2578)) { c: { - var instance = JSCompiler_object_inline_message_2564; + var instance = JSCompiler_object_inline_message_2578; for ( JSCompiler_temp = rootOrSingletonContext; instance.nodeType !== COMMENT_NODE; @@ -9653,46 +9652,46 @@ __DEV__ && JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2564 + JSCompiler_object_inline_message_2578 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2564 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2578 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2564 && - ((JSCompiler_object_inline_message_2564 = - JSCompiler_object_inline_message_2564.dehydrated), - null !== JSCompiler_object_inline_message_2564) + null !== JSCompiler_object_inline_message_2578 && + ((JSCompiler_object_inline_message_2578 = + JSCompiler_object_inline_message_2578.dehydrated), + null !== JSCompiler_object_inline_message_2578) ) return ( - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2564) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2578) ? (workInProgress.lanes = 32) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2564 = - JSCompiler_object_inline_stack_2566.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2566.fallback; - if (JSCompiler_object_inline_componentStack_2567) + JSCompiler_object_inline_message_2578 = + JSCompiler_object_inline_stack_2580.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2580.fallback; + if (JSCompiler_object_inline_componentStack_2581) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2566 = + (JSCompiler_object_inline_stack_2580 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2564, + JSCompiler_object_inline_message_2578, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2567 = + (JSCompiler_object_inline_componentStack_2581 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2567.memoizedState = + (JSCompiler_object_inline_componentStack_2581.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2567.childLanes = + (JSCompiler_object_inline_componentStack_2581.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2565, + JSCompiler_object_inline_digest_2579, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), @@ -9705,9 +9704,9 @@ __DEV__ && ? markerInstanceStack.current : null), (renderLanes = - JSCompiler_object_inline_componentStack_2567.updateQueue), + JSCompiler_object_inline_componentStack_2581.updateQueue), null === renderLanes - ? (JSCompiler_object_inline_componentStack_2567.updateQueue = + ? (JSCompiler_object_inline_componentStack_2581.updateQueue = { transitions: workInProgress, markerInstances: current, @@ -9715,46 +9714,46 @@ __DEV__ && }) : ((renderLanes.transitions = workInProgress), (renderLanes.markerInstances = current)))), - JSCompiler_object_inline_stack_2566 + JSCompiler_object_inline_stack_2580 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2566.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2580.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2566 = + (JSCompiler_object_inline_stack_2580 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2564, + JSCompiler_object_inline_message_2578, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2567 = + (JSCompiler_object_inline_componentStack_2581 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2567.memoizedState = + (JSCompiler_object_inline_componentStack_2581.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2567.childLanes = + (JSCompiler_object_inline_componentStack_2581.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2565, + JSCompiler_object_inline_digest_2579, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2566 + JSCompiler_object_inline_stack_2580 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2564 + JSCompiler_object_inline_message_2578 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2564 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2564) + ((JSCompiler_object_inline_message_2578 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2578) ) { if (didSuspend) workInProgress.flags & 256 @@ -9771,94 +9770,94 @@ __DEV__ && (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2567 = - JSCompiler_object_inline_stack_2566.fallback), - (JSCompiler_object_inline_message_2564 = workInProgress.mode), - (JSCompiler_object_inline_stack_2566 = + (JSCompiler_object_inline_componentStack_2581 = + JSCompiler_object_inline_stack_2580.fallback), + (JSCompiler_object_inline_message_2578 = workInProgress.mode), + (JSCompiler_object_inline_stack_2580 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2566.children + children: JSCompiler_object_inline_stack_2580.children }, - JSCompiler_object_inline_message_2564 + JSCompiler_object_inline_message_2578 )), - (JSCompiler_object_inline_componentStack_2567 = + (JSCompiler_object_inline_componentStack_2581 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2567, - JSCompiler_object_inline_message_2564, + JSCompiler_object_inline_componentStack_2581, + JSCompiler_object_inline_message_2578, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2567.flags |= 2), - (JSCompiler_object_inline_stack_2566.return = workInProgress), - (JSCompiler_object_inline_componentStack_2567.return = + (JSCompiler_object_inline_componentStack_2581.flags |= 2), + (JSCompiler_object_inline_stack_2580.return = workInProgress), + (JSCompiler_object_inline_componentStack_2581.return = workInProgress), - (JSCompiler_object_inline_stack_2566.sibling = - JSCompiler_object_inline_componentStack_2567), - (workInProgress.child = JSCompiler_object_inline_stack_2566), + (JSCompiler_object_inline_stack_2580.sibling = + JSCompiler_object_inline_componentStack_2581), + (workInProgress.child = JSCompiler_object_inline_stack_2580), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2566 = workInProgress.child), - (JSCompiler_object_inline_stack_2566.memoizedState = + (JSCompiler_object_inline_stack_2580 = workInProgress.child), + (JSCompiler_object_inline_stack_2580.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2566.childLanes = + (JSCompiler_object_inline_stack_2580.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2565, + JSCompiler_object_inline_digest_2579, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2567)); + JSCompiler_object_inline_componentStack_2581)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && error$jscomp$0( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2564)) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2578)) ) { - JSCompiler_object_inline_digest_2565 = - JSCompiler_object_inline_message_2564.nextSibling && - JSCompiler_object_inline_message_2564.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2565) { - JSCompiler_temp = JSCompiler_object_inline_digest_2565.dgst; - var message = JSCompiler_object_inline_digest_2565.msg; - instance = JSCompiler_object_inline_digest_2565.stck; - var componentStack = JSCompiler_object_inline_digest_2565.cstck; + JSCompiler_object_inline_digest_2579 = + JSCompiler_object_inline_message_2578.nextSibling && + JSCompiler_object_inline_message_2578.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2579) { + JSCompiler_temp = JSCompiler_object_inline_digest_2579.dgst; + var message = JSCompiler_object_inline_digest_2579.msg; + instance = JSCompiler_object_inline_digest_2579.stck; + var componentStack = JSCompiler_object_inline_digest_2579.cstck; } - JSCompiler_object_inline_message_2564 = message; - JSCompiler_object_inline_digest_2565 = JSCompiler_temp; - JSCompiler_object_inline_stack_2566 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2567 = + JSCompiler_object_inline_message_2578 = message; + JSCompiler_object_inline_digest_2579 = JSCompiler_temp; + JSCompiler_object_inline_stack_2580 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2581 = componentStack; - JSCompiler_object_inline_componentStack_2567 = - JSCompiler_object_inline_message_2564 - ? Error(JSCompiler_object_inline_message_2564) + JSCompiler_object_inline_componentStack_2581 = + JSCompiler_object_inline_message_2578 + ? Error(JSCompiler_object_inline_message_2578) : 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_2567.stack = - JSCompiler_object_inline_stack_2566 || ""; - JSCompiler_object_inline_componentStack_2567.digest = - JSCompiler_object_inline_digest_2565; - JSCompiler_object_inline_digest_2565 = + JSCompiler_object_inline_componentStack_2581.stack = + JSCompiler_object_inline_stack_2580 || ""; + JSCompiler_object_inline_componentStack_2581.digest = + JSCompiler_object_inline_digest_2579; + JSCompiler_object_inline_digest_2579 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; - JSCompiler_object_inline_stack_2566 = { - value: JSCompiler_object_inline_componentStack_2567, + JSCompiler_object_inline_stack_2580 = { + value: JSCompiler_object_inline_componentStack_2581, source: null, - stack: JSCompiler_object_inline_digest_2565 + stack: JSCompiler_object_inline_digest_2579 }; - "string" === typeof JSCompiler_object_inline_digest_2565 && + "string" === typeof JSCompiler_object_inline_digest_2579 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2567, - JSCompiler_object_inline_stack_2566 + JSCompiler_object_inline_componentStack_2581, + JSCompiler_object_inline_stack_2580 ); - queueHydrationError(JSCompiler_object_inline_stack_2566); + queueHydrationError(JSCompiler_object_inline_stack_2580); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9872,44 +9871,44 @@ __DEV__ && renderLanes, !1 ), - (JSCompiler_object_inline_digest_2565 = + (JSCompiler_object_inline_digest_2579 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2565) + didReceiveUpdate || JSCompiler_object_inline_digest_2579) ) { - JSCompiler_object_inline_digest_2565 = workInProgressRoot; + JSCompiler_object_inline_digest_2579 = workInProgressRoot; if ( - null !== JSCompiler_object_inline_digest_2565 && - ((JSCompiler_object_inline_stack_2566 = renderLanes & -renderLanes), - (JSCompiler_object_inline_stack_2566 = - 0 !== (JSCompiler_object_inline_stack_2566 & 42) + null !== JSCompiler_object_inline_digest_2579 && + ((JSCompiler_object_inline_stack_2580 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2580 = + 0 !== (JSCompiler_object_inline_stack_2580 & 42) ? 1 : getBumpedLaneForHydrationByLane( - JSCompiler_object_inline_stack_2566 + JSCompiler_object_inline_stack_2580 )), - (JSCompiler_object_inline_stack_2566 = + (JSCompiler_object_inline_stack_2580 = 0 !== - (JSCompiler_object_inline_stack_2566 & - (JSCompiler_object_inline_digest_2565.suspendedLanes | + (JSCompiler_object_inline_stack_2580 & + (JSCompiler_object_inline_digest_2579.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2566), - 0 !== JSCompiler_object_inline_stack_2566 && - JSCompiler_object_inline_stack_2566 !== prevState.retryLane) + : JSCompiler_object_inline_stack_2580), + 0 !== JSCompiler_object_inline_stack_2580 && + JSCompiler_object_inline_stack_2580 !== prevState.retryLane) ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2566), + ((prevState.retryLane = JSCompiler_object_inline_stack_2580), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2566 + JSCompiler_object_inline_stack_2580 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2565, + JSCompiler_object_inline_digest_2579, current, - JSCompiler_object_inline_stack_2566 + JSCompiler_object_inline_stack_2580 ), SelectiveHydrationException) ); - JSCompiler_object_inline_message_2564.data === + JSCompiler_object_inline_message_2578.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9917,14 +9916,14 @@ __DEV__ && renderLanes ); } else - JSCompiler_object_inline_message_2564.data === + JSCompiler_object_inline_message_2578.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2564.nextSibling + JSCompiler_object_inline_message_2578.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9942,57 +9941,57 @@ __DEV__ && (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2566.children + JSCompiler_object_inline_stack_2580.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2567) + if (JSCompiler_object_inline_componentStack_2581) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2567 = - JSCompiler_object_inline_stack_2566.fallback), - (JSCompiler_object_inline_message_2564 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2581 = + JSCompiler_object_inline_stack_2580.fallback), + (JSCompiler_object_inline_message_2578 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2566 = createWorkInProgress( + (JSCompiler_object_inline_stack_2580 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2566.children + children: JSCompiler_object_inline_stack_2580.children } )), - (JSCompiler_object_inline_stack_2566.subtreeFlags = - JSCompiler_temp.subtreeFlags & 29360128), + (JSCompiler_object_inline_stack_2580.subtreeFlags = + JSCompiler_temp.subtreeFlags & 65011712), null !== instance - ? (JSCompiler_object_inline_componentStack_2567 = + ? (JSCompiler_object_inline_componentStack_2581 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2567 + JSCompiler_object_inline_componentStack_2581 )) - : ((JSCompiler_object_inline_componentStack_2567 = + : ((JSCompiler_object_inline_componentStack_2581 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2567, - JSCompiler_object_inline_message_2564, + JSCompiler_object_inline_componentStack_2581, + JSCompiler_object_inline_message_2578, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2567.flags |= 2)), - (JSCompiler_object_inline_componentStack_2567.return = + (JSCompiler_object_inline_componentStack_2581.flags |= 2)), + (JSCompiler_object_inline_componentStack_2581.return = workInProgress), - (JSCompiler_object_inline_stack_2566.return = workInProgress), - (JSCompiler_object_inline_stack_2566.sibling = - JSCompiler_object_inline_componentStack_2567), - (workInProgress.child = JSCompiler_object_inline_stack_2566), - (JSCompiler_object_inline_stack_2566 = - JSCompiler_object_inline_componentStack_2567), - (JSCompiler_object_inline_componentStack_2567 = workInProgress.child), - (JSCompiler_object_inline_message_2564 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2564 - ? (JSCompiler_object_inline_message_2564 = + (JSCompiler_object_inline_stack_2580.return = workInProgress), + (JSCompiler_object_inline_stack_2580.sibling = + JSCompiler_object_inline_componentStack_2581), + (workInProgress.child = JSCompiler_object_inline_stack_2580), + (JSCompiler_object_inline_stack_2580 = + JSCompiler_object_inline_componentStack_2581), + (JSCompiler_object_inline_componentStack_2581 = workInProgress.child), + (JSCompiler_object_inline_message_2578 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2578 + ? (JSCompiler_object_inline_message_2578 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2564.cachePool), + JSCompiler_object_inline_message_2578.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -10000,34 +9999,34 @@ __DEV__ && ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2564 = { + (JSCompiler_object_inline_message_2578 = { baseLanes: - JSCompiler_object_inline_message_2564.baseLanes | renderLanes, + JSCompiler_object_inline_message_2578.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2567.memoizedState = - JSCompiler_object_inline_message_2564), + (JSCompiler_object_inline_componentStack_2581.memoizedState = + JSCompiler_object_inline_message_2578), enableTransitionTracing && - ((JSCompiler_object_inline_message_2564 = enableTransitionTracing + ((JSCompiler_object_inline_message_2578 = enableTransitionTracing ? transitionStack.current : null), - null !== JSCompiler_object_inline_message_2564 && + null !== JSCompiler_object_inline_message_2578 && ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), (instance = - JSCompiler_object_inline_componentStack_2567.updateQueue), + JSCompiler_object_inline_componentStack_2581.updateQueue), (componentStack = current.updateQueue), null === instance - ? (JSCompiler_object_inline_componentStack_2567.updateQueue = { - transitions: JSCompiler_object_inline_message_2564, + ? (JSCompiler_object_inline_componentStack_2581.updateQueue = { + transitions: JSCompiler_object_inline_message_2578, markerInstances: JSCompiler_temp, retryQueue: null }) : instance === componentStack - ? (JSCompiler_object_inline_componentStack_2567.updateQueue = + ? (JSCompiler_object_inline_componentStack_2581.updateQueue = { - transitions: JSCompiler_object_inline_message_2564, + transitions: JSCompiler_object_inline_message_2578, markerInstances: JSCompiler_temp, retryQueue: null !== componentStack @@ -10035,32 +10034,32 @@ __DEV__ && : null }) : ((instance.transitions = - JSCompiler_object_inline_message_2564), + JSCompiler_object_inline_message_2578), (instance.markerInstances = JSCompiler_temp)))), - (JSCompiler_object_inline_componentStack_2567.childLanes = + (JSCompiler_object_inline_componentStack_2581.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2565, + JSCompiler_object_inline_digest_2579, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2566 + JSCompiler_object_inline_stack_2580 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2566.children + children: JSCompiler_object_inline_stack_2580.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2565 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2565 + ((JSCompiler_object_inline_digest_2579 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2579 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2565.push(current)); + : JSCompiler_object_inline_digest_2579.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -11461,8 +11460,8 @@ __DEV__ && ) (newChildLanes |= _child2.lanes | _child2.childLanes), - (subtreeFlags |= _child2.subtreeFlags & 29360128), - (subtreeFlags |= _child2.flags & 29360128), + (subtreeFlags |= _child2.subtreeFlags & 65011712), + (subtreeFlags |= _child2.flags & 65011712), (_treeBaseDuration += _child2.treeBaseDuration), (_child2 = _child2.sibling); completedWork.treeBaseDuration = _treeBaseDuration; @@ -11474,8 +11473,8 @@ __DEV__ && ) (newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes), - (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128), - (subtreeFlags |= _treeBaseDuration.flags & 29360128), + (subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712), + (subtreeFlags |= _treeBaseDuration.flags & 65011712), (_treeBaseDuration.return = completedWork), (_treeBaseDuration = _treeBaseDuration.sibling); else if ((completedWork.mode & ProfileMode) !== NoMode) { @@ -12108,6 +12107,8 @@ __DEV__ && bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error( "Unknown unit of work tag (" + @@ -14415,6 +14416,7 @@ __DEV__ && ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -14847,7 +14849,7 @@ __DEV__ && break; case 12: flags & 2048 - ? ((prevEffectDuration = pushNestedEffectDurations()), + ? ((flags = pushNestedEffectDurations()), recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, @@ -14856,7 +14858,7 @@ __DEV__ && ), (finishedRoot = finishedWork.stateNode), (finishedRoot.passiveEffectDuration += - bubbleNestedEffectDurations(prevEffectDuration)), + bubbleNestedEffectDurations(flags)), commitProfilerPostCommit( finishedWork, finishedWork.alternate, @@ -14894,6 +14896,7 @@ __DEV__ && break; case 22: prevEffectDuration = finishedWork.stateNode; + nextCache = finishedWork.alternate; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -14923,7 +14926,7 @@ __DEV__ && )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + nextCache, finishedWork, prevEffectDuration ); @@ -14938,6 +14941,7 @@ __DEV__ && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -15884,6 +15888,7 @@ __DEV__ && lanes, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, @@ -15913,6 +15918,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -15933,6 +15939,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -15956,6 +15963,7 @@ __DEV__ && finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -15970,12 +15978,14 @@ __DEV__ && root.timeoutHandle = noTimeout; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && + accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -15987,6 +15997,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -16011,6 +16022,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -16135,6 +16147,7 @@ __DEV__ && workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -16749,6 +16762,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -16808,24 +16822,30 @@ __DEV__ && })) : ((root.callbackNode = null), (root.callbackPriority = 0)); commitStartTime = now(); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = Internals.p; + transitions = Internals.p; Internals.p = DiscreteEventPriority; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= CommitContext; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (Internals.p = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (Internals.p = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = PENDING_MUTATION_PHASE; flushMutationEffects(); + pendingEffectsStatus = PENDING_LAYOUT_PHASE; flushLayoutEffects(); } } @@ -16966,7 +16986,7 @@ __DEV__ && } } root.current = finishedWork; - pendingEffectsStatus = PENDING_LAYOUT_PHASE; + pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; } } function flushLayoutEffects() { @@ -17102,6 +17122,9 @@ __DEV__ && function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE && + ((pendingEffectsStatus = NO_PENDING_EFFECTS), + (pendingEffectsStatus = PENDING_LAYOUT_PHASE)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { @@ -17366,14 +17389,14 @@ __DEV__ && parentFiber, isInStrictMode ) { - if (0 !== (parentFiber.subtreeFlags & 33562624)) + if (0 !== (parentFiber.subtreeFlags & 67117056)) for (parentFiber = parentFiber.child; null !== parentFiber; ) { var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; isStrictModeFiber = isInStrictMode || isStrictModeFiber; 22 !== fiber.tag - ? fiber.flags & 33554432 + ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV( fiber, @@ -17395,7 +17418,7 @@ __DEV__ && root, fiber ) - : fiber.subtreeFlags & 33554432 && + : fiber.subtreeFlags & 67108864 && runWithFiberInDEV( fiber, recursivelyTraverseAndDoubleInvokeEffectsInDEV, @@ -17704,7 +17727,7 @@ __DEV__ && (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -17742,7 +17765,7 @@ __DEV__ && return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -17847,6 +17870,7 @@ __DEV__ && return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -18143,13 +18167,6 @@ __DEV__ && if (!parentComponent) return emptyContextObject; parentComponent = parentComponent._reactInternals; a: { - if ( - getNearestMountedFiber(parentComponent) !== parentComponent || - 1 !== parentComponent.tag - ) - throw Error( - "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." - ); var parentContext = parentComponent; do { switch (parentContext.tag) { @@ -23889,8 +23906,6 @@ __DEV__ && var Scheduler = require("scheduler"), React = require("react"), assign = Object.assign, - warningWWW = require("warning"), - suppressWarning = !1, dynamicFeatureFlags = require("ReactFeatureFlags"), alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = @@ -23899,8 +23914,6 @@ __DEV__ && dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -23926,49 +23939,11 @@ __DEV__ && dynamicFeatureFlags.transitionLaneExpirationMs, enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks, enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler, - REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_ELEMENT_TYPE = renameElementSymbol - ? Symbol.for("react.transitional.element") - : REACT_LEGACY_ELEMENT_TYPE, - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"), - REACT_SCOPE_TYPE = Symbol.for("react.scope"), - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), - REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), - REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), - MAYBE_ITERATOR_SYMBOL = Symbol.iterator, - REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + warningWWW = require("warning"), + suppressWarning = !1, + currentReplayingEvent = null, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - disabledDepth = 0, - prevLog, - prevInfo, - prevWarn, - prevError, - prevGroup, - prevGroupCollapsed, - prevGroupEnd; - disabledLog.__reactDisabledLog = !0; - var prefix, - suffix, - reentry = !1; - var componentFrameCache = new ( - "function" === typeof WeakMap ? WeakMap : Map - )(); - var current = null, - isRendering = !1, - currentReplayingEvent = null, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, @@ -24027,6 +24002,29 @@ __DEV__ && rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null), hasOwnProperty = Object.prototype.hasOwnProperty, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_ELEMENT_TYPE = renameElementSymbol + ? Symbol.for("react.transitional.element") + : REACT_LEGACY_ELEMENT_TYPE, + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_SCOPE_TYPE = Symbol.for("react.scope"), + REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), + REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), + REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), + MAYBE_ITERATOR_SYMBOL = Symbol.iterator, tagToRoleMappings = { ARTICLE: "article", ASIDE: "complementary", @@ -24091,6 +24089,24 @@ __DEV__ && ), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}, + disabledDepth = 0, + prevLog, + prevInfo, + prevWarn, + prevError, + prevGroup, + prevGroupCollapsed, + prevGroupEnd; + disabledLog.__reactDisabledLog = !0; + var prefix, + suffix, + reentry = !1; + var componentFrameCache = new ( + "function" === typeof WeakMap ? WeakMap : Map + )(); + var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + current = null, + isRendering = !1, escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g, didWarnValueDefaultValue$1 = !1, didWarnCheckedDefaultChecked = !1, @@ -26693,21 +26709,6 @@ __DEV__ && var didWarnOnInvalidCallback = new Set(); Object.freeze(fakeInternalInstance); var classComponentUpdater = { - isMounted: function (component) { - var owner = current; - if (null !== owner && isRendering && 1 === owner.tag) { - var instance = owner.stateNode; - instance._warnedAboutRefsInRender || - error$jscomp$0( - "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", - getComponentNameFromFiber(owner) || "A component" - ); - instance._warnedAboutRefsInRender = !0; - } - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(inst), @@ -26895,6 +26896,7 @@ __DEV__ && workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -26910,8 +26912,9 @@ __DEV__ && THROTTLED_COMMIT = 2, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, - PENDING_LAYOUT_PHASE = 2, - PENDING_PASSIVE_PHASE = 3, + PENDING_AFTER_MUTATION_PHASE = 2, + PENDING_LAYOUT_PHASE = 3, + PENDING_PASSIVE_PHASE = 4, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, @@ -27751,11 +27754,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-defffdbb-20250106" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-98418e89-20250108" !== 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.1.0-www-classic-defffdbb-20250106\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-98418e89-20250108\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27798,10 +27801,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-defffdbb-20250106", + version: "19.1.0-www-classic-98418e89-20250108", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-classic-98418e89-20250108" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28565,5 +28568,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-defffdbb-20250106"; + exports.version = "19.1.0-www-classic-98418e89-20250108"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 8d8e0e868ab1c..825dfdca84566 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -115,6 +115,144 @@ __DEV__ && }); return array.sort().join(", "); } + function getNearestMountedFiber(fiber) { + var node = fiber, + nearestMounted = fiber; + if (fiber.alternate) for (; node.return; ) node = node.return; + else { + fiber = node; + do + (node = fiber), + 0 !== (node.flags & 4098) && (nearestMounted = node.return), + (fiber = node.return); + while (fiber); + } + return 3 === node.tag ? nearestMounted : null; + } + function getSuspenseInstanceFromFiber(fiber) { + if (13 === fiber.tag) { + var suspenseState = fiber.memoizedState; + null === suspenseState && + ((fiber = fiber.alternate), + null !== fiber && (suspenseState = fiber.memoizedState)); + if (null !== suspenseState) return suspenseState.dehydrated; + } + return null; + } + function assertIsMounted(fiber) { + if (getNearestMountedFiber(fiber) !== fiber) + throw Error("Unable to find node on an unmounted component."); + } + function findCurrentFiberUsingSlowPath(fiber) { + var alternate = fiber.alternate; + if (!alternate) { + alternate = getNearestMountedFiber(fiber); + if (null === alternate) + throw Error("Unable to find node on an unmounted component."); + return alternate !== fiber ? null : fiber; + } + for (var a = fiber, b = alternate; ; ) { + var parentA = a.return; + if (null === parentA) break; + var parentB = parentA.alternate; + if (null === parentB) { + b = parentA.return; + if (null !== b) { + a = b; + continue; + } + break; + } + if (parentA.child === parentB.child) { + for (parentB = parentA.child; parentB; ) { + if (parentB === a) return assertIsMounted(parentA), fiber; + if (parentB === b) return assertIsMounted(parentA), alternate; + parentB = parentB.sibling; + } + throw Error("Unable to find node on an unmounted component."); + } + if (a.return !== b.return) (a = parentA), (b = parentB); + else { + for (var didFindChild = !1, _child = parentA.child; _child; ) { + if (_child === a) { + didFindChild = !0; + a = parentA; + b = parentB; + break; + } + if (_child === b) { + didFindChild = !0; + b = parentA; + a = parentB; + break; + } + _child = _child.sibling; + } + if (!didFindChild) { + for (_child = parentB.child; _child; ) { + if (_child === a) { + didFindChild = !0; + a = parentB; + b = parentA; + break; + } + if (_child === b) { + didFindChild = !0; + b = parentB; + a = parentA; + break; + } + _child = _child.sibling; + } + if (!didFindChild) + throw Error( + "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." + ); + } + } + if (a.alternate !== b) + throw Error( + "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." + ); + } + if (3 !== a.tag) + throw Error("Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + function findCurrentHostFiber(parent) { + parent = findCurrentFiberUsingSlowPath(parent); + return null !== parent ? findCurrentHostFiberImpl(parent) : null; + } + function findCurrentHostFiberImpl(node) { + var tag = node.tag; + if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; + for (node = node.child; null !== node; ) { + tag = findCurrentHostFiberImpl(node); + if (null !== tag) return tag; + node = node.sibling; + } + return null; + } + function isFiberSuspenseAndTimedOut(fiber) { + var memoizedState = fiber.memoizedState; + return ( + 13 === fiber.tag && + null !== memoizedState && + null === memoizedState.dehydrated + ); + } + function doesFiberContain(parentFiber, childFiber) { + for ( + var parentFiberAlternate = parentFiber.alternate; + null !== childFiber; + + ) { + if (childFiber === parentFiber || childFiber === parentFiberAlternate) + return !0; + childFiber = childFiber.return; + } + return !1; + } function warn(format) { if (!suppressWarning) { for ( @@ -152,723 +290,57 @@ __DEV__ && args.unshift(!1); warningWWW.apply(null, args); } - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) - return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; + function injectInternals(internals) { + if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled) return !0; + if (!hook.supportsFiber) + return ( + error$jscomp$0( + "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" + ), + !0 + ); + try { + (rendererID = hook.inject(internals)), (injectedHook = hook); + } catch (err) { + error$jscomp$0("React instrumentation encountered an error: %s.", err); } - if ("object" === typeof type) - switch ( - ("number" === typeof type.tag && + return hook.checkDCE ? !0 : !1; + } + function onCommitRoot$1(root, eventPriority) { + if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) + try { + var didError = 128 === (root.current.flags & 128); + switch (eventPriority) { + case DiscreteEventPriority: + var schedulerPriority = ImmediatePriority; + break; + case ContinuousEventPriority: + schedulerPriority = UserBlockingPriority; + break; + case DefaultEventPriority: + schedulerPriority = NormalPriority$1; + break; + case IdleEventPriority: + schedulerPriority = IdlePriority; + break; + default: + schedulerPriority = NormalPriority$1; + } + injectedHook.onCommitFiberRoot( + rendererID, + root, + schedulerPriority, + didError + ); + } catch (err) { + hasLoggedError || + ((hasLoggedError = !0), error$jscomp$0( - "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." - ), - type.$$typeof) - ) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; - } - function getComponentNameFromOwner(owner) { - return "number" === typeof owner.tag - ? getComponentNameFromFiber(owner) - : "string" === typeof owner.name - ? owner.name - : null; - } - function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; - case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return ( - (fiber = type.render), - (fiber = fiber.displayName || fiber.name || ""), - type.displayName || - ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") - ); - case 7: - return "Fragment"; - case 26: - case 27: - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 14: - case 15: - if ("function" === typeof type) - return type.displayName || type.name || null; - if ("string" === typeof type) return type; - break; - case 23: - return "LegacyHidden"; - case 29: - type = fiber._debugInfo; - if (null != type) - for (var i = type.length - 1; 0 <= i; i--) - if ("string" === typeof type[i].name) return type[i].name; - if (null !== fiber.return) - return getComponentNameFromFiber(fiber.return); - } - return null; - } - function disabledLog() {} - function disableLogs() { - if (0 === disabledDepth) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: !0, - enumerable: !0, - value: disabledLog, - writable: !0 - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; - } - function reenableLogs() { - disabledDepth--; - if (0 === disabledDepth) { - var props = { configurable: !0, enumerable: !0, writable: !0 }; - Object.defineProperties(console, { - log: assign({}, props, { value: prevLog }), - info: assign({}, props, { value: prevInfo }), - warn: assign({}, props, { value: prevWarn }), - error: assign({}, props, { value: prevError }), - group: assign({}, props, { value: prevGroup }), - groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), - groupEnd: assign({}, props, { value: prevGroupEnd }) - }); - } - 0 > disabledDepth && - error$jscomp$0( - "disabledDepth fell below zero. This is a bug in React. Please file an issue." - ); - } - function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - var frame = componentFrameCache.get(fn); - if (void 0 !== frame) return frame; - reentry = !0; - frame = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher = null; - previousDispatcher = ReactSharedInternals.H; - ReactSharedInternals.H = null; - disableLogs(); - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$0) { - control = x$0; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$1) { - control = x$1; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = - RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - _RunInRootFrame$Deter = namePropDescriptor = 0; - namePropDescriptor < sampleLines.length && - !sampleLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - for ( - ; - _RunInRootFrame$Deter < controlLines.length && - !controlLines[_RunInRootFrame$Deter].includes( - "DetermineComponentFrameRoot" - ); - - ) - _RunInRootFrame$Deter++; - if ( - namePropDescriptor === sampleLines.length || - _RunInRootFrame$Deter === controlLines.length - ) - for ( - namePropDescriptor = sampleLines.length - 1, - _RunInRootFrame$Deter = controlLines.length - 1; - 1 <= namePropDescriptor && - 0 <= _RunInRootFrame$Deter && - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]; - - ) - _RunInRootFrame$Deter--; - for ( - ; - 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; - namePropDescriptor--, _RunInRootFrame$Deter-- - ) - if ( - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter] - ) { - if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { - do - if ( - (namePropDescriptor--, - _RunInRootFrame$Deter--, - 0 > _RunInRootFrame$Deter || - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]) - ) { - var _frame = - "\n" + - sampleLines[namePropDescriptor].replace( - " at new ", - " at " - ); - fn.displayName && - _frame.includes("") && - (_frame = _frame.replace("", fn.displayName)); - "function" === typeof fn && - componentFrameCache.set(fn, _frame); - return _frame; - } - while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); - } - break; - } - } - } finally { - (reentry = !1), - (ReactSharedInternals.H = previousDispatcher), - reenableLogs(), - (Error.prepareStackTrace = frame); - } - sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(sampleLines) - : ""; - "function" === typeof fn && componentFrameCache.set(fn, sampleLines); - return sampleLines; - } - function formatOwnerStack(error) { - var prevPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - error = error.stack; - Error.prepareStackTrace = prevPrepareStackTrace; - error.startsWith("Error: react-stack-top-frame\n") && - (error = error.slice(29)); - prevPrepareStackTrace = error.indexOf("\n"); - -1 !== prevPrepareStackTrace && - (error = error.slice(prevPrepareStackTrace + 1)); - prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); - -1 !== prevPrepareStackTrace && - (prevPrepareStackTrace = error.lastIndexOf( - "\n", - prevPrepareStackTrace - )); - if (-1 !== prevPrepareStackTrace) - error = error.slice(0, prevPrepareStackTrace); - else return ""; - return error; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do { - info += describeFiber(workInProgress); - var debugInfo = workInProgress._debugInfo; - if (debugInfo) - for (var i = debugInfo.length - 1; 0 <= i; i--) { - var entry = debugInfo[i]; - if ("string" === typeof entry.name) { - var JSCompiler_temp_const = info, - env = entry.env; - var JSCompiler_inline_result = describeBuiltInComponentFrame( - entry.name + (env ? " [" + env + "]" : "") - ); - info = JSCompiler_temp_const + JSCompiler_inline_result; - } - } - workInProgress = workInProgress.return; - } while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function describeFunctionComponentFrameWithoutLineNumber(fn) { - return (fn = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(fn) - : ""; - } - function getOwnerStackByFiberInDev(workInProgress) { - if (!enableOwnerStacks) return ""; - try { - var info = ""; - 6 === workInProgress.tag && (workInProgress = workInProgress.return); - switch (workInProgress.tag) { - case 26: - case 27: - case 5: - info += describeBuiltInComponentFrame(workInProgress.type); - break; - case 13: - info += describeBuiltInComponentFrame("Suspense"); - break; - case 19: - info += describeBuiltInComponentFrame("SuspenseList"); - break; - case 0: - case 15: - case 1: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type - )); - break; - case 11: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type.render - )); - } - for (; workInProgress; ) - if ("number" === typeof workInProgress.tag) { - var fiber = workInProgress; - workInProgress = fiber._debugOwner; - var debugStack = fiber._debugStack; - workInProgress && - debugStack && - ("string" !== typeof debugStack && - (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), - "" !== debugStack && (info += "\n" + debugStack)); - } else if (null != workInProgress.debugStack) { - var ownerStack = workInProgress.debugStack; - (workInProgress = workInProgress.owner) && - ownerStack && - (info += "\n" + formatOwnerStack(ownerStack)); - } else break; - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function getCurrentFiberOwnerNameInDevOrNull() { - if (null === current) return null; - var owner = current._debugOwner; - return null != owner ? getComponentNameFromOwner(owner) : null; - } - function getCurrentFiberStackInDev() { - return null === current - ? "" - : enableOwnerStacks - ? getOwnerStackByFiberInDev(current) - : getStackByFiberInDevAndProd(current); - } - function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { - var previousFiber = current; - ReactSharedInternals.getCurrentStack = - null === fiber ? null : getCurrentFiberStackInDev; - isRendering = !1; - current = fiber; - try { - return enableOwnerStacks && null !== fiber && fiber._debugTask - ? fiber._debugTask.run( - callback.bind(null, arg0, arg1, arg2, arg3, arg4) - ) - : callback(arg0, arg1, arg2, arg3, arg4); - } finally { - current = previousFiber; - } - throw Error( - "runWithFiberInDEV should never be called in production. This is a bug in React." - ); - } - function getNearestMountedFiber(fiber) { - var node = fiber, - nearestMounted = fiber; - if (fiber.alternate) for (; node.return; ) node = node.return; - else { - fiber = node; - do - (node = fiber), - 0 !== (node.flags & 4098) && (nearestMounted = node.return), - (fiber = node.return); - while (fiber); - } - return 3 === node.tag ? nearestMounted : null; - } - function getSuspenseInstanceFromFiber(fiber) { - if (13 === fiber.tag) { - var suspenseState = fiber.memoizedState; - null === suspenseState && - ((fiber = fiber.alternate), - null !== fiber && (suspenseState = fiber.memoizedState)); - if (null !== suspenseState) return suspenseState.dehydrated; - } - return null; - } - function assertIsMounted(fiber) { - if (getNearestMountedFiber(fiber) !== fiber) - throw Error("Unable to find node on an unmounted component."); - } - function findCurrentFiberUsingSlowPath(fiber) { - var alternate = fiber.alternate; - if (!alternate) { - alternate = getNearestMountedFiber(fiber); - if (null === alternate) - throw Error("Unable to find node on an unmounted component."); - return alternate !== fiber ? null : fiber; - } - for (var a = fiber, b = alternate; ; ) { - var parentA = a.return; - if (null === parentA) break; - var parentB = parentA.alternate; - if (null === parentB) { - b = parentA.return; - if (null !== b) { - a = b; - continue; - } - break; - } - if (parentA.child === parentB.child) { - for (parentB = parentA.child; parentB; ) { - if (parentB === a) return assertIsMounted(parentA), fiber; - if (parentB === b) return assertIsMounted(parentA), alternate; - parentB = parentB.sibling; - } - throw Error("Unable to find node on an unmounted component."); - } - if (a.return !== b.return) (a = parentA), (b = parentB); - else { - for (var didFindChild = !1, _child = parentA.child; _child; ) { - if (_child === a) { - didFindChild = !0; - a = parentA; - b = parentB; - break; - } - if (_child === b) { - didFindChild = !0; - b = parentA; - a = parentB; - break; - } - _child = _child.sibling; - } - if (!didFindChild) { - for (_child = parentB.child; _child; ) { - if (_child === a) { - didFindChild = !0; - a = parentB; - b = parentA; - break; - } - if (_child === b) { - didFindChild = !0; - b = parentB; - a = parentA; - break; - } - _child = _child.sibling; - } - if (!didFindChild) - throw Error( - "Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue." - ); - } - } - if (a.alternate !== b) - throw Error( - "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." - ); - } - if (3 !== a.tag) - throw Error("Unable to find node on an unmounted component."); - return a.stateNode.current === a ? fiber : alternate; - } - function findCurrentHostFiber(parent) { - parent = findCurrentFiberUsingSlowPath(parent); - return null !== parent ? findCurrentHostFiberImpl(parent) : null; - } - function findCurrentHostFiberImpl(node) { - var tag = node.tag; - if (5 === tag || 26 === tag || 27 === tag || 6 === tag) return node; - for (node = node.child; null !== node; ) { - tag = findCurrentHostFiberImpl(node); - if (null !== tag) return tag; - node = node.sibling; - } - return null; - } - function isFiberSuspenseAndTimedOut(fiber) { - var memoizedState = fiber.memoizedState; - return ( - 13 === fiber.tag && - null !== memoizedState && - null === memoizedState.dehydrated - ); - } - function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; - } - function injectInternals(internals) { - if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; - var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if (hook.isDisabled) return !0; - if (!hook.supportsFiber) - return ( - error$jscomp$0( - "The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools" - ), - !0 - ); - try { - (rendererID = hook.inject(internals)), (injectedHook = hook); - } catch (err) { - error$jscomp$0("React instrumentation encountered an error: %s.", err); - } - return hook.checkDCE ? !0 : !1; - } - function onCommitRoot$1(root, eventPriority) { - if (injectedHook && "function" === typeof injectedHook.onCommitFiberRoot) - try { - var didError = 128 === (root.current.flags & 128); - switch (eventPriority) { - case DiscreteEventPriority: - var schedulerPriority = ImmediatePriority; - break; - case ContinuousEventPriority: - schedulerPriority = UserBlockingPriority; - break; - case DefaultEventPriority: - schedulerPriority = NormalPriority$1; - break; - case IdleEventPriority: - schedulerPriority = IdlePriority; - break; - default: - schedulerPriority = NormalPriority$1; - } - injectedHook.onCommitFiberRoot( - rendererID, - root, - schedulerPriority, - didError - ); - } catch (err) { - hasLoggedError || - ((hasLoggedError = !0), - error$jscomp$0( - "React instrumentation encountered an error: %s", - err - )); + "React instrumentation encountered an error: %s", + err + )); } } function setIsStrictModeForDevtools(newIsStrictMode) { @@ -965,9 +437,110 @@ __DEV__ && case 16: return 16; case 32: - return 32; + return 32; + case 64: + return 64; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + return lanes & 4194176; + case 4194304: + case 8388608: + case 16777216: + case 33554432: + return lanes & 62914560; + case 67108864: + return 67108864; + case 134217728: + return 134217728; + case 268435456: + return 268435456; + case 536870912: + return 536870912; + case 1073741824: + return 0; + default: + return ( + error$jscomp$0( + "Should have found matching lanes. This is a bug in React." + ), + lanes + ); + } + } + function getNextLanes(root, wipLanes, rootHasPendingCommit) { + var pendingLanes = root.pendingLanes; + if (0 === pendingLanes) return 0; + var nextLanes = 0, + suspendedLanes = root.suspendedLanes, + pingedLanes = root.pingedLanes; + root = root.warmLanes; + var nonIdlePendingLanes = pendingLanes & 134217727; + 0 !== nonIdlePendingLanes + ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), + 0 !== pendingLanes + ? (nextLanes = getHighestPriorityLanes(pendingLanes)) + : ((pingedLanes &= nonIdlePendingLanes), + 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : enableSiblingPrerendering && + !rootHasPendingCommit && + ((rootHasPendingCommit = nonIdlePendingLanes & ~root), + 0 !== rootHasPendingCommit && + (nextLanes = + getHighestPriorityLanes(rootHasPendingCommit))))) + : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), + 0 !== nonIdlePendingLanes + ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) + : 0 !== pingedLanes + ? (nextLanes = getHighestPriorityLanes(pingedLanes)) + : enableSiblingPrerendering && + !rootHasPendingCommit && + ((rootHasPendingCommit = pendingLanes & ~root), + 0 !== rootHasPendingCommit && + (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))); + return 0 === nextLanes + ? 0 + : 0 !== wipLanes && + wipLanes !== nextLanes && + 0 === (wipLanes & suspendedLanes) && + ((suspendedLanes = nextLanes & -nextLanes), + (rootHasPendingCommit = wipLanes & -wipLanes), + suspendedLanes >= rootHasPendingCommit || + (32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194176))) + ? wipLanes + : nextLanes; + } + function checkIfRootIsPrerendering(root, renderLanes) { + return ( + 0 === + (root.pendingLanes & + ~(root.suspendedLanes & ~root.pingedLanes) & + renderLanes) + ); + } + function computeExpirationTime(lane, currentTime) { + switch (lane) { + case 1: + case 2: + case 4: + case 8: + return currentTime + syncLaneExpirationMs; + case 16: + case 32: case 64: - return 64; case 128: case 256: case 512: @@ -983,708 +556,1136 @@ __DEV__ && case 524288: case 1048576: case 2097152: - return lanes & 4194176; + return currentTime + transitionLaneExpirationMs; case 4194304: case 8388608: case 16777216: case 33554432: - return lanes & 62914560; + return enableRetryLaneExpiration + ? currentTime + retryLaneExpirationMs + : -1; case 67108864: - return 67108864; case 134217728: - return 134217728; case 268435456: - return 268435456; case 536870912: - return 536870912; case 1073741824: - return 0; + return -1; default: return ( error$jscomp$0( "Should have found matching lanes. This is a bug in React." ), - lanes + -1 ); } } - function getNextLanes(root, wipLanes, rootHasPendingCommit) { - var pendingLanes = root.pendingLanes; - if (0 === pendingLanes) return 0; - var nextLanes = 0, - suspendedLanes = root.suspendedLanes, - pingedLanes = root.pingedLanes; - root = root.warmLanes; - var nonIdlePendingLanes = pendingLanes & 134217727; - 0 !== nonIdlePendingLanes - ? ((pendingLanes = nonIdlePendingLanes & ~suspendedLanes), - 0 !== pendingLanes - ? (nextLanes = getHighestPriorityLanes(pendingLanes)) - : ((pingedLanes &= nonIdlePendingLanes), - 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : enableSiblingPrerendering && - !rootHasPendingCommit && - ((rootHasPendingCommit = nonIdlePendingLanes & ~root), - 0 !== rootHasPendingCommit && - (nextLanes = - getHighestPriorityLanes(rootHasPendingCommit))))) - : ((nonIdlePendingLanes = pendingLanes & ~suspendedLanes), - 0 !== nonIdlePendingLanes - ? (nextLanes = getHighestPriorityLanes(nonIdlePendingLanes)) - : 0 !== pingedLanes - ? (nextLanes = getHighestPriorityLanes(pingedLanes)) - : enableSiblingPrerendering && - !rootHasPendingCommit && - ((rootHasPendingCommit = pendingLanes & ~root), - 0 !== rootHasPendingCommit && - (nextLanes = getHighestPriorityLanes(rootHasPendingCommit)))); - return 0 === nextLanes - ? 0 - : 0 !== wipLanes && - wipLanes !== nextLanes && - 0 === (wipLanes & suspendedLanes) && - ((suspendedLanes = nextLanes & -nextLanes), - (rootHasPendingCommit = wipLanes & -wipLanes), - suspendedLanes >= rootHasPendingCommit || - (32 === suspendedLanes && 0 !== (rootHasPendingCommit & 4194176))) - ? wipLanes - : nextLanes; + function claimNextTransitionLane() { + var lane = nextTransitionLane; + nextTransitionLane <<= 1; + 0 === (nextTransitionLane & 4194176) && (nextTransitionLane = 128); + return lane; + } + function claimNextRetryLane() { + var lane = nextRetryLane; + nextRetryLane <<= 1; + 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304); + return lane; + } + function createLaneMap(initial) { + for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); + return laneMap; + } + function markRootFinished( + root, + finishedLanes, + remainingLanes, + spawnedLane, + updatedLanes, + suspendedRetryLanes + ) { + var previouslyPendingLanes = root.pendingLanes; + root.pendingLanes = remainingLanes; + root.suspendedLanes = 0; + root.pingedLanes = 0; + root.warmLanes = 0; + root.expiredLanes &= remainingLanes; + root.entangledLanes &= remainingLanes; + root.errorRecoveryDisabledLanes &= remainingLanes; + root.shellSuspendCounter = 0; + var entanglements = root.entanglements, + expirationTimes = root.expirationTimes, + hiddenUpdates = root.hiddenUpdates; + for ( + remainingLanes = previouslyPendingLanes & ~remainingLanes; + 0 < remainingLanes; + + ) { + var index = 31 - clz32(remainingLanes), + lane = 1 << index; + entanglements[index] = 0; + expirationTimes[index] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index]; + if (null !== hiddenUpdatesForLane) + for ( + hiddenUpdates[index] = null, index = 0; + index < hiddenUpdatesForLane.length; + index++ + ) { + var update = hiddenUpdatesForLane[index]; + null !== update && (update.lane &= -536870913); + } + remainingLanes &= ~lane; + } + 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); + enableSiblingPrerendering && + 0 !== suspendedRetryLanes && + 0 === updatedLanes && + 0 !== root.tag && + (root.suspendedLanes |= + suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); + } + function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { + root.pendingLanes |= spawnedLane; + root.suspendedLanes &= ~spawnedLane; + var spawnedLaneIndex = 31 - clz32(spawnedLane); + root.entangledLanes |= spawnedLane; + root.entanglements[spawnedLaneIndex] = + root.entanglements[spawnedLaneIndex] | + 1073741824 | + (entangledLanes & 4194218); + } + function markRootEntangled(root, entangledLanes) { + var rootEntangledLanes = (root.entangledLanes |= entangledLanes); + for (root = root.entanglements; rootEntangledLanes; ) { + var index = 31 - clz32(rootEntangledLanes), + lane = 1 << index; + (lane & entangledLanes) | (root[index] & entangledLanes) && + (root[index] |= entangledLanes); + rootEntangledLanes &= ~lane; + } + } + function getBumpedLaneForHydrationByLane(lane) { + switch (lane) { + case 2: + lane = 1; + break; + case 8: + lane = 4; + break; + case 32: + lane = 16; + break; + case 128: + case 256: + case 512: + case 1024: + case 2048: + case 4096: + case 8192: + case 16384: + case 32768: + case 65536: + case 131072: + case 262144: + case 524288: + case 1048576: + case 2097152: + case 4194304: + case 8388608: + case 16777216: + case 33554432: + lane = 64; + break; + case 268435456: + lane = 134217728; + break; + default: + lane = 0; + } + return lane; + } + function addFiberToLanesMap(root, fiber, lanes) { + if (isDevToolsPresent) + for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { + var index = 31 - clz32(lanes), + lane = 1 << index; + root[index].add(fiber); + lanes &= ~lane; + } + } + function movePendingFibersToMemoized(root, lanes) { + if (isDevToolsPresent) + for ( + var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap, + memoizedUpdaters = root.memoizedUpdaters; + 0 < lanes; + + ) { + var index = 31 - clz32(lanes); + root = 1 << index; + index = pendingUpdatersLaneMap[index]; + 0 < index.size && + (index.forEach(function (fiber) { + var alternate = fiber.alternate; + (null !== alternate && memoizedUpdaters.has(alternate)) || + memoizedUpdaters.add(fiber); + }), + index.clear()); + lanes &= ~root; + } + } + function getTransitionsForLanes(root, lanes) { + if (!enableTransitionTracing) return null; + for (var transitionsForLanes = []; 0 < lanes; ) { + var index = 31 - clz32(lanes), + lane = 1 << index; + index = root.transitionLanes[index]; + null !== index && + index.forEach(function (transition) { + transitionsForLanes.push(transition); + }); + lanes &= ~lane; + } + return 0 === transitionsForLanes.length ? null : transitionsForLanes; + } + function clearTransitionsForLanes(root, lanes) { + if (enableTransitionTracing) + for (; 0 < lanes; ) { + var index = 31 - clz32(lanes), + lane = 1 << index; + null !== root.transitionLanes[index] && + (root.transitionLanes[index] = null); + lanes &= ~lane; + } + } + function lanesToEventPriority(lanes) { + lanes &= -lanes; + return 0 !== DiscreteEventPriority && DiscreteEventPriority < lanes + ? 0 !== ContinuousEventPriority && ContinuousEventPriority < lanes + ? 0 !== (lanes & 134217727) + ? DefaultEventPriority + : IdleEventPriority + : ContinuousEventPriority + : DiscreteEventPriority; + } + function noop$4() {} + function resolveDispatcher() { + var dispatcher = ReactSharedInternals.H; + null === dispatcher && + error$jscomp$0( + "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." + ); + return dispatcher; + } + function bindToConsole(methodName, args, badgeName) { + var offset = 0; + switch (methodName) { + case "dir": + case "dirxml": + case "groupEnd": + case "table": + return bind.apply(console[methodName], [console].concat(args)); + case "assert": + offset = 1; + } + args = args.slice(0); + "string" === typeof args[offset] + ? args.splice( + offset, + 1, + "%c%s%c " + args[offset], + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + badgeName + " ", + "" + ) + : args.splice( + offset, + 0, + "%c%s%c ", + "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", + " " + badgeName + " ", + "" + ); + args.unshift(console); + return bind.apply(console[methodName], args); + } + function createCursor(defaultValue) { + return { current: defaultValue }; + } + function pop(cursor, fiber) { + 0 > index$jscomp$0 + ? error$jscomp$0("Unexpected pop.") + : (fiber !== fiberStack[index$jscomp$0] && + error$jscomp$0("Unexpected Fiber popped."), + (cursor.current = valueStack[index$jscomp$0]), + (valueStack[index$jscomp$0] = null), + (fiberStack[index$jscomp$0] = null), + index$jscomp$0--); + } + function push(cursor, value, fiber) { + index$jscomp$0++; + valueStack[index$jscomp$0] = cursor.current; + fiberStack[index$jscomp$0] = fiber; + cursor.current = value; } - function checkIfRootIsPrerendering(root, renderLanes) { - return ( - 0 === - (root.pendingLanes & - ~(root.suspendedLanes & ~root.pingedLanes) & - renderLanes) - ); + function requiredContext(c) { + null === c && + error$jscomp$0( + "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." + ); + return c; } - function computeExpirationTime(lane, currentTime) { - switch (lane) { - case 1: - case 2: - case 4: - case 8: - return currentTime + syncLaneExpirationMs; - case 16: - case 32: - case 64: - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - return currentTime + transitionLaneExpirationMs; - case 4194304: - case 8388608: - case 16777216: - case 33554432: - return enableRetryLaneExpiration - ? currentTime + retryLaneExpirationMs - : -1; - case 67108864: - case 134217728: - case 268435456: - case 536870912: - case 1073741824: - return -1; + function pushHostContainer(fiber, nextRootInstance) { + push(rootInstanceStackCursor, nextRootInstance, fiber); + push(contextFiberStackCursor, fiber, fiber); + push(contextStackCursor, null, fiber); + var nextRootContext = nextRootInstance.nodeType; + switch (nextRootContext) { + case DOCUMENT_NODE: + case DOCUMENT_FRAGMENT_NODE: + nextRootContext = + nextRootContext === DOCUMENT_NODE ? "#document" : "#fragment"; + nextRootInstance = (nextRootInstance = + nextRootInstance.documentElement) + ? (nextRootInstance = nextRootInstance.namespaceURI) + ? getOwnHostContext(nextRootInstance) + : HostContextNamespaceNone + : HostContextNamespaceNone; + break; default: - return ( - error$jscomp$0( - "Should have found matching lanes. This is a bug in React." - ), - -1 - ); + if ( + ((nextRootInstance = + nextRootContext === COMMENT_NODE + ? nextRootInstance.parentNode + : nextRootInstance), + (nextRootContext = nextRootInstance.tagName), + (nextRootInstance = nextRootInstance.namespaceURI)) + ) + (nextRootInstance = getOwnHostContext(nextRootInstance)), + (nextRootInstance = getChildHostContextProd( + nextRootInstance, + nextRootContext + )); + else + switch (nextRootContext) { + case "svg": + nextRootInstance = HostContextNamespaceSvg; + break; + case "math": + nextRootInstance = HostContextNamespaceMath; + break; + default: + nextRootInstance = HostContextNamespaceNone; + } } + nextRootContext = nextRootContext.toLowerCase(); + nextRootContext = updatedAncestorInfoDev(null, nextRootContext); + nextRootContext = { + context: nextRootInstance, + ancestorInfo: nextRootContext + }; + pop(contextStackCursor, fiber); + push(contextStackCursor, nextRootContext, fiber); } - function claimNextTransitionLane() { - var lane = nextTransitionLane; - nextTransitionLane <<= 1; - 0 === (nextTransitionLane & 4194176) && (nextTransitionLane = 128); - return lane; + function popHostContainer(fiber) { + pop(contextStackCursor, fiber); + pop(contextFiberStackCursor, fiber); + pop(rootInstanceStackCursor, fiber); } - function claimNextRetryLane() { - var lane = nextRetryLane; - nextRetryLane <<= 1; - 0 === (nextRetryLane & 62914560) && (nextRetryLane = 4194304); - return lane; + function getHostContext() { + return requiredContext(contextStackCursor.current); } - function createLaneMap(initial) { - for (var laneMap = [], i = 0; 31 > i; i++) laneMap.push(initial); - return laneMap; + function pushHostContext(fiber) { + null !== fiber.memoizedState && + push(hostTransitionProviderCursor, fiber, fiber); + var context = requiredContext(contextStackCursor.current); + var type = fiber.type; + var nextContext = getChildHostContextProd(context.context, type); + type = updatedAncestorInfoDev(context.ancestorInfo, type); + nextContext = { context: nextContext, ancestorInfo: type }; + context !== nextContext && + (push(contextFiberStackCursor, fiber, fiber), + push(contextStackCursor, nextContext, fiber)); } - function markRootFinished( - root, - finishedLanes, - remainingLanes, - spawnedLane, - updatedLanes, - suspendedRetryLanes - ) { - var previouslyPendingLanes = root.pendingLanes; - root.pendingLanes = remainingLanes; - root.suspendedLanes = 0; - root.pingedLanes = 0; - root.warmLanes = 0; - root.expiredLanes &= remainingLanes; - root.entangledLanes &= remainingLanes; - root.errorRecoveryDisabledLanes &= remainingLanes; - root.shellSuspendCounter = 0; - var entanglements = root.entanglements, - expirationTimes = root.expirationTimes, - hiddenUpdates = root.hiddenUpdates; - for ( - remainingLanes = previouslyPendingLanes & ~remainingLanes; - 0 < remainingLanes; - - ) { - var index = 31 - clz32(remainingLanes), - lane = 1 << index; - entanglements[index] = 0; - expirationTimes[index] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index]; - if (null !== hiddenUpdatesForLane) - for ( - hiddenUpdates[index] = null, index = 0; - index < hiddenUpdatesForLane.length; - index++ - ) { - var update = hiddenUpdatesForLane[index]; - null !== update && (update.lane &= -536870913); - } - remainingLanes &= ~lane; - } - 0 !== spawnedLane && markSpawnedDeferredLane(root, spawnedLane, 0); - enableSiblingPrerendering && - 0 !== suspendedRetryLanes && - 0 === updatedLanes && - 0 !== root.tag && - (root.suspendedLanes |= - suspendedRetryLanes & ~(previouslyPendingLanes & ~finishedLanes)); + function popHostContext(fiber) { + contextFiberStackCursor.current === fiber && + (pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber)); + hostTransitionProviderCursor.current === fiber && + (pop(hostTransitionProviderCursor, fiber), + (HostTransitionContext._currentValue = NotPendingTransition)); + } + function typeName(value) { + return ( + ("function" === typeof Symbol && + Symbol.toStringTag && + value[Symbol.toStringTag]) || + value.constructor.name || + "Object" + ); + } + function willCoercionThrow(value) { + try { + return testStringCoercion(value), !1; + } catch (e) { + return !0; + } } - function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { - root.pendingLanes |= spawnedLane; - root.suspendedLanes &= ~spawnedLane; - var spawnedLaneIndex = 31 - clz32(spawnedLane); - root.entangledLanes |= spawnedLane; - root.entanglements[spawnedLaneIndex] = - root.entanglements[spawnedLaneIndex] | - 1073741824 | - (entangledLanes & 4194218); + function testStringCoercion(value) { + return "" + value; } - function markRootEntangled(root, entangledLanes) { - var rootEntangledLanes = (root.entangledLanes |= entangledLanes); - for (root = root.entanglements; rootEntangledLanes; ) { - var index = 31 - clz32(rootEntangledLanes), - lane = 1 << index; - (lane & entangledLanes) | (root[index] & entangledLanes) && - (root[index] |= entangledLanes); - rootEntangledLanes &= ~lane; + function checkAttributeStringCoercion(value, attributeName) { + if (willCoercionThrow(value)) + return ( + error$jscomp$0( + "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", + attributeName, + typeName(value) + ), + testStringCoercion(value) + ); + } + function checkCSSPropertyStringCoercion(value, propName) { + if (willCoercionThrow(value)) + return ( + error$jscomp$0( + "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", + propName, + typeName(value) + ), + testStringCoercion(value) + ); + } + function checkFormFieldValueStringCoercion(value) { + if (willCoercionThrow(value)) + return ( + error$jscomp$0( + "Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", + typeName(value) + ), + testStringCoercion(value) + ); + } + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) + return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function resolveUpdatePriority() { + var updatePriority = Internals.p; + if (0 !== updatePriority) return updatePriority; + updatePriority = window.event; + return void 0 === updatePriority + ? DefaultEventPriority + : getEventPriority(updatePriority.type); + } + function runWithPriority(priority, fn) { + var previousPriority = Internals.p; + try { + return (Internals.p = priority), fn(); + } finally { + Internals.p = previousPriority; } } - function getBumpedLaneForHydrationByLane(lane) { - switch (lane) { - case 2: - lane = 1; - break; - case 8: - lane = 4; - break; - case 32: - lane = 16; - break; - case 128: - case 256: - case 512: - case 1024: - case 2048: - case 4096: - case 8192: - case 16384: - case 32768: - case 65536: - case 131072: - case 262144: - case 524288: - case 1048576: - case 2097152: - case 4194304: - case 8388608: - case 16777216: - case 33554432: - lane = 64; + function getImplicitRole(element) { + var mappedByTag = tagToRoleMappings[element.tagName]; + if (void 0 !== mappedByTag) return mappedByTag; + switch (element.tagName) { + case "A": + case "AREA": + case "LINK": + if (element.hasAttribute("href")) return "link"; break; - case 268435456: - lane = 134217728; + case "IMG": + if (0 < (element.getAttribute("alt") || "").length) return "img"; break; - default: - lane = 0; + case "INPUT": + switch (((mappedByTag = element.type), mappedByTag)) { + case "button": + case "image": + case "reset": + case "submit": + return "button"; + case "checkbox": + case "radio": + return mappedByTag; + case "range": + return "slider"; + case "email": + case "tel": + case "text": + case "url": + return element.hasAttribute("list") ? "combobox" : "textbox"; + case "search": + return element.hasAttribute("list") ? "combobox" : "searchbox"; + default: + return null; + } + case "SELECT": + return element.hasAttribute("multiple") || 1 < element.size + ? "listbox" + : "combobox"; } - return lane; + return null; } - function addFiberToLanesMap(root, fiber, lanes) { - if (isDevToolsPresent) - for (root = root.pendingUpdatersLaneMap; 0 < lanes; ) { - var index = 31 - clz32(lanes), - lane = 1 << index; - root[index].add(fiber); - lanes &= ~lane; - } + function registerTwoPhaseEvent(registrationName, dependencies) { + registerDirectEvent(registrationName, dependencies); + registerDirectEvent(registrationName + "Capture", dependencies); } - function movePendingFibersToMemoized(root, lanes) { - if (isDevToolsPresent) - for ( - var pendingUpdatersLaneMap = root.pendingUpdatersLaneMap, - memoizedUpdaters = root.memoizedUpdaters; - 0 < lanes; - - ) { - var index = 31 - clz32(lanes); - root = 1 << index; - index = pendingUpdatersLaneMap[index]; - 0 < index.size && - (index.forEach(function (fiber) { - var alternate = fiber.alternate; - (null !== alternate && memoizedUpdaters.has(alternate)) || - memoizedUpdaters.add(fiber); - }), - index.clear()); - lanes &= ~root; - } + function registerDirectEvent(registrationName, dependencies) { + registrationNameDependencies[registrationName] && + error$jscomp$0( + "EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", + registrationName + ); + registrationNameDependencies[registrationName] = dependencies; + var lowerCasedName = registrationName.toLowerCase(); + possibleRegistrationNames[lowerCasedName] = registrationName; + "onDoubleClick" === registrationName && + (possibleRegistrationNames.ondblclick = registrationName); + for ( + registrationName = 0; + registrationName < dependencies.length; + registrationName++ + ) + allNativeEvents.add(dependencies[registrationName]); } - function getTransitionsForLanes(root, lanes) { - if (!enableTransitionTracing) return null; - for (var transitionsForLanes = []; 0 < lanes; ) { - var index = 31 - clz32(lanes), - lane = 1 << index; - index = root.transitionLanes[index]; - null !== index && - index.forEach(function (transition) { - transitionsForLanes.push(transition); - }); - lanes &= ~lane; + function checkControlledValueProps(tagName, props) { + hasReadOnlyValue[props.type] || + props.onChange || + props.onInput || + props.readOnly || + props.disabled || + null == props.value || + ("select" === tagName + ? error$jscomp$0( + "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`." + ) + : error$jscomp$0( + "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`." + )); + props.onChange || + props.readOnly || + props.disabled || + null == props.checked || + error$jscomp$0( + "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`." + ); + } + function isAttributeNameSafe(attributeName) { + if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) + return !0; + if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) + return !1; + if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) + return (validatedAttributeNameCache[attributeName] = !0); + illegalAttributeNameCache[attributeName] = !0; + error$jscomp$0("Invalid attribute name: `%s`", attributeName); + return !1; + } + function getValueForAttributeOnCustomComponent(node, name, expected) { + if (isAttributeNameSafe(name)) { + if (!node.hasAttribute(name)) { + switch (typeof expected) { + case "symbol": + case "object": + return expected; + case "function": + return expected; + case "boolean": + if (!1 === expected) return expected; + } + return void 0 === expected ? void 0 : null; + } + node = node.getAttribute(name); + if ("" === node && !0 === expected) return !0; + checkAttributeStringCoercion(expected, name); + return node === "" + expected ? expected : node; } - return 0 === transitionsForLanes.length ? null : transitionsForLanes; } - function clearTransitionsForLanes(root, lanes) { - if (enableTransitionTracing) - for (; 0 < lanes; ) { - var index = 31 - clz32(lanes), - lane = 1 << index; - null !== root.transitionLanes[index] && - (root.transitionLanes[index] = null); - lanes &= ~lane; + function setValueForAttribute(node, name, value) { + if (isAttributeNameSafe(name)) + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + node.removeAttribute(name); + return; + case "boolean": + var prefix = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix && "aria-" !== prefix) { + node.removeAttribute(name); + return; + } + } + checkAttributeStringCoercion(value, name); + node.setAttribute( + name, + enableTrustedTypesIntegration ? value : "" + value + ); } } - function lanesToEventPriority(lanes) { - lanes &= -lanes; - return 0 !== DiscreteEventPriority && DiscreteEventPriority < lanes - ? 0 !== ContinuousEventPriority && ContinuousEventPriority < lanes - ? 0 !== (lanes & 134217727) - ? DefaultEventPriority - : IdleEventPriority - : ContinuousEventPriority - : DiscreteEventPriority; - } - function noop$4() {} - function resolveDispatcher() { - var dispatcher = ReactSharedInternals.H; - null === dispatcher && - error$jscomp$0( - "Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." + function setValueForKnownAttribute(node, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + checkAttributeStringCoercion(value, name); + node.setAttribute( + name, + enableTrustedTypesIntegration ? value : "" + value ); - return dispatcher; - } - function bindToConsole(methodName, args, badgeName) { - var offset = 0; - switch (methodName) { - case "dir": - case "dirxml": - case "groupEnd": - case "table": - return bind.apply(console[methodName], [console].concat(args)); - case "assert": - offset = 1; } - args = args.slice(0); - "string" === typeof args[offset] - ? args.splice( - offset, - 1, - "%c%s%c " + args[offset], - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ) - : args.splice( - offset, - 0, - "%c%s%c ", - "background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px", - " " + badgeName + " ", - "" - ); - args.unshift(console); - return bind.apply(console[methodName], args); - } - function createCursor(defaultValue) { - return { current: defaultValue }; } - function pop(cursor, fiber) { - 0 > index$jscomp$0 - ? error$jscomp$0("Unexpected pop.") - : (fiber !== fiberStack[index$jscomp$0] && - error$jscomp$0("Unexpected Fiber popped."), - (cursor.current = valueStack[index$jscomp$0]), - (valueStack[index$jscomp$0] = null), - (fiberStack[index$jscomp$0] = null), - index$jscomp$0--); + function setValueForNamespacedAttribute(node, namespace, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + checkAttributeStringCoercion(value, name); + node.setAttributeNS( + namespace, + name, + enableTrustedTypesIntegration ? value : "" + value + ); + } } - function push(cursor, value, fiber) { - index$jscomp$0++; - valueStack[index$jscomp$0] = cursor.current; - fiberStack[index$jscomp$0] = fiber; - cursor.current = value; + function disabledLog() {} + function disableLogs() { + if (0 === disabledDepth) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: !0, + enumerable: !0, + value: disabledLog, + writable: !0 + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; } - function requiredContext(c) { - null === c && + function reenableLogs() { + disabledDepth--; + if (0 === disabledDepth) { + var props = { configurable: !0, enumerable: !0, writable: !0 }; + Object.defineProperties(console, { + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) + }); + } + 0 > disabledDepth && error$jscomp$0( - "Expected host context to exist. This error is likely caused by a bug in React. Please file an issue." + "disabledDepth fell below zero. This is a bug in React. Please file an issue." ); - return c; } - function pushHostContainer(fiber, nextRootInstance) { - push(rootInstanceStackCursor, nextRootInstance, fiber); - push(contextFiberStackCursor, fiber, fiber); - push(contextStackCursor, null, fiber); - var nextRootContext = nextRootInstance.nodeType; - switch (nextRootContext) { - case DOCUMENT_NODE: - case DOCUMENT_FRAGMENT_NODE: - nextRootContext = - nextRootContext === DOCUMENT_NODE ? "#document" : "#fragment"; - nextRootInstance = (nextRootInstance = - nextRootInstance.documentElement) - ? (nextRootInstance = nextRootInstance.namespaceURI) - ? getOwnHostContext(nextRootInstance) - : HostContextNamespaceNone - : HostContextNamespaceNone; - break; - default: + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + var frame = componentFrameCache.get(fn); + if (void 0 !== frame) return frame; + reentry = !0; + frame = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher = null; + previousDispatcher = ReactSharedInternals.H; + ReactSharedInternals.H = null; + disableLogs(); + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$0) { + control = x$0; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$1) { + control = x$1; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = + RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + _RunInRootFrame$Deter = namePropDescriptor = 0; + namePropDescriptor < sampleLines.length && + !sampleLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + for ( + ; + _RunInRootFrame$Deter < controlLines.length && + !controlLines[_RunInRootFrame$Deter].includes( + "DetermineComponentFrameRoot" + ); + + ) + _RunInRootFrame$Deter++; if ( - ((nextRootInstance = - nextRootContext === COMMENT_NODE - ? nextRootInstance.parentNode - : nextRootInstance), - (nextRootContext = nextRootInstance.tagName), - (nextRootInstance = nextRootInstance.namespaceURI)) + namePropDescriptor === sampleLines.length || + _RunInRootFrame$Deter === controlLines.length ) - (nextRootInstance = getOwnHostContext(nextRootInstance)), - (nextRootInstance = getChildHostContextProd( - nextRootInstance, - nextRootContext - )); - else - switch (nextRootContext) { - case "svg": - nextRootInstance = HostContextNamespaceSvg; - break; - case "math": - nextRootInstance = HostContextNamespaceMath; - break; - default: - nextRootInstance = HostContextNamespaceNone; + for ( + namePropDescriptor = sampleLines.length - 1, + _RunInRootFrame$Deter = controlLines.length - 1; + 1 <= namePropDescriptor && + 0 <= _RunInRootFrame$Deter && + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]; + + ) + _RunInRootFrame$Deter--; + for ( + ; + 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; + namePropDescriptor--, _RunInRootFrame$Deter-- + ) + if ( + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter] + ) { + if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { + do + if ( + (namePropDescriptor--, + _RunInRootFrame$Deter--, + 0 > _RunInRootFrame$Deter || + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]) + ) { + var _frame = + "\n" + + sampleLines[namePropDescriptor].replace( + " at new ", + " at " + ); + fn.displayName && + _frame.includes("") && + (_frame = _frame.replace("", fn.displayName)); + "function" === typeof fn && + componentFrameCache.set(fn, _frame); + return _frame; + } + while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); + } + break; } + } + } finally { + (reentry = !1), + (ReactSharedInternals.H = previousDispatcher), + reenableLogs(), + (Error.prepareStackTrace = frame); } - nextRootContext = nextRootContext.toLowerCase(); - nextRootContext = updatedAncestorInfoDev(null, nextRootContext); - nextRootContext = { - context: nextRootInstance, - ancestorInfo: nextRootContext - }; - pop(contextStackCursor, fiber); - push(contextStackCursor, nextRootContext, fiber); - } - function popHostContainer(fiber) { - pop(contextStackCursor, fiber); - pop(contextFiberStackCursor, fiber); - pop(rootInstanceStackCursor, fiber); - } - function getHostContext() { - return requiredContext(contextStackCursor.current); - } - function pushHostContext(fiber) { - null !== fiber.memoizedState && - push(hostTransitionProviderCursor, fiber, fiber); - var context = requiredContext(contextStackCursor.current); - var type = fiber.type; - var nextContext = getChildHostContextProd(context.context, type); - type = updatedAncestorInfoDev(context.ancestorInfo, type); - nextContext = { context: nextContext, ancestorInfo: type }; - context !== nextContext && - (push(contextFiberStackCursor, fiber, fiber), - push(contextStackCursor, nextContext, fiber)); - } - function popHostContext(fiber) { - contextFiberStackCursor.current === fiber && - (pop(contextStackCursor, fiber), pop(contextFiberStackCursor, fiber)); - hostTransitionProviderCursor.current === fiber && - (pop(hostTransitionProviderCursor, fiber), - (HostTransitionContext._currentValue = NotPendingTransition)); + sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(sampleLines) + : ""; + "function" === typeof fn && componentFrameCache.set(fn, sampleLines); + return sampleLines; } - function typeName(value) { - return ( - ("function" === typeof Symbol && - Symbol.toStringTag && - value[Symbol.toStringTag]) || - value.constructor.name || - "Object" - ); + function formatOwnerStack(error) { + var prevPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + error = error.stack; + Error.prepareStackTrace = prevPrepareStackTrace; + error.startsWith("Error: react-stack-top-frame\n") && + (error = error.slice(29)); + prevPrepareStackTrace = error.indexOf("\n"); + -1 !== prevPrepareStackTrace && + (error = error.slice(prevPrepareStackTrace + 1)); + prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); + -1 !== prevPrepareStackTrace && + (prevPrepareStackTrace = error.lastIndexOf( + "\n", + prevPrepareStackTrace + )); + if (-1 !== prevPrepareStackTrace) + error = error.slice(0, prevPrepareStackTrace); + else return ""; + return error; } - function willCoercionThrow(value) { - try { - return testStringCoercion(value), !1; - } catch (e) { - return !0; + function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; } } - function testStringCoercion(value) { - return "" + value; - } - function checkAttributeStringCoercion(value, attributeName) { - if (willCoercionThrow(value)) - return ( - error$jscomp$0( - "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.", - attributeName, - typeName(value) - ), - testStringCoercion(value) - ); - } - function checkCSSPropertyStringCoercion(value, propName) { - if (willCoercionThrow(value)) - return ( - error$jscomp$0( - "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.", - propName, - typeName(value) - ), - testStringCoercion(value) - ); - } - function checkFormFieldValueStringCoercion(value) { - if (willCoercionThrow(value)) - return ( - error$jscomp$0( - "Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", - typeName(value) - ), - testStringCoercion(value) - ); + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do { + info += describeFiber(workInProgress); + var debugInfo = workInProgress._debugInfo; + if (debugInfo) + for (var i = debugInfo.length - 1; 0 <= i; i--) { + var entry = debugInfo[i]; + if ("string" === typeof entry.name) { + var JSCompiler_temp_const = info, + env = entry.env; + var JSCompiler_inline_result = describeBuiltInComponentFrame( + entry.name + (env ? " [" + env + "]" : "") + ); + info = JSCompiler_temp_const + JSCompiler_inline_result; + } + } + workInProgress = workInProgress.return; + } while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } - function resolveUpdatePriority() { - var updatePriority = Internals.p; - if (0 !== updatePriority) return updatePriority; - updatePriority = window.event; - return void 0 === updatePriority - ? DefaultEventPriority - : getEventPriority(updatePriority.type); + function describeFunctionComponentFrameWithoutLineNumber(fn) { + return (fn = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(fn) + : ""; } - function runWithPriority(priority, fn) { - var previousPriority = Internals.p; + function getOwnerStackByFiberInDev(workInProgress) { + if (!enableOwnerStacks) return ""; try { - return (Internals.p = priority), fn(); - } finally { - Internals.p = previousPriority; + var info = ""; + 6 === workInProgress.tag && (workInProgress = workInProgress.return); + switch (workInProgress.tag) { + case 26: + case 27: + case 5: + info += describeBuiltInComponentFrame(workInProgress.type); + break; + case 13: + info += describeBuiltInComponentFrame("Suspense"); + break; + case 19: + info += describeBuiltInComponentFrame("SuspenseList"); + break; + case 0: + case 15: + case 1: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type + )); + break; + case 11: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type.render + )); + } + for (; workInProgress; ) + if ("number" === typeof workInProgress.tag) { + var fiber = workInProgress; + workInProgress = fiber._debugOwner; + var debugStack = fiber._debugStack; + workInProgress && + debugStack && + ("string" !== typeof debugStack && + (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), + "" !== debugStack && (info += "\n" + debugStack)); + } else if (null != workInProgress.debugStack) { + var ownerStack = workInProgress.debugStack; + (workInProgress = workInProgress.owner) && + ownerStack && + (info += "\n" + formatOwnerStack(ownerStack)); + } else break; + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; } } - function getImplicitRole(element) { - var mappedByTag = tagToRoleMappings[element.tagName]; - if (void 0 !== mappedByTag) return mappedByTag; - switch (element.tagName) { - case "A": - case "AREA": - case "LINK": - if (element.hasAttribute("href")) return "link"; - break; - case "IMG": - if (0 < (element.getAttribute("alt") || "").length) return "img"; + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch ( + ("number" === typeof type.tag && + error$jscomp$0( + "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." + ), + type.$$typeof) + ) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } + function getComponentNameFromOwner(owner) { + return "number" === typeof owner.tag + ? getComponentNameFromFiber(owner) + : "string" === typeof owner.name + ? owner.name + : null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return enableRenderableContext + ? (type._context.displayName || "Context") + ".Consumer" + : (type.displayName || "Context") + ".Consumer"; + case 10: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") + ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; break; - case "INPUT": - switch (((mappedByTag = element.type), mappedByTag)) { - case "button": - case "image": - case "reset": - case "submit": - return "button"; - case "checkbox": - case "radio": - return mappedByTag; - case "range": - return "slider"; - case "email": - case "tel": - case "text": - case "url": - return element.hasAttribute("list") ? "combobox" : "textbox"; - case "search": - return element.hasAttribute("list") ? "combobox" : "searchbox"; - default: - return null; - } - case "SELECT": - return element.hasAttribute("multiple") || 1 < element.size - ? "listbox" - : "combobox"; + case 23: + return "LegacyHidden"; + case 29: + type = fiber._debugInfo; + if (null != type) + for (var i = type.length - 1; 0 <= i; i--) + if ("string" === typeof type[i].name) return type[i].name; + if (null !== fiber.return) + return getComponentNameFromFiber(fiber.return); } return null; } - function registerTwoPhaseEvent(registrationName, dependencies) { - registerDirectEvent(registrationName, dependencies); - registerDirectEvent(registrationName + "Capture", dependencies); + function getCurrentFiberOwnerNameInDevOrNull() { + if (null === current) return null; + var owner = current._debugOwner; + return null != owner ? getComponentNameFromOwner(owner) : null; } - function registerDirectEvent(registrationName, dependencies) { - registrationNameDependencies[registrationName] && - error$jscomp$0( - "EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.", - registrationName - ); - registrationNameDependencies[registrationName] = dependencies; - var lowerCasedName = registrationName.toLowerCase(); - possibleRegistrationNames[lowerCasedName] = registrationName; - "onDoubleClick" === registrationName && - (possibleRegistrationNames.ondblclick = registrationName); - for ( - registrationName = 0; - registrationName < dependencies.length; - registrationName++ - ) - allNativeEvents.add(dependencies[registrationName]); + function getCurrentFiberStackInDev() { + return null === current + ? "" + : enableOwnerStacks + ? getOwnerStackByFiberInDev(current) + : getStackByFiberInDevAndProd(current); } - function checkControlledValueProps(tagName, props) { - hasReadOnlyValue[props.type] || - props.onChange || - props.onInput || - props.readOnly || - props.disabled || - null == props.value || - ("select" === tagName - ? error$jscomp$0( - "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`." + function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { + var previousFiber = current; + ReactSharedInternals.getCurrentStack = + null === fiber ? null : getCurrentFiberStackInDev; + isRendering = !1; + current = fiber; + try { + return enableOwnerStacks && null !== fiber && fiber._debugTask + ? fiber._debugTask.run( + callback.bind(null, arg0, arg1, arg2, arg3, arg4) ) - : error$jscomp$0( - "You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`." - )); - props.onChange || - props.readOnly || - props.disabled || - null == props.checked || - error$jscomp$0( - "You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`." - ); - } - function isAttributeNameSafe(attributeName) { - if (hasOwnProperty.call(validatedAttributeNameCache, attributeName)) - return !0; - if (hasOwnProperty.call(illegalAttributeNameCache, attributeName)) - return !1; - if (VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)) - return (validatedAttributeNameCache[attributeName] = !0); - illegalAttributeNameCache[attributeName] = !0; - error$jscomp$0("Invalid attribute name: `%s`", attributeName); - return !1; - } - function getValueForAttributeOnCustomComponent(node, name, expected) { - if (isAttributeNameSafe(name)) { - if (!node.hasAttribute(name)) { - switch (typeof expected) { - case "symbol": - case "object": - return expected; - case "function": - return expected; - case "boolean": - if (!1 === expected) return expected; - } - return void 0 === expected ? void 0 : null; - } - node = node.getAttribute(name); - if ("" === node && !0 === expected) return !0; - checkAttributeStringCoercion(expected, name); - return node === "" + expected ? expected : node; - } - } - function setValueForAttribute(node, name, value) { - if (isAttributeNameSafe(name)) - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - node.removeAttribute(name); - return; - case "boolean": - var prefix = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix && "aria-" !== prefix) { - node.removeAttribute(name); - return; - } - } - checkAttributeStringCoercion(value, name); - node.setAttribute( - name, - enableTrustedTypesIntegration ? value : "" + value - ); - } - } - function setValueForKnownAttribute(node, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; - } - checkAttributeStringCoercion(value, name); - node.setAttribute( - name, - enableTrustedTypesIntegration ? value : "" + value - ); - } - } - function setValueForNamespacedAttribute(node, namespace, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; - } - checkAttributeStringCoercion(value, name); - node.setAttributeNS( - namespace, - name, - enableTrustedTypesIntegration ? value : "" + value - ); + : callback(arg0, arg1, arg2, arg3, arg4); + } finally { + current = previousFiber; } + throw Error( + "runWithFiberInDEV should never be called in production. This is a bug in React." + ); } function getToStringValue(value) { switch (typeof value) { @@ -4010,8 +4011,6 @@ __DEV__ && ((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask()) : didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now$1()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -5023,7 +5022,7 @@ __DEV__ && null; hookTypesUpdateIndexDev = -1; null !== current && - (current.flags & 29360128) !== (workInProgress.flags & 29360128) && + (current.flags & 65011712) !== (workInProgress.flags & 65011712) && error$jscomp$0( "Internal React error: Expected static flag was missing. Please notify the React team." ); @@ -5101,7 +5100,7 @@ __DEV__ && workInProgress.updateQueue = current.updateQueue; workInProgress.flags = (workInProgress.mode & StrictEffectsMode) !== NoMode - ? workInProgress.flags & -201328645 + ? workInProgress.flags & -402655237 : workInProgress.flags & -2053; current.lanes &= ~lanes; } @@ -6003,7 +6002,7 @@ __DEV__ && function mountEffect(create, deps) { (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && (currentlyRenderingFiber.mode & NoStrictPassiveEffectsMode) === NoMode - ? mountEffectImpl(142608384, Passive, create, deps) + ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps); } function mountResourceEffect( @@ -6019,7 +6018,7 @@ __DEV__ && ) { var hookFlags = Passive, hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= 142608384; + currentlyRenderingFiber.flags |= 276826112; var inst = createEffectInstance(); inst.destroy = destroy; hook.memoizedState = pushResourceEffect( @@ -6141,7 +6140,7 @@ __DEV__ && function mountLayoutEffect(create, deps) { var fiberFlags = 4194308; (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && - (fiberFlags |= 67108864); + (fiberFlags |= 134217728); return mountEffectImpl(fiberFlags, Layout, create, deps); } function imperativeHandleEffect(create, ref) { @@ -6175,7 +6174,7 @@ __DEV__ && deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; var fiberFlags = 4194308; (currentlyRenderingFiber.mode & StrictEffectsMode) !== NoMode && - (fiberFlags |= 67108864); + (fiberFlags |= 134217728); mountEffectImpl( fiberFlags, Layout, @@ -6786,16 +6785,16 @@ __DEV__ && return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -9088,7 +9087,7 @@ __DEV__ && "function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308); (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864); + (workInProgress.flags |= 134217728); _instance = !0; } else if (null === current$jscomp$0) { _instance = workInProgress.stateNode; @@ -9156,11 +9155,11 @@ __DEV__ && "function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864)) + (workInProgress.flags |= 134217728)) : ("function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (workInProgress.memoizedProps = nextProps), (workInProgress.memoizedState = oldContext)), (_instance.props = nextProps), @@ -9170,7 +9169,7 @@ __DEV__ && : ("function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & StrictEffectsMode) !== NoMode && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (_instance = !1)); } else { _instance = workInProgress.stateNode; @@ -9398,32 +9397,32 @@ __DEV__ && return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2557; - var JSCompiler_object_inline_stack_2558 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2574; + var JSCompiler_object_inline_stack_2575 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2559 = !1; + var JSCompiler_object_inline_componentStack_2576 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2557 = didSuspend) || - (JSCompiler_object_inline_digest_2557 = + (JSCompiler_object_inline_digest_2574 = didSuspend) || + (JSCompiler_object_inline_digest_2574 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2557 && - ((JSCompiler_object_inline_componentStack_2559 = !0), + JSCompiler_object_inline_digest_2574 && + ((JSCompiler_object_inline_componentStack_2576 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2557 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2574 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2559 + JSCompiler_object_inline_componentStack_2576 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2556 = nextHydratableInstance; + var JSCompiler_object_inline_message_2573 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2556)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2573)) { c: { - var instance = JSCompiler_object_inline_message_2556; + var instance = JSCompiler_object_inline_message_2573; for ( JSCompiler_temp = rootOrSingletonContext; instance.nodeType !== COMMENT_NODE; @@ -9465,46 +9464,46 @@ __DEV__ && JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2556 + JSCompiler_object_inline_message_2573 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2556 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2573 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2556 && - ((JSCompiler_object_inline_message_2556 = - JSCompiler_object_inline_message_2556.dehydrated), - null !== JSCompiler_object_inline_message_2556) + null !== JSCompiler_object_inline_message_2573 && + ((JSCompiler_object_inline_message_2573 = + JSCompiler_object_inline_message_2573.dehydrated), + null !== JSCompiler_object_inline_message_2573) ) return ( - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2556) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2573) ? (workInProgress.lanes = 32) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2556 = - JSCompiler_object_inline_stack_2558.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2558.fallback; - if (JSCompiler_object_inline_componentStack_2559) + JSCompiler_object_inline_message_2573 = + JSCompiler_object_inline_stack_2575.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2575.fallback; + if (JSCompiler_object_inline_componentStack_2576) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2558 = + (JSCompiler_object_inline_stack_2575 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2556, + JSCompiler_object_inline_message_2573, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2559 = + (JSCompiler_object_inline_componentStack_2576 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2559.memoizedState = + (JSCompiler_object_inline_componentStack_2576.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2559.childLanes = + (JSCompiler_object_inline_componentStack_2576.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2557, + JSCompiler_object_inline_digest_2574, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), @@ -9517,9 +9516,9 @@ __DEV__ && ? markerInstanceStack.current : null), (renderLanes = - JSCompiler_object_inline_componentStack_2559.updateQueue), + JSCompiler_object_inline_componentStack_2576.updateQueue), null === renderLanes - ? (JSCompiler_object_inline_componentStack_2559.updateQueue = + ? (JSCompiler_object_inline_componentStack_2576.updateQueue = { transitions: workInProgress, markerInstances: current, @@ -9527,46 +9526,46 @@ __DEV__ && }) : ((renderLanes.transitions = workInProgress), (renderLanes.markerInstances = current)))), - JSCompiler_object_inline_stack_2558 + JSCompiler_object_inline_stack_2575 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2558.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2575.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2558 = + (JSCompiler_object_inline_stack_2575 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2556, + JSCompiler_object_inline_message_2573, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2559 = + (JSCompiler_object_inline_componentStack_2576 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2559.memoizedState = + (JSCompiler_object_inline_componentStack_2576.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2559.childLanes = + (JSCompiler_object_inline_componentStack_2576.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2557, + JSCompiler_object_inline_digest_2574, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2558 + JSCompiler_object_inline_stack_2575 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2556 + JSCompiler_object_inline_message_2573 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2556 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2556) + ((JSCompiler_object_inline_message_2573 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2573) ) { if (didSuspend) workInProgress.flags & 256 @@ -9583,94 +9582,94 @@ __DEV__ && (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2559 = - JSCompiler_object_inline_stack_2558.fallback), - (JSCompiler_object_inline_message_2556 = workInProgress.mode), - (JSCompiler_object_inline_stack_2558 = + (JSCompiler_object_inline_componentStack_2576 = + JSCompiler_object_inline_stack_2575.fallback), + (JSCompiler_object_inline_message_2573 = workInProgress.mode), + (JSCompiler_object_inline_stack_2575 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2558.children + children: JSCompiler_object_inline_stack_2575.children }, - JSCompiler_object_inline_message_2556 + JSCompiler_object_inline_message_2573 )), - (JSCompiler_object_inline_componentStack_2559 = + (JSCompiler_object_inline_componentStack_2576 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2559, - JSCompiler_object_inline_message_2556, + JSCompiler_object_inline_componentStack_2576, + JSCompiler_object_inline_message_2573, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2559.flags |= 2), - (JSCompiler_object_inline_stack_2558.return = workInProgress), - (JSCompiler_object_inline_componentStack_2559.return = + (JSCompiler_object_inline_componentStack_2576.flags |= 2), + (JSCompiler_object_inline_stack_2575.return = workInProgress), + (JSCompiler_object_inline_componentStack_2576.return = workInProgress), - (JSCompiler_object_inline_stack_2558.sibling = - JSCompiler_object_inline_componentStack_2559), - (workInProgress.child = JSCompiler_object_inline_stack_2558), + (JSCompiler_object_inline_stack_2575.sibling = + JSCompiler_object_inline_componentStack_2576), + (workInProgress.child = JSCompiler_object_inline_stack_2575), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2558 = workInProgress.child), - (JSCompiler_object_inline_stack_2558.memoizedState = + (JSCompiler_object_inline_stack_2575 = workInProgress.child), + (JSCompiler_object_inline_stack_2575.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2558.childLanes = + (JSCompiler_object_inline_stack_2575.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2557, + JSCompiler_object_inline_digest_2574, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2559)); + JSCompiler_object_inline_componentStack_2576)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && error$jscomp$0( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2556)) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2573)) ) { - JSCompiler_object_inline_digest_2557 = - JSCompiler_object_inline_message_2556.nextSibling && - JSCompiler_object_inline_message_2556.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2557) { - JSCompiler_temp = JSCompiler_object_inline_digest_2557.dgst; - var message = JSCompiler_object_inline_digest_2557.msg; - instance = JSCompiler_object_inline_digest_2557.stck; - var componentStack = JSCompiler_object_inline_digest_2557.cstck; + JSCompiler_object_inline_digest_2574 = + JSCompiler_object_inline_message_2573.nextSibling && + JSCompiler_object_inline_message_2573.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2574) { + JSCompiler_temp = JSCompiler_object_inline_digest_2574.dgst; + var message = JSCompiler_object_inline_digest_2574.msg; + instance = JSCompiler_object_inline_digest_2574.stck; + var componentStack = JSCompiler_object_inline_digest_2574.cstck; } - JSCompiler_object_inline_message_2556 = message; - JSCompiler_object_inline_digest_2557 = JSCompiler_temp; - JSCompiler_object_inline_stack_2558 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2559 = + JSCompiler_object_inline_message_2573 = message; + JSCompiler_object_inline_digest_2574 = JSCompiler_temp; + JSCompiler_object_inline_stack_2575 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2576 = componentStack; - JSCompiler_object_inline_componentStack_2559 = - JSCompiler_object_inline_message_2556 - ? Error(JSCompiler_object_inline_message_2556) + JSCompiler_object_inline_componentStack_2576 = + JSCompiler_object_inline_message_2573 + ? Error(JSCompiler_object_inline_message_2573) : 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_2559.stack = - JSCompiler_object_inline_stack_2558 || ""; - JSCompiler_object_inline_componentStack_2559.digest = - JSCompiler_object_inline_digest_2557; - JSCompiler_object_inline_digest_2557 = + JSCompiler_object_inline_componentStack_2576.stack = + JSCompiler_object_inline_stack_2575 || ""; + JSCompiler_object_inline_componentStack_2576.digest = + JSCompiler_object_inline_digest_2574; + JSCompiler_object_inline_digest_2574 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; - JSCompiler_object_inline_stack_2558 = { - value: JSCompiler_object_inline_componentStack_2559, + JSCompiler_object_inline_stack_2575 = { + value: JSCompiler_object_inline_componentStack_2576, source: null, - stack: JSCompiler_object_inline_digest_2557 + stack: JSCompiler_object_inline_digest_2574 }; - "string" === typeof JSCompiler_object_inline_digest_2557 && + "string" === typeof JSCompiler_object_inline_digest_2574 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2559, - JSCompiler_object_inline_stack_2558 + JSCompiler_object_inline_componentStack_2576, + JSCompiler_object_inline_stack_2575 ); - queueHydrationError(JSCompiler_object_inline_stack_2558); + queueHydrationError(JSCompiler_object_inline_stack_2575); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9684,44 +9683,44 @@ __DEV__ && renderLanes, !1 ), - (JSCompiler_object_inline_digest_2557 = + (JSCompiler_object_inline_digest_2574 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2557) + didReceiveUpdate || JSCompiler_object_inline_digest_2574) ) { - JSCompiler_object_inline_digest_2557 = workInProgressRoot; + JSCompiler_object_inline_digest_2574 = workInProgressRoot; if ( - null !== JSCompiler_object_inline_digest_2557 && - ((JSCompiler_object_inline_stack_2558 = renderLanes & -renderLanes), - (JSCompiler_object_inline_stack_2558 = - 0 !== (JSCompiler_object_inline_stack_2558 & 42) + null !== JSCompiler_object_inline_digest_2574 && + ((JSCompiler_object_inline_stack_2575 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2575 = + 0 !== (JSCompiler_object_inline_stack_2575 & 42) ? 1 : getBumpedLaneForHydrationByLane( - JSCompiler_object_inline_stack_2558 + JSCompiler_object_inline_stack_2575 )), - (JSCompiler_object_inline_stack_2558 = + (JSCompiler_object_inline_stack_2575 = 0 !== - (JSCompiler_object_inline_stack_2558 & - (JSCompiler_object_inline_digest_2557.suspendedLanes | + (JSCompiler_object_inline_stack_2575 & + (JSCompiler_object_inline_digest_2574.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2558), - 0 !== JSCompiler_object_inline_stack_2558 && - JSCompiler_object_inline_stack_2558 !== prevState.retryLane) + : JSCompiler_object_inline_stack_2575), + 0 !== JSCompiler_object_inline_stack_2575 && + JSCompiler_object_inline_stack_2575 !== prevState.retryLane) ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2558), + ((prevState.retryLane = JSCompiler_object_inline_stack_2575), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2558 + JSCompiler_object_inline_stack_2575 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2557, + JSCompiler_object_inline_digest_2574, current, - JSCompiler_object_inline_stack_2558 + JSCompiler_object_inline_stack_2575 ), SelectiveHydrationException) ); - JSCompiler_object_inline_message_2556.data === + JSCompiler_object_inline_message_2573.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9729,14 +9728,14 @@ __DEV__ && renderLanes ); } else - JSCompiler_object_inline_message_2556.data === + JSCompiler_object_inline_message_2573.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2556.nextSibling + JSCompiler_object_inline_message_2573.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9754,57 +9753,57 @@ __DEV__ && (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2558.children + JSCompiler_object_inline_stack_2575.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2559) + if (JSCompiler_object_inline_componentStack_2576) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2559 = - JSCompiler_object_inline_stack_2558.fallback), - (JSCompiler_object_inline_message_2556 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2576 = + JSCompiler_object_inline_stack_2575.fallback), + (JSCompiler_object_inline_message_2573 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2558 = createWorkInProgress( + (JSCompiler_object_inline_stack_2575 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2558.children + children: JSCompiler_object_inline_stack_2575.children } )), - (JSCompiler_object_inline_stack_2558.subtreeFlags = - JSCompiler_temp.subtreeFlags & 29360128), + (JSCompiler_object_inline_stack_2575.subtreeFlags = + JSCompiler_temp.subtreeFlags & 65011712), null !== instance - ? (JSCompiler_object_inline_componentStack_2559 = + ? (JSCompiler_object_inline_componentStack_2576 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2559 + JSCompiler_object_inline_componentStack_2576 )) - : ((JSCompiler_object_inline_componentStack_2559 = + : ((JSCompiler_object_inline_componentStack_2576 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2559, - JSCompiler_object_inline_message_2556, + JSCompiler_object_inline_componentStack_2576, + JSCompiler_object_inline_message_2573, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2559.flags |= 2)), - (JSCompiler_object_inline_componentStack_2559.return = + (JSCompiler_object_inline_componentStack_2576.flags |= 2)), + (JSCompiler_object_inline_componentStack_2576.return = workInProgress), - (JSCompiler_object_inline_stack_2558.return = workInProgress), - (JSCompiler_object_inline_stack_2558.sibling = - JSCompiler_object_inline_componentStack_2559), - (workInProgress.child = JSCompiler_object_inline_stack_2558), - (JSCompiler_object_inline_stack_2558 = - JSCompiler_object_inline_componentStack_2559), - (JSCompiler_object_inline_componentStack_2559 = workInProgress.child), - (JSCompiler_object_inline_message_2556 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2556 - ? (JSCompiler_object_inline_message_2556 = + (JSCompiler_object_inline_stack_2575.return = workInProgress), + (JSCompiler_object_inline_stack_2575.sibling = + JSCompiler_object_inline_componentStack_2576), + (workInProgress.child = JSCompiler_object_inline_stack_2575), + (JSCompiler_object_inline_stack_2575 = + JSCompiler_object_inline_componentStack_2576), + (JSCompiler_object_inline_componentStack_2576 = workInProgress.child), + (JSCompiler_object_inline_message_2573 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2573 + ? (JSCompiler_object_inline_message_2573 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2556.cachePool), + JSCompiler_object_inline_message_2573.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9812,34 +9811,34 @@ __DEV__ && ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2556 = { + (JSCompiler_object_inline_message_2573 = { baseLanes: - JSCompiler_object_inline_message_2556.baseLanes | renderLanes, + JSCompiler_object_inline_message_2573.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2559.memoizedState = - JSCompiler_object_inline_message_2556), + (JSCompiler_object_inline_componentStack_2576.memoizedState = + JSCompiler_object_inline_message_2573), enableTransitionTracing && - ((JSCompiler_object_inline_message_2556 = enableTransitionTracing + ((JSCompiler_object_inline_message_2573 = enableTransitionTracing ? transitionStack.current : null), - null !== JSCompiler_object_inline_message_2556 && + null !== JSCompiler_object_inline_message_2573 && ((JSCompiler_temp = enableTransitionTracing ? markerInstanceStack.current : null), (instance = - JSCompiler_object_inline_componentStack_2559.updateQueue), + JSCompiler_object_inline_componentStack_2576.updateQueue), (componentStack = current.updateQueue), null === instance - ? (JSCompiler_object_inline_componentStack_2559.updateQueue = { - transitions: JSCompiler_object_inline_message_2556, + ? (JSCompiler_object_inline_componentStack_2576.updateQueue = { + transitions: JSCompiler_object_inline_message_2573, markerInstances: JSCompiler_temp, retryQueue: null }) : instance === componentStack - ? (JSCompiler_object_inline_componentStack_2559.updateQueue = + ? (JSCompiler_object_inline_componentStack_2576.updateQueue = { - transitions: JSCompiler_object_inline_message_2556, + transitions: JSCompiler_object_inline_message_2573, markerInstances: JSCompiler_temp, retryQueue: null !== componentStack @@ -9847,32 +9846,32 @@ __DEV__ && : null }) : ((instance.transitions = - JSCompiler_object_inline_message_2556), + JSCompiler_object_inline_message_2573), (instance.markerInstances = JSCompiler_temp)))), - (JSCompiler_object_inline_componentStack_2559.childLanes = + (JSCompiler_object_inline_componentStack_2576.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2557, + JSCompiler_object_inline_digest_2574, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2558 + JSCompiler_object_inline_stack_2575 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2558.children + children: JSCompiler_object_inline_stack_2575.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2557 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2557 + ((JSCompiler_object_inline_digest_2574 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2574 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2557.push(current)); + : JSCompiler_object_inline_digest_2574.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -11274,8 +11273,8 @@ __DEV__ && ) (newChildLanes |= _child2.lanes | _child2.childLanes), - (subtreeFlags |= _child2.subtreeFlags & 29360128), - (subtreeFlags |= _child2.flags & 29360128), + (subtreeFlags |= _child2.subtreeFlags & 65011712), + (subtreeFlags |= _child2.flags & 65011712), (_treeBaseDuration += _child2.treeBaseDuration), (_child2 = _child2.sibling); completedWork.treeBaseDuration = _treeBaseDuration; @@ -11287,8 +11286,8 @@ __DEV__ && ) (newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes), - (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128), - (subtreeFlags |= _treeBaseDuration.flags & 29360128), + (subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712), + (subtreeFlags |= _treeBaseDuration.flags & 65011712), (_treeBaseDuration.return = completedWork), (_treeBaseDuration = _treeBaseDuration.sibling); else if ((completedWork.mode & ProfileMode) !== NoMode) { @@ -11915,6 +11914,8 @@ __DEV__ && bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error( "Unknown unit of work tag (" + @@ -14214,6 +14215,7 @@ __DEV__ && ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -14646,7 +14648,7 @@ __DEV__ && break; case 12: flags & 2048 - ? ((prevEffectDuration = pushNestedEffectDurations()), + ? ((flags = pushNestedEffectDurations()), recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, @@ -14655,7 +14657,7 @@ __DEV__ && ), (finishedRoot = finishedWork.stateNode), (finishedRoot.passiveEffectDuration += - bubbleNestedEffectDurations(prevEffectDuration)), + bubbleNestedEffectDurations(flags)), commitProfilerPostCommit( finishedWork, finishedWork.alternate, @@ -14693,6 +14695,7 @@ __DEV__ && break; case 22: prevEffectDuration = finishedWork.stateNode; + nextCache = finishedWork.alternate; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -14722,7 +14725,7 @@ __DEV__ && )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + nextCache, finishedWork, prevEffectDuration ); @@ -14737,6 +14740,7 @@ __DEV__ && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -15683,6 +15687,7 @@ __DEV__ && lanes, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, @@ -15712,6 +15717,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -15732,6 +15738,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -15755,6 +15762,7 @@ __DEV__ && finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -15769,12 +15777,14 @@ __DEV__ && root.timeoutHandle = noTimeout; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && + accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -15786,6 +15796,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -15810,6 +15821,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -15934,6 +15946,7 @@ __DEV__ && workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -16544,6 +16557,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -16603,24 +16617,30 @@ __DEV__ && })) : ((root.callbackNode = null), (root.callbackPriority = 0)); commitStartTime = now(); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = Internals.p; + transitions = Internals.p; Internals.p = DiscreteEventPriority; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= CommitContext; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (Internals.p = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (Internals.p = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = PENDING_MUTATION_PHASE; flushMutationEffects(); + pendingEffectsStatus = PENDING_LAYOUT_PHASE; flushLayoutEffects(); } } @@ -16761,7 +16781,7 @@ __DEV__ && } } root.current = finishedWork; - pendingEffectsStatus = PENDING_LAYOUT_PHASE; + pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; } } function flushLayoutEffects() { @@ -16897,6 +16917,9 @@ __DEV__ && function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE && + ((pendingEffectsStatus = NO_PENDING_EFFECTS), + (pendingEffectsStatus = PENDING_LAYOUT_PHASE)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { @@ -17161,14 +17184,14 @@ __DEV__ && parentFiber, isInStrictMode ) { - if (0 !== (parentFiber.subtreeFlags & 33562624)) + if (0 !== (parentFiber.subtreeFlags & 67117056)) for (parentFiber = parentFiber.child; null !== parentFiber; ) { var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; isStrictModeFiber = isInStrictMode || isStrictModeFiber; 22 !== fiber.tag - ? fiber.flags & 33554432 + ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV( fiber, @@ -17190,7 +17213,7 @@ __DEV__ && root, fiber ) - : fiber.subtreeFlags & 33554432 && + : fiber.subtreeFlags & 67108864 && runWithFiberInDEV( fiber, recursivelyTraverseAndDoubleInvokeEffectsInDEV, @@ -17499,7 +17522,7 @@ __DEV__ && (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -17537,7 +17560,7 @@ __DEV__ && return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -17642,6 +17665,7 @@ __DEV__ && return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -23676,16 +23700,12 @@ __DEV__ && var Scheduler = require("scheduler"), React = require("react"), assign = Object.assign, - warningWWW = require("warning"), - suppressWarning = !1, dynamicFeatureFlags = require("ReactFeatureFlags"), alwaysThrottleRetries = dynamicFeatureFlags.alwaysThrottleRetries, disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -23711,49 +23731,11 @@ __DEV__ && dynamicFeatureFlags.transitionLaneExpirationMs, enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks, enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler, - REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_ELEMENT_TYPE = renameElementSymbol - ? Symbol.for("react.transitional.element") - : REACT_LEGACY_ELEMENT_TYPE, - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"), - REACT_SCOPE_TYPE = Symbol.for("react.scope"), - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), - REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), - REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), - MAYBE_ITERATOR_SYMBOL = Symbol.iterator, - REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + warningWWW = require("warning"), + suppressWarning = !1, + currentReplayingEvent = null, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - disabledDepth = 0, - prevLog, - prevInfo, - prevWarn, - prevError, - prevGroup, - prevGroupCollapsed, - prevGroupEnd; - disabledLog.__reactDisabledLog = !0; - var prefix, - suffix, - reentry = !1; - var componentFrameCache = new ( - "function" === typeof WeakMap ? WeakMap : Map - )(); - var current = null, - isRendering = !1, - currentReplayingEvent = null, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, @@ -23812,6 +23794,29 @@ __DEV__ && rootInstanceStackCursor = createCursor(null), hostTransitionProviderCursor = createCursor(null), hasOwnProperty = Object.prototype.hasOwnProperty, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_ELEMENT_TYPE = renameElementSymbol + ? Symbol.for("react.transitional.element") + : REACT_LEGACY_ELEMENT_TYPE, + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_SCOPE_TYPE = Symbol.for("react.scope"), + REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), + REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), + REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), + MAYBE_ITERATOR_SYMBOL = Symbol.iterator, tagToRoleMappings = { ARTICLE: "article", ASIDE: "complementary", @@ -23876,6 +23881,24 @@ __DEV__ && ), illegalAttributeNameCache = {}, validatedAttributeNameCache = {}, + disabledDepth = 0, + prevLog, + prevInfo, + prevWarn, + prevError, + prevGroup, + prevGroupCollapsed, + prevGroupEnd; + disabledLog.__reactDisabledLog = !0; + var prefix, + suffix, + reentry = !1; + var componentFrameCache = new ( + "function" === typeof WeakMap ? WeakMap : Map + )(); + var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + current = null, + isRendering = !1, escapeSelectorAttributeValueInsideDoubleQuotesRegex = /[\n"\\]/g, didWarnValueDefaultValue$1 = !1, didWarnCheckedDefaultChecked = !1, @@ -26473,21 +26496,6 @@ __DEV__ && var didWarnOnInvalidCallback = new Set(); Object.freeze(fakeInternalInstance); var classComponentUpdater = { - isMounted: function (component) { - var owner = current; - if (null !== owner && isRendering && 1 === owner.tag) { - var instance = owner.stateNode; - instance._warnedAboutRefsInRender || - error$jscomp$0( - "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", - getComponentNameFromFiber(owner) || "A component" - ); - instance._warnedAboutRefsInRender = !0; - } - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(inst), @@ -26675,6 +26683,7 @@ __DEV__ && workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -26690,8 +26699,9 @@ __DEV__ && THROTTLED_COMMIT = 2, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, - PENDING_LAYOUT_PHASE = 2, - PENDING_PASSIVE_PHASE = 3, + PENDING_AFTER_MUTATION_PHASE = 2, + PENDING_LAYOUT_PHASE = 3, + PENDING_PASSIVE_PHASE = 4, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, @@ -27530,11 +27540,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-defffdbb-20250106" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-98418e89-20250108" !== 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.1.0-www-modern-defffdbb-20250106\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-98418e89-20250108\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27577,10 +27587,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-defffdbb-20250106", + version: "19.1.0-www-modern-98418e89-20250108", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-modern-98418e89-20250108" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28344,5 +28354,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-defffdbb-20250106"; + exports.version = "19.1.0-www-modern-98418e89-20250108"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 94bedc43b6176..cb793b8c5587d 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -40,8 +40,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -62,348 +60,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), renameElementSymbol = dynamicFeatureFlags.renameElementSymbol, retryLaneExpirationMs = dynamicFeatureFlags.retryLaneExpirationMs, syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs, - transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, - REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_ELEMENT_TYPE = renameElementSymbol - ? Symbol.for("react.transitional.element") - : REACT_LEGACY_ELEMENT_TYPE, - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"), - REACT_SCOPE_TYPE = Symbol.for("react.scope"), - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), - REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), - REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), - MAYBE_ITERATOR_SYMBOL = Symbol.iterator; -function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; -} -var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); -function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; - } - if ("object" === typeof type) - switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; -} -function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; - case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return ( - (fiber = type.render), - (fiber = fiber.displayName || fiber.name || ""), - type.displayName || - ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") - ); - case 7: - return "Fragment"; - case 26: - case 27: - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 14: - case 15: - if ("function" === typeof type) - return type.displayName || type.name || null; - if ("string" === typeof type) return type; - break; - case 23: - return "LegacyHidden"; - } - return null; -} -var ReactSharedInternals = - React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - prefix, - suffix; -function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; -} -var reentry = !1; -function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - reentry = !0; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$1) { - control = x$1; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$2) { - control = x$2; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - namePropDescriptor = RunInRootFrame = 0; - RunInRootFrame < sampleLines.length && - !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); - - ) - RunInRootFrame++; - for ( - ; - namePropDescriptor < controlLines.length && - !controlLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - if ( - RunInRootFrame === sampleLines.length || - namePropDescriptor === controlLines.length - ) - for ( - RunInRootFrame = sampleLines.length - 1, - namePropDescriptor = controlLines.length - 1; - 1 <= RunInRootFrame && - 0 <= namePropDescriptor && - sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; - - ) - namePropDescriptor--; - for ( - ; - 1 <= RunInRootFrame && 0 <= namePropDescriptor; - RunInRootFrame--, namePropDescriptor-- - ) - if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { - if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { - do - if ( - (RunInRootFrame--, - namePropDescriptor--, - 0 > namePropDescriptor || - sampleLines[RunInRootFrame] !== - controlLines[namePropDescriptor]) - ) { - var frame = - "\n" + - sampleLines[RunInRootFrame].replace(" at new ", " at "); - fn.displayName && - frame.includes("") && - (frame = frame.replace("", fn.displayName)); - return frame; - } - while (1 <= RunInRootFrame && 0 <= namePropDescriptor); - } - break; - } - } - } finally { - (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); - } - return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(previousPrepareStackTrace) - : ""; -} -function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } -} -function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do - (info += describeFiber(workInProgress)), - (workInProgress = workInProgress.return); - while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } -} + transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs; function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; @@ -461,36 +118,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$3 = parentA.child; child$3; ) { - if (child$3 === a) { + for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) { - for (child$3 = parentB.child; child$3; ) { - if (child$3 === a) { + for (child$0 = parentB.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -531,6 +188,8 @@ function doesFiberContain(parentFiber, childFiber) { return !1; } var currentReplayingEvent = null, + ReactSharedInternals = + React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, @@ -760,18 +419,18 @@ function markRootFinished( 0 < remainingLanes; ) { - var index$8 = 31 - clz32(remainingLanes), - lane = 1 << index$8; - entanglements[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$5 = 31 - clz32(remainingLanes), + lane = 1 << index$5; + entanglements[index$5] = 0; + expirationTimes[index$5] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$5]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$5] = null, index$5 = 0; + index$5 < hiddenUpdatesForLane.length; + index$5++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$5]; null !== update && (update.lane &= -536870913); } remainingLanes &= ~lane; @@ -797,10 +456,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$6 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$6; + (lane & entangledLanes) | (root[index$6] & entangledLanes) && + (root[index$6] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -847,11 +506,11 @@ function getBumpedLaneForHydrationByLane(lane) { function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - index$12 = root.transitionLanes[index$12]; - null !== index$12 && - index$12.forEach(function (transition) { + var index$9 = 31 - clz32(lanes), + lane = 1 << index$9; + index$9 = root.transitionLanes[index$9]; + null !== index$9 && + index$9.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -861,10 +520,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$13 = 31 - clz32(lanes), - lane = 1 << index$13; - null !== root.transitionLanes[index$13] && - (root.transitionLanes[index$13] = null); + var index$10 = 31 - clz32(lanes), + lane = 1 << index$10; + null !== root.transitionLanes[index$10] && + (root.transitionLanes[index$10] = null); lanes &= ~lane; } } @@ -976,7 +635,37 @@ function popHostContext(fiber) { (pop(hostTransitionProviderCursor), (HostTransitionContext._currentValue = sharedNotPendingObject)); } -var hasOwnProperty = Object.prototype.hasOwnProperty; +var hasOwnProperty = Object.prototype.hasOwnProperty, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_ELEMENT_TYPE = renameElementSymbol + ? Symbol.for("react.transitional.element") + : REACT_LEGACY_ELEMENT_TYPE, + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_SCOPE_TYPE = Symbol.for("react.scope"), + REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), + REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), + REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), + MAYBE_ITERATOR_SYMBOL = Symbol.iterator; +function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; +} function resolveUpdatePriority() { var updatePriority = Internals.p; if (0 !== updatePriority) return updatePriority; @@ -1119,49 +808,359 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$14 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$14 && "aria-" !== prefix$14) { + var prefix$11 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$11 && "aria-" !== prefix$11) { node.removeAttribute(name); return; } - } - node.setAttribute( - name, - enableTrustedTypesIntegration ? value : "" + value - ); + } + node.setAttribute( + name, + enableTrustedTypesIntegration ? value : "" + value + ); + } +} +function setValueForKnownAttribute(node, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + node.setAttribute(name, enableTrustedTypesIntegration ? value : "" + value); + } +} +function setValueForNamespacedAttribute(node, namespace, name, value) { + if (null === value) node.removeAttribute(name); + else { + switch (typeof value) { + case "undefined": + case "function": + case "symbol": + case "boolean": + node.removeAttribute(name); + return; + } + node.setAttributeNS( + namespace, + name, + enableTrustedTypesIntegration ? value : "" + value + ); + } +} +var prefix, suffix; +function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; +} +var reentry = !1; +function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + reentry = !0; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$12) { + control = x$12; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$13) { + control = x$13; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + namePropDescriptor = RunInRootFrame = 0; + RunInRootFrame < sampleLines.length && + !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); + + ) + RunInRootFrame++; + for ( + ; + namePropDescriptor < controlLines.length && + !controlLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + if ( + RunInRootFrame === sampleLines.length || + namePropDescriptor === controlLines.length + ) + for ( + RunInRootFrame = sampleLines.length - 1, + namePropDescriptor = controlLines.length - 1; + 1 <= RunInRootFrame && + 0 <= namePropDescriptor && + sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; + + ) + namePropDescriptor--; + for ( + ; + 1 <= RunInRootFrame && 0 <= namePropDescriptor; + RunInRootFrame--, namePropDescriptor-- + ) + if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { + if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { + do + if ( + (RunInRootFrame--, + namePropDescriptor--, + 0 > namePropDescriptor || + sampleLines[RunInRootFrame] !== + controlLines[namePropDescriptor]) + ) { + var frame = + "\n" + + sampleLines[RunInRootFrame].replace(" at new ", " at "); + fn.displayName && + frame.includes("") && + (frame = frame.replace("", fn.displayName)); + return frame; + } + while (1 <= RunInRootFrame && 0 <= namePropDescriptor); + } + break; + } } + } finally { + (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); + } + return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(previousPrepareStackTrace) + : ""; } -function setValueForKnownAttribute(node, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; - } - node.setAttribute(name, enableTrustedTypesIntegration ? value : "" + value); +function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; } } -function setValueForNamespacedAttribute(node, namespace, name, value) { - if (null === value) node.removeAttribute(name); - else { - switch (typeof value) { - case "undefined": - case "function": - case "symbol": - case "boolean": - node.removeAttribute(name); - return; +function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do + (info += describeFiber(workInProgress)), + (workInProgress = workInProgress.return); + while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } +} +var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); +function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} } - node.setAttributeNS( - namespace, - name, - enableTrustedTypesIntegration ? value : "" + value - ); + return null; +} +function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return enableRenderableContext + ? (type._context.displayName || "Context") + ".Consumer" + : (type.displayName || "Context") + ".Consumer"; + case 10: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") + ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; + break; + case 23: + return "LegacyHidden"; } + return null; } function getToStringValue(value) { switch (typeof value) { @@ -2217,8 +2216,6 @@ function ensureRootIsScheduled(root) { mightHavePendingSyncWork = !0; didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -2306,12 +2303,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$3 = 31 - clz32(pendingLanes), + lane = 1 << index$3, + expirationTime = expirationTimes[index$3]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$3] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -2371,7 +2368,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { - if (0 !== pendingEffectsStatus && 3 !== pendingEffectsStatus) + if (0 !== pendingEffectsStatus && 4 !== pendingEffectsStatus) return (root.callbackNode = null), (root.callbackPriority = 0), null; var originalCallbackNode = root.callbackNode; if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode) @@ -4588,16 +4585,16 @@ function createChildReconciler(shouldTrackSideEffects) { return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -5317,11 +5314,6 @@ function applyDerivedStateFromProps( (workInProgress.updateQueue.baseState = getDerivedStateFromProps); } var classComponentUpdater = { - isMounted: function (component) { - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), @@ -6759,7 +6751,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { children: nextProps.children })), (nextProps.subtreeFlags = - JSCompiler_temp$jscomp$0.subtreeFlags & 29360128), + JSCompiler_temp$jscomp$0.subtreeFlags & 65011712), null !== digest ? (showFallback = createWorkInProgress(digest, showFallback)) : ((showFallback = createFiberFromFragment( @@ -7828,8 +7820,8 @@ function bubbleProperties(completedWork) { if (didBailout) for (var child$126 = completedWork.child; null !== child$126; ) (newChildLanes |= child$126.lanes | child$126.childLanes), - (subtreeFlags |= child$126.subtreeFlags & 29360128), - (subtreeFlags |= child$126.flags & 29360128), + (subtreeFlags |= child$126.subtreeFlags & 65011712), + (subtreeFlags |= child$126.flags & 65011712), (child$126.return = completedWork), (child$126 = child$126.sibling); else @@ -8323,6 +8315,8 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error(formatProdErrorMessage(156, workInProgress.tag)); } @@ -10046,6 +10040,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -10494,6 +10489,7 @@ function commitPassiveMountOnFiber( break; case 22: nextCache = finishedWork.stateNode; + var current$176 = finishedWork.alternate; null !== finishedWork.memoizedState ? nextCache._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -10520,7 +10516,7 @@ function commitPassiveMountOnFiber( )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + current$176, finishedWork, nextCache ); @@ -10535,6 +10531,7 @@ function commitPassiveMountOnFiber( flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -11164,6 +11161,7 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -11287,11 +11285,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$11 = 31 - clz32(lane), - transitions = transitionLanesMap[index$11]; + index$8 = 31 - clz32(lane), + transitions = transitionLanesMap[index$8]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$11] = transitions; + transitionLanesMap[index$8] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -11438,6 +11436,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -11458,6 +11457,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -11480,6 +11480,7 @@ function commitRootWhenReady( finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -11494,12 +11495,13 @@ function commitRootWhenReady( root.timeoutHandle = -1; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -11511,6 +11513,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11530,6 +11533,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11595,9 +11599,9 @@ function markRootSuspended( (root.warmLanes |= suspendedLanes); didAttemptEntireTree = root.expirationTimes; for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - didAttemptEntireTree[index$7] = -1; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4; + didAttemptEntireTree[index$4] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11651,6 +11655,7 @@ function prepareFreshStack(root, lanes) { workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -11659,9 +11664,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$2 = 31 - clz32(allEntangledLanes), + lane = 1 << index$2; + lanes |= root[index$2]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -12104,6 +12109,7 @@ function commitRoot( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -12145,24 +12151,30 @@ function commitRoot( return null; })) : ((root.callbackNode = null), (root.callbackPriority = 0)); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = Internals.p; + transitions = Internals.p; Internals.p = 2; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= 4; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (Internals.p = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (Internals.p = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = 1; flushMutationEffects(); + pendingEffectsStatus = 3; flushLayoutEffects(); } } @@ -12297,7 +12309,7 @@ function flushMutationEffects() { } } function flushLayoutEffects() { - if (2 === pendingEffectsStatus) { + if (3 === pendingEffectsStatus) { pendingEffectsStatus = 0; var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, @@ -12323,7 +12335,7 @@ function flushLayoutEffects() { requestPaint(); 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) - ? (pendingEffectsStatus = 3) + ? (pendingEffectsStatus = 4) : ((pendingEffectsStatus = 0), (pendingEffectsRoot = null), releaseRootPooledCache(root, root.pendingLanes)); @@ -12394,10 +12406,12 @@ function releaseRootPooledCache(root, remainingLanes) { function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + 2 === pendingEffectsStatus && + ((pendingEffectsStatus = 0), (pendingEffectsStatus = 3)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { - if (3 !== pendingEffectsStatus) return !1; + if (4 !== pendingEffectsStatus) return !1; var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; pendingEffectsRemainingLanes = 0; @@ -12667,7 +12681,7 @@ function createWorkInProgress(current, pendingProps) { (workInProgress.flags = 0), (workInProgress.subtreeFlags = 0), (workInProgress.deletions = null)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -12686,7 +12700,7 @@ function createWorkInProgress(current, pendingProps) { return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -12774,6 +12788,7 @@ function createFiberFromTypeAndProps( return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -13015,11 +13030,6 @@ function getContextForSubtree(parentComponent) { if (!parentComponent) return emptyContextObject; parentComponent = parentComponent._reactInternals; a: { - if ( - getNearestMountedFiber(parentComponent) !== parentComponent || - 1 !== parentComponent.tag - ) - throw Error(formatProdErrorMessage(170)); var JSCompiler_inline_result = parentComponent; do { switch (JSCompiler_inline_result.tag) { @@ -13643,14 +13653,14 @@ var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$353; if (canUseDOM) { - var isSupported$jscomp$inline_1596 = "oninput" in document; - if (!isSupported$jscomp$inline_1596) { - var element$jscomp$inline_1597 = document.createElement("div"); - element$jscomp$inline_1597.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1596 = - "function" === typeof element$jscomp$inline_1597.oninput; + var isSupported$jscomp$inline_1611 = "oninput" in document; + if (!isSupported$jscomp$inline_1611) { + var element$jscomp$inline_1612 = document.createElement("div"); + element$jscomp$inline_1612.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1611 = + "function" === typeof element$jscomp$inline_1612.oninput; } - JSCompiler_inline_result$jscomp$353 = isSupported$jscomp$inline_1596; + JSCompiler_inline_result$jscomp$353 = isSupported$jscomp$inline_1611; } else JSCompiler_inline_result$jscomp$353 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$353 && @@ -13973,20 +13983,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1637 = 0; - i$jscomp$inline_1637 < simpleEventPluginEvents.length; - i$jscomp$inline_1637++ + var i$jscomp$inline_1652 = 0; + i$jscomp$inline_1652 < simpleEventPluginEvents.length; + i$jscomp$inline_1652++ ) { - var eventName$jscomp$inline_1638 = - simpleEventPluginEvents[i$jscomp$inline_1637], - domEventName$jscomp$inline_1639 = - eventName$jscomp$inline_1638.toLowerCase(), - capitalizedEvent$jscomp$inline_1640 = - eventName$jscomp$inline_1638[0].toUpperCase() + - eventName$jscomp$inline_1638.slice(1); + var eventName$jscomp$inline_1653 = + simpleEventPluginEvents[i$jscomp$inline_1652], + domEventName$jscomp$inline_1654 = + eventName$jscomp$inline_1653.toLowerCase(), + capitalizedEvent$jscomp$inline_1655 = + eventName$jscomp$inline_1653[0].toUpperCase() + + eventName$jscomp$inline_1653.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1639, - "on" + capitalizedEvent$jscomp$inline_1640 + domEventName$jscomp$inline_1654, + "on" + capitalizedEvent$jscomp$inline_1655 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -17623,16 +17633,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1810 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1825 = React.version; if ( - "19.1.0-www-classic-defffdbb-20250106" !== - isomorphicReactPackageVersion$jscomp$inline_1810 + "19.1.0-www-classic-98418e89-20250108" !== + isomorphicReactPackageVersion$jscomp$inline_1825 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1810, - "19.1.0-www-classic-defffdbb-20250106" + isomorphicReactPackageVersion$jscomp$inline_1825, + "19.1.0-www-classic-98418e89-20250108" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17648,24 +17658,24 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2350 = { +var internals$jscomp$inline_2367 = { bundleType: 0, - version: "19.1.0-www-classic-defffdbb-20250106", + version: "19.1.0-www-classic-98418e89-20250108", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-classic-98418e89-20250108" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2351 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2368 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2351.isDisabled && - hook$jscomp$inline_2351.supportsFiber + !hook$jscomp$inline_2368.isDisabled && + hook$jscomp$inline_2368.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2351.inject( - internals$jscomp$inline_2350 + (rendererID = hook$jscomp$inline_2368.inject( + internals$jscomp$inline_2367 )), - (injectedHook = hook$jscomp$inline_2351); + (injectedHook = hook$jscomp$inline_2368); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -18168,4 +18178,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-defffdbb-20250106"; +exports.version = "19.1.0-www-classic-98418e89-20250108"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 80286c7de224f..7bc25bfee3b5b 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -38,8 +38,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -60,285 +58,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), renameElementSymbol = dynamicFeatureFlags.renameElementSymbol, retryLaneExpirationMs = dynamicFeatureFlags.retryLaneExpirationMs, syncLaneExpirationMs = dynamicFeatureFlags.syncLaneExpirationMs, - transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs, - REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), - REACT_ELEMENT_TYPE = renameElementSymbol - ? Symbol.for("react.transitional.element") - : REACT_LEGACY_ELEMENT_TYPE, - REACT_PORTAL_TYPE = Symbol.for("react.portal"), - REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), - REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), - REACT_PROFILER_TYPE = Symbol.for("react.profiler"), - REACT_PROVIDER_TYPE = Symbol.for("react.provider"), - REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), - REACT_CONTEXT_TYPE = Symbol.for("react.context"), - REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), - REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), - REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), - REACT_MEMO_TYPE = Symbol.for("react.memo"), - REACT_LAZY_TYPE = Symbol.for("react.lazy"), - REACT_SCOPE_TYPE = Symbol.for("react.scope"), - REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), - REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), - REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), - MAYBE_ITERATOR_SYMBOL = Symbol.iterator; -function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; -} -var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); -function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; - } - if ("object" === typeof type) - switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; -} -var ReactSharedInternals = - React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - prefix, - suffix; -function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; -} -var reentry = !1; -function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - reentry = !0; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$1) { - control = x$1; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$2) { - control = x$2; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - namePropDescriptor = RunInRootFrame = 0; - RunInRootFrame < sampleLines.length && - !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); - - ) - RunInRootFrame++; - for ( - ; - namePropDescriptor < controlLines.length && - !controlLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - if ( - RunInRootFrame === sampleLines.length || - namePropDescriptor === controlLines.length - ) - for ( - RunInRootFrame = sampleLines.length - 1, - namePropDescriptor = controlLines.length - 1; - 1 <= RunInRootFrame && - 0 <= namePropDescriptor && - sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; - - ) - namePropDescriptor--; - for ( - ; - 1 <= RunInRootFrame && 0 <= namePropDescriptor; - RunInRootFrame--, namePropDescriptor-- - ) - if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { - if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { - do - if ( - (RunInRootFrame--, - namePropDescriptor--, - 0 > namePropDescriptor || - sampleLines[RunInRootFrame] !== - controlLines[namePropDescriptor]) - ) { - var frame = - "\n" + - sampleLines[RunInRootFrame].replace(" at new ", " at "); - fn.displayName && - frame.includes("") && - (frame = frame.replace("", fn.displayName)); - return frame; - } - while (1 <= RunInRootFrame && 0 <= namePropDescriptor); - } - break; - } - } - } finally { - (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); - } - return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(previousPrepareStackTrace) - : ""; -} -function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } -} -function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do - (info += describeFiber(workInProgress)), - (workInProgress = workInProgress.return); - while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } -} + transitionLaneExpirationMs = dynamicFeatureFlags.transitionLaneExpirationMs; function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; @@ -396,36 +116,36 @@ function findCurrentFiberUsingSlowPath(fiber) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$3 = parentA.child; child$3; ) { - if (child$3 === a) { + for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) { - for (child$3 = parentB.child; child$3; ) { - if (child$3 === a) { + for (child$0 = parentB.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -466,6 +186,8 @@ function doesFiberContain(parentFiber, childFiber) { return !1; } var currentReplayingEvent = null, + ReactSharedInternals = + React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, scheduleCallback$3 = Scheduler.unstable_scheduleCallback, cancelCallback$1 = Scheduler.unstable_cancelCallback, shouldYield = Scheduler.unstable_shouldYield, @@ -695,18 +417,18 @@ function markRootFinished( 0 < remainingLanes; ) { - var index$8 = 31 - clz32(remainingLanes), - lane = 1 << index$8; - entanglements[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$5 = 31 - clz32(remainingLanes), + lane = 1 << index$5; + entanglements[index$5] = 0; + expirationTimes[index$5] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$5]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$5] = null, index$5 = 0; + index$5 < hiddenUpdatesForLane.length; + index$5++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$5]; null !== update && (update.lane &= -536870913); } remainingLanes &= ~lane; @@ -732,10 +454,10 @@ function markSpawnedDeferredLane(root, spawnedLane, entangledLanes) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$6 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$6; + (lane & entangledLanes) | (root[index$6] & entangledLanes) && + (root[index$6] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -782,11 +504,11 @@ function getBumpedLaneForHydrationByLane(lane) { function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - index$12 = root.transitionLanes[index$12]; - null !== index$12 && - index$12.forEach(function (transition) { + var index$9 = 31 - clz32(lanes), + lane = 1 << index$9; + index$9 = root.transitionLanes[index$9]; + null !== index$9 && + index$9.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -796,10 +518,10 @@ function getTransitionsForLanes(root, lanes) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$13 = 31 - clz32(lanes), - lane = 1 << index$13; - null !== root.transitionLanes[index$13] && - (root.transitionLanes[index$13] = null); + var index$10 = 31 - clz32(lanes), + lane = 1 << index$10; + null !== root.transitionLanes[index$10] && + (root.transitionLanes[index$10] = null); lanes &= ~lane; } } @@ -911,7 +633,37 @@ function popHostContext(fiber) { (pop(hostTransitionProviderCursor), (HostTransitionContext._currentValue = sharedNotPendingObject)); } -var hasOwnProperty = Object.prototype.hasOwnProperty; +var hasOwnProperty = Object.prototype.hasOwnProperty, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_ELEMENT_TYPE = renameElementSymbol + ? Symbol.for("react.transitional.element") + : REACT_LEGACY_ELEMENT_TYPE, + REACT_PORTAL_TYPE = Symbol.for("react.portal"), + REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), + REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), + REACT_PROFILER_TYPE = Symbol.for("react.profiler"), + REACT_PROVIDER_TYPE = Symbol.for("react.provider"), + REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), + REACT_CONTEXT_TYPE = Symbol.for("react.context"), + REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), + REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), + REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), + REACT_MEMO_TYPE = Symbol.for("react.memo"), + REACT_LAZY_TYPE = Symbol.for("react.lazy"), + REACT_SCOPE_TYPE = Symbol.for("react.scope"), + REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), + REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), + REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), + MAYBE_ITERATOR_SYMBOL = Symbol.iterator; +function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; +} function resolveUpdatePriority() { var updatePriority = Internals.p; if (0 !== updatePriority) return updatePriority; @@ -1054,8 +806,8 @@ function setValueForAttribute(node, name, value) { node.removeAttribute(name); return; case "boolean": - var prefix$14 = name.toLowerCase().slice(0, 5); - if ("data-" !== prefix$14 && "aria-" !== prefix$14) { + var prefix$11 = name.toLowerCase().slice(0, 5); + if ("data-" !== prefix$11 && "aria-" !== prefix$11) { node.removeAttribute(name); return; } @@ -1098,6 +850,253 @@ function setValueForNamespacedAttribute(node, namespace, name, value) { ); } } +var prefix, suffix; +function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; +} +var reentry = !1; +function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + reentry = !0; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$12) { + control = x$12; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$13) { + control = x$13; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + namePropDescriptor = RunInRootFrame = 0; + RunInRootFrame < sampleLines.length && + !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); + + ) + RunInRootFrame++; + for ( + ; + namePropDescriptor < controlLines.length && + !controlLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + if ( + RunInRootFrame === sampleLines.length || + namePropDescriptor === controlLines.length + ) + for ( + RunInRootFrame = sampleLines.length - 1, + namePropDescriptor = controlLines.length - 1; + 1 <= RunInRootFrame && + 0 <= namePropDescriptor && + sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; + + ) + namePropDescriptor--; + for ( + ; + 1 <= RunInRootFrame && 0 <= namePropDescriptor; + RunInRootFrame--, namePropDescriptor-- + ) + if (sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]) { + if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { + do + if ( + (RunInRootFrame--, + namePropDescriptor--, + 0 > namePropDescriptor || + sampleLines[RunInRootFrame] !== + controlLines[namePropDescriptor]) + ) { + var frame = + "\n" + + sampleLines[RunInRootFrame].replace(" at new ", " at "); + fn.displayName && + frame.includes("") && + (frame = frame.replace("", fn.displayName)); + return frame; + } + while (1 <= RunInRootFrame && 0 <= namePropDescriptor); + } + break; + } + } + } finally { + (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); + } + return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(previousPrepareStackTrace) + : ""; +} +function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } +} +function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do + (info += describeFiber(workInProgress)), + (workInProgress = workInProgress.return); + while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } +} +var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); +function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; +} function getToStringValue(value) { switch (typeof value) { case "bigint": @@ -2068,8 +2067,6 @@ function ensureRootIsScheduled(root) { mightHavePendingSyncWork = !0; didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -2157,12 +2154,12 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$3 = 31 - clz32(pendingLanes), + lane = 1 << index$3, + expirationTime = expirationTimes[index$3]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$3] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -2222,7 +2219,7 @@ function scheduleTaskForRootDuringMicrotask(root, currentTime) { return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { - if (0 !== pendingEffectsStatus && 3 !== pendingEffectsStatus) + if (0 !== pendingEffectsStatus && 4 !== pendingEffectsStatus) return (root.callbackNode = null), (root.callbackPriority = 0), null; var originalCallbackNode = root.callbackNode; if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode) @@ -4439,16 +4436,16 @@ function createChildReconciler(shouldTrackSideEffects) { return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -5168,11 +5165,6 @@ function applyDerivedStateFromProps( (workInProgress.updateQueue.baseState = getDerivedStateFromProps); } var classComponentUpdater = { - isMounted: function (component) { - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), @@ -6533,7 +6525,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { children: nextProps.children })), (nextProps.subtreeFlags = - JSCompiler_temp$jscomp$0.subtreeFlags & 29360128), + JSCompiler_temp$jscomp$0.subtreeFlags & 65011712), null !== digest ? (showFallback = createWorkInProgress(digest, showFallback)) : ((showFallback = createFiberFromFragment( @@ -7598,8 +7590,8 @@ function bubbleProperties(completedWork) { if (didBailout) for (var child$126 = completedWork.child; null !== child$126; ) (newChildLanes |= child$126.lanes | child$126.childLanes), - (subtreeFlags |= child$126.subtreeFlags & 29360128), - (subtreeFlags |= child$126.flags & 29360128), + (subtreeFlags |= child$126.subtreeFlags & 65011712), + (subtreeFlags |= child$126.flags & 65011712), (child$126.return = completedWork), (child$126 = child$126.sibling); else @@ -8086,6 +8078,8 @@ function completeWork(current, workInProgress, renderLanes) { bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error(formatProdErrorMessage(156, workInProgress.tag)); } @@ -9797,6 +9791,7 @@ function commitMutationEffectsOnFiber(finishedWork, root) { ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -10245,6 +10240,7 @@ function commitPassiveMountOnFiber( break; case 22: nextCache = finishedWork.stateNode; + var current$176 = finishedWork.alternate; null !== finishedWork.memoizedState ? nextCache._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -10271,7 +10267,7 @@ function commitPassiveMountOnFiber( )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + current$176, finishedWork, nextCache ); @@ -10286,6 +10282,7 @@ function commitPassiveMountOnFiber( flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -10915,6 +10912,7 @@ var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map, workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -11038,11 +11036,11 @@ function scheduleUpdateOnFiber(root, fiber, lane) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$11 = 31 - clz32(lane), - transitions = transitionLanesMap[index$11]; + index$8 = 31 - clz32(lane), + transitions = transitionLanesMap[index$8]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$11] = transitions; + transitionLanesMap[index$8] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -11189,6 +11187,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -11209,6 +11208,7 @@ function performWorkOnRoot(root$jscomp$0, lanes, forceSync) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -11231,6 +11231,7 @@ function commitRootWhenReady( finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -11245,12 +11246,13 @@ function commitRootWhenReady( root.timeoutHandle = -1; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( ((suspendedState = { stylesheets: null, count: 0, unsuspend: noop }), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -11262,6 +11264,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11281,6 +11284,7 @@ function commitRootWhenReady( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11346,9 +11350,9 @@ function markRootSuspended( (root.warmLanes |= suspendedLanes); didAttemptEntireTree = root.expirationTimes; for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - didAttemptEntireTree[index$7] = -1; + var index$4 = 31 - clz32(lanes), + lane = 1 << index$4; + didAttemptEntireTree[index$4] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -11402,6 +11406,7 @@ function prepareFreshStack(root, lanes) { workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -11410,9 +11415,9 @@ function prepareFreshStack(root, lanes) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$2 = 31 - clz32(allEntangledLanes), + lane = 1 << index$2; + lanes |= root[index$2]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -11851,6 +11856,7 @@ function commitRoot( lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11892,24 +11898,30 @@ function commitRoot( return null; })) : ((root.callbackNode = null), (root.callbackPriority = 0)); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = Internals.p; + transitions = Internals.p; Internals.p = 2; - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= 4; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (Internals.p = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + (Internals.p = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = 1; flushMutationEffects(); + pendingEffectsStatus = 3; flushLayoutEffects(); } } @@ -12044,7 +12056,7 @@ function flushMutationEffects() { } } function flushLayoutEffects() { - if (2 === pendingEffectsStatus) { + if (3 === pendingEffectsStatus) { pendingEffectsStatus = 0; var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, @@ -12070,7 +12082,7 @@ function flushLayoutEffects() { requestPaint(); 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) - ? (pendingEffectsStatus = 3) + ? (pendingEffectsStatus = 4) : ((pendingEffectsStatus = 0), (pendingEffectsRoot = null), releaseRootPooledCache(root, root.pendingLanes)); @@ -12141,10 +12153,12 @@ function releaseRootPooledCache(root, remainingLanes) { function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + 2 === pendingEffectsStatus && + ((pendingEffectsStatus = 0), (pendingEffectsStatus = 3)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { - if (3 !== pendingEffectsStatus) return !1; + if (4 !== pendingEffectsStatus) return !1; var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; pendingEffectsRemainingLanes = 0; @@ -12414,7 +12428,7 @@ function createWorkInProgress(current, pendingProps) { (workInProgress.flags = 0), (workInProgress.subtreeFlags = 0), (workInProgress.deletions = null)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -12433,7 +12447,7 @@ function createWorkInProgress(current, pendingProps) { return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -12521,6 +12535,7 @@ function createFiberFromTypeAndProps( return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -13379,14 +13394,14 @@ var isInputEventSupported = !1; if (canUseDOM) { var JSCompiler_inline_result$jscomp$356; if (canUseDOM) { - var isSupported$jscomp$inline_1586 = "oninput" in document; - if (!isSupported$jscomp$inline_1586) { - var element$jscomp$inline_1587 = document.createElement("div"); - element$jscomp$inline_1587.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_1586 = - "function" === typeof element$jscomp$inline_1587.oninput; + var isSupported$jscomp$inline_1601 = "oninput" in document; + if (!isSupported$jscomp$inline_1601) { + var element$jscomp$inline_1602 = document.createElement("div"); + element$jscomp$inline_1602.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_1601 = + "function" === typeof element$jscomp$inline_1602.oninput; } - JSCompiler_inline_result$jscomp$356 = isSupported$jscomp$inline_1586; + JSCompiler_inline_result$jscomp$356 = isSupported$jscomp$inline_1601; } else JSCompiler_inline_result$jscomp$356 = !1; isInputEventSupported = JSCompiler_inline_result$jscomp$356 && @@ -13709,20 +13724,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1627 = 0; - i$jscomp$inline_1627 < simpleEventPluginEvents.length; - i$jscomp$inline_1627++ + var i$jscomp$inline_1642 = 0; + i$jscomp$inline_1642 < simpleEventPluginEvents.length; + i$jscomp$inline_1642++ ) { - var eventName$jscomp$inline_1628 = - simpleEventPluginEvents[i$jscomp$inline_1627], - domEventName$jscomp$inline_1629 = - eventName$jscomp$inline_1628.toLowerCase(), - capitalizedEvent$jscomp$inline_1630 = - eventName$jscomp$inline_1628[0].toUpperCase() + - eventName$jscomp$inline_1628.slice(1); + var eventName$jscomp$inline_1643 = + simpleEventPluginEvents[i$jscomp$inline_1642], + domEventName$jscomp$inline_1644 = + eventName$jscomp$inline_1643.toLowerCase(), + capitalizedEvent$jscomp$inline_1645 = + eventName$jscomp$inline_1643[0].toUpperCase() + + eventName$jscomp$inline_1643.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1629, - "on" + capitalizedEvent$jscomp$inline_1630 + domEventName$jscomp$inline_1644, + "on" + capitalizedEvent$jscomp$inline_1645 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -17354,16 +17369,16 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var isomorphicReactPackageVersion$jscomp$inline_1800 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1815 = React.version; if ( - "19.1.0-www-modern-defffdbb-20250106" !== - isomorphicReactPackageVersion$jscomp$inline_1800 + "19.1.0-www-modern-98418e89-20250108" !== + isomorphicReactPackageVersion$jscomp$inline_1815 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1800, - "19.1.0-www-modern-defffdbb-20250106" + isomorphicReactPackageVersion$jscomp$inline_1815, + "19.1.0-www-modern-98418e89-20250108" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17379,24 +17394,24 @@ Internals.Events = [ return fn(a); } ]; -var internals$jscomp$inline_2332 = { +var internals$jscomp$inline_2349 = { bundleType: 0, - version: "19.1.0-www-modern-defffdbb-20250106", + version: "19.1.0-www-modern-98418e89-20250108", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-modern-98418e89-20250108" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2333 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2350 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2333.isDisabled && - hook$jscomp$inline_2333.supportsFiber + !hook$jscomp$inline_2350.isDisabled && + hook$jscomp$inline_2350.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2333.inject( - internals$jscomp$inline_2332 + (rendererID = hook$jscomp$inline_2350.inject( + internals$jscomp$inline_2349 )), - (injectedHook = hook$jscomp$inline_2333); + (injectedHook = hook$jscomp$inline_2350); } catch (err) {} } function ReactDOMRoot(internalRoot) { @@ -17899,4 +17914,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-defffdbb-20250106"; +exports.version = "19.1.0-www-modern-98418e89-20250108"; diff --git a/compiled/facebook-www/ReactIs-dev.classic.js b/compiled/facebook-www/ReactIs-dev.classic.js index ccf9e1ed47da5..36dc434e88722 100644 --- a/compiled/facebook-www/ReactIs-dev.classic.js +++ b/compiled/facebook-www/ReactIs-dev.classic.js @@ -24,6 +24,7 @@ __DEV__ && case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: case REACT_SUSPENSE_LIST_TYPE: + case REACT_VIEW_TRANSITION_TYPE: return object; default: switch (((object = object && object.$$typeof), object)) { @@ -69,6 +70,7 @@ __DEV__ && REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); exports.ContextConsumer = enableRenderableContext ? REACT_CONSUMER_TYPE diff --git a/compiled/facebook-www/ReactIs-dev.modern.js b/compiled/facebook-www/ReactIs-dev.modern.js index ccf9e1ed47da5..36dc434e88722 100644 --- a/compiled/facebook-www/ReactIs-dev.modern.js +++ b/compiled/facebook-www/ReactIs-dev.modern.js @@ -24,6 +24,7 @@ __DEV__ && case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: case REACT_SUSPENSE_LIST_TYPE: + case REACT_VIEW_TRANSITION_TYPE: return object; default: switch (((object = object && object.$$typeof), object)) { @@ -69,6 +70,7 @@ __DEV__ && REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); exports.ContextConsumer = enableRenderableContext ? REACT_CONSUMER_TYPE diff --git a/compiled/facebook-www/ReactIs-prod.classic.js b/compiled/facebook-www/ReactIs-prod.classic.js index 97b2aba5cd3bd..4e458326f871d 100644 --- a/compiled/facebook-www/ReactIs-prod.classic.js +++ b/compiled/facebook-www/ReactIs-prod.classic.js @@ -35,6 +35,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); function typeOf(object) { if ("object" === typeof object && null !== object) { @@ -47,6 +48,7 @@ function typeOf(object) { case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: case REACT_SUSPENSE_LIST_TYPE: + case REACT_VIEW_TRANSITION_TYPE: return object; default: switch (((object = object && object.$$typeof), object)) { diff --git a/compiled/facebook-www/ReactIs-prod.modern.js b/compiled/facebook-www/ReactIs-prod.modern.js index 97b2aba5cd3bd..4e458326f871d 100644 --- a/compiled/facebook-www/ReactIs-prod.modern.js +++ b/compiled/facebook-www/ReactIs-prod.modern.js @@ -35,6 +35,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); function typeOf(object) { if ("object" === typeof object && null !== object) { @@ -47,6 +48,7 @@ function typeOf(object) { case REACT_STRICT_MODE_TYPE: case REACT_SUSPENSE_TYPE: case REACT_SUSPENSE_LIST_TYPE: + case REACT_VIEW_TRANSITION_TYPE: return object; default: switch (((object = object && object.$$typeof), object)) { diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index d0de6f2e29796..0d3a84437970a 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -148,522 +148,6 @@ __DEV__ && args.unshift(!1); warningWWW.apply(null, args); } - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) - return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; - } - if ("object" === typeof type) - switch ( - ("number" === typeof type.tag && - error$jscomp$0( - "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." - ), - type.$$typeof) - ) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; - } - function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; - case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return ( - (fiber = type.render), - (fiber = fiber.displayName || fiber.name || ""), - type.displayName || - ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") - ); - case 7: - return "Fragment"; - case 26: - case 27: - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 14: - case 15: - if ("function" === typeof type) - return type.displayName || type.name || null; - if ("string" === typeof type) return type; - break; - case 23: - return "LegacyHidden"; - case 29: - type = fiber._debugInfo; - if (null != type) - for (var i = type.length - 1; 0 <= i; i--) - if ("string" === typeof type[i].name) return type[i].name; - if (null !== fiber.return) - return getComponentNameFromFiber(fiber.return); - } - return null; - } - function disabledLog() {} - function disableLogs() { - if (0 === disabledDepth) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: !0, - enumerable: !0, - value: disabledLog, - writable: !0 - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; - } - function reenableLogs() { - disabledDepth--; - if (0 === disabledDepth) { - var props = { configurable: !0, enumerable: !0, writable: !0 }; - Object.defineProperties(console, { - log: assign({}, props, { value: prevLog }), - info: assign({}, props, { value: prevInfo }), - warn: assign({}, props, { value: prevWarn }), - error: assign({}, props, { value: prevError }), - group: assign({}, props, { value: prevGroup }), - groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), - groupEnd: assign({}, props, { value: prevGroupEnd }) - }); - } - 0 > disabledDepth && - error$jscomp$0( - "disabledDepth fell below zero. This is a bug in React. Please file an issue." - ); - } - function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - var frame = componentFrameCache.get(fn); - if (void 0 !== frame) return frame; - reentry = !0; - frame = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher = null; - previousDispatcher = ReactSharedInternals.H; - ReactSharedInternals.H = null; - disableLogs(); - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$0) { - control = x$0; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$1) { - control = x$1; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = - RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - _RunInRootFrame$Deter = namePropDescriptor = 0; - namePropDescriptor < sampleLines.length && - !sampleLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - for ( - ; - _RunInRootFrame$Deter < controlLines.length && - !controlLines[_RunInRootFrame$Deter].includes( - "DetermineComponentFrameRoot" - ); - - ) - _RunInRootFrame$Deter++; - if ( - namePropDescriptor === sampleLines.length || - _RunInRootFrame$Deter === controlLines.length - ) - for ( - namePropDescriptor = sampleLines.length - 1, - _RunInRootFrame$Deter = controlLines.length - 1; - 1 <= namePropDescriptor && - 0 <= _RunInRootFrame$Deter && - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]; - - ) - _RunInRootFrame$Deter--; - for ( - ; - 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; - namePropDescriptor--, _RunInRootFrame$Deter-- - ) - if ( - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter] - ) { - if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { - do - if ( - (namePropDescriptor--, - _RunInRootFrame$Deter--, - 0 > _RunInRootFrame$Deter || - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]) - ) { - var _frame = - "\n" + - sampleLines[namePropDescriptor].replace( - " at new ", - " at " - ); - fn.displayName && - _frame.includes("") && - (_frame = _frame.replace("", fn.displayName)); - "function" === typeof fn && - componentFrameCache.set(fn, _frame); - return _frame; - } - while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); - } - break; - } - } - } finally { - (reentry = !1), - (ReactSharedInternals.H = previousDispatcher), - reenableLogs(), - (Error.prepareStackTrace = frame); - } - sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(sampleLines) - : ""; - "function" === typeof fn && componentFrameCache.set(fn, sampleLines); - return sampleLines; - } - function formatOwnerStack(error) { - var prevPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - error = error.stack; - Error.prepareStackTrace = prevPrepareStackTrace; - error.startsWith("Error: react-stack-top-frame\n") && - (error = error.slice(29)); - prevPrepareStackTrace = error.indexOf("\n"); - -1 !== prevPrepareStackTrace && - (error = error.slice(prevPrepareStackTrace + 1)); - prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); - -1 !== prevPrepareStackTrace && - (prevPrepareStackTrace = error.lastIndexOf( - "\n", - prevPrepareStackTrace - )); - if (-1 !== prevPrepareStackTrace) - error = error.slice(0, prevPrepareStackTrace); - else return ""; - return error; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do { - info += describeFiber(workInProgress); - var debugInfo = workInProgress._debugInfo; - if (debugInfo) - for (var i = debugInfo.length - 1; 0 <= i; i--) { - var entry = debugInfo[i]; - if ("string" === typeof entry.name) { - var JSCompiler_temp_const = info, - env = entry.env; - var JSCompiler_inline_result = describeBuiltInComponentFrame( - entry.name + (env ? " [" + env + "]" : "") - ); - info = JSCompiler_temp_const + JSCompiler_inline_result; - } - } - workInProgress = workInProgress.return; - } while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function describeFunctionComponentFrameWithoutLineNumber(fn) { - return (fn = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(fn) - : ""; - } - function getOwnerStackByFiberInDev(workInProgress) { - if (!enableOwnerStacks) return ""; - try { - var info = ""; - 6 === workInProgress.tag && (workInProgress = workInProgress.return); - switch (workInProgress.tag) { - case 26: - case 27: - case 5: - info += describeBuiltInComponentFrame(workInProgress.type); - break; - case 13: - info += describeBuiltInComponentFrame("Suspense"); - break; - case 19: - info += describeBuiltInComponentFrame("SuspenseList"); - break; - case 0: - case 15: - case 1: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type - )); - break; - case 11: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type.render - )); - } - for (; workInProgress; ) - if ("number" === typeof workInProgress.tag) { - var fiber = workInProgress; - workInProgress = fiber._debugOwner; - var debugStack = fiber._debugStack; - workInProgress && - debugStack && - ("string" !== typeof debugStack && - (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), - "" !== debugStack && (info += "\n" + debugStack)); - } else if (null != workInProgress.debugStack) { - var ownerStack = workInProgress.debugStack; - (workInProgress = workInProgress.owner) && - ownerStack && - (info += "\n" + formatOwnerStack(ownerStack)); - } else break; - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function getCurrentFiberStackInDev() { - return null === current - ? "" - : enableOwnerStacks - ? getOwnerStackByFiberInDev(current) - : getStackByFiberInDevAndProd(current); - } - function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { - var previousFiber = current; - ReactSharedInternals.getCurrentStack = - null === fiber ? null : getCurrentFiberStackInDev; - isRendering = !1; - current = fiber; - try { - return enableOwnerStacks && null !== fiber && fiber._debugTask - ? fiber._debugTask.run( - callback.bind(null, arg0, arg1, arg2, arg3, arg4) - ) - : callback(arg0, arg1, arg2, arg3, arg4); - } finally { - current = previousFiber; - } - throw Error( - "runWithFiberInDEV should never be called in production. This is a bug in React." - ); - } function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; @@ -803,7 +287,151 @@ __DEV__ && return !0; childFiber = childFiber.return; } - return !1; + return !1; + } + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) + return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch ( + ("number" === typeof type.tag && + error$jscomp$0( + "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." + ), + type.$$typeof) + ) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return enableRenderableContext + ? (type._context.displayName || "Context") + ".Consumer" + : (type.displayName || "Context") + ".Consumer"; + case 10: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") + ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; + break; + case 23: + return "LegacyHidden"; + case 29: + type = fiber._debugInfo; + if (null != type) + for (var i = type.length - 1; 0 <= i; i--) + if ("string" === typeof type[i].name) return type[i].name; + if (null !== fiber.return) + return getComponentNameFromFiber(fiber.return); + } + return null; } function createCursor(defaultValue) { return { current: defaultValue }; @@ -1355,49 +983,396 @@ __DEV__ && )); } } - function injectProfilingHooks(profilingHooks) { - injectedProfilingHooks = profilingHooks; - } - function markCommitStopped() { - enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markCommitStopped && - injectedProfilingHooks.markCommitStopped(); - } - function markComponentRenderStarted(fiber) { - enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markComponentRenderStarted && - injectedProfilingHooks.markComponentRenderStarted(fiber); - } - function markComponentRenderStopped() { - enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markComponentRenderStopped && - injectedProfilingHooks.markComponentRenderStopped(); + function injectProfilingHooks(profilingHooks) { + injectedProfilingHooks = profilingHooks; + } + function markCommitStopped() { + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markCommitStopped && + injectedProfilingHooks.markCommitStopped(); + } + function markComponentRenderStarted(fiber) { + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markComponentRenderStarted && + injectedProfilingHooks.markComponentRenderStarted(fiber); + } + function markComponentRenderStopped() { + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markComponentRenderStopped && + injectedProfilingHooks.markComponentRenderStopped(); + } + function markRenderStarted(lanes) { + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markRenderStarted && + injectedProfilingHooks.markRenderStarted(lanes); + } + function markRenderStopped() { + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markRenderStopped && + injectedProfilingHooks.markRenderStopped(); + } + function markStateUpdateScheduled(fiber, lane) { + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markStateUpdateScheduled && + injectedProfilingHooks.markStateUpdateScheduled(fiber, lane); + } + function is(x, y) { + return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); + } + function disabledLog() {} + function disableLogs() { + if (0 === disabledDepth) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: !0, + enumerable: !0, + value: disabledLog, + writable: !0 + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + function reenableLogs() { + disabledDepth--; + if (0 === disabledDepth) { + var props = { configurable: !0, enumerable: !0, writable: !0 }; + Object.defineProperties(console, { + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) + }); + } + 0 > disabledDepth && + error$jscomp$0( + "disabledDepth fell below zero. This is a bug in React. Please file an issue." + ); + } + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + var frame = componentFrameCache.get(fn); + if (void 0 !== frame) return frame; + reentry = !0; + frame = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher = null; + previousDispatcher = ReactSharedInternals.H; + ReactSharedInternals.H = null; + disableLogs(); + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$0) { + control = x$0; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$1) { + control = x$1; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = + RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + _RunInRootFrame$Deter = namePropDescriptor = 0; + namePropDescriptor < sampleLines.length && + !sampleLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + for ( + ; + _RunInRootFrame$Deter < controlLines.length && + !controlLines[_RunInRootFrame$Deter].includes( + "DetermineComponentFrameRoot" + ); + + ) + _RunInRootFrame$Deter++; + if ( + namePropDescriptor === sampleLines.length || + _RunInRootFrame$Deter === controlLines.length + ) + for ( + namePropDescriptor = sampleLines.length - 1, + _RunInRootFrame$Deter = controlLines.length - 1; + 1 <= namePropDescriptor && + 0 <= _RunInRootFrame$Deter && + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]; + + ) + _RunInRootFrame$Deter--; + for ( + ; + 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; + namePropDescriptor--, _RunInRootFrame$Deter-- + ) + if ( + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter] + ) { + if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { + do + if ( + (namePropDescriptor--, + _RunInRootFrame$Deter--, + 0 > _RunInRootFrame$Deter || + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]) + ) { + var _frame = + "\n" + + sampleLines[namePropDescriptor].replace( + " at new ", + " at " + ); + fn.displayName && + _frame.includes("") && + (_frame = _frame.replace("", fn.displayName)); + "function" === typeof fn && + componentFrameCache.set(fn, _frame); + return _frame; + } + while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); + } + break; + } + } + } finally { + (reentry = !1), + (ReactSharedInternals.H = previousDispatcher), + reenableLogs(), + (Error.prepareStackTrace = frame); + } + sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(sampleLines) + : ""; + "function" === typeof fn && componentFrameCache.set(fn, sampleLines); + return sampleLines; + } + function formatOwnerStack(error) { + var prevPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + error = error.stack; + Error.prepareStackTrace = prevPrepareStackTrace; + error.startsWith("Error: react-stack-top-frame\n") && + (error = error.slice(29)); + prevPrepareStackTrace = error.indexOf("\n"); + -1 !== prevPrepareStackTrace && + (error = error.slice(prevPrepareStackTrace + 1)); + prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); + -1 !== prevPrepareStackTrace && + (prevPrepareStackTrace = error.lastIndexOf( + "\n", + prevPrepareStackTrace + )); + if (-1 !== prevPrepareStackTrace) + error = error.slice(0, prevPrepareStackTrace); + else return ""; + return error; } - function markRenderStarted(lanes) { - enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markRenderStarted && - injectedProfilingHooks.markRenderStarted(lanes); + function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } } - function markRenderStopped() { - enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markRenderStopped && - injectedProfilingHooks.markRenderStopped(); + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do { + info += describeFiber(workInProgress); + var debugInfo = workInProgress._debugInfo; + if (debugInfo) + for (var i = debugInfo.length - 1; 0 <= i; i--) { + var entry = debugInfo[i]; + if ("string" === typeof entry.name) { + var JSCompiler_temp_const = info, + env = entry.env; + var JSCompiler_inline_result = describeBuiltInComponentFrame( + entry.name + (env ? " [" + env + "]" : "") + ); + info = JSCompiler_temp_const + JSCompiler_inline_result; + } + } + workInProgress = workInProgress.return; + } while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } - function markStateUpdateScheduled(fiber, lane) { - enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markStateUpdateScheduled && - injectedProfilingHooks.markStateUpdateScheduled(fiber, lane); + function describeFunctionComponentFrameWithoutLineNumber(fn) { + return (fn = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(fn) + : ""; } - function is(x, y) { - return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); + function getOwnerStackByFiberInDev(workInProgress) { + if (!enableOwnerStacks) return ""; + try { + var info = ""; + 6 === workInProgress.tag && (workInProgress = workInProgress.return); + switch (workInProgress.tag) { + case 26: + case 27: + case 5: + info += describeBuiltInComponentFrame(workInProgress.type); + break; + case 13: + info += describeBuiltInComponentFrame("Suspense"); + break; + case 19: + info += describeBuiltInComponentFrame("SuspenseList"); + break; + case 0: + case 15: + case 1: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type + )); + break; + case 11: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type.render + )); + } + for (; workInProgress; ) + if ("number" === typeof workInProgress.tag) { + var fiber = workInProgress; + workInProgress = fiber._debugOwner; + var debugStack = fiber._debugStack; + workInProgress && + debugStack && + ("string" !== typeof debugStack && + (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), + "" !== debugStack && (info += "\n" + debugStack)); + } else if (null != workInProgress.debugStack) { + var ownerStack = workInProgress.debugStack; + (workInProgress = workInProgress.owner) && + ownerStack && + (info += "\n" + formatOwnerStack(ownerStack)); + } else break; + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } function createCapturedValueAtFiber(value, source) { if ("object" === typeof value && null !== value) { @@ -2468,8 +2443,6 @@ __DEV__ && ((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask()) : didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now$1()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -2819,6 +2792,32 @@ __DEV__ && } return !0; } + function getCurrentFiberStackInDev() { + return null === current + ? "" + : enableOwnerStacks + ? getOwnerStackByFiberInDev(current) + : getStackByFiberInDevAndProd(current); + } + function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { + var previousFiber = current; + ReactSharedInternals.getCurrentStack = + null === fiber ? null : getCurrentFiberStackInDev; + isRendering = !1; + current = fiber; + try { + return enableOwnerStacks && null !== fiber && fiber._debugTask + ? fiber._debugTask.run( + callback.bind(null, arg0, arg1, arg2, arg3, arg4) + ) + : callback(arg0, arg1, arg2, arg3, arg4); + } finally { + current = previousFiber; + } + throw Error( + "runWithFiberInDEV should never be called in production. This is a bug in React." + ); + } function createThenableState() { return { didWarnAboutUncachedPromise: !1, thenables: [] }; } @@ -3491,7 +3490,7 @@ __DEV__ && null; hookTypesUpdateIndexDev = -1; null !== current && - (current.flags & 29360128) !== (workInProgress.flags & 29360128) && + (current.flags & 65011712) !== (workInProgress.flags & 65011712) && error$jscomp$0( "Internal React error: Expected static flag was missing. Please notify the React team." ); @@ -3569,7 +3568,7 @@ __DEV__ && workInProgress.updateQueue = current.updateQueue; workInProgress.flags = (workInProgress.mode & 16) !== NoMode - ? workInProgress.flags & -201328645 + ? workInProgress.flags & -402655237 : workInProgress.flags & -2053; current.lanes &= ~lanes; } @@ -4448,7 +4447,7 @@ __DEV__ && function mountEffect(create, deps) { (currentlyRenderingFiber.mode & 16) !== NoMode && (currentlyRenderingFiber.mode & 64) === NoMode - ? mountEffectImpl(142608384, Passive, create, deps) + ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps); } function mountResourceEffect( @@ -4464,7 +4463,7 @@ __DEV__ && ) { var hookFlags = Passive, hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= 142608384; + currentlyRenderingFiber.flags |= 276826112; var inst = createEffectInstance(); inst.destroy = destroy; hook.memoizedState = pushResourceEffect( @@ -4586,7 +4585,7 @@ __DEV__ && function mountLayoutEffect(create, deps) { var fiberFlags = 4194308; (currentlyRenderingFiber.mode & 16) !== NoMode && - (fiberFlags |= 67108864); + (fiberFlags |= 134217728); return mountEffectImpl(fiberFlags, Layout, create, deps); } function imperativeHandleEffect(create, ref) { @@ -4620,7 +4619,7 @@ __DEV__ && deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; var fiberFlags = 4194308; (currentlyRenderingFiber.mode & 16) !== NoMode && - (fiberFlags |= 67108864); + (fiberFlags |= 134217728); mountEffectImpl( fiberFlags, Layout, @@ -5198,16 +5197,16 @@ __DEV__ && return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -7479,7 +7478,7 @@ __DEV__ && "function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308); (workInProgress.mode & 16) !== NoMode && - (workInProgress.flags |= 67108864); + (workInProgress.flags |= 134217728); state = !0; } else if (null === current$jscomp$0) (state = workInProgress.stateNode), @@ -7553,11 +7552,11 @@ __DEV__ && "function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & 16) !== NoMode && - (workInProgress.flags |= 67108864)) + (workInProgress.flags |= 134217728)) : ("function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & 16) !== NoMode && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (workInProgress.memoizedProps = nextProps), (workInProgress.memoizedState = state$jscomp$0)), (state.props = nextProps), @@ -7567,7 +7566,7 @@ __DEV__ && : ("function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & 16) !== NoMode && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (state = !1)); else { state = workInProgress.stateNode; @@ -8114,7 +8113,7 @@ __DEV__ && children: nextProps.children }); nextProps.subtreeFlags = - JSCompiler_temp$jscomp$0.subtreeFlags & 29360128; + JSCompiler_temp$jscomp$0.subtreeFlags & 65011712; null !== didSuspend ? (showFallback = createWorkInProgress(didSuspend, showFallback)) : ((showFallback = createFiberFromFragment( @@ -9802,8 +9801,8 @@ __DEV__ && ) (newChildLanes |= _child2.lanes | _child2.childLanes), - (subtreeFlags |= _child2.subtreeFlags & 29360128), - (subtreeFlags |= _child2.flags & 29360128), + (subtreeFlags |= _child2.subtreeFlags & 65011712), + (subtreeFlags |= _child2.flags & 65011712), (_treeBaseDuration += _child2.treeBaseDuration), (_child2 = _child2.sibling); completedWork.treeBaseDuration = _treeBaseDuration; @@ -9815,8 +9814,8 @@ __DEV__ && ) (newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes), - (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128), - (subtreeFlags |= _treeBaseDuration.flags & 29360128), + (subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712), + (subtreeFlags |= _treeBaseDuration.flags & 65011712), (_treeBaseDuration.return = completedWork), (_treeBaseDuration = _treeBaseDuration.sibling); else if ((completedWork.mode & 2) !== NoMode) { @@ -10400,6 +10399,8 @@ __DEV__ && bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error( "Unknown unit of work tag (" + @@ -12576,6 +12577,7 @@ __DEV__ && ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -13009,7 +13011,7 @@ __DEV__ && break; case 12: flags & 2048 - ? ((prevEffectDuration = pushNestedEffectDurations()), + ? ((flags = pushNestedEffectDurations()), recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, @@ -13018,7 +13020,7 @@ __DEV__ && ), (finishedRoot = finishedWork.stateNode), (finishedRoot.passiveEffectDuration += - bubbleNestedEffectDurations(prevEffectDuration)), + bubbleNestedEffectDurations(flags)), commitProfilerPostCommit( finishedWork, finishedWork.alternate, @@ -13056,6 +13058,7 @@ __DEV__ && break; case 22: prevEffectDuration = finishedWork.stateNode; + nextCache = finishedWork.alternate; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -13085,7 +13088,7 @@ __DEV__ && )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + nextCache, finishedWork, prevEffectDuration ); @@ -13100,6 +13103,7 @@ __DEV__ && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -14016,6 +14020,7 @@ __DEV__ && lanes, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, @@ -14045,6 +14050,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -14065,6 +14071,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -14088,6 +14095,7 @@ __DEV__ && finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -14102,12 +14110,14 @@ __DEV__ && root.timeoutHandle = noTimeout; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( (startSuspendingCommit(), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && + accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -14119,6 +14129,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -14143,6 +14154,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -14267,6 +14279,7 @@ __DEV__ && workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -14887,6 +14900,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -14946,24 +14960,30 @@ __DEV__ && })) : ((root.callbackNode = null), (root.callbackPriority = 0)); commitStartTime = now(); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = getCurrentUpdatePriority(); + transitions = getCurrentUpdatePriority(); setCurrentUpdatePriority(2); - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= CommitContext; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - setCurrentUpdatePriority(recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + setCurrentUpdatePriority(transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = PENDING_MUTATION_PHASE; flushMutationEffects(); + pendingEffectsStatus = PENDING_LAYOUT_PHASE; flushLayoutEffects(); } } @@ -14998,7 +15018,7 @@ __DEV__ && } } root.current = finishedWork; - pendingEffectsStatus = PENDING_LAYOUT_PHASE; + pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; } } function flushLayoutEffects() { @@ -15134,6 +15154,9 @@ __DEV__ && function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE && + ((pendingEffectsStatus = NO_PENDING_EFFECTS), + (pendingEffectsStatus = PENDING_LAYOUT_PHASE)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { @@ -15395,14 +15418,14 @@ __DEV__ && parentFiber, isInStrictMode ) { - if (0 !== (parentFiber.subtreeFlags & 33562624)) + if (0 !== (parentFiber.subtreeFlags & 67117056)) for (parentFiber = parentFiber.child; null !== parentFiber; ) { var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; isStrictModeFiber = isInStrictMode || isStrictModeFiber; 22 !== fiber.tag - ? fiber.flags & 33554432 + ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV( fiber, @@ -15424,7 +15447,7 @@ __DEV__ && root, fiber ) - : fiber.subtreeFlags & 33554432 && + : fiber.subtreeFlags & 67108864 && runWithFiberInDEV( fiber, recursivelyTraverseAndDoubleInvokeEffectsInDEV, @@ -15732,7 +15755,7 @@ __DEV__ && (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -15770,7 +15793,7 @@ __DEV__ && return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -15885,6 +15908,7 @@ __DEV__ && return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -16173,13 +16197,6 @@ __DEV__ && if (!parentComponent) return emptyContextObject; parentComponent = parentComponent._reactInternals; a: { - if ( - getNearestMountedFiber(parentComponent) !== parentComponent || - 1 !== parentComponent.tag - ) - throw Error( - "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." - ); var parentContext = parentComponent; do { switch (parentContext.tag) { @@ -16317,8 +16334,6 @@ __DEV__ && dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -16363,28 +16378,12 @@ __DEV__ && REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - disabledDepth = 0, - prevLog, - prevInfo, - prevWarn, - prevError, - prevGroup, - prevGroupCollapsed, - prevGroupEnd; - disabledLog.__reactDisabledLog = !0; - var prefix, - suffix, - reentry = !1; - var componentFrameCache = new ( - "function" === typeof WeakMap ? WeakMap : Map - )(); - var current = null, - isRendering = !1, - isArrayImpl = Array.isArray, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, @@ -16424,8 +16423,9 @@ __DEV__ && maySuspendCommit = $$$config.maySuspendCommit, preloadInstance = $$$config.preloadInstance, startSuspendingCommit = $$$config.startSuspendingCommit, - suspendInstance = $$$config.suspendInstance, - waitForCommitToBeReady = $$$config.waitForCommitToBeReady, + suspendInstance = $$$config.suspendInstance; + $$$config.suspendOnActiveViewTransition; + var waitForCommitToBeReady = $$$config.waitForCommitToBeReady, NotPendingTransition = $$$config.NotPendingTransition, HostTransitionContext = $$$config.HostTransitionContext, resetFormInstance = $$$config.resetFormInstance, @@ -16453,8 +16453,14 @@ __DEV__ && hideInstance = $$$config.hideInstance, hideTextInstance = $$$config.hideTextInstance, unhideInstance = $$$config.unhideInstance, - unhideTextInstance = $$$config.unhideTextInstance, - clearContainer = $$$config.clearContainer, + unhideTextInstance = $$$config.unhideTextInstance; + $$$config.cancelViewTransitionName; + $$$config.cancelRootViewTransitionName; + $$$config.restoreRootViewTransitionName; + $$$config.hasInstanceChanged; + $$$config.hasInstanceAffectedParent; + $$$config.startViewTransition; + var clearContainer = $$$config.clearContainer, cloneInstance = $$$config.cloneInstance, createContainerChildSet = $$$config.createContainerChildSet, appendChildToContainerChildSet = $$$config.appendChildToContainerChildSet, @@ -16548,7 +16554,22 @@ __DEV__ && hasLoggedError = !1, isDevToolsPresent = "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__, objectIs = "function" === typeof Object.is ? Object.is : is, - CapturedStacks = new WeakMap(), + disabledDepth = 0, + prevLog, + prevInfo, + prevWarn, + prevError, + prevGroup, + prevGroupCollapsed, + prevGroupEnd; + disabledLog.__reactDisabledLog = !0; + var prefix, + suffix, + reentry = !1; + var componentFrameCache = new ( + "function" === typeof WeakMap ? WeakMap : Map + )(); + var CapturedStacks = new WeakMap(), forkStack = [], forkStackIndex = 0, treeForkProvider = null, @@ -16641,6 +16662,8 @@ __DEV__ && var resumedCache = createCursor(null), transitionStack = createCursor(null), hasOwnProperty = Object.prototype.hasOwnProperty, + current = null, + isRendering = !1, ReactStrictModeWarnings = { recordUnsafeLifecycleWarnings: function () {}, flushPendingUnsafeLifecycleWarnings: function () {}, @@ -18309,21 +18332,6 @@ __DEV__ && var didWarnOnInvalidCallback = new Set(); Object.freeze(fakeInternalInstance); var classComponentUpdater = { - isMounted: function (component) { - var owner = current; - if (null !== owner && isRendering && 1 === owner.tag) { - var instance = owner.stateNode; - instance._warnedAboutRefsInRender || - error$jscomp$0( - "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", - getComponentNameFromFiber(owner) || "A component" - ); - instance._warnedAboutRefsInRender = !0; - } - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(inst), @@ -18511,6 +18519,7 @@ __DEV__ && workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -18526,8 +18535,9 @@ __DEV__ && THROTTLED_COMMIT = 2, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, - PENDING_LAYOUT_PHASE = 2, - PENDING_PASSIVE_PHASE = 3, + PENDING_AFTER_MUTATION_PHASE = 2, + PENDING_LAYOUT_PHASE = 3, + PENDING_PASSIVE_PHASE = 4, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, @@ -19106,7 +19116,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-classic-98418e89-20250108" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index b9c7425ef8259..3a562f30e85fa 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -148,522 +148,6 @@ __DEV__ && args.unshift(!1); warningWWW.apply(null, args); } - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) - return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; - } - if ("object" === typeof type) - switch ( - ("number" === typeof type.tag && - error$jscomp$0( - "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." - ), - type.$$typeof) - ) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; - } - function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; - case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return ( - (fiber = type.render), - (fiber = fiber.displayName || fiber.name || ""), - type.displayName || - ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") - ); - case 7: - return "Fragment"; - case 26: - case 27: - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 14: - case 15: - if ("function" === typeof type) - return type.displayName || type.name || null; - if ("string" === typeof type) return type; - break; - case 23: - return "LegacyHidden"; - case 29: - type = fiber._debugInfo; - if (null != type) - for (var i = type.length - 1; 0 <= i; i--) - if ("string" === typeof type[i].name) return type[i].name; - if (null !== fiber.return) - return getComponentNameFromFiber(fiber.return); - } - return null; - } - function disabledLog() {} - function disableLogs() { - if (0 === disabledDepth) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: !0, - enumerable: !0, - value: disabledLog, - writable: !0 - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; - } - function reenableLogs() { - disabledDepth--; - if (0 === disabledDepth) { - var props = { configurable: !0, enumerable: !0, writable: !0 }; - Object.defineProperties(console, { - log: assign({}, props, { value: prevLog }), - info: assign({}, props, { value: prevInfo }), - warn: assign({}, props, { value: prevWarn }), - error: assign({}, props, { value: prevError }), - group: assign({}, props, { value: prevGroup }), - groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), - groupEnd: assign({}, props, { value: prevGroupEnd }) - }); - } - 0 > disabledDepth && - error$jscomp$0( - "disabledDepth fell below zero. This is a bug in React. Please file an issue." - ); - } - function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - var frame = componentFrameCache.get(fn); - if (void 0 !== frame) return frame; - reentry = !0; - frame = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher = null; - previousDispatcher = ReactSharedInternals.H; - ReactSharedInternals.H = null; - disableLogs(); - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$0) { - control = x$0; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$1) { - control = x$1; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = - RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - _RunInRootFrame$Deter = namePropDescriptor = 0; - namePropDescriptor < sampleLines.length && - !sampleLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - for ( - ; - _RunInRootFrame$Deter < controlLines.length && - !controlLines[_RunInRootFrame$Deter].includes( - "DetermineComponentFrameRoot" - ); - - ) - _RunInRootFrame$Deter++; - if ( - namePropDescriptor === sampleLines.length || - _RunInRootFrame$Deter === controlLines.length - ) - for ( - namePropDescriptor = sampleLines.length - 1, - _RunInRootFrame$Deter = controlLines.length - 1; - 1 <= namePropDescriptor && - 0 <= _RunInRootFrame$Deter && - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]; - - ) - _RunInRootFrame$Deter--; - for ( - ; - 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; - namePropDescriptor--, _RunInRootFrame$Deter-- - ) - if ( - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter] - ) { - if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { - do - if ( - (namePropDescriptor--, - _RunInRootFrame$Deter--, - 0 > _RunInRootFrame$Deter || - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]) - ) { - var _frame = - "\n" + - sampleLines[namePropDescriptor].replace( - " at new ", - " at " - ); - fn.displayName && - _frame.includes("") && - (_frame = _frame.replace("", fn.displayName)); - "function" === typeof fn && - componentFrameCache.set(fn, _frame); - return _frame; - } - while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); - } - break; - } - } - } finally { - (reentry = !1), - (ReactSharedInternals.H = previousDispatcher), - reenableLogs(), - (Error.prepareStackTrace = frame); - } - sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(sampleLines) - : ""; - "function" === typeof fn && componentFrameCache.set(fn, sampleLines); - return sampleLines; - } - function formatOwnerStack(error) { - var prevPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - error = error.stack; - Error.prepareStackTrace = prevPrepareStackTrace; - error.startsWith("Error: react-stack-top-frame\n") && - (error = error.slice(29)); - prevPrepareStackTrace = error.indexOf("\n"); - -1 !== prevPrepareStackTrace && - (error = error.slice(prevPrepareStackTrace + 1)); - prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); - -1 !== prevPrepareStackTrace && - (prevPrepareStackTrace = error.lastIndexOf( - "\n", - prevPrepareStackTrace - )); - if (-1 !== prevPrepareStackTrace) - error = error.slice(0, prevPrepareStackTrace); - else return ""; - return error; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do { - info += describeFiber(workInProgress); - var debugInfo = workInProgress._debugInfo; - if (debugInfo) - for (var i = debugInfo.length - 1; 0 <= i; i--) { - var entry = debugInfo[i]; - if ("string" === typeof entry.name) { - var JSCompiler_temp_const = info, - env = entry.env; - var JSCompiler_inline_result = describeBuiltInComponentFrame( - entry.name + (env ? " [" + env + "]" : "") - ); - info = JSCompiler_temp_const + JSCompiler_inline_result; - } - } - workInProgress = workInProgress.return; - } while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function describeFunctionComponentFrameWithoutLineNumber(fn) { - return (fn = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(fn) - : ""; - } - function getOwnerStackByFiberInDev(workInProgress) { - if (!enableOwnerStacks) return ""; - try { - var info = ""; - 6 === workInProgress.tag && (workInProgress = workInProgress.return); - switch (workInProgress.tag) { - case 26: - case 27: - case 5: - info += describeBuiltInComponentFrame(workInProgress.type); - break; - case 13: - info += describeBuiltInComponentFrame("Suspense"); - break; - case 19: - info += describeBuiltInComponentFrame("SuspenseList"); - break; - case 0: - case 15: - case 1: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type - )); - break; - case 11: - workInProgress._debugOwner || - "" !== info || - (info += describeFunctionComponentFrameWithoutLineNumber( - workInProgress.type.render - )); - } - for (; workInProgress; ) - if ("number" === typeof workInProgress.tag) { - var fiber = workInProgress; - workInProgress = fiber._debugOwner; - var debugStack = fiber._debugStack; - workInProgress && - debugStack && - ("string" !== typeof debugStack && - (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), - "" !== debugStack && (info += "\n" + debugStack)); - } else if (null != workInProgress.debugStack) { - var ownerStack = workInProgress.debugStack; - (workInProgress = workInProgress.owner) && - ownerStack && - (info += "\n" + formatOwnerStack(ownerStack)); - } else break; - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function getCurrentFiberStackInDev() { - return null === current - ? "" - : enableOwnerStacks - ? getOwnerStackByFiberInDev(current) - : getStackByFiberInDevAndProd(current); - } - function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { - var previousFiber = current; - ReactSharedInternals.getCurrentStack = - null === fiber ? null : getCurrentFiberStackInDev; - isRendering = !1; - current = fiber; - try { - return enableOwnerStacks && null !== fiber && fiber._debugTask - ? fiber._debugTask.run( - callback.bind(null, arg0, arg1, arg2, arg3, arg4) - ) - : callback(arg0, arg1, arg2, arg3, arg4); - } finally { - current = previousFiber; - } - throw Error( - "runWithFiberInDEV should never be called in production. This is a bug in React." - ); - } function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; @@ -803,7 +287,151 @@ __DEV__ && return !0; childFiber = childFiber.return; } - return !1; + return !1; + } + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) + return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch ( + ("number" === typeof type.tag && + error$jscomp$0( + "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." + ), + type.$$typeof) + ) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return enableRenderableContext + ? (type._context.displayName || "Context") + ".Consumer" + : (type.displayName || "Context") + ".Consumer"; + case 10: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") + ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; + break; + case 23: + return "LegacyHidden"; + case 29: + type = fiber._debugInfo; + if (null != type) + for (var i = type.length - 1; 0 <= i; i--) + if ("string" === typeof type[i].name) return type[i].name; + if (null !== fiber.return) + return getComponentNameFromFiber(fiber.return); + } + return null; } function createCursor(defaultValue) { return { current: defaultValue }; @@ -1261,49 +889,396 @@ __DEV__ && )); } } - function injectProfilingHooks(profilingHooks) { - injectedProfilingHooks = profilingHooks; - } - function markCommitStopped() { - enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markCommitStopped && - injectedProfilingHooks.markCommitStopped(); - } - function markComponentRenderStarted(fiber) { - enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markComponentRenderStarted && - injectedProfilingHooks.markComponentRenderStarted(fiber); - } - function markComponentRenderStopped() { - enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === - typeof injectedProfilingHooks.markComponentRenderStopped && - injectedProfilingHooks.markComponentRenderStopped(); + function injectProfilingHooks(profilingHooks) { + injectedProfilingHooks = profilingHooks; + } + function markCommitStopped() { + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markCommitStopped && + injectedProfilingHooks.markCommitStopped(); + } + function markComponentRenderStarted(fiber) { + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markComponentRenderStarted && + injectedProfilingHooks.markComponentRenderStarted(fiber); + } + function markComponentRenderStopped() { + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === + typeof injectedProfilingHooks.markComponentRenderStopped && + injectedProfilingHooks.markComponentRenderStopped(); + } + function markRenderStarted(lanes) { + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markRenderStarted && + injectedProfilingHooks.markRenderStarted(lanes); + } + function markRenderStopped() { + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markRenderStopped && + injectedProfilingHooks.markRenderStopped(); + } + function markStateUpdateScheduled(fiber, lane) { + enableSchedulingProfiler && + null !== injectedProfilingHooks && + "function" === typeof injectedProfilingHooks.markStateUpdateScheduled && + injectedProfilingHooks.markStateUpdateScheduled(fiber, lane); + } + function is(x, y) { + return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); + } + function disabledLog() {} + function disableLogs() { + if (0 === disabledDepth) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: !0, + enumerable: !0, + value: disabledLog, + writable: !0 + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + function reenableLogs() { + disabledDepth--; + if (0 === disabledDepth) { + var props = { configurable: !0, enumerable: !0, writable: !0 }; + Object.defineProperties(console, { + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) + }); + } + 0 > disabledDepth && + error$jscomp$0( + "disabledDepth fell below zero. This is a bug in React. Please file an issue." + ); + } + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + var frame = componentFrameCache.get(fn); + if (void 0 !== frame) return frame; + reentry = !0; + frame = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher = null; + previousDispatcher = ReactSharedInternals.H; + ReactSharedInternals.H = null; + disableLogs(); + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$0) { + control = x$0; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$1) { + control = x$1; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = + RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + _RunInRootFrame$Deter = namePropDescriptor = 0; + namePropDescriptor < sampleLines.length && + !sampleLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + for ( + ; + _RunInRootFrame$Deter < controlLines.length && + !controlLines[_RunInRootFrame$Deter].includes( + "DetermineComponentFrameRoot" + ); + + ) + _RunInRootFrame$Deter++; + if ( + namePropDescriptor === sampleLines.length || + _RunInRootFrame$Deter === controlLines.length + ) + for ( + namePropDescriptor = sampleLines.length - 1, + _RunInRootFrame$Deter = controlLines.length - 1; + 1 <= namePropDescriptor && + 0 <= _RunInRootFrame$Deter && + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]; + + ) + _RunInRootFrame$Deter--; + for ( + ; + 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; + namePropDescriptor--, _RunInRootFrame$Deter-- + ) + if ( + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter] + ) { + if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { + do + if ( + (namePropDescriptor--, + _RunInRootFrame$Deter--, + 0 > _RunInRootFrame$Deter || + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]) + ) { + var _frame = + "\n" + + sampleLines[namePropDescriptor].replace( + " at new ", + " at " + ); + fn.displayName && + _frame.includes("") && + (_frame = _frame.replace("", fn.displayName)); + "function" === typeof fn && + componentFrameCache.set(fn, _frame); + return _frame; + } + while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); + } + break; + } + } + } finally { + (reentry = !1), + (ReactSharedInternals.H = previousDispatcher), + reenableLogs(), + (Error.prepareStackTrace = frame); + } + sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(sampleLines) + : ""; + "function" === typeof fn && componentFrameCache.set(fn, sampleLines); + return sampleLines; + } + function formatOwnerStack(error) { + var prevPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + error = error.stack; + Error.prepareStackTrace = prevPrepareStackTrace; + error.startsWith("Error: react-stack-top-frame\n") && + (error = error.slice(29)); + prevPrepareStackTrace = error.indexOf("\n"); + -1 !== prevPrepareStackTrace && + (error = error.slice(prevPrepareStackTrace + 1)); + prevPrepareStackTrace = error.indexOf("react-stack-bottom-frame"); + -1 !== prevPrepareStackTrace && + (prevPrepareStackTrace = error.lastIndexOf( + "\n", + prevPrepareStackTrace + )); + if (-1 !== prevPrepareStackTrace) + error = error.slice(0, prevPrepareStackTrace); + else return ""; + return error; } - function markRenderStarted(lanes) { - enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markRenderStarted && - injectedProfilingHooks.markRenderStarted(lanes); + function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } } - function markRenderStopped() { - enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markRenderStopped && - injectedProfilingHooks.markRenderStopped(); + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do { + info += describeFiber(workInProgress); + var debugInfo = workInProgress._debugInfo; + if (debugInfo) + for (var i = debugInfo.length - 1; 0 <= i; i--) { + var entry = debugInfo[i]; + if ("string" === typeof entry.name) { + var JSCompiler_temp_const = info, + env = entry.env; + var JSCompiler_inline_result = describeBuiltInComponentFrame( + entry.name + (env ? " [" + env + "]" : "") + ); + info = JSCompiler_temp_const + JSCompiler_inline_result; + } + } + workInProgress = workInProgress.return; + } while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } - function markStateUpdateScheduled(fiber, lane) { - enableSchedulingProfiler && - null !== injectedProfilingHooks && - "function" === typeof injectedProfilingHooks.markStateUpdateScheduled && - injectedProfilingHooks.markStateUpdateScheduled(fiber, lane); + function describeFunctionComponentFrameWithoutLineNumber(fn) { + return (fn = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(fn) + : ""; } - function is(x, y) { - return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); + function getOwnerStackByFiberInDev(workInProgress) { + if (!enableOwnerStacks) return ""; + try { + var info = ""; + 6 === workInProgress.tag && (workInProgress = workInProgress.return); + switch (workInProgress.tag) { + case 26: + case 27: + case 5: + info += describeBuiltInComponentFrame(workInProgress.type); + break; + case 13: + info += describeBuiltInComponentFrame("Suspense"); + break; + case 19: + info += describeBuiltInComponentFrame("SuspenseList"); + break; + case 0: + case 15: + case 1: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type + )); + break; + case 11: + workInProgress._debugOwner || + "" !== info || + (info += describeFunctionComponentFrameWithoutLineNumber( + workInProgress.type.render + )); + } + for (; workInProgress; ) + if ("number" === typeof workInProgress.tag) { + var fiber = workInProgress; + workInProgress = fiber._debugOwner; + var debugStack = fiber._debugStack; + workInProgress && + debugStack && + ("string" !== typeof debugStack && + (fiber._debugStack = debugStack = formatOwnerStack(debugStack)), + "" !== debugStack && (info += "\n" + debugStack)); + } else if (null != workInProgress.debugStack) { + var ownerStack = workInProgress.debugStack; + (workInProgress = workInProgress.owner) && + ownerStack && + (info += "\n" + formatOwnerStack(ownerStack)); + } else break; + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } function createCapturedValueAtFiber(value, source) { if ("object" === typeof value && null !== value) { @@ -2374,8 +2349,6 @@ __DEV__ && ((didScheduleMicrotask_act = !0), scheduleImmediateRootScheduleTask()) : didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now$1()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -2725,6 +2698,32 @@ __DEV__ && } return !0; } + function getCurrentFiberStackInDev() { + return null === current + ? "" + : enableOwnerStacks + ? getOwnerStackByFiberInDev(current) + : getStackByFiberInDevAndProd(current); + } + function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { + var previousFiber = current; + ReactSharedInternals.getCurrentStack = + null === fiber ? null : getCurrentFiberStackInDev; + isRendering = !1; + current = fiber; + try { + return enableOwnerStacks && null !== fiber && fiber._debugTask + ? fiber._debugTask.run( + callback.bind(null, arg0, arg1, arg2, arg3, arg4) + ) + : callback(arg0, arg1, arg2, arg3, arg4); + } finally { + current = previousFiber; + } + throw Error( + "runWithFiberInDEV should never be called in production. This is a bug in React." + ); + } function createThenableState() { return { didWarnAboutUncachedPromise: !1, thenables: [] }; } @@ -3397,7 +3396,7 @@ __DEV__ && null; hookTypesUpdateIndexDev = -1; null !== current && - (current.flags & 29360128) !== (workInProgress.flags & 29360128) && + (current.flags & 65011712) !== (workInProgress.flags & 65011712) && error$jscomp$0( "Internal React error: Expected static flag was missing. Please notify the React team." ); @@ -3475,7 +3474,7 @@ __DEV__ && workInProgress.updateQueue = current.updateQueue; workInProgress.flags = (workInProgress.mode & 16) !== NoMode - ? workInProgress.flags & -201328645 + ? workInProgress.flags & -402655237 : workInProgress.flags & -2053; current.lanes &= ~lanes; } @@ -4354,7 +4353,7 @@ __DEV__ && function mountEffect(create, deps) { (currentlyRenderingFiber.mode & 16) !== NoMode && (currentlyRenderingFiber.mode & 64) === NoMode - ? mountEffectImpl(142608384, Passive, create, deps) + ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps); } function mountResourceEffect( @@ -4370,7 +4369,7 @@ __DEV__ && ) { var hookFlags = Passive, hook = mountWorkInProgressHook(); - currentlyRenderingFiber.flags |= 142608384; + currentlyRenderingFiber.flags |= 276826112; var inst = createEffectInstance(); inst.destroy = destroy; hook.memoizedState = pushResourceEffect( @@ -4492,7 +4491,7 @@ __DEV__ && function mountLayoutEffect(create, deps) { var fiberFlags = 4194308; (currentlyRenderingFiber.mode & 16) !== NoMode && - (fiberFlags |= 67108864); + (fiberFlags |= 134217728); return mountEffectImpl(fiberFlags, Layout, create, deps); } function imperativeHandleEffect(create, ref) { @@ -4526,7 +4525,7 @@ __DEV__ && deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; var fiberFlags = 4194308; (currentlyRenderingFiber.mode & 16) !== NoMode && - (fiberFlags |= 67108864); + (fiberFlags |= 134217728); mountEffectImpl( fiberFlags, Layout, @@ -5104,16 +5103,16 @@ __DEV__ && return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -7341,7 +7340,7 @@ __DEV__ && "function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308); (workInProgress.mode & 16) !== NoMode && - (workInProgress.flags |= 67108864); + (workInProgress.flags |= 134217728); _instance = !0; } else if (null === current$jscomp$0) { _instance = workInProgress.stateNode; @@ -7409,11 +7408,11 @@ __DEV__ && "function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & 16) !== NoMode && - (workInProgress.flags |= 67108864)) + (workInProgress.flags |= 134217728)) : ("function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & 16) !== NoMode && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (workInProgress.memoizedProps = nextProps), (workInProgress.memoizedState = oldContext)), (_instance.props = nextProps), @@ -7423,7 +7422,7 @@ __DEV__ && : ("function" === typeof _instance.componentDidMount && (workInProgress.flags |= 4194308), (workInProgress.mode & 16) !== NoMode && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (_instance = !1)); } else { _instance = workInProgress.stateNode; @@ -7945,7 +7944,7 @@ __DEV__ && children: nextProps.children }); nextProps.subtreeFlags = - JSCompiler_temp$jscomp$0.subtreeFlags & 29360128; + JSCompiler_temp$jscomp$0.subtreeFlags & 65011712; null !== didSuspend ? (showFallback = createWorkInProgress(didSuspend, showFallback)) : ((showFallback = createFiberFromFragment( @@ -9634,8 +9633,8 @@ __DEV__ && ) (newChildLanes |= _child2.lanes | _child2.childLanes), - (subtreeFlags |= _child2.subtreeFlags & 29360128), - (subtreeFlags |= _child2.flags & 29360128), + (subtreeFlags |= _child2.subtreeFlags & 65011712), + (subtreeFlags |= _child2.flags & 65011712), (_treeBaseDuration += _child2.treeBaseDuration), (_child2 = _child2.sibling); completedWork.treeBaseDuration = _treeBaseDuration; @@ -9647,8 +9646,8 @@ __DEV__ && ) (newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes), - (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128), - (subtreeFlags |= _treeBaseDuration.flags & 29360128), + (subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712), + (subtreeFlags |= _treeBaseDuration.flags & 65011712), (_treeBaseDuration.return = completedWork), (_treeBaseDuration = _treeBaseDuration.sibling); else if ((completedWork.mode & 2) !== NoMode) { @@ -10226,6 +10225,8 @@ __DEV__ && bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error( "Unknown unit of work tag (" + @@ -12394,6 +12395,7 @@ __DEV__ && ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -12827,7 +12829,7 @@ __DEV__ && break; case 12: flags & 2048 - ? ((prevEffectDuration = pushNestedEffectDurations()), + ? ((flags = pushNestedEffectDurations()), recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, @@ -12836,7 +12838,7 @@ __DEV__ && ), (finishedRoot = finishedWork.stateNode), (finishedRoot.passiveEffectDuration += - bubbleNestedEffectDurations(prevEffectDuration)), + bubbleNestedEffectDurations(flags)), commitProfilerPostCommit( finishedWork, finishedWork.alternate, @@ -12874,6 +12876,7 @@ __DEV__ && break; case 22: prevEffectDuration = finishedWork.stateNode; + nextCache = finishedWork.alternate; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -12903,7 +12906,7 @@ __DEV__ && )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + nextCache, finishedWork, prevEffectDuration ); @@ -12918,6 +12921,7 @@ __DEV__ && flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -13834,6 +13838,7 @@ __DEV__ && lanes, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, @@ -13863,6 +13868,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -13883,6 +13889,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -13906,6 +13913,7 @@ __DEV__ && finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -13920,12 +13928,14 @@ __DEV__ && root.timeoutHandle = noTimeout; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( (startSuspendingCommit(), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && + accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -13937,6 +13947,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -13961,6 +13972,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -14085,6 +14097,7 @@ __DEV__ && workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -14701,6 +14714,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -14760,24 +14774,30 @@ __DEV__ && })) : ((root.callbackNode = null), (root.callbackPriority = 0)); commitStartTime = now(); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = getCurrentUpdatePriority(); + transitions = getCurrentUpdatePriority(); setCurrentUpdatePriority(2); - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= CommitContext; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - setCurrentUpdatePriority(recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + setCurrentUpdatePriority(transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = PENDING_MUTATION_PHASE; flushMutationEffects(); + pendingEffectsStatus = PENDING_LAYOUT_PHASE; flushLayoutEffects(); } } @@ -14812,7 +14832,7 @@ __DEV__ && } } root.current = finishedWork; - pendingEffectsStatus = PENDING_LAYOUT_PHASE; + pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; } } function flushLayoutEffects() { @@ -14948,6 +14968,9 @@ __DEV__ && function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE && + ((pendingEffectsStatus = NO_PENDING_EFFECTS), + (pendingEffectsStatus = PENDING_LAYOUT_PHASE)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { @@ -15209,14 +15232,14 @@ __DEV__ && parentFiber, isInStrictMode ) { - if (0 !== (parentFiber.subtreeFlags & 33562624)) + if (0 !== (parentFiber.subtreeFlags & 67117056)) for (parentFiber = parentFiber.child; null !== parentFiber; ) { var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; isStrictModeFiber = isInStrictMode || isStrictModeFiber; 22 !== fiber.tag - ? fiber.flags & 33554432 + ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV( fiber, @@ -15238,7 +15261,7 @@ __DEV__ && root, fiber ) - : fiber.subtreeFlags & 33554432 && + : fiber.subtreeFlags & 67108864 && runWithFiberInDEV( fiber, recursivelyTraverseAndDoubleInvokeEffectsInDEV, @@ -15546,7 +15569,7 @@ __DEV__ && (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -15584,7 +15607,7 @@ __DEV__ && return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -15699,6 +15722,7 @@ __DEV__ && return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -16096,8 +16120,6 @@ __DEV__ && dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -16142,28 +16164,12 @@ __DEV__ && REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - disabledDepth = 0, - prevLog, - prevInfo, - prevWarn, - prevError, - prevGroup, - prevGroupCollapsed, - prevGroupEnd; - disabledLog.__reactDisabledLog = !0; - var prefix, - suffix, - reentry = !1; - var componentFrameCache = new ( - "function" === typeof WeakMap ? WeakMap : Map - )(); - var current = null, - isRendering = !1, - isArrayImpl = Array.isArray, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, @@ -16203,8 +16209,9 @@ __DEV__ && maySuspendCommit = $$$config.maySuspendCommit, preloadInstance = $$$config.preloadInstance, startSuspendingCommit = $$$config.startSuspendingCommit, - suspendInstance = $$$config.suspendInstance, - waitForCommitToBeReady = $$$config.waitForCommitToBeReady, + suspendInstance = $$$config.suspendInstance; + $$$config.suspendOnActiveViewTransition; + var waitForCommitToBeReady = $$$config.waitForCommitToBeReady, NotPendingTransition = $$$config.NotPendingTransition, HostTransitionContext = $$$config.HostTransitionContext, resetFormInstance = $$$config.resetFormInstance, @@ -16232,8 +16239,14 @@ __DEV__ && hideInstance = $$$config.hideInstance, hideTextInstance = $$$config.hideTextInstance, unhideInstance = $$$config.unhideInstance, - unhideTextInstance = $$$config.unhideTextInstance, - clearContainer = $$$config.clearContainer, + unhideTextInstance = $$$config.unhideTextInstance; + $$$config.cancelViewTransitionName; + $$$config.cancelRootViewTransitionName; + $$$config.restoreRootViewTransitionName; + $$$config.hasInstanceChanged; + $$$config.hasInstanceAffectedParent; + $$$config.startViewTransition; + var clearContainer = $$$config.clearContainer, cloneInstance = $$$config.cloneInstance, createContainerChildSet = $$$config.createContainerChildSet, appendChildToContainerChildSet = $$$config.appendChildToContainerChildSet, @@ -16323,7 +16336,22 @@ __DEV__ && hasLoggedError = !1, isDevToolsPresent = "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__, objectIs = "function" === typeof Object.is ? Object.is : is, - CapturedStacks = new WeakMap(), + disabledDepth = 0, + prevLog, + prevInfo, + prevWarn, + prevError, + prevGroup, + prevGroupCollapsed, + prevGroupEnd; + disabledLog.__reactDisabledLog = !0; + var prefix, + suffix, + reentry = !1; + var componentFrameCache = new ( + "function" === typeof WeakMap ? WeakMap : Map + )(); + var CapturedStacks = new WeakMap(), forkStack = [], forkStackIndex = 0, treeForkProvider = null, @@ -16416,6 +16444,8 @@ __DEV__ && var resumedCache = createCursor(null), transitionStack = createCursor(null), hasOwnProperty = Object.prototype.hasOwnProperty, + current = null, + isRendering = !1, ReactStrictModeWarnings = { recordUnsafeLifecycleWarnings: function () {}, flushPendingUnsafeLifecycleWarnings: function () {}, @@ -18083,21 +18113,6 @@ __DEV__ && var didWarnOnInvalidCallback = new Set(); Object.freeze(fakeInternalInstance); var classComponentUpdater = { - isMounted: function (component) { - var owner = current; - if (null !== owner && isRendering && 1 === owner.tag) { - var instance = owner.stateNode; - instance._warnedAboutRefsInRender || - error$jscomp$0( - "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", - getComponentNameFromFiber(owner) || "A component" - ); - instance._warnedAboutRefsInRender = !0; - } - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(inst), @@ -18285,6 +18300,7 @@ __DEV__ && workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -18300,8 +18316,9 @@ __DEV__ && THROTTLED_COMMIT = 2, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, - PENDING_LAYOUT_PHASE = 2, - PENDING_PASSIVE_PHASE = 3, + PENDING_AFTER_MUTATION_PHASE = 2, + PENDING_LAYOUT_PHASE = 3, + PENDING_PASSIVE_PHASE = 4, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, @@ -18880,7 +18897,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-modern-98418e89-20250108" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index 412cf9e27ea92..539babe5adb0e 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -28,322 +28,6 @@ module.exports = function ($$$config) { " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." ); } - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) - return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; - } - if ("object" === typeof type) - switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; - } - function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return enableRenderableContext - ? (type._context.displayName || "Context") + ".Consumer" - : (type.displayName || "Context") + ".Consumer"; - case 10: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return ( - (fiber = type.render), - (fiber = fiber.displayName || fiber.name || ""), - type.displayName || - ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") - ); - case 7: - return "Fragment"; - case 26: - case 27: - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 14: - case 15: - if ("function" === typeof type) - return type.displayName || type.name || null; - if ("string" === typeof type) return type; - break; - case 23: - return "LegacyHidden"; - } - return null; - } - function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - reentry = !0; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$1) { - control = x$1; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$2) { - control = x$2; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - namePropDescriptor = RunInRootFrame = 0; - RunInRootFrame < sampleLines.length && - !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); - - ) - RunInRootFrame++; - for ( - ; - namePropDescriptor < controlLines.length && - !controlLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - if ( - RunInRootFrame === sampleLines.length || - namePropDescriptor === controlLines.length - ) - for ( - RunInRootFrame = sampleLines.length - 1, - namePropDescriptor = controlLines.length - 1; - 1 <= RunInRootFrame && - 0 <= namePropDescriptor && - sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; - - ) - namePropDescriptor--; - for ( - ; - 1 <= RunInRootFrame && 0 <= namePropDescriptor; - RunInRootFrame--, namePropDescriptor-- - ) - if ( - sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor] - ) { - if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { - do - if ( - (RunInRootFrame--, - namePropDescriptor--, - 0 > namePropDescriptor || - sampleLines[RunInRootFrame] !== - controlLines[namePropDescriptor]) - ) { - var frame = - "\n" + - sampleLines[RunInRootFrame].replace(" at new ", " at "); - fn.displayName && - frame.includes("") && - (frame = frame.replace("", fn.displayName)); - return frame; - } - while (1 <= RunInRootFrame && 0 <= namePropDescriptor); - } - break; - } - } - } finally { - (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); - } - return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(previousPrepareStackTrace) - : ""; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do - (info += describeFiber(workInProgress)), - (workInProgress = workInProgress.return); - while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; @@ -391,36 +75,36 @@ module.exports = function ($$$config) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$3 = parentA.child; child$3; ) { - if (child$3 === a) { + for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) { - for (child$3 = parentB.child; child$3; ) { - if (child$3 === a) { + for (child$0 = parentB.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -453,26 +137,157 @@ module.exports = function ($$$config) { } return null; } - function isFiberSuspenseAndTimedOut(fiber) { - var memoizedState = fiber.memoizedState; - return ( - 13 === fiber.tag && - null !== memoizedState && - null === memoizedState.dehydrated - ); - } - function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; - } + function isFiberSuspenseAndTimedOut(fiber) { + var memoizedState = fiber.memoizedState; + return ( + 13 === fiber.tag && + null !== memoizedState && + null === memoizedState.dehydrated + ); + } + function doesFiberContain(parentFiber, childFiber) { + for ( + var parentFiberAlternate = parentFiber.alternate; + null !== childFiber; + + ) { + if (childFiber === parentFiber || childFiber === parentFiberAlternate) + return !0; + childFiber = childFiber.return; + } + return !1; + } + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) + return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return enableRenderableContext + ? (type._context.displayName || "Context") + ".Consumer" + : (type.displayName || "Context") + ".Consumer"; + case 10: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") + ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; + break; + case 23: + return "LegacyHidden"; + } + return null; + } function createCursor(defaultValue) { return { current: defaultValue }; } @@ -749,18 +564,18 @@ module.exports = function ($$$config) { 0 < remainingLanes; ) { - var index$8 = 31 - clz32(remainingLanes), - lane = 1 << index$8; - entanglements[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$6 = 31 - clz32(remainingLanes), + lane = 1 << index$6; + entanglements[index$6] = 0; + expirationTimes[index$6] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$6]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$6] = null, index$6 = 0; + index$6 < hiddenUpdatesForLane.length; + index$6++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$6]; null !== update && (update.lane &= -536870913); } remainingLanes &= ~lane; @@ -786,10 +601,10 @@ module.exports = function ($$$config) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$7 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$7; + (lane & entangledLanes) | (root[index$7] & entangledLanes) && + (root[index$7] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -836,11 +651,11 @@ module.exports = function ($$$config) { function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - index$12 = root.transitionLanes[index$12]; - null !== index$12 && - index$12.forEach(function (transition) { + var index$10 = 31 - clz32(lanes), + lane = 1 << index$10; + index$10 = root.transitionLanes[index$10]; + null !== index$10 && + index$10.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -850,10 +665,10 @@ module.exports = function ($$$config) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$13 = 31 - clz32(lanes), - lane = 1 << index$13; - null !== root.transitionLanes[index$13] && - (root.transitionLanes[index$13] = null); + var index$11 = 31 - clz32(lanes), + lane = 1 << index$11; + null !== root.transitionLanes[index$11] && + (root.transitionLanes[index$11] = null); lanes &= ~lane; } } @@ -888,6 +703,192 @@ module.exports = function ($$$config) { function is(x, y) { return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); } + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + reentry = !0; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$12) { + control = x$12; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$13) { + control = x$13; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + namePropDescriptor = RunInRootFrame = 0; + RunInRootFrame < sampleLines.length && + !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); + + ) + RunInRootFrame++; + for ( + ; + namePropDescriptor < controlLines.length && + !controlLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + if ( + RunInRootFrame === sampleLines.length || + namePropDescriptor === controlLines.length + ) + for ( + RunInRootFrame = sampleLines.length - 1, + namePropDescriptor = controlLines.length - 1; + 1 <= RunInRootFrame && + 0 <= namePropDescriptor && + sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; + + ) + namePropDescriptor--; + for ( + ; + 1 <= RunInRootFrame && 0 <= namePropDescriptor; + RunInRootFrame--, namePropDescriptor-- + ) + if ( + sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor] + ) { + if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { + do + if ( + (RunInRootFrame--, + namePropDescriptor--, + 0 > namePropDescriptor || + sampleLines[RunInRootFrame] !== + controlLines[namePropDescriptor]) + ) { + var frame = + "\n" + + sampleLines[RunInRootFrame].replace(" at new ", " at "); + fn.displayName && + frame.includes("") && + (frame = frame.replace("", fn.displayName)); + return frame; + } + while (1 <= RunInRootFrame && 0 <= namePropDescriptor); + } + break; + } + } + } finally { + (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); + } + return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(previousPrepareStackTrace) + : ""; + } + function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } + } + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do + (info += describeFiber(workInProgress)), + (workInProgress = workInProgress.return); + while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } + } function createCapturedValueAtFiber(value, source) { if ("object" === typeof value && null !== value) { var existing = CapturedStacks.get(value); @@ -1276,8 +1277,6 @@ module.exports = function ($$$config) { mightHavePendingSyncWork = !0; didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -1365,12 +1364,12 @@ module.exports = function ($$$config) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$4 = 31 - clz32(pendingLanes), + lane = 1 << index$4, + expirationTime = expirationTimes[index$4]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$4] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -1432,7 +1431,7 @@ module.exports = function ($$$config) { return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { - if (0 !== pendingEffectsStatus && 3 !== pendingEffectsStatus) + if (0 !== pendingEffectsStatus && 4 !== pendingEffectsStatus) return (root.callbackNode = null), (root.callbackPriority = 0), null; var originalCallbackNode = root.callbackNode; if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode) @@ -3277,16 +3276,16 @@ module.exports = function ($$$config) { return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -5389,7 +5388,7 @@ module.exports = function ($$$config) { mode: "hidden", children: nextProps.children }); - nextProps.subtreeFlags = JSCompiler_temp$jscomp$0.subtreeFlags & 29360128; + nextProps.subtreeFlags = JSCompiler_temp$jscomp$0.subtreeFlags & 65011712; null !== didSuspend ? (showFallback = createWorkInProgress(didSuspend, showFallback)) : ((showFallback = createFiberFromFragment( @@ -6714,8 +6713,8 @@ module.exports = function ($$$config) { if (didBailout) for (var child$109 = completedWork.child; null !== child$109; ) (newChildLanes |= child$109.lanes | child$109.childLanes), - (subtreeFlags |= child$109.subtreeFlags & 29360128), - (subtreeFlags |= child$109.flags & 29360128), + (subtreeFlags |= child$109.subtreeFlags & 65011712), + (subtreeFlags |= child$109.flags & 65011712), (child$109.return = completedWork), (child$109 = child$109.sibling); else @@ -7201,6 +7200,8 @@ module.exports = function ($$$config) { bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error(formatProdErrorMessage(156, workInProgress.tag)); } @@ -8769,6 +8770,7 @@ module.exports = function ($$$config) { ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -9232,6 +9234,7 @@ module.exports = function ($$$config) { break; case 22: nextCache = finishedWork.stateNode; + var current$157 = finishedWork.alternate; null !== finishedWork.memoizedState ? nextCache._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -9261,7 +9264,7 @@ module.exports = function ($$$config) { )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + current$157, finishedWork, nextCache ); @@ -9276,6 +9279,7 @@ module.exports = function ($$$config) { flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -9944,11 +9948,11 @@ module.exports = function ($$$config) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$11 = 31 - clz32(lane), - transitions = transitionLanesMap[index$11]; + index$9 = 31 - clz32(lane), + transitions = transitionLanesMap[index$9]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$11] = transitions; + transitionLanesMap[index$9] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -10099,6 +10103,7 @@ module.exports = function ($$$config) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -10119,6 +10124,7 @@ module.exports = function ($$$config) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -10141,6 +10147,7 @@ module.exports = function ($$$config) { finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -10155,12 +10162,13 @@ module.exports = function ($$$config) { root.timeoutHandle = noTimeout; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( (startSuspendingCommit(), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -10172,6 +10180,7 @@ module.exports = function ($$$config) { lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -10191,6 +10200,7 @@ module.exports = function ($$$config) { lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -10256,9 +10266,9 @@ module.exports = function ($$$config) { (root.warmLanes |= suspendedLanes); didAttemptEntireTree = root.expirationTimes; for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - didAttemptEntireTree[index$7] = -1; + var index$5 = 31 - clz32(lanes), + lane = 1 << index$5; + didAttemptEntireTree[index$5] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10312,6 +10322,7 @@ module.exports = function ($$$config) { workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -10320,9 +10331,9 @@ module.exports = function ($$$config) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$3 = 31 - clz32(allEntangledLanes), + lane = 1 << index$3; + lanes |= root[index$3]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -10783,6 +10794,7 @@ module.exports = function ($$$config) { lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -10825,24 +10837,30 @@ module.exports = function ($$$config) { return null; })) : ((root.callbackNode = null), (root.callbackPriority = 0)); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = getCurrentUpdatePriority(); + transitions = getCurrentUpdatePriority(); setCurrentUpdatePriority(2); - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= 4; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - setCurrentUpdatePriority(recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + setCurrentUpdatePriority(transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = 1; flushMutationEffects(); + pendingEffectsStatus = 3; flushLayoutEffects(); } } @@ -10874,7 +10892,7 @@ module.exports = function ($$$config) { } } function flushLayoutEffects() { - if (2 === pendingEffectsStatus) { + if (3 === pendingEffectsStatus) { pendingEffectsStatus = 0; var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, @@ -10900,7 +10918,7 @@ module.exports = function ($$$config) { requestPaint(); 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) - ? (pendingEffectsStatus = 3) + ? (pendingEffectsStatus = 4) : ((pendingEffectsStatus = 0), (pendingEffectsRoot = null), releaseRootPooledCache(root, root.pendingLanes)); @@ -10971,10 +10989,12 @@ module.exports = function ($$$config) { function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + 2 === pendingEffectsStatus && + ((pendingEffectsStatus = 0), (pendingEffectsStatus = 3)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { - if (3 !== pendingEffectsStatus) return !1; + if (4 !== pendingEffectsStatus) return !1; var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; pendingEffectsRemainingLanes = 0; @@ -11245,7 +11265,7 @@ module.exports = function ($$$config) { (workInProgress.flags = 0), (workInProgress.subtreeFlags = 0), (workInProgress.deletions = null)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -11267,7 +11287,7 @@ module.exports = function ($$$config) { return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -11371,6 +11391,7 @@ module.exports = function ($$$config) { return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -11605,11 +11626,6 @@ module.exports = function ($$$config) { if (!parentComponent) return emptyContextObject; parentComponent = parentComponent._reactInternals; a: { - if ( - getNearestMountedFiber(parentComponent) !== parentComponent || - 1 !== parentComponent.tag - ) - throw Error(formatProdErrorMessage(170)); var JSCompiler_inline_result = parentComponent; do { switch (JSCompiler_inline_result.tag) { @@ -11697,8 +11713,6 @@ module.exports = function ($$$config) { dynamicFeatureFlags.disableLegacyContextForFunctionComponents, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -11740,14 +11754,12 @@ module.exports = function ($$$config) { REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - prefix, - suffix, - reentry = !1, - isArrayImpl = Array.isArray, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, @@ -11787,8 +11799,9 @@ module.exports = function ($$$config) { maySuspendCommit = $$$config.maySuspendCommit, preloadInstance = $$$config.preloadInstance, startSuspendingCommit = $$$config.startSuspendingCommit, - suspendInstance = $$$config.suspendInstance, - waitForCommitToBeReady = $$$config.waitForCommitToBeReady, + suspendInstance = $$$config.suspendInstance; + $$$config.suspendOnActiveViewTransition; + var waitForCommitToBeReady = $$$config.waitForCommitToBeReady, NotPendingTransition = $$$config.NotPendingTransition, HostTransitionContext = $$$config.HostTransitionContext, resetFormInstance = $$$config.resetFormInstance; @@ -11816,8 +11829,14 @@ module.exports = function ($$$config) { hideInstance = $$$config.hideInstance, hideTextInstance = $$$config.hideTextInstance, unhideInstance = $$$config.unhideInstance, - unhideTextInstance = $$$config.unhideTextInstance, - clearContainer = $$$config.clearContainer, + unhideTextInstance = $$$config.unhideTextInstance; + $$$config.cancelViewTransitionName; + $$$config.cancelRootViewTransitionName; + $$$config.restoreRootViewTransitionName; + $$$config.hasInstanceChanged; + $$$config.hasInstanceAffectedParent; + $$$config.startViewTransition; + var clearContainer = $$$config.clearContainer, cloneInstance = $$$config.cloneInstance, createContainerChildSet = $$$config.createContainerChildSet, appendChildToContainerChildSet = $$$config.appendChildToContainerChildSet, @@ -11903,6 +11922,9 @@ module.exports = function ($$$config) { rendererID = null, injectedHook = null, objectIs = "function" === typeof Object.is ? Object.is : is, + prefix, + suffix, + reentry = !1, CapturedStacks = new WeakMap(), forkStack = [], forkStackIndex = 0, @@ -12344,11 +12366,6 @@ module.exports = function ($$$config) { shellBoundary = null, suspenseStackCursor = createCursor(0), classComponentUpdater = { - isMounted: function (component) { - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), @@ -12485,6 +12502,7 @@ module.exports = function ($$$config) { workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -12854,7 +12872,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-classic-98418e89-20250108" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index a77f00bc4ab4a..2aae5465d64b9 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -28,259 +28,6 @@ module.exports = function ($$$config) { " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." ); } - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) - return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - case REACT_TRACING_MARKER_TYPE: - if (enableTransitionTracing) return "TracingMarker"; - } - if ("object" === typeof type) - switch (type.$$typeof) { - case REACT_PROVIDER_TYPE: - if (enableRenderableContext) break; - else return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return enableRenderableContext - ? (type.displayName || "Context") + ".Provider" - : (type.displayName || "Context") + ".Consumer"; - case REACT_CONSUMER_TYPE: - if (enableRenderableContext) - return (type._context.displayName || "Context") + ".Consumer"; - break; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; - } - function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - reentry = !0; - var previousPrepareStackTrace = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$1) { - control = x$1; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$2) { - control = x$2; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - namePropDescriptor = RunInRootFrame = 0; - RunInRootFrame < sampleLines.length && - !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); - - ) - RunInRootFrame++; - for ( - ; - namePropDescriptor < controlLines.length && - !controlLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - if ( - RunInRootFrame === sampleLines.length || - namePropDescriptor === controlLines.length - ) - for ( - RunInRootFrame = sampleLines.length - 1, - namePropDescriptor = controlLines.length - 1; - 1 <= RunInRootFrame && - 0 <= namePropDescriptor && - sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; - - ) - namePropDescriptor--; - for ( - ; - 1 <= RunInRootFrame && 0 <= namePropDescriptor; - RunInRootFrame--, namePropDescriptor-- - ) - if ( - sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor] - ) { - if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { - do - if ( - (RunInRootFrame--, - namePropDescriptor--, - 0 > namePropDescriptor || - sampleLines[RunInRootFrame] !== - controlLines[namePropDescriptor]) - ) { - var frame = - "\n" + - sampleLines[RunInRootFrame].replace(" at new ", " at "); - fn.displayName && - frame.includes("") && - (frame = frame.replace("", fn.displayName)); - return frame; - } - while (1 <= RunInRootFrame && 0 <= namePropDescriptor); - } - break; - } - } - } finally { - (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); - } - return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(previousPrepareStackTrace) - : ""; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do - (info += describeFiber(workInProgress)), - (workInProgress = workInProgress.return); - while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; @@ -328,36 +75,36 @@ module.exports = function ($$$config) { } if (a.return !== b.return) (a = parentA), (b = parentB); else { - for (var didFindChild = !1, child$3 = parentA.child; child$3; ) { - if (child$3 === a) { + for (var didFindChild = !1, child$0 = parentA.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentA; b = parentB; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentA; a = parentB; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) { - for (child$3 = parentB.child; child$3; ) { - if (child$3 === a) { + for (child$0 = parentB.child; child$0; ) { + if (child$0 === a) { didFindChild = !0; a = parentB; b = parentA; break; } - if (child$3 === b) { + if (child$0 === b) { didFindChild = !0; b = parentB; a = parentA; break; } - child$3 = child$3.sibling; + child$0 = child$0.sibling; } if (!didFindChild) throw Error(formatProdErrorMessage(189)); } @@ -390,26 +137,94 @@ module.exports = function ($$$config) { } return null; } - function isFiberSuspenseAndTimedOut(fiber) { - var memoizedState = fiber.memoizedState; - return ( - 13 === fiber.tag && - null !== memoizedState && - null === memoizedState.dehydrated - ); - } - function doesFiberContain(parentFiber, childFiber) { - for ( - var parentFiberAlternate = parentFiber.alternate; - null !== childFiber; - - ) { - if (childFiber === parentFiber || childFiber === parentFiberAlternate) - return !0; - childFiber = childFiber.return; - } - return !1; - } + function isFiberSuspenseAndTimedOut(fiber) { + var memoizedState = fiber.memoizedState; + return ( + 13 === fiber.tag && + null !== memoizedState && + null === memoizedState.dehydrated + ); + } + function doesFiberContain(parentFiber, childFiber) { + for ( + var parentFiberAlternate = parentFiber.alternate; + null !== childFiber; + + ) { + if (childFiber === parentFiber || childFiber === parentFiberAlternate) + return !0; + childFiber = childFiber.return; + } + return !1; + } + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) + return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + case REACT_VIEW_TRANSITION_TYPE: + case REACT_TRACING_MARKER_TYPE: + if (enableTransitionTracing) return "TracingMarker"; + } + if ("object" === typeof type) + switch (type.$$typeof) { + case REACT_PROVIDER_TYPE: + if (enableRenderableContext) break; + else return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return enableRenderableContext + ? (type.displayName || "Context") + ".Provider" + : (type.displayName || "Context") + ".Consumer"; + case REACT_CONSUMER_TYPE: + if (enableRenderableContext) + return (type._context.displayName || "Context") + ".Consumer"; + break; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } function createCursor(defaultValue) { return { current: defaultValue }; } @@ -615,18 +430,18 @@ module.exports = function ($$$config) { 0 < remainingLanes; ) { - var index$8 = 31 - clz32(remainingLanes), - lane = 1 << index$8; - entanglements[index$8] = 0; - expirationTimes[index$8] = -1; - var hiddenUpdatesForLane = hiddenUpdates[index$8]; + var index$6 = 31 - clz32(remainingLanes), + lane = 1 << index$6; + entanglements[index$6] = 0; + expirationTimes[index$6] = -1; + var hiddenUpdatesForLane = hiddenUpdates[index$6]; if (null !== hiddenUpdatesForLane) for ( - hiddenUpdates[index$8] = null, index$8 = 0; - index$8 < hiddenUpdatesForLane.length; - index$8++ + hiddenUpdates[index$6] = null, index$6 = 0; + index$6 < hiddenUpdatesForLane.length; + index$6++ ) { - var update = hiddenUpdatesForLane[index$8]; + var update = hiddenUpdatesForLane[index$6]; null !== update && (update.lane &= -536870913); } remainingLanes &= ~lane; @@ -652,10 +467,10 @@ module.exports = function ($$$config) { function markRootEntangled(root, entangledLanes) { var rootEntangledLanes = (root.entangledLanes |= entangledLanes); for (root = root.entanglements; rootEntangledLanes; ) { - var index$9 = 31 - clz32(rootEntangledLanes), - lane = 1 << index$9; - (lane & entangledLanes) | (root[index$9] & entangledLanes) && - (root[index$9] |= entangledLanes); + var index$7 = 31 - clz32(rootEntangledLanes), + lane = 1 << index$7; + (lane & entangledLanes) | (root[index$7] & entangledLanes) && + (root[index$7] |= entangledLanes); rootEntangledLanes &= ~lane; } } @@ -702,11 +517,11 @@ module.exports = function ($$$config) { function getTransitionsForLanes(root, lanes) { if (!enableTransitionTracing) return null; for (var transitionsForLanes = []; 0 < lanes; ) { - var index$12 = 31 - clz32(lanes), - lane = 1 << index$12; - index$12 = root.transitionLanes[index$12]; - null !== index$12 && - index$12.forEach(function (transition) { + var index$10 = 31 - clz32(lanes), + lane = 1 << index$10; + index$10 = root.transitionLanes[index$10]; + null !== index$10 && + index$10.forEach(function (transition) { transitionsForLanes.push(transition); }); lanes &= ~lane; @@ -716,10 +531,10 @@ module.exports = function ($$$config) { function clearTransitionsForLanes(root, lanes) { if (enableTransitionTracing) for (; 0 < lanes; ) { - var index$13 = 31 - clz32(lanes), - lane = 1 << index$13; - null !== root.transitionLanes[index$13] && - (root.transitionLanes[index$13] = null); + var index$11 = 31 - clz32(lanes), + lane = 1 << index$11; + null !== root.transitionLanes[index$11] && + (root.transitionLanes[index$11] = null); lanes &= ~lane; } } @@ -754,6 +569,192 @@ module.exports = function ($$$config) { function is(x, y) { return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); } + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + reentry = !0; + var previousPrepareStackTrace = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$12) { + control = x$12; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$13) { + control = x$13; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } + ); + var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + namePropDescriptor = RunInRootFrame = 0; + RunInRootFrame < sampleLines.length && + !sampleLines[RunInRootFrame].includes("DetermineComponentFrameRoot"); + + ) + RunInRootFrame++; + for ( + ; + namePropDescriptor < controlLines.length && + !controlLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + if ( + RunInRootFrame === sampleLines.length || + namePropDescriptor === controlLines.length + ) + for ( + RunInRootFrame = sampleLines.length - 1, + namePropDescriptor = controlLines.length - 1; + 1 <= RunInRootFrame && + 0 <= namePropDescriptor && + sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor]; + + ) + namePropDescriptor--; + for ( + ; + 1 <= RunInRootFrame && 0 <= namePropDescriptor; + RunInRootFrame--, namePropDescriptor-- + ) + if ( + sampleLines[RunInRootFrame] !== controlLines[namePropDescriptor] + ) { + if (1 !== RunInRootFrame || 1 !== namePropDescriptor) { + do + if ( + (RunInRootFrame--, + namePropDescriptor--, + 0 > namePropDescriptor || + sampleLines[RunInRootFrame] !== + controlLines[namePropDescriptor]) + ) { + var frame = + "\n" + + sampleLines[RunInRootFrame].replace(" at new ", " at "); + fn.displayName && + frame.includes("") && + (frame = frame.replace("", fn.displayName)); + return frame; + } + while (1 <= RunInRootFrame && 0 <= namePropDescriptor); + } + break; + } + } + } finally { + (reentry = !1), (Error.prepareStackTrace = previousPrepareStackTrace); + } + return (previousPrepareStackTrace = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(previousPrepareStackTrace) + : ""; + } + function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } + } + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do + (info += describeFiber(workInProgress)), + (workInProgress = workInProgress.return); + while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } + } function createCapturedValueAtFiber(value, source) { if ("object" === typeof value && null !== value) { var existing = CapturedStacks.get(value); @@ -1142,8 +1143,6 @@ module.exports = function ($$$config) { mightHavePendingSyncWork = !0; didScheduleMicrotask || ((didScheduleMicrotask = !0), scheduleImmediateRootScheduleTask()); - enableDeferRootSchedulingToMicrotask || - scheduleTaskForRootDuringMicrotask(root, now()); } function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) { if (!isFlushingWork && mightHavePendingSyncWork) { @@ -1231,12 +1230,12 @@ module.exports = function ($$$config) { 0 < pendingLanes; ) { - var index$6 = 31 - clz32(pendingLanes), - lane = 1 << index$6, - expirationTime = expirationTimes[index$6]; + var index$4 = 31 - clz32(pendingLanes), + lane = 1 << index$4, + expirationTime = expirationTimes[index$4]; if (-1 === expirationTime) { if (0 === (lane & suspendedLanes) || 0 !== (lane & pingedLanes)) - expirationTimes[index$6] = computeExpirationTime(lane, currentTime); + expirationTimes[index$4] = computeExpirationTime(lane, currentTime); } else expirationTime <= currentTime && (root.expiredLanes |= lane); pendingLanes &= ~lane; } @@ -1298,7 +1297,7 @@ module.exports = function ($$$config) { return 2; } function performWorkOnRootViaSchedulerTask(root, didTimeout) { - if (0 !== pendingEffectsStatus && 3 !== pendingEffectsStatus) + if (0 !== pendingEffectsStatus && 4 !== pendingEffectsStatus) return (root.callbackNode = null), (root.callbackPriority = 0), null; var originalCallbackNode = root.callbackNode; if (flushPendingEffects(!0) && root.callbackNode !== originalCallbackNode) @@ -3143,16 +3142,16 @@ module.exports = function ($$$config) { return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -5171,7 +5170,7 @@ module.exports = function ($$$config) { mode: "hidden", children: nextProps.children }); - nextProps.subtreeFlags = JSCompiler_temp$jscomp$0.subtreeFlags & 29360128; + nextProps.subtreeFlags = JSCompiler_temp$jscomp$0.subtreeFlags & 65011712; null !== didSuspend ? (showFallback = createWorkInProgress(didSuspend, showFallback)) : ((showFallback = createFiberFromFragment( @@ -6495,8 +6494,8 @@ module.exports = function ($$$config) { if (didBailout) for (var child$109 = completedWork.child; null !== child$109; ) (newChildLanes |= child$109.lanes | child$109.childLanes), - (subtreeFlags |= child$109.subtreeFlags & 29360128), - (subtreeFlags |= child$109.flags & 29360128), + (subtreeFlags |= child$109.subtreeFlags & 65011712), + (subtreeFlags |= child$109.flags & 65011712), (child$109.return = completedWork), (child$109 = child$109.sibling); else @@ -6975,6 +6974,8 @@ module.exports = function ($$$config) { bubbleProperties(workInProgress)), null ); + case 30: + return null; } throw Error(formatProdErrorMessage(156, workInProgress.tag)); } @@ -8531,6 +8532,7 @@ module.exports = function ($$$config) { ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -8994,6 +8996,7 @@ module.exports = function ($$$config) { break; case 22: nextCache = finishedWork.stateNode; + var current$157 = finishedWork.alternate; null !== finishedWork.memoizedState ? nextCache._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -9023,7 +9026,7 @@ module.exports = function ($$$config) { )); flags & 2048 && commitOffscreenPassiveMountEffects( - finishedWork.alternate, + current$157, finishedWork, nextCache ); @@ -9038,6 +9041,7 @@ module.exports = function ($$$config) { flags & 2048 && commitCachePassiveMountEffect(finishedWork.alternate, finishedWork); break; + case 30: case 25: if (enableTransitionTracing) { recursivelyTraversePassiveMountEffects( @@ -9706,11 +9710,11 @@ module.exports = function ($$$config) { enableTransitionTracing)) ) { var transitionLanesMap = root.transitionLanes, - index$11 = 31 - clz32(lane), - transitions = transitionLanesMap[index$11]; + index$9 = 31 - clz32(lane), + transitions = transitionLanesMap[index$9]; null === transitions && (transitions = new Set()); transitions.add(fiber); - transitionLanesMap[index$11] = transitions; + transitionLanesMap[index$9] = transitions; } root === workInProgressRoot && (0 === (executionContext & 2) && @@ -9861,6 +9865,7 @@ module.exports = function ($$$config) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -9881,6 +9886,7 @@ module.exports = function ($$$config) { forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -9903,6 +9909,7 @@ module.exports = function ($$$config) { finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -9917,12 +9924,13 @@ module.exports = function ($$$config) { root.timeoutHandle = noTimeout; suspendedCommitReason = finishedWork.subtreeFlags; if ( - suspendedCommitReason & 8192 || - 16785408 === (suspendedCommitReason & 16785408) + (suspendedCommitReason = + suspendedCommitReason & 8192 || + 16785408 === (suspendedCommitReason & 16785408)) ) if ( (startSuspendingCommit(), - accumulateSuspenseyCommitOnFiber(finishedWork), + suspendedCommitReason && accumulateSuspenseyCommitOnFiber(finishedWork), (suspendedCommitReason = waitForCommitToBeReady()), null !== suspendedCommitReason) ) { @@ -9934,6 +9942,7 @@ module.exports = function ($$$config) { lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -9953,6 +9962,7 @@ module.exports = function ($$$config) { lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -10018,9 +10028,9 @@ module.exports = function ($$$config) { (root.warmLanes |= suspendedLanes); didAttemptEntireTree = root.expirationTimes; for (var lanes = suspendedLanes; 0 < lanes; ) { - var index$7 = 31 - clz32(lanes), - lane = 1 << index$7; - didAttemptEntireTree[index$7] = -1; + var index$5 = 31 - clz32(lanes), + lane = 1 << index$5; + didAttemptEntireTree[index$5] = -1; lanes &= ~lane; } 0 !== spawnedLane && @@ -10074,6 +10084,7 @@ module.exports = function ($$$config) { workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -10082,9 +10093,9 @@ module.exports = function ($$$config) { 0 < allEntangledLanes; ) { - var index$5 = 31 - clz32(allEntangledLanes), - lane = 1 << index$5; - lanes |= root[index$5]; + var index$3 = 31 - clz32(allEntangledLanes), + lane = 1 << index$3; + lanes |= root[index$3]; allEntangledLanes &= ~lane; } entangledRenderLanes = lanes; @@ -10541,6 +10552,7 @@ module.exports = function ($$$config) { lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -10583,24 +10595,30 @@ module.exports = function ($$$config) { return null; })) : ((root.callbackNode = null), (root.callbackPriority = 0)); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = getCurrentUpdatePriority(); + transitions = getCurrentUpdatePriority(); setCurrentUpdatePriority(2); - transitions = executionContext; + didIncludeRenderPhaseUpdate = executionContext; executionContext |= 4; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - setCurrentUpdatePriority(recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = didIncludeRenderPhaseUpdate), + setCurrentUpdatePriority(transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = 1; flushMutationEffects(); + pendingEffectsStatus = 3; flushLayoutEffects(); } } @@ -10632,7 +10650,7 @@ module.exports = function ($$$config) { } } function flushLayoutEffects() { - if (2 === pendingEffectsStatus) { + if (3 === pendingEffectsStatus) { pendingEffectsStatus = 0; var root = pendingEffectsRoot, finishedWork = pendingFinishedWork, @@ -10658,7 +10676,7 @@ module.exports = function ($$$config) { requestPaint(); 0 !== (finishedWork.subtreeFlags & 10256) || 0 !== (finishedWork.flags & 10256) - ? (pendingEffectsStatus = 3) + ? (pendingEffectsStatus = 4) : ((pendingEffectsStatus = 0), (pendingEffectsRoot = null), releaseRootPooledCache(root, root.pendingLanes)); @@ -10729,10 +10747,12 @@ module.exports = function ($$$config) { function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + 2 === pendingEffectsStatus && + ((pendingEffectsStatus = 0), (pendingEffectsStatus = 3)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects(wasDelayedCommit) { - if (3 !== pendingEffectsStatus) return !1; + if (4 !== pendingEffectsStatus) return !1; var root = pendingEffectsRoot, remainingLanes = pendingEffectsRemainingLanes; pendingEffectsRemainingLanes = 0; @@ -11003,7 +11023,7 @@ module.exports = function ($$$config) { (workInProgress.flags = 0), (workInProgress.subtreeFlags = 0), (workInProgress.deletions = null)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -11025,7 +11045,7 @@ module.exports = function ($$$config) { return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -11129,6 +11149,7 @@ module.exports = function ($$$config) { return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: return createFiberFromLegacyHidden(pendingProps, mode, lanes, key); + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -11419,8 +11440,6 @@ module.exports = function ($$$config) { dynamicFeatureFlags.disableDefaultPropsExceptForClasses, disableSchedulerTimeoutInWorkLoop = dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop, - enableDeferRootSchedulingToMicrotask = - dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask, enableDO_NOT_USE_disableStrictPassiveEffect = dynamicFeatureFlags.enableDO_NOT_USE_disableStrictPassiveEffect, enableHiddenSubtreeInsertionEffectCleanup = @@ -11462,14 +11481,12 @@ module.exports = function ($$$config) { REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - prefix, - suffix, - reentry = !1, - isArrayImpl = Array.isArray, rendererVersion = $$$config.rendererVersion, rendererPackageName = $$$config.rendererPackageName, extraDevToolsConfig = $$$config.extraDevToolsConfig, @@ -11509,8 +11526,9 @@ module.exports = function ($$$config) { maySuspendCommit = $$$config.maySuspendCommit, preloadInstance = $$$config.preloadInstance, startSuspendingCommit = $$$config.startSuspendingCommit, - suspendInstance = $$$config.suspendInstance, - waitForCommitToBeReady = $$$config.waitForCommitToBeReady, + suspendInstance = $$$config.suspendInstance; + $$$config.suspendOnActiveViewTransition; + var waitForCommitToBeReady = $$$config.waitForCommitToBeReady, NotPendingTransition = $$$config.NotPendingTransition, HostTransitionContext = $$$config.HostTransitionContext, resetFormInstance = $$$config.resetFormInstance; @@ -11538,8 +11556,14 @@ module.exports = function ($$$config) { hideInstance = $$$config.hideInstance, hideTextInstance = $$$config.hideTextInstance, unhideInstance = $$$config.unhideInstance, - unhideTextInstance = $$$config.unhideTextInstance, - clearContainer = $$$config.clearContainer, + unhideTextInstance = $$$config.unhideTextInstance; + $$$config.cancelViewTransitionName; + $$$config.cancelRootViewTransitionName; + $$$config.restoreRootViewTransitionName; + $$$config.hasInstanceChanged; + $$$config.hasInstanceAffectedParent; + $$$config.startViewTransition; + var clearContainer = $$$config.clearContainer, cloneInstance = $$$config.cloneInstance, createContainerChildSet = $$$config.createContainerChildSet, appendChildToContainerChildSet = $$$config.appendChildToContainerChildSet, @@ -11622,6 +11646,9 @@ module.exports = function ($$$config) { rendererID = null, injectedHook = null, objectIs = "function" === typeof Object.is ? Object.is : is, + prefix, + suffix, + reentry = !1, CapturedStacks = new WeakMap(), forkStack = [], forkStackIndex = 0, @@ -12063,11 +12090,6 @@ module.exports = function ($$$config) { shellBoundary = null, suspenseStackCursor = createCursor(0), classComponentUpdater = { - isMounted: function (component) { - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(), @@ -12204,6 +12226,7 @@ module.exports = function ($$$config) { workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, didIncludeCommitPhaseUpdate = !1, globalMostRecentFallbackTime = 0, @@ -12573,7 +12596,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-modern-98418e89-20250108" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 373454dcde817..e7768646ec41d 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -13,7 +13,7 @@ "use strict"; __DEV__ && (function () { - function JSCompiler_object_inline_createNodeMock_1116() { + function JSCompiler_object_inline_createNodeMock_1124() { return null; } function findHook(fiber, id) { @@ -168,419 +168,6 @@ __DEV__ && staticProps && _defineProperties(Constructor, staticProps); return Constructor; } - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) - return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - } - if ("object" === typeof type) - switch ( - ("number" === typeof type.tag && - error$jscomp$0( - "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." - ), - type.$$typeof) - ) { - case REACT_PROVIDER_TYPE: - return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return (type.displayName || "Context") + ".Consumer"; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; - } - function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return (type.displayName || "Context") + ".Consumer"; - case 10: - return (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return ( - (fiber = type.render), - (fiber = fiber.displayName || fiber.name || ""), - type.displayName || - ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") - ); - case 7: - return "Fragment"; - case 26: - case 27: - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 14: - case 15: - if ("function" === typeof type) - return type.displayName || type.name || null; - if ("string" === typeof type) return type; - break; - case 29: - type = fiber._debugInfo; - if (null != type) - for (var i = type.length - 1; 0 <= i; i--) - if ("string" === typeof type[i].name) return type[i].name; - if (null !== fiber.return) - return getComponentNameFromFiber(fiber.return); - } - return null; - } - function disabledLog() {} - function disableLogs() { - if (0 === disabledDepth) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: !0, - enumerable: !0, - value: disabledLog, - writable: !0 - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; - } - function reenableLogs() { - disabledDepth--; - if (0 === disabledDepth) { - var props = { configurable: !0, enumerable: !0, writable: !0 }; - Object.defineProperties(console, { - log: assign({}, props, { value: prevLog }), - info: assign({}, props, { value: prevInfo }), - warn: assign({}, props, { value: prevWarn }), - error: assign({}, props, { value: prevError }), - group: assign({}, props, { value: prevGroup }), - groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), - groupEnd: assign({}, props, { value: prevGroupEnd }) - }); - } - 0 > disabledDepth && - error$jscomp$0( - "disabledDepth fell below zero. This is a bug in React. Please file an issue." - ); - } - function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - var frame = componentFrameCache.get(fn); - if (void 0 !== frame) return frame; - reentry = !0; - frame = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher = null; - previousDispatcher = ReactSharedInternals.H; - ReactSharedInternals.H = null; - disableLogs(); - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$0) { - control = x$0; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$1) { - control = x$1; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = - RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - _RunInRootFrame$Deter = namePropDescriptor = 0; - namePropDescriptor < sampleLines.length && - !sampleLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - for ( - ; - _RunInRootFrame$Deter < controlLines.length && - !controlLines[_RunInRootFrame$Deter].includes( - "DetermineComponentFrameRoot" - ); - - ) - _RunInRootFrame$Deter++; - if ( - namePropDescriptor === sampleLines.length || - _RunInRootFrame$Deter === controlLines.length - ) - for ( - namePropDescriptor = sampleLines.length - 1, - _RunInRootFrame$Deter = controlLines.length - 1; - 1 <= namePropDescriptor && - 0 <= _RunInRootFrame$Deter && - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]; - - ) - _RunInRootFrame$Deter--; - for ( - ; - 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; - namePropDescriptor--, _RunInRootFrame$Deter-- - ) - if ( - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter] - ) { - if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { - do - if ( - (namePropDescriptor--, - _RunInRootFrame$Deter--, - 0 > _RunInRootFrame$Deter || - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]) - ) { - var _frame = - "\n" + - sampleLines[namePropDescriptor].replace( - " at new ", - " at " - ); - fn.displayName && - _frame.includes("") && - (_frame = _frame.replace("", fn.displayName)); - "function" === typeof fn && - componentFrameCache.set(fn, _frame); - return _frame; - } - while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); - } - break; - } - } - } finally { - (reentry = !1), - (ReactSharedInternals.H = previousDispatcher), - reenableLogs(), - (Error.prepareStackTrace = frame); - } - sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(sampleLines) - : ""; - "function" === typeof fn && componentFrameCache.set(fn, sampleLines); - return sampleLines; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do { - info += describeFiber(workInProgress); - var debugInfo = workInProgress._debugInfo; - if (debugInfo) - for (var i = debugInfo.length - 1; 0 <= i; i--) { - var entry = debugInfo[i]; - if ("string" === typeof entry.name) { - var JSCompiler_temp_const = info, - env = entry.env; - var JSCompiler_inline_result = describeBuiltInComponentFrame( - entry.name + (env ? " [" + env + "]" : "") - ); - info = JSCompiler_temp_const + JSCompiler_inline_result; - } - } - workInProgress = workInProgress.return; - } while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function getCurrentFiberStackInDev() { - return null === current ? "" : getStackByFiberInDevAndProd(current); - } - function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { - var previousFiber = current; - ReactSharedInternals.getCurrentStack = - null === fiber ? null : getCurrentFiberStackInDev; - isRendering = !1; - current = fiber; - try { - return callback(arg0, arg1, arg2, arg3, arg4); - } finally { - current = previousFiber; - } - throw Error( - "runWithFiberInDEV should never be called in production. This is a bug in React." - ); - } function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; @@ -666,22 +253,150 @@ __DEV__ && ); } } - if (a.alternate !== b) - throw Error( - "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." + if (a.alternate !== b) + throw Error( + "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." + ); + } + if (3 !== a.tag) + throw Error("Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + function isFiberSuspenseAndTimedOut(fiber) { + var memoizedState = fiber.memoizedState; + return ( + 13 === fiber.tag && + null !== memoizedState && + null === memoizedState.dehydrated + ); + } + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) + return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if ("object" === typeof type) + switch ( + ("number" === typeof type.tag && + error$jscomp$0( + "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." + ), + type.$$typeof) + ) { + case REACT_PROVIDER_TYPE: + return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return (type.displayName || "Context") + ".Consumer"; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return (type.displayName || "Context") + ".Consumer"; + case 10: + return (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; + break; + case 29: + type = fiber._debugInfo; + if (null != type) + for (var i = type.length - 1; 0 <= i; i--) + if ("string" === typeof type[i].name) return type[i].name; + if (null !== fiber.return) + return getComponentNameFromFiber(fiber.return); } - if (3 !== a.tag) - throw Error("Unable to find node on an unmounted component."); - return a.stateNode.current === a ? fiber : alternate; - } - function isFiberSuspenseAndTimedOut(fiber) { - var memoizedState = fiber.memoizedState; - return ( - 13 === fiber.tag && - null !== memoizedState && - null === memoizedState.dehydrated - ); + return null; } function injectInternals(internals) { if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; @@ -1132,48 +847,315 @@ __DEV__ && )), parentContext ); - instance = instance.getChildContext(); - for (var contextKey in instance) - if (!(contextKey in type)) - throw Error( - (getComponentNameFromFiber(fiber) || "Unknown") + - '.getChildContext(): key "' + - contextKey + - '" is not defined in childContextTypes.' + instance = instance.getChildContext(); + for (var contextKey in instance) + if (!(contextKey in type)) + throw Error( + (getComponentNameFromFiber(fiber) || "Unknown") + + '.getChildContext(): key "' + + contextKey + + '" is not defined in childContextTypes.' + ); + return assign({}, parentContext, instance); + } + function pushContextProvider(workInProgress) { + var instance = workInProgress.stateNode; + instance = + (instance && instance.__reactInternalMemoizedMergedChildContext) || + emptyContextObject; + previousContext = contextStackCursor$1.current; + push(contextStackCursor$1, instance, workInProgress); + push( + didPerformWorkStackCursor, + didPerformWorkStackCursor.current, + workInProgress + ); + return !0; + } + function invalidateContextProvider(workInProgress, type, didChange) { + var instance = workInProgress.stateNode; + if (!instance) + throw Error( + "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." + ); + didChange + ? ((type = processChildContext(workInProgress, type, previousContext)), + (instance.__reactInternalMemoizedMergedChildContext = type), + pop(didPerformWorkStackCursor, workInProgress), + pop(contextStackCursor$1, workInProgress), + push(contextStackCursor$1, type, workInProgress)) + : pop(didPerformWorkStackCursor, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } + function is(x, y) { + return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); + } + function disabledLog() {} + function disableLogs() { + if (0 === disabledDepth) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: !0, + enumerable: !0, + value: disabledLog, + writable: !0 + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + function reenableLogs() { + disabledDepth--; + if (0 === disabledDepth) { + var props = { configurable: !0, enumerable: !0, writable: !0 }; + Object.defineProperties(console, { + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) + }); + } + 0 > disabledDepth && + error$jscomp$0( + "disabledDepth fell below zero. This is a bug in React. Please file an issue." + ); + } + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + var frame = componentFrameCache.get(fn); + if (void 0 !== frame) return frame; + reentry = !0; + frame = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher = null; + previousDispatcher = ReactSharedInternals.H; + ReactSharedInternals.H = null; + disableLogs(); + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$0) { + control = x$0; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$1) { + control = x$1; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } ); - return assign({}, parentContext, instance); - } - function pushContextProvider(workInProgress) { - var instance = workInProgress.stateNode; - instance = - (instance && instance.__reactInternalMemoizedMergedChildContext) || - emptyContextObject; - previousContext = contextStackCursor$1.current; - push(contextStackCursor$1, instance, workInProgress); - push( - didPerformWorkStackCursor, - didPerformWorkStackCursor.current, - workInProgress - ); - return !0; + var _RunInRootFrame$Deter = + RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + _RunInRootFrame$Deter = namePropDescriptor = 0; + namePropDescriptor < sampleLines.length && + !sampleLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + for ( + ; + _RunInRootFrame$Deter < controlLines.length && + !controlLines[_RunInRootFrame$Deter].includes( + "DetermineComponentFrameRoot" + ); + + ) + _RunInRootFrame$Deter++; + if ( + namePropDescriptor === sampleLines.length || + _RunInRootFrame$Deter === controlLines.length + ) + for ( + namePropDescriptor = sampleLines.length - 1, + _RunInRootFrame$Deter = controlLines.length - 1; + 1 <= namePropDescriptor && + 0 <= _RunInRootFrame$Deter && + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]; + + ) + _RunInRootFrame$Deter--; + for ( + ; + 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; + namePropDescriptor--, _RunInRootFrame$Deter-- + ) + if ( + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter] + ) { + if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { + do + if ( + (namePropDescriptor--, + _RunInRootFrame$Deter--, + 0 > _RunInRootFrame$Deter || + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]) + ) { + var _frame = + "\n" + + sampleLines[namePropDescriptor].replace( + " at new ", + " at " + ); + fn.displayName && + _frame.includes("") && + (_frame = _frame.replace("", fn.displayName)); + "function" === typeof fn && + componentFrameCache.set(fn, _frame); + return _frame; + } + while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); + } + break; + } + } + } finally { + (reentry = !1), + (ReactSharedInternals.H = previousDispatcher), + reenableLogs(), + (Error.prepareStackTrace = frame); + } + sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(sampleLines) + : ""; + "function" === typeof fn && componentFrameCache.set(fn, sampleLines); + return sampleLines; } - function invalidateContextProvider(workInProgress, type, didChange) { - var instance = workInProgress.stateNode; - if (!instance) - throw Error( - "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." - ); - didChange - ? ((type = processChildContext(workInProgress, type, previousContext)), - (instance.__reactInternalMemoizedMergedChildContext = type), - pop(didPerformWorkStackCursor, workInProgress), - pop(contextStackCursor$1, workInProgress), - push(contextStackCursor$1, type, workInProgress)) - : pop(didPerformWorkStackCursor, workInProgress); - push(didPerformWorkStackCursor, didChange, workInProgress); + function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } } - function is(x, y) { - return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do { + info += describeFiber(workInProgress); + var debugInfo = workInProgress._debugInfo; + if (debugInfo) + for (var i = debugInfo.length - 1; 0 <= i; i--) { + var entry = debugInfo[i]; + if ("string" === typeof entry.name) { + var JSCompiler_temp_const = info, + env = entry.env; + var JSCompiler_inline_result = describeBuiltInComponentFrame( + entry.name + (env ? " [" + env + "]" : "") + ); + info = JSCompiler_temp_const + JSCompiler_inline_result; + } + } + workInProgress = workInProgress.return; + } while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } function createCapturedValueAtFiber(value, source) { if ("object" === typeof value && null !== value) { @@ -2281,6 +2263,24 @@ __DEV__ && } return !0; } + function getCurrentFiberStackInDev() { + return null === current ? "" : getStackByFiberInDevAndProd(current); + } + function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { + var previousFiber = current; + ReactSharedInternals.getCurrentStack = + null === fiber ? null : getCurrentFiberStackInDev; + isRendering = !1; + current = fiber; + try { + return callback(arg0, arg1, arg2, arg3, arg4); + } finally { + current = previousFiber; + } + throw Error( + "runWithFiberInDEV should never be called in production. This is a bug in React." + ); + } function createThenableState() { return { didWarnAboutUncachedPromise: !1, thenables: [] }; } @@ -2965,7 +2965,7 @@ __DEV__ && null; hookTypesUpdateIndexDev = -1; null !== current && - (current.flags & 29360128) !== (workInProgress.flags & 29360128) && + (current.flags & 65011712) !== (workInProgress.flags & 65011712) && error$jscomp$0( "Internal React error: Expected static flag was missing. Please notify the React team." ); @@ -3038,7 +3038,7 @@ __DEV__ && workInProgress.updateQueue = current.updateQueue; workInProgress.flags = 0 !== (workInProgress.mode & 16) - ? workInProgress.flags & -201328645 + ? workInProgress.flags & -402655237 : workInProgress.flags & -2053; current.lanes &= ~lanes; } @@ -3826,12 +3826,12 @@ __DEV__ && function mountEffect(create, deps) { 0 !== (currentlyRenderingFiber.mode & 16) && 0 === (currentlyRenderingFiber.mode & 64) - ? mountEffectImpl(142608384, Passive, create, deps) + ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps); } function mountLayoutEffect(create, deps) { var fiberFlags = 4194308; - 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 67108864); + 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 134217728); return mountEffectImpl(fiberFlags, Layout, create, deps); } function imperativeHandleEffect(create, ref) { @@ -3864,7 +3864,7 @@ __DEV__ && ); deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; var fiberFlags = 4194308; - 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 67108864); + 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 134217728); mountEffectImpl( fiberFlags, Layout, @@ -4387,16 +4387,16 @@ __DEV__ && return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -6463,7 +6463,7 @@ __DEV__ && (state.state = workInProgress.memoizedState)); "function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308); - 0 !== (workInProgress.mode & 16) && (workInProgress.flags |= 67108864); + 0 !== (workInProgress.mode & 16) && (workInProgress.flags |= 134217728); state = !0; } else if (null === current$jscomp$0) (state = workInProgress.stateNode), @@ -6533,11 +6533,11 @@ __DEV__ && "function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), 0 !== (workInProgress.mode & 16) && - (workInProgress.flags |= 67108864)) + (workInProgress.flags |= 134217728)) : ("function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), 0 !== (workInProgress.mode & 16) && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (workInProgress.memoizedProps = nextProps), (workInProgress.memoizedState = state$jscomp$0)), (state.props = nextProps), @@ -6547,7 +6547,7 @@ __DEV__ && : ("function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), 0 !== (workInProgress.mode & 16) && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (state = !1)); else { state = workInProgress.stateNode; @@ -7001,7 +7001,7 @@ __DEV__ && mode: "hidden", children: nextProps.children }); - nextProps.subtreeFlags = didSuspend.subtreeFlags & 29360128; + nextProps.subtreeFlags = didSuspend.subtreeFlags & 65011712; null !== currentFallbackChildFragment ? (nextPrimaryChildren = createWorkInProgress( currentFallbackChildFragment, @@ -8058,8 +8058,8 @@ __DEV__ && ) (newChildLanes |= _child2.lanes | _child2.childLanes), - (subtreeFlags |= _child2.subtreeFlags & 29360128), - (subtreeFlags |= _child2.flags & 29360128), + (subtreeFlags |= _child2.subtreeFlags & 65011712), + (subtreeFlags |= _child2.flags & 65011712), (_treeBaseDuration += _child2.treeBaseDuration), (_child2 = _child2.sibling); completedWork.treeBaseDuration = _treeBaseDuration; @@ -8071,8 +8071,8 @@ __DEV__ && ) (newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes), - (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128), - (subtreeFlags |= _treeBaseDuration.flags & 29360128), + (subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712), + (subtreeFlags |= _treeBaseDuration.flags & 65011712), (_treeBaseDuration.return = completedWork), (_treeBaseDuration = _treeBaseDuration.sibling); else if (0 !== (completedWork.mode & 2)) { @@ -8484,6 +8484,8 @@ __DEV__ && ); case 25: return null; + case 30: + return null; } throw Error( "Unknown unit of work tag (" + @@ -9910,6 +9912,7 @@ __DEV__ && ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -10219,7 +10222,7 @@ __DEV__ && break; case 12: if (flags & 2048) { - prevEffectDuration = pushNestedEffectDurations(); + flags = pushNestedEffectDurations(); recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, @@ -10228,7 +10231,7 @@ __DEV__ && ); finishedRoot = finishedWork.stateNode; finishedRoot.passiveEffectDuration += - bubbleNestedEffectDurations(prevEffectDuration); + bubbleNestedEffectDurations(flags); try { runWithFiberInDEV( finishedWork, @@ -10265,6 +10268,7 @@ __DEV__ && break; case 22: prevEffectDuration = finishedWork.stateNode; + var _current = finishedWork.alternate; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -10293,10 +10297,7 @@ __DEV__ && 0 !== (finishedWork.subtreeFlags & 10256) )); flags & 2048 && - commitOffscreenPassiveMountEffects( - finishedWork.alternate, - finishedWork - ); + commitOffscreenPassiveMountEffects(_current, finishedWork); break; case 24: recursivelyTraversePassiveMountEffects( @@ -10863,6 +10864,7 @@ __DEV__ && lanes, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, @@ -10891,6 +10893,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -10911,6 +10914,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -10934,6 +10938,7 @@ __DEV__ && finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -10942,7 +10947,9 @@ __DEV__ && ) { root.timeoutHandle = -1; var subtreeFlags = finishedWork.subtreeFlags; - (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) && + (subtreeFlags = + subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) && + subtreeFlags && accumulateSuspenseyCommitOnFiber(finishedWork); commitRoot( root, @@ -10950,6 +10957,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11079,6 +11087,7 @@ __DEV__ && workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -11584,6 +11593,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11635,24 +11645,30 @@ __DEV__ && })) : ((root.callbackNode = null), (root.callbackPriority = 0)); commitStartTime = now(); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = currentUpdatePriority; + transitions = currentUpdatePriority; currentUpdatePriority = DiscreteEventPriority; - transitions = executionContext; + spawnedLane = executionContext; executionContext |= CommitContext; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (currentUpdatePriority = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = spawnedLane), + (currentUpdatePriority = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = PENDING_MUTATION_PHASE; flushMutationEffects(); + pendingEffectsStatus = PENDING_LAYOUT_PHASE; flushLayoutEffects(); } } @@ -11681,7 +11697,7 @@ __DEV__ && } } root.current = finishedWork; - pendingEffectsStatus = PENDING_LAYOUT_PHASE; + pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; } } function flushLayoutEffects() { @@ -11821,6 +11837,9 @@ __DEV__ && function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE && + ((pendingEffectsStatus = NO_PENDING_EFFECTS), + (pendingEffectsStatus = PENDING_LAYOUT_PHASE)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects() { @@ -12029,14 +12048,14 @@ __DEV__ && parentFiber, isInStrictMode ) { - if (0 !== (parentFiber.subtreeFlags & 33562624)) + if (0 !== (parentFiber.subtreeFlags & 67117056)) for (parentFiber = parentFiber.child; null !== parentFiber; ) { var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; isStrictModeFiber = isInStrictMode || isStrictModeFiber; 22 !== fiber.tag - ? fiber.flags & 33554432 + ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV( fiber, @@ -12058,7 +12077,7 @@ __DEV__ && root, fiber ) - : fiber.subtreeFlags & 33554432 && + : fiber.subtreeFlags & 67108864 && runWithFiberInDEV( fiber, recursivelyTraverseAndDoubleInvokeEffectsInDEV, @@ -12313,7 +12332,7 @@ __DEV__ && (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -12351,7 +12370,7 @@ __DEV__ && return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -12449,6 +12468,7 @@ __DEV__ && case REACT_OFFSCREEN_TYPE: return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -12730,13 +12750,6 @@ __DEV__ && a: if (parentComponent) { parentComponent = parentComponent._reactInternals; b: { - if ( - getNearestMountedFiber(parentComponent) !== parentComponent || - 1 !== parentComponent.tag - ) - throw Error( - "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." - ); var parentContext = parentComponent; do { switch (parentContext.tag) { @@ -13014,28 +13027,12 @@ __DEV__ && REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"); Symbol.for("react.tracing_marker"); var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - disabledDepth = 0, - prevLog, - prevInfo, - prevWarn, - prevError, - prevGroup, - prevGroupCollapsed, - prevGroupEnd; - disabledLog.__reactDisabledLog = !0; - var prefix, - suffix, - reentry = !1; - var componentFrameCache = new ( - "function" === typeof WeakMap ? WeakMap : Map - )(); - var current = null, - isRendering = !1, - isArrayImpl = Array.isArray, scheduleCallback$3 = Scheduler$1.unstable_scheduleCallback, cancelCallback$1 = Scheduler$1.unstable_cancelCallback, shouldYield = Scheduler$1.unstable_shouldYield, @@ -13096,7 +13093,22 @@ __DEV__ && didPerformWorkStackCursor = createCursor(!1), previousContext = emptyContextObject, objectIs = "function" === typeof Object.is ? Object.is : is, - CapturedStacks = new WeakMap(), + disabledDepth = 0, + prevLog, + prevInfo, + prevWarn, + prevError, + prevGroup, + prevGroupCollapsed, + prevGroupEnd; + disabledLog.__reactDisabledLog = !0; + var prefix, + suffix, + reentry = !1; + var componentFrameCache = new ( + "function" === typeof WeakMap ? WeakMap : Map + )(); + var CapturedStacks = new WeakMap(), contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), @@ -13169,6 +13181,8 @@ __DEV__ && }; var resumedCache = createCursor(null), hasOwnProperty = Object.prototype.hasOwnProperty, + current = null, + isRendering = !1, ReactStrictModeWarnings = { recordUnsafeLifecycleWarnings: function () {}, flushPendingUnsafeLifecycleWarnings: function () {}, @@ -14574,21 +14588,6 @@ __DEV__ && var didWarnOnInvalidCallback = new Set(); Object.freeze(fakeInternalInstance); var classComponentUpdater = { - isMounted: function (component) { - var owner = current; - if (null !== owner && isRendering && 1 === owner.tag) { - var instance = owner.stateNode; - instance._warnedAboutRefsInRender || - error$jscomp$0( - "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", - getComponentNameFromFiber(owner) || "A component" - ); - instance._warnedAboutRefsInRender = !0; - } - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(inst), @@ -14749,6 +14748,7 @@ __DEV__ && workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, globalMostRecentFallbackTime = 0, FALLBACK_THROTTLE_MS = 300, @@ -14760,8 +14760,9 @@ __DEV__ && THROTTLED_COMMIT = 2, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, - PENDING_LAYOUT_PHASE = 2, - PENDING_PASSIVE_PHASE = 3, + PENDING_AFTER_MUTATION_PHASE = 2, + PENDING_LAYOUT_PHASE = 3, + PENDING_PASSIVE_PHASE = 4, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, @@ -14995,10 +14996,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-defffdbb-20250106", + version: "19.1.0-www-classic-98418e89-20250108", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-classic-98418e89-20250108" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15018,7 +15019,7 @@ __DEV__ && exports._Scheduler = Scheduler; exports.act = act; exports.create = function (element, options) { - var createNodeMock = JSCompiler_object_inline_createNodeMock_1116, + var createNodeMock = JSCompiler_object_inline_createNodeMock_1124, isConcurrentOnly = !0 !== global.IS_REACT_NATIVE_TEST_ENVIRONMENT, isConcurrent = isConcurrentOnly, isStrictMode = !1; @@ -15133,5 +15134,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-classic-defffdbb-20250106"; + exports.version = "19.1.0-www-classic-98418e89-20250108"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index a5c1283288d40..56f6633709ab7 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -13,7 +13,7 @@ "use strict"; __DEV__ && (function () { - function JSCompiler_object_inline_createNodeMock_1116() { + function JSCompiler_object_inline_createNodeMock_1124() { return null; } function findHook(fiber, id) { @@ -168,419 +168,6 @@ __DEV__ && staticProps && _defineProperties(Constructor, staticProps); return Constructor; } - function getIteratorFn(maybeIterable) { - if (null === maybeIterable || "object" !== typeof maybeIterable) - return null; - maybeIterable = - (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || - maybeIterable["@@iterator"]; - return "function" === typeof maybeIterable ? maybeIterable : null; - } - function getComponentNameFromType(type) { - if (null == type) return null; - if ("function" === typeof type) - return type.$$typeof === REACT_CLIENT_REFERENCE - ? null - : type.displayName || type.name || null; - if ("string" === typeof type) return type; - switch (type) { - case REACT_FRAGMENT_TYPE: - return "Fragment"; - case REACT_PORTAL_TYPE: - return "Portal"; - case REACT_PROFILER_TYPE: - return "Profiler"; - case REACT_STRICT_MODE_TYPE: - return "StrictMode"; - case REACT_SUSPENSE_TYPE: - return "Suspense"; - case REACT_SUSPENSE_LIST_TYPE: - return "SuspenseList"; - } - if ("object" === typeof type) - switch ( - ("number" === typeof type.tag && - error$jscomp$0( - "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." - ), - type.$$typeof) - ) { - case REACT_PROVIDER_TYPE: - return (type._context.displayName || "Context") + ".Provider"; - case REACT_CONTEXT_TYPE: - return (type.displayName || "Context") + ".Consumer"; - case REACT_FORWARD_REF_TYPE: - var innerType = type.render; - type = type.displayName; - type || - ((type = innerType.displayName || innerType.name || ""), - (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); - return type; - case REACT_MEMO_TYPE: - return ( - (innerType = type.displayName || null), - null !== innerType - ? innerType - : getComponentNameFromType(type.type) || "Memo" - ); - case REACT_LAZY_TYPE: - innerType = type._payload; - type = type._init; - try { - return getComponentNameFromType(type(innerType)); - } catch (x) {} - } - return null; - } - function getComponentNameFromFiber(fiber) { - var type = fiber.type; - switch (fiber.tag) { - case 24: - return "Cache"; - case 9: - return (type.displayName || "Context") + ".Consumer"; - case 10: - return (type._context.displayName || "Context") + ".Provider"; - case 18: - return "DehydratedFragment"; - case 11: - return ( - (fiber = type.render), - (fiber = fiber.displayName || fiber.name || ""), - type.displayName || - ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") - ); - case 7: - return "Fragment"; - case 26: - case 27: - case 5: - return type; - case 4: - return "Portal"; - case 3: - return "Root"; - case 6: - return "Text"; - case 16: - return getComponentNameFromType(type); - case 8: - return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; - case 22: - return "Offscreen"; - case 12: - return "Profiler"; - case 21: - return "Scope"; - case 13: - return "Suspense"; - case 19: - return "SuspenseList"; - case 25: - return "TracingMarker"; - case 1: - case 0: - case 14: - case 15: - if ("function" === typeof type) - return type.displayName || type.name || null; - if ("string" === typeof type) return type; - break; - case 29: - type = fiber._debugInfo; - if (null != type) - for (var i = type.length - 1; 0 <= i; i--) - if ("string" === typeof type[i].name) return type[i].name; - if (null !== fiber.return) - return getComponentNameFromFiber(fiber.return); - } - return null; - } - function disabledLog() {} - function disableLogs() { - if (0 === disabledDepth) { - prevLog = console.log; - prevInfo = console.info; - prevWarn = console.warn; - prevError = console.error; - prevGroup = console.group; - prevGroupCollapsed = console.groupCollapsed; - prevGroupEnd = console.groupEnd; - var props = { - configurable: !0, - enumerable: !0, - value: disabledLog, - writable: !0 - }; - Object.defineProperties(console, { - info: props, - log: props, - warn: props, - error: props, - group: props, - groupCollapsed: props, - groupEnd: props - }); - } - disabledDepth++; - } - function reenableLogs() { - disabledDepth--; - if (0 === disabledDepth) { - var props = { configurable: !0, enumerable: !0, writable: !0 }; - Object.defineProperties(console, { - log: assign({}, props, { value: prevLog }), - info: assign({}, props, { value: prevInfo }), - warn: assign({}, props, { value: prevWarn }), - error: assign({}, props, { value: prevError }), - group: assign({}, props, { value: prevGroup }), - groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), - groupEnd: assign({}, props, { value: prevGroupEnd }) - }); - } - 0 > disabledDepth && - error$jscomp$0( - "disabledDepth fell below zero. This is a bug in React. Please file an issue." - ); - } - function describeBuiltInComponentFrame(name) { - if (void 0 === prefix) - try { - throw Error(); - } catch (x) { - var match = x.stack.trim().match(/\n( *(at )?)/); - prefix = (match && match[1]) || ""; - suffix = - -1 < x.stack.indexOf("\n at") - ? " ()" - : -1 < x.stack.indexOf("@") - ? "@unknown:0:0" - : ""; - } - return "\n" + prefix + name + suffix; - } - function describeNativeComponentFrame(fn, construct) { - if (!fn || reentry) return ""; - var frame = componentFrameCache.get(fn); - if (void 0 !== frame) return frame; - reentry = !0; - frame = Error.prepareStackTrace; - Error.prepareStackTrace = void 0; - var previousDispatcher = null; - previousDispatcher = ReactSharedInternals.H; - ReactSharedInternals.H = null; - disableLogs(); - try { - var RunInRootFrame = { - DetermineComponentFrameRoot: function () { - try { - if (construct) { - var Fake = function () { - throw Error(); - }; - Object.defineProperty(Fake.prototype, "props", { - set: function () { - throw Error(); - } - }); - if ("object" === typeof Reflect && Reflect.construct) { - try { - Reflect.construct(Fake, []); - } catch (x) { - var control = x; - } - Reflect.construct(fn, [], Fake); - } else { - try { - Fake.call(); - } catch (x$0) { - control = x$0; - } - fn.call(Fake.prototype); - } - } else { - try { - throw Error(); - } catch (x$1) { - control = x$1; - } - (Fake = fn()) && - "function" === typeof Fake.catch && - Fake.catch(function () {}); - } - } catch (sample) { - if (sample && control && "string" === typeof sample.stack) - return [sample.stack, control.stack]; - } - return [null, null]; - } - }; - RunInRootFrame.DetermineComponentFrameRoot.displayName = - "DetermineComponentFrameRoot"; - var namePropDescriptor = Object.getOwnPropertyDescriptor( - RunInRootFrame.DetermineComponentFrameRoot, - "name" - ); - namePropDescriptor && - namePropDescriptor.configurable && - Object.defineProperty( - RunInRootFrame.DetermineComponentFrameRoot, - "name", - { value: "DetermineComponentFrameRoot" } - ); - var _RunInRootFrame$Deter = - RunInRootFrame.DetermineComponentFrameRoot(), - sampleStack = _RunInRootFrame$Deter[0], - controlStack = _RunInRootFrame$Deter[1]; - if (sampleStack && controlStack) { - var sampleLines = sampleStack.split("\n"), - controlLines = controlStack.split("\n"); - for ( - _RunInRootFrame$Deter = namePropDescriptor = 0; - namePropDescriptor < sampleLines.length && - !sampleLines[namePropDescriptor].includes( - "DetermineComponentFrameRoot" - ); - - ) - namePropDescriptor++; - for ( - ; - _RunInRootFrame$Deter < controlLines.length && - !controlLines[_RunInRootFrame$Deter].includes( - "DetermineComponentFrameRoot" - ); - - ) - _RunInRootFrame$Deter++; - if ( - namePropDescriptor === sampleLines.length || - _RunInRootFrame$Deter === controlLines.length - ) - for ( - namePropDescriptor = sampleLines.length - 1, - _RunInRootFrame$Deter = controlLines.length - 1; - 1 <= namePropDescriptor && - 0 <= _RunInRootFrame$Deter && - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]; - - ) - _RunInRootFrame$Deter--; - for ( - ; - 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; - namePropDescriptor--, _RunInRootFrame$Deter-- - ) - if ( - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter] - ) { - if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { - do - if ( - (namePropDescriptor--, - _RunInRootFrame$Deter--, - 0 > _RunInRootFrame$Deter || - sampleLines[namePropDescriptor] !== - controlLines[_RunInRootFrame$Deter]) - ) { - var _frame = - "\n" + - sampleLines[namePropDescriptor].replace( - " at new ", - " at " - ); - fn.displayName && - _frame.includes("") && - (_frame = _frame.replace("", fn.displayName)); - "function" === typeof fn && - componentFrameCache.set(fn, _frame); - return _frame; - } - while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); - } - break; - } - } - } finally { - (reentry = !1), - (ReactSharedInternals.H = previousDispatcher), - reenableLogs(), - (Error.prepareStackTrace = frame); - } - sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") - ? describeBuiltInComponentFrame(sampleLines) - : ""; - "function" === typeof fn && componentFrameCache.set(fn, sampleLines); - return sampleLines; - } - function describeFiber(fiber) { - switch (fiber.tag) { - case 26: - case 27: - case 5: - return describeBuiltInComponentFrame(fiber.type); - case 16: - return describeBuiltInComponentFrame("Lazy"); - case 13: - return describeBuiltInComponentFrame("Suspense"); - case 19: - return describeBuiltInComponentFrame("SuspenseList"); - case 0: - case 15: - return describeNativeComponentFrame(fiber.type, !1); - case 11: - return describeNativeComponentFrame(fiber.type.render, !1); - case 1: - return describeNativeComponentFrame(fiber.type, !0); - default: - return ""; - } - } - function getStackByFiberInDevAndProd(workInProgress) { - try { - var info = ""; - do { - info += describeFiber(workInProgress); - var debugInfo = workInProgress._debugInfo; - if (debugInfo) - for (var i = debugInfo.length - 1; 0 <= i; i--) { - var entry = debugInfo[i]; - if ("string" === typeof entry.name) { - var JSCompiler_temp_const = info, - env = entry.env; - var JSCompiler_inline_result = describeBuiltInComponentFrame( - entry.name + (env ? " [" + env + "]" : "") - ); - info = JSCompiler_temp_const + JSCompiler_inline_result; - } - } - workInProgress = workInProgress.return; - } while (workInProgress); - return info; - } catch (x) { - return "\nError generating stack: " + x.message + "\n" + x.stack; - } - } - function getCurrentFiberStackInDev() { - return null === current ? "" : getStackByFiberInDevAndProd(current); - } - function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { - var previousFiber = current; - ReactSharedInternals.getCurrentStack = - null === fiber ? null : getCurrentFiberStackInDev; - isRendering = !1; - current = fiber; - try { - return callback(arg0, arg1, arg2, arg3, arg4); - } finally { - current = previousFiber; - } - throw Error( - "runWithFiberInDEV should never be called in production. This is a bug in React." - ); - } function getNearestMountedFiber(fiber) { var node = fiber, nearestMounted = fiber; @@ -666,22 +253,150 @@ __DEV__ && ); } } - if (a.alternate !== b) - throw Error( - "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." + if (a.alternate !== b) + throw Error( + "Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue." + ); + } + if (3 !== a.tag) + throw Error("Unable to find node on an unmounted component."); + return a.stateNode.current === a ? fiber : alternate; + } + function isFiberSuspenseAndTimedOut(fiber) { + var memoizedState = fiber.memoizedState; + return ( + 13 === fiber.tag && + null !== memoizedState && + null === memoizedState.dehydrated + ); + } + function getIteratorFn(maybeIterable) { + if (null === maybeIterable || "object" !== typeof maybeIterable) + return null; + maybeIterable = + (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) || + maybeIterable["@@iterator"]; + return "function" === typeof maybeIterable ? maybeIterable : null; + } + function getComponentNameFromType(type) { + if (null == type) return null; + if ("function" === typeof type) + return type.$$typeof === REACT_CLIENT_REFERENCE + ? null + : type.displayName || type.name || null; + if ("string" === typeof type) return type; + switch (type) { + case REACT_FRAGMENT_TYPE: + return "Fragment"; + case REACT_PORTAL_TYPE: + return "Portal"; + case REACT_PROFILER_TYPE: + return "Profiler"; + case REACT_STRICT_MODE_TYPE: + return "StrictMode"; + case REACT_SUSPENSE_TYPE: + return "Suspense"; + case REACT_SUSPENSE_LIST_TYPE: + return "SuspenseList"; + } + if ("object" === typeof type) + switch ( + ("number" === typeof type.tag && + error$jscomp$0( + "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." + ), + type.$$typeof) + ) { + case REACT_PROVIDER_TYPE: + return (type._context.displayName || "Context") + ".Provider"; + case REACT_CONTEXT_TYPE: + return (type.displayName || "Context") + ".Consumer"; + case REACT_FORWARD_REF_TYPE: + var innerType = type.render; + type = type.displayName; + type || + ((type = innerType.displayName || innerType.name || ""), + (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef")); + return type; + case REACT_MEMO_TYPE: + return ( + (innerType = type.displayName || null), + null !== innerType + ? innerType + : getComponentNameFromType(type.type) || "Memo" + ); + case REACT_LAZY_TYPE: + innerType = type._payload; + type = type._init; + try { + return getComponentNameFromType(type(innerType)); + } catch (x) {} + } + return null; + } + function getComponentNameFromFiber(fiber) { + var type = fiber.type; + switch (fiber.tag) { + case 24: + return "Cache"; + case 9: + return (type.displayName || "Context") + ".Consumer"; + case 10: + return (type._context.displayName || "Context") + ".Provider"; + case 18: + return "DehydratedFragment"; + case 11: + return ( + (fiber = type.render), + (fiber = fiber.displayName || fiber.name || ""), + type.displayName || + ("" !== fiber ? "ForwardRef(" + fiber + ")" : "ForwardRef") ); + case 7: + return "Fragment"; + case 26: + case 27: + case 5: + return type; + case 4: + return "Portal"; + case 3: + return "Root"; + case 6: + return "Text"; + case 16: + return getComponentNameFromType(type); + case 8: + return type === REACT_STRICT_MODE_TYPE ? "StrictMode" : "Mode"; + case 22: + return "Offscreen"; + case 12: + return "Profiler"; + case 21: + return "Scope"; + case 13: + return "Suspense"; + case 19: + return "SuspenseList"; + case 25: + return "TracingMarker"; + case 1: + case 0: + case 14: + case 15: + if ("function" === typeof type) + return type.displayName || type.name || null; + if ("string" === typeof type) return type; + break; + case 29: + type = fiber._debugInfo; + if (null != type) + for (var i = type.length - 1; 0 <= i; i--) + if ("string" === typeof type[i].name) return type[i].name; + if (null !== fiber.return) + return getComponentNameFromFiber(fiber.return); } - if (3 !== a.tag) - throw Error("Unable to find node on an unmounted component."); - return a.stateNode.current === a ? fiber : alternate; - } - function isFiberSuspenseAndTimedOut(fiber) { - var memoizedState = fiber.memoizedState; - return ( - 13 === fiber.tag && - null !== memoizedState && - null === memoizedState.dehydrated - ); + return null; } function injectInternals(internals) { if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1; @@ -1132,48 +847,315 @@ __DEV__ && )), parentContext ); - instance = instance.getChildContext(); - for (var contextKey in instance) - if (!(contextKey in type)) - throw Error( - (getComponentNameFromFiber(fiber) || "Unknown") + - '.getChildContext(): key "' + - contextKey + - '" is not defined in childContextTypes.' + instance = instance.getChildContext(); + for (var contextKey in instance) + if (!(contextKey in type)) + throw Error( + (getComponentNameFromFiber(fiber) || "Unknown") + + '.getChildContext(): key "' + + contextKey + + '" is not defined in childContextTypes.' + ); + return assign({}, parentContext, instance); + } + function pushContextProvider(workInProgress) { + var instance = workInProgress.stateNode; + instance = + (instance && instance.__reactInternalMemoizedMergedChildContext) || + emptyContextObject; + previousContext = contextStackCursor$1.current; + push(contextStackCursor$1, instance, workInProgress); + push( + didPerformWorkStackCursor, + didPerformWorkStackCursor.current, + workInProgress + ); + return !0; + } + function invalidateContextProvider(workInProgress, type, didChange) { + var instance = workInProgress.stateNode; + if (!instance) + throw Error( + "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." + ); + didChange + ? ((type = processChildContext(workInProgress, type, previousContext)), + (instance.__reactInternalMemoizedMergedChildContext = type), + pop(didPerformWorkStackCursor, workInProgress), + pop(contextStackCursor$1, workInProgress), + push(contextStackCursor$1, type, workInProgress)) + : pop(didPerformWorkStackCursor, workInProgress); + push(didPerformWorkStackCursor, didChange, workInProgress); + } + function is(x, y) { + return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); + } + function disabledLog() {} + function disableLogs() { + if (0 === disabledDepth) { + prevLog = console.log; + prevInfo = console.info; + prevWarn = console.warn; + prevError = console.error; + prevGroup = console.group; + prevGroupCollapsed = console.groupCollapsed; + prevGroupEnd = console.groupEnd; + var props = { + configurable: !0, + enumerable: !0, + value: disabledLog, + writable: !0 + }; + Object.defineProperties(console, { + info: props, + log: props, + warn: props, + error: props, + group: props, + groupCollapsed: props, + groupEnd: props + }); + } + disabledDepth++; + } + function reenableLogs() { + disabledDepth--; + if (0 === disabledDepth) { + var props = { configurable: !0, enumerable: !0, writable: !0 }; + Object.defineProperties(console, { + log: assign({}, props, { value: prevLog }), + info: assign({}, props, { value: prevInfo }), + warn: assign({}, props, { value: prevWarn }), + error: assign({}, props, { value: prevError }), + group: assign({}, props, { value: prevGroup }), + groupCollapsed: assign({}, props, { value: prevGroupCollapsed }), + groupEnd: assign({}, props, { value: prevGroupEnd }) + }); + } + 0 > disabledDepth && + error$jscomp$0( + "disabledDepth fell below zero. This is a bug in React. Please file an issue." + ); + } + function describeBuiltInComponentFrame(name) { + if (void 0 === prefix) + try { + throw Error(); + } catch (x) { + var match = x.stack.trim().match(/\n( *(at )?)/); + prefix = (match && match[1]) || ""; + suffix = + -1 < x.stack.indexOf("\n at") + ? " ()" + : -1 < x.stack.indexOf("@") + ? "@unknown:0:0" + : ""; + } + return "\n" + prefix + name + suffix; + } + function describeNativeComponentFrame(fn, construct) { + if (!fn || reentry) return ""; + var frame = componentFrameCache.get(fn); + if (void 0 !== frame) return frame; + reentry = !0; + frame = Error.prepareStackTrace; + Error.prepareStackTrace = void 0; + var previousDispatcher = null; + previousDispatcher = ReactSharedInternals.H; + ReactSharedInternals.H = null; + disableLogs(); + try { + var RunInRootFrame = { + DetermineComponentFrameRoot: function () { + try { + if (construct) { + var Fake = function () { + throw Error(); + }; + Object.defineProperty(Fake.prototype, "props", { + set: function () { + throw Error(); + } + }); + if ("object" === typeof Reflect && Reflect.construct) { + try { + Reflect.construct(Fake, []); + } catch (x) { + var control = x; + } + Reflect.construct(fn, [], Fake); + } else { + try { + Fake.call(); + } catch (x$0) { + control = x$0; + } + fn.call(Fake.prototype); + } + } else { + try { + throw Error(); + } catch (x$1) { + control = x$1; + } + (Fake = fn()) && + "function" === typeof Fake.catch && + Fake.catch(function () {}); + } + } catch (sample) { + if (sample && control && "string" === typeof sample.stack) + return [sample.stack, control.stack]; + } + return [null, null]; + } + }; + RunInRootFrame.DetermineComponentFrameRoot.displayName = + "DetermineComponentFrameRoot"; + var namePropDescriptor = Object.getOwnPropertyDescriptor( + RunInRootFrame.DetermineComponentFrameRoot, + "name" + ); + namePropDescriptor && + namePropDescriptor.configurable && + Object.defineProperty( + RunInRootFrame.DetermineComponentFrameRoot, + "name", + { value: "DetermineComponentFrameRoot" } ); - return assign({}, parentContext, instance); - } - function pushContextProvider(workInProgress) { - var instance = workInProgress.stateNode; - instance = - (instance && instance.__reactInternalMemoizedMergedChildContext) || - emptyContextObject; - previousContext = contextStackCursor$1.current; - push(contextStackCursor$1, instance, workInProgress); - push( - didPerformWorkStackCursor, - didPerformWorkStackCursor.current, - workInProgress - ); - return !0; + var _RunInRootFrame$Deter = + RunInRootFrame.DetermineComponentFrameRoot(), + sampleStack = _RunInRootFrame$Deter[0], + controlStack = _RunInRootFrame$Deter[1]; + if (sampleStack && controlStack) { + var sampleLines = sampleStack.split("\n"), + controlLines = controlStack.split("\n"); + for ( + _RunInRootFrame$Deter = namePropDescriptor = 0; + namePropDescriptor < sampleLines.length && + !sampleLines[namePropDescriptor].includes( + "DetermineComponentFrameRoot" + ); + + ) + namePropDescriptor++; + for ( + ; + _RunInRootFrame$Deter < controlLines.length && + !controlLines[_RunInRootFrame$Deter].includes( + "DetermineComponentFrameRoot" + ); + + ) + _RunInRootFrame$Deter++; + if ( + namePropDescriptor === sampleLines.length || + _RunInRootFrame$Deter === controlLines.length + ) + for ( + namePropDescriptor = sampleLines.length - 1, + _RunInRootFrame$Deter = controlLines.length - 1; + 1 <= namePropDescriptor && + 0 <= _RunInRootFrame$Deter && + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]; + + ) + _RunInRootFrame$Deter--; + for ( + ; + 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; + namePropDescriptor--, _RunInRootFrame$Deter-- + ) + if ( + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter] + ) { + if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) { + do + if ( + (namePropDescriptor--, + _RunInRootFrame$Deter--, + 0 > _RunInRootFrame$Deter || + sampleLines[namePropDescriptor] !== + controlLines[_RunInRootFrame$Deter]) + ) { + var _frame = + "\n" + + sampleLines[namePropDescriptor].replace( + " at new ", + " at " + ); + fn.displayName && + _frame.includes("") && + (_frame = _frame.replace("", fn.displayName)); + "function" === typeof fn && + componentFrameCache.set(fn, _frame); + return _frame; + } + while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter); + } + break; + } + } + } finally { + (reentry = !1), + (ReactSharedInternals.H = previousDispatcher), + reenableLogs(), + (Error.prepareStackTrace = frame); + } + sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") + ? describeBuiltInComponentFrame(sampleLines) + : ""; + "function" === typeof fn && componentFrameCache.set(fn, sampleLines); + return sampleLines; } - function invalidateContextProvider(workInProgress, type, didChange) { - var instance = workInProgress.stateNode; - if (!instance) - throw Error( - "Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue." - ); - didChange - ? ((type = processChildContext(workInProgress, type, previousContext)), - (instance.__reactInternalMemoizedMergedChildContext = type), - pop(didPerformWorkStackCursor, workInProgress), - pop(contextStackCursor$1, workInProgress), - push(contextStackCursor$1, type, workInProgress)) - : pop(didPerformWorkStackCursor, workInProgress); - push(didPerformWorkStackCursor, didChange, workInProgress); + function describeFiber(fiber) { + switch (fiber.tag) { + case 26: + case 27: + case 5: + return describeBuiltInComponentFrame(fiber.type); + case 16: + return describeBuiltInComponentFrame("Lazy"); + case 13: + return describeBuiltInComponentFrame("Suspense"); + case 19: + return describeBuiltInComponentFrame("SuspenseList"); + case 0: + case 15: + return describeNativeComponentFrame(fiber.type, !1); + case 11: + return describeNativeComponentFrame(fiber.type.render, !1); + case 1: + return describeNativeComponentFrame(fiber.type, !0); + default: + return ""; + } } - function is(x, y) { - return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y); + function getStackByFiberInDevAndProd(workInProgress) { + try { + var info = ""; + do { + info += describeFiber(workInProgress); + var debugInfo = workInProgress._debugInfo; + if (debugInfo) + for (var i = debugInfo.length - 1; 0 <= i; i--) { + var entry = debugInfo[i]; + if ("string" === typeof entry.name) { + var JSCompiler_temp_const = info, + env = entry.env; + var JSCompiler_inline_result = describeBuiltInComponentFrame( + entry.name + (env ? " [" + env + "]" : "") + ); + info = JSCompiler_temp_const + JSCompiler_inline_result; + } + } + workInProgress = workInProgress.return; + } while (workInProgress); + return info; + } catch (x) { + return "\nError generating stack: " + x.message + "\n" + x.stack; + } } function createCapturedValueAtFiber(value, source) { if ("object" === typeof value && null !== value) { @@ -2281,6 +2263,24 @@ __DEV__ && } return !0; } + function getCurrentFiberStackInDev() { + return null === current ? "" : getStackByFiberInDevAndProd(current); + } + function runWithFiberInDEV(fiber, callback, arg0, arg1, arg2, arg3, arg4) { + var previousFiber = current; + ReactSharedInternals.getCurrentStack = + null === fiber ? null : getCurrentFiberStackInDev; + isRendering = !1; + current = fiber; + try { + return callback(arg0, arg1, arg2, arg3, arg4); + } finally { + current = previousFiber; + } + throw Error( + "runWithFiberInDEV should never be called in production. This is a bug in React." + ); + } function createThenableState() { return { didWarnAboutUncachedPromise: !1, thenables: [] }; } @@ -2965,7 +2965,7 @@ __DEV__ && null; hookTypesUpdateIndexDev = -1; null !== current && - (current.flags & 29360128) !== (workInProgress.flags & 29360128) && + (current.flags & 65011712) !== (workInProgress.flags & 65011712) && error$jscomp$0( "Internal React error: Expected static flag was missing. Please notify the React team." ); @@ -3038,7 +3038,7 @@ __DEV__ && workInProgress.updateQueue = current.updateQueue; workInProgress.flags = 0 !== (workInProgress.mode & 16) - ? workInProgress.flags & -201328645 + ? workInProgress.flags & -402655237 : workInProgress.flags & -2053; current.lanes &= ~lanes; } @@ -3826,12 +3826,12 @@ __DEV__ && function mountEffect(create, deps) { 0 !== (currentlyRenderingFiber.mode & 16) && 0 === (currentlyRenderingFiber.mode & 64) - ? mountEffectImpl(142608384, Passive, create, deps) + ? mountEffectImpl(276826112, Passive, create, deps) : mountEffectImpl(8390656, Passive, create, deps); } function mountLayoutEffect(create, deps) { var fiberFlags = 4194308; - 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 67108864); + 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 134217728); return mountEffectImpl(fiberFlags, Layout, create, deps); } function imperativeHandleEffect(create, ref) { @@ -3864,7 +3864,7 @@ __DEV__ && ); deps = null !== deps && void 0 !== deps ? deps.concat([ref]) : null; var fiberFlags = 4194308; - 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 67108864); + 0 !== (currentlyRenderingFiber.mode & 16) && (fiberFlags |= 134217728); mountEffectImpl( fiberFlags, Layout, @@ -4387,16 +4387,16 @@ __DEV__ && return ( (newIndex = newIndex.index), newIndex < lastPlacedIndex - ? ((newFiber.flags |= 33554434), lastPlacedIndex) + ? ((newFiber.flags |= 67108866), lastPlacedIndex) : newIndex ); - newFiber.flags |= 33554434; + newFiber.flags |= 67108866; return lastPlacedIndex; } function placeSingleChild(newFiber) { shouldTrackSideEffects && null === newFiber.alternate && - (newFiber.flags |= 33554434); + (newFiber.flags |= 67108866); return newFiber; } function updateTextNode(returnFiber, current, textContent, lanes) { @@ -6463,7 +6463,7 @@ __DEV__ && (state.state = workInProgress.memoizedState)); "function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308); - 0 !== (workInProgress.mode & 16) && (workInProgress.flags |= 67108864); + 0 !== (workInProgress.mode & 16) && (workInProgress.flags |= 134217728); state = !0; } else if (null === current$jscomp$0) (state = workInProgress.stateNode), @@ -6533,11 +6533,11 @@ __DEV__ && "function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), 0 !== (workInProgress.mode & 16) && - (workInProgress.flags |= 67108864)) + (workInProgress.flags |= 134217728)) : ("function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), 0 !== (workInProgress.mode & 16) && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (workInProgress.memoizedProps = nextProps), (workInProgress.memoizedState = state$jscomp$0)), (state.props = nextProps), @@ -6547,7 +6547,7 @@ __DEV__ && : ("function" === typeof state.componentDidMount && (workInProgress.flags |= 4194308), 0 !== (workInProgress.mode & 16) && - (workInProgress.flags |= 67108864), + (workInProgress.flags |= 134217728), (state = !1)); else { state = workInProgress.stateNode; @@ -7001,7 +7001,7 @@ __DEV__ && mode: "hidden", children: nextProps.children }); - nextProps.subtreeFlags = didSuspend.subtreeFlags & 29360128; + nextProps.subtreeFlags = didSuspend.subtreeFlags & 65011712; null !== currentFallbackChildFragment ? (nextPrimaryChildren = createWorkInProgress( currentFallbackChildFragment, @@ -8058,8 +8058,8 @@ __DEV__ && ) (newChildLanes |= _child2.lanes | _child2.childLanes), - (subtreeFlags |= _child2.subtreeFlags & 29360128), - (subtreeFlags |= _child2.flags & 29360128), + (subtreeFlags |= _child2.subtreeFlags & 65011712), + (subtreeFlags |= _child2.flags & 65011712), (_treeBaseDuration += _child2.treeBaseDuration), (_child2 = _child2.sibling); completedWork.treeBaseDuration = _treeBaseDuration; @@ -8071,8 +8071,8 @@ __DEV__ && ) (newChildLanes |= _treeBaseDuration.lanes | _treeBaseDuration.childLanes), - (subtreeFlags |= _treeBaseDuration.subtreeFlags & 29360128), - (subtreeFlags |= _treeBaseDuration.flags & 29360128), + (subtreeFlags |= _treeBaseDuration.subtreeFlags & 65011712), + (subtreeFlags |= _treeBaseDuration.flags & 65011712), (_treeBaseDuration.return = completedWork), (_treeBaseDuration = _treeBaseDuration.sibling); else if (0 !== (completedWork.mode & 2)) { @@ -8484,6 +8484,8 @@ __DEV__ && ); case 25: return null; + case 30: + return null; } throw Error( "Unknown unit of work tag (" + @@ -9910,6 +9912,7 @@ __DEV__ && ((finishedWork.updateQueue = null), attachSuspenseRetryListeners(finishedWork, flags))); break; + case 30: case 21: recursivelyTraverseMutationEffects(root, finishedWork); commitReconciliationEffects(finishedWork); @@ -10219,7 +10222,7 @@ __DEV__ && break; case 12: if (flags & 2048) { - prevEffectDuration = pushNestedEffectDurations(); + flags = pushNestedEffectDurations(); recursivelyTraversePassiveMountEffects( finishedRoot, finishedWork, @@ -10228,7 +10231,7 @@ __DEV__ && ); finishedRoot = finishedWork.stateNode; finishedRoot.passiveEffectDuration += - bubbleNestedEffectDurations(prevEffectDuration); + bubbleNestedEffectDurations(flags); try { runWithFiberInDEV( finishedWork, @@ -10265,6 +10268,7 @@ __DEV__ && break; case 22: prevEffectDuration = finishedWork.stateNode; + var _current = finishedWork.alternate; null !== finishedWork.memoizedState ? prevEffectDuration._visibility & 4 ? recursivelyTraversePassiveMountEffects( @@ -10293,10 +10297,7 @@ __DEV__ && 0 !== (finishedWork.subtreeFlags & 10256) )); flags & 2048 && - commitOffscreenPassiveMountEffects( - finishedWork.alternate, - finishedWork - ); + commitOffscreenPassiveMountEffects(_current, finishedWork); break; case 24: recursivelyTraversePassiveMountEffects( @@ -10863,6 +10864,7 @@ __DEV__ && lanes, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, workInProgressDeferredLane, workInProgressRootInterleavedUpdatedLanes, @@ -10891,6 +10893,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -10911,6 +10914,7 @@ __DEV__ && forceSync, workInProgressRootRecoverableErrors, workInProgressTransitions, + workInProgressAppearingViewTransitions, workInProgressRootDidIncludeRecursiveRenderUpdate, lanes, workInProgressDeferredLane, @@ -10934,6 +10938,7 @@ __DEV__ && finishedWork, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, lanes, spawnedLane, @@ -10942,7 +10947,9 @@ __DEV__ && ) { root.timeoutHandle = -1; var subtreeFlags = finishedWork.subtreeFlags; - (subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) && + (subtreeFlags = + subtreeFlags & 8192 || 16785408 === (subtreeFlags & 16785408)) && + subtreeFlags && accumulateSuspenseyCommitOnFiber(finishedWork); commitRoot( root, @@ -10950,6 +10957,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11079,6 +11087,7 @@ __DEV__ && workInProgressRootRecoverableErrors = workInProgressRootConcurrentErrors = null; workInProgressRootDidIncludeRecursiveRenderUpdate = !1; + workInProgressAppearingViewTransitions = null; 0 !== (lanes & 8) && (lanes |= lanes & 32); var allEntangledLanes = root.entangledLanes; if (0 !== allEntangledLanes) @@ -11584,6 +11593,7 @@ __DEV__ && lanes, recoverableErrors, transitions, + appearingViewTransitions, didIncludeRenderPhaseUpdate, spawnedLane, updatedLanes, @@ -11635,24 +11645,30 @@ __DEV__ && })) : ((root.callbackNode = null), (root.callbackPriority = 0)); commitStartTime = now(); - lanes = 0 !== (finishedWork.flags & 13878); - if (0 !== (finishedWork.subtreeFlags & 13878) || lanes) { - lanes = ReactSharedInternals.T; + recoverableErrors = 0 !== (finishedWork.flags & 13878); + if (0 !== (finishedWork.subtreeFlags & 13878) || recoverableErrors) { + recoverableErrors = ReactSharedInternals.T; ReactSharedInternals.T = null; - recoverableErrors = currentUpdatePriority; + transitions = currentUpdatePriority; currentUpdatePriority = DiscreteEventPriority; - transitions = executionContext; + spawnedLane = executionContext; executionContext |= CommitContext; try { - commitBeforeMutationEffects(root, finishedWork); + commitBeforeMutationEffects( + root, + finishedWork, + lanes, + appearingViewTransitions + ); } finally { - (executionContext = transitions), - (currentUpdatePriority = recoverableErrors), - (ReactSharedInternals.T = lanes); + (executionContext = spawnedLane), + (currentUpdatePriority = transitions), + (ReactSharedInternals.T = recoverableErrors); } } pendingEffectsStatus = PENDING_MUTATION_PHASE; flushMutationEffects(); + pendingEffectsStatus = PENDING_LAYOUT_PHASE; flushLayoutEffects(); } } @@ -11681,7 +11697,7 @@ __DEV__ && } } root.current = finishedWork; - pendingEffectsStatus = PENDING_LAYOUT_PHASE; + pendingEffectsStatus = PENDING_AFTER_MUTATION_PHASE; } } function flushLayoutEffects() { @@ -11821,6 +11837,9 @@ __DEV__ && function flushPendingEffects(wasDelayedCommit) { flushMutationEffects(); flushLayoutEffects(); + pendingEffectsStatus === PENDING_AFTER_MUTATION_PHASE && + ((pendingEffectsStatus = NO_PENDING_EFFECTS), + (pendingEffectsStatus = PENDING_LAYOUT_PHASE)); return flushPassiveEffects(wasDelayedCommit); } function flushPassiveEffects() { @@ -12029,14 +12048,14 @@ __DEV__ && parentFiber, isInStrictMode ) { - if (0 !== (parentFiber.subtreeFlags & 33562624)) + if (0 !== (parentFiber.subtreeFlags & 67117056)) for (parentFiber = parentFiber.child; null !== parentFiber; ) { var root = root$jscomp$0, fiber = parentFiber, isStrictModeFiber = fiber.type === REACT_STRICT_MODE_TYPE; isStrictModeFiber = isInStrictMode || isStrictModeFiber; 22 !== fiber.tag - ? fiber.flags & 33554432 + ? fiber.flags & 67108864 ? isStrictModeFiber && runWithFiberInDEV( fiber, @@ -12058,7 +12077,7 @@ __DEV__ && root, fiber ) - : fiber.subtreeFlags & 33554432 && + : fiber.subtreeFlags & 67108864 && runWithFiberInDEV( fiber, recursivelyTraverseAndDoubleInvokeEffectsInDEV, @@ -12313,7 +12332,7 @@ __DEV__ && (workInProgress.deletions = null), (workInProgress.actualDuration = -0), (workInProgress.actualStartTime = -1.1)); - workInProgress.flags = current.flags & 29360128; + workInProgress.flags = current.flags & 65011712; workInProgress.childLanes = current.childLanes; workInProgress.lanes = current.lanes; workInProgress.child = current.child; @@ -12351,7 +12370,7 @@ __DEV__ && return workInProgress; } function resetWorkInProgress(workInProgress, renderLanes) { - workInProgress.flags &= 29360130; + workInProgress.flags &= 65011714; var current = workInProgress.alternate; null === current ? ((workInProgress.childLanes = 0), @@ -12449,6 +12468,7 @@ __DEV__ && case REACT_OFFSCREEN_TYPE: return createFiberFromOffscreen(pendingProps, mode, lanes, key); case REACT_LEGACY_HIDDEN_TYPE: + case REACT_VIEW_TRANSITION_TYPE: case REACT_SCOPE_TYPE: return ( (key = createFiber(21, pendingProps, key, mode)), @@ -12730,13 +12750,6 @@ __DEV__ && a: if (parentComponent) { parentComponent = parentComponent._reactInternals; b: { - if ( - getNearestMountedFiber(parentComponent) !== parentComponent || - 1 !== parentComponent.tag - ) - throw Error( - "Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue." - ); var parentContext = parentComponent; do { switch (parentContext.tag) { @@ -13014,28 +13027,12 @@ __DEV__ && REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"); Symbol.for("react.tracing_marker"); var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"), + REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), + isArrayImpl = Array.isArray, ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, - disabledDepth = 0, - prevLog, - prevInfo, - prevWarn, - prevError, - prevGroup, - prevGroupCollapsed, - prevGroupEnd; - disabledLog.__reactDisabledLog = !0; - var prefix, - suffix, - reentry = !1; - var componentFrameCache = new ( - "function" === typeof WeakMap ? WeakMap : Map - )(); - var current = null, - isRendering = !1, - isArrayImpl = Array.isArray, scheduleCallback$3 = Scheduler$1.unstable_scheduleCallback, cancelCallback$1 = Scheduler$1.unstable_cancelCallback, shouldYield = Scheduler$1.unstable_shouldYield, @@ -13096,7 +13093,22 @@ __DEV__ && didPerformWorkStackCursor = createCursor(!1), previousContext = emptyContextObject, objectIs = "function" === typeof Object.is ? Object.is : is, - CapturedStacks = new WeakMap(), + disabledDepth = 0, + prevLog, + prevInfo, + prevWarn, + prevError, + prevGroup, + prevGroupCollapsed, + prevGroupEnd; + disabledLog.__reactDisabledLog = !0; + var prefix, + suffix, + reentry = !1; + var componentFrameCache = new ( + "function" === typeof WeakMap ? WeakMap : Map + )(); + var CapturedStacks = new WeakMap(), contextStackCursor = createCursor(null), contextFiberStackCursor = createCursor(null), rootInstanceStackCursor = createCursor(null), @@ -13169,6 +13181,8 @@ __DEV__ && }; var resumedCache = createCursor(null), hasOwnProperty = Object.prototype.hasOwnProperty, + current = null, + isRendering = !1, ReactStrictModeWarnings = { recordUnsafeLifecycleWarnings: function () {}, flushPendingUnsafeLifecycleWarnings: function () {}, @@ -14574,21 +14588,6 @@ __DEV__ && var didWarnOnInvalidCallback = new Set(); Object.freeze(fakeInternalInstance); var classComponentUpdater = { - isMounted: function (component) { - var owner = current; - if (null !== owner && isRendering && 1 === owner.tag) { - var instance = owner.stateNode; - instance._warnedAboutRefsInRender || - error$jscomp$0( - "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", - getComponentNameFromFiber(owner) || "A component" - ); - instance._warnedAboutRefsInRender = !0; - } - return (component = component._reactInternals) - ? getNearestMountedFiber(component) === component - : !1; - }, enqueueSetState: function (inst, payload, callback) { inst = inst._reactInternals; var lane = requestUpdateLane(inst), @@ -14749,6 +14748,7 @@ __DEV__ && workInProgressSuspendedRetryLanes = 0, workInProgressRootConcurrentErrors = null, workInProgressRootRecoverableErrors = null, + workInProgressAppearingViewTransitions = null, workInProgressRootDidIncludeRecursiveRenderUpdate = !1, globalMostRecentFallbackTime = 0, FALLBACK_THROTTLE_MS = 300, @@ -14760,8 +14760,9 @@ __DEV__ && THROTTLED_COMMIT = 2, NO_PENDING_EFFECTS = 0, PENDING_MUTATION_PHASE = 1, - PENDING_LAYOUT_PHASE = 2, - PENDING_PASSIVE_PHASE = 3, + PENDING_AFTER_MUTATION_PHASE = 2, + PENDING_LAYOUT_PHASE = 3, + PENDING_PASSIVE_PHASE = 4, pendingEffectsStatus = 0, pendingEffectsRoot = null, pendingFinishedWork = null, @@ -14995,10 +14996,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-defffdbb-20250106", + version: "19.1.0-www-modern-98418e89-20250108", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-defffdbb-20250106" + reconcilerVersion: "19.1.0-www-modern-98418e89-20250108" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15018,7 +15019,7 @@ __DEV__ && exports._Scheduler = Scheduler; exports.act = act; exports.create = function (element, options) { - var createNodeMock = JSCompiler_object_inline_createNodeMock_1116, + var createNodeMock = JSCompiler_object_inline_createNodeMock_1124, isConcurrentOnly = !0 !== global.IS_REACT_NATIVE_TEST_ENVIRONMENT, isConcurrent = isConcurrentOnly, isStrictMode = !1; @@ -15133,5 +15134,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-modern-defffdbb-20250106"; + exports.version = "19.1.0-www-modern-98418e89-20250108"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index 4d294fd7f85d0..38334ad56694f 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.1.0-www-classic-defffdbb-20250106 \ No newline at end of file +19.1.0-www-classic-98418e89-20250108 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index 86da70e6b4f29..663072eded8bd 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.1.0-www-modern-defffdbb-20250106 \ No newline at end of file +19.1.0-www-modern-98418e89-20250108 \ No newline at end of file diff --git a/compiled/facebook-www/__test_utils__/ReactAllWarnings.js b/compiled/facebook-www/__test_utils__/ReactAllWarnings.js index 4e2d45505f05c..2dc9b162c02ef 100644 --- a/compiled/facebook-www/__test_utils__/ReactAllWarnings.js +++ b/compiled/facebook-www/__test_utils__/ReactAllWarnings.js @@ -30,7 +30,6 @@ export default [ "%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", "%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", "%s is accessing findNodeHandle inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", - "%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.", "%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node", "%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://react.dev/link/strict-mode-find-node", "%s is not a supported value for revealOrder on . Did you mean \"together\", \"forwards\" or \"backwards\"?",